1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for TI IPC 3.0.0.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
394 tagnames=${tagnames+${tagnames},}CXX
396 # Name of the host.
397 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
398 # so uname gets run too.
399 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401 exec 6>&1
403 #
404 # Initializations.
405 #
406 ac_default_prefix=/usr/local
407 ac_config_libobj_dir=.
408 cross_compiling=no
409 subdirs=
410 MFLAGS=
411 MAKEFLAGS=
412 SHELL=${CONFIG_SHELL-/bin/sh}
414 # Maximum number of lines to put in a shell here document.
415 # This variable seems obsolete. It should probably be removed, and
416 # only ac_max_sed_lines should be used.
417 : ${ac_max_here_lines=38}
419 # Identity of this package.
420 PACKAGE_NAME='TI IPC'
421 PACKAGE_TARNAME='ti-ipc'
422 PACKAGE_VERSION='3.0.0'
423 PACKAGE_STRING='TI IPC 3.0.0'
424 PACKAGE_BUGREPORT=''
426 ac_unique_file="packages/ti/ipc/MessageQ.h"
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 # include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 # include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 # include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
464 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL AM_CFLAGS AM_LDFLAGS PLATFORM CMEM_INSTALL_DIR KERNEL_INSTALL_DIR DRMLIB_PREFIX DRM_PREFIX OMAPL138_TRUE OMAPL138_FALSE TCI6614_TRUE TCI6614_FALSE TCI6636_TRUE TCI6636_FALSE TCI6638_TRUE TCI6638_FALSE OMAP54XX_SMP_TRUE OMAP54XX_SMP_FALSE DRA7XX_TRUE DRA7XX_FALSE CMEM_TRUE CMEM_FALSE KDIR_TRUE KDIR_FALSE DRM_TRUE DRM_FALSE LIBOBJS LTLIBOBJS'
465 ac_subst_files=''
467 # Initialize some variables set by options.
468 ac_init_help=
469 ac_init_version=false
470 # The variables have the same names as the options, with
471 # dashes changed to underlines.
472 cache_file=/dev/null
473 exec_prefix=NONE
474 no_create=
475 no_recursion=
476 prefix=NONE
477 program_prefix=NONE
478 program_suffix=NONE
479 program_transform_name=s,x,x,
480 silent=
481 site=
482 srcdir=
483 verbose=
484 x_includes=NONE
485 x_libraries=NONE
487 # Installation directory options.
488 # These are left unexpanded so users can "make install exec_prefix=/foo"
489 # and all the variables that are supposed to be based on exec_prefix
490 # by default will actually change.
491 # Use braces instead of parens because sh, perl, etc. also accept them.
492 bindir='${exec_prefix}/bin'
493 sbindir='${exec_prefix}/sbin'
494 libexecdir='${exec_prefix}/libexec'
495 datadir='${prefix}/share'
496 sysconfdir='${prefix}/etc'
497 sharedstatedir='${prefix}/com'
498 localstatedir='${prefix}/var'
499 libdir='${exec_prefix}/lib'
500 includedir='${prefix}/include'
501 oldincludedir='/usr/include'
502 infodir='${prefix}/info'
503 mandir='${prefix}/man'
505 ac_prev=
506 for ac_option
507 do
508 # If the previous option needs an argument, assign it.
509 if test -n "$ac_prev"; then
510 eval "$ac_prev=\$ac_option"
511 ac_prev=
512 continue
513 fi
515 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517 # Accept the important Cygnus configure options, so we can diagnose typos.
519 case $ac_option in
521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
522 ac_prev=bindir ;;
523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
524 bindir=$ac_optarg ;;
526 -build | --build | --buil | --bui | --bu)
527 ac_prev=build_alias ;;
528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
529 build_alias=$ac_optarg ;;
531 -cache-file | --cache-file | --cache-fil | --cache-fi \
532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
533 ac_prev=cache_file ;;
534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
536 cache_file=$ac_optarg ;;
538 --config-cache | -C)
539 cache_file=config.cache ;;
541 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
542 ac_prev=datadir ;;
543 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
544 | --da=*)
545 datadir=$ac_optarg ;;
547 -disable-* | --disable-*)
548 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
549 # Reject names that are not valid shell variable names.
550 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
551 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
552 { (exit 1); exit 1; }; }
553 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
554 eval "enable_$ac_feature=no" ;;
556 -enable-* | --enable-*)
557 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
558 # Reject names that are not valid shell variable names.
559 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
561 { (exit 1); exit 1; }; }
562 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
563 case $ac_option in
564 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
565 *) ac_optarg=yes ;;
566 esac
567 eval "enable_$ac_feature='$ac_optarg'" ;;
569 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
570 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
571 | --exec | --exe | --ex)
572 ac_prev=exec_prefix ;;
573 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
574 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
575 | --exec=* | --exe=* | --ex=*)
576 exec_prefix=$ac_optarg ;;
578 -gas | --gas | --ga | --g)
579 # Obsolete; use --with-gas.
580 with_gas=yes ;;
582 -help | --help | --hel | --he | -h)
583 ac_init_help=long ;;
584 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
585 ac_init_help=recursive ;;
586 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
587 ac_init_help=short ;;
589 -host | --host | --hos | --ho)
590 ac_prev=host_alias ;;
591 -host=* | --host=* | --hos=* | --ho=*)
592 host_alias=$ac_optarg ;;
594 -includedir | --includedir | --includedi | --included | --include \
595 | --includ | --inclu | --incl | --inc)
596 ac_prev=includedir ;;
597 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
598 | --includ=* | --inclu=* | --incl=* | --inc=*)
599 includedir=$ac_optarg ;;
601 -infodir | --infodir | --infodi | --infod | --info | --inf)
602 ac_prev=infodir ;;
603 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
604 infodir=$ac_optarg ;;
606 -libdir | --libdir | --libdi | --libd)
607 ac_prev=libdir ;;
608 -libdir=* | --libdir=* | --libdi=* | --libd=*)
609 libdir=$ac_optarg ;;
611 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
612 | --libexe | --libex | --libe)
613 ac_prev=libexecdir ;;
614 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
615 | --libexe=* | --libex=* | --libe=*)
616 libexecdir=$ac_optarg ;;
618 -localstatedir | --localstatedir | --localstatedi | --localstated \
619 | --localstate | --localstat | --localsta | --localst \
620 | --locals | --local | --loca | --loc | --lo)
621 ac_prev=localstatedir ;;
622 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
623 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
624 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
625 localstatedir=$ac_optarg ;;
627 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
628 ac_prev=mandir ;;
629 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
630 mandir=$ac_optarg ;;
632 -nfp | --nfp | --nf)
633 # Obsolete; use --without-fp.
634 with_fp=no ;;
636 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
637 | --no-cr | --no-c | -n)
638 no_create=yes ;;
640 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
642 no_recursion=yes ;;
644 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
645 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
646 | --oldin | --oldi | --old | --ol | --o)
647 ac_prev=oldincludedir ;;
648 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
649 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
650 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
651 oldincludedir=$ac_optarg ;;
653 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
654 ac_prev=prefix ;;
655 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
656 prefix=$ac_optarg ;;
658 -program-prefix | --program-prefix | --program-prefi | --program-pref \
659 | --program-pre | --program-pr | --program-p)
660 ac_prev=program_prefix ;;
661 -program-prefix=* | --program-prefix=* | --program-prefi=* \
662 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
663 program_prefix=$ac_optarg ;;
665 -program-suffix | --program-suffix | --program-suffi | --program-suff \
666 | --program-suf | --program-su | --program-s)
667 ac_prev=program_suffix ;;
668 -program-suffix=* | --program-suffix=* | --program-suffi=* \
669 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
670 program_suffix=$ac_optarg ;;
672 -program-transform-name | --program-transform-name \
673 | --program-transform-nam | --program-transform-na \
674 | --program-transform-n | --program-transform- \
675 | --program-transform | --program-transfor \
676 | --program-transfo | --program-transf \
677 | --program-trans | --program-tran \
678 | --progr-tra | --program-tr | --program-t)
679 ac_prev=program_transform_name ;;
680 -program-transform-name=* | --program-transform-name=* \
681 | --program-transform-nam=* | --program-transform-na=* \
682 | --program-transform-n=* | --program-transform-=* \
683 | --program-transform=* | --program-transfor=* \
684 | --program-transfo=* | --program-transf=* \
685 | --program-trans=* | --program-tran=* \
686 | --progr-tra=* | --program-tr=* | --program-t=*)
687 program_transform_name=$ac_optarg ;;
689 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
690 | -silent | --silent | --silen | --sile | --sil)
691 silent=yes ;;
693 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
694 ac_prev=sbindir ;;
695 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
696 | --sbi=* | --sb=*)
697 sbindir=$ac_optarg ;;
699 -sharedstatedir | --sharedstatedir | --sharedstatedi \
700 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
701 | --sharedst | --shareds | --shared | --share | --shar \
702 | --sha | --sh)
703 ac_prev=sharedstatedir ;;
704 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
705 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
706 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
707 | --sha=* | --sh=*)
708 sharedstatedir=$ac_optarg ;;
710 -site | --site | --sit)
711 ac_prev=site ;;
712 -site=* | --site=* | --sit=*)
713 site=$ac_optarg ;;
715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
716 ac_prev=srcdir ;;
717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
718 srcdir=$ac_optarg ;;
720 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
721 | --syscon | --sysco | --sysc | --sys | --sy)
722 ac_prev=sysconfdir ;;
723 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
724 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
725 sysconfdir=$ac_optarg ;;
727 -target | --target | --targe | --targ | --tar | --ta | --t)
728 ac_prev=target_alias ;;
729 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
730 target_alias=$ac_optarg ;;
732 -v | -verbose | --verbose | --verbos | --verbo | --verb)
733 verbose=yes ;;
735 -version | --version | --versio | --versi | --vers | -V)
736 ac_init_version=: ;;
738 -with-* | --with-*)
739 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
740 # Reject names that are not valid shell variable names.
741 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
742 { echo "$as_me: error: invalid package name: $ac_package" >&2
743 { (exit 1); exit 1; }; }
744 ac_package=`echo $ac_package| sed 's/-/_/g'`
745 case $ac_option in
746 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
747 *) ac_optarg=yes ;;
748 esac
749 eval "with_$ac_package='$ac_optarg'" ;;
751 -without-* | --without-*)
752 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package | sed 's/-/_/g'`
758 eval "with_$ac_package=no" ;;
760 --x)
761 # Obsolete; use --with-x.
762 with_x=yes ;;
764 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
765 | --x-incl | --x-inc | --x-in | --x-i)
766 ac_prev=x_includes ;;
767 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
768 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
769 x_includes=$ac_optarg ;;
771 -x-libraries | --x-libraries | --x-librarie | --x-librari \
772 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
773 ac_prev=x_libraries ;;
774 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
775 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
776 x_libraries=$ac_optarg ;;
778 -*) { echo "$as_me: error: unrecognized option: $ac_option
779 Try \`$0 --help' for more information." >&2
780 { (exit 1); exit 1; }; }
781 ;;
783 *=*)
784 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
785 # Reject names that are not valid shell variable names.
786 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
787 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
788 { (exit 1); exit 1; }; }
789 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
790 eval "$ac_envvar='$ac_optarg'"
791 export $ac_envvar ;;
793 *)
794 # FIXME: should be removed in autoconf 3.0.
795 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
796 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
797 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
798 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 ;;
801 esac
802 done
804 if test -n "$ac_prev"; then
805 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
806 { echo "$as_me: error: missing argument to $ac_option" >&2
807 { (exit 1); exit 1; }; }
808 fi
810 # Be sure to have absolute paths.
811 for ac_var in exec_prefix prefix
812 do
813 eval ac_val=$`echo $ac_var`
814 case $ac_val in
815 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
816 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
817 { (exit 1); exit 1; }; };;
818 esac
819 done
821 # Be sure to have absolute paths.
822 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
823 localstatedir libdir includedir oldincludedir infodir mandir
824 do
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831 done
833 # There might be people who depend on the old broken behavior: `$host'
834 # used to hold the argument of --host etc.
835 # FIXME: To remove some day.
836 build=$build_alias
837 host=$host_alias
838 target=$target_alias
840 # FIXME: To remove some day.
841 if test "x$host_alias" != x; then
842 if test "x$build_alias" = x; then
843 cross_compiling=maybe
844 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
845 If a cross compiler is detected then cross compile mode will be used." >&2
846 elif test "x$build_alias" != "x$host_alias"; then
847 cross_compiling=yes
848 fi
849 fi
851 ac_tool_prefix=
852 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854 test "$silent" = yes && exec 6>/dev/null
857 # Find the source files, if location was not specified.
858 if test -z "$srcdir"; then
859 ac_srcdir_defaulted=yes
860 # Try the directory containing this script, then its parent.
861 ac_confdir=`(dirname "$0") 2>/dev/null ||
862 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
863 X"$0" : 'X\(//\)[^/]' \| \
864 X"$0" : 'X\(//\)$' \| \
865 X"$0" : 'X\(/\)' \| \
866 . : '\(.\)' 2>/dev/null ||
867 echo X"$0" |
868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
869 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
870 /^X\(\/\/\)$/{ s//\1/; q; }
871 /^X\(\/\).*/{ s//\1/; q; }
872 s/.*/./; q'`
873 srcdir=$ac_confdir
874 if test ! -r $srcdir/$ac_unique_file; then
875 srcdir=..
876 fi
877 else
878 ac_srcdir_defaulted=no
879 fi
880 if test ! -r $srcdir/$ac_unique_file; then
881 if test "$ac_srcdir_defaulted" = yes; then
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
883 { (exit 1); exit 1; }; }
884 else
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
886 { (exit 1); exit 1; }; }
887 fi
888 fi
889 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
890 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
891 { (exit 1); exit 1; }; }
892 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
893 ac_env_build_alias_set=${build_alias+set}
894 ac_env_build_alias_value=$build_alias
895 ac_cv_env_build_alias_set=${build_alias+set}
896 ac_cv_env_build_alias_value=$build_alias
897 ac_env_host_alias_set=${host_alias+set}
898 ac_env_host_alias_value=$host_alias
899 ac_cv_env_host_alias_set=${host_alias+set}
900 ac_cv_env_host_alias_value=$host_alias
901 ac_env_target_alias_set=${target_alias+set}
902 ac_env_target_alias_value=$target_alias
903 ac_cv_env_target_alias_set=${target_alias+set}
904 ac_cv_env_target_alias_value=$target_alias
905 ac_env_CC_set=${CC+set}
906 ac_env_CC_value=$CC
907 ac_cv_env_CC_set=${CC+set}
908 ac_cv_env_CC_value=$CC
909 ac_env_CFLAGS_set=${CFLAGS+set}
910 ac_env_CFLAGS_value=$CFLAGS
911 ac_cv_env_CFLAGS_set=${CFLAGS+set}
912 ac_cv_env_CFLAGS_value=$CFLAGS
913 ac_env_LDFLAGS_set=${LDFLAGS+set}
914 ac_env_LDFLAGS_value=$LDFLAGS
915 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_cv_env_LDFLAGS_value=$LDFLAGS
917 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_env_CPPFLAGS_value=$CPPFLAGS
919 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
921 ac_env_CPP_set=${CPP+set}
922 ac_env_CPP_value=$CPP
923 ac_cv_env_CPP_set=${CPP+set}
924 ac_cv_env_CPP_value=$CPP
925 ac_env_CXX_set=${CXX+set}
926 ac_env_CXX_value=$CXX
927 ac_cv_env_CXX_set=${CXX+set}
928 ac_cv_env_CXX_value=$CXX
929 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_env_CXXFLAGS_value=$CXXFLAGS
931 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
933 ac_env_CXXCPP_set=${CXXCPP+set}
934 ac_env_CXXCPP_value=$CXXCPP
935 ac_cv_env_CXXCPP_set=${CXXCPP+set}
936 ac_cv_env_CXXCPP_value=$CXXCPP
937 ac_env_PLATFORM_set=${PLATFORM+set}
938 ac_env_PLATFORM_value=$PLATFORM
939 ac_cv_env_PLATFORM_set=${PLATFORM+set}
940 ac_cv_env_PLATFORM_value=$PLATFORM
941 ac_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
942 ac_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
943 ac_cv_env_CMEM_INSTALL_DIR_set=${CMEM_INSTALL_DIR+set}
944 ac_cv_env_CMEM_INSTALL_DIR_value=$CMEM_INSTALL_DIR
945 ac_env_KERNEL_INSTALL_DIR_set=${KERNEL_INSTALL_DIR+set}
946 ac_env_KERNEL_INSTALL_DIR_value=$KERNEL_INSTALL_DIR
947 ac_cv_env_KERNEL_INSTALL_DIR_set=${KERNEL_INSTALL_DIR+set}
948 ac_cv_env_KERNEL_INSTALL_DIR_value=$KERNEL_INSTALL_DIR
949 ac_env_DRMLIB_PREFIX_set=${DRMLIB_PREFIX+set}
950 ac_env_DRMLIB_PREFIX_value=$DRMLIB_PREFIX
951 ac_cv_env_DRMLIB_PREFIX_set=${DRMLIB_PREFIX+set}
952 ac_cv_env_DRMLIB_PREFIX_value=$DRMLIB_PREFIX
954 #
955 # Report the --help message.
956 #
957 if test "$ac_init_help" = "long"; then
958 # Omit some internal or obsolete options to make the list less imposing.
959 # This message is too long to be a string in the A/UX 3.1 sh.
960 cat <<_ACEOF
961 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
963 Usage: $0 [OPTION]... [VAR=VALUE]...
965 To assign environment variables (e.g., CC, CFLAGS...), specify them as
966 VAR=VALUE. See below for descriptions of some of the useful variables.
968 Defaults for the options are specified in brackets.
970 Configuration:
971 -h, --help display this help and exit
972 --help=short display options specific to this package
973 --help=recursive display the short help of all the included packages
974 -V, --version display version information and exit
975 -q, --quiet, --silent do not print \`checking...' messages
976 --cache-file=FILE cache test results in FILE [disabled]
977 -C, --config-cache alias for \`--cache-file=config.cache'
978 -n, --no-create do not create output files
979 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 _ACEOF
983 cat <<_ACEOF
984 Installation directories:
985 --prefix=PREFIX install architecture-independent files in PREFIX
986 [$ac_default_prefix]
987 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
988 [PREFIX]
990 By default, \`make install' will install all the files in
991 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
992 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
993 for instance \`--prefix=\$HOME'.
995 For better control, use the options below.
997 Fine tuning of the installation directories:
998 --bindir=DIR user executables [EPREFIX/bin]
999 --sbindir=DIR system admin executables [EPREFIX/sbin]
1000 --libexecdir=DIR program executables [EPREFIX/libexec]
1001 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1002 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1003 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1004 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1005 --libdir=DIR object code libraries [EPREFIX/lib]
1006 --includedir=DIR C header files [PREFIX/include]
1007 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1008 --infodir=DIR info documentation [PREFIX/info]
1009 --mandir=DIR man documentation [PREFIX/man]
1010 _ACEOF
1012 cat <<\_ACEOF
1014 Program names:
1015 --program-prefix=PREFIX prepend PREFIX to installed program names
1016 --program-suffix=SUFFIX append SUFFIX to installed program names
1017 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1019 System types:
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 _ACEOF
1023 fi
1025 if test -n "$ac_init_help"; then
1026 case $ac_init_help in
1027 short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1028 esac
1029 cat <<\_ACEOF
1031 Optional Features:
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1034 --enable-maintainer-mode enable make rules and dependencies not useful
1035 (and sometimes confusing) to the casual installer
1036 --enable-shared[=PKGS]
1037 build shared libraries [default=yes]
1038 --enable-static[=PKGS]
1039 build static libraries [default=yes]
1040 --enable-fast-install[=PKGS]
1041 optimize for fast installation [default=yes]
1042 --disable-dependency-tracking speeds up one-time build
1043 --enable-dependency-tracking do not reject slow dependency extractors
1044 --disable-libtool-lock avoid locking (might break parallel builds)
1046 Optional Packages:
1047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1049 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1050 --with-pic try to use only PIC/non-PIC objects [default=use
1051 both]
1052 --with-tags[=TAGS]
1053 include additional configurations [automatic]
1055 Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CPP C preprocessor
1063 CXX C++ compiler command
1064 CXXFLAGS C++ compiler flags
1065 CXXCPP C++ preprocessor
1066 PLATFORM Platform to build. Options are: 'omapl138' 'omap54xx_smp'
1067 'tci6636' 'tci6638' and 'dra7xx'. If not defined all platforms
1068 will be built.
1069 CMEM_INSTALL_DIR
1070 Installation path directory to the CMEM libraries
1071 KERNEL_INSTALL_DIR
1072 Installation path to the Linux kernel.
1073 DRMLIB_PREFIX
1074 Installation location to the DRM library.
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1079 _ACEOF
1080 fi
1082 if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1084 ac_popdir=`pwd`
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1087 ac_builddir=.
1089 if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094 ac_dir_suffix= ac_top_builddir=
1095 fi
1097 case $srcdir in
1098 .) # No --srcdir option. We are building in place.
1099 ac_srcdir=.
1100 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=.
1102 else
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 fi ;;
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1108 *) # Relative path.
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118 case "$ac_dir" in
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136 case $ac_srcdir in
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149 esac;;
1150 esac
1152 cd $ac_dir
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1155 echo
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1158 echo
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
1161 test -f $ac_srcdir/configure.in; then
1162 echo
1163 $ac_configure --help
1164 else
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166 fi
1167 cd $ac_popdir
1168 done
1169 fi
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173 cat <<\_ACEOF
1174 TI IPC configure 3.0.0
1175 generated by GNU Autoconf 2.59
1177 Copyright (C) 2003 Free Software Foundation, Inc.
1178 This configure script is free software; the Free Software Foundation
1179 gives unlimited permission to copy, distribute and modify it.
1180 _ACEOF
1181 exit 0
1182 fi
1183 exec 5>config.log
1184 cat >&5 <<_ACEOF
1185 This file contains any messages produced by compilers while
1186 running configure, to aid debugging if configure makes a mistake.
1188 It was created by TI IPC $as_me 3.0.0, which was
1189 generated by GNU Autoconf 2.59. Invocation command line was
1191 $ $0 $@
1193 _ACEOF
1194 {
1195 cat <<_ASUNAME
1196 ## --------- ##
1197 ## Platform. ##
1198 ## --------- ##
1200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217 _ASUNAME
1219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220 for as_dir in $PATH
1221 do
1222 IFS=$as_save_IFS
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1225 done
1227 } >&5
1229 cat >&5 <<_ACEOF
1232 ## ----------- ##
1233 ## Core tests. ##
1234 ## ----------- ##
1236 _ACEOF
1239 # Keep a trace of the command line.
1240 # Strip out --no-create and --no-recursion so they do not pile up.
1241 # Strip out --silent because we don't want to record it for future runs.
1242 # Also quote any args containing shell meta-characters.
1243 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_configure_args=
1245 ac_configure_args0=
1246 ac_configure_args1=
1247 ac_sep=
1248 ac_must_keep_next=false
1249 for ac_pass in 1 2
1250 do
1251 for ac_arg
1252 do
1253 case $ac_arg in
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 continue ;;
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 esac
1261 case $ac_pass in
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263 2)
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
1266 ac_must_keep_next=false # Got value, back to normal.
1267 else
1268 case $ac_arg in
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275 esac
1276 ;;
1277 -* ) ac_must_keep_next=true ;;
1278 esac
1279 fi
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1282 ac_sep=" "
1283 ;;
1284 esac
1285 done
1286 done
1287 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1290 # When interrupted or exit'd, cleanup temporary files, and complete
1291 # config.log. We remove comments because anyway the quotes in there
1292 # would cause problems or look ugly.
1293 # WARNING: Be sure not to use single quotes in there, as some shells,
1294 # such as our DU 5.0 friend, will then `close' the trap.
1295 trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1297 {
1298 echo
1300 cat <<\_ASBOX
1301 ## ---------------- ##
1302 ## Cache variables. ##
1303 ## ---------------- ##
1304 _ASBOX
1305 echo
1306 # The following way of writing the cache mishandles newlines in values,
1307 {
1308 (set) 2>&1 |
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310 *ac_space=\ *)
1311 sed -n \
1312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1314 ;;
1315 *)
1316 sed -n \
1317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ;;
1319 esac;
1320 }
1321 echo
1323 cat <<\_ASBOX
1324 ## ----------------- ##
1325 ## Output variables. ##
1326 ## ----------------- ##
1327 _ASBOX
1328 echo
1329 for ac_var in $ac_subst_vars
1330 do
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1333 done | sort
1334 echo
1336 if test -n "$ac_subst_files"; then
1337 cat <<\_ASBOX
1338 ## ------------- ##
1339 ## Output files. ##
1340 ## ------------- ##
1341 _ASBOX
1342 echo
1343 for ac_var in $ac_subst_files
1344 do
1345 eval ac_val=$`echo $ac_var`
1346 echo "$ac_var='"'"'$ac_val'"'"'"
1347 done | sort
1348 echo
1349 fi
1351 if test -s confdefs.h; then
1352 cat <<\_ASBOX
1353 ## ----------- ##
1354 ## confdefs.h. ##
1355 ## ----------- ##
1356 _ASBOX
1357 echo
1358 sed "/^$/d" confdefs.h | sort
1359 echo
1360 fi
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1364 } >&5
1365 rm -f core *.core &&
1366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367 exit $exit_status
1368 ' 0
1369 for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371 done
1372 ac_signal=0
1374 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1375 rm -rf conftest* confdefs.h
1376 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377 echo >confdefs.h
1379 # Predefined preprocessor variables.
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_NAME "$PACKAGE_NAME"
1383 _ACEOF
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388 _ACEOF
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1393 _ACEOF
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_STRING "$PACKAGE_STRING"
1398 _ACEOF
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403 _ACEOF
1406 # Let the site file select an alternate cache file if it wants to.
1407 # Prefer explicitly selected file to automatically selected ones.
1408 if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411 else
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413 fi
1414 fi
1415 for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418 echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1420 . "$ac_site_file"
1421 fi
1422 done
1424 if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429 echo "$as_me: loading cache $cache_file" >&6;}
1430 case $cache_file in
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1433 esac
1434 fi
1435 else
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437 echo "$as_me: creating cache $cache_file" >&6;}
1438 >$cache_file
1439 fi
1441 # Check that the precious variables saved in the cache have kept the same
1442 # value.
1443 ac_cache_corrupted=false
1444 for ac_var in `(set) 2>&1 |
1445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1451 set,)
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1455 ,set)
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1459 ,);;
1460 *)
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
1462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1463 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1465 echo "$as_me: former value: $ac_old_val" >&2;}
1466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1467 echo "$as_me: current value: $ac_new_val" >&2;}
1468 ac_cache_corrupted=:
1469 fi;;
1470 esac
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1473 case $ac_new_val in
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1477 esac
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481 esac
1482 fi
1483 done
1484 if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1490 fi
1492 ac_ext=c
1493 ac_cpp='$CPP $CPPFLAGS'
1494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 # Check common src files to ensure integrity of the package
1528 # Set auxiliary build tools directory
1529 ac_aux_dir=
1530 for ac_dir in linux/build-aux $srcdir/linux/build-aux; do
1531 if test -f $ac_dir/install-sh; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/install-sh -c"
1534 break
1535 elif test -f $ac_dir/install.sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install.sh -c"
1538 break
1539 elif test -f $ac_dir/shtool; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/shtool install -c"
1542 break
1543 fi
1544 done
1545 if test -z "$ac_aux_dir"; then
1546 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&5
1547 echo "$as_me: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&2;}
1548 { (exit 1); exit 1; }; }
1549 fi
1550 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1555 # Initilize automake
1556 am__api_version="1.9"
1557 # Find a good install program. We prefer a C program (faster),
1558 # so one script is as good as another. But avoid the broken or
1559 # incompatible versions:
1560 # SysV /etc/install, /usr/sbin/install
1561 # SunOS /usr/etc/install
1562 # IRIX /sbin/install
1563 # AIX /bin/install
1564 # AmigaOS /C/install, which installs bootblocks on floppy discs
1565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1568 # OS/2's system install, which has a completely different semantic
1569 # ./install, which can be erroneously created by make from ./install.sh.
1570 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1571 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1572 if test -z "$INSTALL"; then
1573 if test "${ac_cv_path_install+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 for as_dir in $PATH
1578 do
1579 IFS=$as_save_IFS
1580 test -z "$as_dir" && as_dir=.
1581 # Account for people who put trailing slashes in PATH elements.
1582 case $as_dir/ in
1583 ./ | .// | /cC/* | \
1584 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1585 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1586 /usr/ucb/* ) ;;
1587 *)
1588 # OSF1 and SCO ODT 3.0 have their own names for install.
1589 # Don't use installbsd from OSF since it installs stuff as root
1590 # by default.
1591 for ac_prog in ginstall scoinst install; do
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1594 if test $ac_prog = install &&
1595 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1596 # AIX install. It has an incompatible calling convention.
1597 :
1598 elif test $ac_prog = install &&
1599 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1600 # program-specific install script used by HP pwplus--don't use.
1601 :
1602 else
1603 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1604 break 3
1605 fi
1606 fi
1607 done
1608 done
1609 ;;
1610 esac
1611 done
1614 fi
1615 if test "${ac_cv_path_install+set}" = set; then
1616 INSTALL=$ac_cv_path_install
1617 else
1618 # As a last resort, use the slow shell script. We don't cache a
1619 # path for INSTALL within a source directory, because that will
1620 # break other packages using the cache if that directory is
1621 # removed, or if the path is relative.
1622 INSTALL=$ac_install_sh
1623 fi
1624 fi
1625 echo "$as_me:$LINENO: result: $INSTALL" >&5
1626 echo "${ECHO_T}$INSTALL" >&6
1628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1629 # It thinks the first close brace ends the variable substitution.
1630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1632 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1634 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1636 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1637 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1638 # Just in case
1639 sleep 1
1640 echo timestamp > conftest.file
1641 # Do `set' in a subshell so we don't clobber the current shell's
1642 # arguments. Must try -L first in case configure is actually a
1643 # symlink; some systems play weird games with the mod time of symlinks
1644 # (eg FreeBSD returns the mod time of the symlink's containing
1645 # directory).
1646 if (
1647 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1648 if test "$*" = "X"; then
1649 # -L didn't work.
1650 set X `ls -t $srcdir/configure conftest.file`
1651 fi
1652 rm -f conftest.file
1653 if test "$*" != "X $srcdir/configure conftest.file" \
1654 && test "$*" != "X conftest.file $srcdir/configure"; then
1656 # If neither matched, then we have a broken ls. This can happen
1657 # if, for instance, CONFIG_SHELL is bash and it inherits a
1658 # broken ls alias from the environment. This has actually
1659 # happened. Such a system could not be considered "sane".
1660 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1661 alias in your environment" >&5
1662 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1663 alias in your environment" >&2;}
1664 { (exit 1); exit 1; }; }
1665 fi
1667 test "$2" = conftest.file
1668 )
1669 then
1670 # Ok.
1671 :
1672 else
1673 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1674 Check your system clock" >&5
1675 echo "$as_me: error: newly created file is older than distributed files!
1676 Check your system clock" >&2;}
1677 { (exit 1); exit 1; }; }
1678 fi
1679 echo "$as_me:$LINENO: result: yes" >&5
1680 echo "${ECHO_T}yes" >&6
1681 test "$program_prefix" != NONE &&
1682 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1683 # Use a double $ so make ignores it.
1684 test "$program_suffix" != NONE &&
1685 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1686 # Double any \ or $. echo might interpret backslashes.
1687 # By default was `s,x,x', remove it if useless.
1688 cat <<\_ACEOF >conftest.sed
1689 s/[\\$]/&&/g;s/;s,x,x,$//
1690 _ACEOF
1691 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1692 rm conftest.sed
1694 # expand $ac_aux_dir to an absolute path
1695 am_aux_dir=`cd $ac_aux_dir && pwd`
1697 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1698 # Use eval to expand $SHELL
1699 if eval "$MISSING --run true"; then
1700 am_missing_run="$MISSING --run "
1701 else
1702 am_missing_run=
1703 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1704 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1705 fi
1707 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1708 # We used to keeping the `.' as first argument, in order to
1709 # allow $(mkdir_p) to be used without argument. As in
1710 # $(mkdir_p) $(somedir)
1711 # where $(somedir) is conditionally defined. However this is wrong
1712 # for two reasons:
1713 # 1. if the package is installed by a user who cannot write `.'
1714 # make install will fail,
1715 # 2. the above comment should most certainly read
1716 # $(mkdir_p) $(DESTDIR)$(somedir)
1717 # so it does not work when $(somedir) is undefined and
1718 # $(DESTDIR) is not.
1719 # To support the latter case, we have to write
1720 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1721 # so the `.' trick is pointless.
1722 mkdir_p='mkdir -p --'
1723 else
1724 # On NextStep and OpenStep, the `mkdir' command does not
1725 # recognize any option. It will interpret all options as
1726 # directories to create, and then abort because `.' already
1727 # exists.
1728 for d in ./-p ./--version;
1729 do
1730 test -d $d && rmdir $d
1731 done
1732 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1733 if test -f "$ac_aux_dir/mkinstalldirs"; then
1734 mkdir_p='$(mkinstalldirs)'
1735 else
1736 mkdir_p='$(install_sh) -d'
1737 fi
1738 fi
1740 for ac_prog in gawk mawk nawk awk
1741 do
1742 # Extract the first word of "$ac_prog", so it can be a program name with args.
1743 set dummy $ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_AWK+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749 if test -n "$AWK"; then
1750 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1751 else
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753 for as_dir in $PATH
1754 do
1755 IFS=$as_save_IFS
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_AWK="$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761 break 2
1762 fi
1763 done
1764 done
1766 fi
1767 fi
1768 AWK=$ac_cv_prog_AWK
1769 if test -n "$AWK"; then
1770 echo "$as_me:$LINENO: result: $AWK" >&5
1771 echo "${ECHO_T}$AWK" >&6
1772 else
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775 fi
1777 test -n "$AWK" && break
1778 done
1780 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1781 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1782 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1783 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 else
1786 cat >conftest.make <<\_ACEOF
1787 all:
1788 @echo 'ac_maketemp="$(MAKE)"'
1789 _ACEOF
1790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1791 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1792 if test -n "$ac_maketemp"; then
1793 eval ac_cv_prog_make_${ac_make}_set=yes
1794 else
1795 eval ac_cv_prog_make_${ac_make}_set=no
1796 fi
1797 rm -f conftest.make
1798 fi
1799 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1800 echo "$as_me:$LINENO: result: yes" >&5
1801 echo "${ECHO_T}yes" >&6
1802 SET_MAKE=
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1806 SET_MAKE="MAKE=${MAKE-make}"
1807 fi
1809 rm -rf .tst 2>/dev/null
1810 mkdir .tst 2>/dev/null
1811 if test -d .tst; then
1812 am__leading_dot=.
1813 else
1814 am__leading_dot=_
1815 fi
1816 rmdir .tst 2>/dev/null
1818 # test to see if srcdir already configured
1819 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1820 test -f $srcdir/config.status; then
1821 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1822 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1823 { (exit 1); exit 1; }; }
1824 fi
1826 # test whether we have cygpath
1827 if test -z "$CYGPATH_W"; then
1828 if (cygpath --version) >/dev/null 2>/dev/null; then
1829 CYGPATH_W='cygpath -w'
1830 else
1831 CYGPATH_W=echo
1832 fi
1833 fi
1836 # Define the identity of the package.
1837 PACKAGE='ti-ipc'
1838 VERSION='3.0.0'
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE "$PACKAGE"
1843 _ACEOF
1846 cat >>confdefs.h <<_ACEOF
1847 #define VERSION "$VERSION"
1848 _ACEOF
1850 # Some tools Automake needs.
1852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1868 # Installed binaries are usually stripped using `strip' when the user
1869 # run `make install-strip'. However `strip' might not be the right
1870 # tool to use in cross-compilation environments, therefore Automake
1871 # will honor the `STRIP' environment variable to overrule this program.
1872 if test "$cross_compiling" != no; then
1873 if test -n "$ac_tool_prefix"; then
1874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}strip; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_STRIP+set}" = set; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 if test -n "$STRIP"; then
1882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887 IFS=$as_save_IFS
1888 test -z "$as_dir" && as_dir=.
1889 for ac_exec_ext in '' $ac_executable_extensions; do
1890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893 break 2
1894 fi
1895 done
1896 done
1898 fi
1899 fi
1900 STRIP=$ac_cv_prog_STRIP
1901 if test -n "$STRIP"; then
1902 echo "$as_me:$LINENO: result: $STRIP" >&5
1903 echo "${ECHO_T}$STRIP" >&6
1904 else
1905 echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1909 fi
1910 if test -z "$ac_cv_prog_STRIP"; then
1911 ac_ct_STRIP=$STRIP
1912 # Extract the first word of "strip", so it can be a program name with args.
1913 set dummy strip; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 if test -n "$ac_ct_STRIP"; then
1920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_ac_ct_STRIP="strip"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 break 2
1932 fi
1933 done
1934 done
1936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1937 fi
1938 fi
1939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1940 if test -n "$ac_ct_STRIP"; then
1941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1942 echo "${ECHO_T}$ac_ct_STRIP" >&6
1943 else
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1948 STRIP=$ac_ct_STRIP
1949 else
1950 STRIP="$ac_cv_prog_STRIP"
1951 fi
1953 fi
1954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1956 # We need awk for the "check" target. The system "awk" is bad on
1957 # some platforms.
1958 # Always define AMTAR for backward compatibility.
1960 AMTAR=${AMTAR-"${am_missing_run}tar"}
1962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1969 # Disabling maintainer mode to prevent rebuild of configure script
1970 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1971 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1972 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1973 if test "${enable_maintainer_mode+set}" = set; then
1974 enableval="$enable_maintainer_mode"
1975 USE_MAINTAINER_MODE=$enableval
1976 else
1977 USE_MAINTAINER_MODE=no
1978 fi;
1979 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1980 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1983 if test $USE_MAINTAINER_MODE = yes; then
1984 MAINTAINER_MODE_TRUE=
1985 MAINTAINER_MODE_FALSE='#'
1986 else
1987 MAINTAINER_MODE_TRUE='#'
1988 MAINTAINER_MODE_FALSE=
1989 fi
1991 MAINT=$MAINTAINER_MODE_TRUE
1995 # Initalize libtool but disable fortran check
1996 # Check whether --enable-shared or --disable-shared was given.
1997 if test "${enable_shared+set}" = set; then
1998 enableval="$enable_shared"
1999 p=${PACKAGE-default}
2000 case $enableval in
2001 yes) enable_shared=yes ;;
2002 no) enable_shared=no ;;
2003 *)
2004 enable_shared=no
2005 # Look at the argument we got. We use all the common list separators.
2006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2007 for pkg in $enableval; do
2008 IFS="$lt_save_ifs"
2009 if test "X$pkg" = "X$p"; then
2010 enable_shared=yes
2011 fi
2012 done
2013 IFS="$lt_save_ifs"
2014 ;;
2015 esac
2016 else
2017 enable_shared=yes
2018 fi;
2020 # Check whether --enable-static or --disable-static was given.
2021 if test "${enable_static+set}" = set; then
2022 enableval="$enable_static"
2023 p=${PACKAGE-default}
2024 case $enableval in
2025 yes) enable_static=yes ;;
2026 no) enable_static=no ;;
2027 *)
2028 enable_static=no
2029 # Look at the argument we got. We use all the common list separators.
2030 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2031 for pkg in $enableval; do
2032 IFS="$lt_save_ifs"
2033 if test "X$pkg" = "X$p"; then
2034 enable_static=yes
2035 fi
2036 done
2037 IFS="$lt_save_ifs"
2038 ;;
2039 esac
2040 else
2041 enable_static=yes
2042 fi;
2044 # Check whether --enable-fast-install or --disable-fast-install was given.
2045 if test "${enable_fast_install+set}" = set; then
2046 enableval="$enable_fast_install"
2047 p=${PACKAGE-default}
2048 case $enableval in
2049 yes) enable_fast_install=yes ;;
2050 no) enable_fast_install=no ;;
2051 *)
2052 enable_fast_install=no
2053 # Look at the argument we got. We use all the common list separators.
2054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2055 for pkg in $enableval; do
2056 IFS="$lt_save_ifs"
2057 if test "X$pkg" = "X$p"; then
2058 enable_fast_install=yes
2059 fi
2060 done
2061 IFS="$lt_save_ifs"
2062 ;;
2063 esac
2064 else
2065 enable_fast_install=yes
2066 fi;
2068 # Make sure we can run config.sub.
2069 $ac_config_sub sun4 >/dev/null 2>&1 ||
2070 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2071 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2072 { (exit 1); exit 1; }; }
2074 echo "$as_me:$LINENO: checking build system type" >&5
2075 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2076 if test "${ac_cv_build+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 ac_cv_build_alias=$build_alias
2080 test -z "$ac_cv_build_alias" &&
2081 ac_cv_build_alias=`$ac_config_guess`
2082 test -z "$ac_cv_build_alias" &&
2083 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2084 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2085 { (exit 1); exit 1; }; }
2086 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2087 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2088 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2089 { (exit 1); exit 1; }; }
2091 fi
2092 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2093 echo "${ECHO_T}$ac_cv_build" >&6
2094 build=$ac_cv_build
2095 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2096 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2097 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2100 echo "$as_me:$LINENO: checking host system type" >&5
2101 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2102 if test "${ac_cv_host+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 else
2105 ac_cv_host_alias=$host_alias
2106 test -z "$ac_cv_host_alias" &&
2107 ac_cv_host_alias=$ac_cv_build_alias
2108 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2109 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2110 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2113 fi
2114 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2115 echo "${ECHO_T}$ac_cv_host" >&6
2116 host=$ac_cv_host
2117 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2118 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2119 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2122 DEPDIR="${am__leading_dot}deps"
2124 ac_config_commands="$ac_config_commands depfiles"
2127 am_make=${MAKE-make}
2128 cat > confinc << 'END'
2129 am__doit:
2130 @echo done
2131 .PHONY: am__doit
2132 END
2133 # If we don't find an include directive, just comment out the code.
2134 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2135 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2136 am__include="#"
2137 am__quote=
2138 _am_result=none
2139 # First try GNU make style include.
2140 echo "include confinc" > confmf
2141 # We grep out `Entering directory' and `Leaving directory'
2142 # messages which can occur if `w' ends up in MAKEFLAGS.
2143 # In particular we don't look at `^make:' because GNU make might
2144 # be invoked under some other name (usually "gmake"), in which
2145 # case it prints its new name instead of `make'.
2146 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2147 am__include=include
2148 am__quote=
2149 _am_result=GNU
2150 fi
2151 # Now try BSD make style include.
2152 if test "$am__include" = "#"; then
2153 echo '.include "confinc"' > confmf
2154 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2155 am__include=.include
2156 am__quote="\""
2157 _am_result=BSD
2158 fi
2159 fi
2162 echo "$as_me:$LINENO: result: $_am_result" >&5
2163 echo "${ECHO_T}$_am_result" >&6
2164 rm -f confinc confmf
2166 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2167 if test "${enable_dependency_tracking+set}" = set; then
2168 enableval="$enable_dependency_tracking"
2170 fi;
2171 if test "x$enable_dependency_tracking" != xno; then
2172 am_depcomp="$ac_aux_dir/depcomp"
2173 AMDEPBACKSLASH='\'
2174 fi
2177 if test "x$enable_dependency_tracking" != xno; then
2178 AMDEP_TRUE=
2179 AMDEP_FALSE='#'
2180 else
2181 AMDEP_TRUE='#'
2182 AMDEP_FALSE=
2183 fi
2187 ac_ext=c
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192 if test -n "$ac_tool_prefix"; then
2193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2194 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2195 echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197 if test "${ac_cv_prog_CC+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200 if test -n "$CC"; then
2201 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 break 2
2213 fi
2214 done
2215 done
2217 fi
2218 fi
2219 CC=$ac_cv_prog_CC
2220 if test -n "$CC"; then
2221 echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6
2223 else
2224 echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6
2226 fi
2228 fi
2229 if test -z "$ac_cv_prog_CC"; then
2230 ac_ct_CC=$CC
2231 # Extract the first word of "gcc", so it can be a program name with args.
2232 set dummy gcc; ac_word=$2
2233 echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 if test -n "$ac_ct_CC"; then
2239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 else
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
2247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2248 ac_cv_prog_ac_ct_CC="gcc"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2251 fi
2252 done
2253 done
2255 fi
2256 fi
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260 echo "${ECHO_T}$ac_ct_CC" >&6
2261 else
2262 echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2264 fi
2266 CC=$ac_ct_CC
2267 else
2268 CC="$ac_cv_prog_CC"
2269 fi
2271 if test -z "$CC"; then
2272 if test -n "$ac_tool_prefix"; then
2273 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2274 set dummy ${ac_tool_prefix}cc; ac_word=$2
2275 echo "$as_me:$LINENO: checking for $ac_word" >&5
2276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2277 if test "${ac_cv_prog_CC+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 else
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
2289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2290 ac_cv_prog_CC="${ac_tool_prefix}cc"
2291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2292 break 2
2293 fi
2294 done
2295 done
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
2308 fi
2309 if test -z "$ac_cv_prog_CC"; then
2310 ac_ct_CC=$CC
2311 # Extract the first word of "cc", so it can be a program name with args.
2312 set dummy cc; ac_word=$2
2313 echo "$as_me:$LINENO: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318 if test -n "$ac_ct_CC"; then
2319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 else
2321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 for as_dir in $PATH
2323 do
2324 IFS=$as_save_IFS
2325 test -z "$as_dir" && as_dir=.
2326 for ac_exec_ext in '' $ac_executable_extensions; do
2327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2328 ac_cv_prog_ac_ct_CC="cc"
2329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2330 break 2
2331 fi
2332 done
2333 done
2335 fi
2336 fi
2337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2338 if test -n "$ac_ct_CC"; then
2339 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2340 echo "${ECHO_T}$ac_ct_CC" >&6
2341 else
2342 echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6
2344 fi
2346 CC=$ac_ct_CC
2347 else
2348 CC="$ac_cv_prog_CC"
2349 fi
2351 fi
2352 if test -z "$CC"; then
2353 # Extract the first word of "cc", so it can be a program name with args.
2354 set dummy cc; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_prog_CC+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 if test -n "$CC"; then
2361 ac_cv_prog_CC="$CC" # Let the user override the test.
2362 else
2363 ac_prog_rejected=no
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367 IFS=$as_save_IFS
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2372 ac_prog_rejected=yes
2373 continue
2374 fi
2375 ac_cv_prog_CC="cc"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2378 fi
2379 done
2380 done
2382 if test $ac_prog_rejected = yes; then
2383 # We found a bogon in the path, so make sure we never use it.
2384 set dummy $ac_cv_prog_CC
2385 shift
2386 if test $# != 0; then
2387 # We chose a different compiler from the bogus one.
2388 # However, it has the same basename, so the bogon will be chosen
2389 # first if we set CC to just the basename; use the full file name.
2390 shift
2391 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2392 fi
2393 fi
2394 fi
2395 fi
2396 CC=$ac_cv_prog_CC
2397 if test -n "$CC"; then
2398 echo "$as_me:$LINENO: result: $CC" >&5
2399 echo "${ECHO_T}$CC" >&6
2400 else
2401 echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6
2403 fi
2405 fi
2406 if test -z "$CC"; then
2407 if test -n "$ac_tool_prefix"; then
2408 for ac_prog in cl
2409 do
2410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2412 echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2414 if test "${ac_cv_prog_CC+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC="$CC" # Let the user override the test.
2419 else
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH
2422 do
2423 IFS=$as_save_IFS
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2427 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 break 2
2430 fi
2431 done
2432 done
2434 fi
2435 fi
2436 CC=$ac_cv_prog_CC
2437 if test -n "$CC"; then
2438 echo "$as_me:$LINENO: result: $CC" >&5
2439 echo "${ECHO_T}$CC" >&6
2440 else
2441 echo "$as_me:$LINENO: result: no" >&5
2442 echo "${ECHO_T}no" >&6
2443 fi
2445 test -n "$CC" && break
2446 done
2447 fi
2448 if test -z "$CC"; then
2449 ac_ct_CC=$CC
2450 for ac_prog in cl
2451 do
2452 # Extract the first word of "$ac_prog", so it can be a program name with args.
2453 set dummy $ac_prog; ac_word=$2
2454 echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2469 ac_cv_prog_ac_ct_CC="$ac_prog"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473 done
2474 done
2476 fi
2477 fi
2478 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2479 if test -n "$ac_ct_CC"; then
2480 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2481 echo "${ECHO_T}$ac_ct_CC" >&6
2482 else
2483 echo "$as_me:$LINENO: result: no" >&5
2484 echo "${ECHO_T}no" >&6
2485 fi
2487 test -n "$ac_ct_CC" && break
2488 done
2490 CC=$ac_ct_CC
2491 fi
2493 fi
2496 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2497 See \`config.log' for more details." >&5
2498 echo "$as_me: error: no acceptable C compiler found in \$PATH
2499 See \`config.log' for more details." >&2;}
2500 { (exit 1); exit 1; }; }
2502 # Provide some information about the compiler.
2503 echo "$as_me:$LINENO:" \
2504 "checking for C compiler version" >&5
2505 ac_compiler=`set X $ac_compile; echo $2`
2506 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2507 (eval $ac_compiler --version </dev/null >&5) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2512 (eval $ac_compiler -v </dev/null >&5) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2517 (eval $ac_compiler -V </dev/null >&5) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2522 cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h. */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2529 int
2530 main ()
2531 {
2533 ;
2534 return 0;
2535 }
2536 _ACEOF
2537 ac_clean_files_save=$ac_clean_files
2538 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2539 # Try to create an executable without -o first, disregard a.out.
2540 # It will help us diagnose broken compilers, and finding out an intuition
2541 # of exeext.
2542 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2543 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2544 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2545 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2546 (eval $ac_link_default) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }; then
2550 # Find the output, starting from the most likely. This scheme is
2551 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2552 # resort.
2554 # Be careful to initialize this variable, since it used to be cached.
2555 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2556 ac_cv_exeext=
2557 # b.out is created by i960 compilers.
2558 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2559 do
2560 test -f "$ac_file" || continue
2561 case $ac_file in
2562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2563 ;;
2564 conftest.$ac_ext )
2565 # This is the source file.
2566 ;;
2567 [ab].out )
2568 # We found the default executable, but exeext='' is most
2569 # certainly right.
2570 break;;
2571 *.* )
2572 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2573 # FIXME: I believe we export ac_cv_exeext for Libtool,
2574 # but it would be cool to find out if it's true. Does anybody
2575 # maintain Libtool? --akim.
2576 export ac_cv_exeext
2577 break;;
2578 * )
2579 break;;
2580 esac
2581 done
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2586 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2587 See \`config.log' for more details." >&5
2588 echo "$as_me: error: C compiler cannot create executables
2589 See \`config.log' for more details." >&2;}
2590 { (exit 77); exit 77; }; }
2591 fi
2593 ac_exeext=$ac_cv_exeext
2594 echo "$as_me:$LINENO: result: $ac_file" >&5
2595 echo "${ECHO_T}$ac_file" >&6
2597 # Check the compiler produces executables we can run. If not, either
2598 # the compiler is broken, or we cross compile.
2599 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2600 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2601 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2602 # If not cross compiling, check that we can run a simple program.
2603 if test "$cross_compiling" != yes; then
2604 if { ac_try='./$ac_file'
2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 cross_compiling=no
2611 else
2612 if test "$cross_compiling" = maybe; then
2613 cross_compiling=yes
2614 else
2615 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2616 If you meant to cross compile, use \`--host'.
2617 See \`config.log' for more details." >&5
2618 echo "$as_me: error: cannot run C compiled programs.
2619 If you meant to cross compile, use \`--host'.
2620 See \`config.log' for more details." >&2;}
2621 { (exit 1); exit 1; }; }
2622 fi
2623 fi
2624 fi
2625 echo "$as_me:$LINENO: result: yes" >&5
2626 echo "${ECHO_T}yes" >&6
2628 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2629 ac_clean_files=$ac_clean_files_save
2630 # Check the compiler produces executables we can run. If not, either
2631 # the compiler is broken, or we cross compile.
2632 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2633 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2634 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2635 echo "${ECHO_T}$cross_compiling" >&6
2637 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2638 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2640 (eval $ac_link) 2>&5
2641 ac_status=$?
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); }; then
2644 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2645 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2646 # work properly (i.e., refer to `conftest.exe'), while it won't with
2647 # `rm'.
2648 for ac_file in conftest.exe conftest conftest.*; do
2649 test -f "$ac_file" || continue
2650 case $ac_file in
2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2652 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2653 export ac_cv_exeext
2654 break;;
2655 * ) break;;
2656 esac
2657 done
2658 else
2659 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }
2664 fi
2666 rm -f conftest$ac_cv_exeext
2667 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2668 echo "${ECHO_T}$ac_cv_exeext" >&6
2670 rm -f conftest.$ac_ext
2671 EXEEXT=$ac_cv_exeext
2672 ac_exeext=$EXEEXT
2673 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2674 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2675 if test "${ac_cv_objext+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678 cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2685 int
2686 main ()
2687 {
2689 ;
2690 return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.o conftest.obj
2694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2695 (eval $ac_compile) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; then
2699 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2700 case $ac_file in
2701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2703 break;;
2704 esac
2705 done
2706 else
2707 echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2710 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2711 See \`config.log' for more details." >&5
2712 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2713 See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2715 fi
2717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2718 fi
2719 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2720 echo "${ECHO_T}$ac_cv_objext" >&6
2721 OBJEXT=$ac_cv_objext
2722 ac_objext=$OBJEXT
2723 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2724 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2725 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2726 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2735 int
2736 main ()
2737 {
2738 #ifndef __GNUC__
2739 choke me
2740 #endif
2742 ;
2743 return 0;
2744 }
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748 (eval $ac_compile) 2>conftest.er1
2749 ac_status=$?
2750 grep -v '^ *+' conftest.er1 >conftest.err
2751 rm -f conftest.er1
2752 cat conftest.err >&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); } &&
2755 { ac_try='test -z "$ac_c_werror_flag"
2756 || test ! -s conftest.err'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; } &&
2762 { ac_try='test -s conftest.$ac_objext'
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; }; then
2768 ac_compiler_gnu=yes
2769 else
2770 echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2773 ac_compiler_gnu=no
2774 fi
2775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2776 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2778 fi
2779 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2780 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2781 GCC=`test $ac_compiler_gnu = yes && echo yes`
2782 ac_test_CFLAGS=${CFLAGS+set}
2783 ac_save_CFLAGS=$CFLAGS
2784 CFLAGS="-g"
2785 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2786 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2787 if test "${ac_cv_prog_cc_g+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 else
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h. */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2797 int
2798 main ()
2799 {
2801 ;
2802 return 0;
2803 }
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807 (eval $ac_compile) 2>conftest.er1
2808 ac_status=$?
2809 grep -v '^ *+' conftest.er1 >conftest.err
2810 rm -f conftest.er1
2811 cat conftest.err >&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); } &&
2814 { ac_try='test -z "$ac_c_werror_flag"
2815 || test ! -s conftest.err'
2816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817 (eval $ac_try) 2>&5
2818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 ac_cv_prog_cc_g=yes
2828 else
2829 echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 ac_cv_prog_cc_g=no
2833 fi
2834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2835 fi
2836 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2837 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2838 if test "$ac_test_CFLAGS" = set; then
2839 CFLAGS=$ac_save_CFLAGS
2840 elif test $ac_cv_prog_cc_g = yes; then
2841 if test "$GCC" = yes; then
2842 CFLAGS="-g -O2"
2843 else
2844 CFLAGS="-g"
2845 fi
2846 else
2847 if test "$GCC" = yes; then
2848 CFLAGS="-O2"
2849 else
2850 CFLAGS=
2851 fi
2852 fi
2853 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2854 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2855 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 ac_cv_prog_cc_stdc=no
2859 ac_save_CC=$CC
2860 cat >conftest.$ac_ext <<_ACEOF
2861 /* confdefs.h. */
2862 _ACEOF
2863 cat confdefs.h >>conftest.$ac_ext
2864 cat >>conftest.$ac_ext <<_ACEOF
2865 /* end confdefs.h. */
2866 #include <stdarg.h>
2867 #include <stdio.h>
2868 #include <sys/types.h>
2869 #include <sys/stat.h>
2870 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2871 struct buf { int x; };
2872 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2873 static char *e (p, i)
2874 char **p;
2875 int i;
2876 {
2877 return p[i];
2878 }
2879 static char *f (char * (*g) (char **, int), char **p, ...)
2880 {
2881 char *s;
2882 va_list v;
2883 va_start (v,p);
2884 s = g (p, va_arg (v,int));
2885 va_end (v);
2886 return s;
2887 }
2889 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2890 function prototypes and stuff, but not '\xHH' hex character constants.
2891 These don't provoke an error unfortunately, instead are silently treated
2892 as 'x'. The following induces an error, until -std1 is added to get
2893 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2894 array size at least. It's necessary to write '\x00'==0 to get something
2895 that's true only with -std1. */
2896 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2898 int test (int i, double x);
2899 struct s1 {int (*f) (int a);};
2900 struct s2 {int (*f) (double a);};
2901 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2902 int argc;
2903 char **argv;
2904 int
2905 main ()
2906 {
2907 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2908 ;
2909 return 0;
2910 }
2911 _ACEOF
2912 # Don't try gcc -ansi; that turns off useful extensions and
2913 # breaks some systems' header files.
2914 # AIX -qlanglvl=ansi
2915 # Ultrix and OSF/1 -std1
2916 # HP-UX 10.20 and later -Ae
2917 # HP-UX older versions -Aa -D_HPUX_SOURCE
2918 # SVR4 -Xc -D__EXTENSIONS__
2919 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2920 do
2921 CC="$ac_save_CC $ac_arg"
2922 rm -f conftest.$ac_objext
2923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2924 (eval $ac_compile) 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -z "$ac_c_werror_flag"
2932 || test ! -s conftest.err'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 (eval $ac_try) 2>&5
2941 ac_status=$?
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2944 ac_cv_prog_cc_stdc=$ac_arg
2945 break
2946 else
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 fi
2951 rm -f conftest.err conftest.$ac_objext
2952 done
2953 rm -f conftest.$ac_ext conftest.$ac_objext
2954 CC=$ac_save_CC
2956 fi
2958 case "x$ac_cv_prog_cc_stdc" in
2959 x|xno)
2960 echo "$as_me:$LINENO: result: none needed" >&5
2961 echo "${ECHO_T}none needed" >&6 ;;
2962 *)
2963 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2964 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2965 CC="$CC $ac_cv_prog_cc_stdc" ;;
2966 esac
2968 # Some people use a C++ compiler to compile C. Since we use `exit',
2969 # in C++ we need to declare it. In case someone uses the same compiler
2970 # for both compiling C and C++ we need to have the C++ compiler decide
2971 # the declaration of exit, since it's the most demanding environment.
2972 cat >conftest.$ac_ext <<_ACEOF
2973 #ifndef __cplusplus
2974 choke me
2975 #endif
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
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); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 for ac_declaration in \
3000 '' \
3001 'extern "C" void std::exit (int) throw (); using std::exit;' \
3002 'extern "C" void std::exit (int); using std::exit;' \
3003 'extern "C" void exit (int) throw ();' \
3004 'extern "C" void exit (int);' \
3005 'void exit (int);'
3006 do
3007 cat >conftest.$ac_ext <<_ACEOF
3008 /* confdefs.h. */
3009 _ACEOF
3010 cat confdefs.h >>conftest.$ac_ext
3011 cat >>conftest.$ac_ext <<_ACEOF
3012 /* end confdefs.h. */
3013 $ac_declaration
3014 #include <stdlib.h>
3015 int
3016 main ()
3017 {
3018 exit (42);
3019 ;
3020 return 0;
3021 }
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 :
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 continue
3051 fi
3052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 $ac_declaration
3060 int
3061 main ()
3062 {
3063 exit (42);
3064 ;
3065 return 0;
3066 }
3067 _ACEOF
3068 rm -f conftest.$ac_objext
3069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3070 (eval $ac_compile) 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -z "$ac_c_werror_flag"
3078 || test ! -s conftest.err'
3079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 (eval $ac_try) 2>&5
3081 ac_status=$?
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 (eval $ac_try) 2>&5
3087 ac_status=$?
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); }; }; then
3090 break
3091 else
3092 echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 fi
3096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3097 done
3098 rm -f conftest*
3099 if test -n "$ac_declaration"; then
3100 echo '#ifdef __cplusplus' >>confdefs.h
3101 echo $ac_declaration >>confdefs.h
3102 echo '#endif' >>confdefs.h
3103 fi
3105 else
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 fi
3110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3111 ac_ext=c
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117 depcc="$CC" am_compiler_list=
3119 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3120 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3121 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 else
3124 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3125 # We make a subdir and do the tests there. Otherwise we can end up
3126 # making bogus files that we don't know about and never remove. For
3127 # instance it was reported that on HP-UX the gcc test will end up
3128 # making a dummy file named `D' -- because `-MD' means `put the output
3129 # in D'.
3130 mkdir conftest.dir
3131 # Copy depcomp to subdir because otherwise we won't find it if we're
3132 # using a relative directory.
3133 cp "$am_depcomp" conftest.dir
3134 cd conftest.dir
3135 # We will build objects and dependencies in a subdirectory because
3136 # it helps to detect inapplicable dependency modes. For instance
3137 # both Tru64's cc and ICC support -MD to output dependencies as a
3138 # side effect of compilation, but ICC will put the dependencies in
3139 # the current directory while Tru64 will put them in the object
3140 # directory.
3141 mkdir sub
3143 am_cv_CC_dependencies_compiler_type=none
3144 if test "$am_compiler_list" = ""; then
3145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3146 fi
3147 for depmode in $am_compiler_list; do
3148 # Setup a source with many dependencies, because some compilers
3149 # like to wrap large dependency lists on column 80 (with \), and
3150 # we should not choose a depcomp mode which is confused by this.
3151 #
3152 # We need to recreate these files for each test, as the compiler may
3153 # overwrite some of them when testing with obscure command lines.
3154 # This happens at least with the AIX C compiler.
3155 : > sub/conftest.c
3156 for i in 1 2 3 4 5 6; do
3157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3158 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3159 # Solaris 8's {/usr,}/bin/sh.
3160 touch sub/conftst$i.h
3161 done
3162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3164 case $depmode in
3165 nosideeffect)
3166 # after this tag, mechanisms are not by side-effect, so they'll
3167 # only be used when explicitly requested
3168 if test "x$enable_dependency_tracking" = xyes; then
3169 continue
3170 else
3171 break
3172 fi
3173 ;;
3174 none) break ;;
3175 esac
3176 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3177 # mode. It turns out that the SunPro C++ compiler does not properly
3178 # handle `-M -o', and we need to detect this.
3179 if depmode=$depmode \
3180 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3182 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3183 >/dev/null 2>conftest.err &&
3184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3185 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3187 # icc doesn't choke on unknown options, it will just issue warnings
3188 # or remarks (even with -Werror). So we grep stderr for any message
3189 # that says an option was ignored or not supported.
3190 # When given -MP, icc 7.0 and 7.1 complain thusly:
3191 # icc: Command line warning: ignoring option '-M'; no argument required
3192 # The diagnosis changed in icc 8.0:
3193 # icc: Command line remark: option '-MP' not supported
3194 if (grep 'ignoring option' conftest.err ||
3195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3196 am_cv_CC_dependencies_compiler_type=$depmode
3197 break
3198 fi
3199 fi
3200 done
3202 cd ..
3203 rm -rf conftest.dir
3204 else
3205 am_cv_CC_dependencies_compiler_type=none
3206 fi
3208 fi
3209 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3210 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3211 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3215 if
3216 test "x$enable_dependency_tracking" != xno \
3217 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3218 am__fastdepCC_TRUE=
3219 am__fastdepCC_FALSE='#'
3220 else
3221 am__fastdepCC_TRUE='#'
3222 am__fastdepCC_FALSE=
3223 fi
3226 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3227 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3228 if test "${lt_cv_path_SED+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231 # Loop through the user's path and test for sed and gsed.
3232 # Then use that list of sed's as ones to test for truncation.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236 IFS=$as_save_IFS
3237 test -z "$as_dir" && as_dir=.
3238 for lt_ac_prog in sed gsed; do
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3241 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3242 fi
3243 done
3244 done
3245 done
3246 lt_ac_max=0
3247 lt_ac_count=0
3248 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3249 # along with /bin/sed that truncates output.
3250 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3251 test ! -f $lt_ac_sed && continue
3252 cat /dev/null > conftest.in
3253 lt_ac_count=0
3254 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3255 # Check for GNU sed and select it if it is found.
3256 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3257 lt_cv_path_SED=$lt_ac_sed
3258 break
3259 fi
3260 while true; do
3261 cat conftest.in conftest.in >conftest.tmp
3262 mv conftest.tmp conftest.in
3263 cp conftest.in conftest.nl
3264 echo >>conftest.nl
3265 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3266 cmp -s conftest.out conftest.nl || break
3267 # 10000 chars as input seems more than enough
3268 test $lt_ac_count -gt 10 && break
3269 lt_ac_count=`expr $lt_ac_count + 1`
3270 if test $lt_ac_count -gt $lt_ac_max; then
3271 lt_ac_max=$lt_ac_count
3272 lt_cv_path_SED=$lt_ac_sed
3273 fi
3274 done
3275 done
3277 fi
3279 SED=$lt_cv_path_SED
3280 echo "$as_me:$LINENO: result: $SED" >&5
3281 echo "${ECHO_T}$SED" >&6
3283 echo "$as_me:$LINENO: checking for egrep" >&5
3284 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3285 if test "${ac_cv_prog_egrep+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 else
3288 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3289 then ac_cv_prog_egrep='grep -E'
3290 else ac_cv_prog_egrep='egrep'
3291 fi
3292 fi
3293 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3294 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3295 EGREP=$ac_cv_prog_egrep
3299 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3300 if test "${with_gnu_ld+set}" = set; then
3301 withval="$with_gnu_ld"
3302 test "$withval" = no || with_gnu_ld=yes
3303 else
3304 with_gnu_ld=no
3305 fi;
3306 ac_prog=ld
3307 if test "$GCC" = yes; then
3308 # Check if gcc -print-prog-name=ld gives a path.
3309 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3310 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3311 case $host in
3312 *-*-mingw*)
3313 # gcc leaves a trailing carriage return which upsets mingw
3314 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3315 *)
3316 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3317 esac
3318 case $ac_prog in
3319 # Accept absolute paths.
3320 [\\/]* | ?:[\\/]*)
3321 re_direlt='/[^/][^/]*/\.\./'
3322 # Canonicalize the pathname of ld
3323 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3324 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3325 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3326 done
3327 test -z "$LD" && LD="$ac_prog"
3328 ;;
3329 "")
3330 # If it fails, then pretend we aren't using GCC.
3331 ac_prog=ld
3332 ;;
3333 *)
3334 # If it is relative, then search for the first ld in PATH.
3335 with_gnu_ld=unknown
3336 ;;
3337 esac
3338 elif test "$with_gnu_ld" = yes; then
3339 echo "$as_me:$LINENO: checking for GNU ld" >&5
3340 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3341 else
3342 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3343 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3344 fi
3345 if test "${lt_cv_path_LD+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 if test -z "$LD"; then
3349 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3350 for ac_dir in $PATH; do
3351 IFS="$lt_save_ifs"
3352 test -z "$ac_dir" && ac_dir=.
3353 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3354 lt_cv_path_LD="$ac_dir/$ac_prog"
3355 # Check to see if the program is GNU ld. I'd rather use --version,
3356 # but apparently some variants of GNU ld only accept -v.
3357 # Break only if it was the GNU/non-GNU ld that we prefer.
3358 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3359 *GNU* | *'with BFD'*)
3360 test "$with_gnu_ld" != no && break
3361 ;;
3362 *)
3363 test "$with_gnu_ld" != yes && break
3364 ;;
3365 esac
3366 fi
3367 done
3368 IFS="$lt_save_ifs"
3369 else
3370 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3371 fi
3372 fi
3374 LD="$lt_cv_path_LD"
3375 if test -n "$LD"; then
3376 echo "$as_me:$LINENO: result: $LD" >&5
3377 echo "${ECHO_T}$LD" >&6
3378 else
3379 echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6
3381 fi
3382 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3383 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3384 { (exit 1); exit 1; }; }
3385 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3386 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3387 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3391 case `$LD -v 2>&1 </dev/null` in
3392 *GNU* | *'with BFD'*)
3393 lt_cv_prog_gnu_ld=yes
3394 ;;
3395 *)
3396 lt_cv_prog_gnu_ld=no
3397 ;;
3398 esac
3399 fi
3400 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3401 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3402 with_gnu_ld=$lt_cv_prog_gnu_ld
3405 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3406 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3407 if test "${lt_cv_ld_reload_flag+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410 lt_cv_ld_reload_flag='-r'
3411 fi
3412 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3413 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3414 reload_flag=$lt_cv_ld_reload_flag
3415 case $reload_flag in
3416 "" | " "*) ;;
3417 *) reload_flag=" $reload_flag" ;;
3418 esac
3419 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3420 case $host_os in
3421 darwin*)
3422 if test "$GCC" = yes; then
3423 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3424 else
3425 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3426 fi
3427 ;;
3428 esac
3430 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3431 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3432 if test "${lt_cv_path_NM+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 if test -n "$NM"; then
3436 # Let the user override the test.
3437 lt_cv_path_NM="$NM"
3438 else
3439 lt_nm_to_check="${ac_tool_prefix}nm"
3440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3441 lt_nm_to_check="$lt_nm_to_check nm"
3442 fi
3443 for lt_tmp_nm in $lt_nm_to_check; do
3444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3446 IFS="$lt_save_ifs"
3447 test -z "$ac_dir" && ac_dir=.
3448 tmp_nm="$ac_dir/$lt_tmp_nm"
3449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3450 # Check to see if the nm accepts a BSD-compat flag.
3451 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3452 # nm: unknown option "B" ignored
3453 # Tru64's nm complains that /dev/null is an invalid object file
3454 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3455 */dev/null* | *'Invalid file or object type'*)
3456 lt_cv_path_NM="$tmp_nm -B"
3457 break
3458 ;;
3459 *)
3460 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3461 */dev/null*)
3462 lt_cv_path_NM="$tmp_nm -p"
3463 break
3464 ;;
3465 *)
3466 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3467 continue # so that we can try to find one that supports BSD flags
3468 ;;
3469 esac
3470 ;;
3471 esac
3472 fi
3473 done
3474 IFS="$lt_save_ifs"
3475 done
3476 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3477 fi
3478 fi
3479 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3480 echo "${ECHO_T}$lt_cv_path_NM" >&6
3481 NM="$lt_cv_path_NM"
3483 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3484 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3485 LN_S=$as_ln_s
3486 if test "$LN_S" = "ln -s"; then
3487 echo "$as_me:$LINENO: result: yes" >&5
3488 echo "${ECHO_T}yes" >&6
3489 else
3490 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3491 echo "${ECHO_T}no, using $LN_S" >&6
3492 fi
3494 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3495 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3496 if test "${lt_cv_deplibs_check_method+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499 lt_cv_file_magic_cmd='$MAGIC_CMD'
3500 lt_cv_file_magic_test_file=
3501 lt_cv_deplibs_check_method='unknown'
3502 # Need to set the preceding variable on all platforms that support
3503 # interlibrary dependencies.
3504 # 'none' -- dependencies not supported.
3505 # `unknown' -- same as none, but documents that we really don't know.
3506 # 'pass_all' -- all dependencies passed with no checks.
3507 # 'test_compile' -- check by making test program.
3508 # 'file_magic [[regex]]' -- check by looking for files in library path
3509 # which responds to the $file_magic_cmd with a given extended regex.
3510 # If you have `file' or equivalent on your system and you're not sure
3511 # whether `pass_all' will *always* work, you probably want this one.
3513 case $host_os in
3514 aix4* | aix5*)
3515 lt_cv_deplibs_check_method=pass_all
3516 ;;
3518 beos*)
3519 lt_cv_deplibs_check_method=pass_all
3520 ;;
3522 bsdi[45]*)
3523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3524 lt_cv_file_magic_cmd='/usr/bin/file -L'
3525 lt_cv_file_magic_test_file=/shlib/libc.so
3526 ;;
3528 cygwin*)
3529 # func_win32_libid is a shell function defined in ltmain.sh
3530 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3531 lt_cv_file_magic_cmd='func_win32_libid'
3532 ;;
3534 mingw* | pw32*)
3535 # Base MSYS/MinGW do not provide the 'file' command needed by
3536 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3537 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3538 lt_cv_file_magic_cmd='$OBJDUMP -f'
3539 ;;
3541 darwin* | rhapsody*)
3542 lt_cv_deplibs_check_method=pass_all
3543 ;;
3545 freebsd* | kfreebsd*-gnu | dragonfly*)
3546 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3547 case $host_cpu in
3548 i*86 )
3549 # Not sure whether the presence of OpenBSD here was a mistake.
3550 # Let's accept both of them until this is cleared up.
3551 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3554 ;;
3555 esac
3556 else
3557 lt_cv_deplibs_check_method=pass_all
3558 fi
3559 ;;
3561 gnu*)
3562 lt_cv_deplibs_check_method=pass_all
3563 ;;
3565 hpux10.20* | hpux11*)
3566 lt_cv_file_magic_cmd=/usr/bin/file
3567 case $host_cpu in
3568 ia64*)
3569 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3570 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3571 ;;
3572 hppa*64*)
3573 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]'
3574 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3575 ;;
3576 *)
3577 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3578 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3579 ;;
3580 esac
3581 ;;
3583 interix3*)
3584 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3585 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3586 ;;
3588 irix5* | irix6* | nonstopux*)
3589 case $LD in
3590 *-32|*"-32 ") libmagic=32-bit;;
3591 *-n32|*"-n32 ") libmagic=N32;;
3592 *-64|*"-64 ") libmagic=64-bit;;
3593 *) libmagic=never-match;;
3594 esac
3595 lt_cv_deplibs_check_method=pass_all
3596 ;;
3598 # This must be Linux ELF.
3599 linux*)
3600 lt_cv_deplibs_check_method=pass_all
3601 ;;
3603 netbsd*)
3604 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3606 else
3607 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3608 fi
3609 ;;
3611 newos6*)
3612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3613 lt_cv_file_magic_cmd=/usr/bin/file
3614 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3615 ;;
3617 nto-qnx*)
3618 lt_cv_deplibs_check_method=unknown
3619 ;;
3621 openbsd*)
3622 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3624 else
3625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3626 fi
3627 ;;
3629 osf3* | osf4* | osf5*)
3630 lt_cv_deplibs_check_method=pass_all
3631 ;;
3633 solaris*)
3634 lt_cv_deplibs_check_method=pass_all
3635 ;;
3637 sysv4 | sysv4.3*)
3638 case $host_vendor in
3639 motorola)
3640 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]'
3641 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3642 ;;
3643 ncr)
3644 lt_cv_deplibs_check_method=pass_all
3645 ;;
3646 sequent)
3647 lt_cv_file_magic_cmd='/bin/file'
3648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3649 ;;
3650 sni)
3651 lt_cv_file_magic_cmd='/bin/file'
3652 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3653 lt_cv_file_magic_test_file=/lib/libc.so
3654 ;;
3655 siemens)
3656 lt_cv_deplibs_check_method=pass_all
3657 ;;
3658 pc)
3659 lt_cv_deplibs_check_method=pass_all
3660 ;;
3661 esac
3662 ;;
3664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3665 lt_cv_deplibs_check_method=pass_all
3666 ;;
3667 esac
3669 fi
3670 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3671 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3672 file_magic_cmd=$lt_cv_file_magic_cmd
3673 deplibs_check_method=$lt_cv_deplibs_check_method
3674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3679 # If no C compiler was specified, use CC.
3680 LTCC=${LTCC-"$CC"}
3682 # If no C compiler flags were specified, use CFLAGS.
3683 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3685 # Allow CC to be a program name with arguments.
3686 compiler=$CC
3689 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3690 if test "${enable_libtool_lock+set}" = set; then
3691 enableval="$enable_libtool_lock"
3693 fi;
3694 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3696 # Some flags need to be propagated to the compiler or linker for good
3697 # libtool support.
3698 case $host in
3699 ia64-*-hpux*)
3700 # Find out which ABI we are using.
3701 echo 'int i;' > conftest.$ac_ext
3702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>&5
3704 ac_status=$?
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); }; then
3707 case `/usr/bin/file conftest.$ac_objext` in
3708 *ELF-32*)
3709 HPUX_IA64_MODE="32"
3710 ;;
3711 *ELF-64*)
3712 HPUX_IA64_MODE="64"
3713 ;;
3714 esac
3715 fi
3716 rm -rf conftest*
3717 ;;
3718 *-*-irix6*)
3719 # Find out which ABI we are using.
3720 echo '#line 3720 "configure"' > conftest.$ac_ext
3721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3722 (eval $ac_compile) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; then
3726 if test "$lt_cv_prog_gnu_ld" = yes; then
3727 case `/usr/bin/file conftest.$ac_objext` in
3728 *32-bit*)
3729 LD="${LD-ld} -melf32bsmip"
3730 ;;
3731 *N32*)
3732 LD="${LD-ld} -melf32bmipn32"
3733 ;;
3734 *64-bit*)
3735 LD="${LD-ld} -melf64bmip"
3736 ;;
3737 esac
3738 else
3739 case `/usr/bin/file conftest.$ac_objext` in
3740 *32-bit*)
3741 LD="${LD-ld} -32"
3742 ;;
3743 *N32*)
3744 LD="${LD-ld} -n32"
3745 ;;
3746 *64-bit*)
3747 LD="${LD-ld} -64"
3748 ;;
3749 esac
3750 fi
3751 fi
3752 rm -rf conftest*
3753 ;;
3755 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3756 # Find out which ABI we are using.
3757 echo 'int i;' > conftest.$ac_ext
3758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3759 (eval $ac_compile) 2>&5
3760 ac_status=$?
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; then
3763 case `/usr/bin/file conftest.o` in
3764 *32-bit*)
3765 case $host in
3766 x86_64-*linux*)
3767 LD="${LD-ld} -m elf_i386"
3768 ;;
3769 ppc64-*linux*|powerpc64-*linux*)
3770 LD="${LD-ld} -m elf32ppclinux"
3771 ;;
3772 s390x-*linux*)
3773 LD="${LD-ld} -m elf_s390"
3774 ;;
3775 sparc64-*linux*)
3776 LD="${LD-ld} -m elf32_sparc"
3777 ;;
3778 esac
3779 ;;
3780 *64-bit*)
3781 case $host in
3782 x86_64-*linux*)
3783 LD="${LD-ld} -m elf_x86_64"
3784 ;;
3785 ppc*-*linux*|powerpc*-*linux*)
3786 LD="${LD-ld} -m elf64ppc"
3787 ;;
3788 s390*-*linux*)
3789 LD="${LD-ld} -m elf64_s390"
3790 ;;
3791 sparc*-*linux*)
3792 LD="${LD-ld} -m elf64_sparc"
3793 ;;
3794 esac
3795 ;;
3796 esac
3797 fi
3798 rm -rf conftest*
3799 ;;
3801 *-*-sco3.2v5*)
3802 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3803 SAVE_CFLAGS="$CFLAGS"
3804 CFLAGS="$CFLAGS -belf"
3805 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3806 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3807 if test "${lt_cv_cc_needs_belf+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810 ac_ext=c
3811 ac_cpp='$CPP $CPPFLAGS'
3812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3823 int
3824 main ()
3825 {
3827 ;
3828 return 0;
3829 }
3830 _ACEOF
3831 rm -f conftest.$ac_objext conftest$ac_exeext
3832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833 (eval $ac_link) 2>conftest.er1
3834 ac_status=$?
3835 grep -v '^ *+' conftest.er1 >conftest.err
3836 rm -f conftest.er1
3837 cat conftest.err >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } &&
3840 { ac_try='test -z "$ac_c_werror_flag"
3841 || test ! -s conftest.err'
3842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); }; } &&
3847 { ac_try='test -s conftest$ac_exeext'
3848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 (eval $ac_try) 2>&5
3850 ac_status=$?
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); }; }; then
3853 lt_cv_cc_needs_belf=yes
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3858 lt_cv_cc_needs_belf=no
3859 fi
3860 rm -f conftest.err conftest.$ac_objext \
3861 conftest$ac_exeext conftest.$ac_ext
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 fi
3869 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3870 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3871 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3872 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3873 CFLAGS="$SAVE_CFLAGS"
3874 fi
3875 ;;
3876 sparc*-*solaris*)
3877 # Find out which ABI we are using.
3878 echo 'int i;' > conftest.$ac_ext
3879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3880 (eval $ac_compile) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; then
3884 case `/usr/bin/file conftest.o` in
3885 *64-bit*)
3886 case $lt_cv_prog_gnu_ld in
3887 yes*) LD="${LD-ld} -m elf64_sparc" ;;
3888 *) LD="${LD-ld} -64" ;;
3889 esac
3890 ;;
3891 esac
3892 fi
3893 rm -rf conftest*
3894 ;;
3897 esac
3899 need_locks="$enable_libtool_lock"
3902 ac_ext=c
3903 ac_cpp='$CPP $CPPFLAGS'
3904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3907 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3908 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3909 # On Suns, sometimes $CPP names a directory.
3910 if test -n "$CPP" && test -d "$CPP"; then
3911 CPP=
3912 fi
3913 if test -z "$CPP"; then
3914 if test "${ac_cv_prog_CPP+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 # Double quotes because CPP needs to be expanded
3918 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3919 do
3920 ac_preproc_ok=false
3921 for ac_c_preproc_warn_flag in '' yes
3922 do
3923 # Use a header file that comes with gcc, so configuring glibc
3924 # with a fresh cross-compiler works.
3925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3926 # <limits.h> exists even on freestanding compilers.
3927 # On the NeXT, cc -E runs the code through the compiler's parser,
3928 # not just through cpp. "Syntax error" is here to catch this case.
3929 cat >conftest.$ac_ext <<_ACEOF
3930 /* confdefs.h. */
3931 _ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 #ifdef __STDC__
3936 # include <limits.h>
3937 #else
3938 # include <assert.h>
3939 #endif
3940 Syntax error
3941 _ACEOF
3942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3944 ac_status=$?
3945 grep -v '^ *+' conftest.er1 >conftest.err
3946 rm -f conftest.er1
3947 cat conftest.err >&5
3948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949 (exit $ac_status); } >/dev/null; then
3950 if test -s conftest.err; then
3951 ac_cpp_err=$ac_c_preproc_warn_flag
3952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3953 else
3954 ac_cpp_err=
3955 fi
3956 else
3957 ac_cpp_err=yes
3958 fi
3959 if test -z "$ac_cpp_err"; then
3960 :
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3965 # Broken: fails on valid input.
3966 continue
3967 fi
3968 rm -f conftest.err conftest.$ac_ext
3970 # OK, works on sane cases. Now check whether non-existent headers
3971 # can be detected and how.
3972 cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h. */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978 #include <ac_nonexistent.h>
3979 _ACEOF
3980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } >/dev/null; then
3988 if test -s conftest.err; then
3989 ac_cpp_err=$ac_c_preproc_warn_flag
3990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3991 else
3992 ac_cpp_err=
3993 fi
3994 else
3995 ac_cpp_err=yes
3996 fi
3997 if test -z "$ac_cpp_err"; then
3998 # Broken: success on invalid input.
3999 continue
4000 else
4001 echo "$as_me: failed program was:" >&5
4002 sed 's/^/| /' conftest.$ac_ext >&5
4004 # Passes both tests.
4005 ac_preproc_ok=:
4006 break
4007 fi
4008 rm -f conftest.err conftest.$ac_ext
4010 done
4011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012 rm -f conftest.err conftest.$ac_ext
4013 if $ac_preproc_ok; then
4014 break
4015 fi
4017 done
4018 ac_cv_prog_CPP=$CPP
4020 fi
4021 CPP=$ac_cv_prog_CPP
4022 else
4023 ac_cv_prog_CPP=$CPP
4024 fi
4025 echo "$as_me:$LINENO: result: $CPP" >&5
4026 echo "${ECHO_T}$CPP" >&6
4027 ac_preproc_ok=false
4028 for ac_c_preproc_warn_flag in '' yes
4029 do
4030 # Use a header file that comes with gcc, so configuring glibc
4031 # with a fresh cross-compiler works.
4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033 # <limits.h> exists even on freestanding compilers.
4034 # On the NeXT, cc -E runs the code through the compiler's parser,
4035 # not just through cpp. "Syntax error" is here to catch this case.
4036 cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h. */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042 #ifdef __STDC__
4043 # include <limits.h>
4044 #else
4045 # include <assert.h>
4046 #endif
4047 Syntax error
4048 _ACEOF
4049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } >/dev/null; then
4057 if test -s conftest.err; then
4058 ac_cpp_err=$ac_c_preproc_warn_flag
4059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4060 else
4061 ac_cpp_err=
4062 fi
4063 else
4064 ac_cpp_err=yes
4065 fi
4066 if test -z "$ac_cpp_err"; then
4067 :
4068 else
4069 echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 # Broken: fails on valid input.
4073 continue
4074 fi
4075 rm -f conftest.err conftest.$ac_ext
4077 # OK, works on sane cases. Now check whether non-existent headers
4078 # can be detected and how.
4079 cat >conftest.$ac_ext <<_ACEOF
4080 /* confdefs.h. */
4081 _ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #include <ac_nonexistent.h>
4086 _ACEOF
4087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } >/dev/null; then
4095 if test -s conftest.err; then
4096 ac_cpp_err=$ac_c_preproc_warn_flag
4097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4098 else
4099 ac_cpp_err=
4100 fi
4101 else
4102 ac_cpp_err=yes
4103 fi
4104 if test -z "$ac_cpp_err"; then
4105 # Broken: success on invalid input.
4106 continue
4107 else
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 # Passes both tests.
4112 ac_preproc_ok=:
4113 break
4114 fi
4115 rm -f conftest.err conftest.$ac_ext
4117 done
4118 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4119 rm -f conftest.err conftest.$ac_ext
4120 if $ac_preproc_ok; then
4121 :
4122 else
4123 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4124 See \`config.log' for more details." >&5
4125 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4126 See \`config.log' for more details." >&2;}
4127 { (exit 1); exit 1; }; }
4128 fi
4130 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4138 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4139 if test "${ac_cv_header_stdc+set}" = set; then
4140 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 else
4142 cat >conftest.$ac_ext <<_ACEOF
4143 /* confdefs.h. */
4144 _ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 #include <stdlib.h>
4149 #include <stdarg.h>
4150 #include <string.h>
4151 #include <float.h>
4153 int
4154 main ()
4155 {
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext
4162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163 (eval $ac_compile) 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } &&
4170 { ac_try='test -z "$ac_c_werror_flag"
4171 || test ! -s conftest.err'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173 (eval $ac_try) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; } &&
4177 { ac_try='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 (eval $ac_try) 2>&5
4180 ac_status=$?
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4183 ac_cv_header_stdc=yes
4184 else
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4188 ac_cv_header_stdc=no
4189 fi
4190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4192 if test $ac_cv_header_stdc = yes; then
4193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4194 cat >conftest.$ac_ext <<_ACEOF
4195 /* confdefs.h. */
4196 _ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #include <string.h>
4202 _ACEOF
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 $EGREP "memchr" >/dev/null 2>&1; then
4205 :
4206 else
4207 ac_cv_header_stdc=no
4208 fi
4209 rm -f conftest*
4211 fi
4213 if test $ac_cv_header_stdc = yes; then
4214 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 #include <stdlib.h>
4223 _ACEOF
4224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4225 $EGREP "free" >/dev/null 2>&1; then
4226 :
4227 else
4228 ac_cv_header_stdc=no
4229 fi
4230 rm -f conftest*
4232 fi
4234 if test $ac_cv_header_stdc = yes; then
4235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4236 if test "$cross_compiling" = yes; then
4237 :
4238 else
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h. */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h. */
4245 #include <ctype.h>
4246 #if ((' ' & 0x0FF) == 0x020)
4247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4249 #else
4250 # define ISLOWER(c) \
4251 (('a' <= (c) && (c) <= 'i') \
4252 || ('j' <= (c) && (c) <= 'r') \
4253 || ('s' <= (c) && (c) <= 'z'))
4254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4255 #endif
4257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4258 int
4259 main ()
4260 {
4261 int i;
4262 for (i = 0; i < 256; i++)
4263 if (XOR (islower (i), ISLOWER (i))
4264 || toupper (i) != TOUPPER (i))
4265 exit(2);
4266 exit (0);
4267 }
4268 _ACEOF
4269 rm -f conftest$ac_exeext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4271 (eval $ac_link) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4276 (eval $ac_try) 2>&5
4277 ac_status=$?
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4280 :
4281 else
4282 echo "$as_me: program exited with status $ac_status" >&5
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4286 ( exit $ac_status )
4287 ac_cv_header_stdc=no
4288 fi
4289 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4290 fi
4291 fi
4292 fi
4293 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4294 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4295 if test $ac_cv_header_stdc = yes; then
4297 cat >>confdefs.h <<\_ACEOF
4298 #define STDC_HEADERS 1
4299 _ACEOF
4301 fi
4303 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4313 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4314 inttypes.h stdint.h unistd.h
4315 do
4316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4317 echo "$as_me:$LINENO: checking for $ac_header" >&5
4318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4320 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322 cat >conftest.$ac_ext <<_ACEOF
4323 /* confdefs.h. */
4324 _ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4328 $ac_includes_default
4330 #include <$ac_header>
4331 _ACEOF
4332 rm -f conftest.$ac_objext
4333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4334 (eval $ac_compile) 2>conftest.er1
4335 ac_status=$?
4336 grep -v '^ *+' conftest.er1 >conftest.err
4337 rm -f conftest.er1
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } &&
4341 { ac_try='test -z "$ac_c_werror_flag"
4342 || test ! -s conftest.err'
4343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 (eval $ac_try) 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; } &&
4348 { ac_try='test -s conftest.$ac_objext'
4349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4350 (eval $ac_try) 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }; }; then
4354 eval "$as_ac_Header=yes"
4355 else
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 eval "$as_ac_Header=no"
4360 fi
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4362 fi
4363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4366 cat >>confdefs.h <<_ACEOF
4367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4368 _ACEOF
4370 fi
4372 done
4376 for ac_header in dlfcn.h
4377 do
4378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4380 echo "$as_me:$LINENO: checking for $ac_header" >&5
4381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 fi
4385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4387 else
4388 # Is the header compilable?
4389 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4391 cat >conftest.$ac_ext <<_ACEOF
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 $ac_includes_default
4398 #include <$ac_header>
4399 _ACEOF
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402 (eval $ac_compile) 2>conftest.er1
4403 ac_status=$?
4404 grep -v '^ *+' conftest.er1 >conftest.err
4405 rm -f conftest.er1
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -z "$ac_c_werror_flag"
4410 || test ! -s conftest.err'
4411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412 (eval $ac_try) 2>&5
4413 ac_status=$?
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_header_compiler=yes
4423 else
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 ac_header_compiler=no
4428 fi
4429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4430 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4431 echo "${ECHO_T}$ac_header_compiler" >&6
4433 # Is the header present?
4434 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 #include <$ac_header>
4443 _ACEOF
4444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4446 ac_status=$?
4447 grep -v '^ *+' conftest.er1 >conftest.err
4448 rm -f conftest.er1
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null; then
4452 if test -s conftest.err; then
4453 ac_cpp_err=$ac_c_preproc_warn_flag
4454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4455 else
4456 ac_cpp_err=
4457 fi
4458 else
4459 ac_cpp_err=yes
4460 fi
4461 if test -z "$ac_cpp_err"; then
4462 ac_header_preproc=yes
4463 else
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.$ac_ext >&5
4467 ac_header_preproc=no
4468 fi
4469 rm -f conftest.err conftest.$ac_ext
4470 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4471 echo "${ECHO_T}$ac_header_preproc" >&6
4473 # So? What about this header?
4474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4475 yes:no: )
4476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4480 ac_header_preproc=yes
4481 ;;
4482 no:yes:* )
4483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4495 (
4496 cat <<\_ASBOX
4497 ## --------------------------------- ##
4498 ## Report this to the TI IPC lists. ##
4499 ## --------------------------------- ##
4500 _ASBOX
4501 ) |
4502 sed "s/^/$as_me: WARNING: /" >&2
4503 ;;
4504 esac
4505 echo "$as_me:$LINENO: checking for $ac_header" >&5
4506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4507 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 eval "$as_ac_Header=\$ac_header_preproc"
4511 fi
4512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4513 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4515 fi
4516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4517 cat >>confdefs.h <<_ACEOF
4518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4519 _ACEOF
4521 fi
4523 done
4525 ac_ext=cc
4526 ac_cpp='$CXXCPP $CPPFLAGS'
4527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4530 if test -n "$ac_tool_prefix"; then
4531 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4532 do
4533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4535 echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537 if test "${ac_cv_prog_CXX+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 if test -n "$CXX"; then
4541 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546 IFS=$as_save_IFS
4547 test -z "$as_dir" && as_dir=.
4548 for ac_exec_ext in '' $ac_executable_extensions; do
4549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 break 2
4553 fi
4554 done
4555 done
4557 fi
4558 fi
4559 CXX=$ac_cv_prog_CXX
4560 if test -n "$CXX"; then
4561 echo "$as_me:$LINENO: result: $CXX" >&5
4562 echo "${ECHO_T}$CXX" >&6
4563 else
4564 echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6
4566 fi
4568 test -n "$CXX" && break
4569 done
4570 fi
4571 if test -z "$CXX"; then
4572 ac_ct_CXX=$CXX
4573 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4574 do
4575 # Extract the first word of "$ac_prog", so it can be a program name with args.
4576 set dummy $ac_prog; ac_word=$2
4577 echo "$as_me:$LINENO: checking for $ac_word" >&5
4578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581 else
4582 if test -n "$ac_ct_CXX"; then
4583 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4584 else
4585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 for as_dir in $PATH
4587 do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592 ac_cv_prog_ac_ct_CXX="$ac_prog"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596 done
4597 done
4599 fi
4600 fi
4601 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4602 if test -n "$ac_ct_CXX"; then
4603 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4604 echo "${ECHO_T}$ac_ct_CXX" >&6
4605 else
4606 echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4608 fi
4610 test -n "$ac_ct_CXX" && break
4611 done
4612 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4614 CXX=$ac_ct_CXX
4615 fi
4618 # Provide some information about the compiler.
4619 echo "$as_me:$LINENO:" \
4620 "checking for C++ compiler version" >&5
4621 ac_compiler=`set X $ac_compile; echo $2`
4622 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4623 (eval $ac_compiler --version </dev/null >&5) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }
4627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4628 (eval $ac_compiler -v </dev/null >&5) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }
4632 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4633 (eval $ac_compiler -V </dev/null >&5) 2>&5
4634 ac_status=$?
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); }
4638 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4639 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4640 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4650 int
4651 main ()
4652 {
4653 #ifndef __GNUC__
4654 choke me
4655 #endif
4657 ;
4658 return 0;
4659 }
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_cxx_werror_flag"
4671 || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest.$ac_objext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 (eval $ac_try) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_compiler_gnu=yes
4684 else
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4688 ac_compiler_gnu=no
4689 fi
4690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4693 fi
4694 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4695 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4696 GXX=`test $ac_compiler_gnu = yes && echo yes`
4697 ac_test_CXXFLAGS=${CXXFLAGS+set}
4698 ac_save_CXXFLAGS=$CXXFLAGS
4699 CXXFLAGS="-g"
4700 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4701 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4702 if test "${ac_cv_prog_cxx_g+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4712 int
4713 main ()
4714 {
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722 (eval $ac_compile) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_cxx_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest.$ac_objext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_prog_cxx_g=yes
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 ac_cv_prog_cxx_g=no
4748 fi
4749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750 fi
4751 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4752 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4753 if test "$ac_test_CXXFLAGS" = set; then
4754 CXXFLAGS=$ac_save_CXXFLAGS
4755 elif test $ac_cv_prog_cxx_g = yes; then
4756 if test "$GXX" = yes; then
4757 CXXFLAGS="-g -O2"
4758 else
4759 CXXFLAGS="-g"
4760 fi
4761 else
4762 if test "$GXX" = yes; then
4763 CXXFLAGS="-O2"
4764 else
4765 CXXFLAGS=
4766 fi
4767 fi
4768 for ac_declaration in \
4769 '' \
4770 'extern "C" void std::exit (int) throw (); using std::exit;' \
4771 'extern "C" void std::exit (int); using std::exit;' \
4772 'extern "C" void exit (int) throw ();' \
4773 'extern "C" void exit (int);' \
4774 'void exit (int);'
4775 do
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_declaration
4783 #include <stdlib.h>
4784 int
4785 main ()
4786 {
4787 exit (42);
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_cxx_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest.$ac_objext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 :
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 continue
4820 fi
4821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4822 cat >conftest.$ac_ext <<_ACEOF
4823 /* confdefs.h. */
4824 _ACEOF
4825 cat confdefs.h >>conftest.$ac_ext
4826 cat >>conftest.$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4828 $ac_declaration
4829 int
4830 main ()
4831 {
4832 exit (42);
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 rm -f conftest.$ac_objext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } &&
4846 { ac_try='test -z "$ac_cxx_werror_flag"
4847 || test ! -s conftest.err'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; } &&
4853 { ac_try='test -s conftest.$ac_objext'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 break
4860 else
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4864 fi
4865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4866 done
4867 rm -f conftest*
4868 if test -n "$ac_declaration"; then
4869 echo '#ifdef __cplusplus' >>confdefs.h
4870 echo $ac_declaration >>confdefs.h
4871 echo '#endif' >>confdefs.h
4872 fi
4874 ac_ext=cc
4875 ac_cpp='$CXXCPP $CPPFLAGS'
4876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4880 depcc="$CXX" am_compiler_list=
4882 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4883 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4884 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4888 # We make a subdir and do the tests there. Otherwise we can end up
4889 # making bogus files that we don't know about and never remove. For
4890 # instance it was reported that on HP-UX the gcc test will end up
4891 # making a dummy file named `D' -- because `-MD' means `put the output
4892 # in D'.
4893 mkdir conftest.dir
4894 # Copy depcomp to subdir because otherwise we won't find it if we're
4895 # using a relative directory.
4896 cp "$am_depcomp" conftest.dir
4897 cd conftest.dir
4898 # We will build objects and dependencies in a subdirectory because
4899 # it helps to detect inapplicable dependency modes. For instance
4900 # both Tru64's cc and ICC support -MD to output dependencies as a
4901 # side effect of compilation, but ICC will put the dependencies in
4902 # the current directory while Tru64 will put them in the object
4903 # directory.
4904 mkdir sub
4906 am_cv_CXX_dependencies_compiler_type=none
4907 if test "$am_compiler_list" = ""; then
4908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4909 fi
4910 for depmode in $am_compiler_list; do
4911 # Setup a source with many dependencies, because some compilers
4912 # like to wrap large dependency lists on column 80 (with \), and
4913 # we should not choose a depcomp mode which is confused by this.
4914 #
4915 # We need to recreate these files for each test, as the compiler may
4916 # overwrite some of them when testing with obscure command lines.
4917 # This happens at least with the AIX C compiler.
4918 : > sub/conftest.c
4919 for i in 1 2 3 4 5 6; do
4920 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4921 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4922 # Solaris 8's {/usr,}/bin/sh.
4923 touch sub/conftst$i.h
4924 done
4925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4927 case $depmode in
4928 nosideeffect)
4929 # after this tag, mechanisms are not by side-effect, so they'll
4930 # only be used when explicitly requested
4931 if test "x$enable_dependency_tracking" = xyes; then
4932 continue
4933 else
4934 break
4935 fi
4936 ;;
4937 none) break ;;
4938 esac
4939 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4940 # mode. It turns out that the SunPro C++ compiler does not properly
4941 # handle `-M -o', and we need to detect this.
4942 if depmode=$depmode \
4943 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4945 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4946 >/dev/null 2>conftest.err &&
4947 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4948 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4949 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4950 # icc doesn't choke on unknown options, it will just issue warnings
4951 # or remarks (even with -Werror). So we grep stderr for any message
4952 # that says an option was ignored or not supported.
4953 # When given -MP, icc 7.0 and 7.1 complain thusly:
4954 # icc: Command line warning: ignoring option '-M'; no argument required
4955 # The diagnosis changed in icc 8.0:
4956 # icc: Command line remark: option '-MP' not supported
4957 if (grep 'ignoring option' conftest.err ||
4958 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4959 am_cv_CXX_dependencies_compiler_type=$depmode
4960 break
4961 fi
4962 fi
4963 done
4965 cd ..
4966 rm -rf conftest.dir
4967 else
4968 am_cv_CXX_dependencies_compiler_type=none
4969 fi
4971 fi
4972 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4973 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4974 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4978 if
4979 test "x$enable_dependency_tracking" != xno \
4980 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4981 am__fastdepCXX_TRUE=
4982 am__fastdepCXX_FALSE='#'
4983 else
4984 am__fastdepCXX_TRUE='#'
4985 am__fastdepCXX_FALSE=
4986 fi
4991 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4992 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4993 (test "X$CXX" != "Xg++"))) ; then
4994 ac_ext=cc
4995 ac_cpp='$CXXCPP $CPPFLAGS'
4996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4999 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5000 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5001 if test -z "$CXXCPP"; then
5002 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 # Double quotes because CXXCPP needs to be expanded
5006 for CXXCPP in "$CXX -E" "/lib/cpp"
5007 do
5008 ac_preproc_ok=false
5009 for ac_cxx_preproc_warn_flag in '' yes
5010 do
5011 # Use a header file that comes with gcc, so configuring glibc
5012 # with a fresh cross-compiler works.
5013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5014 # <limits.h> exists even on freestanding compilers.
5015 # On the NeXT, cc -E runs the code through the compiler's parser,
5016 # not just through cpp. "Syntax error" is here to catch this case.
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h. */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 #ifdef __STDC__
5024 # include <limits.h>
5025 #else
5026 # include <assert.h>
5027 #endif
5028 Syntax error
5029 _ACEOF
5030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5032 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } >/dev/null; then
5038 if test -s conftest.err; then
5039 ac_cpp_err=$ac_cxx_preproc_warn_flag
5040 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5041 else
5042 ac_cpp_err=
5043 fi
5044 else
5045 ac_cpp_err=yes
5046 fi
5047 if test -z "$ac_cpp_err"; then
5048 :
5049 else
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5053 # Broken: fails on valid input.
5054 continue
5055 fi
5056 rm -f conftest.err conftest.$ac_ext
5058 # OK, works on sane cases. Now check whether non-existent headers
5059 # can be detected and how.
5060 cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h. */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 #include <ac_nonexistent.h>
5067 _ACEOF
5068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } >/dev/null; then
5076 if test -s conftest.err; then
5077 ac_cpp_err=$ac_cxx_preproc_warn_flag
5078 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5079 else
5080 ac_cpp_err=
5081 fi
5082 else
5083 ac_cpp_err=yes
5084 fi
5085 if test -z "$ac_cpp_err"; then
5086 # Broken: success on invalid input.
5087 continue
5088 else
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 # Passes both tests.
5093 ac_preproc_ok=:
5094 break
5095 fi
5096 rm -f conftest.err conftest.$ac_ext
5098 done
5099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5100 rm -f conftest.err conftest.$ac_ext
5101 if $ac_preproc_ok; then
5102 break
5103 fi
5105 done
5106 ac_cv_prog_CXXCPP=$CXXCPP
5108 fi
5109 CXXCPP=$ac_cv_prog_CXXCPP
5110 else
5111 ac_cv_prog_CXXCPP=$CXXCPP
5112 fi
5113 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5114 echo "${ECHO_T}$CXXCPP" >&6
5115 ac_preproc_ok=false
5116 for ac_cxx_preproc_warn_flag in '' yes
5117 do
5118 # Use a header file that comes with gcc, so configuring glibc
5119 # with a fresh cross-compiler works.
5120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5121 # <limits.h> exists even on freestanding compilers.
5122 # On the NeXT, cc -E runs the code through the compiler's parser,
5123 # not just through cpp. "Syntax error" is here to catch this case.
5124 cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h. */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 #ifdef __STDC__
5131 # include <limits.h>
5132 #else
5133 # include <assert.h>
5134 #endif
5135 Syntax error
5136 _ACEOF
5137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5139 ac_status=$?
5140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } >/dev/null; then
5145 if test -s conftest.err; then
5146 ac_cpp_err=$ac_cxx_preproc_warn_flag
5147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5148 else
5149 ac_cpp_err=
5150 fi
5151 else
5152 ac_cpp_err=yes
5153 fi
5154 if test -z "$ac_cpp_err"; then
5155 :
5156 else
5157 echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5160 # Broken: fails on valid input.
5161 continue
5162 fi
5163 rm -f conftest.err conftest.$ac_ext
5165 # OK, works on sane cases. Now check whether non-existent headers
5166 # can be detected and how.
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h. */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 #include <ac_nonexistent.h>
5174 _ACEOF
5175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5177 ac_status=$?
5178 grep -v '^ *+' conftest.er1 >conftest.err
5179 rm -f conftest.er1
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null; then
5183 if test -s conftest.err; then
5184 ac_cpp_err=$ac_cxx_preproc_warn_flag
5185 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5186 else
5187 ac_cpp_err=
5188 fi
5189 else
5190 ac_cpp_err=yes
5191 fi
5192 if test -z "$ac_cpp_err"; then
5193 # Broken: success on invalid input.
5194 continue
5195 else
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 # Passes both tests.
5200 ac_preproc_ok=:
5201 break
5202 fi
5203 rm -f conftest.err conftest.$ac_ext
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then
5209 :
5210 else
5211 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5212 See \`config.log' for more details." >&5
5213 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5214 See \`config.log' for more details." >&2;}
5215 { (exit 1); exit 1; }; }
5216 fi
5218 ac_ext=cc
5219 ac_cpp='$CXXCPP $CPPFLAGS'
5220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5224 fi
5228 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5230 # find the maximum length of command line arguments
5231 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5232 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5233 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 else
5236 i=0
5237 teststring="ABCD"
5239 case $build_os in
5240 msdosdjgpp*)
5241 # On DJGPP, this test can blow up pretty badly due to problems in libc
5242 # (any single argument exceeding 2000 bytes causes a buffer overrun
5243 # during glob expansion). Even if it were fixed, the result of this
5244 # check would be larger than it should be.
5245 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5246 ;;
5248 gnu*)
5249 # Under GNU Hurd, this test is not required because there is
5250 # no limit to the length of command line arguments.
5251 # Libtool will interpret -1 as no limit whatsoever
5252 lt_cv_sys_max_cmd_len=-1;
5253 ;;
5255 cygwin* | mingw*)
5256 # On Win9x/ME, this test blows up -- it succeeds, but takes
5257 # about 5 minutes as the teststring grows exponentially.
5258 # Worse, since 9x/ME are not pre-emptively multitasking,
5259 # you end up with a "frozen" computer, even though with patience
5260 # the test eventually succeeds (with a max line length of 256k).
5261 # Instead, let's just punt: use the minimum linelength reported by
5262 # all of the supported platforms: 8192 (on NT/2K/XP).
5263 lt_cv_sys_max_cmd_len=8192;
5264 ;;
5266 amigaos*)
5267 # On AmigaOS with pdksh, this test takes hours, literally.
5268 # So we just punt and use a minimum line length of 8192.
5269 lt_cv_sys_max_cmd_len=8192;
5270 ;;
5272 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5273 # This has been around since 386BSD, at least. Likely further.
5274 if test -x /sbin/sysctl; then
5275 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5276 elif test -x /usr/sbin/sysctl; then
5277 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5278 else
5279 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5280 fi
5281 # And add a safety zone
5282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5284 ;;
5286 interix*)
5287 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5288 lt_cv_sys_max_cmd_len=196608
5289 ;;
5291 osf*)
5292 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5293 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5294 # nice to cause kernel panics so lets avoid the loop below.
5295 # First set a reasonable default.
5296 lt_cv_sys_max_cmd_len=16384
5297 #
5298 if test -x /sbin/sysconfig; then
5299 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5300 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5301 esac
5302 fi
5303 ;;
5304 sco3.2v5*)
5305 lt_cv_sys_max_cmd_len=102400
5306 ;;
5307 sysv5* | sco5v6* | sysv4.2uw2*)
5308 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5309 if test -n "$kargmax"; then
5310 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5311 else
5312 lt_cv_sys_max_cmd_len=32768
5313 fi
5314 ;;
5315 *)
5316 # If test is not a shell built-in, we'll probably end up computing a
5317 # maximum length that is only half of the actual maximum length, but
5318 # we can't tell.
5319 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5320 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5321 = "XX$teststring") >/dev/null 2>&1 &&
5322 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5323 lt_cv_sys_max_cmd_len=$new_result &&
5324 test $i != 17 # 1/2 MB should be enough
5325 do
5326 i=`expr $i + 1`
5327 teststring=$teststring$teststring
5328 done
5329 teststring=
5330 # Add a significant safety factor because C++ compilers can tack on massive
5331 # amounts of additional arguments before passing them to the linker.
5332 # It appears as though 1/2 is a usable value.
5333 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5334 ;;
5335 esac
5337 fi
5339 if test -n $lt_cv_sys_max_cmd_len ; then
5340 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5341 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5342 else
5343 echo "$as_me:$LINENO: result: none" >&5
5344 echo "${ECHO_T}none" >&6
5345 fi
5350 # Check for command to grab the raw symbol name followed by C symbol from nm.
5351 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5352 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5353 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5357 # These are sane defaults that work on at least a few old systems.
5358 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5360 # Character class describing NM global symbol codes.
5361 symcode='[BCDEGRST]'
5363 # Regexp to match symbols that can be accessed directly from C.
5364 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5366 # Transform an extracted symbol line into a proper C declaration
5367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5369 # Transform an extracted symbol line into symbol name and symbol address
5370 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'"
5372 # Define system-specific variables.
5373 case $host_os in
5374 aix*)
5375 symcode='[BCDT]'
5376 ;;
5377 cygwin* | mingw* | pw32*)
5378 symcode='[ABCDGISTW]'
5379 ;;
5380 hpux*) # Its linker distinguishes data from code symbols
5381 if test "$host_cpu" = ia64; then
5382 symcode='[ABCDEGRST]'
5383 fi
5384 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5385 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'"
5386 ;;
5387 linux*)
5388 if test "$host_cpu" = ia64; then
5389 symcode='[ABCDGIRSTW]'
5390 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5391 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'"
5392 fi
5393 ;;
5394 irix* | nonstopux*)
5395 symcode='[BCDEGRST]'
5396 ;;
5397 osf*)
5398 symcode='[BCDEGQRST]'
5399 ;;
5400 solaris*)
5401 symcode='[BDRT]'
5402 ;;
5403 sco3.2v5*)
5404 symcode='[DT]'
5405 ;;
5406 sysv4.2uw2*)
5407 symcode='[DT]'
5408 ;;
5409 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5410 symcode='[ABDT]'
5411 ;;
5412 sysv4)
5413 symcode='[DFNSTU]'
5414 ;;
5415 esac
5417 # Handle CRLF in mingw tool chain
5418 opt_cr=
5419 case $build_os in
5420 mingw*)
5421 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5422 ;;
5423 esac
5425 # If we're using GNU nm, then use its standard symbol codes.
5426 case `$NM -V 2>&1` in
5427 *GNU* | *'with BFD'*)
5428 symcode='[ABCDGIRSTW]' ;;
5429 esac
5431 # Try without a prefix undercore, then with it.
5432 for ac_symprfx in "" "_"; do
5434 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5435 symxfrm="\\1 $ac_symprfx\\2 \\2"
5437 # Write the raw and C identifiers.
5438 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5440 # Check to see that the pipe works correctly.
5441 pipe_works=no
5443 rm -f conftest*
5444 cat > conftest.$ac_ext <<EOF
5445 #ifdef __cplusplus
5446 extern "C" {
5447 #endif
5448 char nm_test_var;
5449 void nm_test_func(){}
5450 #ifdef __cplusplus
5451 }
5452 #endif
5453 int main(){nm_test_var='a';nm_test_func();return(0);}
5454 EOF
5456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5457 (eval $ac_compile) 2>&5
5458 ac_status=$?
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); }; then
5461 # Now try to grab the symbols.
5462 nlist=conftest.nm
5463 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5464 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5465 ac_status=$?
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && test -s "$nlist"; then
5468 # Try sorting and uniquifying the output.
5469 if sort "$nlist" | uniq > "$nlist"T; then
5470 mv -f "$nlist"T "$nlist"
5471 else
5472 rm -f "$nlist"T
5473 fi
5475 # Make sure that we snagged all the symbols we need.
5476 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5477 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5478 cat <<EOF > conftest.$ac_ext
5479 #ifdef __cplusplus
5480 extern "C" {
5481 #endif
5483 EOF
5484 # Now generate the symbol file.
5485 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5487 cat <<EOF >> conftest.$ac_ext
5488 #if defined (__STDC__) && __STDC__
5489 # define lt_ptr_t void *
5490 #else
5491 # define lt_ptr_t char *
5492 # define const
5493 #endif
5495 /* The mapping between symbol names and symbols. */
5496 const struct {
5497 const char *name;
5498 lt_ptr_t address;
5499 }
5500 lt_preloaded_symbols[] =
5501 {
5502 EOF
5503 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5504 cat <<\EOF >> conftest.$ac_ext
5505 {0, (lt_ptr_t) 0}
5506 };
5508 #ifdef __cplusplus
5509 }
5510 #endif
5511 EOF
5512 # Now try linking the two files.
5513 mv conftest.$ac_objext conftstm.$ac_objext
5514 lt_save_LIBS="$LIBS"
5515 lt_save_CFLAGS="$CFLAGS"
5516 LIBS="conftstm.$ac_objext"
5517 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5519 (eval $ac_link) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5523 pipe_works=yes
5524 fi
5525 LIBS="$lt_save_LIBS"
5526 CFLAGS="$lt_save_CFLAGS"
5527 else
5528 echo "cannot find nm_test_func in $nlist" >&5
5529 fi
5530 else
5531 echo "cannot find nm_test_var in $nlist" >&5
5532 fi
5533 else
5534 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5535 fi
5536 else
5537 echo "$progname: failed program was:" >&5
5538 cat conftest.$ac_ext >&5
5539 fi
5540 rm -f conftest* conftst*
5542 # Do not use the global_symbol_pipe unless it works.
5543 if test "$pipe_works" = yes; then
5544 break
5545 else
5546 lt_cv_sys_global_symbol_pipe=
5547 fi
5548 done
5550 fi
5552 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5553 lt_cv_sys_global_symbol_to_cdecl=
5554 fi
5555 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5556 echo "$as_me:$LINENO: result: failed" >&5
5557 echo "${ECHO_T}failed" >&6
5558 else
5559 echo "$as_me:$LINENO: result: ok" >&5
5560 echo "${ECHO_T}ok" >&6
5561 fi
5563 echo "$as_me:$LINENO: checking for objdir" >&5
5564 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5565 if test "${lt_cv_objdir+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5567 else
5568 rm -f .libs 2>/dev/null
5569 mkdir .libs 2>/dev/null
5570 if test -d .libs; then
5571 lt_cv_objdir=.libs
5572 else
5573 # MS-DOS does not allow filenames that begin with a dot.
5574 lt_cv_objdir=_libs
5575 fi
5576 rmdir .libs 2>/dev/null
5577 fi
5578 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5579 echo "${ECHO_T}$lt_cv_objdir" >&6
5580 objdir=$lt_cv_objdir
5586 case $host_os in
5587 aix3*)
5588 # AIX sometimes has problems with the GCC collect2 program. For some
5589 # reason, if we set the COLLECT_NAMES environment variable, the problems
5590 # vanish in a puff of smoke.
5591 if test "X${COLLECT_NAMES+set}" != Xset; then
5592 COLLECT_NAMES=
5593 export COLLECT_NAMES
5594 fi
5595 ;;
5596 esac
5598 # Sed substitution that helps us do robust quoting. It backslashifies
5599 # metacharacters that are still active within double-quoted strings.
5600 Xsed='sed -e 1s/^X//'
5601 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5603 # Same as above, but do not quote variable references.
5604 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5606 # Sed substitution to delay expansion of an escaped shell variable in a
5607 # double_quote_subst'ed string.
5608 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5610 # Sed substitution to avoid accidental globbing in evaled expressions
5611 no_glob_subst='s/\*/\\\*/g'
5613 # Constants:
5614 rm="rm -f"
5616 # Global variables:
5617 default_ofile=libtool
5618 can_build_shared=yes
5620 # All known linkers require a `.a' archive for static linking (except MSVC,
5621 # which needs '.lib').
5622 libext=a
5623 ltmain="$ac_aux_dir/ltmain.sh"
5624 ofile="$default_ofile"
5625 with_gnu_ld="$lt_cv_prog_gnu_ld"
5627 if test -n "$ac_tool_prefix"; then
5628 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5629 set dummy ${ac_tool_prefix}ar; ac_word=$2
5630 echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632 if test "${ac_cv_prog_AR+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 if test -n "$AR"; then
5636 ac_cv_prog_AR="$AR" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_AR="${ac_tool_prefix}ar"
5646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5648 fi
5649 done
5650 done
5652 fi
5653 fi
5654 AR=$ac_cv_prog_AR
5655 if test -n "$AR"; then
5656 echo "$as_me:$LINENO: result: $AR" >&5
5657 echo "${ECHO_T}$AR" >&6
5658 else
5659 echo "$as_me:$LINENO: result: no" >&5
5660 echo "${ECHO_T}no" >&6
5661 fi
5663 fi
5664 if test -z "$ac_cv_prog_AR"; then
5665 ac_ct_AR=$AR
5666 # Extract the first word of "ar", so it can be a program name with args.
5667 set dummy ar; ac_word=$2
5668 echo "$as_me:$LINENO: checking for $ac_word" >&5
5669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5670 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 else
5673 if test -n "$ac_ct_AR"; then
5674 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5678 do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_prog_ac_ct_AR="ar"
5684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5686 fi
5687 done
5688 done
5690 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5691 fi
5692 fi
5693 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5694 if test -n "$ac_ct_AR"; then
5695 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5696 echo "${ECHO_T}$ac_ct_AR" >&6
5697 else
5698 echo "$as_me:$LINENO: result: no" >&5
5699 echo "${ECHO_T}no" >&6
5700 fi
5702 AR=$ac_ct_AR
5703 else
5704 AR="$ac_cv_prog_AR"
5705 fi
5707 if test -n "$ac_tool_prefix"; then
5708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5710 echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5712 if test "${ac_cv_prog_RANLIB+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715 if test -n "$RANLIB"; then
5716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5720 do
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5728 fi
5729 done
5730 done
5732 fi
5733 fi
5734 RANLIB=$ac_cv_prog_RANLIB
5735 if test -n "$RANLIB"; then
5736 echo "$as_me:$LINENO: result: $RANLIB" >&5
5737 echo "${ECHO_T}$RANLIB" >&6
5738 else
5739 echo "$as_me:$LINENO: result: no" >&5
5740 echo "${ECHO_T}no" >&6
5741 fi
5743 fi
5744 if test -z "$ac_cv_prog_RANLIB"; then
5745 ac_ct_RANLIB=$RANLIB
5746 # Extract the first word of "ranlib", so it can be a program name with args.
5747 set dummy ranlib; ac_word=$2
5748 echo "$as_me:$LINENO: checking for $ac_word" >&5
5749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5750 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 if test -n "$ac_ct_RANLIB"; then
5754 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5755 else
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5758 do
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_ac_ct_RANLIB="ranlib"
5764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 break 2
5766 fi
5767 done
5768 done
5770 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5771 fi
5772 fi
5773 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5774 if test -n "$ac_ct_RANLIB"; then
5775 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5776 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5777 else
5778 echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6
5780 fi
5782 RANLIB=$ac_ct_RANLIB
5783 else
5784 RANLIB="$ac_cv_prog_RANLIB"
5785 fi
5787 if test -n "$ac_tool_prefix"; then
5788 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5789 set dummy ${ac_tool_prefix}strip; ac_word=$2
5790 echo "$as_me:$LINENO: checking for $ac_word" >&5
5791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5792 if test "${ac_cv_prog_STRIP+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795 if test -n "$STRIP"; then
5796 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5797 else
5798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799 for as_dir in $PATH
5800 do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5805 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809 done
5810 done
5812 fi
5813 fi
5814 STRIP=$ac_cv_prog_STRIP
5815 if test -n "$STRIP"; then
5816 echo "$as_me:$LINENO: result: $STRIP" >&5
5817 echo "${ECHO_T}$STRIP" >&6
5818 else
5819 echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6
5821 fi
5823 fi
5824 if test -z "$ac_cv_prog_STRIP"; then
5825 ac_ct_STRIP=$STRIP
5826 # Extract the first word of "strip", so it can be a program name with args.
5827 set dummy strip; ac_word=$2
5828 echo "$as_me:$LINENO: checking for $ac_word" >&5
5829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5830 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833 if test -n "$ac_ct_STRIP"; then
5834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_prog_ac_ct_STRIP="strip"
5844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847 done
5848 done
5850 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5851 fi
5852 fi
5853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5854 if test -n "$ac_ct_STRIP"; then
5855 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5856 echo "${ECHO_T}$ac_ct_STRIP" >&6
5857 else
5858 echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6
5860 fi
5862 STRIP=$ac_ct_STRIP
5863 else
5864 STRIP="$ac_cv_prog_STRIP"
5865 fi
5868 old_CC="$CC"
5869 old_CFLAGS="$CFLAGS"
5871 # Set sane defaults for various variables
5872 test -z "$AR" && AR=ar
5873 test -z "$AR_FLAGS" && AR_FLAGS=cru
5874 test -z "$AS" && AS=as
5875 test -z "$CC" && CC=cc
5876 test -z "$LTCC" && LTCC=$CC
5877 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5878 test -z "$DLLTOOL" && DLLTOOL=dlltool
5879 test -z "$LD" && LD=ld
5880 test -z "$LN_S" && LN_S="ln -s"
5881 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5882 test -z "$NM" && NM=nm
5883 test -z "$SED" && SED=sed
5884 test -z "$OBJDUMP" && OBJDUMP=objdump
5885 test -z "$RANLIB" && RANLIB=:
5886 test -z "$STRIP" && STRIP=:
5887 test -z "$ac_objext" && ac_objext=o
5889 # Determine commands to create old-style static archives.
5890 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5891 old_postinstall_cmds='chmod 644 $oldlib'
5892 old_postuninstall_cmds=
5894 if test -n "$RANLIB"; then
5895 case $host_os in
5896 openbsd*)
5897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5898 ;;
5899 *)
5900 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5901 ;;
5902 esac
5903 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5904 fi
5906 for cc_temp in $compiler""; do
5907 case $cc_temp in
5908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5910 \-*) ;;
5911 *) break;;
5912 esac
5913 done
5914 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5917 # Only perform the check for file, if the check method requires it
5918 case $deplibs_check_method in
5919 file_magic*)
5920 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5921 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5922 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5923 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926 case $MAGIC_CMD in
5927 [\\/*] | ?:[\\/]*)
5928 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5929 ;;
5930 *)
5931 lt_save_MAGIC_CMD="$MAGIC_CMD"
5932 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5933 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5934 for ac_dir in $ac_dummy; do
5935 IFS="$lt_save_ifs"
5936 test -z "$ac_dir" && ac_dir=.
5937 if test -f $ac_dir/${ac_tool_prefix}file; then
5938 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5939 if test -n "$file_magic_test_file"; then
5940 case $deplibs_check_method in
5941 "file_magic "*)
5942 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5943 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5944 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5945 $EGREP "$file_magic_regex" > /dev/null; then
5946 :
5947 else
5948 cat <<EOF 1>&2
5950 *** Warning: the command libtool uses to detect shared libraries,
5951 *** $file_magic_cmd, produces output that libtool cannot recognize.
5952 *** The result is that libtool may fail to recognize shared libraries
5953 *** as such. This will affect the creation of libtool libraries that
5954 *** depend on shared libraries, but programs linked with such libtool
5955 *** libraries will work regardless of this problem. Nevertheless, you
5956 *** may want to report the problem to your system manager and/or to
5957 *** bug-libtool@gnu.org
5959 EOF
5960 fi ;;
5961 esac
5962 fi
5963 break
5964 fi
5965 done
5966 IFS="$lt_save_ifs"
5967 MAGIC_CMD="$lt_save_MAGIC_CMD"
5968 ;;
5969 esac
5970 fi
5972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5973 if test -n "$MAGIC_CMD"; then
5974 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5975 echo "${ECHO_T}$MAGIC_CMD" >&6
5976 else
5977 echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6
5979 fi
5981 if test -z "$lt_cv_path_MAGIC_CMD"; then
5982 if test -n "$ac_tool_prefix"; then
5983 echo "$as_me:$LINENO: checking for file" >&5
5984 echo $ECHO_N "checking for file... $ECHO_C" >&6
5985 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 case $MAGIC_CMD in
5989 [\\/*] | ?:[\\/]*)
5990 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5991 ;;
5992 *)
5993 lt_save_MAGIC_CMD="$MAGIC_CMD"
5994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5996 for ac_dir in $ac_dummy; do
5997 IFS="$lt_save_ifs"
5998 test -z "$ac_dir" && ac_dir=.
5999 if test -f $ac_dir/file; then
6000 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6001 if test -n "$file_magic_test_file"; then
6002 case $deplibs_check_method in
6003 "file_magic "*)
6004 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6007 $EGREP "$file_magic_regex" > /dev/null; then
6008 :
6009 else
6010 cat <<EOF 1>&2
6012 *** Warning: the command libtool uses to detect shared libraries,
6013 *** $file_magic_cmd, produces output that libtool cannot recognize.
6014 *** The result is that libtool may fail to recognize shared libraries
6015 *** as such. This will affect the creation of libtool libraries that
6016 *** depend on shared libraries, but programs linked with such libtool
6017 *** libraries will work regardless of this problem. Nevertheless, you
6018 *** may want to report the problem to your system manager and/or to
6019 *** bug-libtool@gnu.org
6021 EOF
6022 fi ;;
6023 esac
6024 fi
6025 break
6026 fi
6027 done
6028 IFS="$lt_save_ifs"
6029 MAGIC_CMD="$lt_save_MAGIC_CMD"
6030 ;;
6031 esac
6032 fi
6034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6035 if test -n "$MAGIC_CMD"; then
6036 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6037 echo "${ECHO_T}$MAGIC_CMD" >&6
6038 else
6039 echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6041 fi
6043 else
6044 MAGIC_CMD=:
6045 fi
6046 fi
6048 fi
6049 ;;
6050 esac
6052 enable_dlopen=no
6053 enable_win32_dll=no
6055 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6056 if test "${enable_libtool_lock+set}" = set; then
6057 enableval="$enable_libtool_lock"
6059 fi;
6060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6063 # Check whether --with-pic or --without-pic was given.
6064 if test "${with_pic+set}" = set; then
6065 withval="$with_pic"
6066 pic_mode="$withval"
6067 else
6068 pic_mode=default
6069 fi;
6070 test -z "$pic_mode" && pic_mode=default
6072 # Use C for the default configuration in the libtool script
6073 tagname=
6074 lt_save_CC="$CC"
6075 ac_ext=c
6076 ac_cpp='$CPP $CPPFLAGS'
6077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6082 # Source file extension for C test sources.
6083 ac_ext=c
6085 # Object file extension for compiled C test sources.
6086 objext=o
6087 objext=$objext
6089 # Code to be used in simple compile tests
6090 lt_simple_compile_test_code="int some_variable = 0;\n"
6092 # Code to be used in simple link tests
6093 lt_simple_link_test_code='int main(){return(0);}\n'
6096 # If no C compiler was specified, use CC.
6097 LTCC=${LTCC-"$CC"}
6099 # If no C compiler flags were specified, use CFLAGS.
6100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6102 # Allow CC to be a program name with arguments.
6103 compiler=$CC
6106 # save warnings/boilerplate of simple test code
6107 ac_outfile=conftest.$ac_objext
6108 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6109 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6110 _lt_compiler_boilerplate=`cat conftest.err`
6111 $rm conftest*
6113 ac_outfile=conftest.$ac_objext
6114 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6115 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6116 _lt_linker_boilerplate=`cat conftest.err`
6117 $rm conftest*
6121 lt_prog_compiler_no_builtin_flag=
6123 if test "$GCC" = yes; then
6124 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6127 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6128 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6129 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 lt_cv_prog_compiler_rtti_exceptions=no
6133 ac_outfile=conftest.$ac_objext
6134 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6135 lt_compiler_flag="-fno-rtti -fno-exceptions"
6136 # Insert the option either (1) after the last *FLAGS variable, or
6137 # (2) before a word containing "conftest.", or (3) at the end.
6138 # Note that $ac_compile itself does not contain backslashes and begins
6139 # with a dollar sign (not a hyphen), so the echo should work correctly.
6140 # The option is referenced via a variable to avoid confusing sed.
6141 lt_compile=`echo "$ac_compile" | $SED \
6142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6144 -e 's:$: $lt_compiler_flag:'`
6145 (eval echo "\"\$as_me:6145: $lt_compile\"" >&5)
6146 (eval "$lt_compile" 2>conftest.err)
6147 ac_status=$?
6148 cat conftest.err >&5
6149 echo "$as_me:6149: \$? = $ac_status" >&5
6150 if (exit $ac_status) && test -s "$ac_outfile"; then
6151 # The compiler can only warn and ignore the option if not recognized
6152 # So say no if there are warnings other than the usual output.
6153 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6154 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6155 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6156 lt_cv_prog_compiler_rtti_exceptions=yes
6157 fi
6158 fi
6159 $rm conftest*
6161 fi
6162 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6163 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6165 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6166 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6167 else
6168 :
6169 fi
6171 fi
6173 lt_prog_compiler_wl=
6174 lt_prog_compiler_pic=
6175 lt_prog_compiler_static=
6177 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6178 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6180 if test "$GCC" = yes; then
6181 lt_prog_compiler_wl='-Wl,'
6182 lt_prog_compiler_static='-static'
6184 case $host_os in
6185 aix*)
6186 # All AIX code is PIC.
6187 if test "$host_cpu" = ia64; then
6188 # AIX 5 now supports IA64 processor
6189 lt_prog_compiler_static='-Bstatic'
6190 fi
6191 ;;
6193 amigaos*)
6194 # FIXME: we need at least 68020 code to build shared libraries, but
6195 # adding the `-m68020' flag to GCC prevents building anything better,
6196 # like `-m68040'.
6197 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6198 ;;
6200 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6201 # PIC is the default for these OSes.
6202 ;;
6204 mingw* | pw32* | os2*)
6205 # This hack is so that the source file can tell whether it is being
6206 # built for inclusion in a dll (and should export symbols for example).
6207 lt_prog_compiler_pic='-DDLL_EXPORT'
6208 ;;
6210 darwin* | rhapsody*)
6211 # PIC is the default on this platform
6212 # Common symbols not allowed in MH_DYLIB files
6213 lt_prog_compiler_pic='-fno-common'
6214 ;;
6216 interix3*)
6217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6218 # Instead, we relocate shared libraries at runtime.
6219 ;;
6221 msdosdjgpp*)
6222 # Just because we use GCC doesn't mean we suddenly get shared libraries
6223 # on systems that don't support them.
6224 lt_prog_compiler_can_build_shared=no
6225 enable_shared=no
6226 ;;
6228 sysv4*MP*)
6229 if test -d /usr/nec; then
6230 lt_prog_compiler_pic=-Kconform_pic
6231 fi
6232 ;;
6234 hpux*)
6235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6236 # not for PA HP-UX.
6237 case $host_cpu in
6238 hppa*64*|ia64*)
6239 # +Z the default
6240 ;;
6241 *)
6242 lt_prog_compiler_pic='-fPIC'
6243 ;;
6244 esac
6245 ;;
6247 *)
6248 lt_prog_compiler_pic='-fPIC'
6249 ;;
6250 esac
6251 else
6252 # PORTME Check for flag to pass linker flags through the system compiler.
6253 case $host_os in
6254 aix*)
6255 lt_prog_compiler_wl='-Wl,'
6256 if test "$host_cpu" = ia64; then
6257 # AIX 5 now supports IA64 processor
6258 lt_prog_compiler_static='-Bstatic'
6259 else
6260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6261 fi
6262 ;;
6263 darwin*)
6264 # PIC is the default on this platform
6265 # Common symbols not allowed in MH_DYLIB files
6266 case $cc_basename in
6267 xlc*)
6268 lt_prog_compiler_pic='-qnocommon'
6269 lt_prog_compiler_wl='-Wl,'
6270 ;;
6271 esac
6272 ;;
6274 mingw* | pw32* | os2*)
6275 # This hack is so that the source file can tell whether it is being
6276 # built for inclusion in a dll (and should export symbols for example).
6277 lt_prog_compiler_pic='-DDLL_EXPORT'
6278 ;;
6280 hpux9* | hpux10* | hpux11*)
6281 lt_prog_compiler_wl='-Wl,'
6282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6283 # not for PA HP-UX.
6284 case $host_cpu in
6285 hppa*64*|ia64*)
6286 # +Z the default
6287 ;;
6288 *)
6289 lt_prog_compiler_pic='+Z'
6290 ;;
6291 esac
6292 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6293 lt_prog_compiler_static='${wl}-a ${wl}archive'
6294 ;;
6296 irix5* | irix6* | nonstopux*)
6297 lt_prog_compiler_wl='-Wl,'
6298 # PIC (with -KPIC) is the default.
6299 lt_prog_compiler_static='-non_shared'
6300 ;;
6302 newsos6)
6303 lt_prog_compiler_pic='-KPIC'
6304 lt_prog_compiler_static='-Bstatic'
6305 ;;
6307 linux*)
6308 case $cc_basename in
6309 icc* | ecc*)
6310 lt_prog_compiler_wl='-Wl,'
6311 lt_prog_compiler_pic='-KPIC'
6312 lt_prog_compiler_static='-static'
6313 ;;
6314 pgcc* | pgf77* | pgf90* | pgf95*)
6315 # Portland Group compilers (*not* the Pentium gcc compiler,
6316 # which looks to be a dead project)
6317 lt_prog_compiler_wl='-Wl,'
6318 lt_prog_compiler_pic='-fpic'
6319 lt_prog_compiler_static='-Bstatic'
6320 ;;
6321 ccc*)
6322 lt_prog_compiler_wl='-Wl,'
6323 # All Alpha code is PIC.
6324 lt_prog_compiler_static='-non_shared'
6325 ;;
6326 esac
6327 ;;
6329 osf3* | osf4* | osf5*)
6330 lt_prog_compiler_wl='-Wl,'
6331 # All OSF/1 code is PIC.
6332 lt_prog_compiler_static='-non_shared'
6333 ;;
6335 solaris*)
6336 lt_prog_compiler_pic='-KPIC'
6337 lt_prog_compiler_static='-Bstatic'
6338 case $cc_basename in
6339 f77* | f90* | f95*)
6340 lt_prog_compiler_wl='-Qoption ld ';;
6341 *)
6342 lt_prog_compiler_wl='-Wl,';;
6343 esac
6344 ;;
6346 sunos4*)
6347 lt_prog_compiler_wl='-Qoption ld '
6348 lt_prog_compiler_pic='-PIC'
6349 lt_prog_compiler_static='-Bstatic'
6350 ;;
6352 sysv4 | sysv4.2uw2* | sysv4.3*)
6353 lt_prog_compiler_wl='-Wl,'
6354 lt_prog_compiler_pic='-KPIC'
6355 lt_prog_compiler_static='-Bstatic'
6356 ;;
6358 sysv4*MP*)
6359 if test -d /usr/nec ;then
6360 lt_prog_compiler_pic='-Kconform_pic'
6361 lt_prog_compiler_static='-Bstatic'
6362 fi
6363 ;;
6365 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6366 lt_prog_compiler_wl='-Wl,'
6367 lt_prog_compiler_pic='-KPIC'
6368 lt_prog_compiler_static='-Bstatic'
6369 ;;
6371 unicos*)
6372 lt_prog_compiler_wl='-Wl,'
6373 lt_prog_compiler_can_build_shared=no
6374 ;;
6376 uts4*)
6377 lt_prog_compiler_pic='-pic'
6378 lt_prog_compiler_static='-Bstatic'
6379 ;;
6381 *)
6382 lt_prog_compiler_can_build_shared=no
6383 ;;
6384 esac
6385 fi
6387 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6388 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6390 #
6391 # Check to make sure the PIC flag actually works.
6392 #
6393 if test -n "$lt_prog_compiler_pic"; then
6395 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6396 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6397 if test "${lt_prog_compiler_pic_works+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 lt_prog_compiler_pic_works=no
6401 ac_outfile=conftest.$ac_objext
6402 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6403 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6404 # Insert the option either (1) after the last *FLAGS variable, or
6405 # (2) before a word containing "conftest.", or (3) at the end.
6406 # Note that $ac_compile itself does not contain backslashes and begins
6407 # with a dollar sign (not a hyphen), so the echo should work correctly.
6408 # The option is referenced via a variable to avoid confusing sed.
6409 lt_compile=`echo "$ac_compile" | $SED \
6410 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6411 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6412 -e 's:$: $lt_compiler_flag:'`
6413 (eval echo "\"\$as_me:6413: $lt_compile\"" >&5)
6414 (eval "$lt_compile" 2>conftest.err)
6415 ac_status=$?
6416 cat conftest.err >&5
6417 echo "$as_me:6417: \$? = $ac_status" >&5
6418 if (exit $ac_status) && test -s "$ac_outfile"; then
6419 # The compiler can only warn and ignore the option if not recognized
6420 # So say no if there are warnings other than the usual output.
6421 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6423 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6424 lt_prog_compiler_pic_works=yes
6425 fi
6426 fi
6427 $rm conftest*
6429 fi
6430 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6431 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6433 if test x"$lt_prog_compiler_pic_works" = xyes; then
6434 case $lt_prog_compiler_pic in
6435 "" | " "*) ;;
6436 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6437 esac
6438 else
6439 lt_prog_compiler_pic=
6440 lt_prog_compiler_can_build_shared=no
6441 fi
6443 fi
6444 case $host_os in
6445 # For platforms which do not support PIC, -DPIC is meaningless:
6446 *djgpp*)
6447 lt_prog_compiler_pic=
6448 ;;
6449 *)
6450 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6451 ;;
6452 esac
6454 #
6455 # Check to make sure the static flag actually works.
6456 #
6457 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6458 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6459 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6460 if test "${lt_prog_compiler_static_works+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 lt_prog_compiler_static_works=no
6464 save_LDFLAGS="$LDFLAGS"
6465 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6466 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6468 # The linker can only warn and ignore the option if not recognized
6469 # So say no if there are warnings
6470 if test -s conftest.err; then
6471 # Append any errors to the config.log.
6472 cat conftest.err 1>&5
6473 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6475 if diff conftest.exp conftest.er2 >/dev/null; then
6476 lt_prog_compiler_static_works=yes
6477 fi
6478 else
6479 lt_prog_compiler_static_works=yes
6480 fi
6481 fi
6482 $rm conftest*
6483 LDFLAGS="$save_LDFLAGS"
6485 fi
6486 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6487 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6489 if test x"$lt_prog_compiler_static_works" = xyes; then
6490 :
6491 else
6492 lt_prog_compiler_static=
6493 fi
6496 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6497 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6498 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6499 echo $ECHO_N "(cached) $ECHO_C" >&6
6500 else
6501 lt_cv_prog_compiler_c_o=no
6502 $rm -r conftest 2>/dev/null
6503 mkdir conftest
6504 cd conftest
6505 mkdir out
6506 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6508 lt_compiler_flag="-o out/conftest2.$ac_objext"
6509 # Insert the option either (1) after the last *FLAGS variable, or
6510 # (2) before a word containing "conftest.", or (3) at the end.
6511 # Note that $ac_compile itself does not contain backslashes and begins
6512 # with a dollar sign (not a hyphen), so the echo should work correctly.
6513 lt_compile=`echo "$ac_compile" | $SED \
6514 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6515 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6516 -e 's:$: $lt_compiler_flag:'`
6517 (eval echo "\"\$as_me:6517: $lt_compile\"" >&5)
6518 (eval "$lt_compile" 2>out/conftest.err)
6519 ac_status=$?
6520 cat out/conftest.err >&5
6521 echo "$as_me:6521: \$? = $ac_status" >&5
6522 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6523 then
6524 # The compiler can only warn and ignore the option if not recognized
6525 # So say no if there are warnings
6526 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6527 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6528 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6529 lt_cv_prog_compiler_c_o=yes
6530 fi
6531 fi
6532 chmod u+w . 2>&5
6533 $rm conftest*
6534 # SGI C++ compiler will create directory out/ii_files/ for
6535 # template instantiation
6536 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6537 $rm out/* && rmdir out
6538 cd ..
6539 rmdir conftest
6540 $rm conftest*
6542 fi
6543 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6544 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6547 hard_links="nottested"
6548 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6549 # do not overwrite the value of need_locks provided by the user
6550 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6551 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6552 hard_links=yes
6553 $rm conftest*
6554 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6555 touch conftest.a
6556 ln conftest.a conftest.b 2>&5 || hard_links=no
6557 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6558 echo "$as_me:$LINENO: result: $hard_links" >&5
6559 echo "${ECHO_T}$hard_links" >&6
6560 if test "$hard_links" = no; then
6561 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6562 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6563 need_locks=warn
6564 fi
6565 else
6566 need_locks=no
6567 fi
6569 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6570 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6572 runpath_var=
6573 allow_undefined_flag=
6574 enable_shared_with_static_runtimes=no
6575 archive_cmds=
6576 archive_expsym_cmds=
6577 old_archive_From_new_cmds=
6578 old_archive_from_expsyms_cmds=
6579 export_dynamic_flag_spec=
6580 whole_archive_flag_spec=
6581 thread_safe_flag_spec=
6582 hardcode_libdir_flag_spec=
6583 hardcode_libdir_flag_spec_ld=
6584 hardcode_libdir_separator=
6585 hardcode_direct=no
6586 hardcode_minus_L=no
6587 hardcode_shlibpath_var=unsupported
6588 link_all_deplibs=unknown
6589 hardcode_automatic=no
6590 module_cmds=
6591 module_expsym_cmds=
6592 always_export_symbols=no
6593 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6594 # include_expsyms should be a list of space-separated symbols to be *always*
6595 # included in the symbol list
6596 include_expsyms=
6597 # exclude_expsyms can be an extended regexp of symbols to exclude
6598 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6599 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6600 # as well as any symbol that contains `d'.
6601 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6602 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6603 # platforms (ab)use it in PIC code, but their linkers get confused if
6604 # the symbol is explicitly referenced. Since portable code cannot
6605 # rely on this symbol name, it's probably fine to never include it in
6606 # preloaded symbol tables.
6607 extract_expsyms_cmds=
6608 # Just being paranoid about ensuring that cc_basename is set.
6609 for cc_temp in $compiler""; do
6610 case $cc_temp in
6611 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6612 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6613 \-*) ;;
6614 *) break;;
6615 esac
6616 done
6617 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6619 case $host_os in
6620 cygwin* | mingw* | pw32*)
6621 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6622 # When not using gcc, we currently assume that we are using
6623 # Microsoft Visual C++.
6624 if test "$GCC" != yes; then
6625 with_gnu_ld=no
6626 fi
6627 ;;
6628 interix*)
6629 # we just hope/assume this is gcc and not c89 (= MSVC++)
6630 with_gnu_ld=yes
6631 ;;
6632 openbsd*)
6633 with_gnu_ld=no
6634 ;;
6635 esac
6637 ld_shlibs=yes
6638 if test "$with_gnu_ld" = yes; then
6639 # If archive_cmds runs LD, not CC, wlarc should be empty
6640 wlarc='${wl}'
6642 # Set some defaults for GNU ld with shared library support. These
6643 # are reset later if shared libraries are not supported. Putting them
6644 # here allows them to be overridden if necessary.
6645 runpath_var=LD_RUN_PATH
6646 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6647 export_dynamic_flag_spec='${wl}--export-dynamic'
6648 # ancient GNU ld didn't support --whole-archive et. al.
6649 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6650 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6651 else
6652 whole_archive_flag_spec=
6653 fi
6654 supports_anon_versioning=no
6655 case `$LD -v 2>/dev/null` in
6656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6659 *\ 2.11.*) ;; # other 2.11 versions
6660 *) supports_anon_versioning=yes ;;
6661 esac
6663 # See if GNU ld supports shared libraries.
6664 case $host_os in
6665 aix3* | aix4* | aix5*)
6666 # On AIX/PPC, the GNU linker is very broken
6667 if test "$host_cpu" != ia64; then
6668 ld_shlibs=no
6669 cat <<EOF 1>&2
6671 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6672 *** to be unable to reliably create shared libraries on AIX.
6673 *** Therefore, libtool is disabling shared libraries support. If you
6674 *** really care for shared libraries, you may want to modify your PATH
6675 *** so that a non-GNU linker is found, and then restart.
6677 EOF
6678 fi
6679 ;;
6681 amigaos*)
6682 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)'
6683 hardcode_libdir_flag_spec='-L$libdir'
6684 hardcode_minus_L=yes
6686 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6687 # that the semantics of dynamic libraries on AmigaOS, at least up
6688 # to version 4, is to share data among multiple programs linked
6689 # with the same dynamic library. Since this doesn't match the
6690 # behavior of shared libraries on other platforms, we can't use
6691 # them.
6692 ld_shlibs=no
6693 ;;
6695 beos*)
6696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6697 allow_undefined_flag=unsupported
6698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6699 # support --undefined. This deserves some investigation. FIXME
6700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6701 else
6702 ld_shlibs=no
6703 fi
6704 ;;
6706 cygwin* | mingw* | pw32*)
6707 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6708 # as there is no search path for DLLs.
6709 hardcode_libdir_flag_spec='-L$libdir'
6710 allow_undefined_flag=unsupported
6711 always_export_symbols=no
6712 enable_shared_with_static_runtimes=yes
6713 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6715 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6717 # If the export-symbols file already is a .def file (1st line
6718 # is EXPORTS), use it as is; otherwise, prepend...
6719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6720 cp $export_symbols $output_objdir/$soname.def;
6721 else
6722 echo EXPORTS > $output_objdir/$soname.def;
6723 cat $export_symbols >> $output_objdir/$soname.def;
6724 fi~
6725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6726 else
6727 ld_shlibs=no
6728 fi
6729 ;;
6731 interix3*)
6732 hardcode_direct=no
6733 hardcode_shlibpath_var=no
6734 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6735 export_dynamic_flag_spec='${wl}-E'
6736 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6737 # Instead, shared libraries are loaded at an image base (0x10000000 by
6738 # default) and relocated if they conflict, which is a slow very memory
6739 # consuming and fragmenting process. To avoid this, we pick a random,
6740 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6741 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6742 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6743 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'
6744 ;;
6746 linux*)
6747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748 tmp_addflag=
6749 case $cc_basename,$host_cpu in
6750 pgcc*) # Portland Group C compiler
6751 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'
6752 tmp_addflag=' $pic_flag'
6753 ;;
6754 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6755 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'
6756 tmp_addflag=' $pic_flag -Mnomain' ;;
6757 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6758 tmp_addflag=' -i_dynamic' ;;
6759 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6760 tmp_addflag=' -i_dynamic -nofor_main' ;;
6761 ifc* | ifort*) # Intel Fortran compiler
6762 tmp_addflag=' -nofor_main' ;;
6763 esac
6764 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6766 if test $supports_anon_versioning = yes; then
6767 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6768 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6769 $echo "local: *; };" >> $output_objdir/$libname.ver~
6770 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6771 fi
6772 else
6773 ld_shlibs=no
6774 fi
6775 ;;
6777 netbsd*)
6778 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6779 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6780 wlarc=
6781 else
6782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6784 fi
6785 ;;
6787 solaris*)
6788 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6789 ld_shlibs=no
6790 cat <<EOF 1>&2
6792 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6793 *** create shared libraries on Solaris systems. Therefore, libtool
6794 *** is disabling shared libraries support. We urge you to upgrade GNU
6795 *** binutils to release 2.9.1 or newer. Another option is to modify
6796 *** your PATH or compiler configuration so that the native linker is
6797 *** used, and then restart.
6799 EOF
6800 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6803 else
6804 ld_shlibs=no
6805 fi
6806 ;;
6808 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6809 case `$LD -v 2>&1` in
6810 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6811 ld_shlibs=no
6812 cat <<_LT_EOF 1>&2
6814 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6815 *** reliably create shared libraries on SCO systems. Therefore, libtool
6816 *** is disabling shared libraries support. We urge you to upgrade GNU
6817 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6818 *** your PATH or compiler configuration so that the native linker is
6819 *** used, and then restart.
6821 _LT_EOF
6822 ;;
6823 *)
6824 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6825 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6828 else
6829 ld_shlibs=no
6830 fi
6831 ;;
6832 esac
6833 ;;
6835 sunos4*)
6836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6837 wlarc=
6838 hardcode_direct=yes
6839 hardcode_shlibpath_var=no
6840 ;;
6842 *)
6843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6846 else
6847 ld_shlibs=no
6848 fi
6849 ;;
6850 esac
6852 if test "$ld_shlibs" = no; then
6853 runpath_var=
6854 hardcode_libdir_flag_spec=
6855 export_dynamic_flag_spec=
6856 whole_archive_flag_spec=
6857 fi
6858 else
6859 # PORTME fill in a description of your system's linker (not GNU ld)
6860 case $host_os in
6861 aix3*)
6862 allow_undefined_flag=unsupported
6863 always_export_symbols=yes
6864 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'
6865 # Note: this linker hardcodes the directories in LIBPATH if there
6866 # are no directories specified by -L.
6867 hardcode_minus_L=yes
6868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6869 # Neither direct hardcoding nor static linking is supported with a
6870 # broken collect2.
6871 hardcode_direct=unsupported
6872 fi
6873 ;;
6875 aix4* | aix5*)
6876 if test "$host_cpu" = ia64; then
6877 # On IA64, the linker does run time linking by default, so we don't
6878 # have to do anything special.
6879 aix_use_runtimelinking=no
6880 exp_sym_flag='-Bexport'
6881 no_entry_flag=""
6882 else
6883 # If we're using GNU nm, then we don't want the "-C" option.
6884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6885 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6886 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'
6887 else
6888 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'
6889 fi
6890 aix_use_runtimelinking=no
6892 # Test if we are trying to use run time linking or normal
6893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6894 # need to do runtime linking.
6895 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6896 for ld_flag in $LDFLAGS; do
6897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6898 aix_use_runtimelinking=yes
6899 break
6900 fi
6901 done
6902 ;;
6903 esac
6905 exp_sym_flag='-bexport'
6906 no_entry_flag='-bnoentry'
6907 fi
6909 # When large executables or shared objects are built, AIX ld can
6910 # have problems creating the table of contents. If linking a library
6911 # or program results in "error TOC overflow" add -mminimal-toc to
6912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6915 archive_cmds=''
6916 hardcode_direct=yes
6917 hardcode_libdir_separator=':'
6918 link_all_deplibs=yes
6920 if test "$GCC" = yes; then
6921 case $host_os in aix4.[012]|aix4.[012].*)
6922 # We only want to do this on AIX 4.2 and lower, the check
6923 # below for broken collect2 doesn't work under 4.3+
6924 collect2name=`${CC} -print-prog-name=collect2`
6925 if test -f "$collect2name" && \
6926 strings "$collect2name" | grep resolve_lib_name >/dev/null
6927 then
6928 # We have reworked collect2
6929 hardcode_direct=yes
6930 else
6931 # We have old collect2
6932 hardcode_direct=unsupported
6933 # It fails to find uninstalled libraries when the uninstalled
6934 # path is not listed in the libpath. Setting hardcode_minus_L
6935 # to unsupported forces relinking
6936 hardcode_minus_L=yes
6937 hardcode_libdir_flag_spec='-L$libdir'
6938 hardcode_libdir_separator=
6939 fi
6940 ;;
6941 esac
6942 shared_flag='-shared'
6943 if test "$aix_use_runtimelinking" = yes; then
6944 shared_flag="$shared_flag "'${wl}-G'
6945 fi
6946 else
6947 # not using gcc
6948 if test "$host_cpu" = ia64; then
6949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6950 # chokes on -Wl,-G. The following line is correct:
6951 shared_flag='-G'
6952 else
6953 if test "$aix_use_runtimelinking" = yes; then
6954 shared_flag='${wl}-G'
6955 else
6956 shared_flag='${wl}-bM:SRE'
6957 fi
6958 fi
6959 fi
6961 # It seems that -bexpall does not export symbols beginning with
6962 # underscore (_), so it is better to generate a list of symbols to export.
6963 always_export_symbols=yes
6964 if test "$aix_use_runtimelinking" = yes; then
6965 # Warning - without using the other runtime loading flags (-brtl),
6966 # -berok will link without error, but may produce a broken library.
6967 allow_undefined_flag='-berok'
6968 # Determine the default libpath from the value encoded in an empty executable.
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6976 int
6977 main ()
6978 {
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986 (eval $ac_link) 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -z "$ac_c_werror_flag"
6994 || test ! -s conftest.err'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 (eval $ac_try) 2>&5
6997 ac_status=$?
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; } &&
7000 { ac_try='test -s conftest$ac_exeext'
7001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002 (eval $ac_try) 2>&5
7003 ac_status=$?
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); }; }; then
7007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7008 }'`
7009 # Check for a 64-bit object if we didn't find anything.
7010 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; }
7011 }'`; fi
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 fi
7017 rm -f conftest.err conftest.$ac_objext \
7018 conftest$ac_exeext conftest.$ac_ext
7019 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7021 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7022 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"
7023 else
7024 if test "$host_cpu" = ia64; then
7025 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7026 allow_undefined_flag="-z nodefs"
7027 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"
7028 else
7029 # Determine the default libpath from the value encoded in an empty executable.
7030 cat >conftest.$ac_ext <<_ACEOF
7031 /* confdefs.h. */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7037 int
7038 main ()
7039 {
7041 ;
7042 return 0;
7043 }
7044 _ACEOF
7045 rm -f conftest.$ac_objext conftest$ac_exeext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -z "$ac_c_werror_flag"
7055 || test ! -s conftest.err'
7056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 (eval $ac_try) 2>&5
7058 ac_status=$?
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); }; } &&
7061 { ac_try='test -s conftest$ac_exeext'
7062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 (eval $ac_try) 2>&5
7064 ac_status=$?
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); }; }; then
7068 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7069 }'`
7070 # Check for a 64-bit object if we didn't find anything.
7071 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; }
7072 }'`; fi
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7077 fi
7078 rm -f conftest.err conftest.$ac_objext \
7079 conftest$ac_exeext conftest.$ac_ext
7080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7083 # Warning - without using the other run time loading flags,
7084 # -berok will link without error, but may produce a broken library.
7085 no_undefined_flag=' ${wl}-bernotok'
7086 allow_undefined_flag=' ${wl}-berok'
7087 # Exported symbols can be pulled into shared objects from archives
7088 whole_archive_flag_spec='$convenience'
7089 archive_cmds_need_lc=yes
7090 # This is similar to how AIX traditionally builds its shared libraries.
7091 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'
7092 fi
7093 fi
7094 ;;
7096 amigaos*)
7097 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)'
7098 hardcode_libdir_flag_spec='-L$libdir'
7099 hardcode_minus_L=yes
7100 # see comment about different semantics on the GNU ld section
7101 ld_shlibs=no
7102 ;;
7104 bsdi[45]*)
7105 export_dynamic_flag_spec=-rdynamic
7106 ;;
7108 cygwin* | mingw* | pw32*)
7109 # When not using gcc, we currently assume that we are using
7110 # Microsoft Visual C++.
7111 # hardcode_libdir_flag_spec is actually meaningless, as there is
7112 # no search path for DLLs.
7113 hardcode_libdir_flag_spec=' '
7114 allow_undefined_flag=unsupported
7115 # Tell ltmain to make .lib files, not .a files.
7116 libext=lib
7117 # Tell ltmain to make .dll files, not .so files.
7118 shrext_cmds=".dll"
7119 # FIXME: Setting linknames here is a bad hack.
7120 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7121 # The linker will automatically build a .lib file if we build a DLL.
7122 old_archive_From_new_cmds='true'
7123 # FIXME: Should let the user specify the lib program.
7124 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7125 fix_srcfile_path='`cygpath -w "$srcfile"`'
7126 enable_shared_with_static_runtimes=yes
7127 ;;
7129 darwin* | rhapsody*)
7130 case $host_os in
7131 rhapsody* | darwin1.[012])
7132 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7133 ;;
7134 *) # Darwin 1.3 on
7135 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7136 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7137 else
7138 case ${MACOSX_DEPLOYMENT_TARGET} in
7139 10.[012])
7140 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7141 ;;
7142 10.*)
7143 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7144 ;;
7145 esac
7146 fi
7147 ;;
7148 esac
7149 archive_cmds_need_lc=no
7150 hardcode_direct=no
7151 hardcode_automatic=yes
7152 hardcode_shlibpath_var=unsupported
7153 whole_archive_flag_spec=''
7154 link_all_deplibs=yes
7155 if test "$GCC" = yes ; then
7156 output_verbose_link_cmd='echo'
7157 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7158 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7159 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7160 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}'
7161 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}'
7162 else
7163 case $cc_basename in
7164 xlc*)
7165 output_verbose_link_cmd='echo'
7166 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7167 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7168 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7169 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}'
7170 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}'
7171 ;;
7172 *)
7173 ld_shlibs=no
7174 ;;
7175 esac
7176 fi
7177 ;;
7179 dgux*)
7180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7181 hardcode_libdir_flag_spec='-L$libdir'
7182 hardcode_shlibpath_var=no
7183 ;;
7185 freebsd1*)
7186 ld_shlibs=no
7187 ;;
7189 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7190 # support. Future versions do this automatically, but an explicit c++rt0.o
7191 # does not break anything, and helps significantly (at the cost of a little
7192 # extra space).
7193 freebsd2.2*)
7194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7195 hardcode_libdir_flag_spec='-R$libdir'
7196 hardcode_direct=yes
7197 hardcode_shlibpath_var=no
7198 ;;
7200 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7201 freebsd2*)
7202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7203 hardcode_direct=yes
7204 hardcode_minus_L=yes
7205 hardcode_shlibpath_var=no
7206 ;;
7208 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7209 freebsd* | kfreebsd*-gnu | dragonfly*)
7210 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7211 hardcode_libdir_flag_spec='-R$libdir'
7212 hardcode_direct=yes
7213 hardcode_shlibpath_var=no
7214 ;;
7216 hpux9*)
7217 if test "$GCC" = yes; then
7218 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'
7219 else
7220 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'
7221 fi
7222 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7223 hardcode_libdir_separator=:
7224 hardcode_direct=yes
7226 # hardcode_minus_L: Not really in the search PATH,
7227 # but as the default location of the library.
7228 hardcode_minus_L=yes
7229 export_dynamic_flag_spec='${wl}-E'
7230 ;;
7232 hpux10*)
7233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7234 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7235 else
7236 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7237 fi
7238 if test "$with_gnu_ld" = no; then
7239 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7240 hardcode_libdir_separator=:
7242 hardcode_direct=yes
7243 export_dynamic_flag_spec='${wl}-E'
7245 # hardcode_minus_L: Not really in the search PATH,
7246 # but as the default location of the library.
7247 hardcode_minus_L=yes
7248 fi
7249 ;;
7251 hpux11*)
7252 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7253 case $host_cpu in
7254 hppa*64*)
7255 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7256 ;;
7257 ia64*)
7258 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7259 ;;
7260 *)
7261 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7262 ;;
7263 esac
7264 else
7265 case $host_cpu in
7266 hppa*64*)
7267 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7268 ;;
7269 ia64*)
7270 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7271 ;;
7272 *)
7273 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7274 ;;
7275 esac
7276 fi
7277 if test "$with_gnu_ld" = no; then
7278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7279 hardcode_libdir_separator=:
7281 case $host_cpu in
7282 hppa*64*|ia64*)
7283 hardcode_libdir_flag_spec_ld='+b $libdir'
7284 hardcode_direct=no
7285 hardcode_shlibpath_var=no
7286 ;;
7287 *)
7288 hardcode_direct=yes
7289 export_dynamic_flag_spec='${wl}-E'
7291 # hardcode_minus_L: Not really in the search PATH,
7292 # but as the default location of the library.
7293 hardcode_minus_L=yes
7294 ;;
7295 esac
7296 fi
7297 ;;
7299 irix5* | irix6* | nonstopux*)
7300 if test "$GCC" = yes; then
7301 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'
7302 else
7303 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'
7304 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7305 fi
7306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7307 hardcode_libdir_separator=:
7308 link_all_deplibs=yes
7309 ;;
7311 netbsd*)
7312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7313 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7314 else
7315 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7316 fi
7317 hardcode_libdir_flag_spec='-R$libdir'
7318 hardcode_direct=yes
7319 hardcode_shlibpath_var=no
7320 ;;
7322 newsos6)
7323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7324 hardcode_direct=yes
7325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7326 hardcode_libdir_separator=:
7327 hardcode_shlibpath_var=no
7328 ;;
7330 openbsd*)
7331 hardcode_direct=yes
7332 hardcode_shlibpath_var=no
7333 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7334 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7335 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7336 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7337 export_dynamic_flag_spec='${wl}-E'
7338 else
7339 case $host_os in
7340 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7341 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7342 hardcode_libdir_flag_spec='-R$libdir'
7343 ;;
7344 *)
7345 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7346 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7347 ;;
7348 esac
7349 fi
7350 ;;
7352 os2*)
7353 hardcode_libdir_flag_spec='-L$libdir'
7354 hardcode_minus_L=yes
7355 allow_undefined_flag=unsupported
7356 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'
7357 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7358 ;;
7360 osf3*)
7361 if test "$GCC" = yes; then
7362 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7363 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'
7364 else
7365 allow_undefined_flag=' -expect_unresolved \*'
7366 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'
7367 fi
7368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7369 hardcode_libdir_separator=:
7370 ;;
7372 osf4* | osf5*) # as osf3* with the addition of -msym flag
7373 if test "$GCC" = yes; then
7374 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7375 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'
7376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7377 else
7378 allow_undefined_flag=' -expect_unresolved \*'
7379 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'
7380 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7381 $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'
7383 # Both c and cxx compiler support -rpath directly
7384 hardcode_libdir_flag_spec='-rpath $libdir'
7385 fi
7386 hardcode_libdir_separator=:
7387 ;;
7389 solaris*)
7390 no_undefined_flag=' -z text'
7391 if test "$GCC" = yes; then
7392 wlarc='${wl}'
7393 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7394 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7395 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7396 else
7397 wlarc=''
7398 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7400 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7401 fi
7402 hardcode_libdir_flag_spec='-R$libdir'
7403 hardcode_shlibpath_var=no
7404 case $host_os in
7405 solaris2.[0-5] | solaris2.[0-5].*) ;;
7406 *)
7407 # The compiler driver will combine linker options so we
7408 # cannot just pass the convience library names through
7409 # without $wl, iff we do not link with $LD.
7410 # Luckily, gcc supports the same syntax we need for Sun Studio.
7411 # Supported since Solaris 2.6 (maybe 2.5.1?)
7412 case $wlarc in
7413 '')
7414 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7415 *)
7416 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' ;;
7417 esac ;;
7418 esac
7419 link_all_deplibs=yes
7420 ;;
7422 sunos4*)
7423 if test "x$host_vendor" = xsequent; then
7424 # Use $CC to link under sequent, because it throws in some extra .o
7425 # files that make .init and .fini sections work.
7426 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7427 else
7428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7429 fi
7430 hardcode_libdir_flag_spec='-L$libdir'
7431 hardcode_direct=yes
7432 hardcode_minus_L=yes
7433 hardcode_shlibpath_var=no
7434 ;;
7436 sysv4)
7437 case $host_vendor in
7438 sni)
7439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440 hardcode_direct=yes # is this really true???
7441 ;;
7442 siemens)
7443 ## LD is ld it makes a PLAMLIB
7444 ## CC just makes a GrossModule.
7445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7446 reload_cmds='$CC -r -o $output$reload_objs'
7447 hardcode_direct=no
7448 ;;
7449 motorola)
7450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7452 ;;
7453 esac
7454 runpath_var='LD_RUN_PATH'
7455 hardcode_shlibpath_var=no
7456 ;;
7458 sysv4.3*)
7459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7460 hardcode_shlibpath_var=no
7461 export_dynamic_flag_spec='-Bexport'
7462 ;;
7464 sysv4*MP*)
7465 if test -d /usr/nec; then
7466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7467 hardcode_shlibpath_var=no
7468 runpath_var=LD_RUN_PATH
7469 hardcode_runpath_var=yes
7470 ld_shlibs=yes
7471 fi
7472 ;;
7474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7475 no_undefined_flag='${wl}-z,text'
7476 archive_cmds_need_lc=no
7477 hardcode_shlibpath_var=no
7478 runpath_var='LD_RUN_PATH'
7480 if test "$GCC" = yes; then
7481 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7483 else
7484 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7486 fi
7487 ;;
7489 sysv5* | sco3.2v5* | sco5v6*)
7490 # Note: We can NOT use -z defs as we might desire, because we do not
7491 # link with -lc, and that would cause any symbols used from libc to
7492 # always be unresolved, which means just about no library would
7493 # ever link correctly. If we're not using GNU ld we use -z text
7494 # though, which does catch some bad symbols but isn't as heavy-handed
7495 # as -z defs.
7496 no_undefined_flag='${wl}-z,text'
7497 allow_undefined_flag='${wl}-z,nodefs'
7498 archive_cmds_need_lc=no
7499 hardcode_shlibpath_var=no
7500 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7501 hardcode_libdir_separator=':'
7502 link_all_deplibs=yes
7503 export_dynamic_flag_spec='${wl}-Bexport'
7504 runpath_var='LD_RUN_PATH'
7506 if test "$GCC" = yes; then
7507 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7508 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7509 else
7510 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7511 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7512 fi
7513 ;;
7515 uts4*)
7516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7517 hardcode_libdir_flag_spec='-L$libdir'
7518 hardcode_shlibpath_var=no
7519 ;;
7521 *)
7522 ld_shlibs=no
7523 ;;
7524 esac
7525 fi
7527 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7528 echo "${ECHO_T}$ld_shlibs" >&6
7529 test "$ld_shlibs" = no && can_build_shared=no
7531 #
7532 # Do we need to explicitly link libc?
7533 #
7534 case "x$archive_cmds_need_lc" in
7535 x|xyes)
7536 # Assume -lc should be added
7537 archive_cmds_need_lc=yes
7539 if test "$enable_shared" = yes && test "$GCC" = yes; then
7540 case $archive_cmds in
7541 *'~'*)
7542 # FIXME: we may have to deal with multi-command sequences.
7543 ;;
7544 '$CC '*)
7545 # Test whether the compiler implicitly links with -lc since on some
7546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7547 # to ld, don't add -lc before -lgcc.
7548 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7549 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7550 $rm conftest*
7551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7554 (eval $ac_compile) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } 2>conftest.err; then
7558 soname=conftest
7559 lib=conftest
7560 libobjs=conftest.$ac_objext
7561 deplibs=
7562 wl=$lt_prog_compiler_wl
7563 pic_flag=$lt_prog_compiler_pic
7564 compiler_flags=-v
7565 linker_flags=-v
7566 verstring=
7567 output_objdir=.
7568 libname=conftest
7569 lt_save_allow_undefined_flag=$allow_undefined_flag
7570 allow_undefined_flag=
7571 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7572 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); }
7576 then
7577 archive_cmds_need_lc=no
7578 else
7579 archive_cmds_need_lc=yes
7580 fi
7581 allow_undefined_flag=$lt_save_allow_undefined_flag
7582 else
7583 cat conftest.err 1>&5
7584 fi
7585 $rm conftest*
7586 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7587 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7588 ;;
7589 esac
7590 fi
7591 ;;
7592 esac
7594 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7595 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7596 library_names_spec=
7597 libname_spec='lib$name'
7598 soname_spec=
7599 shrext_cmds=".so"
7600 postinstall_cmds=
7601 postuninstall_cmds=
7602 finish_cmds=
7603 finish_eval=
7604 shlibpath_var=
7605 shlibpath_overrides_runpath=unknown
7606 version_type=none
7607 dynamic_linker="$host_os ld.so"
7608 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7609 if test "$GCC" = yes; then
7610 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7611 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7612 # if the path contains ";" then we assume it to be the separator
7613 # otherwise default to the standard path separator (i.e. ":") - it is
7614 # assumed that no part of a normal pathname contains ";" but that should
7615 # okay in the real world where ";" in dirpaths is itself problematic.
7616 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7617 else
7618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7619 fi
7620 else
7621 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7622 fi
7623 need_lib_prefix=unknown
7624 hardcode_into_libs=no
7626 # when you set need_version to no, make sure it does not cause -set_version
7627 # flags to be left without arguments
7628 need_version=unknown
7630 case $host_os in
7631 aix3*)
7632 version_type=linux
7633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7634 shlibpath_var=LIBPATH
7636 # AIX 3 has no versioning support, so we append a major version to the name.
7637 soname_spec='${libname}${release}${shared_ext}$major'
7638 ;;
7640 aix4* | aix5*)
7641 version_type=linux
7642 need_lib_prefix=no
7643 need_version=no
7644 hardcode_into_libs=yes
7645 if test "$host_cpu" = ia64; then
7646 # AIX 5 supports IA64
7647 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7648 shlibpath_var=LD_LIBRARY_PATH
7649 else
7650 # With GCC up to 2.95.x, collect2 would create an import file
7651 # for dependence libraries. The import file would start with
7652 # the line `#! .'. This would cause the generated library to
7653 # depend on `.', always an invalid library. This was fixed in
7654 # development snapshots of GCC prior to 3.0.
7655 case $host_os in
7656 aix4 | aix4.[01] | aix4.[01].*)
7657 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7658 echo ' yes '
7659 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7660 :
7661 else
7662 can_build_shared=no
7663 fi
7664 ;;
7665 esac
7666 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7667 # soname into executable. Probably we can add versioning support to
7668 # collect2, so additional links can be useful in future.
7669 if test "$aix_use_runtimelinking" = yes; then
7670 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7671 # instead of lib<name>.a to let people know that these are not
7672 # typical AIX shared libraries.
7673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7674 else
7675 # We preserve .a as extension for shared libraries through AIX4.2
7676 # and later when we are not doing run time linking.
7677 library_names_spec='${libname}${release}.a $libname.a'
7678 soname_spec='${libname}${release}${shared_ext}$major'
7679 fi
7680 shlibpath_var=LIBPATH
7681 fi
7682 ;;
7684 amigaos*)
7685 library_names_spec='$libname.ixlibrary $libname.a'
7686 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7687 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'
7688 ;;
7690 beos*)
7691 library_names_spec='${libname}${shared_ext}'
7692 dynamic_linker="$host_os ld.so"
7693 shlibpath_var=LIBRARY_PATH
7694 ;;
7696 bsdi[45]*)
7697 version_type=linux
7698 need_version=no
7699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7700 soname_spec='${libname}${release}${shared_ext}$major'
7701 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7702 shlibpath_var=LD_LIBRARY_PATH
7703 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7704 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7705 # the default ld.so.conf also contains /usr/contrib/lib and
7706 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7707 # libtool to hard-code these into programs
7708 ;;
7710 cygwin* | mingw* | pw32*)
7711 version_type=windows
7712 shrext_cmds=".dll"
7713 need_version=no
7714 need_lib_prefix=no
7716 case $GCC,$host_os in
7717 yes,cygwin* | yes,mingw* | yes,pw32*)
7718 library_names_spec='$libname.dll.a'
7719 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7720 postinstall_cmds='base_file=`basename \${file}`~
7721 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7722 dldir=$destdir/`dirname \$dlpath`~
7723 test -d \$dldir || mkdir -p \$dldir~
7724 $install_prog $dir/$dlname \$dldir/$dlname~
7725 chmod a+x \$dldir/$dlname'
7726 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7727 dlpath=$dir/\$dldll~
7728 $rm \$dlpath'
7729 shlibpath_overrides_runpath=yes
7731 case $host_os in
7732 cygwin*)
7733 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7734 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7735 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7736 ;;
7737 mingw*)
7738 # MinGW DLLs use traditional 'lib' prefix
7739 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7741 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7742 # It is most probably a Windows format PATH printed by
7743 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7744 # path with ; separators, and with drive letters. We can handle the
7745 # drive letters (cygwin fileutils understands them), so leave them,
7746 # especially as we might pass files found there to a mingw objdump,
7747 # which wouldn't understand a cygwinified path. Ahh.
7748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7749 else
7750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7751 fi
7752 ;;
7753 pw32*)
7754 # pw32 DLLs use 'pw' prefix rather than 'lib'
7755 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7756 ;;
7757 esac
7758 ;;
7760 *)
7761 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7762 ;;
7763 esac
7764 dynamic_linker='Win32 ld.exe'
7765 # FIXME: first we should search . and the directory the executable is in
7766 shlibpath_var=PATH
7767 ;;
7769 darwin* | rhapsody*)
7770 dynamic_linker="$host_os dyld"
7771 version_type=darwin
7772 need_lib_prefix=no
7773 need_version=no
7774 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7775 soname_spec='${libname}${release}${major}$shared_ext'
7776 shlibpath_overrides_runpath=yes
7777 shlibpath_var=DYLD_LIBRARY_PATH
7778 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7779 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7780 if test "$GCC" = yes; then
7781 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"`
7782 else
7783 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7784 fi
7785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7786 ;;
7788 dgux*)
7789 version_type=linux
7790 need_lib_prefix=no
7791 need_version=no
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7793 soname_spec='${libname}${release}${shared_ext}$major'
7794 shlibpath_var=LD_LIBRARY_PATH
7795 ;;
7797 freebsd1*)
7798 dynamic_linker=no
7799 ;;
7801 kfreebsd*-gnu)
7802 version_type=linux
7803 need_lib_prefix=no
7804 need_version=no
7805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7806 soname_spec='${libname}${release}${shared_ext}$major'
7807 shlibpath_var=LD_LIBRARY_PATH
7808 shlibpath_overrides_runpath=no
7809 hardcode_into_libs=yes
7810 dynamic_linker='GNU ld.so'
7811 ;;
7813 freebsd* | dragonfly*)
7814 # DragonFly does not have aout. When/if they implement a new
7815 # versioning mechanism, adjust this.
7816 if test -x /usr/bin/objformat; then
7817 objformat=`/usr/bin/objformat`
7818 else
7819 case $host_os in
7820 freebsd[123]*) objformat=aout ;;
7821 *) objformat=elf ;;
7822 esac
7823 fi
7824 version_type=freebsd-$objformat
7825 case $version_type in
7826 freebsd-elf*)
7827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7828 need_version=no
7829 need_lib_prefix=no
7830 ;;
7831 freebsd-*)
7832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7833 need_version=yes
7834 ;;
7835 esac
7836 shlibpath_var=LD_LIBRARY_PATH
7837 case $host_os in
7838 freebsd2*)
7839 shlibpath_overrides_runpath=yes
7840 ;;
7841 freebsd3.[01]* | freebsdelf3.[01]*)
7842 shlibpath_overrides_runpath=yes
7843 hardcode_into_libs=yes
7844 ;;
7845 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7846 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7847 shlibpath_overrides_runpath=no
7848 hardcode_into_libs=yes
7849 ;;
7850 freebsd*) # from 4.6 on
7851 shlibpath_overrides_runpath=yes
7852 hardcode_into_libs=yes
7853 ;;
7854 esac
7855 ;;
7857 gnu*)
7858 version_type=linux
7859 need_lib_prefix=no
7860 need_version=no
7861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7862 soname_spec='${libname}${release}${shared_ext}$major'
7863 shlibpath_var=LD_LIBRARY_PATH
7864 hardcode_into_libs=yes
7865 ;;
7867 hpux9* | hpux10* | hpux11*)
7868 # Give a soname corresponding to the major version so that dld.sl refuses to
7869 # link against other versions.
7870 version_type=sunos
7871 need_lib_prefix=no
7872 need_version=no
7873 case $host_cpu in
7874 ia64*)
7875 shrext_cmds='.so'
7876 hardcode_into_libs=yes
7877 dynamic_linker="$host_os dld.so"
7878 shlibpath_var=LD_LIBRARY_PATH
7879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881 soname_spec='${libname}${release}${shared_ext}$major'
7882 if test "X$HPUX_IA64_MODE" = X32; then
7883 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7884 else
7885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7886 fi
7887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7888 ;;
7889 hppa*64*)
7890 shrext_cmds='.sl'
7891 hardcode_into_libs=yes
7892 dynamic_linker="$host_os dld.sl"
7893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7896 soname_spec='${libname}${release}${shared_ext}$major'
7897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7899 ;;
7900 *)
7901 shrext_cmds='.sl'
7902 dynamic_linker="$host_os dld.sl"
7903 shlibpath_var=SHLIB_PATH
7904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906 soname_spec='${libname}${release}${shared_ext}$major'
7907 ;;
7908 esac
7909 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7910 postinstall_cmds='chmod 555 $lib'
7911 ;;
7913 interix3*)
7914 version_type=linux
7915 need_lib_prefix=no
7916 need_version=no
7917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7918 soname_spec='${libname}${release}${shared_ext}$major'
7919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7920 shlibpath_var=LD_LIBRARY_PATH
7921 shlibpath_overrides_runpath=no
7922 hardcode_into_libs=yes
7923 ;;
7925 irix5* | irix6* | nonstopux*)
7926 case $host_os in
7927 nonstopux*) version_type=nonstopux ;;
7928 *)
7929 if test "$lt_cv_prog_gnu_ld" = yes; then
7930 version_type=linux
7931 else
7932 version_type=irix
7933 fi ;;
7934 esac
7935 need_lib_prefix=no
7936 need_version=no
7937 soname_spec='${libname}${release}${shared_ext}$major'
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7939 case $host_os in
7940 irix5* | nonstopux*)
7941 libsuff= shlibsuff=
7942 ;;
7943 *)
7944 case $LD in # libtool.m4 will add one of these switches to LD
7945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7946 libsuff= shlibsuff= libmagic=32-bit;;
7947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7948 libsuff=32 shlibsuff=N32 libmagic=N32;;
7949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7951 *) libsuff= shlibsuff= libmagic=never-match;;
7952 esac
7953 ;;
7954 esac
7955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7956 shlibpath_overrides_runpath=no
7957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7959 hardcode_into_libs=yes
7960 ;;
7962 # No shared lib support for Linux oldld, aout, or coff.
7963 linux*oldld* | linux*aout* | linux*coff*)
7964 dynamic_linker=no
7965 ;;
7967 # This must be Linux ELF.
7968 linux*)
7969 version_type=linux
7970 need_lib_prefix=no
7971 need_version=no
7972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7973 soname_spec='${libname}${release}${shared_ext}$major'
7974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7975 shlibpath_var=LD_LIBRARY_PATH
7976 shlibpath_overrides_runpath=no
7977 # This implies no fast_install, which is unacceptable.
7978 # Some rework will be needed to allow for fast_install
7979 # before this can be enabled.
7980 hardcode_into_libs=yes
7982 # Append ld.so.conf contents to the search path
7983 if test -f /etc/ld.so.conf; then
7984 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7986 fi
7988 # We used to test for /lib/ld.so.1 and disable shared libraries on
7989 # powerpc, because MkLinux only supported shared libraries with the
7990 # GNU dynamic linker. Since this was broken with cross compilers,
7991 # most powerpc-linux boxes support dynamic linking these days and
7992 # people can always --disable-shared, the test was removed, and we
7993 # assume the GNU/Linux dynamic linker is in use.
7994 dynamic_linker='GNU/Linux ld.so'
7995 ;;
7997 knetbsd*-gnu)
7998 version_type=linux
7999 need_lib_prefix=no
8000 need_version=no
8001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8002 soname_spec='${libname}${release}${shared_ext}$major'
8003 shlibpath_var=LD_LIBRARY_PATH
8004 shlibpath_overrides_runpath=no
8005 hardcode_into_libs=yes
8006 dynamic_linker='GNU ld.so'
8007 ;;
8009 netbsd*)
8010 version_type=sunos
8011 need_lib_prefix=no
8012 need_version=no
8013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8016 dynamic_linker='NetBSD (a.out) ld.so'
8017 else
8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8019 soname_spec='${libname}${release}${shared_ext}$major'
8020 dynamic_linker='NetBSD ld.elf_so'
8021 fi
8022 shlibpath_var=LD_LIBRARY_PATH
8023 shlibpath_overrides_runpath=yes
8024 hardcode_into_libs=yes
8025 ;;
8027 newsos6)
8028 version_type=linux
8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030 shlibpath_var=LD_LIBRARY_PATH
8031 shlibpath_overrides_runpath=yes
8032 ;;
8034 nto-qnx*)
8035 version_type=linux
8036 need_lib_prefix=no
8037 need_version=no
8038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8039 soname_spec='${libname}${release}${shared_ext}$major'
8040 shlibpath_var=LD_LIBRARY_PATH
8041 shlibpath_overrides_runpath=yes
8042 ;;
8044 openbsd*)
8045 version_type=sunos
8046 sys_lib_dlsearch_path_spec="/usr/lib"
8047 need_lib_prefix=no
8048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8049 case $host_os in
8050 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8051 *) need_version=no ;;
8052 esac
8053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8055 shlibpath_var=LD_LIBRARY_PATH
8056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8057 case $host_os in
8058 openbsd2.[89] | openbsd2.[89].*)
8059 shlibpath_overrides_runpath=no
8060 ;;
8061 *)
8062 shlibpath_overrides_runpath=yes
8063 ;;
8064 esac
8065 else
8066 shlibpath_overrides_runpath=yes
8067 fi
8068 ;;
8070 os2*)
8071 libname_spec='$name'
8072 shrext_cmds=".dll"
8073 need_lib_prefix=no
8074 library_names_spec='$libname${shared_ext} $libname.a'
8075 dynamic_linker='OS/2 ld.exe'
8076 shlibpath_var=LIBPATH
8077 ;;
8079 osf3* | osf4* | osf5*)
8080 version_type=osf
8081 need_lib_prefix=no
8082 need_version=no
8083 soname_spec='${libname}${release}${shared_ext}$major'
8084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8085 shlibpath_var=LD_LIBRARY_PATH
8086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8088 ;;
8090 solaris*)
8091 version_type=linux
8092 need_lib_prefix=no
8093 need_version=no
8094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095 soname_spec='${libname}${release}${shared_ext}$major'
8096 shlibpath_var=LD_LIBRARY_PATH
8097 shlibpath_overrides_runpath=yes
8098 hardcode_into_libs=yes
8099 # ldd complains unless libraries are executable
8100 postinstall_cmds='chmod +x $lib'
8101 ;;
8103 sunos4*)
8104 version_type=sunos
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8107 shlibpath_var=LD_LIBRARY_PATH
8108 shlibpath_overrides_runpath=yes
8109 if test "$with_gnu_ld" = yes; then
8110 need_lib_prefix=no
8111 fi
8112 need_version=yes
8113 ;;
8115 sysv4 | sysv4.3*)
8116 version_type=linux
8117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8118 soname_spec='${libname}${release}${shared_ext}$major'
8119 shlibpath_var=LD_LIBRARY_PATH
8120 case $host_vendor in
8121 sni)
8122 shlibpath_overrides_runpath=no
8123 need_lib_prefix=no
8124 export_dynamic_flag_spec='${wl}-Blargedynsym'
8125 runpath_var=LD_RUN_PATH
8126 ;;
8127 siemens)
8128 need_lib_prefix=no
8129 ;;
8130 motorola)
8131 need_lib_prefix=no
8132 need_version=no
8133 shlibpath_overrides_runpath=no
8134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8135 ;;
8136 esac
8137 ;;
8139 sysv4*MP*)
8140 if test -d /usr/nec ;then
8141 version_type=linux
8142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8143 soname_spec='$libname${shared_ext}.$major'
8144 shlibpath_var=LD_LIBRARY_PATH
8145 fi
8146 ;;
8148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8149 version_type=freebsd-elf
8150 need_lib_prefix=no
8151 need_version=no
8152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8153 soname_spec='${libname}${release}${shared_ext}$major'
8154 shlibpath_var=LD_LIBRARY_PATH
8155 hardcode_into_libs=yes
8156 if test "$with_gnu_ld" = yes; then
8157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8158 shlibpath_overrides_runpath=no
8159 else
8160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8161 shlibpath_overrides_runpath=yes
8162 case $host_os in
8163 sco3.2v5*)
8164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8165 ;;
8166 esac
8167 fi
8168 sys_lib_dlsearch_path_spec='/usr/lib'
8169 ;;
8171 uts4*)
8172 version_type=linux
8173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8174 soname_spec='${libname}${release}${shared_ext}$major'
8175 shlibpath_var=LD_LIBRARY_PATH
8176 ;;
8178 *)
8179 dynamic_linker=no
8180 ;;
8181 esac
8182 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8183 echo "${ECHO_T}$dynamic_linker" >&6
8184 test "$dynamic_linker" = no && can_build_shared=no
8186 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8187 if test "$GCC" = yes; then
8188 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8189 fi
8191 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8192 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8193 hardcode_action=
8194 if test -n "$hardcode_libdir_flag_spec" || \
8195 test -n "$runpath_var" || \
8196 test "X$hardcode_automatic" = "Xyes" ; then
8198 # We can hardcode non-existant directories.
8199 if test "$hardcode_direct" != no &&
8200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8201 # have to relink, otherwise we might link with an installed library
8202 # when we should be linking with a yet-to-be-installed one
8203 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8204 test "$hardcode_minus_L" != no; then
8205 # Linking always hardcodes the temporary library directory.
8206 hardcode_action=relink
8207 else
8208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8209 hardcode_action=immediate
8210 fi
8211 else
8212 # We cannot hardcode anything, or else we can only hardcode existing
8213 # directories.
8214 hardcode_action=unsupported
8215 fi
8216 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8217 echo "${ECHO_T}$hardcode_action" >&6
8219 if test "$hardcode_action" = relink; then
8220 # Fast installation is not supported
8221 enable_fast_install=no
8222 elif test "$shlibpath_overrides_runpath" = yes ||
8223 test "$enable_shared" = no; then
8224 # Fast installation is not necessary
8225 enable_fast_install=needless
8226 fi
8228 striplib=
8229 old_striplib=
8230 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8231 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8232 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8234 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8235 echo "$as_me:$LINENO: result: yes" >&5
8236 echo "${ECHO_T}yes" >&6
8237 else
8238 # FIXME - insert some real tests, host_os isn't really good enough
8239 case $host_os in
8240 darwin*)
8241 if test -n "$STRIP" ; then
8242 striplib="$STRIP -x"
8243 echo "$as_me:$LINENO: result: yes" >&5
8244 echo "${ECHO_T}yes" >&6
8245 else
8246 echo "$as_me:$LINENO: result: no" >&5
8247 echo "${ECHO_T}no" >&6
8248 fi
8249 ;;
8250 *)
8251 echo "$as_me:$LINENO: result: no" >&5
8252 echo "${ECHO_T}no" >&6
8253 ;;
8254 esac
8255 fi
8257 if test "x$enable_dlopen" != xyes; then
8258 enable_dlopen=unknown
8259 enable_dlopen_self=unknown
8260 enable_dlopen_self_static=unknown
8261 else
8262 lt_cv_dlopen=no
8263 lt_cv_dlopen_libs=
8265 case $host_os in
8266 beos*)
8267 lt_cv_dlopen="load_add_on"
8268 lt_cv_dlopen_libs=
8269 lt_cv_dlopen_self=yes
8270 ;;
8272 mingw* | pw32*)
8273 lt_cv_dlopen="LoadLibrary"
8274 lt_cv_dlopen_libs=
8275 ;;
8277 cygwin*)
8278 lt_cv_dlopen="dlopen"
8279 lt_cv_dlopen_libs=
8280 ;;
8282 darwin*)
8283 # if libdl is installed we need to link against it
8284 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8285 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8286 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288 else
8289 ac_check_lib_save_LIBS=$LIBS
8290 LIBS="-ldl $LIBS"
8291 cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h. */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8298 /* Override any gcc2 internal prototype to avoid an error. */
8299 #ifdef __cplusplus
8300 extern "C"
8301 #endif
8302 /* We use char because int might match the return type of a gcc2
8303 builtin and then its argument prototype would still apply. */
8304 char dlopen ();
8305 int
8306 main ()
8307 {
8308 dlopen ();
8309 ;
8310 return 0;
8311 }
8312 _ACEOF
8313 rm -f conftest.$ac_objext conftest$ac_exeext
8314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8315 (eval $ac_link) 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try='test -z "$ac_c_werror_flag"
8323 || test ! -s conftest.err'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8325 (eval $ac_try) 2>&5
8326 ac_status=$?
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; } &&
8329 { ac_try='test -s conftest$ac_exeext'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8331 (eval $ac_try) 2>&5
8332 ac_status=$?
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; }; then
8335 ac_cv_lib_dl_dlopen=yes
8336 else
8337 echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8340 ac_cv_lib_dl_dlopen=no
8341 fi
8342 rm -f conftest.err conftest.$ac_objext \
8343 conftest$ac_exeext conftest.$ac_ext
8344 LIBS=$ac_check_lib_save_LIBS
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8347 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8348 if test $ac_cv_lib_dl_dlopen = yes; then
8349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8350 else
8352 lt_cv_dlopen="dyld"
8353 lt_cv_dlopen_libs=
8354 lt_cv_dlopen_self=yes
8356 fi
8358 ;;
8360 *)
8361 echo "$as_me:$LINENO: checking for shl_load" >&5
8362 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8363 if test "${ac_cv_func_shl_load+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h. */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8374 #define shl_load innocuous_shl_load
8376 /* System header to define __stub macros and hopefully few prototypes,
8377 which can conflict with char shl_load (); below.
8378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8379 <limits.h> exists even on freestanding compilers. */
8381 #ifdef __STDC__
8382 # include <limits.h>
8383 #else
8384 # include <assert.h>
8385 #endif
8387 #undef shl_load
8389 /* Override any gcc2 internal prototype to avoid an error. */
8390 #ifdef __cplusplus
8391 extern "C"
8392 {
8393 #endif
8394 /* We use char because int might match the return type of a gcc2
8395 builtin and then its argument prototype would still apply. */
8396 char shl_load ();
8397 /* The GNU C library defines this for functions which it implements
8398 to always fail with ENOSYS. Some functions are actually named
8399 something starting with __ and the normal name is an alias. */
8400 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8401 choke me
8402 #else
8403 char (*f) () = shl_load;
8404 #endif
8405 #ifdef __cplusplus
8406 }
8407 #endif
8409 int
8410 main ()
8411 {
8412 return f != shl_load;
8413 ;
8414 return 0;
8415 }
8416 _ACEOF
8417 rm -f conftest.$ac_objext conftest$ac_exeext
8418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8419 (eval $ac_link) 2>conftest.er1
8420 ac_status=$?
8421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
8423 cat conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -z "$ac_c_werror_flag"
8427 || test ! -s conftest.err'
8428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8429 (eval $ac_try) 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8435 (eval $ac_try) 2>&5
8436 ac_status=$?
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); }; }; then
8439 ac_cv_func_shl_load=yes
8440 else
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8444 ac_cv_func_shl_load=no
8445 fi
8446 rm -f conftest.err conftest.$ac_objext \
8447 conftest$ac_exeext conftest.$ac_ext
8448 fi
8449 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8450 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8451 if test $ac_cv_func_shl_load = yes; then
8452 lt_cv_dlopen="shl_load"
8453 else
8454 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8455 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8456 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459 ac_check_lib_save_LIBS=$LIBS
8460 LIBS="-ldld $LIBS"
8461 cat >conftest.$ac_ext <<_ACEOF
8462 /* confdefs.h. */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8468 /* Override any gcc2 internal prototype to avoid an error. */
8469 #ifdef __cplusplus
8470 extern "C"
8471 #endif
8472 /* We use char because int might match the return type of a gcc2
8473 builtin and then its argument prototype would still apply. */
8474 char shl_load ();
8475 int
8476 main ()
8477 {
8478 shl_load ();
8479 ;
8480 return 0;
8481 }
8482 _ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8485 (eval $ac_link) 2>conftest.er1
8486 ac_status=$?
8487 grep -v '^ *+' conftest.er1 >conftest.err
8488 rm -f conftest.er1
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } &&
8492 { ac_try='test -z "$ac_c_werror_flag"
8493 || test ! -s conftest.err'
8494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 (eval $ac_try) 2>&5
8496 ac_status=$?
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); }; } &&
8499 { ac_try='test -s conftest$ac_exeext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 (eval $ac_try) 2>&5
8502 ac_status=$?
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_cv_lib_dld_shl_load=yes
8506 else
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 ac_cv_lib_dld_shl_load=no
8511 fi
8512 rm -f conftest.err conftest.$ac_objext \
8513 conftest$ac_exeext conftest.$ac_ext
8514 LIBS=$ac_check_lib_save_LIBS
8515 fi
8516 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8517 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8518 if test $ac_cv_lib_dld_shl_load = yes; then
8519 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8520 else
8521 echo "$as_me:$LINENO: checking for dlopen" >&5
8522 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8523 if test "${ac_cv_func_dlopen+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8534 #define dlopen innocuous_dlopen
8536 /* System header to define __stub macros and hopefully few prototypes,
8537 which can conflict with char dlopen (); below.
8538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8539 <limits.h> exists even on freestanding compilers. */
8541 #ifdef __STDC__
8542 # include <limits.h>
8543 #else
8544 # include <assert.h>
8545 #endif
8547 #undef dlopen
8549 /* Override any gcc2 internal prototype to avoid an error. */
8550 #ifdef __cplusplus
8551 extern "C"
8552 {
8553 #endif
8554 /* We use char because int might match the return type of a gcc2
8555 builtin and then its argument prototype would still apply. */
8556 char dlopen ();
8557 /* The GNU C library defines this for functions which it implements
8558 to always fail with ENOSYS. Some functions are actually named
8559 something starting with __ and the normal name is an alias. */
8560 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8561 choke me
8562 #else
8563 char (*f) () = dlopen;
8564 #endif
8565 #ifdef __cplusplus
8566 }
8567 #endif
8569 int
8570 main ()
8571 {
8572 return f != dlopen;
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext conftest$ac_exeext
8578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8579 (eval $ac_link) 2>conftest.er1
8580 ac_status=$?
8581 grep -v '^ *+' conftest.er1 >conftest.err
8582 rm -f conftest.er1
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag"
8587 || test ! -s conftest.err'
8588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 (eval $ac_try) 2>&5
8590 ac_status=$?
8591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592 (exit $ac_status); }; } &&
8593 { ac_try='test -s conftest$ac_exeext'
8594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 (eval $ac_try) 2>&5
8596 ac_status=$?
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); }; }; then
8599 ac_cv_func_dlopen=yes
8600 else
8601 echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8604 ac_cv_func_dlopen=no
8605 fi
8606 rm -f conftest.err conftest.$ac_objext \
8607 conftest$ac_exeext conftest.$ac_ext
8608 fi
8609 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8610 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8611 if test $ac_cv_func_dlopen = yes; then
8612 lt_cv_dlopen="dlopen"
8613 else
8614 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8615 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8616 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 ac_check_lib_save_LIBS=$LIBS
8620 LIBS="-ldl $LIBS"
8621 cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h. */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8628 /* Override any gcc2 internal prototype to avoid an error. */
8629 #ifdef __cplusplus
8630 extern "C"
8631 #endif
8632 /* We use char because int might match the return type of a gcc2
8633 builtin and then its argument prototype would still apply. */
8634 char dlopen ();
8635 int
8636 main ()
8637 {
8638 dlopen ();
8639 ;
8640 return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext conftest$ac_exeext
8644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8645 (eval $ac_link) 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } &&
8652 { ac_try='test -z "$ac_c_werror_flag"
8653 || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655 (eval $ac_try) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_lib_dl_dlopen=yes
8666 else
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_cv_lib_dl_dlopen=no
8671 fi
8672 rm -f conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8674 LIBS=$ac_check_lib_save_LIBS
8675 fi
8676 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8677 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8678 if test $ac_cv_lib_dl_dlopen = yes; then
8679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8680 else
8681 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8682 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8683 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8684 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686 ac_check_lib_save_LIBS=$LIBS
8687 LIBS="-lsvld $LIBS"
8688 cat >conftest.$ac_ext <<_ACEOF
8689 /* confdefs.h. */
8690 _ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8695 /* Override any gcc2 internal prototype to avoid an error. */
8696 #ifdef __cplusplus
8697 extern "C"
8698 #endif
8699 /* We use char because int might match the return type of a gcc2
8700 builtin and then its argument prototype would still apply. */
8701 char dlopen ();
8702 int
8703 main ()
8704 {
8705 dlopen ();
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag"
8720 || test ! -s conftest.err'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8722 (eval $ac_try) 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; } &&
8726 { ac_try='test -s conftest$ac_exeext'
8727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8728 (eval $ac_try) 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; }; then
8732 ac_cv_lib_svld_dlopen=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_cv_lib_svld_dlopen=no
8738 fi
8739 rm -f conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8741 LIBS=$ac_check_lib_save_LIBS
8742 fi
8743 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8744 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8745 if test $ac_cv_lib_svld_dlopen = yes; then
8746 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8747 else
8748 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8749 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8750 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 else
8753 ac_check_lib_save_LIBS=$LIBS
8754 LIBS="-ldld $LIBS"
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h. */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8762 /* Override any gcc2 internal prototype to avoid an error. */
8763 #ifdef __cplusplus
8764 extern "C"
8765 #endif
8766 /* We use char because int might match the return type of a gcc2
8767 builtin and then its argument prototype would still apply. */
8768 char dld_link ();
8769 int
8770 main ()
8771 {
8772 dld_link ();
8773 ;
8774 return 0;
8775 }
8776 _ACEOF
8777 rm -f conftest.$ac_objext conftest$ac_exeext
8778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8779 (eval $ac_link) 2>conftest.er1
8780 ac_status=$?
8781 grep -v '^ *+' conftest.er1 >conftest.err
8782 rm -f conftest.er1
8783 cat conftest.err >&5
8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } &&
8786 { ac_try='test -z "$ac_c_werror_flag"
8787 || test ! -s conftest.err'
8788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8789 (eval $ac_try) 2>&5
8790 ac_status=$?
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); }; } &&
8793 { ac_try='test -s conftest$ac_exeext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795 (eval $ac_try) 2>&5
8796 ac_status=$?
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 ac_cv_lib_dld_dld_link=yes
8800 else
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 ac_cv_lib_dld_dld_link=no
8805 fi
8806 rm -f conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8808 LIBS=$ac_check_lib_save_LIBS
8809 fi
8810 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8811 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8812 if test $ac_cv_lib_dld_dld_link = yes; then
8813 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8814 fi
8817 fi
8820 fi
8823 fi
8826 fi
8829 fi
8831 ;;
8832 esac
8834 if test "x$lt_cv_dlopen" != xno; then
8835 enable_dlopen=yes
8836 else
8837 enable_dlopen=no
8838 fi
8840 case $lt_cv_dlopen in
8841 dlopen)
8842 save_CPPFLAGS="$CPPFLAGS"
8843 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8845 save_LDFLAGS="$LDFLAGS"
8846 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8848 save_LIBS="$LIBS"
8849 LIBS="$lt_cv_dlopen_libs $LIBS"
8851 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8852 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8853 if test "${lt_cv_dlopen_self+set}" = set; then
8854 echo $ECHO_N "(cached) $ECHO_C" >&6
8855 else
8856 if test "$cross_compiling" = yes; then :
8857 lt_cv_dlopen_self=cross
8858 else
8859 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8860 lt_status=$lt_dlunknown
8861 cat > conftest.$ac_ext <<EOF
8862 #line 8862 "configure"
8863 #include "confdefs.h"
8865 #if HAVE_DLFCN_H
8866 #include <dlfcn.h>
8867 #endif
8869 #include <stdio.h>
8871 #ifdef RTLD_GLOBAL
8872 # define LT_DLGLOBAL RTLD_GLOBAL
8873 #else
8874 # ifdef DL_GLOBAL
8875 # define LT_DLGLOBAL DL_GLOBAL
8876 # else
8877 # define LT_DLGLOBAL 0
8878 # endif
8879 #endif
8881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8882 find out it does not work in some platform. */
8883 #ifndef LT_DLLAZY_OR_NOW
8884 # ifdef RTLD_LAZY
8885 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8886 # else
8887 # ifdef DL_LAZY
8888 # define LT_DLLAZY_OR_NOW DL_LAZY
8889 # else
8890 # ifdef RTLD_NOW
8891 # define LT_DLLAZY_OR_NOW RTLD_NOW
8892 # else
8893 # ifdef DL_NOW
8894 # define LT_DLLAZY_OR_NOW DL_NOW
8895 # else
8896 # define LT_DLLAZY_OR_NOW 0
8897 # endif
8898 # endif
8899 # endif
8900 # endif
8901 #endif
8903 #ifdef __cplusplus
8904 extern "C" void exit (int);
8905 #endif
8907 void fnord() { int i=42;}
8908 int main ()
8909 {
8910 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8911 int status = $lt_dlunknown;
8913 if (self)
8914 {
8915 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8916 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8917 /* dlclose (self); */
8918 }
8919 else
8920 puts (dlerror ());
8922 exit (status);
8923 }
8924 EOF
8925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8926 (eval $ac_link) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8930 (./conftest; exit; ) >&5 2>/dev/null
8931 lt_status=$?
8932 case x$lt_status in
8933 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8934 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8935 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8936 esac
8937 else :
8938 # compilation failed
8939 lt_cv_dlopen_self=no
8940 fi
8941 fi
8942 rm -fr conftest*
8945 fi
8946 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8947 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8949 if test "x$lt_cv_dlopen_self" = xyes; then
8950 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8951 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8952 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8953 if test "${lt_cv_dlopen_self_static+set}" = set; then
8954 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956 if test "$cross_compiling" = yes; then :
8957 lt_cv_dlopen_self_static=cross
8958 else
8959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8960 lt_status=$lt_dlunknown
8961 cat > conftest.$ac_ext <<EOF
8962 #line 8962 "configure"
8963 #include "confdefs.h"
8965 #if HAVE_DLFCN_H
8966 #include <dlfcn.h>
8967 #endif
8969 #include <stdio.h>
8971 #ifdef RTLD_GLOBAL
8972 # define LT_DLGLOBAL RTLD_GLOBAL
8973 #else
8974 # ifdef DL_GLOBAL
8975 # define LT_DLGLOBAL DL_GLOBAL
8976 # else
8977 # define LT_DLGLOBAL 0
8978 # endif
8979 #endif
8981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8982 find out it does not work in some platform. */
8983 #ifndef LT_DLLAZY_OR_NOW
8984 # ifdef RTLD_LAZY
8985 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8986 # else
8987 # ifdef DL_LAZY
8988 # define LT_DLLAZY_OR_NOW DL_LAZY
8989 # else
8990 # ifdef RTLD_NOW
8991 # define LT_DLLAZY_OR_NOW RTLD_NOW
8992 # else
8993 # ifdef DL_NOW
8994 # define LT_DLLAZY_OR_NOW DL_NOW
8995 # else
8996 # define LT_DLLAZY_OR_NOW 0
8997 # endif
8998 # endif
8999 # endif
9000 # endif
9001 #endif
9003 #ifdef __cplusplus
9004 extern "C" void exit (int);
9005 #endif
9007 void fnord() { int i=42;}
9008 int main ()
9009 {
9010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9011 int status = $lt_dlunknown;
9013 if (self)
9014 {
9015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9017 /* dlclose (self); */
9018 }
9019 else
9020 puts (dlerror ());
9022 exit (status);
9023 }
9024 EOF
9025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9026 (eval $ac_link) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9030 (./conftest; exit; ) >&5 2>/dev/null
9031 lt_status=$?
9032 case x$lt_status in
9033 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9034 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9035 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9036 esac
9037 else :
9038 # compilation failed
9039 lt_cv_dlopen_self_static=no
9040 fi
9041 fi
9042 rm -fr conftest*
9045 fi
9046 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9047 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9048 fi
9050 CPPFLAGS="$save_CPPFLAGS"
9051 LDFLAGS="$save_LDFLAGS"
9052 LIBS="$save_LIBS"
9053 ;;
9054 esac
9056 case $lt_cv_dlopen_self in
9057 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9058 *) enable_dlopen_self=unknown ;;
9059 esac
9061 case $lt_cv_dlopen_self_static in
9062 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9063 *) enable_dlopen_self_static=unknown ;;
9064 esac
9065 fi
9068 # Report which library types will actually be built
9069 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9070 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9071 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9072 echo "${ECHO_T}$can_build_shared" >&6
9074 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9075 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9076 test "$can_build_shared" = "no" && enable_shared=no
9078 # On AIX, shared libraries and static libraries use the same namespace, and
9079 # are all built from PIC.
9080 case $host_os in
9081 aix3*)
9082 test "$enable_shared" = yes && enable_static=no
9083 if test -n "$RANLIB"; then
9084 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9085 postinstall_cmds='$RANLIB $lib'
9086 fi
9087 ;;
9089 aix4* | aix5*)
9090 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9091 test "$enable_shared" = yes && enable_static=no
9092 fi
9093 ;;
9094 esac
9095 echo "$as_me:$LINENO: result: $enable_shared" >&5
9096 echo "${ECHO_T}$enable_shared" >&6
9098 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9099 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9100 # Make sure either enable_shared or enable_static is yes.
9101 test "$enable_shared" = yes || enable_static=yes
9102 echo "$as_me:$LINENO: result: $enable_static" >&5
9103 echo "${ECHO_T}$enable_static" >&6
9105 # The else clause should only fire when bootstrapping the
9106 # libtool distribution, otherwise you forgot to ship ltmain.sh
9107 # with your package, and you will get complaints that there are
9108 # no rules to generate ltmain.sh.
9109 if test -f "$ltmain"; then
9110 # See if we are running on zsh, and set the options which allow our commands through
9111 # without removal of \ escapes.
9112 if test -n "${ZSH_VERSION+set}" ; then
9113 setopt NO_GLOB_SUBST
9114 fi
9115 # Now quote all the things that may contain metacharacters while being
9116 # careful not to overquote the AC_SUBSTed values. We take copies of the
9117 # variables and quote the copies for generation of the libtool script.
9118 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9119 SED SHELL STRIP \
9120 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9121 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9122 deplibs_check_method reload_flag reload_cmds need_locks \
9123 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9124 lt_cv_sys_global_symbol_to_c_name_address \
9125 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9126 old_postinstall_cmds old_postuninstall_cmds \
9127 compiler \
9128 CC \
9129 LD \
9130 lt_prog_compiler_wl \
9131 lt_prog_compiler_pic \
9132 lt_prog_compiler_static \
9133 lt_prog_compiler_no_builtin_flag \
9134 export_dynamic_flag_spec \
9135 thread_safe_flag_spec \
9136 whole_archive_flag_spec \
9137 enable_shared_with_static_runtimes \
9138 old_archive_cmds \
9139 old_archive_from_new_cmds \
9140 predep_objects \
9141 postdep_objects \
9142 predeps \
9143 postdeps \
9144 compiler_lib_search_path \
9145 archive_cmds \
9146 archive_expsym_cmds \
9147 postinstall_cmds \
9148 postuninstall_cmds \
9149 old_archive_from_expsyms_cmds \
9150 allow_undefined_flag \
9151 no_undefined_flag \
9152 export_symbols_cmds \
9153 hardcode_libdir_flag_spec \
9154 hardcode_libdir_flag_spec_ld \
9155 hardcode_libdir_separator \
9156 hardcode_automatic \
9157 module_cmds \
9158 module_expsym_cmds \
9159 lt_cv_prog_compiler_c_o \
9160 exclude_expsyms \
9161 include_expsyms; do
9163 case $var in
9164 old_archive_cmds | \
9165 old_archive_from_new_cmds | \
9166 archive_cmds | \
9167 archive_expsym_cmds | \
9168 module_cmds | \
9169 module_expsym_cmds | \
9170 old_archive_from_expsyms_cmds | \
9171 export_symbols_cmds | \
9172 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9173 postinstall_cmds | postuninstall_cmds | \
9174 old_postinstall_cmds | old_postuninstall_cmds | \
9175 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9176 # Double-quote double-evaled strings.
9177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9178 ;;
9179 *)
9180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9181 ;;
9182 esac
9183 done
9185 case $lt_echo in
9186 *'\$0 --fallback-echo"')
9187 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9188 ;;
9189 esac
9191 cfgfile="${ofile}T"
9192 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9193 $rm -f "$cfgfile"
9194 { echo "$as_me:$LINENO: creating $ofile" >&5
9195 echo "$as_me: creating $ofile" >&6;}
9197 cat <<__EOF__ >> "$cfgfile"
9198 #! $SHELL
9200 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9201 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9202 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9203 #
9204 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9205 # Free Software Foundation, Inc.
9206 #
9207 # This file is part of GNU Libtool:
9208 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9209 #
9210 # This program is free software; you can redistribute it and/or modify
9211 # it under the terms of the GNU General Public License as published by
9212 # the Free Software Foundation; either version 2 of the License, or
9213 # (at your option) any later version.
9214 #
9215 # This program is distributed in the hope that it will be useful, but
9216 # WITHOUT ANY WARRANTY; without even the implied warranty of
9217 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9218 # General Public License for more details.
9219 #
9220 # You should have received a copy of the GNU General Public License
9221 # along with this program; if not, write to the Free Software
9222 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9223 #
9224 # As a special exception to the GNU General Public License, if you
9225 # distribute this file as part of a program that contains a
9226 # configuration script generated by Autoconf, you may include it under
9227 # the same distribution terms that you use for the rest of that program.
9229 # A sed program that does not truncate output.
9230 SED=$lt_SED
9232 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9233 Xsed="$SED -e 1s/^X//"
9235 # The HP-UX ksh and POSIX shell print the target directory to stdout
9236 # if CDPATH is set.
9237 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9239 # The names of the tagged configurations supported by this script.
9240 available_tags=
9242 # ### BEGIN LIBTOOL CONFIG
9244 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9246 # Shell to use when invoking shell scripts.
9247 SHELL=$lt_SHELL
9249 # Whether or not to build shared libraries.
9250 build_libtool_libs=$enable_shared
9252 # Whether or not to build static libraries.
9253 build_old_libs=$enable_static
9255 # Whether or not to add -lc for building shared libraries.
9256 build_libtool_need_lc=$archive_cmds_need_lc
9258 # Whether or not to disallow shared libs when runtime libs are static
9259 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9261 # Whether or not to optimize for fast installation.
9262 fast_install=$enable_fast_install
9264 # The host system.
9265 host_alias=$host_alias
9266 host=$host
9267 host_os=$host_os
9269 # The build system.
9270 build_alias=$build_alias
9271 build=$build
9272 build_os=$build_os
9274 # An echo program that does not interpret backslashes.
9275 echo=$lt_echo
9277 # The archiver.
9278 AR=$lt_AR
9279 AR_FLAGS=$lt_AR_FLAGS
9281 # A C compiler.
9282 LTCC=$lt_LTCC
9284 # LTCC compiler flags.
9285 LTCFLAGS=$lt_LTCFLAGS
9287 # A language-specific compiler.
9288 CC=$lt_compiler
9290 # Is the compiler the GNU C compiler?
9291 with_gcc=$GCC
9293 # An ERE matcher.
9294 EGREP=$lt_EGREP
9296 # The linker used to build libraries.
9297 LD=$lt_LD
9299 # Whether we need hard or soft links.
9300 LN_S=$lt_LN_S
9302 # A BSD-compatible nm program.
9303 NM=$lt_NM
9305 # A symbol stripping program
9306 STRIP=$lt_STRIP
9308 # Used to examine libraries when file_magic_cmd begins "file"
9309 MAGIC_CMD=$MAGIC_CMD
9311 # Used on cygwin: DLL creation program.
9312 DLLTOOL="$DLLTOOL"
9314 # Used on cygwin: object dumper.
9315 OBJDUMP="$OBJDUMP"
9317 # Used on cygwin: assembler.
9318 AS="$AS"
9320 # The name of the directory that contains temporary libtool files.
9321 objdir=$objdir
9323 # How to create reloadable object files.
9324 reload_flag=$lt_reload_flag
9325 reload_cmds=$lt_reload_cmds
9327 # How to pass a linker flag through the compiler.
9328 wl=$lt_lt_prog_compiler_wl
9330 # Object file suffix (normally "o").
9331 objext="$ac_objext"
9333 # Old archive suffix (normally "a").
9334 libext="$libext"
9336 # Shared library suffix (normally ".so").
9337 shrext_cmds='$shrext_cmds'
9339 # Executable file suffix (normally "").
9340 exeext="$exeext"
9342 # Additional compiler flags for building library objects.
9343 pic_flag=$lt_lt_prog_compiler_pic
9344 pic_mode=$pic_mode
9346 # What is the maximum length of a command?
9347 max_cmd_len=$lt_cv_sys_max_cmd_len
9349 # Does compiler simultaneously support -c and -o options?
9350 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9352 # Must we lock files when doing compilation?
9353 need_locks=$lt_need_locks
9355 # Do we need the lib prefix for modules?
9356 need_lib_prefix=$need_lib_prefix
9358 # Do we need a version for libraries?
9359 need_version=$need_version
9361 # Whether dlopen is supported.
9362 dlopen_support=$enable_dlopen
9364 # Whether dlopen of programs is supported.
9365 dlopen_self=$enable_dlopen_self
9367 # Whether dlopen of statically linked programs is supported.
9368 dlopen_self_static=$enable_dlopen_self_static
9370 # Compiler flag to prevent dynamic linking.
9371 link_static_flag=$lt_lt_prog_compiler_static
9373 # Compiler flag to turn off builtin functions.
9374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9376 # Compiler flag to allow reflexive dlopens.
9377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9379 # Compiler flag to generate shared objects directly from archives.
9380 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9382 # Compiler flag to generate thread-safe objects.
9383 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9385 # Library versioning type.
9386 version_type=$version_type
9388 # Format of library name prefix.
9389 libname_spec=$lt_libname_spec
9391 # List of archive names. First name is the real one, the rest are links.
9392 # The last name is the one that the linker finds with -lNAME.
9393 library_names_spec=$lt_library_names_spec
9395 # The coded name of the library, if different from the real name.
9396 soname_spec=$lt_soname_spec
9398 # Commands used to build and install an old-style archive.
9399 RANLIB=$lt_RANLIB
9400 old_archive_cmds=$lt_old_archive_cmds
9401 old_postinstall_cmds=$lt_old_postinstall_cmds
9402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9404 # Create an old-style archive from a shared archive.
9405 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9407 # Create a temporary old-style archive to link instead of a shared archive.
9408 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9410 # Commands used to build and install a shared archive.
9411 archive_cmds=$lt_archive_cmds
9412 archive_expsym_cmds=$lt_archive_expsym_cmds
9413 postinstall_cmds=$lt_postinstall_cmds
9414 postuninstall_cmds=$lt_postuninstall_cmds
9416 # Commands used to build a loadable module (assumed same as above if empty)
9417 module_cmds=$lt_module_cmds
9418 module_expsym_cmds=$lt_module_expsym_cmds
9420 # Commands to strip libraries.
9421 old_striplib=$lt_old_striplib
9422 striplib=$lt_striplib
9424 # Dependencies to place before the objects being linked to create a
9425 # shared library.
9426 predep_objects=$lt_predep_objects
9428 # Dependencies to place after the objects being linked to create a
9429 # shared library.
9430 postdep_objects=$lt_postdep_objects
9432 # Dependencies to place before the objects being linked to create a
9433 # shared library.
9434 predeps=$lt_predeps
9436 # Dependencies to place after the objects being linked to create a
9437 # shared library.
9438 postdeps=$lt_postdeps
9440 # The library search path used internally by the compiler when linking
9441 # a shared library.
9442 compiler_lib_search_path=$lt_compiler_lib_search_path
9444 # Method to check whether dependent libraries are shared objects.
9445 deplibs_check_method=$lt_deplibs_check_method
9447 # Command to use when deplibs_check_method == file_magic.
9448 file_magic_cmd=$lt_file_magic_cmd
9450 # Flag that allows shared libraries with undefined symbols to be built.
9451 allow_undefined_flag=$lt_allow_undefined_flag
9453 # Flag that forces no undefined symbols.
9454 no_undefined_flag=$lt_no_undefined_flag
9456 # Commands used to finish a libtool library installation in a directory.
9457 finish_cmds=$lt_finish_cmds
9459 # Same as above, but a single script fragment to be evaled but not shown.
9460 finish_eval=$lt_finish_eval
9462 # Take the output of nm and produce a listing of raw symbols and C names.
9463 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9465 # Transform the output of nm in a proper C declaration
9466 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9468 # Transform the output of nm in a C name address pair
9469 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9471 # This is the shared library runtime path variable.
9472 runpath_var=$runpath_var
9474 # This is the shared library path variable.
9475 shlibpath_var=$shlibpath_var
9477 # Is shlibpath searched before the hard-coded library search path?
9478 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9480 # How to hardcode a shared library path into an executable.
9481 hardcode_action=$hardcode_action
9483 # Whether we should hardcode library paths into libraries.
9484 hardcode_into_libs=$hardcode_into_libs
9486 # Flag to hardcode \$libdir into a binary during linking.
9487 # This must work even if \$libdir does not exist.
9488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9490 # If ld is used when linking, flag to hardcode \$libdir into
9491 # a binary during linking. This must work even if \$libdir does
9492 # not exist.
9493 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9495 # Whether we need a single -rpath flag with a separated argument.
9496 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9498 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9499 # resulting binary.
9500 hardcode_direct=$hardcode_direct
9502 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9503 # resulting binary.
9504 hardcode_minus_L=$hardcode_minus_L
9506 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9507 # the resulting binary.
9508 hardcode_shlibpath_var=$hardcode_shlibpath_var
9510 # Set to yes if building a shared library automatically hardcodes DIR into the library
9511 # and all subsequent libraries and executables linked against it.
9512 hardcode_automatic=$hardcode_automatic
9514 # Variables whose values should be saved in libtool wrapper scripts and
9515 # restored at relink time.
9516 variables_saved_for_relink="$variables_saved_for_relink"
9518 # Whether libtool must link a program against all its dependency libraries.
9519 link_all_deplibs=$link_all_deplibs
9521 # Compile-time system search path for libraries
9522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9524 # Run-time system search path for libraries
9525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9527 # Fix the shell variable \$srcfile for the compiler.
9528 fix_srcfile_path="$fix_srcfile_path"
9530 # Set to yes if exported symbols are required.
9531 always_export_symbols=$always_export_symbols
9533 # The commands to list exported symbols.
9534 export_symbols_cmds=$lt_export_symbols_cmds
9536 # The commands to extract the exported symbol list from a shared archive.
9537 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9539 # Symbols that should not be listed in the preloaded symbols.
9540 exclude_expsyms=$lt_exclude_expsyms
9542 # Symbols that must always be exported.
9543 include_expsyms=$lt_include_expsyms
9545 # ### END LIBTOOL CONFIG
9547 __EOF__
9550 case $host_os in
9551 aix3*)
9552 cat <<\EOF >> "$cfgfile"
9554 # AIX sometimes has problems with the GCC collect2 program. For some
9555 # reason, if we set the COLLECT_NAMES environment variable, the problems
9556 # vanish in a puff of smoke.
9557 if test "X${COLLECT_NAMES+set}" != Xset; then
9558 COLLECT_NAMES=
9559 export COLLECT_NAMES
9560 fi
9561 EOF
9562 ;;
9563 esac
9565 # We use sed instead of cat because bash on DJGPP gets confused if
9566 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9567 # text mode, it properly converts lines to CR/LF. This bash problem
9568 # is reportedly fixed, but why not run on old versions too?
9569 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9571 mv -f "$cfgfile" "$ofile" || \
9572 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9573 chmod +x "$ofile"
9575 else
9576 # If there is no Makefile yet, we rely on a make rule to execute
9577 # `config.status --recheck' to rerun these tests and create the
9578 # libtool script then.
9579 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9580 if test -f "$ltmain_in"; then
9581 test -f Makefile && make "$ltmain"
9582 fi
9583 fi
9586 ac_ext=c
9587 ac_cpp='$CPP $CPPFLAGS'
9588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9592 CC="$lt_save_CC"
9595 # Check whether --with-tags or --without-tags was given.
9596 if test "${with_tags+set}" = set; then
9597 withval="$with_tags"
9598 tagnames="$withval"
9599 fi;
9601 if test -f "$ltmain" && test -n "$tagnames"; then
9602 if test ! -f "${ofile}"; then
9603 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9604 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9605 fi
9607 if test -z "$LTCC"; then
9608 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9609 if test -z "$LTCC"; then
9610 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9611 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9612 else
9613 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9614 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9615 fi
9616 fi
9617 if test -z "$LTCFLAGS"; then
9618 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9619 fi
9621 # Extract list of available tagged configurations in $ofile.
9622 # Note that this assumes the entire list is on one line.
9623 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9626 for tagname in $tagnames; do
9627 IFS="$lt_save_ifs"
9628 # Check whether tagname contains only valid characters
9629 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9630 "") ;;
9631 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9632 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9633 { (exit 1); exit 1; }; }
9634 ;;
9635 esac
9637 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9638 then
9639 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9640 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9641 { (exit 1); exit 1; }; }
9642 fi
9644 # Update the list of available tags.
9645 if test -n "$tagname"; then
9646 echo appending configuration tag \"$tagname\" to $ofile
9648 case $tagname in
9649 CXX)
9650 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9651 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9652 (test "X$CXX" != "Xg++"))) ; then
9653 ac_ext=cc
9654 ac_cpp='$CXXCPP $CPPFLAGS'
9655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9662 archive_cmds_need_lc_CXX=no
9663 allow_undefined_flag_CXX=
9664 always_export_symbols_CXX=no
9665 archive_expsym_cmds_CXX=
9666 export_dynamic_flag_spec_CXX=
9667 hardcode_direct_CXX=no
9668 hardcode_libdir_flag_spec_CXX=
9669 hardcode_libdir_flag_spec_ld_CXX=
9670 hardcode_libdir_separator_CXX=
9671 hardcode_minus_L_CXX=no
9672 hardcode_shlibpath_var_CXX=unsupported
9673 hardcode_automatic_CXX=no
9674 module_cmds_CXX=
9675 module_expsym_cmds_CXX=
9676 link_all_deplibs_CXX=unknown
9677 old_archive_cmds_CXX=$old_archive_cmds
9678 no_undefined_flag_CXX=
9679 whole_archive_flag_spec_CXX=
9680 enable_shared_with_static_runtimes_CXX=no
9682 # Dependencies to place before and after the object being linked:
9683 predep_objects_CXX=
9684 postdep_objects_CXX=
9685 predeps_CXX=
9686 postdeps_CXX=
9687 compiler_lib_search_path_CXX=
9689 # Source file extension for C++ test sources.
9690 ac_ext=cpp
9692 # Object file extension for compiled C++ test sources.
9693 objext=o
9694 objext_CXX=$objext
9696 # Code to be used in simple compile tests
9697 lt_simple_compile_test_code="int some_variable = 0;\n"
9699 # Code to be used in simple link tests
9700 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9702 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9704 # If no C compiler was specified, use CC.
9705 LTCC=${LTCC-"$CC"}
9707 # If no C compiler flags were specified, use CFLAGS.
9708 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9710 # Allow CC to be a program name with arguments.
9711 compiler=$CC
9714 # save warnings/boilerplate of simple test code
9715 ac_outfile=conftest.$ac_objext
9716 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9717 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9718 _lt_compiler_boilerplate=`cat conftest.err`
9719 $rm conftest*
9721 ac_outfile=conftest.$ac_objext
9722 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9723 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9724 _lt_linker_boilerplate=`cat conftest.err`
9725 $rm conftest*
9728 # Allow CC to be a program name with arguments.
9729 lt_save_CC=$CC
9730 lt_save_LD=$LD
9731 lt_save_GCC=$GCC
9732 GCC=$GXX
9733 lt_save_with_gnu_ld=$with_gnu_ld
9734 lt_save_path_LD=$lt_cv_path_LD
9735 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9736 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9737 else
9738 $as_unset lt_cv_prog_gnu_ld
9739 fi
9740 if test -n "${lt_cv_path_LDCXX+set}"; then
9741 lt_cv_path_LD=$lt_cv_path_LDCXX
9742 else
9743 $as_unset lt_cv_path_LD
9744 fi
9745 test -z "${LDCXX+set}" || LD=$LDCXX
9746 CC=${CXX-"c++"}
9747 compiler=$CC
9748 compiler_CXX=$CC
9749 for cc_temp in $compiler""; do
9750 case $cc_temp in
9751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9753 \-*) ;;
9754 *) break;;
9755 esac
9756 done
9757 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9760 # We don't want -fno-exception wen compiling C++ code, so set the
9761 # no_builtin_flag separately
9762 if test "$GXX" = yes; then
9763 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9764 else
9765 lt_prog_compiler_no_builtin_flag_CXX=
9766 fi
9768 if test "$GXX" = yes; then
9769 # Set up default GNU C++ configuration
9772 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9773 if test "${with_gnu_ld+set}" = set; then
9774 withval="$with_gnu_ld"
9775 test "$withval" = no || with_gnu_ld=yes
9776 else
9777 with_gnu_ld=no
9778 fi;
9779 ac_prog=ld
9780 if test "$GCC" = yes; then
9781 # Check if gcc -print-prog-name=ld gives a path.
9782 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9783 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9784 case $host in
9785 *-*-mingw*)
9786 # gcc leaves a trailing carriage return which upsets mingw
9787 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9788 *)
9789 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9790 esac
9791 case $ac_prog in
9792 # Accept absolute paths.
9793 [\\/]* | ?:[\\/]*)
9794 re_direlt='/[^/][^/]*/\.\./'
9795 # Canonicalize the pathname of ld
9796 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9797 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9798 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9799 done
9800 test -z "$LD" && LD="$ac_prog"
9801 ;;
9802 "")
9803 # If it fails, then pretend we aren't using GCC.
9804 ac_prog=ld
9805 ;;
9806 *)
9807 # If it is relative, then search for the first ld in PATH.
9808 with_gnu_ld=unknown
9809 ;;
9810 esac
9811 elif test "$with_gnu_ld" = yes; then
9812 echo "$as_me:$LINENO: checking for GNU ld" >&5
9813 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9814 else
9815 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9816 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9817 fi
9818 if test "${lt_cv_path_LD+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821 if test -z "$LD"; then
9822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9823 for ac_dir in $PATH; do
9824 IFS="$lt_save_ifs"
9825 test -z "$ac_dir" && ac_dir=.
9826 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9827 lt_cv_path_LD="$ac_dir/$ac_prog"
9828 # Check to see if the program is GNU ld. I'd rather use --version,
9829 # but apparently some variants of GNU ld only accept -v.
9830 # Break only if it was the GNU/non-GNU ld that we prefer.
9831 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9832 *GNU* | *'with BFD'*)
9833 test "$with_gnu_ld" != no && break
9834 ;;
9835 *)
9836 test "$with_gnu_ld" != yes && break
9837 ;;
9838 esac
9839 fi
9840 done
9841 IFS="$lt_save_ifs"
9842 else
9843 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9844 fi
9845 fi
9847 LD="$lt_cv_path_LD"
9848 if test -n "$LD"; then
9849 echo "$as_me:$LINENO: result: $LD" >&5
9850 echo "${ECHO_T}$LD" >&6
9851 else
9852 echo "$as_me:$LINENO: result: no" >&5
9853 echo "${ECHO_T}no" >&6
9854 fi
9855 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9856 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9857 { (exit 1); exit 1; }; }
9858 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9859 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9860 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9864 case `$LD -v 2>&1 </dev/null` in
9865 *GNU* | *'with BFD'*)
9866 lt_cv_prog_gnu_ld=yes
9867 ;;
9868 *)
9869 lt_cv_prog_gnu_ld=no
9870 ;;
9871 esac
9872 fi
9873 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9874 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9875 with_gnu_ld=$lt_cv_prog_gnu_ld
9879 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9880 # archiving commands below assume that GNU ld is being used.
9881 if test "$with_gnu_ld" = yes; then
9882 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9883 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'
9885 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9886 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9888 # If archive_cmds runs LD, not CC, wlarc should be empty
9889 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9890 # investigate it a little bit more. (MM)
9891 wlarc='${wl}'
9893 # ancient GNU ld didn't support --whole-archive et. al.
9894 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9895 grep 'no-whole-archive' > /dev/null; then
9896 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9897 else
9898 whole_archive_flag_spec_CXX=
9899 fi
9900 else
9901 with_gnu_ld=no
9902 wlarc=
9904 # A generic and very simple default shared library creation
9905 # command for GNU C++ for the case where it uses the native
9906 # linker, instead of GNU ld. If possible, this setting should
9907 # overridden to take advantage of the native linker features on
9908 # the platform it is being used on.
9909 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9910 fi
9912 # Commands to make compiler produce verbose output that lists
9913 # what "hidden" libraries, object files and flags are used when
9914 # linking a shared library.
9915 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9917 else
9918 GXX=no
9919 with_gnu_ld=no
9920 wlarc=
9921 fi
9923 # PORTME: fill in a description of your system's C++ link characteristics
9924 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9925 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9926 ld_shlibs_CXX=yes
9927 case $host_os in
9928 aix3*)
9929 # FIXME: insert proper C++ library support
9930 ld_shlibs_CXX=no
9931 ;;
9932 aix4* | aix5*)
9933 if test "$host_cpu" = ia64; then
9934 # On IA64, the linker does run time linking by default, so we don't
9935 # have to do anything special.
9936 aix_use_runtimelinking=no
9937 exp_sym_flag='-Bexport'
9938 no_entry_flag=""
9939 else
9940 aix_use_runtimelinking=no
9942 # Test if we are trying to use run time linking or normal
9943 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9944 # need to do runtime linking.
9945 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9946 for ld_flag in $LDFLAGS; do
9947 case $ld_flag in
9948 *-brtl*)
9949 aix_use_runtimelinking=yes
9950 break
9951 ;;
9952 esac
9953 done
9954 ;;
9955 esac
9957 exp_sym_flag='-bexport'
9958 no_entry_flag='-bnoentry'
9959 fi
9961 # When large executables or shared objects are built, AIX ld can
9962 # have problems creating the table of contents. If linking a library
9963 # or program results in "error TOC overflow" add -mminimal-toc to
9964 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9965 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9967 archive_cmds_CXX=''
9968 hardcode_direct_CXX=yes
9969 hardcode_libdir_separator_CXX=':'
9970 link_all_deplibs_CXX=yes
9972 if test "$GXX" = yes; then
9973 case $host_os in aix4.[012]|aix4.[012].*)
9974 # We only want to do this on AIX 4.2 and lower, the check
9975 # below for broken collect2 doesn't work under 4.3+
9976 collect2name=`${CC} -print-prog-name=collect2`
9977 if test -f "$collect2name" && \
9978 strings "$collect2name" | grep resolve_lib_name >/dev/null
9979 then
9980 # We have reworked collect2
9981 hardcode_direct_CXX=yes
9982 else
9983 # We have old collect2
9984 hardcode_direct_CXX=unsupported
9985 # It fails to find uninstalled libraries when the uninstalled
9986 # path is not listed in the libpath. Setting hardcode_minus_L
9987 # to unsupported forces relinking
9988 hardcode_minus_L_CXX=yes
9989 hardcode_libdir_flag_spec_CXX='-L$libdir'
9990 hardcode_libdir_separator_CXX=
9991 fi
9992 ;;
9993 esac
9994 shared_flag='-shared'
9995 if test "$aix_use_runtimelinking" = yes; then
9996 shared_flag="$shared_flag "'${wl}-G'
9997 fi
9998 else
9999 # not using gcc
10000 if test "$host_cpu" = ia64; then
10001 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10002 # chokes on -Wl,-G. The following line is correct:
10003 shared_flag='-G'
10004 else
10005 if test "$aix_use_runtimelinking" = yes; then
10006 shared_flag='${wl}-G'
10007 else
10008 shared_flag='${wl}-bM:SRE'
10009 fi
10010 fi
10011 fi
10013 # It seems that -bexpall does not export symbols beginning with
10014 # underscore (_), so it is better to generate a list of symbols to export.
10015 always_export_symbols_CXX=yes
10016 if test "$aix_use_runtimelinking" = yes; then
10017 # Warning - without using the other runtime loading flags (-brtl),
10018 # -berok will link without error, but may produce a broken library.
10019 allow_undefined_flag_CXX='-berok'
10020 # Determine the default libpath from the value encoded in an empty executable.
10021 cat >conftest.$ac_ext <<_ACEOF
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10028 int
10029 main ()
10030 {
10032 ;
10033 return 0;
10034 }
10035 _ACEOF
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038 (eval $ac_link) 2>conftest.er1
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_cxx_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10060 }'`
10061 # Check for a 64-bit object if we didn't find anything.
10062 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; }
10063 }'`; fi
10064 else
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10068 fi
10069 rm -f conftest.err conftest.$ac_objext \
10070 conftest$ac_exeext conftest.$ac_ext
10071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10073 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10075 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"
10076 else
10077 if test "$host_cpu" = ia64; then
10078 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10079 allow_undefined_flag_CXX="-z nodefs"
10080 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"
10081 else
10082 # Determine the default libpath from the value encoded in an empty executable.
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10090 int
10091 main ()
10092 {
10094 ;
10095 return 0;
10096 }
10097 _ACEOF
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_cxx_werror_flag"
10108 || test ! -s conftest.err'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10111 ac_status=$?
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; } &&
10114 { ac_try='test -s conftest$ac_exeext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10122 }'`
10123 # Check for a 64-bit object if we didn't find anything.
10124 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; }
10125 }'`; fi
10126 else
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 fi
10131 rm -f conftest.err conftest.$ac_objext \
10132 conftest$ac_exeext conftest.$ac_ext
10133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10135 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10136 # Warning - without using the other run time loading flags,
10137 # -berok will link without error, but may produce a broken library.
10138 no_undefined_flag_CXX=' ${wl}-bernotok'
10139 allow_undefined_flag_CXX=' ${wl}-berok'
10140 # Exported symbols can be pulled into shared objects from archives
10141 whole_archive_flag_spec_CXX='$convenience'
10142 archive_cmds_need_lc_CXX=yes
10143 # This is similar to how AIX traditionally builds its shared libraries.
10144 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'
10145 fi
10146 fi
10147 ;;
10149 beos*)
10150 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10151 allow_undefined_flag_CXX=unsupported
10152 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10153 # support --undefined. This deserves some investigation. FIXME
10154 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155 else
10156 ld_shlibs_CXX=no
10157 fi
10158 ;;
10160 chorus*)
10161 case $cc_basename in
10162 *)
10163 # FIXME: insert proper C++ library support
10164 ld_shlibs_CXX=no
10165 ;;
10166 esac
10167 ;;
10169 cygwin* | mingw* | pw32*)
10170 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10171 # as there is no search path for DLLs.
10172 hardcode_libdir_flag_spec_CXX='-L$libdir'
10173 allow_undefined_flag_CXX=unsupported
10174 always_export_symbols_CXX=no
10175 enable_shared_with_static_runtimes_CXX=yes
10177 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10178 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'
10179 # If the export-symbols file already is a .def file (1st line
10180 # is EXPORTS), use it as is; otherwise, prepend...
10181 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10182 cp $export_symbols $output_objdir/$soname.def;
10183 else
10184 echo EXPORTS > $output_objdir/$soname.def;
10185 cat $export_symbols >> $output_objdir/$soname.def;
10186 fi~
10187 $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'
10188 else
10189 ld_shlibs_CXX=no
10190 fi
10191 ;;
10192 darwin* | rhapsody*)
10193 case $host_os in
10194 rhapsody* | darwin1.[012])
10195 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10196 ;;
10197 *) # Darwin 1.3 on
10198 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10199 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10200 else
10201 case ${MACOSX_DEPLOYMENT_TARGET} in
10202 10.[012])
10203 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10204 ;;
10205 10.*)
10206 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10207 ;;
10208 esac
10209 fi
10210 ;;
10211 esac
10212 archive_cmds_need_lc_CXX=no
10213 hardcode_direct_CXX=no
10214 hardcode_automatic_CXX=yes
10215 hardcode_shlibpath_var_CXX=unsupported
10216 whole_archive_flag_spec_CXX=''
10217 link_all_deplibs_CXX=yes
10219 if test "$GXX" = yes ; then
10220 lt_int_apple_cc_single_mod=no
10221 output_verbose_link_cmd='echo'
10222 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10223 lt_int_apple_cc_single_mod=yes
10224 fi
10225 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10226 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10227 else
10228 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'
10229 fi
10230 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10231 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10232 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10233 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}'
10234 else
10235 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}'
10236 fi
10237 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}'
10238 else
10239 case $cc_basename in
10240 xlc*)
10241 output_verbose_link_cmd='echo'
10242 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'
10243 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10244 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10245 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}'
10246 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}'
10247 ;;
10248 *)
10249 ld_shlibs_CXX=no
10250 ;;
10251 esac
10252 fi
10253 ;;
10255 dgux*)
10256 case $cc_basename in
10257 ec++*)
10258 # FIXME: insert proper C++ library support
10259 ld_shlibs_CXX=no
10260 ;;
10261 ghcx*)
10262 # Green Hills C++ Compiler
10263 # FIXME: insert proper C++ library support
10264 ld_shlibs_CXX=no
10265 ;;
10266 *)
10267 # FIXME: insert proper C++ library support
10268 ld_shlibs_CXX=no
10269 ;;
10270 esac
10271 ;;
10272 freebsd[12]*)
10273 # C++ shared libraries reported to be fairly broken before switch to ELF
10274 ld_shlibs_CXX=no
10275 ;;
10276 freebsd-elf*)
10277 archive_cmds_need_lc_CXX=no
10278 ;;
10279 freebsd* | kfreebsd*-gnu | dragonfly*)
10280 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10281 # conventions
10282 ld_shlibs_CXX=yes
10283 ;;
10284 gnu*)
10285 ;;
10286 hpux9*)
10287 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10288 hardcode_libdir_separator_CXX=:
10289 export_dynamic_flag_spec_CXX='${wl}-E'
10290 hardcode_direct_CXX=yes
10291 hardcode_minus_L_CXX=yes # Not in the search PATH,
10292 # but as the default
10293 # location of the library.
10295 case $cc_basename in
10296 CC*)
10297 # FIXME: insert proper C++ library support
10298 ld_shlibs_CXX=no
10299 ;;
10300 aCC*)
10301 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'
10302 # Commands to make compiler produce verbose output that lists
10303 # what "hidden" libraries, object files and flags are used when
10304 # linking a shared library.
10305 #
10306 # There doesn't appear to be a way to prevent this compiler from
10307 # explicitly linking system object files so we need to strip them
10308 # from the output so that they don't get included in the library
10309 # dependencies.
10310 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'
10311 ;;
10312 *)
10313 if test "$GXX" = yes; then
10314 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'
10315 else
10316 # FIXME: insert proper C++ library support
10317 ld_shlibs_CXX=no
10318 fi
10319 ;;
10320 esac
10321 ;;
10322 hpux10*|hpux11*)
10323 if test $with_gnu_ld = no; then
10324 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10325 hardcode_libdir_separator_CXX=:
10327 case $host_cpu in
10328 hppa*64*|ia64*)
10329 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10330 ;;
10331 *)
10332 export_dynamic_flag_spec_CXX='${wl}-E'
10333 ;;
10334 esac
10335 fi
10336 case $host_cpu in
10337 hppa*64*|ia64*)
10338 hardcode_direct_CXX=no
10339 hardcode_shlibpath_var_CXX=no
10340 ;;
10341 *)
10342 hardcode_direct_CXX=yes
10343 hardcode_minus_L_CXX=yes # Not in the search PATH,
10344 # but as the default
10345 # location of the library.
10346 ;;
10347 esac
10349 case $cc_basename in
10350 CC*)
10351 # FIXME: insert proper C++ library support
10352 ld_shlibs_CXX=no
10353 ;;
10354 aCC*)
10355 case $host_cpu in
10356 hppa*64*)
10357 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10358 ;;
10359 ia64*)
10360 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10361 ;;
10362 *)
10363 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10364 ;;
10365 esac
10366 # Commands to make compiler produce verbose output that lists
10367 # what "hidden" libraries, object files and flags are used when
10368 # linking a shared library.
10369 #
10370 # There doesn't appear to be a way to prevent this compiler from
10371 # explicitly linking system object files so we need to strip them
10372 # from the output so that they don't get included in the library
10373 # dependencies.
10374 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'
10375 ;;
10376 *)
10377 if test "$GXX" = yes; then
10378 if test $with_gnu_ld = no; then
10379 case $host_cpu in
10380 hppa*64*)
10381 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10382 ;;
10383 ia64*)
10384 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10385 ;;
10386 *)
10387 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'
10388 ;;
10389 esac
10390 fi
10391 else
10392 # FIXME: insert proper C++ library support
10393 ld_shlibs_CXX=no
10394 fi
10395 ;;
10396 esac
10397 ;;
10398 interix3*)
10399 hardcode_direct_CXX=no
10400 hardcode_shlibpath_var_CXX=no
10401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10402 export_dynamic_flag_spec_CXX='${wl}-E'
10403 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10404 # Instead, shared libraries are loaded at an image base (0x10000000 by
10405 # default) and relocated if they conflict, which is a slow very memory
10406 # consuming and fragmenting process. To avoid this, we pick a random,
10407 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10408 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10409 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'
10410 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'
10411 ;;
10412 irix5* | irix6*)
10413 case $cc_basename in
10414 CC*)
10415 # SGI C++
10416 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'
10418 # Archives containing C++ object files must be created using
10419 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10420 # necessary to make sure instantiated templates are included
10421 # in the archive.
10422 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10423 ;;
10424 *)
10425 if test "$GXX" = yes; then
10426 if test "$with_gnu_ld" = no; then
10427 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'
10428 else
10429 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'
10430 fi
10431 fi
10432 link_all_deplibs_CXX=yes
10433 ;;
10434 esac
10435 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10436 hardcode_libdir_separator_CXX=:
10437 ;;
10438 linux*)
10439 case $cc_basename in
10440 KCC*)
10441 # Kuck and Associates, Inc. (KAI) C++ Compiler
10443 # KCC will only create a shared library if the output file
10444 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10445 # to its proper name (with version) after linking.
10446 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'
10447 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'
10448 # Commands to make compiler produce verbose output that lists
10449 # what "hidden" libraries, object files and flags are used when
10450 # linking a shared library.
10451 #
10452 # There doesn't appear to be a way to prevent this compiler from
10453 # explicitly linking system object files so we need to strip them
10454 # from the output so that they don't get included in the library
10455 # dependencies.
10456 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'
10458 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10459 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10461 # Archives containing C++ object files must be created using
10462 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10463 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10464 ;;
10465 icpc*)
10466 # Intel C++
10467 with_gnu_ld=yes
10468 # version 8.0 and above of icpc choke on multiply defined symbols
10469 # if we add $predep_objects and $postdep_objects, however 7.1 and
10470 # earlier do not add the objects themselves.
10471 case `$CC -V 2>&1` in
10472 *"Version 7."*)
10473 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10474 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'
10475 ;;
10476 *) # Version 8.0 or newer
10477 tmp_idyn=
10478 case $host_cpu in
10479 ia64*) tmp_idyn=' -i_dynamic';;
10480 esac
10481 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10482 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'
10483 ;;
10484 esac
10485 archive_cmds_need_lc_CXX=no
10486 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10487 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10488 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10489 ;;
10490 pgCC*)
10491 # Portland Group C++ compiler
10492 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10493 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'
10495 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10497 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'
10498 ;;
10499 cxx*)
10500 # Compaq C++
10501 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10502 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'
10504 runpath_var=LD_RUN_PATH
10505 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10506 hardcode_libdir_separator_CXX=:
10508 # Commands to make compiler produce verbose output that lists
10509 # what "hidden" libraries, object files and flags are used when
10510 # linking a shared library.
10511 #
10512 # There doesn't appear to be a way to prevent this compiler from
10513 # explicitly linking system object files so we need to strip them
10514 # from the output so that they don't get included in the library
10515 # dependencies.
10516 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'
10517 ;;
10518 esac
10519 ;;
10520 lynxos*)
10521 # FIXME: insert proper C++ library support
10522 ld_shlibs_CXX=no
10523 ;;
10524 m88k*)
10525 # FIXME: insert proper C++ library support
10526 ld_shlibs_CXX=no
10527 ;;
10528 mvs*)
10529 case $cc_basename in
10530 cxx*)
10531 # FIXME: insert proper C++ library support
10532 ld_shlibs_CXX=no
10533 ;;
10534 *)
10535 # FIXME: insert proper C++ library support
10536 ld_shlibs_CXX=no
10537 ;;
10538 esac
10539 ;;
10540 netbsd*)
10541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10542 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10543 wlarc=
10544 hardcode_libdir_flag_spec_CXX='-R$libdir'
10545 hardcode_direct_CXX=yes
10546 hardcode_shlibpath_var_CXX=no
10547 fi
10548 # Workaround some broken pre-1.5 toolchains
10549 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10550 ;;
10551 openbsd2*)
10552 # C++ shared libraries are fairly broken
10553 ld_shlibs_CXX=no
10554 ;;
10555 openbsd*)
10556 hardcode_direct_CXX=yes
10557 hardcode_shlibpath_var_CXX=no
10558 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10559 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10561 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10562 export_dynamic_flag_spec_CXX='${wl}-E'
10563 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10564 fi
10565 output_verbose_link_cmd='echo'
10566 ;;
10567 osf3*)
10568 case $cc_basename in
10569 KCC*)
10570 # Kuck and Associates, Inc. (KAI) C++ Compiler
10572 # KCC will only create a shared library if the output file
10573 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10574 # to its proper name (with version) after linking.
10575 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'
10577 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10578 hardcode_libdir_separator_CXX=:
10580 # Archives containing C++ object files must be created using
10581 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10582 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10584 ;;
10585 RCC*)
10586 # Rational C++ 2.4.1
10587 # FIXME: insert proper C++ library support
10588 ld_shlibs_CXX=no
10589 ;;
10590 cxx*)
10591 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10592 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'
10594 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10595 hardcode_libdir_separator_CXX=:
10597 # Commands to make compiler produce verbose output that lists
10598 # what "hidden" libraries, object files and flags are used when
10599 # linking a shared library.
10600 #
10601 # There doesn't appear to be a way to prevent this compiler from
10602 # explicitly linking system object files so we need to strip them
10603 # from the output so that they don't get included in the library
10604 # dependencies.
10605 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'
10606 ;;
10607 *)
10608 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10609 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10610 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'
10612 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10613 hardcode_libdir_separator_CXX=:
10615 # Commands to make compiler produce verbose output that lists
10616 # what "hidden" libraries, object files and flags are used when
10617 # linking a shared library.
10618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10620 else
10621 # FIXME: insert proper C++ library support
10622 ld_shlibs_CXX=no
10623 fi
10624 ;;
10625 esac
10626 ;;
10627 osf4* | osf5*)
10628 case $cc_basename in
10629 KCC*)
10630 # Kuck and Associates, Inc. (KAI) C++ Compiler
10632 # KCC will only create a shared library if the output file
10633 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10634 # to its proper name (with version) after linking.
10635 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'
10637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10638 hardcode_libdir_separator_CXX=:
10640 # Archives containing C++ object files must be created using
10641 # the KAI C++ compiler.
10642 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10643 ;;
10644 RCC*)
10645 # Rational C++ 2.4.1
10646 # FIXME: insert proper C++ library support
10647 ld_shlibs_CXX=no
10648 ;;
10649 cxx*)
10650 allow_undefined_flag_CXX=' -expect_unresolved \*'
10651 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'
10652 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10653 echo "-hidden">> $lib.exp~
10654 $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~
10655 $rm $lib.exp'
10657 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10658 hardcode_libdir_separator_CXX=:
10660 # Commands to make compiler produce verbose output that lists
10661 # what "hidden" libraries, object files and flags are used when
10662 # linking a shared library.
10663 #
10664 # There doesn't appear to be a way to prevent this compiler from
10665 # explicitly linking system object files so we need to strip them
10666 # from the output so that they don't get included in the library
10667 # dependencies.
10668 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'
10669 ;;
10670 *)
10671 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10672 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10673 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'
10675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10676 hardcode_libdir_separator_CXX=:
10678 # Commands to make compiler produce verbose output that lists
10679 # what "hidden" libraries, object files and flags are used when
10680 # linking a shared library.
10681 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10683 else
10684 # FIXME: insert proper C++ library support
10685 ld_shlibs_CXX=no
10686 fi
10687 ;;
10688 esac
10689 ;;
10690 psos*)
10691 # FIXME: insert proper C++ library support
10692 ld_shlibs_CXX=no
10693 ;;
10694 sunos4*)
10695 case $cc_basename in
10696 CC*)
10697 # Sun C++ 4.x
10698 # FIXME: insert proper C++ library support
10699 ld_shlibs_CXX=no
10700 ;;
10701 lcc*)
10702 # Lucid
10703 # FIXME: insert proper C++ library support
10704 ld_shlibs_CXX=no
10705 ;;
10706 *)
10707 # FIXME: insert proper C++ library support
10708 ld_shlibs_CXX=no
10709 ;;
10710 esac
10711 ;;
10712 solaris*)
10713 case $cc_basename in
10714 CC*)
10715 # Sun C++ 4.2, 5.x and Centerline C++
10716 archive_cmds_need_lc_CXX=yes
10717 no_undefined_flag_CXX=' -zdefs'
10718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10719 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10720 $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'
10722 hardcode_libdir_flag_spec_CXX='-R$libdir'
10723 hardcode_shlibpath_var_CXX=no
10724 case $host_os in
10725 solaris2.[0-5] | solaris2.[0-5].*) ;;
10726 *)
10727 # The C++ compiler is used as linker so we must use $wl
10728 # flag to pass the commands to the underlying system
10729 # linker. We must also pass each convience library through
10730 # to the system linker between allextract/defaultextract.
10731 # The C++ compiler will combine linker options so we
10732 # cannot just pass the convience library names through
10733 # without $wl.
10734 # Supported since Solaris 2.6 (maybe 2.5.1?)
10735 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'
10736 ;;
10737 esac
10738 link_all_deplibs_CXX=yes
10740 output_verbose_link_cmd='echo'
10742 # Archives containing C++ object files must be created using
10743 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10744 # necessary to make sure instantiated templates are included
10745 # in the archive.
10746 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10747 ;;
10748 gcx*)
10749 # Green Hills C++ Compiler
10750 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10752 # The C++ compiler must be used to create the archive.
10753 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10754 ;;
10755 *)
10756 # GNU C++ compiler with Solaris linker
10757 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10758 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10759 if $CC --version | grep -v '^2\.7' > /dev/null; then
10760 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10761 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10762 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10764 # Commands to make compiler produce verbose output that lists
10765 # what "hidden" libraries, object files and flags are used when
10766 # linking a shared library.
10767 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10768 else
10769 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10770 # platform.
10771 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10772 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10773 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10775 # Commands to make compiler produce verbose output that lists
10776 # what "hidden" libraries, object files and flags are used when
10777 # linking a shared library.
10778 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10779 fi
10781 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10782 fi
10783 ;;
10784 esac
10785 ;;
10786 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10787 no_undefined_flag_CXX='${wl}-z,text'
10788 archive_cmds_need_lc_CXX=no
10789 hardcode_shlibpath_var_CXX=no
10790 runpath_var='LD_RUN_PATH'
10792 case $cc_basename in
10793 CC*)
10794 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10795 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10796 ;;
10797 *)
10798 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10799 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10800 ;;
10801 esac
10802 ;;
10803 sysv5* | sco3.2v5* | sco5v6*)
10804 # Note: We can NOT use -z defs as we might desire, because we do not
10805 # link with -lc, and that would cause any symbols used from libc to
10806 # always be unresolved, which means just about no library would
10807 # ever link correctly. If we're not using GNU ld we use -z text
10808 # though, which does catch some bad symbols but isn't as heavy-handed
10809 # as -z defs.
10810 # For security reasons, it is highly recommended that you always
10811 # use absolute paths for naming shared libraries, and exclude the
10812 # DT_RUNPATH tag from executables and libraries. But doing so
10813 # requires that you compile everything twice, which is a pain.
10814 # So that behaviour is only enabled if SCOABSPATH is set to a
10815 # non-empty value in the environment. Most likely only useful for
10816 # creating official distributions of packages.
10817 # This is a hack until libtool officially supports absolute path
10818 # names for shared libraries.
10819 no_undefined_flag_CXX='${wl}-z,text'
10820 allow_undefined_flag_CXX='${wl}-z,nodefs'
10821 archive_cmds_need_lc_CXX=no
10822 hardcode_shlibpath_var_CXX=no
10823 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10824 hardcode_libdir_separator_CXX=':'
10825 link_all_deplibs_CXX=yes
10826 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10827 runpath_var='LD_RUN_PATH'
10829 case $cc_basename in
10830 CC*)
10831 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10832 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10833 ;;
10834 *)
10835 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10836 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10837 ;;
10838 esac
10839 ;;
10840 tandem*)
10841 case $cc_basename in
10842 NCC*)
10843 # NonStop-UX NCC 3.20
10844 # FIXME: insert proper C++ library support
10845 ld_shlibs_CXX=no
10846 ;;
10847 *)
10848 # FIXME: insert proper C++ library support
10849 ld_shlibs_CXX=no
10850 ;;
10851 esac
10852 ;;
10853 vxworks*)
10854 # FIXME: insert proper C++ library support
10855 ld_shlibs_CXX=no
10856 ;;
10857 *)
10858 # FIXME: insert proper C++ library support
10859 ld_shlibs_CXX=no
10860 ;;
10861 esac
10862 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10863 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10864 test "$ld_shlibs_CXX" = no && can_build_shared=no
10866 GCC_CXX="$GXX"
10867 LD_CXX="$LD"
10870 cat > conftest.$ac_ext <<EOF
10871 class Foo
10872 {
10873 public:
10874 Foo (void) { a = 0; }
10875 private:
10876 int a;
10877 };
10878 EOF
10880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10881 (eval $ac_compile) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; then
10885 # Parse the compiler output and extract the necessary
10886 # objects, libraries and library flags.
10888 # Sentinel used to keep track of whether or not we are before
10889 # the conftest object file.
10890 pre_test_object_deps_done=no
10892 # The `*' in the case matches for architectures that use `case' in
10893 # $output_verbose_cmd can trigger glob expansion during the loop
10894 # eval without this substitution.
10895 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10897 for p in `eval $output_verbose_link_cmd`; do
10898 case $p in
10900 -L* | -R* | -l*)
10901 # Some compilers place space between "-{L,R}" and the path.
10902 # Remove the space.
10903 if test $p = "-L" \
10904 || test $p = "-R"; then
10905 prev=$p
10906 continue
10907 else
10908 prev=
10909 fi
10911 if test "$pre_test_object_deps_done" = no; then
10912 case $p in
10913 -L* | -R*)
10914 # Internal compiler library paths should come after those
10915 # provided the user. The postdeps already come after the
10916 # user supplied libs so there is no need to process them.
10917 if test -z "$compiler_lib_search_path_CXX"; then
10918 compiler_lib_search_path_CXX="${prev}${p}"
10919 else
10920 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10921 fi
10922 ;;
10923 # The "-l" case would never come before the object being
10924 # linked, so don't bother handling this case.
10925 esac
10926 else
10927 if test -z "$postdeps_CXX"; then
10928 postdeps_CXX="${prev}${p}"
10929 else
10930 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10931 fi
10932 fi
10933 ;;
10935 *.$objext)
10936 # This assumes that the test object file only shows up
10937 # once in the compiler output.
10938 if test "$p" = "conftest.$objext"; then
10939 pre_test_object_deps_done=yes
10940 continue
10941 fi
10943 if test "$pre_test_object_deps_done" = no; then
10944 if test -z "$predep_objects_CXX"; then
10945 predep_objects_CXX="$p"
10946 else
10947 predep_objects_CXX="$predep_objects_CXX $p"
10948 fi
10949 else
10950 if test -z "$postdep_objects_CXX"; then
10951 postdep_objects_CXX="$p"
10952 else
10953 postdep_objects_CXX="$postdep_objects_CXX $p"
10954 fi
10955 fi
10956 ;;
10958 *) ;; # Ignore the rest.
10960 esac
10961 done
10963 # Clean up.
10964 rm -f a.out a.exe
10965 else
10966 echo "libtool.m4: error: problem compiling CXX test program"
10967 fi
10969 $rm -f confest.$objext
10971 # PORTME: override above test on systems where it is broken
10972 case $host_os in
10973 interix3*)
10974 # Interix 3.5 installs completely hosed .la files for C++, so rather than
10975 # hack all around it, let's just trust "g++" to DTRT.
10976 predep_objects_CXX=
10977 postdep_objects_CXX=
10978 postdeps_CXX=
10979 ;;
10981 solaris*)
10982 case $cc_basename in
10983 CC*)
10984 # Adding this requires a known-good setup of shared libraries for
10985 # Sun compiler versions before 5.6, else PIC objects from an old
10986 # archive will be linked into the output, leading to subtle bugs.
10987 postdeps_CXX='-lCstd -lCrun'
10988 ;;
10989 esac
10990 ;;
10991 esac
10994 case " $postdeps_CXX " in
10995 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10996 esac
10998 lt_prog_compiler_wl_CXX=
10999 lt_prog_compiler_pic_CXX=
11000 lt_prog_compiler_static_CXX=
11002 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11003 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11005 # C++ specific cases for pic, static, wl, etc.
11006 if test "$GXX" = yes; then
11007 lt_prog_compiler_wl_CXX='-Wl,'
11008 lt_prog_compiler_static_CXX='-static'
11010 case $host_os in
11011 aix*)
11012 # All AIX code is PIC.
11013 if test "$host_cpu" = ia64; then
11014 # AIX 5 now supports IA64 processor
11015 lt_prog_compiler_static_CXX='-Bstatic'
11016 fi
11017 ;;
11018 amigaos*)
11019 # FIXME: we need at least 68020 code to build shared libraries, but
11020 # adding the `-m68020' flag to GCC prevents building anything better,
11021 # like `-m68040'.
11022 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11023 ;;
11024 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11025 # PIC is the default for these OSes.
11026 ;;
11027 mingw* | os2* | pw32*)
11028 # This hack is so that the source file can tell whether it is being
11029 # built for inclusion in a dll (and should export symbols for example).
11030 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11031 ;;
11032 darwin* | rhapsody*)
11033 # PIC is the default on this platform
11034 # Common symbols not allowed in MH_DYLIB files
11035 lt_prog_compiler_pic_CXX='-fno-common'
11036 ;;
11037 *djgpp*)
11038 # DJGPP does not support shared libraries at all
11039 lt_prog_compiler_pic_CXX=
11040 ;;
11041 interix3*)
11042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11043 # Instead, we relocate shared libraries at runtime.
11044 ;;
11045 sysv4*MP*)
11046 if test -d /usr/nec; then
11047 lt_prog_compiler_pic_CXX=-Kconform_pic
11048 fi
11049 ;;
11050 hpux*)
11051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11052 # not for PA HP-UX.
11053 case $host_cpu in
11054 hppa*64*|ia64*)
11055 ;;
11056 *)
11057 lt_prog_compiler_pic_CXX='-fPIC'
11058 ;;
11059 esac
11060 ;;
11061 *)
11062 lt_prog_compiler_pic_CXX='-fPIC'
11063 ;;
11064 esac
11065 else
11066 case $host_os in
11067 aix4* | aix5*)
11068 # All AIX code is PIC.
11069 if test "$host_cpu" = ia64; then
11070 # AIX 5 now supports IA64 processor
11071 lt_prog_compiler_static_CXX='-Bstatic'
11072 else
11073 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11074 fi
11075 ;;
11076 chorus*)
11077 case $cc_basename in
11078 cxch68*)
11079 # Green Hills C++ Compiler
11080 # _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"
11081 ;;
11082 esac
11083 ;;
11084 darwin*)
11085 # PIC is the default on this platform
11086 # Common symbols not allowed in MH_DYLIB files
11087 case $cc_basename in
11088 xlc*)
11089 lt_prog_compiler_pic_CXX='-qnocommon'
11090 lt_prog_compiler_wl_CXX='-Wl,'
11091 ;;
11092 esac
11093 ;;
11094 dgux*)
11095 case $cc_basename in
11096 ec++*)
11097 lt_prog_compiler_pic_CXX='-KPIC'
11098 ;;
11099 ghcx*)
11100 # Green Hills C++ Compiler
11101 lt_prog_compiler_pic_CXX='-pic'
11102 ;;
11103 *)
11104 ;;
11105 esac
11106 ;;
11107 freebsd* | kfreebsd*-gnu | dragonfly*)
11108 # FreeBSD uses GNU C++
11109 ;;
11110 hpux9* | hpux10* | hpux11*)
11111 case $cc_basename in
11112 CC*)
11113 lt_prog_compiler_wl_CXX='-Wl,'
11114 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11115 if test "$host_cpu" != ia64; then
11116 lt_prog_compiler_pic_CXX='+Z'
11117 fi
11118 ;;
11119 aCC*)
11120 lt_prog_compiler_wl_CXX='-Wl,'
11121 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11122 case $host_cpu in
11123 hppa*64*|ia64*)
11124 # +Z the default
11125 ;;
11126 *)
11127 lt_prog_compiler_pic_CXX='+Z'
11128 ;;
11129 esac
11130 ;;
11131 *)
11132 ;;
11133 esac
11134 ;;
11135 interix*)
11136 # This is c89, which is MS Visual C++ (no shared libs)
11137 # Anyone wants to do a port?
11138 ;;
11139 irix5* | irix6* | nonstopux*)
11140 case $cc_basename in
11141 CC*)
11142 lt_prog_compiler_wl_CXX='-Wl,'
11143 lt_prog_compiler_static_CXX='-non_shared'
11144 # CC pic flag -KPIC is the default.
11145 ;;
11146 *)
11147 ;;
11148 esac
11149 ;;
11150 linux*)
11151 case $cc_basename in
11152 KCC*)
11153 # KAI C++ Compiler
11154 lt_prog_compiler_wl_CXX='--backend -Wl,'
11155 lt_prog_compiler_pic_CXX='-fPIC'
11156 ;;
11157 icpc* | ecpc*)
11158 # Intel C++
11159 lt_prog_compiler_wl_CXX='-Wl,'
11160 lt_prog_compiler_pic_CXX='-KPIC'
11161 lt_prog_compiler_static_CXX='-static'
11162 ;;
11163 pgCC*)
11164 # Portland Group C++ compiler.
11165 lt_prog_compiler_wl_CXX='-Wl,'
11166 lt_prog_compiler_pic_CXX='-fpic'
11167 lt_prog_compiler_static_CXX='-Bstatic'
11168 ;;
11169 cxx*)
11170 # Compaq C++
11171 # Make sure the PIC flag is empty. It appears that all Alpha
11172 # Linux and Compaq Tru64 Unix objects are PIC.
11173 lt_prog_compiler_pic_CXX=
11174 lt_prog_compiler_static_CXX='-non_shared'
11175 ;;
11176 *)
11177 ;;
11178 esac
11179 ;;
11180 lynxos*)
11181 ;;
11182 m88k*)
11183 ;;
11184 mvs*)
11185 case $cc_basename in
11186 cxx*)
11187 lt_prog_compiler_pic_CXX='-W c,exportall'
11188 ;;
11189 *)
11190 ;;
11191 esac
11192 ;;
11193 netbsd*)
11194 ;;
11195 osf3* | osf4* | osf5*)
11196 case $cc_basename in
11197 KCC*)
11198 lt_prog_compiler_wl_CXX='--backend -Wl,'
11199 ;;
11200 RCC*)
11201 # Rational C++ 2.4.1
11202 lt_prog_compiler_pic_CXX='-pic'
11203 ;;
11204 cxx*)
11205 # Digital/Compaq C++
11206 lt_prog_compiler_wl_CXX='-Wl,'
11207 # Make sure the PIC flag is empty. It appears that all Alpha
11208 # Linux and Compaq Tru64 Unix objects are PIC.
11209 lt_prog_compiler_pic_CXX=
11210 lt_prog_compiler_static_CXX='-non_shared'
11211 ;;
11212 *)
11213 ;;
11214 esac
11215 ;;
11216 psos*)
11217 ;;
11218 solaris*)
11219 case $cc_basename in
11220 CC*)
11221 # Sun C++ 4.2, 5.x and Centerline C++
11222 lt_prog_compiler_pic_CXX='-KPIC'
11223 lt_prog_compiler_static_CXX='-Bstatic'
11224 lt_prog_compiler_wl_CXX='-Qoption ld '
11225 ;;
11226 gcx*)
11227 # Green Hills C++ Compiler
11228 lt_prog_compiler_pic_CXX='-PIC'
11229 ;;
11230 *)
11231 ;;
11232 esac
11233 ;;
11234 sunos4*)
11235 case $cc_basename in
11236 CC*)
11237 # Sun C++ 4.x
11238 lt_prog_compiler_pic_CXX='-pic'
11239 lt_prog_compiler_static_CXX='-Bstatic'
11240 ;;
11241 lcc*)
11242 # Lucid
11243 lt_prog_compiler_pic_CXX='-pic'
11244 ;;
11245 *)
11246 ;;
11247 esac
11248 ;;
11249 tandem*)
11250 case $cc_basename in
11251 NCC*)
11252 # NonStop-UX NCC 3.20
11253 lt_prog_compiler_pic_CXX='-KPIC'
11254 ;;
11255 *)
11256 ;;
11257 esac
11258 ;;
11259 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11260 case $cc_basename in
11261 CC*)
11262 lt_prog_compiler_wl_CXX='-Wl,'
11263 lt_prog_compiler_pic_CXX='-KPIC'
11264 lt_prog_compiler_static_CXX='-Bstatic'
11265 ;;
11266 esac
11267 ;;
11268 vxworks*)
11269 ;;
11270 *)
11271 lt_prog_compiler_can_build_shared_CXX=no
11272 ;;
11273 esac
11274 fi
11276 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11277 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11279 #
11280 # Check to make sure the PIC flag actually works.
11281 #
11282 if test -n "$lt_prog_compiler_pic_CXX"; then
11284 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11285 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11286 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288 else
11289 lt_prog_compiler_pic_works_CXX=no
11290 ac_outfile=conftest.$ac_objext
11291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11292 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11293 # Insert the option either (1) after the last *FLAGS variable, or
11294 # (2) before a word containing "conftest.", or (3) at the end.
11295 # Note that $ac_compile itself does not contain backslashes and begins
11296 # with a dollar sign (not a hyphen), so the echo should work correctly.
11297 # The option is referenced via a variable to avoid confusing sed.
11298 lt_compile=`echo "$ac_compile" | $SED \
11299 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11301 -e 's:$: $lt_compiler_flag:'`
11302 (eval echo "\"\$as_me:11302: $lt_compile\"" >&5)
11303 (eval "$lt_compile" 2>conftest.err)
11304 ac_status=$?
11305 cat conftest.err >&5
11306 echo "$as_me:11306: \$? = $ac_status" >&5
11307 if (exit $ac_status) && test -s "$ac_outfile"; then
11308 # The compiler can only warn and ignore the option if not recognized
11309 # So say no if there are warnings other than the usual output.
11310 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11312 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11313 lt_prog_compiler_pic_works_CXX=yes
11314 fi
11315 fi
11316 $rm conftest*
11318 fi
11319 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11320 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11322 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11323 case $lt_prog_compiler_pic_CXX in
11324 "" | " "*) ;;
11325 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11326 esac
11327 else
11328 lt_prog_compiler_pic_CXX=
11329 lt_prog_compiler_can_build_shared_CXX=no
11330 fi
11332 fi
11333 case $host_os in
11334 # For platforms which do not support PIC, -DPIC is meaningless:
11335 *djgpp*)
11336 lt_prog_compiler_pic_CXX=
11337 ;;
11338 *)
11339 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11340 ;;
11341 esac
11343 #
11344 # Check to make sure the static flag actually works.
11345 #
11346 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11347 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11348 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11349 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11350 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 else
11352 lt_prog_compiler_static_works_CXX=no
11353 save_LDFLAGS="$LDFLAGS"
11354 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11355 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11357 # The linker can only warn and ignore the option if not recognized
11358 # So say no if there are warnings
11359 if test -s conftest.err; then
11360 # Append any errors to the config.log.
11361 cat conftest.err 1>&5
11362 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11364 if diff conftest.exp conftest.er2 >/dev/null; then
11365 lt_prog_compiler_static_works_CXX=yes
11366 fi
11367 else
11368 lt_prog_compiler_static_works_CXX=yes
11369 fi
11370 fi
11371 $rm conftest*
11372 LDFLAGS="$save_LDFLAGS"
11374 fi
11375 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11376 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11378 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11379 :
11380 else
11381 lt_prog_compiler_static_CXX=
11382 fi
11385 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11386 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11387 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 lt_cv_prog_compiler_c_o_CXX=no
11391 $rm -r conftest 2>/dev/null
11392 mkdir conftest
11393 cd conftest
11394 mkdir out
11395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11397 lt_compiler_flag="-o out/conftest2.$ac_objext"
11398 # Insert the option either (1) after the last *FLAGS variable, or
11399 # (2) before a word containing "conftest.", or (3) at the end.
11400 # Note that $ac_compile itself does not contain backslashes and begins
11401 # with a dollar sign (not a hyphen), so the echo should work correctly.
11402 lt_compile=`echo "$ac_compile" | $SED \
11403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11405 -e 's:$: $lt_compiler_flag:'`
11406 (eval echo "\"\$as_me:11406: $lt_compile\"" >&5)
11407 (eval "$lt_compile" 2>out/conftest.err)
11408 ac_status=$?
11409 cat out/conftest.err >&5
11410 echo "$as_me:11410: \$? = $ac_status" >&5
11411 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11412 then
11413 # The compiler can only warn and ignore the option if not recognized
11414 # So say no if there are warnings
11415 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11416 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11417 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11418 lt_cv_prog_compiler_c_o_CXX=yes
11419 fi
11420 fi
11421 chmod u+w . 2>&5
11422 $rm conftest*
11423 # SGI C++ compiler will create directory out/ii_files/ for
11424 # template instantiation
11425 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11426 $rm out/* && rmdir out
11427 cd ..
11428 rmdir conftest
11429 $rm conftest*
11431 fi
11432 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11433 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11436 hard_links="nottested"
11437 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11438 # do not overwrite the value of need_locks provided by the user
11439 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11440 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11441 hard_links=yes
11442 $rm conftest*
11443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11444 touch conftest.a
11445 ln conftest.a conftest.b 2>&5 || hard_links=no
11446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11447 echo "$as_me:$LINENO: result: $hard_links" >&5
11448 echo "${ECHO_T}$hard_links" >&6
11449 if test "$hard_links" = no; then
11450 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11451 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11452 need_locks=warn
11453 fi
11454 else
11455 need_locks=no
11456 fi
11458 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11459 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11461 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11462 case $host_os in
11463 aix4* | aix5*)
11464 # If we're using GNU nm, then we don't want the "-C" option.
11465 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11466 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11467 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'
11468 else
11469 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'
11470 fi
11471 ;;
11472 pw32*)
11473 export_symbols_cmds_CXX="$ltdll_cmds"
11474 ;;
11475 cygwin* | mingw*)
11476 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'
11477 ;;
11478 *)
11479 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11480 ;;
11481 esac
11483 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11484 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11485 test "$ld_shlibs_CXX" = no && can_build_shared=no
11487 #
11488 # Do we need to explicitly link libc?
11489 #
11490 case "x$archive_cmds_need_lc_CXX" in
11491 x|xyes)
11492 # Assume -lc should be added
11493 archive_cmds_need_lc_CXX=yes
11495 if test "$enable_shared" = yes && test "$GCC" = yes; then
11496 case $archive_cmds_CXX in
11497 *'~'*)
11498 # FIXME: we may have to deal with multi-command sequences.
11499 ;;
11500 '$CC '*)
11501 # Test whether the compiler implicitly links with -lc since on some
11502 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11503 # to ld, don't add -lc before -lgcc.
11504 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11505 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11506 $rm conftest*
11507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11510 (eval $ac_compile) 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } 2>conftest.err; then
11514 soname=conftest
11515 lib=conftest
11516 libobjs=conftest.$ac_objext
11517 deplibs=
11518 wl=$lt_prog_compiler_wl_CXX
11519 pic_flag=$lt_prog_compiler_pic_CXX
11520 compiler_flags=-v
11521 linker_flags=-v
11522 verstring=
11523 output_objdir=.
11524 libname=conftest
11525 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11526 allow_undefined_flag_CXX=
11527 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11528 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }
11532 then
11533 archive_cmds_need_lc_CXX=no
11534 else
11535 archive_cmds_need_lc_CXX=yes
11536 fi
11537 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11538 else
11539 cat conftest.err 1>&5
11540 fi
11541 $rm conftest*
11542 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11543 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11544 ;;
11545 esac
11546 fi
11547 ;;
11548 esac
11550 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11551 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11552 library_names_spec=
11553 libname_spec='lib$name'
11554 soname_spec=
11555 shrext_cmds=".so"
11556 postinstall_cmds=
11557 postuninstall_cmds=
11558 finish_cmds=
11559 finish_eval=
11560 shlibpath_var=
11561 shlibpath_overrides_runpath=unknown
11562 version_type=none
11563 dynamic_linker="$host_os ld.so"
11564 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11565 if test "$GCC" = yes; then
11566 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11567 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11568 # if the path contains ";" then we assume it to be the separator
11569 # otherwise default to the standard path separator (i.e. ":") - it is
11570 # assumed that no part of a normal pathname contains ";" but that should
11571 # okay in the real world where ";" in dirpaths is itself problematic.
11572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11573 else
11574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11575 fi
11576 else
11577 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11578 fi
11579 need_lib_prefix=unknown
11580 hardcode_into_libs=no
11582 # when you set need_version to no, make sure it does not cause -set_version
11583 # flags to be left without arguments
11584 need_version=unknown
11586 case $host_os in
11587 aix3*)
11588 version_type=linux
11589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11590 shlibpath_var=LIBPATH
11592 # AIX 3 has no versioning support, so we append a major version to the name.
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 ;;
11596 aix4* | aix5*)
11597 version_type=linux
11598 need_lib_prefix=no
11599 need_version=no
11600 hardcode_into_libs=yes
11601 if test "$host_cpu" = ia64; then
11602 # AIX 5 supports IA64
11603 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11604 shlibpath_var=LD_LIBRARY_PATH
11605 else
11606 # With GCC up to 2.95.x, collect2 would create an import file
11607 # for dependence libraries. The import file would start with
11608 # the line `#! .'. This would cause the generated library to
11609 # depend on `.', always an invalid library. This was fixed in
11610 # development snapshots of GCC prior to 3.0.
11611 case $host_os in
11612 aix4 | aix4.[01] | aix4.[01].*)
11613 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11614 echo ' yes '
11615 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11616 :
11617 else
11618 can_build_shared=no
11619 fi
11620 ;;
11621 esac
11622 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11623 # soname into executable. Probably we can add versioning support to
11624 # collect2, so additional links can be useful in future.
11625 if test "$aix_use_runtimelinking" = yes; then
11626 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11627 # instead of lib<name>.a to let people know that these are not
11628 # typical AIX shared libraries.
11629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11630 else
11631 # We preserve .a as extension for shared libraries through AIX4.2
11632 # and later when we are not doing run time linking.
11633 library_names_spec='${libname}${release}.a $libname.a'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 fi
11636 shlibpath_var=LIBPATH
11637 fi
11638 ;;
11640 amigaos*)
11641 library_names_spec='$libname.ixlibrary $libname.a'
11642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11643 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'
11644 ;;
11646 beos*)
11647 library_names_spec='${libname}${shared_ext}'
11648 dynamic_linker="$host_os ld.so"
11649 shlibpath_var=LIBRARY_PATH
11650 ;;
11652 bsdi[45]*)
11653 version_type=linux
11654 need_version=no
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11661 # the default ld.so.conf also contains /usr/contrib/lib and
11662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11663 # libtool to hard-code these into programs
11664 ;;
11666 cygwin* | mingw* | pw32*)
11667 version_type=windows
11668 shrext_cmds=".dll"
11669 need_version=no
11670 need_lib_prefix=no
11672 case $GCC,$host_os in
11673 yes,cygwin* | yes,mingw* | yes,pw32*)
11674 library_names_spec='$libname.dll.a'
11675 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11676 postinstall_cmds='base_file=`basename \${file}`~
11677 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11678 dldir=$destdir/`dirname \$dlpath`~
11679 test -d \$dldir || mkdir -p \$dldir~
11680 $install_prog $dir/$dlname \$dldir/$dlname~
11681 chmod a+x \$dldir/$dlname'
11682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11683 dlpath=$dir/\$dldll~
11684 $rm \$dlpath'
11685 shlibpath_overrides_runpath=yes
11687 case $host_os in
11688 cygwin*)
11689 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11691 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11692 ;;
11693 mingw*)
11694 # MinGW DLLs use traditional 'lib' prefix
11695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11696 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11697 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11698 # It is most probably a Windows format PATH printed by
11699 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11700 # path with ; separators, and with drive letters. We can handle the
11701 # drive letters (cygwin fileutils understands them), so leave them,
11702 # especially as we might pass files found there to a mingw objdump,
11703 # which wouldn't understand a cygwinified path. Ahh.
11704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11705 else
11706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11707 fi
11708 ;;
11709 pw32*)
11710 # pw32 DLLs use 'pw' prefix rather than 'lib'
11711 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11712 ;;
11713 esac
11714 ;;
11716 *)
11717 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11718 ;;
11719 esac
11720 dynamic_linker='Win32 ld.exe'
11721 # FIXME: first we should search . and the directory the executable is in
11722 shlibpath_var=PATH
11723 ;;
11725 darwin* | rhapsody*)
11726 dynamic_linker="$host_os dyld"
11727 version_type=darwin
11728 need_lib_prefix=no
11729 need_version=no
11730 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11731 soname_spec='${libname}${release}${major}$shared_ext'
11732 shlibpath_overrides_runpath=yes
11733 shlibpath_var=DYLD_LIBRARY_PATH
11734 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11735 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11736 if test "$GCC" = yes; then
11737 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"`
11738 else
11739 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11740 fi
11741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11742 ;;
11744 dgux*)
11745 version_type=linux
11746 need_lib_prefix=no
11747 need_version=no
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11749 soname_spec='${libname}${release}${shared_ext}$major'
11750 shlibpath_var=LD_LIBRARY_PATH
11751 ;;
11753 freebsd1*)
11754 dynamic_linker=no
11755 ;;
11757 kfreebsd*-gnu)
11758 version_type=linux
11759 need_lib_prefix=no
11760 need_version=no
11761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11762 soname_spec='${libname}${release}${shared_ext}$major'
11763 shlibpath_var=LD_LIBRARY_PATH
11764 shlibpath_overrides_runpath=no
11765 hardcode_into_libs=yes
11766 dynamic_linker='GNU ld.so'
11767 ;;
11769 freebsd* | dragonfly*)
11770 # DragonFly does not have aout. When/if they implement a new
11771 # versioning mechanism, adjust this.
11772 if test -x /usr/bin/objformat; then
11773 objformat=`/usr/bin/objformat`
11774 else
11775 case $host_os in
11776 freebsd[123]*) objformat=aout ;;
11777 *) objformat=elf ;;
11778 esac
11779 fi
11780 version_type=freebsd-$objformat
11781 case $version_type in
11782 freebsd-elf*)
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11784 need_version=no
11785 need_lib_prefix=no
11786 ;;
11787 freebsd-*)
11788 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11789 need_version=yes
11790 ;;
11791 esac
11792 shlibpath_var=LD_LIBRARY_PATH
11793 case $host_os in
11794 freebsd2*)
11795 shlibpath_overrides_runpath=yes
11796 ;;
11797 freebsd3.[01]* | freebsdelf3.[01]*)
11798 shlibpath_overrides_runpath=yes
11799 hardcode_into_libs=yes
11800 ;;
11801 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11802 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11803 shlibpath_overrides_runpath=no
11804 hardcode_into_libs=yes
11805 ;;
11806 freebsd*) # from 4.6 on
11807 shlibpath_overrides_runpath=yes
11808 hardcode_into_libs=yes
11809 ;;
11810 esac
11811 ;;
11813 gnu*)
11814 version_type=linux
11815 need_lib_prefix=no
11816 need_version=no
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11818 soname_spec='${libname}${release}${shared_ext}$major'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 hardcode_into_libs=yes
11821 ;;
11823 hpux9* | hpux10* | hpux11*)
11824 # Give a soname corresponding to the major version so that dld.sl refuses to
11825 # link against other versions.
11826 version_type=sunos
11827 need_lib_prefix=no
11828 need_version=no
11829 case $host_cpu in
11830 ia64*)
11831 shrext_cmds='.so'
11832 hardcode_into_libs=yes
11833 dynamic_linker="$host_os dld.so"
11834 shlibpath_var=LD_LIBRARY_PATH
11835 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11837 soname_spec='${libname}${release}${shared_ext}$major'
11838 if test "X$HPUX_IA64_MODE" = X32; then
11839 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11840 else
11841 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11842 fi
11843 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11844 ;;
11845 hppa*64*)
11846 shrext_cmds='.sl'
11847 hardcode_into_libs=yes
11848 dynamic_linker="$host_os dld.sl"
11849 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11850 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852 soname_spec='${libname}${release}${shared_ext}$major'
11853 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11854 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11855 ;;
11856 *)
11857 shrext_cmds='.sl'
11858 dynamic_linker="$host_os dld.sl"
11859 shlibpath_var=SHLIB_PATH
11860 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 ;;
11864 esac
11865 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11866 postinstall_cmds='chmod 555 $lib'
11867 ;;
11869 interix3*)
11870 version_type=linux
11871 need_lib_prefix=no
11872 need_version=no
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11876 shlibpath_var=LD_LIBRARY_PATH
11877 shlibpath_overrides_runpath=no
11878 hardcode_into_libs=yes
11879 ;;
11881 irix5* | irix6* | nonstopux*)
11882 case $host_os in
11883 nonstopux*) version_type=nonstopux ;;
11884 *)
11885 if test "$lt_cv_prog_gnu_ld" = yes; then
11886 version_type=linux
11887 else
11888 version_type=irix
11889 fi ;;
11890 esac
11891 need_lib_prefix=no
11892 need_version=no
11893 soname_spec='${libname}${release}${shared_ext}$major'
11894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11895 case $host_os in
11896 irix5* | nonstopux*)
11897 libsuff= shlibsuff=
11898 ;;
11899 *)
11900 case $LD in # libtool.m4 will add one of these switches to LD
11901 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11902 libsuff= shlibsuff= libmagic=32-bit;;
11903 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11904 libsuff=32 shlibsuff=N32 libmagic=N32;;
11905 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11906 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11907 *) libsuff= shlibsuff= libmagic=never-match;;
11908 esac
11909 ;;
11910 esac
11911 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11912 shlibpath_overrides_runpath=no
11913 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11914 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11915 hardcode_into_libs=yes
11916 ;;
11918 # No shared lib support for Linux oldld, aout, or coff.
11919 linux*oldld* | linux*aout* | linux*coff*)
11920 dynamic_linker=no
11921 ;;
11923 # This must be Linux ELF.
11924 linux*)
11925 version_type=linux
11926 need_lib_prefix=no
11927 need_version=no
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11929 soname_spec='${libname}${release}${shared_ext}$major'
11930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 shlibpath_overrides_runpath=no
11933 # This implies no fast_install, which is unacceptable.
11934 # Some rework will be needed to allow for fast_install
11935 # before this can be enabled.
11936 hardcode_into_libs=yes
11938 # Append ld.so.conf contents to the search path
11939 if test -f /etc/ld.so.conf; then
11940 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11941 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11942 fi
11944 # We used to test for /lib/ld.so.1 and disable shared libraries on
11945 # powerpc, because MkLinux only supported shared libraries with the
11946 # GNU dynamic linker. Since this was broken with cross compilers,
11947 # most powerpc-linux boxes support dynamic linking these days and
11948 # people can always --disable-shared, the test was removed, and we
11949 # assume the GNU/Linux dynamic linker is in use.
11950 dynamic_linker='GNU/Linux ld.so'
11951 ;;
11953 knetbsd*-gnu)
11954 version_type=linux
11955 need_lib_prefix=no
11956 need_version=no
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11958 soname_spec='${libname}${release}${shared_ext}$major'
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=no
11961 hardcode_into_libs=yes
11962 dynamic_linker='GNU ld.so'
11963 ;;
11965 netbsd*)
11966 version_type=sunos
11967 need_lib_prefix=no
11968 need_version=no
11969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11972 dynamic_linker='NetBSD (a.out) ld.so'
11973 else
11974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11975 soname_spec='${libname}${release}${shared_ext}$major'
11976 dynamic_linker='NetBSD ld.elf_so'
11977 fi
11978 shlibpath_var=LD_LIBRARY_PATH
11979 shlibpath_overrides_runpath=yes
11980 hardcode_into_libs=yes
11981 ;;
11983 newsos6)
11984 version_type=linux
11985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11986 shlibpath_var=LD_LIBRARY_PATH
11987 shlibpath_overrides_runpath=yes
11988 ;;
11990 nto-qnx*)
11991 version_type=linux
11992 need_lib_prefix=no
11993 need_version=no
11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11995 soname_spec='${libname}${release}${shared_ext}$major'
11996 shlibpath_var=LD_LIBRARY_PATH
11997 shlibpath_overrides_runpath=yes
11998 ;;
12000 openbsd*)
12001 version_type=sunos
12002 sys_lib_dlsearch_path_spec="/usr/lib"
12003 need_lib_prefix=no
12004 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12005 case $host_os in
12006 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12007 *) need_version=no ;;
12008 esac
12009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12011 shlibpath_var=LD_LIBRARY_PATH
12012 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12013 case $host_os in
12014 openbsd2.[89] | openbsd2.[89].*)
12015 shlibpath_overrides_runpath=no
12016 ;;
12017 *)
12018 shlibpath_overrides_runpath=yes
12019 ;;
12020 esac
12021 else
12022 shlibpath_overrides_runpath=yes
12023 fi
12024 ;;
12026 os2*)
12027 libname_spec='$name'
12028 shrext_cmds=".dll"
12029 need_lib_prefix=no
12030 library_names_spec='$libname${shared_ext} $libname.a'
12031 dynamic_linker='OS/2 ld.exe'
12032 shlibpath_var=LIBPATH
12033 ;;
12035 osf3* | osf4* | osf5*)
12036 version_type=osf
12037 need_lib_prefix=no
12038 need_version=no
12039 soname_spec='${libname}${release}${shared_ext}$major'
12040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12041 shlibpath_var=LD_LIBRARY_PATH
12042 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12043 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12044 ;;
12046 solaris*)
12047 version_type=linux
12048 need_lib_prefix=no
12049 need_version=no
12050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12051 soname_spec='${libname}${release}${shared_ext}$major'
12052 shlibpath_var=LD_LIBRARY_PATH
12053 shlibpath_overrides_runpath=yes
12054 hardcode_into_libs=yes
12055 # ldd complains unless libraries are executable
12056 postinstall_cmds='chmod +x $lib'
12057 ;;
12059 sunos4*)
12060 version_type=sunos
12061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12062 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=yes
12065 if test "$with_gnu_ld" = yes; then
12066 need_lib_prefix=no
12067 fi
12068 need_version=yes
12069 ;;
12071 sysv4 | sysv4.3*)
12072 version_type=linux
12073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12074 soname_spec='${libname}${release}${shared_ext}$major'
12075 shlibpath_var=LD_LIBRARY_PATH
12076 case $host_vendor in
12077 sni)
12078 shlibpath_overrides_runpath=no
12079 need_lib_prefix=no
12080 export_dynamic_flag_spec='${wl}-Blargedynsym'
12081 runpath_var=LD_RUN_PATH
12082 ;;
12083 siemens)
12084 need_lib_prefix=no
12085 ;;
12086 motorola)
12087 need_lib_prefix=no
12088 need_version=no
12089 shlibpath_overrides_runpath=no
12090 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12091 ;;
12092 esac
12093 ;;
12095 sysv4*MP*)
12096 if test -d /usr/nec ;then
12097 version_type=linux
12098 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12099 soname_spec='$libname${shared_ext}.$major'
12100 shlibpath_var=LD_LIBRARY_PATH
12101 fi
12102 ;;
12104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12105 version_type=freebsd-elf
12106 need_lib_prefix=no
12107 need_version=no
12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12109 soname_spec='${libname}${release}${shared_ext}$major'
12110 shlibpath_var=LD_LIBRARY_PATH
12111 hardcode_into_libs=yes
12112 if test "$with_gnu_ld" = yes; then
12113 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12114 shlibpath_overrides_runpath=no
12115 else
12116 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12117 shlibpath_overrides_runpath=yes
12118 case $host_os in
12119 sco3.2v5*)
12120 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12121 ;;
12122 esac
12123 fi
12124 sys_lib_dlsearch_path_spec='/usr/lib'
12125 ;;
12127 uts4*)
12128 version_type=linux
12129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130 soname_spec='${libname}${release}${shared_ext}$major'
12131 shlibpath_var=LD_LIBRARY_PATH
12132 ;;
12134 *)
12135 dynamic_linker=no
12136 ;;
12137 esac
12138 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12139 echo "${ECHO_T}$dynamic_linker" >&6
12140 test "$dynamic_linker" = no && can_build_shared=no
12142 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12143 if test "$GCC" = yes; then
12144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12145 fi
12147 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12148 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12149 hardcode_action_CXX=
12150 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12151 test -n "$runpath_var_CXX" || \
12152 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12154 # We can hardcode non-existant directories.
12155 if test "$hardcode_direct_CXX" != no &&
12156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12157 # have to relink, otherwise we might link with an installed library
12158 # when we should be linking with a yet-to-be-installed one
12159 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12160 test "$hardcode_minus_L_CXX" != no; then
12161 # Linking always hardcodes the temporary library directory.
12162 hardcode_action_CXX=relink
12163 else
12164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12165 hardcode_action_CXX=immediate
12166 fi
12167 else
12168 # We cannot hardcode anything, or else we can only hardcode existing
12169 # directories.
12170 hardcode_action_CXX=unsupported
12171 fi
12172 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12173 echo "${ECHO_T}$hardcode_action_CXX" >&6
12175 if test "$hardcode_action_CXX" = relink; then
12176 # Fast installation is not supported
12177 enable_fast_install=no
12178 elif test "$shlibpath_overrides_runpath" = yes ||
12179 test "$enable_shared" = no; then
12180 # Fast installation is not necessary
12181 enable_fast_install=needless
12182 fi
12185 # The else clause should only fire when bootstrapping the
12186 # libtool distribution, otherwise you forgot to ship ltmain.sh
12187 # with your package, and you will get complaints that there are
12188 # no rules to generate ltmain.sh.
12189 if test -f "$ltmain"; then
12190 # See if we are running on zsh, and set the options which allow our commands through
12191 # without removal of \ escapes.
12192 if test -n "${ZSH_VERSION+set}" ; then
12193 setopt NO_GLOB_SUBST
12194 fi
12195 # Now quote all the things that may contain metacharacters while being
12196 # careful not to overquote the AC_SUBSTed values. We take copies of the
12197 # variables and quote the copies for generation of the libtool script.
12198 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12199 SED SHELL STRIP \
12200 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12201 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12202 deplibs_check_method reload_flag reload_cmds need_locks \
12203 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12204 lt_cv_sys_global_symbol_to_c_name_address \
12205 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12206 old_postinstall_cmds old_postuninstall_cmds \
12207 compiler_CXX \
12208 CC_CXX \
12209 LD_CXX \
12210 lt_prog_compiler_wl_CXX \
12211 lt_prog_compiler_pic_CXX \
12212 lt_prog_compiler_static_CXX \
12213 lt_prog_compiler_no_builtin_flag_CXX \
12214 export_dynamic_flag_spec_CXX \
12215 thread_safe_flag_spec_CXX \
12216 whole_archive_flag_spec_CXX \
12217 enable_shared_with_static_runtimes_CXX \
12218 old_archive_cmds_CXX \
12219 old_archive_from_new_cmds_CXX \
12220 predep_objects_CXX \
12221 postdep_objects_CXX \
12222 predeps_CXX \
12223 postdeps_CXX \
12224 compiler_lib_search_path_CXX \
12225 archive_cmds_CXX \
12226 archive_expsym_cmds_CXX \
12227 postinstall_cmds_CXX \
12228 postuninstall_cmds_CXX \
12229 old_archive_from_expsyms_cmds_CXX \
12230 allow_undefined_flag_CXX \
12231 no_undefined_flag_CXX \
12232 export_symbols_cmds_CXX \
12233 hardcode_libdir_flag_spec_CXX \
12234 hardcode_libdir_flag_spec_ld_CXX \
12235 hardcode_libdir_separator_CXX \
12236 hardcode_automatic_CXX \
12237 module_cmds_CXX \
12238 module_expsym_cmds_CXX \
12239 lt_cv_prog_compiler_c_o_CXX \
12240 exclude_expsyms_CXX \
12241 include_expsyms_CXX; do
12243 case $var in
12244 old_archive_cmds_CXX | \
12245 old_archive_from_new_cmds_CXX | \
12246 archive_cmds_CXX | \
12247 archive_expsym_cmds_CXX | \
12248 module_cmds_CXX | \
12249 module_expsym_cmds_CXX | \
12250 old_archive_from_expsyms_cmds_CXX | \
12251 export_symbols_cmds_CXX | \
12252 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12253 postinstall_cmds | postuninstall_cmds | \
12254 old_postinstall_cmds | old_postuninstall_cmds | \
12255 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12256 # Double-quote double-evaled strings.
12257 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12258 ;;
12259 *)
12260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12261 ;;
12262 esac
12263 done
12265 case $lt_echo in
12266 *'\$0 --fallback-echo"')
12267 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12268 ;;
12269 esac
12271 cfgfile="$ofile"
12273 cat <<__EOF__ >> "$cfgfile"
12274 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12278 # Shell to use when invoking shell scripts.
12279 SHELL=$lt_SHELL
12281 # Whether or not to build shared libraries.
12282 build_libtool_libs=$enable_shared
12284 # Whether or not to build static libraries.
12285 build_old_libs=$enable_static
12287 # Whether or not to add -lc for building shared libraries.
12288 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12290 # Whether or not to disallow shared libs when runtime libs are static
12291 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12293 # Whether or not to optimize for fast installation.
12294 fast_install=$enable_fast_install
12296 # The host system.
12297 host_alias=$host_alias
12298 host=$host
12299 host_os=$host_os
12301 # The build system.
12302 build_alias=$build_alias
12303 build=$build
12304 build_os=$build_os
12306 # An echo program that does not interpret backslashes.
12307 echo=$lt_echo
12309 # The archiver.
12310 AR=$lt_AR
12311 AR_FLAGS=$lt_AR_FLAGS
12313 # A C compiler.
12314 LTCC=$lt_LTCC
12316 # LTCC compiler flags.
12317 LTCFLAGS=$lt_LTCFLAGS
12319 # A language-specific compiler.
12320 CC=$lt_compiler_CXX
12322 # Is the compiler the GNU C compiler?
12323 with_gcc=$GCC_CXX
12325 # An ERE matcher.
12326 EGREP=$lt_EGREP
12328 # The linker used to build libraries.
12329 LD=$lt_LD_CXX
12331 # Whether we need hard or soft links.
12332 LN_S=$lt_LN_S
12334 # A BSD-compatible nm program.
12335 NM=$lt_NM
12337 # A symbol stripping program
12338 STRIP=$lt_STRIP
12340 # Used to examine libraries when file_magic_cmd begins "file"
12341 MAGIC_CMD=$MAGIC_CMD
12343 # Used on cygwin: DLL creation program.
12344 DLLTOOL="$DLLTOOL"
12346 # Used on cygwin: object dumper.
12347 OBJDUMP="$OBJDUMP"
12349 # Used on cygwin: assembler.
12350 AS="$AS"
12352 # The name of the directory that contains temporary libtool files.
12353 objdir=$objdir
12355 # How to create reloadable object files.
12356 reload_flag=$lt_reload_flag
12357 reload_cmds=$lt_reload_cmds
12359 # How to pass a linker flag through the compiler.
12360 wl=$lt_lt_prog_compiler_wl_CXX
12362 # Object file suffix (normally "o").
12363 objext="$ac_objext"
12365 # Old archive suffix (normally "a").
12366 libext="$libext"
12368 # Shared library suffix (normally ".so").
12369 shrext_cmds='$shrext_cmds'
12371 # Executable file suffix (normally "").
12372 exeext="$exeext"
12374 # Additional compiler flags for building library objects.
12375 pic_flag=$lt_lt_prog_compiler_pic_CXX
12376 pic_mode=$pic_mode
12378 # What is the maximum length of a command?
12379 max_cmd_len=$lt_cv_sys_max_cmd_len
12381 # Does compiler simultaneously support -c and -o options?
12382 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12384 # Must we lock files when doing compilation?
12385 need_locks=$lt_need_locks
12387 # Do we need the lib prefix for modules?
12388 need_lib_prefix=$need_lib_prefix
12390 # Do we need a version for libraries?
12391 need_version=$need_version
12393 # Whether dlopen is supported.
12394 dlopen_support=$enable_dlopen
12396 # Whether dlopen of programs is supported.
12397 dlopen_self=$enable_dlopen_self
12399 # Whether dlopen of statically linked programs is supported.
12400 dlopen_self_static=$enable_dlopen_self_static
12402 # Compiler flag to prevent dynamic linking.
12403 link_static_flag=$lt_lt_prog_compiler_static_CXX
12405 # Compiler flag to turn off builtin functions.
12406 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12408 # Compiler flag to allow reflexive dlopens.
12409 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12411 # Compiler flag to generate shared objects directly from archives.
12412 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12414 # Compiler flag to generate thread-safe objects.
12415 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12417 # Library versioning type.
12418 version_type=$version_type
12420 # Format of library name prefix.
12421 libname_spec=$lt_libname_spec
12423 # List of archive names. First name is the real one, the rest are links.
12424 # The last name is the one that the linker finds with -lNAME.
12425 library_names_spec=$lt_library_names_spec
12427 # The coded name of the library, if different from the real name.
12428 soname_spec=$lt_soname_spec
12430 # Commands used to build and install an old-style archive.
12431 RANLIB=$lt_RANLIB
12432 old_archive_cmds=$lt_old_archive_cmds_CXX
12433 old_postinstall_cmds=$lt_old_postinstall_cmds
12434 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12436 # Create an old-style archive from a shared archive.
12437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12439 # Create a temporary old-style archive to link instead of a shared archive.
12440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12442 # Commands used to build and install a shared archive.
12443 archive_cmds=$lt_archive_cmds_CXX
12444 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12445 postinstall_cmds=$lt_postinstall_cmds
12446 postuninstall_cmds=$lt_postuninstall_cmds
12448 # Commands used to build a loadable module (assumed same as above if empty)
12449 module_cmds=$lt_module_cmds_CXX
12450 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12452 # Commands to strip libraries.
12453 old_striplib=$lt_old_striplib
12454 striplib=$lt_striplib
12456 # Dependencies to place before the objects being linked to create a
12457 # shared library.
12458 predep_objects=$lt_predep_objects_CXX
12460 # Dependencies to place after the objects being linked to create a
12461 # shared library.
12462 postdep_objects=$lt_postdep_objects_CXX
12464 # Dependencies to place before the objects being linked to create a
12465 # shared library.
12466 predeps=$lt_predeps_CXX
12468 # Dependencies to place after the objects being linked to create a
12469 # shared library.
12470 postdeps=$lt_postdeps_CXX
12472 # The library search path used internally by the compiler when linking
12473 # a shared library.
12474 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12476 # Method to check whether dependent libraries are shared objects.
12477 deplibs_check_method=$lt_deplibs_check_method
12479 # Command to use when deplibs_check_method == file_magic.
12480 file_magic_cmd=$lt_file_magic_cmd
12482 # Flag that allows shared libraries with undefined symbols to be built.
12483 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12485 # Flag that forces no undefined symbols.
12486 no_undefined_flag=$lt_no_undefined_flag_CXX
12488 # Commands used to finish a libtool library installation in a directory.
12489 finish_cmds=$lt_finish_cmds
12491 # Same as above, but a single script fragment to be evaled but not shown.
12492 finish_eval=$lt_finish_eval
12494 # Take the output of nm and produce a listing of raw symbols and C names.
12495 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12497 # Transform the output of nm in a proper C declaration
12498 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12500 # Transform the output of nm in a C name address pair
12501 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12503 # This is the shared library runtime path variable.
12504 runpath_var=$runpath_var
12506 # This is the shared library path variable.
12507 shlibpath_var=$shlibpath_var
12509 # Is shlibpath searched before the hard-coded library search path?
12510 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12512 # How to hardcode a shared library path into an executable.
12513 hardcode_action=$hardcode_action_CXX
12515 # Whether we should hardcode library paths into libraries.
12516 hardcode_into_libs=$hardcode_into_libs
12518 # Flag to hardcode \$libdir into a binary during linking.
12519 # This must work even if \$libdir does not exist.
12520 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12522 # If ld is used when linking, flag to hardcode \$libdir into
12523 # a binary during linking. This must work even if \$libdir does
12524 # not exist.
12525 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12527 # Whether we need a single -rpath flag with a separated argument.
12528 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12530 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12531 # resulting binary.
12532 hardcode_direct=$hardcode_direct_CXX
12534 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12535 # resulting binary.
12536 hardcode_minus_L=$hardcode_minus_L_CXX
12538 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12539 # the resulting binary.
12540 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12542 # Set to yes if building a shared library automatically hardcodes DIR into the library
12543 # and all subsequent libraries and executables linked against it.
12544 hardcode_automatic=$hardcode_automatic_CXX
12546 # Variables whose values should be saved in libtool wrapper scripts and
12547 # restored at relink time.
12548 variables_saved_for_relink="$variables_saved_for_relink"
12550 # Whether libtool must link a program against all its dependency libraries.
12551 link_all_deplibs=$link_all_deplibs_CXX
12553 # Compile-time system search path for libraries
12554 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12556 # Run-time system search path for libraries
12557 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12559 # Fix the shell variable \$srcfile for the compiler.
12560 fix_srcfile_path="$fix_srcfile_path_CXX"
12562 # Set to yes if exported symbols are required.
12563 always_export_symbols=$always_export_symbols_CXX
12565 # The commands to list exported symbols.
12566 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12568 # The commands to extract the exported symbol list from a shared archive.
12569 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12571 # Symbols that should not be listed in the preloaded symbols.
12572 exclude_expsyms=$lt_exclude_expsyms_CXX
12574 # Symbols that must always be exported.
12575 include_expsyms=$lt_include_expsyms_CXX
12577 # ### END LIBTOOL TAG CONFIG: $tagname
12579 __EOF__
12582 else
12583 # If there is no Makefile yet, we rely on a make rule to execute
12584 # `config.status --recheck' to rerun these tests and create the
12585 # libtool script then.
12586 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12587 if test -f "$ltmain_in"; then
12588 test -f Makefile && make "$ltmain"
12589 fi
12590 fi
12593 ac_ext=c
12594 ac_cpp='$CPP $CPPFLAGS'
12595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12599 CC=$lt_save_CC
12600 LDCXX=$LD
12601 LD=$lt_save_LD
12602 GCC=$lt_save_GCC
12603 with_gnu_ldcxx=$with_gnu_ld
12604 with_gnu_ld=$lt_save_with_gnu_ld
12605 lt_cv_path_LDCXX=$lt_cv_path_LD
12606 lt_cv_path_LD=$lt_save_path_LD
12607 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12608 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12610 else
12611 tagname=""
12612 fi
12613 ;;
12615 F77)
12616 if test -n "$F77" && test "X$F77" != "Xno"; then
12617 :
12618 else
12619 tagname=""
12620 fi
12621 ;;
12623 GCJ)
12624 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12628 # Source file extension for Java test sources.
12629 ac_ext=java
12631 # Object file extension for compiled Java test sources.
12632 objext=o
12633 objext_GCJ=$objext
12635 # Code to be used in simple compile tests
12636 lt_simple_compile_test_code="class foo {}\n"
12638 # Code to be used in simple link tests
12639 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
12641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12643 # If no C compiler was specified, use CC.
12644 LTCC=${LTCC-"$CC"}
12646 # If no C compiler flags were specified, use CFLAGS.
12647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12649 # Allow CC to be a program name with arguments.
12650 compiler=$CC
12653 # save warnings/boilerplate of simple test code
12654 ac_outfile=conftest.$ac_objext
12655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12657 _lt_compiler_boilerplate=`cat conftest.err`
12658 $rm conftest*
12660 ac_outfile=conftest.$ac_objext
12661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12663 _lt_linker_boilerplate=`cat conftest.err`
12664 $rm conftest*
12667 # Allow CC to be a program name with arguments.
12668 lt_save_CC="$CC"
12669 CC=${GCJ-"gcj"}
12670 compiler=$CC
12671 compiler_GCJ=$CC
12672 for cc_temp in $compiler""; do
12673 case $cc_temp in
12674 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12675 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12676 \-*) ;;
12677 *) break;;
12678 esac
12679 done
12680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12683 # GCJ did not exist at the time GCC didn't implicitly link libc in.
12684 archive_cmds_need_lc_GCJ=no
12686 old_archive_cmds_GCJ=$old_archive_cmds
12689 lt_prog_compiler_no_builtin_flag_GCJ=
12691 if test "$GCC" = yes; then
12692 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
12695 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12696 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12697 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12698 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 else
12700 lt_cv_prog_compiler_rtti_exceptions=no
12701 ac_outfile=conftest.$ac_objext
12702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12703 lt_compiler_flag="-fno-rtti -fno-exceptions"
12704 # Insert the option either (1) after the last *FLAGS variable, or
12705 # (2) before a word containing "conftest.", or (3) at the end.
12706 # Note that $ac_compile itself does not contain backslashes and begins
12707 # with a dollar sign (not a hyphen), so the echo should work correctly.
12708 # The option is referenced via a variable to avoid confusing sed.
12709 lt_compile=`echo "$ac_compile" | $SED \
12710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12712 -e 's:$: $lt_compiler_flag:'`
12713 (eval echo "\"\$as_me:12713: $lt_compile\"" >&5)
12714 (eval "$lt_compile" 2>conftest.err)
12715 ac_status=$?
12716 cat conftest.err >&5
12717 echo "$as_me:12717: \$? = $ac_status" >&5
12718 if (exit $ac_status) && test -s "$ac_outfile"; then
12719 # The compiler can only warn and ignore the option if not recognized
12720 # So say no if there are warnings other than the usual output.
12721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12724 lt_cv_prog_compiler_rtti_exceptions=yes
12725 fi
12726 fi
12727 $rm conftest*
12729 fi
12730 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12731 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12733 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12734 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12735 else
12736 :
12737 fi
12739 fi
12741 lt_prog_compiler_wl_GCJ=
12742 lt_prog_compiler_pic_GCJ=
12743 lt_prog_compiler_static_GCJ=
12745 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12746 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12748 if test "$GCC" = yes; then
12749 lt_prog_compiler_wl_GCJ='-Wl,'
12750 lt_prog_compiler_static_GCJ='-static'
12752 case $host_os in
12753 aix*)
12754 # All AIX code is PIC.
12755 if test "$host_cpu" = ia64; then
12756 # AIX 5 now supports IA64 processor
12757 lt_prog_compiler_static_GCJ='-Bstatic'
12758 fi
12759 ;;
12761 amigaos*)
12762 # FIXME: we need at least 68020 code to build shared libraries, but
12763 # adding the `-m68020' flag to GCC prevents building anything better,
12764 # like `-m68040'.
12765 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
12766 ;;
12768 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12769 # PIC is the default for these OSes.
12770 ;;
12772 mingw* | pw32* | os2*)
12773 # This hack is so that the source file can tell whether it is being
12774 # built for inclusion in a dll (and should export symbols for example).
12775 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12776 ;;
12778 darwin* | rhapsody*)
12779 # PIC is the default on this platform
12780 # Common symbols not allowed in MH_DYLIB files
12781 lt_prog_compiler_pic_GCJ='-fno-common'
12782 ;;
12784 interix3*)
12785 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12786 # Instead, we relocate shared libraries at runtime.
12787 ;;
12789 msdosdjgpp*)
12790 # Just because we use GCC doesn't mean we suddenly get shared libraries
12791 # on systems that don't support them.
12792 lt_prog_compiler_can_build_shared_GCJ=no
12793 enable_shared=no
12794 ;;
12796 sysv4*MP*)
12797 if test -d /usr/nec; then
12798 lt_prog_compiler_pic_GCJ=-Kconform_pic
12799 fi
12800 ;;
12802 hpux*)
12803 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12804 # not for PA HP-UX.
12805 case $host_cpu in
12806 hppa*64*|ia64*)
12807 # +Z the default
12808 ;;
12809 *)
12810 lt_prog_compiler_pic_GCJ='-fPIC'
12811 ;;
12812 esac
12813 ;;
12815 *)
12816 lt_prog_compiler_pic_GCJ='-fPIC'
12817 ;;
12818 esac
12819 else
12820 # PORTME Check for flag to pass linker flags through the system compiler.
12821 case $host_os in
12822 aix*)
12823 lt_prog_compiler_wl_GCJ='-Wl,'
12824 if test "$host_cpu" = ia64; then
12825 # AIX 5 now supports IA64 processor
12826 lt_prog_compiler_static_GCJ='-Bstatic'
12827 else
12828 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
12829 fi
12830 ;;
12831 darwin*)
12832 # PIC is the default on this platform
12833 # Common symbols not allowed in MH_DYLIB files
12834 case $cc_basename in
12835 xlc*)
12836 lt_prog_compiler_pic_GCJ='-qnocommon'
12837 lt_prog_compiler_wl_GCJ='-Wl,'
12838 ;;
12839 esac
12840 ;;
12842 mingw* | pw32* | os2*)
12843 # This hack is so that the source file can tell whether it is being
12844 # built for inclusion in a dll (and should export symbols for example).
12845 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12846 ;;
12848 hpux9* | hpux10* | hpux11*)
12849 lt_prog_compiler_wl_GCJ='-Wl,'
12850 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12851 # not for PA HP-UX.
12852 case $host_cpu in
12853 hppa*64*|ia64*)
12854 # +Z the default
12855 ;;
12856 *)
12857 lt_prog_compiler_pic_GCJ='+Z'
12858 ;;
12859 esac
12860 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12861 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
12862 ;;
12864 irix5* | irix6* | nonstopux*)
12865 lt_prog_compiler_wl_GCJ='-Wl,'
12866 # PIC (with -KPIC) is the default.
12867 lt_prog_compiler_static_GCJ='-non_shared'
12868 ;;
12870 newsos6)
12871 lt_prog_compiler_pic_GCJ='-KPIC'
12872 lt_prog_compiler_static_GCJ='-Bstatic'
12873 ;;
12875 linux*)
12876 case $cc_basename in
12877 icc* | ecc*)
12878 lt_prog_compiler_wl_GCJ='-Wl,'
12879 lt_prog_compiler_pic_GCJ='-KPIC'
12880 lt_prog_compiler_static_GCJ='-static'
12881 ;;
12882 pgcc* | pgf77* | pgf90* | pgf95*)
12883 # Portland Group compilers (*not* the Pentium gcc compiler,
12884 # which looks to be a dead project)
12885 lt_prog_compiler_wl_GCJ='-Wl,'
12886 lt_prog_compiler_pic_GCJ='-fpic'
12887 lt_prog_compiler_static_GCJ='-Bstatic'
12888 ;;
12889 ccc*)
12890 lt_prog_compiler_wl_GCJ='-Wl,'
12891 # All Alpha code is PIC.
12892 lt_prog_compiler_static_GCJ='-non_shared'
12893 ;;
12894 esac
12895 ;;
12897 osf3* | osf4* | osf5*)
12898 lt_prog_compiler_wl_GCJ='-Wl,'
12899 # All OSF/1 code is PIC.
12900 lt_prog_compiler_static_GCJ='-non_shared'
12901 ;;
12903 solaris*)
12904 lt_prog_compiler_pic_GCJ='-KPIC'
12905 lt_prog_compiler_static_GCJ='-Bstatic'
12906 case $cc_basename in
12907 f77* | f90* | f95*)
12908 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
12909 *)
12910 lt_prog_compiler_wl_GCJ='-Wl,';;
12911 esac
12912 ;;
12914 sunos4*)
12915 lt_prog_compiler_wl_GCJ='-Qoption ld '
12916 lt_prog_compiler_pic_GCJ='-PIC'
12917 lt_prog_compiler_static_GCJ='-Bstatic'
12918 ;;
12920 sysv4 | sysv4.2uw2* | sysv4.3*)
12921 lt_prog_compiler_wl_GCJ='-Wl,'
12922 lt_prog_compiler_pic_GCJ='-KPIC'
12923 lt_prog_compiler_static_GCJ='-Bstatic'
12924 ;;
12926 sysv4*MP*)
12927 if test -d /usr/nec ;then
12928 lt_prog_compiler_pic_GCJ='-Kconform_pic'
12929 lt_prog_compiler_static_GCJ='-Bstatic'
12930 fi
12931 ;;
12933 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12934 lt_prog_compiler_wl_GCJ='-Wl,'
12935 lt_prog_compiler_pic_GCJ='-KPIC'
12936 lt_prog_compiler_static_GCJ='-Bstatic'
12937 ;;
12939 unicos*)
12940 lt_prog_compiler_wl_GCJ='-Wl,'
12941 lt_prog_compiler_can_build_shared_GCJ=no
12942 ;;
12944 uts4*)
12945 lt_prog_compiler_pic_GCJ='-pic'
12946 lt_prog_compiler_static_GCJ='-Bstatic'
12947 ;;
12949 *)
12950 lt_prog_compiler_can_build_shared_GCJ=no
12951 ;;
12952 esac
12953 fi
12955 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
12956 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
12958 #
12959 # Check to make sure the PIC flag actually works.
12960 #
12961 if test -n "$lt_prog_compiler_pic_GCJ"; then
12963 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12964 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
12965 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12967 else
12968 lt_prog_compiler_pic_works_GCJ=no
12969 ac_outfile=conftest.$ac_objext
12970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12971 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
12972 # Insert the option either (1) after the last *FLAGS variable, or
12973 # (2) before a word containing "conftest.", or (3) at the end.
12974 # Note that $ac_compile itself does not contain backslashes and begins
12975 # with a dollar sign (not a hyphen), so the echo should work correctly.
12976 # The option is referenced via a variable to avoid confusing sed.
12977 lt_compile=`echo "$ac_compile" | $SED \
12978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12980 -e 's:$: $lt_compiler_flag:'`
12981 (eval echo "\"\$as_me:12981: $lt_compile\"" >&5)
12982 (eval "$lt_compile" 2>conftest.err)
12983 ac_status=$?
12984 cat conftest.err >&5
12985 echo "$as_me:12985: \$? = $ac_status" >&5
12986 if (exit $ac_status) && test -s "$ac_outfile"; then
12987 # The compiler can only warn and ignore the option if not recognized
12988 # So say no if there are warnings other than the usual output.
12989 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12992 lt_prog_compiler_pic_works_GCJ=yes
12993 fi
12994 fi
12995 $rm conftest*
12997 fi
12998 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
12999 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
13001 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
13002 case $lt_prog_compiler_pic_GCJ in
13003 "" | " "*) ;;
13004 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
13005 esac
13006 else
13007 lt_prog_compiler_pic_GCJ=
13008 lt_prog_compiler_can_build_shared_GCJ=no
13009 fi
13011 fi
13012 case $host_os in
13013 # For platforms which do not support PIC, -DPIC is meaningless:
13014 *djgpp*)
13015 lt_prog_compiler_pic_GCJ=
13016 ;;
13017 *)
13018 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
13019 ;;
13020 esac
13022 #
13023 # Check to make sure the static flag actually works.
13024 #
13025 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
13026 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13027 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13028 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 else
13031 lt_prog_compiler_static_works_GCJ=no
13032 save_LDFLAGS="$LDFLAGS"
13033 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13034 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13035 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13036 # The linker can only warn and ignore the option if not recognized
13037 # So say no if there are warnings
13038 if test -s conftest.err; then
13039 # Append any errors to the config.log.
13040 cat conftest.err 1>&5
13041 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13042 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13043 if diff conftest.exp conftest.er2 >/dev/null; then
13044 lt_prog_compiler_static_works_GCJ=yes
13045 fi
13046 else
13047 lt_prog_compiler_static_works_GCJ=yes
13048 fi
13049 fi
13050 $rm conftest*
13051 LDFLAGS="$save_LDFLAGS"
13053 fi
13054 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
13055 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
13057 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
13058 :
13059 else
13060 lt_prog_compiler_static_GCJ=
13061 fi
13064 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13065 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13066 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069 lt_cv_prog_compiler_c_o_GCJ=no
13070 $rm -r conftest 2>/dev/null
13071 mkdir conftest
13072 cd conftest
13073 mkdir out
13074 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13076 lt_compiler_flag="-o out/conftest2.$ac_objext"
13077 # Insert the option either (1) after the last *FLAGS variable, or
13078 # (2) before a word containing "conftest.", or (3) at the end.
13079 # Note that $ac_compile itself does not contain backslashes and begins
13080 # with a dollar sign (not a hyphen), so the echo should work correctly.
13081 lt_compile=`echo "$ac_compile" | $SED \
13082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13084 -e 's:$: $lt_compiler_flag:'`
13085 (eval echo "\"\$as_me:13085: $lt_compile\"" >&5)
13086 (eval "$lt_compile" 2>out/conftest.err)
13087 ac_status=$?
13088 cat out/conftest.err >&5
13089 echo "$as_me:13089: \$? = $ac_status" >&5
13090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13091 then
13092 # The compiler can only warn and ignore the option if not recognized
13093 # So say no if there are warnings
13094 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13097 lt_cv_prog_compiler_c_o_GCJ=yes
13098 fi
13099 fi
13100 chmod u+w . 2>&5
13101 $rm conftest*
13102 # SGI C++ compiler will create directory out/ii_files/ for
13103 # template instantiation
13104 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13105 $rm out/* && rmdir out
13106 cd ..
13107 rmdir conftest
13108 $rm conftest*
13110 fi
13111 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13112 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
13115 hard_links="nottested"
13116 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
13117 # do not overwrite the value of need_locks provided by the user
13118 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13119 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13120 hard_links=yes
13121 $rm conftest*
13122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13123 touch conftest.a
13124 ln conftest.a conftest.b 2>&5 || hard_links=no
13125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13126 echo "$as_me:$LINENO: result: $hard_links" >&5
13127 echo "${ECHO_T}$hard_links" >&6
13128 if test "$hard_links" = no; then
13129 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13130 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13131 need_locks=warn
13132 fi
13133 else
13134 need_locks=no
13135 fi
13137 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13138 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13140 runpath_var=
13141 allow_undefined_flag_GCJ=
13142 enable_shared_with_static_runtimes_GCJ=no
13143 archive_cmds_GCJ=
13144 archive_expsym_cmds_GCJ=
13145 old_archive_From_new_cmds_GCJ=
13146 old_archive_from_expsyms_cmds_GCJ=
13147 export_dynamic_flag_spec_GCJ=
13148 whole_archive_flag_spec_GCJ=
13149 thread_safe_flag_spec_GCJ=
13150 hardcode_libdir_flag_spec_GCJ=
13151 hardcode_libdir_flag_spec_ld_GCJ=
13152 hardcode_libdir_separator_GCJ=
13153 hardcode_direct_GCJ=no
13154 hardcode_minus_L_GCJ=no
13155 hardcode_shlibpath_var_GCJ=unsupported
13156 link_all_deplibs_GCJ=unknown
13157 hardcode_automatic_GCJ=no
13158 module_cmds_GCJ=
13159 module_expsym_cmds_GCJ=
13160 always_export_symbols_GCJ=no
13161 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13162 # include_expsyms should be a list of space-separated symbols to be *always*
13163 # included in the symbol list
13164 include_expsyms_GCJ=
13165 # exclude_expsyms can be an extended regexp of symbols to exclude
13166 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13167 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13168 # as well as any symbol that contains `d'.
13169 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
13170 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13171 # platforms (ab)use it in PIC code, but their linkers get confused if
13172 # the symbol is explicitly referenced. Since portable code cannot
13173 # rely on this symbol name, it's probably fine to never include it in
13174 # preloaded symbol tables.
13175 extract_expsyms_cmds=
13176 # Just being paranoid about ensuring that cc_basename is set.
13177 for cc_temp in $compiler""; do
13178 case $cc_temp in
13179 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13180 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13181 \-*) ;;
13182 *) break;;
13183 esac
13184 done
13185 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13187 case $host_os in
13188 cygwin* | mingw* | pw32*)
13189 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13190 # When not using gcc, we currently assume that we are using
13191 # Microsoft Visual C++.
13192 if test "$GCC" != yes; then
13193 with_gnu_ld=no
13194 fi
13195 ;;
13196 interix*)
13197 # we just hope/assume this is gcc and not c89 (= MSVC++)
13198 with_gnu_ld=yes
13199 ;;
13200 openbsd*)
13201 with_gnu_ld=no
13202 ;;
13203 esac
13205 ld_shlibs_GCJ=yes
13206 if test "$with_gnu_ld" = yes; then
13207 # If archive_cmds runs LD, not CC, wlarc should be empty
13208 wlarc='${wl}'
13210 # Set some defaults for GNU ld with shared library support. These
13211 # are reset later if shared libraries are not supported. Putting them
13212 # here allows them to be overridden if necessary.
13213 runpath_var=LD_RUN_PATH
13214 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
13215 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
13216 # ancient GNU ld didn't support --whole-archive et. al.
13217 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13218 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13219 else
13220 whole_archive_flag_spec_GCJ=
13221 fi
13222 supports_anon_versioning=no
13223 case `$LD -v 2>/dev/null` in
13224 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13225 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13226 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13227 *\ 2.11.*) ;; # other 2.11 versions
13228 *) supports_anon_versioning=yes ;;
13229 esac
13231 # See if GNU ld supports shared libraries.
13232 case $host_os in
13233 aix3* | aix4* | aix5*)
13234 # On AIX/PPC, the GNU linker is very broken
13235 if test "$host_cpu" != ia64; then
13236 ld_shlibs_GCJ=no
13237 cat <<EOF 1>&2
13239 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13240 *** to be unable to reliably create shared libraries on AIX.
13241 *** Therefore, libtool is disabling shared libraries support. If you
13242 *** really care for shared libraries, you may want to modify your PATH
13243 *** so that a non-GNU linker is found, and then restart.
13245 EOF
13246 fi
13247 ;;
13249 amigaos*)
13250 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)'
13251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13252 hardcode_minus_L_GCJ=yes
13254 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13255 # that the semantics of dynamic libraries on AmigaOS, at least up
13256 # to version 4, is to share data among multiple programs linked
13257 # with the same dynamic library. Since this doesn't match the
13258 # behavior of shared libraries on other platforms, we can't use
13259 # them.
13260 ld_shlibs_GCJ=no
13261 ;;
13263 beos*)
13264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13265 allow_undefined_flag_GCJ=unsupported
13266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13267 # support --undefined. This deserves some investigation. FIXME
13268 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13269 else
13270 ld_shlibs_GCJ=no
13271 fi
13272 ;;
13274 cygwin* | mingw* | pw32*)
13275 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
13276 # as there is no search path for DLLs.
13277 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13278 allow_undefined_flag_GCJ=unsupported
13279 always_export_symbols_GCJ=no
13280 enable_shared_with_static_runtimes_GCJ=yes
13281 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13283 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13284 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13285 # If the export-symbols file already is a .def file (1st line
13286 # is EXPORTS), use it as is; otherwise, prepend...
13287 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13288 cp $export_symbols $output_objdir/$soname.def;
13289 else
13290 echo EXPORTS > $output_objdir/$soname.def;
13291 cat $export_symbols >> $output_objdir/$soname.def;
13292 fi~
13293 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13294 else
13295 ld_shlibs_GCJ=no
13296 fi
13297 ;;
13299 interix3*)
13300 hardcode_direct_GCJ=no
13301 hardcode_shlibpath_var_GCJ=no
13302 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13303 export_dynamic_flag_spec_GCJ='${wl}-E'
13304 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13305 # Instead, shared libraries are loaded at an image base (0x10000000 by
13306 # default) and relocated if they conflict, which is a slow very memory
13307 # consuming and fragmenting process. To avoid this, we pick a random,
13308 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13309 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13310 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'
13311 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'
13312 ;;
13314 linux*)
13315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13316 tmp_addflag=
13317 case $cc_basename,$host_cpu in
13318 pgcc*) # Portland Group C compiler
13319 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'
13320 tmp_addflag=' $pic_flag'
13321 ;;
13322 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13323 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'
13324 tmp_addflag=' $pic_flag -Mnomain' ;;
13325 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13326 tmp_addflag=' -i_dynamic' ;;
13327 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13328 tmp_addflag=' -i_dynamic -nofor_main' ;;
13329 ifc* | ifort*) # Intel Fortran compiler
13330 tmp_addflag=' -nofor_main' ;;
13331 esac
13332 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 if test $supports_anon_versioning = yes; then
13335 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
13336 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13337 $echo "local: *; };" >> $output_objdir/$libname.ver~
13338 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13339 fi
13340 else
13341 ld_shlibs_GCJ=no
13342 fi
13343 ;;
13345 netbsd*)
13346 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13347 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13348 wlarc=
13349 else
13350 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13351 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13352 fi
13353 ;;
13355 solaris*)
13356 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13357 ld_shlibs_GCJ=no
13358 cat <<EOF 1>&2
13360 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13361 *** create shared libraries on Solaris systems. Therefore, libtool
13362 *** is disabling shared libraries support. We urge you to upgrade GNU
13363 *** binutils to release 2.9.1 or newer. Another option is to modify
13364 *** your PATH or compiler configuration so that the native linker is
13365 *** used, and then restart.
13367 EOF
13368 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13369 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13371 else
13372 ld_shlibs_GCJ=no
13373 fi
13374 ;;
13376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13377 case `$LD -v 2>&1` in
13378 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13379 ld_shlibs_GCJ=no
13380 cat <<_LT_EOF 1>&2
13382 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13383 *** reliably create shared libraries on SCO systems. Therefore, libtool
13384 *** is disabling shared libraries support. We urge you to upgrade GNU
13385 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13386 *** your PATH or compiler configuration so that the native linker is
13387 *** used, and then restart.
13389 _LT_EOF
13390 ;;
13391 *)
13392 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13393 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13394 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13395 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13396 else
13397 ld_shlibs_GCJ=no
13398 fi
13399 ;;
13400 esac
13401 ;;
13403 sunos4*)
13404 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13405 wlarc=
13406 hardcode_direct_GCJ=yes
13407 hardcode_shlibpath_var_GCJ=no
13408 ;;
13410 *)
13411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13412 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13413 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13414 else
13415 ld_shlibs_GCJ=no
13416 fi
13417 ;;
13418 esac
13420 if test "$ld_shlibs_GCJ" = no; then
13421 runpath_var=
13422 hardcode_libdir_flag_spec_GCJ=
13423 export_dynamic_flag_spec_GCJ=
13424 whole_archive_flag_spec_GCJ=
13425 fi
13426 else
13427 # PORTME fill in a description of your system's linker (not GNU ld)
13428 case $host_os in
13429 aix3*)
13430 allow_undefined_flag_GCJ=unsupported
13431 always_export_symbols_GCJ=yes
13432 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'
13433 # Note: this linker hardcodes the directories in LIBPATH if there
13434 # are no directories specified by -L.
13435 hardcode_minus_L_GCJ=yes
13436 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13437 # Neither direct hardcoding nor static linking is supported with a
13438 # broken collect2.
13439 hardcode_direct_GCJ=unsupported
13440 fi
13441 ;;
13443 aix4* | aix5*)
13444 if test "$host_cpu" = ia64; then
13445 # On IA64, the linker does run time linking by default, so we don't
13446 # have to do anything special.
13447 aix_use_runtimelinking=no
13448 exp_sym_flag='-Bexport'
13449 no_entry_flag=""
13450 else
13451 # If we're using GNU nm, then we don't want the "-C" option.
13452 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13453 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13454 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'
13455 else
13456 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'
13457 fi
13458 aix_use_runtimelinking=no
13460 # Test if we are trying to use run time linking or normal
13461 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13462 # need to do runtime linking.
13463 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13464 for ld_flag in $LDFLAGS; do
13465 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13466 aix_use_runtimelinking=yes
13467 break
13468 fi
13469 done
13470 ;;
13471 esac
13473 exp_sym_flag='-bexport'
13474 no_entry_flag='-bnoentry'
13475 fi
13477 # When large executables or shared objects are built, AIX ld can
13478 # have problems creating the table of contents. If linking a library
13479 # or program results in "error TOC overflow" add -mminimal-toc to
13480 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13481 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13483 archive_cmds_GCJ=''
13484 hardcode_direct_GCJ=yes
13485 hardcode_libdir_separator_GCJ=':'
13486 link_all_deplibs_GCJ=yes
13488 if test "$GCC" = yes; then
13489 case $host_os in aix4.[012]|aix4.[012].*)
13490 # We only want to do this on AIX 4.2 and lower, the check
13491 # below for broken collect2 doesn't work under 4.3+
13492 collect2name=`${CC} -print-prog-name=collect2`
13493 if test -f "$collect2name" && \
13494 strings "$collect2name" | grep resolve_lib_name >/dev/null
13495 then
13496 # We have reworked collect2
13497 hardcode_direct_GCJ=yes
13498 else
13499 # We have old collect2
13500 hardcode_direct_GCJ=unsupported
13501 # It fails to find uninstalled libraries when the uninstalled
13502 # path is not listed in the libpath. Setting hardcode_minus_L
13503 # to unsupported forces relinking
13504 hardcode_minus_L_GCJ=yes
13505 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13506 hardcode_libdir_separator_GCJ=
13507 fi
13508 ;;
13509 esac
13510 shared_flag='-shared'
13511 if test "$aix_use_runtimelinking" = yes; then
13512 shared_flag="$shared_flag "'${wl}-G'
13513 fi
13514 else
13515 # not using gcc
13516 if test "$host_cpu" = ia64; then
13517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13518 # chokes on -Wl,-G. The following line is correct:
13519 shared_flag='-G'
13520 else
13521 if test "$aix_use_runtimelinking" = yes; then
13522 shared_flag='${wl}-G'
13523 else
13524 shared_flag='${wl}-bM:SRE'
13525 fi
13526 fi
13527 fi
13529 # It seems that -bexpall does not export symbols beginning with
13530 # underscore (_), so it is better to generate a list of symbols to export.
13531 always_export_symbols_GCJ=yes
13532 if test "$aix_use_runtimelinking" = yes; then
13533 # Warning - without using the other runtime loading flags (-brtl),
13534 # -berok will link without error, but may produce a broken library.
13535 allow_undefined_flag_GCJ='-berok'
13536 # Determine the default libpath from the value encoded in an empty executable.
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h. */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h. */
13544 int
13545 main ()
13546 {
13548 ;
13549 return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13554 (eval $ac_link) 2>conftest.er1
13555 ac_status=$?
13556 grep -v '^ *+' conftest.er1 >conftest.err
13557 rm -f conftest.er1
13558 cat conftest.err >&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } &&
13561 { ac_try='test -z "$ac_c_werror_flag"
13562 || test ! -s conftest.err'
13563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }; } &&
13568 { ac_try='test -s conftest$ac_exeext'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13571 ac_status=$?
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13575 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13576 }'`
13577 # Check for a 64-bit object if we didn't find anything.
13578 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; }
13579 }'`; fi
13580 else
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13584 fi
13585 rm -f conftest.err conftest.$ac_objext \
13586 conftest$ac_exeext conftest.$ac_ext
13587 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13589 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13590 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"
13591 else
13592 if test "$host_cpu" = ia64; then
13593 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
13594 allow_undefined_flag_GCJ="-z nodefs"
13595 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"
13596 else
13597 # Determine the default libpath from the value encoded in an empty executable.
13598 cat >conftest.$ac_ext <<_ACEOF
13599 /* confdefs.h. */
13600 _ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13605 int
13606 main ()
13607 {
13609 ;
13610 return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13615 (eval $ac_link) 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } &&
13622 { ac_try='test -z "$ac_c_werror_flag"
13623 || test ! -s conftest.err'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13637 }'`
13638 # Check for a 64-bit object if we didn't find anything.
13639 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; }
13640 }'`; fi
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13645 fi
13646 rm -f conftest.err conftest.$ac_objext \
13647 conftest$ac_exeext conftest.$ac_ext
13648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13650 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13651 # Warning - without using the other run time loading flags,
13652 # -berok will link without error, but may produce a broken library.
13653 no_undefined_flag_GCJ=' ${wl}-bernotok'
13654 allow_undefined_flag_GCJ=' ${wl}-berok'
13655 # Exported symbols can be pulled into shared objects from archives
13656 whole_archive_flag_spec_GCJ='$convenience'
13657 archive_cmds_need_lc_GCJ=yes
13658 # This is similar to how AIX traditionally builds its shared libraries.
13659 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'
13660 fi
13661 fi
13662 ;;
13664 amigaos*)
13665 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)'
13666 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13667 hardcode_minus_L_GCJ=yes
13668 # see comment about different semantics on the GNU ld section
13669 ld_shlibs_GCJ=no
13670 ;;
13672 bsdi[45]*)
13673 export_dynamic_flag_spec_GCJ=-rdynamic
13674 ;;
13676 cygwin* | mingw* | pw32*)
13677 # When not using gcc, we currently assume that we are using
13678 # Microsoft Visual C++.
13679 # hardcode_libdir_flag_spec is actually meaningless, as there is
13680 # no search path for DLLs.
13681 hardcode_libdir_flag_spec_GCJ=' '
13682 allow_undefined_flag_GCJ=unsupported
13683 # Tell ltmain to make .lib files, not .a files.
13684 libext=lib
13685 # Tell ltmain to make .dll files, not .so files.
13686 shrext_cmds=".dll"
13687 # FIXME: Setting linknames here is a bad hack.
13688 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13689 # The linker will automatically build a .lib file if we build a DLL.
13690 old_archive_From_new_cmds_GCJ='true'
13691 # FIXME: Should let the user specify the lib program.
13692 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
13693 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
13694 enable_shared_with_static_runtimes_GCJ=yes
13695 ;;
13697 darwin* | rhapsody*)
13698 case $host_os in
13699 rhapsody* | darwin1.[012])
13700 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
13701 ;;
13702 *) # Darwin 1.3 on
13703 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13704 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13705 else
13706 case ${MACOSX_DEPLOYMENT_TARGET} in
13707 10.[012])
13708 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13709 ;;
13710 10.*)
13711 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
13712 ;;
13713 esac
13714 fi
13715 ;;
13716 esac
13717 archive_cmds_need_lc_GCJ=no
13718 hardcode_direct_GCJ=no
13719 hardcode_automatic_GCJ=yes
13720 hardcode_shlibpath_var_GCJ=unsupported
13721 whole_archive_flag_spec_GCJ=''
13722 link_all_deplibs_GCJ=yes
13723 if test "$GCC" = yes ; then
13724 output_verbose_link_cmd='echo'
13725 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13726 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13727 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13728 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}'
13729 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}'
13730 else
13731 case $cc_basename in
13732 xlc*)
13733 output_verbose_link_cmd='echo'
13734 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13735 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13736 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13737 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}'
13738 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}'
13739 ;;
13740 *)
13741 ld_shlibs_GCJ=no
13742 ;;
13743 esac
13744 fi
13745 ;;
13747 dgux*)
13748 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13749 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13750 hardcode_shlibpath_var_GCJ=no
13751 ;;
13753 freebsd1*)
13754 ld_shlibs_GCJ=no
13755 ;;
13757 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13758 # support. Future versions do this automatically, but an explicit c++rt0.o
13759 # does not break anything, and helps significantly (at the cost of a little
13760 # extra space).
13761 freebsd2.2*)
13762 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13763 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13764 hardcode_direct_GCJ=yes
13765 hardcode_shlibpath_var_GCJ=no
13766 ;;
13768 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13769 freebsd2*)
13770 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13771 hardcode_direct_GCJ=yes
13772 hardcode_minus_L_GCJ=yes
13773 hardcode_shlibpath_var_GCJ=no
13774 ;;
13776 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13777 freebsd* | kfreebsd*-gnu | dragonfly*)
13778 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13779 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13780 hardcode_direct_GCJ=yes
13781 hardcode_shlibpath_var_GCJ=no
13782 ;;
13784 hpux9*)
13785 if test "$GCC" = yes; then
13786 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'
13787 else
13788 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'
13789 fi
13790 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13791 hardcode_libdir_separator_GCJ=:
13792 hardcode_direct_GCJ=yes
13794 # hardcode_minus_L: Not really in the search PATH,
13795 # but as the default location of the library.
13796 hardcode_minus_L_GCJ=yes
13797 export_dynamic_flag_spec_GCJ='${wl}-E'
13798 ;;
13800 hpux10*)
13801 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13802 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13803 else
13804 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13805 fi
13806 if test "$with_gnu_ld" = no; then
13807 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13808 hardcode_libdir_separator_GCJ=:
13810 hardcode_direct_GCJ=yes
13811 export_dynamic_flag_spec_GCJ='${wl}-E'
13813 # hardcode_minus_L: Not really in the search PATH,
13814 # but as the default location of the library.
13815 hardcode_minus_L_GCJ=yes
13816 fi
13817 ;;
13819 hpux11*)
13820 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13821 case $host_cpu in
13822 hppa*64*)
13823 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13824 ;;
13825 ia64*)
13826 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13827 ;;
13828 *)
13829 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13830 ;;
13831 esac
13832 else
13833 case $host_cpu in
13834 hppa*64*)
13835 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13836 ;;
13837 ia64*)
13838 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13839 ;;
13840 *)
13841 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13842 ;;
13843 esac
13844 fi
13845 if test "$with_gnu_ld" = no; then
13846 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13847 hardcode_libdir_separator_GCJ=:
13849 case $host_cpu in
13850 hppa*64*|ia64*)
13851 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
13852 hardcode_direct_GCJ=no
13853 hardcode_shlibpath_var_GCJ=no
13854 ;;
13855 *)
13856 hardcode_direct_GCJ=yes
13857 export_dynamic_flag_spec_GCJ='${wl}-E'
13859 # hardcode_minus_L: Not really in the search PATH,
13860 # but as the default location of the library.
13861 hardcode_minus_L_GCJ=yes
13862 ;;
13863 esac
13864 fi
13865 ;;
13867 irix5* | irix6* | nonstopux*)
13868 if test "$GCC" = yes; then
13869 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'
13870 else
13871 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'
13872 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
13873 fi
13874 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13875 hardcode_libdir_separator_GCJ=:
13876 link_all_deplibs_GCJ=yes
13877 ;;
13879 netbsd*)
13880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13881 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13882 else
13883 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13884 fi
13885 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13886 hardcode_direct_GCJ=yes
13887 hardcode_shlibpath_var_GCJ=no
13888 ;;
13890 newsos6)
13891 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13892 hardcode_direct_GCJ=yes
13893 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13894 hardcode_libdir_separator_GCJ=:
13895 hardcode_shlibpath_var_GCJ=no
13896 ;;
13898 openbsd*)
13899 hardcode_direct_GCJ=yes
13900 hardcode_shlibpath_var_GCJ=no
13901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13902 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13903 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13905 export_dynamic_flag_spec_GCJ='${wl}-E'
13906 else
13907 case $host_os in
13908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13911 ;;
13912 *)
13913 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13914 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13915 ;;
13916 esac
13917 fi
13918 ;;
13920 os2*)
13921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13922 hardcode_minus_L_GCJ=yes
13923 allow_undefined_flag_GCJ=unsupported
13924 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'
13925 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13926 ;;
13928 osf3*)
13929 if test "$GCC" = yes; then
13930 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13931 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'
13932 else
13933 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13934 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'
13935 fi
13936 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13937 hardcode_libdir_separator_GCJ=:
13938 ;;
13940 osf4* | osf5*) # as osf3* with the addition of -msym flag
13941 if test "$GCC" = yes; then
13942 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13943 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'
13944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13945 else
13946 allow_undefined_flag_GCJ=' -expect_unresolved \*'
13947 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'
13948 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~
13949 $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'
13951 # Both c and cxx compiler support -rpath directly
13952 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
13953 fi
13954 hardcode_libdir_separator_GCJ=:
13955 ;;
13957 solaris*)
13958 no_undefined_flag_GCJ=' -z text'
13959 if test "$GCC" = yes; then
13960 wlarc='${wl}'
13961 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13962 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13963 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13964 else
13965 wlarc=''
13966 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13967 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13968 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13969 fi
13970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
13971 hardcode_shlibpath_var_GCJ=no
13972 case $host_os in
13973 solaris2.[0-5] | solaris2.[0-5].*) ;;
13974 *)
13975 # The compiler driver will combine linker options so we
13976 # cannot just pass the convience library names through
13977 # without $wl, iff we do not link with $LD.
13978 # Luckily, gcc supports the same syntax we need for Sun Studio.
13979 # Supported since Solaris 2.6 (maybe 2.5.1?)
13980 case $wlarc in
13981 '')
13982 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
13983 *)
13984 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' ;;
13985 esac ;;
13986 esac
13987 link_all_deplibs_GCJ=yes
13988 ;;
13990 sunos4*)
13991 if test "x$host_vendor" = xsequent; then
13992 # Use $CC to link under sequent, because it throws in some extra .o
13993 # files that make .init and .fini sections work.
13994 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13995 else
13996 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13997 fi
13998 hardcode_libdir_flag_spec_GCJ='-L$libdir'
13999 hardcode_direct_GCJ=yes
14000 hardcode_minus_L_GCJ=yes
14001 hardcode_shlibpath_var_GCJ=no
14002 ;;
14004 sysv4)
14005 case $host_vendor in
14006 sni)
14007 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14008 hardcode_direct_GCJ=yes # is this really true???
14009 ;;
14010 siemens)
14011 ## LD is ld it makes a PLAMLIB
14012 ## CC just makes a GrossModule.
14013 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14014 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
14015 hardcode_direct_GCJ=no
14016 ;;
14017 motorola)
14018 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14020 ;;
14021 esac
14022 runpath_var='LD_RUN_PATH'
14023 hardcode_shlibpath_var_GCJ=no
14024 ;;
14026 sysv4.3*)
14027 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14028 hardcode_shlibpath_var_GCJ=no
14029 export_dynamic_flag_spec_GCJ='-Bexport'
14030 ;;
14032 sysv4*MP*)
14033 if test -d /usr/nec; then
14034 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14035 hardcode_shlibpath_var_GCJ=no
14036 runpath_var=LD_RUN_PATH
14037 hardcode_runpath_var=yes
14038 ld_shlibs_GCJ=yes
14039 fi
14040 ;;
14042 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14043 no_undefined_flag_GCJ='${wl}-z,text'
14044 archive_cmds_need_lc_GCJ=no
14045 hardcode_shlibpath_var_GCJ=no
14046 runpath_var='LD_RUN_PATH'
14048 if test "$GCC" = yes; then
14049 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14050 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14051 else
14052 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14053 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054 fi
14055 ;;
14057 sysv5* | sco3.2v5* | sco5v6*)
14058 # Note: We can NOT use -z defs as we might desire, because we do not
14059 # link with -lc, and that would cause any symbols used from libc to
14060 # always be unresolved, which means just about no library would
14061 # ever link correctly. If we're not using GNU ld we use -z text
14062 # though, which does catch some bad symbols but isn't as heavy-handed
14063 # as -z defs.
14064 no_undefined_flag_GCJ='${wl}-z,text'
14065 allow_undefined_flag_GCJ='${wl}-z,nodefs'
14066 archive_cmds_need_lc_GCJ=no
14067 hardcode_shlibpath_var_GCJ=no
14068 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14069 hardcode_libdir_separator_GCJ=':'
14070 link_all_deplibs_GCJ=yes
14071 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14072 runpath_var='LD_RUN_PATH'
14074 if test "$GCC" = yes; then
14075 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14076 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14077 else
14078 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14079 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14080 fi
14081 ;;
14083 uts4*)
14084 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
14086 hardcode_shlibpath_var_GCJ=no
14087 ;;
14089 *)
14090 ld_shlibs_GCJ=no
14091 ;;
14092 esac
14093 fi
14095 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
14096 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
14097 test "$ld_shlibs_GCJ" = no && can_build_shared=no
14099 #
14100 # Do we need to explicitly link libc?
14101 #
14102 case "x$archive_cmds_need_lc_GCJ" in
14103 x|xyes)
14104 # Assume -lc should be added
14105 archive_cmds_need_lc_GCJ=yes
14107 if test "$enable_shared" = yes && test "$GCC" = yes; then
14108 case $archive_cmds_GCJ in
14109 *'~'*)
14110 # FIXME: we may have to deal with multi-command sequences.
14111 ;;
14112 '$CC '*)
14113 # Test whether the compiler implicitly links with -lc since on some
14114 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14115 # to ld, don't add -lc before -lgcc.
14116 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14117 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14118 $rm conftest*
14119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } 2>conftest.err; then
14126 soname=conftest
14127 lib=conftest
14128 libobjs=conftest.$ac_objext
14129 deplibs=
14130 wl=$lt_prog_compiler_wl_GCJ
14131 pic_flag=$lt_prog_compiler_pic_GCJ
14132 compiler_flags=-v
14133 linker_flags=-v
14134 verstring=
14135 output_objdir=.
14136 libname=conftest
14137 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14138 allow_undefined_flag_GCJ=
14139 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14140 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14141 ac_status=$?
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }
14144 then
14145 archive_cmds_need_lc_GCJ=no
14146 else
14147 archive_cmds_need_lc_GCJ=yes
14148 fi
14149 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14150 else
14151 cat conftest.err 1>&5
14152 fi
14153 $rm conftest*
14154 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14155 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
14156 ;;
14157 esac
14158 fi
14159 ;;
14160 esac
14162 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14163 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14164 library_names_spec=
14165 libname_spec='lib$name'
14166 soname_spec=
14167 shrext_cmds=".so"
14168 postinstall_cmds=
14169 postuninstall_cmds=
14170 finish_cmds=
14171 finish_eval=
14172 shlibpath_var=
14173 shlibpath_overrides_runpath=unknown
14174 version_type=none
14175 dynamic_linker="$host_os ld.so"
14176 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14177 if test "$GCC" = yes; then
14178 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14179 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14180 # if the path contains ";" then we assume it to be the separator
14181 # otherwise default to the standard path separator (i.e. ":") - it is
14182 # assumed that no part of a normal pathname contains ";" but that should
14183 # okay in the real world where ";" in dirpaths is itself problematic.
14184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14185 else
14186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14187 fi
14188 else
14189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14190 fi
14191 need_lib_prefix=unknown
14192 hardcode_into_libs=no
14194 # when you set need_version to no, make sure it does not cause -set_version
14195 # flags to be left without arguments
14196 need_version=unknown
14198 case $host_os in
14199 aix3*)
14200 version_type=linux
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14202 shlibpath_var=LIBPATH
14204 # AIX 3 has no versioning support, so we append a major version to the name.
14205 soname_spec='${libname}${release}${shared_ext}$major'
14206 ;;
14208 aix4* | aix5*)
14209 version_type=linux
14210 need_lib_prefix=no
14211 need_version=no
14212 hardcode_into_libs=yes
14213 if test "$host_cpu" = ia64; then
14214 # AIX 5 supports IA64
14215 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14216 shlibpath_var=LD_LIBRARY_PATH
14217 else
14218 # With GCC up to 2.95.x, collect2 would create an import file
14219 # for dependence libraries. The import file would start with
14220 # the line `#! .'. This would cause the generated library to
14221 # depend on `.', always an invalid library. This was fixed in
14222 # development snapshots of GCC prior to 3.0.
14223 case $host_os in
14224 aix4 | aix4.[01] | aix4.[01].*)
14225 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14226 echo ' yes '
14227 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14228 :
14229 else
14230 can_build_shared=no
14231 fi
14232 ;;
14233 esac
14234 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14235 # soname into executable. Probably we can add versioning support to
14236 # collect2, so additional links can be useful in future.
14237 if test "$aix_use_runtimelinking" = yes; then
14238 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14239 # instead of lib<name>.a to let people know that these are not
14240 # typical AIX shared libraries.
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242 else
14243 # We preserve .a as extension for shared libraries through AIX4.2
14244 # and later when we are not doing run time linking.
14245 library_names_spec='${libname}${release}.a $libname.a'
14246 soname_spec='${libname}${release}${shared_ext}$major'
14247 fi
14248 shlibpath_var=LIBPATH
14249 fi
14250 ;;
14252 amigaos*)
14253 library_names_spec='$libname.ixlibrary $libname.a'
14254 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14255 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'
14256 ;;
14258 beos*)
14259 library_names_spec='${libname}${shared_ext}'
14260 dynamic_linker="$host_os ld.so"
14261 shlibpath_var=LIBRARY_PATH
14262 ;;
14264 bsdi[45]*)
14265 version_type=linux
14266 need_version=no
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 soname_spec='${libname}${release}${shared_ext}$major'
14269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14273 # the default ld.so.conf also contains /usr/contrib/lib and
14274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14275 # libtool to hard-code these into programs
14276 ;;
14278 cygwin* | mingw* | pw32*)
14279 version_type=windows
14280 shrext_cmds=".dll"
14281 need_version=no
14282 need_lib_prefix=no
14284 case $GCC,$host_os in
14285 yes,cygwin* | yes,mingw* | yes,pw32*)
14286 library_names_spec='$libname.dll.a'
14287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14288 postinstall_cmds='base_file=`basename \${file}`~
14289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14290 dldir=$destdir/`dirname \$dlpath`~
14291 test -d \$dldir || mkdir -p \$dldir~
14292 $install_prog $dir/$dlname \$dldir/$dlname~
14293 chmod a+x \$dldir/$dlname'
14294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14295 dlpath=$dir/\$dldll~
14296 $rm \$dlpath'
14297 shlibpath_overrides_runpath=yes
14299 case $host_os in
14300 cygwin*)
14301 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14302 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14303 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14304 ;;
14305 mingw*)
14306 # MinGW DLLs use traditional 'lib' prefix
14307 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14308 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14309 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14310 # It is most probably a Windows format PATH printed by
14311 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14312 # path with ; separators, and with drive letters. We can handle the
14313 # drive letters (cygwin fileutils understands them), so leave them,
14314 # especially as we might pass files found there to a mingw objdump,
14315 # which wouldn't understand a cygwinified path. Ahh.
14316 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14317 else
14318 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14319 fi
14320 ;;
14321 pw32*)
14322 # pw32 DLLs use 'pw' prefix rather than 'lib'
14323 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14324 ;;
14325 esac
14326 ;;
14328 *)
14329 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14330 ;;
14331 esac
14332 dynamic_linker='Win32 ld.exe'
14333 # FIXME: first we should search . and the directory the executable is in
14334 shlibpath_var=PATH
14335 ;;
14337 darwin* | rhapsody*)
14338 dynamic_linker="$host_os dyld"
14339 version_type=darwin
14340 need_lib_prefix=no
14341 need_version=no
14342 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14343 soname_spec='${libname}${release}${major}$shared_ext'
14344 shlibpath_overrides_runpath=yes
14345 shlibpath_var=DYLD_LIBRARY_PATH
14346 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14347 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14348 if test "$GCC" = yes; then
14349 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"`
14350 else
14351 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14352 fi
14353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14354 ;;
14356 dgux*)
14357 version_type=linux
14358 need_lib_prefix=no
14359 need_version=no
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14361 soname_spec='${libname}${release}${shared_ext}$major'
14362 shlibpath_var=LD_LIBRARY_PATH
14363 ;;
14365 freebsd1*)
14366 dynamic_linker=no
14367 ;;
14369 kfreebsd*-gnu)
14370 version_type=linux
14371 need_lib_prefix=no
14372 need_version=no
14373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14374 soname_spec='${libname}${release}${shared_ext}$major'
14375 shlibpath_var=LD_LIBRARY_PATH
14376 shlibpath_overrides_runpath=no
14377 hardcode_into_libs=yes
14378 dynamic_linker='GNU ld.so'
14379 ;;
14381 freebsd* | dragonfly*)
14382 # DragonFly does not have aout. When/if they implement a new
14383 # versioning mechanism, adjust this.
14384 if test -x /usr/bin/objformat; then
14385 objformat=`/usr/bin/objformat`
14386 else
14387 case $host_os in
14388 freebsd[123]*) objformat=aout ;;
14389 *) objformat=elf ;;
14390 esac
14391 fi
14392 version_type=freebsd-$objformat
14393 case $version_type in
14394 freebsd-elf*)
14395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14396 need_version=no
14397 need_lib_prefix=no
14398 ;;
14399 freebsd-*)
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14401 need_version=yes
14402 ;;
14403 esac
14404 shlibpath_var=LD_LIBRARY_PATH
14405 case $host_os in
14406 freebsd2*)
14407 shlibpath_overrides_runpath=yes
14408 ;;
14409 freebsd3.[01]* | freebsdelf3.[01]*)
14410 shlibpath_overrides_runpath=yes
14411 hardcode_into_libs=yes
14412 ;;
14413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14415 shlibpath_overrides_runpath=no
14416 hardcode_into_libs=yes
14417 ;;
14418 freebsd*) # from 4.6 on
14419 shlibpath_overrides_runpath=yes
14420 hardcode_into_libs=yes
14421 ;;
14422 esac
14423 ;;
14425 gnu*)
14426 version_type=linux
14427 need_lib_prefix=no
14428 need_version=no
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14430 soname_spec='${libname}${release}${shared_ext}$major'
14431 shlibpath_var=LD_LIBRARY_PATH
14432 hardcode_into_libs=yes
14433 ;;
14435 hpux9* | hpux10* | hpux11*)
14436 # Give a soname corresponding to the major version so that dld.sl refuses to
14437 # link against other versions.
14438 version_type=sunos
14439 need_lib_prefix=no
14440 need_version=no
14441 case $host_cpu in
14442 ia64*)
14443 shrext_cmds='.so'
14444 hardcode_into_libs=yes
14445 dynamic_linker="$host_os dld.so"
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14449 soname_spec='${libname}${release}${shared_ext}$major'
14450 if test "X$HPUX_IA64_MODE" = X32; then
14451 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14452 else
14453 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14454 fi
14455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14456 ;;
14457 hppa*64*)
14458 shrext_cmds='.sl'
14459 hardcode_into_libs=yes
14460 dynamic_linker="$host_os dld.sl"
14461 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14462 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14466 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14467 ;;
14468 *)
14469 shrext_cmds='.sl'
14470 dynamic_linker="$host_os dld.sl"
14471 shlibpath_var=SHLIB_PATH
14472 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14474 soname_spec='${libname}${release}${shared_ext}$major'
14475 ;;
14476 esac
14477 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14478 postinstall_cmds='chmod 555 $lib'
14479 ;;
14481 interix3*)
14482 version_type=linux
14483 need_lib_prefix=no
14484 need_version=no
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14486 soname_spec='${libname}${release}${shared_ext}$major'
14487 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14488 shlibpath_var=LD_LIBRARY_PATH
14489 shlibpath_overrides_runpath=no
14490 hardcode_into_libs=yes
14491 ;;
14493 irix5* | irix6* | nonstopux*)
14494 case $host_os in
14495 nonstopux*) version_type=nonstopux ;;
14496 *)
14497 if test "$lt_cv_prog_gnu_ld" = yes; then
14498 version_type=linux
14499 else
14500 version_type=irix
14501 fi ;;
14502 esac
14503 need_lib_prefix=no
14504 need_version=no
14505 soname_spec='${libname}${release}${shared_ext}$major'
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14507 case $host_os in
14508 irix5* | nonstopux*)
14509 libsuff= shlibsuff=
14510 ;;
14511 *)
14512 case $LD in # libtool.m4 will add one of these switches to LD
14513 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14514 libsuff= shlibsuff= libmagic=32-bit;;
14515 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14516 libsuff=32 shlibsuff=N32 libmagic=N32;;
14517 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14518 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14519 *) libsuff= shlibsuff= libmagic=never-match;;
14520 esac
14521 ;;
14522 esac
14523 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14524 shlibpath_overrides_runpath=no
14525 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14526 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14527 hardcode_into_libs=yes
14528 ;;
14530 # No shared lib support for Linux oldld, aout, or coff.
14531 linux*oldld* | linux*aout* | linux*coff*)
14532 dynamic_linker=no
14533 ;;
14535 # This must be Linux ELF.
14536 linux*)
14537 version_type=linux
14538 need_lib_prefix=no
14539 need_version=no
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14541 soname_spec='${libname}${release}${shared_ext}$major'
14542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 shlibpath_overrides_runpath=no
14545 # This implies no fast_install, which is unacceptable.
14546 # Some rework will be needed to allow for fast_install
14547 # before this can be enabled.
14548 hardcode_into_libs=yes
14550 # Append ld.so.conf contents to the search path
14551 if test -f /etc/ld.so.conf; then
14552 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14553 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14554 fi
14556 # We used to test for /lib/ld.so.1 and disable shared libraries on
14557 # powerpc, because MkLinux only supported shared libraries with the
14558 # GNU dynamic linker. Since this was broken with cross compilers,
14559 # most powerpc-linux boxes support dynamic linking these days and
14560 # people can always --disable-shared, the test was removed, and we
14561 # assume the GNU/Linux dynamic linker is in use.
14562 dynamic_linker='GNU/Linux ld.so'
14563 ;;
14565 knetbsd*-gnu)
14566 version_type=linux
14567 need_lib_prefix=no
14568 need_version=no
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 shlibpath_overrides_runpath=no
14573 hardcode_into_libs=yes
14574 dynamic_linker='GNU ld.so'
14575 ;;
14577 netbsd*)
14578 version_type=sunos
14579 need_lib_prefix=no
14580 need_version=no
14581 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14584 dynamic_linker='NetBSD (a.out) ld.so'
14585 else
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 dynamic_linker='NetBSD ld.elf_so'
14589 fi
14590 shlibpath_var=LD_LIBRARY_PATH
14591 shlibpath_overrides_runpath=yes
14592 hardcode_into_libs=yes
14593 ;;
14595 newsos6)
14596 version_type=linux
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=yes
14600 ;;
14602 nto-qnx*)
14603 version_type=linux
14604 need_lib_prefix=no
14605 need_version=no
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=yes
14610 ;;
14612 openbsd*)
14613 version_type=sunos
14614 sys_lib_dlsearch_path_spec="/usr/lib"
14615 need_lib_prefix=no
14616 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14617 case $host_os in
14618 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14619 *) need_version=no ;;
14620 esac
14621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14625 case $host_os in
14626 openbsd2.[89] | openbsd2.[89].*)
14627 shlibpath_overrides_runpath=no
14628 ;;
14629 *)
14630 shlibpath_overrides_runpath=yes
14631 ;;
14632 esac
14633 else
14634 shlibpath_overrides_runpath=yes
14635 fi
14636 ;;
14638 os2*)
14639 libname_spec='$name'
14640 shrext_cmds=".dll"
14641 need_lib_prefix=no
14642 library_names_spec='$libname${shared_ext} $libname.a'
14643 dynamic_linker='OS/2 ld.exe'
14644 shlibpath_var=LIBPATH
14645 ;;
14647 osf3* | osf4* | osf5*)
14648 version_type=osf
14649 need_lib_prefix=no
14650 need_version=no
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653 shlibpath_var=LD_LIBRARY_PATH
14654 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14655 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14656 ;;
14658 solaris*)
14659 version_type=linux
14660 need_lib_prefix=no
14661 need_version=no
14662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14663 soname_spec='${libname}${release}${shared_ext}$major'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 shlibpath_overrides_runpath=yes
14666 hardcode_into_libs=yes
14667 # ldd complains unless libraries are executable
14668 postinstall_cmds='chmod +x $lib'
14669 ;;
14671 sunos4*)
14672 version_type=sunos
14673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14674 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14675 shlibpath_var=LD_LIBRARY_PATH
14676 shlibpath_overrides_runpath=yes
14677 if test "$with_gnu_ld" = yes; then
14678 need_lib_prefix=no
14679 fi
14680 need_version=yes
14681 ;;
14683 sysv4 | sysv4.3*)
14684 version_type=linux
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 shlibpath_var=LD_LIBRARY_PATH
14688 case $host_vendor in
14689 sni)
14690 shlibpath_overrides_runpath=no
14691 need_lib_prefix=no
14692 export_dynamic_flag_spec='${wl}-Blargedynsym'
14693 runpath_var=LD_RUN_PATH
14694 ;;
14695 siemens)
14696 need_lib_prefix=no
14697 ;;
14698 motorola)
14699 need_lib_prefix=no
14700 need_version=no
14701 shlibpath_overrides_runpath=no
14702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14703 ;;
14704 esac
14705 ;;
14707 sysv4*MP*)
14708 if test -d /usr/nec ;then
14709 version_type=linux
14710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14711 soname_spec='$libname${shared_ext}.$major'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 fi
14714 ;;
14716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14717 version_type=freebsd-elf
14718 need_lib_prefix=no
14719 need_version=no
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 hardcode_into_libs=yes
14724 if test "$with_gnu_ld" = yes; then
14725 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14726 shlibpath_overrides_runpath=no
14727 else
14728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14729 shlibpath_overrides_runpath=yes
14730 case $host_os in
14731 sco3.2v5*)
14732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14733 ;;
14734 esac
14735 fi
14736 sys_lib_dlsearch_path_spec='/usr/lib'
14737 ;;
14739 uts4*)
14740 version_type=linux
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14742 soname_spec='${libname}${release}${shared_ext}$major'
14743 shlibpath_var=LD_LIBRARY_PATH
14744 ;;
14746 *)
14747 dynamic_linker=no
14748 ;;
14749 esac
14750 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14751 echo "${ECHO_T}$dynamic_linker" >&6
14752 test "$dynamic_linker" = no && can_build_shared=no
14754 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14755 if test "$GCC" = yes; then
14756 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14757 fi
14759 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14760 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14761 hardcode_action_GCJ=
14762 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14763 test -n "$runpath_var_GCJ" || \
14764 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14766 # We can hardcode non-existant directories.
14767 if test "$hardcode_direct_GCJ" != no &&
14768 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14769 # have to relink, otherwise we might link with an installed library
14770 # when we should be linking with a yet-to-be-installed one
14771 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14772 test "$hardcode_minus_L_GCJ" != no; then
14773 # Linking always hardcodes the temporary library directory.
14774 hardcode_action_GCJ=relink
14775 else
14776 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14777 hardcode_action_GCJ=immediate
14778 fi
14779 else
14780 # We cannot hardcode anything, or else we can only hardcode existing
14781 # directories.
14782 hardcode_action_GCJ=unsupported
14783 fi
14784 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
14785 echo "${ECHO_T}$hardcode_action_GCJ" >&6
14787 if test "$hardcode_action_GCJ" = relink; then
14788 # Fast installation is not supported
14789 enable_fast_install=no
14790 elif test "$shlibpath_overrides_runpath" = yes ||
14791 test "$enable_shared" = no; then
14792 # Fast installation is not necessary
14793 enable_fast_install=needless
14794 fi
14797 # The else clause should only fire when bootstrapping the
14798 # libtool distribution, otherwise you forgot to ship ltmain.sh
14799 # with your package, and you will get complaints that there are
14800 # no rules to generate ltmain.sh.
14801 if test -f "$ltmain"; then
14802 # See if we are running on zsh, and set the options which allow our commands through
14803 # without removal of \ escapes.
14804 if test -n "${ZSH_VERSION+set}" ; then
14805 setopt NO_GLOB_SUBST
14806 fi
14807 # Now quote all the things that may contain metacharacters while being
14808 # careful not to overquote the AC_SUBSTed values. We take copies of the
14809 # variables and quote the copies for generation of the libtool script.
14810 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14811 SED SHELL STRIP \
14812 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14813 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14814 deplibs_check_method reload_flag reload_cmds need_locks \
14815 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14816 lt_cv_sys_global_symbol_to_c_name_address \
14817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14818 old_postinstall_cmds old_postuninstall_cmds \
14819 compiler_GCJ \
14820 CC_GCJ \
14821 LD_GCJ \
14822 lt_prog_compiler_wl_GCJ \
14823 lt_prog_compiler_pic_GCJ \
14824 lt_prog_compiler_static_GCJ \
14825 lt_prog_compiler_no_builtin_flag_GCJ \
14826 export_dynamic_flag_spec_GCJ \
14827 thread_safe_flag_spec_GCJ \
14828 whole_archive_flag_spec_GCJ \
14829 enable_shared_with_static_runtimes_GCJ \
14830 old_archive_cmds_GCJ \
14831 old_archive_from_new_cmds_GCJ \
14832 predep_objects_GCJ \
14833 postdep_objects_GCJ \
14834 predeps_GCJ \
14835 postdeps_GCJ \
14836 compiler_lib_search_path_GCJ \
14837 archive_cmds_GCJ \
14838 archive_expsym_cmds_GCJ \
14839 postinstall_cmds_GCJ \
14840 postuninstall_cmds_GCJ \
14841 old_archive_from_expsyms_cmds_GCJ \
14842 allow_undefined_flag_GCJ \
14843 no_undefined_flag_GCJ \
14844 export_symbols_cmds_GCJ \
14845 hardcode_libdir_flag_spec_GCJ \
14846 hardcode_libdir_flag_spec_ld_GCJ \
14847 hardcode_libdir_separator_GCJ \
14848 hardcode_automatic_GCJ \
14849 module_cmds_GCJ \
14850 module_expsym_cmds_GCJ \
14851 lt_cv_prog_compiler_c_o_GCJ \
14852 exclude_expsyms_GCJ \
14853 include_expsyms_GCJ; do
14855 case $var in
14856 old_archive_cmds_GCJ | \
14857 old_archive_from_new_cmds_GCJ | \
14858 archive_cmds_GCJ | \
14859 archive_expsym_cmds_GCJ | \
14860 module_cmds_GCJ | \
14861 module_expsym_cmds_GCJ | \
14862 old_archive_from_expsyms_cmds_GCJ | \
14863 export_symbols_cmds_GCJ | \
14864 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14865 postinstall_cmds | postuninstall_cmds | \
14866 old_postinstall_cmds | old_postuninstall_cmds | \
14867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14868 # Double-quote double-evaled strings.
14869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14870 ;;
14871 *)
14872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14873 ;;
14874 esac
14875 done
14877 case $lt_echo in
14878 *'\$0 --fallback-echo"')
14879 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14880 ;;
14881 esac
14883 cfgfile="$ofile"
14885 cat <<__EOF__ >> "$cfgfile"
14886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14890 # Shell to use when invoking shell scripts.
14891 SHELL=$lt_SHELL
14893 # Whether or not to build shared libraries.
14894 build_libtool_libs=$enable_shared
14896 # Whether or not to build static libraries.
14897 build_old_libs=$enable_static
14899 # Whether or not to add -lc for building shared libraries.
14900 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14902 # Whether or not to disallow shared libs when runtime libs are static
14903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14905 # Whether or not to optimize for fast installation.
14906 fast_install=$enable_fast_install
14908 # The host system.
14909 host_alias=$host_alias
14910 host=$host
14911 host_os=$host_os
14913 # The build system.
14914 build_alias=$build_alias
14915 build=$build
14916 build_os=$build_os
14918 # An echo program that does not interpret backslashes.
14919 echo=$lt_echo
14921 # The archiver.
14922 AR=$lt_AR
14923 AR_FLAGS=$lt_AR_FLAGS
14925 # A C compiler.
14926 LTCC=$lt_LTCC
14928 # LTCC compiler flags.
14929 LTCFLAGS=$lt_LTCFLAGS
14931 # A language-specific compiler.
14932 CC=$lt_compiler_GCJ
14934 # Is the compiler the GNU C compiler?
14935 with_gcc=$GCC_GCJ
14937 # An ERE matcher.
14938 EGREP=$lt_EGREP
14940 # The linker used to build libraries.
14941 LD=$lt_LD_GCJ
14943 # Whether we need hard or soft links.
14944 LN_S=$lt_LN_S
14946 # A BSD-compatible nm program.
14947 NM=$lt_NM
14949 # A symbol stripping program
14950 STRIP=$lt_STRIP
14952 # Used to examine libraries when file_magic_cmd begins "file"
14953 MAGIC_CMD=$MAGIC_CMD
14955 # Used on cygwin: DLL creation program.
14956 DLLTOOL="$DLLTOOL"
14958 # Used on cygwin: object dumper.
14959 OBJDUMP="$OBJDUMP"
14961 # Used on cygwin: assembler.
14962 AS="$AS"
14964 # The name of the directory that contains temporary libtool files.
14965 objdir=$objdir
14967 # How to create reloadable object files.
14968 reload_flag=$lt_reload_flag
14969 reload_cmds=$lt_reload_cmds
14971 # How to pass a linker flag through the compiler.
14972 wl=$lt_lt_prog_compiler_wl_GCJ
14974 # Object file suffix (normally "o").
14975 objext="$ac_objext"
14977 # Old archive suffix (normally "a").
14978 libext="$libext"
14980 # Shared library suffix (normally ".so").
14981 shrext_cmds='$shrext_cmds'
14983 # Executable file suffix (normally "").
14984 exeext="$exeext"
14986 # Additional compiler flags for building library objects.
14987 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14988 pic_mode=$pic_mode
14990 # What is the maximum length of a command?
14991 max_cmd_len=$lt_cv_sys_max_cmd_len
14993 # Does compiler simultaneously support -c and -o options?
14994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14996 # Must we lock files when doing compilation?
14997 need_locks=$lt_need_locks
14999 # Do we need the lib prefix for modules?
15000 need_lib_prefix=$need_lib_prefix
15002 # Do we need a version for libraries?
15003 need_version=$need_version
15005 # Whether dlopen is supported.
15006 dlopen_support=$enable_dlopen
15008 # Whether dlopen of programs is supported.
15009 dlopen_self=$enable_dlopen_self
15011 # Whether dlopen of statically linked programs is supported.
15012 dlopen_self_static=$enable_dlopen_self_static
15014 # Compiler flag to prevent dynamic linking.
15015 link_static_flag=$lt_lt_prog_compiler_static_GCJ
15017 # Compiler flag to turn off builtin functions.
15018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
15020 # Compiler flag to allow reflexive dlopens.
15021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
15023 # Compiler flag to generate shared objects directly from archives.
15024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
15026 # Compiler flag to generate thread-safe objects.
15027 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
15029 # Library versioning type.
15030 version_type=$version_type
15032 # Format of library name prefix.
15033 libname_spec=$lt_libname_spec
15035 # List of archive names. First name is the real one, the rest are links.
15036 # The last name is the one that the linker finds with -lNAME.
15037 library_names_spec=$lt_library_names_spec
15039 # The coded name of the library, if different from the real name.
15040 soname_spec=$lt_soname_spec
15042 # Commands used to build and install an old-style archive.
15043 RANLIB=$lt_RANLIB
15044 old_archive_cmds=$lt_old_archive_cmds_GCJ
15045 old_postinstall_cmds=$lt_old_postinstall_cmds
15046 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15048 # Create an old-style archive from a shared archive.
15049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15051 # Create a temporary old-style archive to link instead of a shared archive.
15052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15054 # Commands used to build and install a shared archive.
15055 archive_cmds=$lt_archive_cmds_GCJ
15056 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15057 postinstall_cmds=$lt_postinstall_cmds
15058 postuninstall_cmds=$lt_postuninstall_cmds
15060 # Commands used to build a loadable module (assumed same as above if empty)
15061 module_cmds=$lt_module_cmds_GCJ
15062 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15064 # Commands to strip libraries.
15065 old_striplib=$lt_old_striplib
15066 striplib=$lt_striplib
15068 # Dependencies to place before the objects being linked to create a
15069 # shared library.
15070 predep_objects=$lt_predep_objects_GCJ
15072 # Dependencies to place after the objects being linked to create a
15073 # shared library.
15074 postdep_objects=$lt_postdep_objects_GCJ
15076 # Dependencies to place before the objects being linked to create a
15077 # shared library.
15078 predeps=$lt_predeps_GCJ
15080 # Dependencies to place after the objects being linked to create a
15081 # shared library.
15082 postdeps=$lt_postdeps_GCJ
15084 # The library search path used internally by the compiler when linking
15085 # a shared library.
15086 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15088 # Method to check whether dependent libraries are shared objects.
15089 deplibs_check_method=$lt_deplibs_check_method
15091 # Command to use when deplibs_check_method == file_magic.
15092 file_magic_cmd=$lt_file_magic_cmd
15094 # Flag that allows shared libraries with undefined symbols to be built.
15095 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15097 # Flag that forces no undefined symbols.
15098 no_undefined_flag=$lt_no_undefined_flag_GCJ
15100 # Commands used to finish a libtool library installation in a directory.
15101 finish_cmds=$lt_finish_cmds
15103 # Same as above, but a single script fragment to be evaled but not shown.
15104 finish_eval=$lt_finish_eval
15106 # Take the output of nm and produce a listing of raw symbols and C names.
15107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15109 # Transform the output of nm in a proper C declaration
15110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15112 # Transform the output of nm in a C name address pair
15113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15115 # This is the shared library runtime path variable.
15116 runpath_var=$runpath_var
15118 # This is the shared library path variable.
15119 shlibpath_var=$shlibpath_var
15121 # Is shlibpath searched before the hard-coded library search path?
15122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15124 # How to hardcode a shared library path into an executable.
15125 hardcode_action=$hardcode_action_GCJ
15127 # Whether we should hardcode library paths into libraries.
15128 hardcode_into_libs=$hardcode_into_libs
15130 # Flag to hardcode \$libdir into a binary during linking.
15131 # This must work even if \$libdir does not exist.
15132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15134 # If ld is used when linking, flag to hardcode \$libdir into
15135 # a binary during linking. This must work even if \$libdir does
15136 # not exist.
15137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15139 # Whether we need a single -rpath flag with a separated argument.
15140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15142 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15143 # resulting binary.
15144 hardcode_direct=$hardcode_direct_GCJ
15146 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15147 # resulting binary.
15148 hardcode_minus_L=$hardcode_minus_L_GCJ
15150 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15151 # the resulting binary.
15152 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15154 # Set to yes if building a shared library automatically hardcodes DIR into the library
15155 # and all subsequent libraries and executables linked against it.
15156 hardcode_automatic=$hardcode_automatic_GCJ
15158 # Variables whose values should be saved in libtool wrapper scripts and
15159 # restored at relink time.
15160 variables_saved_for_relink="$variables_saved_for_relink"
15162 # Whether libtool must link a program against all its dependency libraries.
15163 link_all_deplibs=$link_all_deplibs_GCJ
15165 # Compile-time system search path for libraries
15166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15168 # Run-time system search path for libraries
15169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15171 # Fix the shell variable \$srcfile for the compiler.
15172 fix_srcfile_path="$fix_srcfile_path_GCJ"
15174 # Set to yes if exported symbols are required.
15175 always_export_symbols=$always_export_symbols_GCJ
15177 # The commands to list exported symbols.
15178 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15180 # The commands to extract the exported symbol list from a shared archive.
15181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15183 # Symbols that should not be listed in the preloaded symbols.
15184 exclude_expsyms=$lt_exclude_expsyms_GCJ
15186 # Symbols that must always be exported.
15187 include_expsyms=$lt_include_expsyms_GCJ
15189 # ### END LIBTOOL TAG CONFIG: $tagname
15191 __EOF__
15194 else
15195 # If there is no Makefile yet, we rely on a make rule to execute
15196 # `config.status --recheck' to rerun these tests and create the
15197 # libtool script then.
15198 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15199 if test -f "$ltmain_in"; then
15200 test -f Makefile && make "$ltmain"
15201 fi
15202 fi
15205 ac_ext=c
15206 ac_cpp='$CPP $CPPFLAGS'
15207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15211 CC="$lt_save_CC"
15213 else
15214 tagname=""
15215 fi
15216 ;;
15218 RC)
15222 # Source file extension for RC test sources.
15223 ac_ext=rc
15225 # Object file extension for compiled RC test sources.
15226 objext=o
15227 objext_RC=$objext
15229 # Code to be used in simple compile tests
15230 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15232 # Code to be used in simple link tests
15233 lt_simple_link_test_code="$lt_simple_compile_test_code"
15235 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15237 # If no C compiler was specified, use CC.
15238 LTCC=${LTCC-"$CC"}
15240 # If no C compiler flags were specified, use CFLAGS.
15241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15243 # Allow CC to be a program name with arguments.
15244 compiler=$CC
15247 # save warnings/boilerplate of simple test code
15248 ac_outfile=conftest.$ac_objext
15249 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15250 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15251 _lt_compiler_boilerplate=`cat conftest.err`
15252 $rm conftest*
15254 ac_outfile=conftest.$ac_objext
15255 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15256 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15257 _lt_linker_boilerplate=`cat conftest.err`
15258 $rm conftest*
15261 # Allow CC to be a program name with arguments.
15262 lt_save_CC="$CC"
15263 CC=${RC-"windres"}
15264 compiler=$CC
15265 compiler_RC=$CC
15266 for cc_temp in $compiler""; do
15267 case $cc_temp in
15268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15270 \-*) ;;
15271 *) break;;
15272 esac
15273 done
15274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15276 lt_cv_prog_compiler_c_o_RC=yes
15278 # The else clause should only fire when bootstrapping the
15279 # libtool distribution, otherwise you forgot to ship ltmain.sh
15280 # with your package, and you will get complaints that there are
15281 # no rules to generate ltmain.sh.
15282 if test -f "$ltmain"; then
15283 # See if we are running on zsh, and set the options which allow our commands through
15284 # without removal of \ escapes.
15285 if test -n "${ZSH_VERSION+set}" ; then
15286 setopt NO_GLOB_SUBST
15287 fi
15288 # Now quote all the things that may contain metacharacters while being
15289 # careful not to overquote the AC_SUBSTed values. We take copies of the
15290 # variables and quote the copies for generation of the libtool script.
15291 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15292 SED SHELL STRIP \
15293 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15294 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15295 deplibs_check_method reload_flag reload_cmds need_locks \
15296 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15297 lt_cv_sys_global_symbol_to_c_name_address \
15298 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15299 old_postinstall_cmds old_postuninstall_cmds \
15300 compiler_RC \
15301 CC_RC \
15302 LD_RC \
15303 lt_prog_compiler_wl_RC \
15304 lt_prog_compiler_pic_RC \
15305 lt_prog_compiler_static_RC \
15306 lt_prog_compiler_no_builtin_flag_RC \
15307 export_dynamic_flag_spec_RC \
15308 thread_safe_flag_spec_RC \
15309 whole_archive_flag_spec_RC \
15310 enable_shared_with_static_runtimes_RC \
15311 old_archive_cmds_RC \
15312 old_archive_from_new_cmds_RC \
15313 predep_objects_RC \
15314 postdep_objects_RC \
15315 predeps_RC \
15316 postdeps_RC \
15317 compiler_lib_search_path_RC \
15318 archive_cmds_RC \
15319 archive_expsym_cmds_RC \
15320 postinstall_cmds_RC \
15321 postuninstall_cmds_RC \
15322 old_archive_from_expsyms_cmds_RC \
15323 allow_undefined_flag_RC \
15324 no_undefined_flag_RC \
15325 export_symbols_cmds_RC \
15326 hardcode_libdir_flag_spec_RC \
15327 hardcode_libdir_flag_spec_ld_RC \
15328 hardcode_libdir_separator_RC \
15329 hardcode_automatic_RC \
15330 module_cmds_RC \
15331 module_expsym_cmds_RC \
15332 lt_cv_prog_compiler_c_o_RC \
15333 exclude_expsyms_RC \
15334 include_expsyms_RC; do
15336 case $var in
15337 old_archive_cmds_RC | \
15338 old_archive_from_new_cmds_RC | \
15339 archive_cmds_RC | \
15340 archive_expsym_cmds_RC | \
15341 module_cmds_RC | \
15342 module_expsym_cmds_RC | \
15343 old_archive_from_expsyms_cmds_RC | \
15344 export_symbols_cmds_RC | \
15345 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15346 postinstall_cmds | postuninstall_cmds | \
15347 old_postinstall_cmds | old_postuninstall_cmds | \
15348 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15349 # Double-quote double-evaled strings.
15350 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15351 ;;
15352 *)
15353 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15354 ;;
15355 esac
15356 done
15358 case $lt_echo in
15359 *'\$0 --fallback-echo"')
15360 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15361 ;;
15362 esac
15364 cfgfile="$ofile"
15366 cat <<__EOF__ >> "$cfgfile"
15367 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15369 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15371 # Shell to use when invoking shell scripts.
15372 SHELL=$lt_SHELL
15374 # Whether or not to build shared libraries.
15375 build_libtool_libs=$enable_shared
15377 # Whether or not to build static libraries.
15378 build_old_libs=$enable_static
15380 # Whether or not to add -lc for building shared libraries.
15381 build_libtool_need_lc=$archive_cmds_need_lc_RC
15383 # Whether or not to disallow shared libs when runtime libs are static
15384 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15386 # Whether or not to optimize for fast installation.
15387 fast_install=$enable_fast_install
15389 # The host system.
15390 host_alias=$host_alias
15391 host=$host
15392 host_os=$host_os
15394 # The build system.
15395 build_alias=$build_alias
15396 build=$build
15397 build_os=$build_os
15399 # An echo program that does not interpret backslashes.
15400 echo=$lt_echo
15402 # The archiver.
15403 AR=$lt_AR
15404 AR_FLAGS=$lt_AR_FLAGS
15406 # A C compiler.
15407 LTCC=$lt_LTCC
15409 # LTCC compiler flags.
15410 LTCFLAGS=$lt_LTCFLAGS
15412 # A language-specific compiler.
15413 CC=$lt_compiler_RC
15415 # Is the compiler the GNU C compiler?
15416 with_gcc=$GCC_RC
15418 # An ERE matcher.
15419 EGREP=$lt_EGREP
15421 # The linker used to build libraries.
15422 LD=$lt_LD_RC
15424 # Whether we need hard or soft links.
15425 LN_S=$lt_LN_S
15427 # A BSD-compatible nm program.
15428 NM=$lt_NM
15430 # A symbol stripping program
15431 STRIP=$lt_STRIP
15433 # Used to examine libraries when file_magic_cmd begins "file"
15434 MAGIC_CMD=$MAGIC_CMD
15436 # Used on cygwin: DLL creation program.
15437 DLLTOOL="$DLLTOOL"
15439 # Used on cygwin: object dumper.
15440 OBJDUMP="$OBJDUMP"
15442 # Used on cygwin: assembler.
15443 AS="$AS"
15445 # The name of the directory that contains temporary libtool files.
15446 objdir=$objdir
15448 # How to create reloadable object files.
15449 reload_flag=$lt_reload_flag
15450 reload_cmds=$lt_reload_cmds
15452 # How to pass a linker flag through the compiler.
15453 wl=$lt_lt_prog_compiler_wl_RC
15455 # Object file suffix (normally "o").
15456 objext="$ac_objext"
15458 # Old archive suffix (normally "a").
15459 libext="$libext"
15461 # Shared library suffix (normally ".so").
15462 shrext_cmds='$shrext_cmds'
15464 # Executable file suffix (normally "").
15465 exeext="$exeext"
15467 # Additional compiler flags for building library objects.
15468 pic_flag=$lt_lt_prog_compiler_pic_RC
15469 pic_mode=$pic_mode
15471 # What is the maximum length of a command?
15472 max_cmd_len=$lt_cv_sys_max_cmd_len
15474 # Does compiler simultaneously support -c and -o options?
15475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15477 # Must we lock files when doing compilation?
15478 need_locks=$lt_need_locks
15480 # Do we need the lib prefix for modules?
15481 need_lib_prefix=$need_lib_prefix
15483 # Do we need a version for libraries?
15484 need_version=$need_version
15486 # Whether dlopen is supported.
15487 dlopen_support=$enable_dlopen
15489 # Whether dlopen of programs is supported.
15490 dlopen_self=$enable_dlopen_self
15492 # Whether dlopen of statically linked programs is supported.
15493 dlopen_self_static=$enable_dlopen_self_static
15495 # Compiler flag to prevent dynamic linking.
15496 link_static_flag=$lt_lt_prog_compiler_static_RC
15498 # Compiler flag to turn off builtin functions.
15499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15501 # Compiler flag to allow reflexive dlopens.
15502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15504 # Compiler flag to generate shared objects directly from archives.
15505 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15507 # Compiler flag to generate thread-safe objects.
15508 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15510 # Library versioning type.
15511 version_type=$version_type
15513 # Format of library name prefix.
15514 libname_spec=$lt_libname_spec
15516 # List of archive names. First name is the real one, the rest are links.
15517 # The last name is the one that the linker finds with -lNAME.
15518 library_names_spec=$lt_library_names_spec
15520 # The coded name of the library, if different from the real name.
15521 soname_spec=$lt_soname_spec
15523 # Commands used to build and install an old-style archive.
15524 RANLIB=$lt_RANLIB
15525 old_archive_cmds=$lt_old_archive_cmds_RC
15526 old_postinstall_cmds=$lt_old_postinstall_cmds
15527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15529 # Create an old-style archive from a shared archive.
15530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15532 # Create a temporary old-style archive to link instead of a shared archive.
15533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15535 # Commands used to build and install a shared archive.
15536 archive_cmds=$lt_archive_cmds_RC
15537 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15538 postinstall_cmds=$lt_postinstall_cmds
15539 postuninstall_cmds=$lt_postuninstall_cmds
15541 # Commands used to build a loadable module (assumed same as above if empty)
15542 module_cmds=$lt_module_cmds_RC
15543 module_expsym_cmds=$lt_module_expsym_cmds_RC
15545 # Commands to strip libraries.
15546 old_striplib=$lt_old_striplib
15547 striplib=$lt_striplib
15549 # Dependencies to place before the objects being linked to create a
15550 # shared library.
15551 predep_objects=$lt_predep_objects_RC
15553 # Dependencies to place after the objects being linked to create a
15554 # shared library.
15555 postdep_objects=$lt_postdep_objects_RC
15557 # Dependencies to place before the objects being linked to create a
15558 # shared library.
15559 predeps=$lt_predeps_RC
15561 # Dependencies to place after the objects being linked to create a
15562 # shared library.
15563 postdeps=$lt_postdeps_RC
15565 # The library search path used internally by the compiler when linking
15566 # a shared library.
15567 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15569 # Method to check whether dependent libraries are shared objects.
15570 deplibs_check_method=$lt_deplibs_check_method
15572 # Command to use when deplibs_check_method == file_magic.
15573 file_magic_cmd=$lt_file_magic_cmd
15575 # Flag that allows shared libraries with undefined symbols to be built.
15576 allow_undefined_flag=$lt_allow_undefined_flag_RC
15578 # Flag that forces no undefined symbols.
15579 no_undefined_flag=$lt_no_undefined_flag_RC
15581 # Commands used to finish a libtool library installation in a directory.
15582 finish_cmds=$lt_finish_cmds
15584 # Same as above, but a single script fragment to be evaled but not shown.
15585 finish_eval=$lt_finish_eval
15587 # Take the output of nm and produce a listing of raw symbols and C names.
15588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15590 # Transform the output of nm in a proper C declaration
15591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15593 # Transform the output of nm in a C name address pair
15594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15596 # This is the shared library runtime path variable.
15597 runpath_var=$runpath_var
15599 # This is the shared library path variable.
15600 shlibpath_var=$shlibpath_var
15602 # Is shlibpath searched before the hard-coded library search path?
15603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15605 # How to hardcode a shared library path into an executable.
15606 hardcode_action=$hardcode_action_RC
15608 # Whether we should hardcode library paths into libraries.
15609 hardcode_into_libs=$hardcode_into_libs
15611 # Flag to hardcode \$libdir into a binary during linking.
15612 # This must work even if \$libdir does not exist.
15613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15615 # If ld is used when linking, flag to hardcode \$libdir into
15616 # a binary during linking. This must work even if \$libdir does
15617 # not exist.
15618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15620 # Whether we need a single -rpath flag with a separated argument.
15621 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15624 # resulting binary.
15625 hardcode_direct=$hardcode_direct_RC
15627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15628 # resulting binary.
15629 hardcode_minus_L=$hardcode_minus_L_RC
15631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15632 # the resulting binary.
15633 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15635 # Set to yes if building a shared library automatically hardcodes DIR into the library
15636 # and all subsequent libraries and executables linked against it.
15637 hardcode_automatic=$hardcode_automatic_RC
15639 # Variables whose values should be saved in libtool wrapper scripts and
15640 # restored at relink time.
15641 variables_saved_for_relink="$variables_saved_for_relink"
15643 # Whether libtool must link a program against all its dependency libraries.
15644 link_all_deplibs=$link_all_deplibs_RC
15646 # Compile-time system search path for libraries
15647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15649 # Run-time system search path for libraries
15650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15652 # Fix the shell variable \$srcfile for the compiler.
15653 fix_srcfile_path="$fix_srcfile_path_RC"
15655 # Set to yes if exported symbols are required.
15656 always_export_symbols=$always_export_symbols_RC
15658 # The commands to list exported symbols.
15659 export_symbols_cmds=$lt_export_symbols_cmds_RC
15661 # The commands to extract the exported symbol list from a shared archive.
15662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15664 # Symbols that should not be listed in the preloaded symbols.
15665 exclude_expsyms=$lt_exclude_expsyms_RC
15667 # Symbols that must always be exported.
15668 include_expsyms=$lt_include_expsyms_RC
15670 # ### END LIBTOOL TAG CONFIG: $tagname
15672 __EOF__
15675 else
15676 # If there is no Makefile yet, we rely on a make rule to execute
15677 # `config.status --recheck' to rerun these tests and create the
15678 # libtool script then.
15679 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15680 if test -f "$ltmain_in"; then
15681 test -f Makefile && make "$ltmain"
15682 fi
15683 fi
15686 ac_ext=c
15687 ac_cpp='$CPP $CPPFLAGS'
15688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15692 CC="$lt_save_CC"
15694 ;;
15696 *)
15697 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
15698 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
15699 { (exit 1); exit 1; }; }
15700 ;;
15701 esac
15703 # Append the new tag name to the list of available tags.
15704 if test -n "$tagname" ; then
15705 available_tags="$available_tags $tagname"
15706 fi
15707 fi
15708 done
15709 IFS="$lt_save_ifs"
15711 # Now substitute the updated list of available tags.
15712 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15713 mv "${ofile}T" "$ofile"
15714 chmod +x "$ofile"
15715 else
15716 rm -f "${ofile}T"
15717 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
15718 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
15719 { (exit 1); exit 1; }; }
15720 fi
15721 fi
15725 # This can be used to rebuild libtool when needed
15726 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
15728 # Always use our own libtool.
15729 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15731 # Prevent multiple expansion
15748 # Checks for programs.
15749 ac_ext=c
15750 ac_cpp='$CPP $CPPFLAGS'
15751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15754 if test -n "$ac_tool_prefix"; then
15755 for ac_prog in gcc
15756 do
15757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15759 echo "$as_me:$LINENO: checking for $ac_word" >&5
15760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15761 if test "${ac_cv_prog_CC+set}" = set; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15763 else
15764 if test -n "$CC"; then
15765 ac_cv_prog_CC="$CC" # Let the user override the test.
15766 else
15767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15768 for as_dir in $PATH
15769 do
15770 IFS=$as_save_IFS
15771 test -z "$as_dir" && as_dir=.
15772 for ac_exec_ext in '' $ac_executable_extensions; do
15773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15776 break 2
15777 fi
15778 done
15779 done
15781 fi
15782 fi
15783 CC=$ac_cv_prog_CC
15784 if test -n "$CC"; then
15785 echo "$as_me:$LINENO: result: $CC" >&5
15786 echo "${ECHO_T}$CC" >&6
15787 else
15788 echo "$as_me:$LINENO: result: no" >&5
15789 echo "${ECHO_T}no" >&6
15790 fi
15792 test -n "$CC" && break
15793 done
15794 fi
15795 if test -z "$CC"; then
15796 ac_ct_CC=$CC
15797 for ac_prog in gcc
15798 do
15799 # Extract the first word of "$ac_prog", so it can be a program name with args.
15800 set dummy $ac_prog; ac_word=$2
15801 echo "$as_me:$LINENO: checking for $ac_word" >&5
15802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15804 echo $ECHO_N "(cached) $ECHO_C" >&6
15805 else
15806 if test -n "$ac_ct_CC"; then
15807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15808 else
15809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15810 for as_dir in $PATH
15811 do
15812 IFS=$as_save_IFS
15813 test -z "$as_dir" && as_dir=.
15814 for ac_exec_ext in '' $ac_executable_extensions; do
15815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15816 ac_cv_prog_ac_ct_CC="$ac_prog"
15817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15818 break 2
15819 fi
15820 done
15821 done
15823 fi
15824 fi
15825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15826 if test -n "$ac_ct_CC"; then
15827 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15828 echo "${ECHO_T}$ac_ct_CC" >&6
15829 else
15830 echo "$as_me:$LINENO: result: no" >&5
15831 echo "${ECHO_T}no" >&6
15832 fi
15834 test -n "$ac_ct_CC" && break
15835 done
15837 CC=$ac_ct_CC
15838 fi
15841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15842 See \`config.log' for more details." >&5
15843 echo "$as_me: error: no acceptable C compiler found in \$PATH
15844 See \`config.log' for more details." >&2;}
15845 { (exit 1); exit 1; }; }
15847 # Provide some information about the compiler.
15848 echo "$as_me:$LINENO:" \
15849 "checking for C compiler version" >&5
15850 ac_compiler=`set X $ac_compile; echo $2`
15851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15852 (eval $ac_compiler --version </dev/null >&5) 2>&5
15853 ac_status=$?
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); }
15856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15857 (eval $ac_compiler -v </dev/null >&5) 2>&5
15858 ac_status=$?
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); }
15861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15862 (eval $ac_compiler -V </dev/null >&5) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }
15867 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15868 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
15869 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15870 echo $ECHO_N "(cached) $ECHO_C" >&6
15871 else
15872 cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h. */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15879 int
15880 main ()
15881 {
15882 #ifndef __GNUC__
15883 choke me
15884 #endif
15886 ;
15887 return 0;
15888 }
15889 _ACEOF
15890 rm -f conftest.$ac_objext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15892 (eval $ac_compile) 2>conftest.er1
15893 ac_status=$?
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -z "$ac_c_werror_flag"
15900 || test ! -s conftest.err'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest.$ac_objext'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15909 ac_status=$?
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; }; then
15912 ac_compiler_gnu=yes
15913 else
15914 echo "$as_me: failed program was:" >&5
15915 sed 's/^/| /' conftest.$ac_ext >&5
15917 ac_compiler_gnu=no
15918 fi
15919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15920 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15922 fi
15923 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15924 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
15925 GCC=`test $ac_compiler_gnu = yes && echo yes`
15926 ac_test_CFLAGS=${CFLAGS+set}
15927 ac_save_CFLAGS=$CFLAGS
15928 CFLAGS="-g"
15929 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15930 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15931 if test "${ac_cv_prog_cc_g+set}" = set; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h. */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h. */
15941 int
15942 main ()
15943 {
15945 ;
15946 return 0;
15947 }
15948 _ACEOF
15949 rm -f conftest.$ac_objext
15950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15951 (eval $ac_compile) 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag"
15959 || test ! -s conftest.err'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15962 ac_status=$?
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; } &&
15965 { ac_try='test -s conftest.$ac_objext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_prog_cc_g=yes
15972 else
15973 echo "$as_me: failed program was:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_cv_prog_cc_g=no
15977 fi
15978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15979 fi
15980 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15982 if test "$ac_test_CFLAGS" = set; then
15983 CFLAGS=$ac_save_CFLAGS
15984 elif test $ac_cv_prog_cc_g = yes; then
15985 if test "$GCC" = yes; then
15986 CFLAGS="-g -O2"
15987 else
15988 CFLAGS="-g"
15989 fi
15990 else
15991 if test "$GCC" = yes; then
15992 CFLAGS="-O2"
15993 else
15994 CFLAGS=
15995 fi
15996 fi
15997 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
15998 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
15999 if test "${ac_cv_prog_cc_stdc+set}" = set; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 else
16002 ac_cv_prog_cc_stdc=no
16003 ac_save_CC=$CC
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 #include <stdarg.h>
16011 #include <stdio.h>
16012 #include <sys/types.h>
16013 #include <sys/stat.h>
16014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16015 struct buf { int x; };
16016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16017 static char *e (p, i)
16018 char **p;
16019 int i;
16020 {
16021 return p[i];
16022 }
16023 static char *f (char * (*g) (char **, int), char **p, ...)
16024 {
16025 char *s;
16026 va_list v;
16027 va_start (v,p);
16028 s = g (p, va_arg (v,int));
16029 va_end (v);
16030 return s;
16031 }
16033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16034 function prototypes and stuff, but not '\xHH' hex character constants.
16035 These don't provoke an error unfortunately, instead are silently treated
16036 as 'x'. The following induces an error, until -std1 is added to get
16037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16038 array size at least. It's necessary to write '\x00'==0 to get something
16039 that's true only with -std1. */
16040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16042 int test (int i, double x);
16043 struct s1 {int (*f) (int a);};
16044 struct s2 {int (*f) (double a);};
16045 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16046 int argc;
16047 char **argv;
16048 int
16049 main ()
16050 {
16051 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16052 ;
16053 return 0;
16054 }
16055 _ACEOF
16056 # Don't try gcc -ansi; that turns off useful extensions and
16057 # breaks some systems' header files.
16058 # AIX -qlanglvl=ansi
16059 # Ultrix and OSF/1 -std1
16060 # HP-UX 10.20 and later -Ae
16061 # HP-UX older versions -Aa -D_HPUX_SOURCE
16062 # SVR4 -Xc -D__EXTENSIONS__
16063 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16064 do
16065 CC="$ac_save_CC $ac_arg"
16066 rm -f conftest.$ac_objext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16068 (eval $ac_compile) 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag"
16076 || test ! -s conftest.err'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 ac_cv_prog_cc_stdc=$ac_arg
16089 break
16090 else
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 fi
16095 rm -f conftest.err conftest.$ac_objext
16096 done
16097 rm -f conftest.$ac_ext conftest.$ac_objext
16098 CC=$ac_save_CC
16100 fi
16102 case "x$ac_cv_prog_cc_stdc" in
16103 x|xno)
16104 echo "$as_me:$LINENO: result: none needed" >&5
16105 echo "${ECHO_T}none needed" >&6 ;;
16106 *)
16107 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
16108 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
16109 CC="$CC $ac_cv_prog_cc_stdc" ;;
16110 esac
16112 # Some people use a C++ compiler to compile C. Since we use `exit',
16113 # in C++ we need to declare it. In case someone uses the same compiler
16114 # for both compiling C and C++ we need to have the C++ compiler decide
16115 # the declaration of exit, since it's the most demanding environment.
16116 cat >conftest.$ac_ext <<_ACEOF
16117 #ifndef __cplusplus
16118 choke me
16119 #endif
16120 _ACEOF
16121 rm -f conftest.$ac_objext
16122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16123 (eval $ac_compile) 2>conftest.er1
16124 ac_status=$?
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try='test -z "$ac_c_werror_flag"
16131 || test ! -s conftest.err'
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; } &&
16137 { ac_try='test -s conftest.$ac_objext'
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16140 ac_status=$?
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 for ac_declaration in \
16144 '' \
16145 'extern "C" void std::exit (int) throw (); using std::exit;' \
16146 'extern "C" void std::exit (int); using std::exit;' \
16147 'extern "C" void exit (int) throw ();' \
16148 'extern "C" void exit (int);' \
16149 'void exit (int);'
16150 do
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h. */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h. */
16157 $ac_declaration
16158 #include <stdlib.h>
16159 int
16160 main ()
16161 {
16162 exit (42);
16163 ;
16164 return 0;
16165 }
16166 _ACEOF
16167 rm -f conftest.$ac_objext
16168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16169 (eval $ac_compile) 2>conftest.er1
16170 ac_status=$?
16171 grep -v '^ *+' conftest.er1 >conftest.err
16172 rm -f conftest.er1
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } &&
16176 { ac_try='test -z "$ac_c_werror_flag"
16177 || test ! -s conftest.err'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16180 ac_status=$?
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; } &&
16183 { ac_try='test -s conftest.$ac_objext'
16184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16186 ac_status=$?
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 :
16190 else
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16194 continue
16195 fi
16196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203 $ac_declaration
16204 int
16205 main ()
16206 {
16207 exit (42);
16208 ;
16209 return 0;
16210 }
16211 _ACEOF
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214 (eval $ac_compile) 2>conftest.er1
16215 ac_status=$?
16216 grep -v '^ *+' conftest.er1 >conftest.err
16217 rm -f conftest.er1
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag"
16222 || test ! -s conftest.err'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest.$ac_objext'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16231 ac_status=$?
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234 break
16235 else
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 fi
16240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16241 done
16242 rm -f conftest*
16243 if test -n "$ac_declaration"; then
16244 echo '#ifdef __cplusplus' >>confdefs.h
16245 echo $ac_declaration >>confdefs.h
16246 echo '#endif' >>confdefs.h
16247 fi
16249 else
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 fi
16254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16255 ac_ext=c
16256 ac_cpp='$CPP $CPPFLAGS'
16257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16261 depcc="$CC" am_compiler_list=
16263 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16264 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16265 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
16266 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 else
16268 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16269 # We make a subdir and do the tests there. Otherwise we can end up
16270 # making bogus files that we don't know about and never remove. For
16271 # instance it was reported that on HP-UX the gcc test will end up
16272 # making a dummy file named `D' -- because `-MD' means `put the output
16273 # in D'.
16274 mkdir conftest.dir
16275 # Copy depcomp to subdir because otherwise we won't find it if we're
16276 # using a relative directory.
16277 cp "$am_depcomp" conftest.dir
16278 cd conftest.dir
16279 # We will build objects and dependencies in a subdirectory because
16280 # it helps to detect inapplicable dependency modes. For instance
16281 # both Tru64's cc and ICC support -MD to output dependencies as a
16282 # side effect of compilation, but ICC will put the dependencies in
16283 # the current directory while Tru64 will put them in the object
16284 # directory.
16285 mkdir sub
16287 am_cv_CC_dependencies_compiler_type=none
16288 if test "$am_compiler_list" = ""; then
16289 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16290 fi
16291 for depmode in $am_compiler_list; do
16292 # Setup a source with many dependencies, because some compilers
16293 # like to wrap large dependency lists on column 80 (with \), and
16294 # we should not choose a depcomp mode which is confused by this.
16295 #
16296 # We need to recreate these files for each test, as the compiler may
16297 # overwrite some of them when testing with obscure command lines.
16298 # This happens at least with the AIX C compiler.
16299 : > sub/conftest.c
16300 for i in 1 2 3 4 5 6; do
16301 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16302 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16303 # Solaris 8's {/usr,}/bin/sh.
16304 touch sub/conftst$i.h
16305 done
16306 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16308 case $depmode in
16309 nosideeffect)
16310 # after this tag, mechanisms are not by side-effect, so they'll
16311 # only be used when explicitly requested
16312 if test "x$enable_dependency_tracking" = xyes; then
16313 continue
16314 else
16315 break
16316 fi
16317 ;;
16318 none) break ;;
16319 esac
16320 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16321 # mode. It turns out that the SunPro C++ compiler does not properly
16322 # handle `-M -o', and we need to detect this.
16323 if depmode=$depmode \
16324 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16325 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16326 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16327 >/dev/null 2>conftest.err &&
16328 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16329 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16330 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16331 # icc doesn't choke on unknown options, it will just issue warnings
16332 # or remarks (even with -Werror). So we grep stderr for any message
16333 # that says an option was ignored or not supported.
16334 # When given -MP, icc 7.0 and 7.1 complain thusly:
16335 # icc: Command line warning: ignoring option '-M'; no argument required
16336 # The diagnosis changed in icc 8.0:
16337 # icc: Command line remark: option '-MP' not supported
16338 if (grep 'ignoring option' conftest.err ||
16339 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16340 am_cv_CC_dependencies_compiler_type=$depmode
16341 break
16342 fi
16343 fi
16344 done
16346 cd ..
16347 rm -rf conftest.dir
16348 else
16349 am_cv_CC_dependencies_compiler_type=none
16350 fi
16352 fi
16353 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
16354 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
16355 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16359 if
16360 test "x$enable_dependency_tracking" != xno \
16361 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16362 am__fastdepCC_TRUE=
16363 am__fastdepCC_FALSE='#'
16364 else
16365 am__fastdepCC_TRUE='#'
16366 am__fastdepCC_FALSE=
16367 fi
16370 # Find a good install program. We prefer a C program (faster),
16371 # so one script is as good as another. But avoid the broken or
16372 # incompatible versions:
16373 # SysV /etc/install, /usr/sbin/install
16374 # SunOS /usr/etc/install
16375 # IRIX /sbin/install
16376 # AIX /bin/install
16377 # AmigaOS /C/install, which installs bootblocks on floppy discs
16378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16381 # OS/2's system install, which has a completely different semantic
16382 # ./install, which can be erroneously created by make from ./install.sh.
16383 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16384 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16385 if test -z "$INSTALL"; then
16386 if test "${ac_cv_path_install+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388 else
16389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16390 for as_dir in $PATH
16391 do
16392 IFS=$as_save_IFS
16393 test -z "$as_dir" && as_dir=.
16394 # Account for people who put trailing slashes in PATH elements.
16395 case $as_dir/ in
16396 ./ | .// | /cC/* | \
16397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16398 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16399 /usr/ucb/* ) ;;
16400 *)
16401 # OSF1 and SCO ODT 3.0 have their own names for install.
16402 # Don't use installbsd from OSF since it installs stuff as root
16403 # by default.
16404 for ac_prog in ginstall scoinst install; do
16405 for ac_exec_ext in '' $ac_executable_extensions; do
16406 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16407 if test $ac_prog = install &&
16408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16409 # AIX install. It has an incompatible calling convention.
16410 :
16411 elif test $ac_prog = install &&
16412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16413 # program-specific install script used by HP pwplus--don't use.
16414 :
16415 else
16416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16417 break 3
16418 fi
16419 fi
16420 done
16421 done
16422 ;;
16423 esac
16424 done
16427 fi
16428 if test "${ac_cv_path_install+set}" = set; then
16429 INSTALL=$ac_cv_path_install
16430 else
16431 # As a last resort, use the slow shell script. We don't cache a
16432 # path for INSTALL within a source directory, because that will
16433 # break other packages using the cache if that directory is
16434 # removed, or if the path is relative.
16435 INSTALL=$ac_install_sh
16436 fi
16437 fi
16438 echo "$as_me:$LINENO: result: $INSTALL" >&5
16439 echo "${ECHO_T}$INSTALL" >&6
16441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16442 # It thinks the first close brace ends the variable substitution.
16443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16450 # Checks for header files.
16451 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16452 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16453 if test "${ac_cv_header_stdc+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 else
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 #include <stdlib.h>
16463 #include <stdarg.h>
16464 #include <string.h>
16465 #include <float.h>
16467 int
16468 main ()
16469 {
16471 ;
16472 return 0;
16473 }
16474 _ACEOF
16475 rm -f conftest.$ac_objext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16477 (eval $ac_compile) 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try='test -z "$ac_c_werror_flag"
16485 || test ! -s conftest.err'
16486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487 (eval $ac_try) 2>&5
16488 ac_status=$?
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); }; } &&
16491 { ac_try='test -s conftest.$ac_objext'
16492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493 (eval $ac_try) 2>&5
16494 ac_status=$?
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); }; }; then
16497 ac_cv_header_stdc=yes
16498 else
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ac_cv_header_stdc=no
16503 fi
16504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16506 if test $ac_cv_header_stdc = yes; then
16507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16508 cat >conftest.$ac_ext <<_ACEOF
16509 /* confdefs.h. */
16510 _ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514 #include <string.h>
16516 _ACEOF
16517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16518 $EGREP "memchr" >/dev/null 2>&1; then
16519 :
16520 else
16521 ac_cv_header_stdc=no
16522 fi
16523 rm -f conftest*
16525 fi
16527 if test $ac_cv_header_stdc = yes; then
16528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16529 cat >conftest.$ac_ext <<_ACEOF
16530 /* confdefs.h. */
16531 _ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 #include <stdlib.h>
16537 _ACEOF
16538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16539 $EGREP "free" >/dev/null 2>&1; then
16540 :
16541 else
16542 ac_cv_header_stdc=no
16543 fi
16544 rm -f conftest*
16546 fi
16548 if test $ac_cv_header_stdc = yes; then
16549 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16550 if test "$cross_compiling" = yes; then
16551 :
16552 else
16553 cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h. */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559 #include <ctype.h>
16560 #if ((' ' & 0x0FF) == 0x020)
16561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16563 #else
16564 # define ISLOWER(c) \
16565 (('a' <= (c) && (c) <= 'i') \
16566 || ('j' <= (c) && (c) <= 'r') \
16567 || ('s' <= (c) && (c) <= 'z'))
16568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16569 #endif
16571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16572 int
16573 main ()
16574 {
16575 int i;
16576 for (i = 0; i < 256; i++)
16577 if (XOR (islower (i), ISLOWER (i))
16578 || toupper (i) != TOUPPER (i))
16579 exit(2);
16580 exit (0);
16581 }
16582 _ACEOF
16583 rm -f conftest$ac_exeext
16584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585 (eval $ac_link) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590 (eval $ac_try) 2>&5
16591 ac_status=$?
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 :
16595 else
16596 echo "$as_me: program exited with status $ac_status" >&5
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 ( exit $ac_status )
16601 ac_cv_header_stdc=no
16602 fi
16603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16604 fi
16605 fi
16606 fi
16607 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16608 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16609 if test $ac_cv_header_stdc = yes; then
16611 cat >>confdefs.h <<\_ACEOF
16612 #define STDC_HEADERS 1
16613 _ACEOF
16615 fi
16624 for ac_header in fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
16625 do
16626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16628 echo "$as_me:$LINENO: checking for $ac_header" >&5
16629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 fi
16633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16635 else
16636 # Is the header compilable?
16637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16639 cat >conftest.$ac_ext <<_ACEOF
16640 /* confdefs.h. */
16641 _ACEOF
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16645 $ac_includes_default
16646 #include <$ac_header>
16647 _ACEOF
16648 rm -f conftest.$ac_objext
16649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16650 (eval $ac_compile) 2>conftest.er1
16651 ac_status=$?
16652 grep -v '^ *+' conftest.er1 >conftest.err
16653 rm -f conftest.er1
16654 cat conftest.err >&5
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); } &&
16657 { ac_try='test -z "$ac_c_werror_flag"
16658 || test ! -s conftest.err'
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; } &&
16664 { ac_try='test -s conftest.$ac_objext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_header_compiler=yes
16671 else
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_header_compiler=no
16676 fi
16677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16679 echo "${ECHO_T}$ac_header_compiler" >&6
16681 # Is the header present?
16682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16684 cat >conftest.$ac_ext <<_ACEOF
16685 /* confdefs.h. */
16686 _ACEOF
16687 cat confdefs.h >>conftest.$ac_ext
16688 cat >>conftest.$ac_ext <<_ACEOF
16689 /* end confdefs.h. */
16690 #include <$ac_header>
16691 _ACEOF
16692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16694 ac_status=$?
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } >/dev/null; then
16700 if test -s conftest.err; then
16701 ac_cpp_err=$ac_c_preproc_warn_flag
16702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16703 else
16704 ac_cpp_err=
16705 fi
16706 else
16707 ac_cpp_err=yes
16708 fi
16709 if test -z "$ac_cpp_err"; then
16710 ac_header_preproc=yes
16711 else
16712 echo "$as_me: failed program was:" >&5
16713 sed 's/^/| /' conftest.$ac_ext >&5
16715 ac_header_preproc=no
16716 fi
16717 rm -f conftest.err conftest.$ac_ext
16718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16719 echo "${ECHO_T}$ac_header_preproc" >&6
16721 # So? What about this header?
16722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16723 yes:no: )
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16728 ac_header_preproc=yes
16729 ;;
16730 no:yes:* )
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16743 (
16744 cat <<\_ASBOX
16745 ## --------------------------------- ##
16746 ## Report this to the TI IPC lists. ##
16747 ## --------------------------------- ##
16748 _ASBOX
16749 ) |
16750 sed "s/^/$as_me: WARNING: /" >&2
16751 ;;
16752 esac
16753 echo "$as_me:$LINENO: checking for $ac_header" >&5
16754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758 eval "$as_ac_Header=\$ac_header_preproc"
16759 fi
16760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16763 fi
16764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16765 cat >>confdefs.h <<_ACEOF
16766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16767 _ACEOF
16769 fi
16771 done
16774 # Export CFLAGS and LDFLAGS to Makefile(s)
16778 # Add config variables/options and check them
16779 # Note that 6614 isn't documented and, though it may work, is planned for removal
16785 # Test platform variable for setting
16786 if test "x$PLATFORM" = "xomapl138"; then
16787 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16788 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16789 else
16790 if test "x$PLATFORM" = "xtci6614"; then
16791 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16792 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16793 else
16794 if test "x$PLATFORM" = "xtci6636"; then
16795 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16796 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16797 else
16798 if test "x$PLATFORM" = "xtci6638"; then
16799 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16800 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16801 else
16802 if test "x$PLATFORM" = "xomap54xx_smp"; then
16803 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16804 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16805 else
16806 if test "x$PLATFORM" = "xdra7xx"; then
16807 { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16808 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16809 else
16810 if test "x$PLATFORM" = "x"; then
16811 { echo "$as_me:$LINENO: PLATFORM is not set. All supported platforms will be built ...." >&5
16812 echo "$as_me: PLATFORM is not set. All supported platforms will be built ...." >&6;}
16813 else
16814 { { echo "$as_me:$LINENO: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&5
16815 echo "$as_me: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&2;}
16816 { (exit 1); exit 1; }; }
16817 fi
16819 fi
16821 fi
16823 fi
16825 fi
16827 fi
16829 fi
16832 # Test platform for omap5 and dra7xx variable and require a KERNEL path
16833 if test "x$PLATFORM" = "xomap54xx_smp"; then
16834 if test "x$KERNEL_INSTALL_DIR" = "x"; then
16835 { { echo "$as_me:$LINENO: error: Kernel path for ${PLATFORM} is not set" >&5
16836 echo "$as_me: error: Kernel path for ${PLATFORM} is not set" >&2;}
16837 { (exit 1); exit 1; }; }
16838 fi
16840 fi
16842 if test "x$PLATFORM" = "xdra7xx"; then
16843 if test "x$KERNEL_INSTALL_DIR" = "x"; then
16844 { { echo "$as_me:$LINENO: error: Kernel path for ${PLATFORM} is not set" >&5
16845 echo "$as_me: error: Kernel path for ${PLATFORM} is not set" >&2;}
16846 { (exit 1); exit 1; }; }
16847 fi
16849 fi
16852 # Test platform for omap5 and dra7xx variable and require a DRM path
16853 if test "x$PLATFORM" = "xomap54xx_smp"; then
16854 if test "x$DRM_PREFIX" = "x"; then
16855 { { echo "$as_me:$LINENO: error: DRM PREFIX path for ${PLATFORM} is not set" >&5
16856 echo "$as_me: error: DRM PREFIX path for ${PLATFORM} is not set" >&2;}
16857 { (exit 1); exit 1; }; }
16858 fi
16860 fi
16862 if test "x$PLATFORM" = "xdra7xx"; then
16863 if test "x$DRM_PREFIX" = "x"; then
16864 { { echo "$as_me:$LINENO: error: DRM PREFIX path for ${PLATFORM} is not set" >&5
16865 echo "$as_me: error: DRM PREFIX path for ${PLATFORM} is not set" >&2;}
16866 { (exit 1); exit 1; }; }
16867 fi
16869 fi
16873 # Ignore KERNEL path when no platform is set
16874 if test "x$PLATFORM" = "x"; then
16875 KERNEL_INSTALL_DIR=
16876 fi
16878 if test "x$PLATFORM" = "x"; then
16879 DRM_PREFIX=
16880 fi
16882 if test "x$PLATFORM" = "x"; then
16883 CMEM_INSTALL_DIR=
16884 fi
16887 # Export optional user variable to Makefile(s)
16893 # Define specific variables to be used in Makefile.am
16896 if test "x$PLATFORM" = "xomapl138"; then
16897 OMAPL138_TRUE=
16898 OMAPL138_FALSE='#'
16899 else
16900 OMAPL138_TRUE='#'
16901 OMAPL138_FALSE=
16902 fi
16906 if test "x$PLATFORM" = "xtci6614"; then
16907 TCI6614_TRUE=
16908 TCI6614_FALSE='#'
16909 else
16910 TCI6614_TRUE='#'
16911 TCI6614_FALSE=
16912 fi
16916 if test "x$PLATFORM" = "xtci6636"; then
16917 TCI6636_TRUE=
16918 TCI6636_FALSE='#'
16919 else
16920 TCI6636_TRUE='#'
16921 TCI6636_FALSE=
16922 fi
16926 if test "x$PLATFORM" = "xtci6638"; then
16927 TCI6638_TRUE=
16928 TCI6638_FALSE='#'
16929 else
16930 TCI6638_TRUE='#'
16931 TCI6638_FALSE=
16932 fi
16936 if test "x$PLATFORM" = "xomap54xx_smp"; then
16937 OMAP54XX_SMP_TRUE=
16938 OMAP54XX_SMP_FALSE='#'
16939 else
16940 OMAP54XX_SMP_TRUE='#'
16941 OMAP54XX_SMP_FALSE=
16942 fi
16946 if test "x$PLATFORM" = "xdra7xx"; then
16947 DRA7XX_TRUE=
16948 DRA7XX_FALSE='#'
16949 else
16950 DRA7XX_TRUE='#'
16951 DRA7XX_FALSE=
16952 fi
16956 if test "x$CMEM_INSTALL_DIR" != "x"; then
16957 CMEM_TRUE=
16958 CMEM_FALSE='#'
16959 else
16960 CMEM_TRUE='#'
16961 CMEM_FALSE=
16962 fi
16966 if test "x$KERNEL_INSTALL_DIR" != "x"; then
16967 KDIR_TRUE=
16968 KDIR_FALSE='#'
16969 else
16970 KDIR_TRUE='#'
16971 KDIR_FALSE=
16972 fi
16976 if test "x$DRM_PREFIX" != "x"; then
16977 DRM_TRUE=
16978 DRM_FALSE='#'
16979 else
16980 DRM_TRUE='#'
16981 DRM_FALSE=
16982 fi
16985 # Generate Makefile(s)
16986 ac_config_files="$ac_config_files Makefile"
16988 ac_config_files="$ac_config_files linux/etc/Makefile"
16990 ac_config_files="$ac_config_files linux/src/utils/Makefile"
16992 ac_config_files="$ac_config_files linux/src/api/Makefile"
16994 ac_config_files="$ac_config_files linux/src/mm/Makefile"
16996 ac_config_files="$ac_config_files linux/src/daemon/Makefile"
16998 ac_config_files="$ac_config_files linux/src/tests/Makefile"
17000 cat >confcache <<\_ACEOF
17001 # This file is a shell script that caches the results of configure
17002 # tests run on this system so they can be shared between configure
17003 # scripts and configure runs, see configure's option --config-cache.
17004 # It is not useful on other systems. If it contains results you don't
17005 # want to keep, you may remove or edit it.
17006 #
17007 # config.status only pays attention to the cache file if you give it
17008 # the --recheck option to rerun configure.
17009 #
17010 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17011 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17012 # following values.
17014 _ACEOF
17016 # The following way of writing the cache mishandles newlines in values,
17017 # but we know of no workaround that is simple, portable, and efficient.
17018 # So, don't put newlines in cache variables' values.
17019 # Ultrix sh set writes to stderr and can't be redirected directly,
17020 # and sets the high bit in the cache file unless we assign to the vars.
17021 {
17022 (set) 2>&1 |
17023 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17024 *ac_space=\ *)
17025 # `set' does not quote correctly, so add quotes (double-quote
17026 # substitution turns \\\\ into \\, and sed turns \\ into \).
17027 sed -n \
17028 "s/'/'\\\\''/g;
17029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17030 ;;
17031 *)
17032 # `set' quotes correctly as required by POSIX, so do not add quotes.
17033 sed -n \
17034 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17035 ;;
17036 esac;
17037 } |
17038 sed '
17039 t clear
17040 : clear
17041 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17042 t end
17043 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17044 : end' >>confcache
17045 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17046 if test -w $cache_file; then
17047 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17048 cat confcache >$cache_file
17049 else
17050 echo "not updating unwritable cache $cache_file"
17051 fi
17052 fi
17053 rm -f confcache
17055 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17056 # Let make expand exec_prefix.
17057 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17059 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17060 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17061 # trailing colons and then remove the whole line if VPATH becomes empty
17062 # (actually we leave an empty line to preserve line numbers).
17063 if test "x$srcdir" = x.; then
17064 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17065 s/:*\$(srcdir):*/:/;
17066 s/:*\${srcdir}:*/:/;
17067 s/:*@srcdir@:*/:/;
17068 s/^\([^=]*=[ ]*\):*/\1/;
17069 s/:*$//;
17070 s/^[^=]*=[ ]*$//;
17071 }'
17072 fi
17074 # Transform confdefs.h into DEFS.
17075 # Protect against shell expansion while executing Makefile rules.
17076 # Protect against Makefile macro expansion.
17077 #
17078 # If the first sed substitution is executed (which looks for macros that
17079 # take arguments), then we branch to the quote section. Otherwise,
17080 # look for a macro that doesn't take arguments.
17081 cat >confdef2opt.sed <<\_ACEOF
17082 t clear
17083 : clear
17084 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
17085 t quote
17086 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
17087 t quote
17088 d
17089 : quote
17090 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
17091 s,\[,\\&,g
17092 s,\],\\&,g
17093 s,\$,$$,g
17094 p
17095 _ACEOF
17096 # We use echo to avoid assuming a particular line-breaking character.
17097 # The extra dot is to prevent the shell from consuming trailing
17098 # line-breaks from the sub-command output. A line-break within
17099 # single-quotes doesn't work because, if this script is created in a
17100 # platform that uses two characters for line-breaks (e.g., DOS), tr
17101 # would break.
17102 ac_LF_and_DOT=`echo; echo .`
17103 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
17104 rm -f confdef2opt.sed
17107 ac_libobjs=
17108 ac_ltlibobjs=
17109 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17110 # 1. Remove the extension, and $U if already installed.
17111 ac_i=`echo "$ac_i" |
17112 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17113 # 2. Add them.
17114 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17115 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17116 done
17117 LIBOBJS=$ac_libobjs
17119 LTLIBOBJS=$ac_ltlibobjs
17122 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17123 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17124 Usually this means the macro was only invoked conditionally." >&5
17125 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17126 Usually this means the macro was only invoked conditionally." >&2;}
17127 { (exit 1); exit 1; }; }
17128 fi
17129 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17130 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17131 Usually this means the macro was only invoked conditionally." >&5
17132 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17133 Usually this means the macro was only invoked conditionally." >&2;}
17134 { (exit 1); exit 1; }; }
17135 fi
17136 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17137 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17138 Usually this means the macro was only invoked conditionally." >&5
17139 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17140 Usually this means the macro was only invoked conditionally." >&2;}
17141 { (exit 1); exit 1; }; }
17142 fi
17143 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17144 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17145 Usually this means the macro was only invoked conditionally." >&5
17146 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17147 Usually this means the macro was only invoked conditionally." >&2;}
17148 { (exit 1); exit 1; }; }
17149 fi
17150 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17151 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17152 Usually this means the macro was only invoked conditionally." >&5
17153 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17154 Usually this means the macro was only invoked conditionally." >&2;}
17155 { (exit 1); exit 1; }; }
17156 fi
17157 if test -z "${OMAPL138_TRUE}" && test -z "${OMAPL138_FALSE}"; then
17158 { { echo "$as_me:$LINENO: error: conditional \"OMAPL138\" was never defined.
17159 Usually this means the macro was only invoked conditionally." >&5
17160 echo "$as_me: error: conditional \"OMAPL138\" was never defined.
17161 Usually this means the macro was only invoked conditionally." >&2;}
17162 { (exit 1); exit 1; }; }
17163 fi
17164 if test -z "${TCI6614_TRUE}" && test -z "${TCI6614_FALSE}"; then
17165 { { echo "$as_me:$LINENO: error: conditional \"TCI6614\" was never defined.
17166 Usually this means the macro was only invoked conditionally." >&5
17167 echo "$as_me: error: conditional \"TCI6614\" was never defined.
17168 Usually this means the macro was only invoked conditionally." >&2;}
17169 { (exit 1); exit 1; }; }
17170 fi
17171 if test -z "${TCI6636_TRUE}" && test -z "${TCI6636_FALSE}"; then
17172 { { echo "$as_me:$LINENO: error: conditional \"TCI6636\" was never defined.
17173 Usually this means the macro was only invoked conditionally." >&5
17174 echo "$as_me: error: conditional \"TCI6636\" was never defined.
17175 Usually this means the macro was only invoked conditionally." >&2;}
17176 { (exit 1); exit 1; }; }
17177 fi
17178 if test -z "${TCI6638_TRUE}" && test -z "${TCI6638_FALSE}"; then
17179 { { echo "$as_me:$LINENO: error: conditional \"TCI6638\" was never defined.
17180 Usually this means the macro was only invoked conditionally." >&5
17181 echo "$as_me: error: conditional \"TCI6638\" was never defined.
17182 Usually this means the macro was only invoked conditionally." >&2;}
17183 { (exit 1); exit 1; }; }
17184 fi
17185 if test -z "${OMAP54XX_SMP_TRUE}" && test -z "${OMAP54XX_SMP_FALSE}"; then
17186 { { echo "$as_me:$LINENO: error: conditional \"OMAP54XX_SMP\" was never defined.
17187 Usually this means the macro was only invoked conditionally." >&5
17188 echo "$as_me: error: conditional \"OMAP54XX_SMP\" was never defined.
17189 Usually this means the macro was only invoked conditionally." >&2;}
17190 { (exit 1); exit 1; }; }
17191 fi
17192 if test -z "${DRA7XX_TRUE}" && test -z "${DRA7XX_FALSE}"; then
17193 { { echo "$as_me:$LINENO: error: conditional \"DRA7XX\" was never defined.
17194 Usually this means the macro was only invoked conditionally." >&5
17195 echo "$as_me: error: conditional \"DRA7XX\" was never defined.
17196 Usually this means the macro was only invoked conditionally." >&2;}
17197 { (exit 1); exit 1; }; }
17198 fi
17199 if test -z "${CMEM_TRUE}" && test -z "${CMEM_FALSE}"; then
17200 { { echo "$as_me:$LINENO: error: conditional \"CMEM\" was never defined.
17201 Usually this means the macro was only invoked conditionally." >&5
17202 echo "$as_me: error: conditional \"CMEM\" was never defined.
17203 Usually this means the macro was only invoked conditionally." >&2;}
17204 { (exit 1); exit 1; }; }
17205 fi
17206 if test -z "${KDIR_TRUE}" && test -z "${KDIR_FALSE}"; then
17207 { { echo "$as_me:$LINENO: error: conditional \"KDIR\" was never defined.
17208 Usually this means the macro was only invoked conditionally." >&5
17209 echo "$as_me: error: conditional \"KDIR\" was never defined.
17210 Usually this means the macro was only invoked conditionally." >&2;}
17211 { (exit 1); exit 1; }; }
17212 fi
17213 if test -z "${DRM_TRUE}" && test -z "${DRM_FALSE}"; then
17214 { { echo "$as_me:$LINENO: error: conditional \"DRM\" was never defined.
17215 Usually this means the macro was only invoked conditionally." >&5
17216 echo "$as_me: error: conditional \"DRM\" was never defined.
17217 Usually this means the macro was only invoked conditionally." >&2;}
17218 { (exit 1); exit 1; }; }
17219 fi
17221 : ${CONFIG_STATUS=./config.status}
17222 ac_clean_files_save=$ac_clean_files
17223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17224 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17225 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17226 cat >$CONFIG_STATUS <<_ACEOF
17227 #! $SHELL
17228 # Generated by $as_me.
17229 # Run this file to recreate the current configuration.
17230 # Compiler output produced by configure, useful for debugging
17231 # configure, is in config.log if it exists.
17233 debug=false
17234 ac_cs_recheck=false
17235 ac_cs_silent=false
17236 SHELL=\${CONFIG_SHELL-$SHELL}
17237 _ACEOF
17239 cat >>$CONFIG_STATUS <<\_ACEOF
17240 ## --------------------- ##
17241 ## M4sh Initialization. ##
17242 ## --------------------- ##
17244 # Be Bourne compatible
17245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17246 emulate sh
17247 NULLCMD=:
17248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17249 # is contrary to our usage. Disable this feature.
17250 alias -g '${1+"$@"}'='"$@"'
17251 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17252 set -o posix
17253 fi
17254 DUALCASE=1; export DUALCASE # for MKS sh
17256 # Support unset when possible.
17257 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17258 as_unset=unset
17259 else
17260 as_unset=false
17261 fi
17264 # Work around bugs in pre-3.0 UWIN ksh.
17265 $as_unset ENV MAIL MAILPATH
17266 PS1='$ '
17267 PS2='> '
17268 PS4='+ '
17270 # NLS nuisances.
17271 for as_var in \
17272 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17273 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17274 LC_TELEPHONE LC_TIME
17275 do
17276 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17277 eval $as_var=C; export $as_var
17278 else
17279 $as_unset $as_var
17280 fi
17281 done
17283 # Required to use basename.
17284 if expr a : '\(a\)' >/dev/null 2>&1; then
17285 as_expr=expr
17286 else
17287 as_expr=false
17288 fi
17290 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17291 as_basename=basename
17292 else
17293 as_basename=false
17294 fi
17297 # Name of the executable.
17298 as_me=`$as_basename "$0" ||
17299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17300 X"$0" : 'X\(//\)$' \| \
17301 X"$0" : 'X\(/\)$' \| \
17302 . : '\(.\)' 2>/dev/null ||
17303 echo X/"$0" |
17304 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17305 /^X\/\(\/\/\)$/{ s//\1/; q; }
17306 /^X\/\(\/\).*/{ s//\1/; q; }
17307 s/.*/./; q'`
17310 # PATH needs CR, and LINENO needs CR and PATH.
17311 # Avoid depending upon Character Ranges.
17312 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17313 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17314 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17315 as_cr_digits='0123456789'
17316 as_cr_alnum=$as_cr_Letters$as_cr_digits
17318 # The user is always right.
17319 if test "${PATH_SEPARATOR+set}" != set; then
17320 echo "#! /bin/sh" >conf$$.sh
17321 echo "exit 0" >>conf$$.sh
17322 chmod +x conf$$.sh
17323 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17324 PATH_SEPARATOR=';'
17325 else
17326 PATH_SEPARATOR=:
17327 fi
17328 rm -f conf$$.sh
17329 fi
17332 as_lineno_1=$LINENO
17333 as_lineno_2=$LINENO
17334 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17335 test "x$as_lineno_1" != "x$as_lineno_2" &&
17336 test "x$as_lineno_3" = "x$as_lineno_2" || {
17337 # Find who we are. Look in the path if we contain no path at all
17338 # relative or not.
17339 case $0 in
17340 *[\\/]* ) as_myself=$0 ;;
17341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17342 for as_dir in $PATH
17343 do
17344 IFS=$as_save_IFS
17345 test -z "$as_dir" && as_dir=.
17346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17347 done
17349 ;;
17350 esac
17351 # We did not find ourselves, most probably we were run as `sh COMMAND'
17352 # in which case we are not to be found in the path.
17353 if test "x$as_myself" = x; then
17354 as_myself=$0
17355 fi
17356 if test ! -f "$as_myself"; then
17357 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17358 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17359 { (exit 1); exit 1; }; }
17360 fi
17361 case $CONFIG_SHELL in
17362 '')
17363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17364 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17365 do
17366 IFS=$as_save_IFS
17367 test -z "$as_dir" && as_dir=.
17368 for as_base in sh bash ksh sh5; do
17369 case $as_dir in
17370 /*)
17371 if ("$as_dir/$as_base" -c '
17372 as_lineno_1=$LINENO
17373 as_lineno_2=$LINENO
17374 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17375 test "x$as_lineno_1" != "x$as_lineno_2" &&
17376 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17377 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17378 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17379 CONFIG_SHELL=$as_dir/$as_base
17380 export CONFIG_SHELL
17381 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17382 fi;;
17383 esac
17384 done
17385 done
17386 ;;
17387 esac
17389 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17390 # uniformly replaced by the line number. The first 'sed' inserts a
17391 # line-number line before each line; the second 'sed' does the real
17392 # work. The second script uses 'N' to pair each line-number line
17393 # with the numbered line, and appends trailing '-' during
17394 # substitution so that $LINENO is not a special case at line end.
17395 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17396 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17397 sed '=' <$as_myself |
17398 sed '
17399 N
17400 s,$,-,
17401 : loop
17402 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17403 t loop
17404 s,-$,,
17405 s,^['$as_cr_digits']*\n,,
17406 ' >$as_me.lineno &&
17407 chmod +x $as_me.lineno ||
17408 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17409 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17410 { (exit 1); exit 1; }; }
17412 # Don't try to exec as it changes $[0], causing all sort of problems
17413 # (the dirname of $[0] is not the place where we might find the
17414 # original and so on. Autoconf is especially sensible to this).
17415 . ./$as_me.lineno
17416 # Exit status is that of the last command.
17417 exit
17418 }
17421 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17422 *c*,-n*) ECHO_N= ECHO_C='
17423 ' ECHO_T=' ' ;;
17424 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17425 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17426 esac
17428 if expr a : '\(a\)' >/dev/null 2>&1; then
17429 as_expr=expr
17430 else
17431 as_expr=false
17432 fi
17434 rm -f conf$$ conf$$.exe conf$$.file
17435 echo >conf$$.file
17436 if ln -s conf$$.file conf$$ 2>/dev/null; then
17437 # We could just check for DJGPP; but this test a) works b) is more generic
17438 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17439 if test -f conf$$.exe; then
17440 # Don't use ln at all; we don't have any links
17441 as_ln_s='cp -p'
17442 else
17443 as_ln_s='ln -s'
17444 fi
17445 elif ln conf$$.file conf$$ 2>/dev/null; then
17446 as_ln_s=ln
17447 else
17448 as_ln_s='cp -p'
17449 fi
17450 rm -f conf$$ conf$$.exe conf$$.file
17452 if mkdir -p . 2>/dev/null; then
17453 as_mkdir_p=:
17454 else
17455 test -d ./-p && rmdir ./-p
17456 as_mkdir_p=false
17457 fi
17459 as_executable_p="test -f"
17461 # Sed expression to map a string onto a valid CPP name.
17462 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17464 # Sed expression to map a string onto a valid variable name.
17465 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17468 # IFS
17469 # We need space, tab and new line, in precisely that order.
17470 as_nl='
17471 '
17472 IFS=" $as_nl"
17474 # CDPATH.
17475 $as_unset CDPATH
17477 exec 6>&1
17479 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17480 # report actual input values of CONFIG_FILES etc. instead of their
17481 # values after options handling. Logging --version etc. is OK.
17482 exec 5>>config.log
17483 {
17484 echo
17485 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17486 ## Running $as_me. ##
17487 _ASBOX
17488 } >&5
17489 cat >&5 <<_CSEOF
17491 This file was extended by TI IPC $as_me 3.0.0, which was
17492 generated by GNU Autoconf 2.59. Invocation command line was
17494 CONFIG_FILES = $CONFIG_FILES
17495 CONFIG_HEADERS = $CONFIG_HEADERS
17496 CONFIG_LINKS = $CONFIG_LINKS
17497 CONFIG_COMMANDS = $CONFIG_COMMANDS
17498 $ $0 $@
17500 _CSEOF
17501 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17502 echo >&5
17503 _ACEOF
17505 # Files that config.status was made for.
17506 if test -n "$ac_config_files"; then
17507 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17508 fi
17510 if test -n "$ac_config_headers"; then
17511 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17512 fi
17514 if test -n "$ac_config_links"; then
17515 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17516 fi
17518 if test -n "$ac_config_commands"; then
17519 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17520 fi
17522 cat >>$CONFIG_STATUS <<\_ACEOF
17524 ac_cs_usage="\
17525 \`$as_me' instantiates files from templates according to the
17526 current configuration.
17528 Usage: $0 [OPTIONS] [FILE]...
17530 -h, --help print this help, then exit
17531 -V, --version print version number, then exit
17532 -q, --quiet do not print progress messages
17533 -d, --debug don't remove temporary files
17534 --recheck update $as_me by reconfiguring in the same conditions
17535 --file=FILE[:TEMPLATE]
17536 instantiate the configuration file FILE
17538 Configuration files:
17539 $config_files
17541 Configuration commands:
17542 $config_commands
17544 Report bugs to <bug-autoconf@gnu.org>."
17545 _ACEOF
17547 cat >>$CONFIG_STATUS <<_ACEOF
17548 ac_cs_version="\\
17549 TI IPC config.status 3.0.0
17550 configured by $0, generated by GNU Autoconf 2.59,
17551 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17553 Copyright (C) 2003 Free Software Foundation, Inc.
17554 This config.status script is free software; the Free Software Foundation
17555 gives unlimited permission to copy, distribute and modify it."
17556 srcdir=$srcdir
17557 INSTALL="$INSTALL"
17558 _ACEOF
17560 cat >>$CONFIG_STATUS <<\_ACEOF
17561 # If no file are specified by the user, then we need to provide default
17562 # value. By we need to know if files were specified by the user.
17563 ac_need_defaults=:
17564 while test $# != 0
17565 do
17566 case $1 in
17567 --*=*)
17568 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17569 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17570 ac_shift=:
17571 ;;
17572 -*)
17573 ac_option=$1
17574 ac_optarg=$2
17575 ac_shift=shift
17576 ;;
17577 *) # This is not an option, so the user has probably given explicit
17578 # arguments.
17579 ac_option=$1
17580 ac_need_defaults=false;;
17581 esac
17583 case $ac_option in
17584 # Handling of the options.
17585 _ACEOF
17586 cat >>$CONFIG_STATUS <<\_ACEOF
17587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17588 ac_cs_recheck=: ;;
17589 --version | --vers* | -V )
17590 echo "$ac_cs_version"; exit 0 ;;
17591 --he | --h)
17592 # Conflict between --help and --header
17593 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17594 Try \`$0 --help' for more information." >&5
17595 echo "$as_me: error: ambiguous option: $1
17596 Try \`$0 --help' for more information." >&2;}
17597 { (exit 1); exit 1; }; };;
17598 --help | --hel | -h )
17599 echo "$ac_cs_usage"; exit 0 ;;
17600 --debug | --d* | -d )
17601 debug=: ;;
17602 --file | --fil | --fi | --f )
17603 $ac_shift
17604 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17605 ac_need_defaults=false;;
17606 --header | --heade | --head | --hea )
17607 $ac_shift
17608 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17609 ac_need_defaults=false;;
17610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17612 ac_cs_silent=: ;;
17614 # This is an error.
17615 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17616 Try \`$0 --help' for more information." >&5
17617 echo "$as_me: error: unrecognized option: $1
17618 Try \`$0 --help' for more information." >&2;}
17619 { (exit 1); exit 1; }; } ;;
17621 *) ac_config_targets="$ac_config_targets $1" ;;
17623 esac
17624 shift
17625 done
17627 ac_configure_extra_args=
17629 if $ac_cs_silent; then
17630 exec 6>/dev/null
17631 ac_configure_extra_args="$ac_configure_extra_args --silent"
17632 fi
17634 _ACEOF
17635 cat >>$CONFIG_STATUS <<_ACEOF
17636 if \$ac_cs_recheck; then
17637 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17638 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17639 fi
17641 _ACEOF
17643 cat >>$CONFIG_STATUS <<_ACEOF
17644 #
17645 # INIT-COMMANDS section.
17646 #
17648 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17650 _ACEOF
17654 cat >>$CONFIG_STATUS <<\_ACEOF
17655 for ac_config_target in $ac_config_targets
17656 do
17657 case "$ac_config_target" in
17658 # Handling of arguments.
17659 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17660 "linux/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/etc/Makefile" ;;
17661 "linux/src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/utils/Makefile" ;;
17662 "linux/src/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/api/Makefile" ;;
17663 "linux/src/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/mm/Makefile" ;;
17664 "linux/src/daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/daemon/Makefile" ;;
17665 "linux/src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/tests/Makefile" ;;
17666 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17667 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17668 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17669 { (exit 1); exit 1; }; };;
17670 esac
17671 done
17673 # If the user did not use the arguments to specify the items to instantiate,
17674 # then the envvar interface is used. Set only those that are not.
17675 # We use the long form for the default assignment because of an extremely
17676 # bizarre bug on SunOS 4.1.3.
17677 if $ac_need_defaults; then
17678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17679 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17680 fi
17682 # Have a temporary directory for convenience. Make it in the build tree
17683 # simply because there is no reason to put it here, and in addition,
17684 # creating and moving files from /tmp can sometimes cause problems.
17685 # Create a temporary directory, and hook for its removal unless debugging.
17686 $debug ||
17687 {
17688 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17689 trap '{ (exit 1); exit 1; }' 1 2 13 15
17690 }
17692 # Create a (secure) tmp directory for tmp files.
17694 {
17695 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17696 test -n "$tmp" && test -d "$tmp"
17697 } ||
17698 {
17699 tmp=./confstat$$-$RANDOM
17700 (umask 077 && mkdir $tmp)
17701 } ||
17702 {
17703 echo "$me: cannot create a temporary directory in ." >&2
17704 { (exit 1); exit 1; }
17705 }
17707 _ACEOF
17709 cat >>$CONFIG_STATUS <<_ACEOF
17711 #
17712 # CONFIG_FILES section.
17713 #
17715 # No need to generate the scripts if there are no CONFIG_FILES.
17716 # This happens for instance when ./config.status config.h
17717 if test -n "\$CONFIG_FILES"; then
17718 # Protect against being on the right side of a sed subst in config.status.
17719 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17720 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17721 s,@SHELL@,$SHELL,;t t
17722 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17723 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17724 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17725 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17726 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17727 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17728 s,@exec_prefix@,$exec_prefix,;t t
17729 s,@prefix@,$prefix,;t t
17730 s,@program_transform_name@,$program_transform_name,;t t
17731 s,@bindir@,$bindir,;t t
17732 s,@sbindir@,$sbindir,;t t
17733 s,@libexecdir@,$libexecdir,;t t
17734 s,@datadir@,$datadir,;t t
17735 s,@sysconfdir@,$sysconfdir,;t t
17736 s,@sharedstatedir@,$sharedstatedir,;t t
17737 s,@localstatedir@,$localstatedir,;t t
17738 s,@libdir@,$libdir,;t t
17739 s,@includedir@,$includedir,;t t
17740 s,@oldincludedir@,$oldincludedir,;t t
17741 s,@infodir@,$infodir,;t t
17742 s,@mandir@,$mandir,;t t
17743 s,@build_alias@,$build_alias,;t t
17744 s,@host_alias@,$host_alias,;t t
17745 s,@target_alias@,$target_alias,;t t
17746 s,@DEFS@,$DEFS,;t t
17747 s,@ECHO_C@,$ECHO_C,;t t
17748 s,@ECHO_N@,$ECHO_N,;t t
17749 s,@ECHO_T@,$ECHO_T,;t t
17750 s,@LIBS@,$LIBS,;t t
17751 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17752 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17753 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17754 s,@CYGPATH_W@,$CYGPATH_W,;t t
17755 s,@PACKAGE@,$PACKAGE,;t t
17756 s,@VERSION@,$VERSION,;t t
17757 s,@ACLOCAL@,$ACLOCAL,;t t
17758 s,@AUTOCONF@,$AUTOCONF,;t t
17759 s,@AUTOMAKE@,$AUTOMAKE,;t t
17760 s,@AUTOHEADER@,$AUTOHEADER,;t t
17761 s,@MAKEINFO@,$MAKEINFO,;t t
17762 s,@install_sh@,$install_sh,;t t
17763 s,@STRIP@,$STRIP,;t t
17764 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17765 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17766 s,@mkdir_p@,$mkdir_p,;t t
17767 s,@AWK@,$AWK,;t t
17768 s,@SET_MAKE@,$SET_MAKE,;t t
17769 s,@am__leading_dot@,$am__leading_dot,;t t
17770 s,@AMTAR@,$AMTAR,;t t
17771 s,@am__tar@,$am__tar,;t t
17772 s,@am__untar@,$am__untar,;t t
17773 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17774 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17775 s,@MAINT@,$MAINT,;t t
17776 s,@build@,$build,;t t
17777 s,@build_cpu@,$build_cpu,;t t
17778 s,@build_vendor@,$build_vendor,;t t
17779 s,@build_os@,$build_os,;t t
17780 s,@host@,$host,;t t
17781 s,@host_cpu@,$host_cpu,;t t
17782 s,@host_vendor@,$host_vendor,;t t
17783 s,@host_os@,$host_os,;t t
17784 s,@CC@,$CC,;t t
17785 s,@CFLAGS@,$CFLAGS,;t t
17786 s,@LDFLAGS@,$LDFLAGS,;t t
17787 s,@CPPFLAGS@,$CPPFLAGS,;t t
17788 s,@ac_ct_CC@,$ac_ct_CC,;t t
17789 s,@EXEEXT@,$EXEEXT,;t t
17790 s,@OBJEXT@,$OBJEXT,;t t
17791 s,@DEPDIR@,$DEPDIR,;t t
17792 s,@am__include@,$am__include,;t t
17793 s,@am__quote@,$am__quote,;t t
17794 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17795 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17796 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17797 s,@CCDEPMODE@,$CCDEPMODE,;t t
17798 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17799 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17800 s,@EGREP@,$EGREP,;t t
17801 s,@LN_S@,$LN_S,;t t
17802 s,@ECHO@,$ECHO,;t t
17803 s,@AR@,$AR,;t t
17804 s,@ac_ct_AR@,$ac_ct_AR,;t t
17805 s,@RANLIB@,$RANLIB,;t t
17806 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17807 s,@CPP@,$CPP,;t t
17808 s,@CXX@,$CXX,;t t
17809 s,@CXXFLAGS@,$CXXFLAGS,;t t
17810 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17811 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17812 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17813 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17814 s,@CXXCPP@,$CXXCPP,;t t
17815 s,@LIBTOOL@,$LIBTOOL,;t t
17816 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
17817 s,@AM_LDFLAGS@,$AM_LDFLAGS,;t t
17818 s,@PLATFORM@,$PLATFORM,;t t
17819 s,@CMEM_INSTALL_DIR@,$CMEM_INSTALL_DIR,;t t
17820 s,@KERNEL_INSTALL_DIR@,$KERNEL_INSTALL_DIR,;t t
17821 s,@DRMLIB_PREFIX@,$DRMLIB_PREFIX,;t t
17822 s,@DRM_PREFIX@,$DRM_PREFIX,;t t
17823 s,@OMAPL138_TRUE@,$OMAPL138_TRUE,;t t
17824 s,@OMAPL138_FALSE@,$OMAPL138_FALSE,;t t
17825 s,@TCI6614_TRUE@,$TCI6614_TRUE,;t t
17826 s,@TCI6614_FALSE@,$TCI6614_FALSE,;t t
17827 s,@TCI6636_TRUE@,$TCI6636_TRUE,;t t
17828 s,@TCI6636_FALSE@,$TCI6636_FALSE,;t t
17829 s,@TCI6638_TRUE@,$TCI6638_TRUE,;t t
17830 s,@TCI6638_FALSE@,$TCI6638_FALSE,;t t
17831 s,@OMAP54XX_SMP_TRUE@,$OMAP54XX_SMP_TRUE,;t t
17832 s,@OMAP54XX_SMP_FALSE@,$OMAP54XX_SMP_FALSE,;t t
17833 s,@DRA7XX_TRUE@,$DRA7XX_TRUE,;t t
17834 s,@DRA7XX_FALSE@,$DRA7XX_FALSE,;t t
17835 s,@CMEM_TRUE@,$CMEM_TRUE,;t t
17836 s,@CMEM_FALSE@,$CMEM_FALSE,;t t
17837 s,@KDIR_TRUE@,$KDIR_TRUE,;t t
17838 s,@KDIR_FALSE@,$KDIR_FALSE,;t t
17839 s,@DRM_TRUE@,$DRM_TRUE,;t t
17840 s,@DRM_FALSE@,$DRM_FALSE,;t t
17841 s,@LIBOBJS@,$LIBOBJS,;t t
17842 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17843 CEOF
17845 _ACEOF
17847 cat >>$CONFIG_STATUS <<\_ACEOF
17848 # Split the substitutions into bite-sized pieces for seds with
17849 # small command number limits, like on Digital OSF/1 and HP-UX.
17850 ac_max_sed_lines=48
17851 ac_sed_frag=1 # Number of current file.
17852 ac_beg=1 # First line for current file.
17853 ac_end=$ac_max_sed_lines # Line after last line for current file.
17854 ac_more_lines=:
17855 ac_sed_cmds=
17856 while $ac_more_lines; do
17857 if test $ac_beg -gt 1; then
17858 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17859 else
17860 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17861 fi
17862 if test ! -s $tmp/subs.frag; then
17863 ac_more_lines=false
17864 else
17865 # The purpose of the label and of the branching condition is to
17866 # speed up the sed processing (if there are no `@' at all, there
17867 # is no need to browse any of the substitutions).
17868 # These are the two extra sed commands mentioned above.
17869 (echo ':t
17870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17871 if test -z "$ac_sed_cmds"; then
17872 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17873 else
17874 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17875 fi
17876 ac_sed_frag=`expr $ac_sed_frag + 1`
17877 ac_beg=$ac_end
17878 ac_end=`expr $ac_end + $ac_max_sed_lines`
17879 fi
17880 done
17881 if test -z "$ac_sed_cmds"; then
17882 ac_sed_cmds=cat
17883 fi
17884 fi # test -n "$CONFIG_FILES"
17886 _ACEOF
17887 cat >>$CONFIG_STATUS <<\_ACEOF
17888 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17890 case $ac_file in
17891 - | *:- | *:-:* ) # input from stdin
17892 cat >$tmp/stdin
17893 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17895 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17897 * ) ac_file_in=$ac_file.in ;;
17898 esac
17900 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17901 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17902 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17903 X"$ac_file" : 'X\(//\)[^/]' \| \
17904 X"$ac_file" : 'X\(//\)$' \| \
17905 X"$ac_file" : 'X\(/\)' \| \
17906 . : '\(.\)' 2>/dev/null ||
17907 echo X"$ac_file" |
17908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17910 /^X\(\/\/\)$/{ s//\1/; q; }
17911 /^X\(\/\).*/{ s//\1/; q; }
17912 s/.*/./; q'`
17913 { if $as_mkdir_p; then
17914 mkdir -p "$ac_dir"
17915 else
17916 as_dir="$ac_dir"
17917 as_dirs=
17918 while test ! -d "$as_dir"; do
17919 as_dirs="$as_dir $as_dirs"
17920 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17922 X"$as_dir" : 'X\(//\)[^/]' \| \
17923 X"$as_dir" : 'X\(//\)$' \| \
17924 X"$as_dir" : 'X\(/\)' \| \
17925 . : '\(.\)' 2>/dev/null ||
17926 echo X"$as_dir" |
17927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17928 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17929 /^X\(\/\/\)$/{ s//\1/; q; }
17930 /^X\(\/\).*/{ s//\1/; q; }
17931 s/.*/./; q'`
17932 done
17933 test ! -n "$as_dirs" || mkdir $as_dirs
17934 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17935 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17936 { (exit 1); exit 1; }; }; }
17938 ac_builddir=.
17940 if test "$ac_dir" != .; then
17941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17942 # A "../" for each directory in $ac_dir_suffix.
17943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17944 else
17945 ac_dir_suffix= ac_top_builddir=
17946 fi
17948 case $srcdir in
17949 .) # No --srcdir option. We are building in place.
17950 ac_srcdir=.
17951 if test -z "$ac_top_builddir"; then
17952 ac_top_srcdir=.
17953 else
17954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17955 fi ;;
17956 [\\/]* | ?:[\\/]* ) # Absolute path.
17957 ac_srcdir=$srcdir$ac_dir_suffix;
17958 ac_top_srcdir=$srcdir ;;
17959 *) # Relative path.
17960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17961 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17962 esac
17964 # Do not use `cd foo && pwd` to compute absolute paths, because
17965 # the directories may not exist.
17966 case `pwd` in
17967 .) ac_abs_builddir="$ac_dir";;
17968 *)
17969 case "$ac_dir" in
17970 .) ac_abs_builddir=`pwd`;;
17971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17972 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17973 esac;;
17974 esac
17975 case $ac_abs_builddir in
17976 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17977 *)
17978 case ${ac_top_builddir}. in
17979 .) ac_abs_top_builddir=$ac_abs_builddir;;
17980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17982 esac;;
17983 esac
17984 case $ac_abs_builddir in
17985 .) ac_abs_srcdir=$ac_srcdir;;
17986 *)
17987 case $ac_srcdir in
17988 .) ac_abs_srcdir=$ac_abs_builddir;;
17989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17991 esac;;
17992 esac
17993 case $ac_abs_builddir in
17994 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17995 *)
17996 case $ac_top_srcdir in
17997 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18000 esac;;
18001 esac
18004 case $INSTALL in
18005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18006 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18007 esac
18009 if test x"$ac_file" != x-; then
18010 { echo "$as_me:$LINENO: creating $ac_file" >&5
18011 echo "$as_me: creating $ac_file" >&6;}
18012 rm -f "$ac_file"
18013 fi
18014 # Let's still pretend it is `configure' which instantiates (i.e., don't
18015 # use $as_me), people would be surprised to read:
18016 # /* config.h. Generated by config.status. */
18017 if test x"$ac_file" = x-; then
18018 configure_input=
18019 else
18020 configure_input="$ac_file. "
18021 fi
18022 configure_input=$configure_input"Generated from `echo $ac_file_in |
18023 sed 's,.*/,,'` by configure."
18025 # First look for the input files in the build tree, otherwise in the
18026 # src tree.
18027 ac_file_inputs=`IFS=:
18028 for f in $ac_file_in; do
18029 case $f in
18030 -) echo $tmp/stdin ;;
18031 [\\/$]*)
18032 # Absolute (can't be DOS-style, as IFS=:)
18033 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18034 echo "$as_me: error: cannot find input file: $f" >&2;}
18035 { (exit 1); exit 1; }; }
18036 echo "$f";;
18037 *) # Relative
18038 if test -f "$f"; then
18039 # Build tree
18040 echo "$f"
18041 elif test -f "$srcdir/$f"; then
18042 # Source tree
18043 echo "$srcdir/$f"
18044 else
18045 # /dev/null tree
18046 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18047 echo "$as_me: error: cannot find input file: $f" >&2;}
18048 { (exit 1); exit 1; }; }
18049 fi;;
18050 esac
18051 done` || { (exit 1); exit 1; }
18052 _ACEOF
18053 cat >>$CONFIG_STATUS <<_ACEOF
18054 sed "$ac_vpsub
18055 $extrasub
18056 _ACEOF
18057 cat >>$CONFIG_STATUS <<\_ACEOF
18058 :t
18059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18060 s,@configure_input@,$configure_input,;t t
18061 s,@srcdir@,$ac_srcdir,;t t
18062 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18063 s,@top_srcdir@,$ac_top_srcdir,;t t
18064 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18065 s,@builddir@,$ac_builddir,;t t
18066 s,@abs_builddir@,$ac_abs_builddir,;t t
18067 s,@top_builddir@,$ac_top_builddir,;t t
18068 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18069 s,@INSTALL@,$ac_INSTALL,;t t
18070 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18071 rm -f $tmp/stdin
18072 if test x"$ac_file" != x-; then
18073 mv $tmp/out $ac_file
18074 else
18075 cat $tmp/out
18076 rm -f $tmp/out
18077 fi
18079 done
18080 _ACEOF
18081 cat >>$CONFIG_STATUS <<\_ACEOF
18083 #
18084 # CONFIG_COMMANDS section.
18085 #
18086 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18087 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18088 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18089 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18090 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18091 X"$ac_dest" : 'X\(//\)[^/]' \| \
18092 X"$ac_dest" : 'X\(//\)$' \| \
18093 X"$ac_dest" : 'X\(/\)' \| \
18094 . : '\(.\)' 2>/dev/null ||
18095 echo X"$ac_dest" |
18096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18098 /^X\(\/\/\)$/{ s//\1/; q; }
18099 /^X\(\/\).*/{ s//\1/; q; }
18100 s/.*/./; q'`
18101 { if $as_mkdir_p; then
18102 mkdir -p "$ac_dir"
18103 else
18104 as_dir="$ac_dir"
18105 as_dirs=
18106 while test ! -d "$as_dir"; do
18107 as_dirs="$as_dir $as_dirs"
18108 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18110 X"$as_dir" : 'X\(//\)[^/]' \| \
18111 X"$as_dir" : 'X\(//\)$' \| \
18112 X"$as_dir" : 'X\(/\)' \| \
18113 . : '\(.\)' 2>/dev/null ||
18114 echo X"$as_dir" |
18115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18117 /^X\(\/\/\)$/{ s//\1/; q; }
18118 /^X\(\/\).*/{ s//\1/; q; }
18119 s/.*/./; q'`
18120 done
18121 test ! -n "$as_dirs" || mkdir $as_dirs
18122 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18123 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18124 { (exit 1); exit 1; }; }; }
18126 ac_builddir=.
18128 if test "$ac_dir" != .; then
18129 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18130 # A "../" for each directory in $ac_dir_suffix.
18131 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18132 else
18133 ac_dir_suffix= ac_top_builddir=
18134 fi
18136 case $srcdir in
18137 .) # No --srcdir option. We are building in place.
18138 ac_srcdir=.
18139 if test -z "$ac_top_builddir"; then
18140 ac_top_srcdir=.
18141 else
18142 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18143 fi ;;
18144 [\\/]* | ?:[\\/]* ) # Absolute path.
18145 ac_srcdir=$srcdir$ac_dir_suffix;
18146 ac_top_srcdir=$srcdir ;;
18147 *) # Relative path.
18148 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18149 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18150 esac
18152 # Do not use `cd foo && pwd` to compute absolute paths, because
18153 # the directories may not exist.
18154 case `pwd` in
18155 .) ac_abs_builddir="$ac_dir";;
18156 *)
18157 case "$ac_dir" in
18158 .) ac_abs_builddir=`pwd`;;
18159 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18160 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18161 esac;;
18162 esac
18163 case $ac_abs_builddir in
18164 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18165 *)
18166 case ${ac_top_builddir}. in
18167 .) ac_abs_top_builddir=$ac_abs_builddir;;
18168 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18169 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18170 esac;;
18171 esac
18172 case $ac_abs_builddir in
18173 .) ac_abs_srcdir=$ac_srcdir;;
18174 *)
18175 case $ac_srcdir in
18176 .) ac_abs_srcdir=$ac_abs_builddir;;
18177 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18178 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18179 esac;;
18180 esac
18181 case $ac_abs_builddir in
18182 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18183 *)
18184 case $ac_top_srcdir in
18185 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18186 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18187 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18188 esac;;
18189 esac
18192 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18193 echo "$as_me: executing $ac_dest commands" >&6;}
18194 case $ac_dest in
18195 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18196 # Strip MF so we end up with the name of the file.
18197 mf=`echo "$mf" | sed -e 's/:.*$//'`
18198 # Check whether this is an Automake generated Makefile or not.
18199 # We used to match only the files named `Makefile.in', but
18200 # some people rename them; so instead we look at the file content.
18201 # Grep'ing the first line is not enough: some people post-process
18202 # each Makefile.in and add a new line on top of each file to say so.
18203 # So let's grep whole file.
18204 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18205 dirpart=`(dirname "$mf") 2>/dev/null ||
18206 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18207 X"$mf" : 'X\(//\)[^/]' \| \
18208 X"$mf" : 'X\(//\)$' \| \
18209 X"$mf" : 'X\(/\)' \| \
18210 . : '\(.\)' 2>/dev/null ||
18211 echo X"$mf" |
18212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18214 /^X\(\/\/\)$/{ s//\1/; q; }
18215 /^X\(\/\).*/{ s//\1/; q; }
18216 s/.*/./; q'`
18217 else
18218 continue
18219 fi
18220 # Extract the definition of DEPDIR, am__include, and am__quote
18221 # from the Makefile without running `make'.
18222 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18223 test -z "$DEPDIR" && continue
18224 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18225 test -z "am__include" && continue
18226 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18227 # When using ansi2knr, U may be empty or an underscore; expand it
18228 U=`sed -n 's/^U = //p' < "$mf"`
18229 # Find all dependency output files, they are included files with
18230 # $(DEPDIR) in their names. We invoke sed twice because it is the
18231 # simplest approach to changing $(DEPDIR) to its actual value in the
18232 # expansion.
18233 for file in `sed -n "
18234 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18235 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18236 # Make sure the directory exists.
18237 test -f "$dirpart/$file" && continue
18238 fdir=`(dirname "$file") 2>/dev/null ||
18239 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18240 X"$file" : 'X\(//\)[^/]' \| \
18241 X"$file" : 'X\(//\)$' \| \
18242 X"$file" : 'X\(/\)' \| \
18243 . : '\(.\)' 2>/dev/null ||
18244 echo X"$file" |
18245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18247 /^X\(\/\/\)$/{ s//\1/; q; }
18248 /^X\(\/\).*/{ s//\1/; q; }
18249 s/.*/./; q'`
18250 { if $as_mkdir_p; then
18251 mkdir -p $dirpart/$fdir
18252 else
18253 as_dir=$dirpart/$fdir
18254 as_dirs=
18255 while test ! -d "$as_dir"; do
18256 as_dirs="$as_dir $as_dirs"
18257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18259 X"$as_dir" : 'X\(//\)[^/]' \| \
18260 X"$as_dir" : 'X\(//\)$' \| \
18261 X"$as_dir" : 'X\(/\)' \| \
18262 . : '\(.\)' 2>/dev/null ||
18263 echo X"$as_dir" |
18264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18266 /^X\(\/\/\)$/{ s//\1/; q; }
18267 /^X\(\/\).*/{ s//\1/; q; }
18268 s/.*/./; q'`
18269 done
18270 test ! -n "$as_dirs" || mkdir $as_dirs
18271 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18272 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18273 { (exit 1); exit 1; }; }; }
18275 # echo "creating $dirpart/$file"
18276 echo '# dummy' > "$dirpart/$file"
18277 done
18278 done
18279 ;;
18280 esac
18281 done
18282 _ACEOF
18284 cat >>$CONFIG_STATUS <<\_ACEOF
18286 { (exit 0); exit 0; }
18287 _ACEOF
18288 chmod +x $CONFIG_STATUS
18289 ac_clean_files=$ac_clean_files_save
18292 # configure is writing to config.log, and then calls config.status.
18293 # config.status does its own redirection, appending to config.log.
18294 # Unfortunately, on DOS this fails, as config.log is still kept open
18295 # by configure, so config.status won't be able to write to it; its
18296 # output is simply discarded. So we exec the FD to /dev/null,
18297 # effectively closing config.log, so it can be properly (re)opened and
18298 # appended to by config.status. When coming back to configure, we
18299 # need to make the FD available again.
18300 if test "$no_create" != yes; then
18301 ac_cs_success=:
18302 ac_config_status_args=
18303 test "$silent" = yes &&
18304 ac_config_status_args="$ac_config_status_args --quiet"
18305 exec 5>/dev/null
18306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18307 exec 5>>config.log
18308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18309 # would make configure fail if this is the last instruction.
18310 $ac_cs_success || { (exit 1); exit 1; }
18311 fi
18314 echo \
18315 "-----------------------------------------------------------
18317 Thank you for installing the Linux ${PACKAGE_NAME} package
18319 Installation directory prefix: '${prefix}'.
18320 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
18322 You have configured to build for the '${PLATFORM}' platform
18324 Your KERNEL installation directory is set to:
18325 '${KERNEL_INSTALL_DIR}'
18327 Your CMEM installation directory is set to:
18328 '${CMEM_INSTALL_DIR}'
18330 Now type 'make; sudo make install' to generate the program
18331 and install it to your system.
18333 ------------------------------------------------------------"