]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blob - configure
BIOS: Minor log statement formatting
[ipc/ipcdev.git] / configure
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
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='
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
404 # Initializations.
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 OMAPL138_TRUE OMAPL138_FALSE TCI6614_TRUE TCI6614_FALSE TCI6638_TRUE TCI6638_FALSE OMAP54XX_SMP_TRUE OMAP54XX_SMP_FALSE CMEM_TRUE CMEM_FALSE KDIR_TRUE KDIR_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
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954   # Omit some internal or obsolete options to make the list less imposing.
955   # This message is too long to be a string in the A/UX 3.1 sh.
956   cat <<_ACEOF
957 \`configure' configures TI IPC 3.0.0 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE.  See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
966 Configuration:
967   -h, --help              display this help and exit
968       --help=short        display options specific to this package
969       --help=recursive    display the short help of all the included packages
970   -V, --version           display version information and exit
971   -q, --quiet, --silent   do not print \`checking...' messages
972       --cache-file=FILE   cache test results in FILE [disabled]
973   -C, --config-cache      alias for \`--cache-file=config.cache'
974   -n, --no-create         do not create output files
975       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
977 _ACEOF
979   cat <<_ACEOF
980 Installation directories:
981   --prefix=PREFIX         install architecture-independent files in PREFIX
982                           [$ac_default_prefix]
983   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984                           [PREFIX]
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994   --bindir=DIR           user executables [EPREFIX/bin]
995   --sbindir=DIR          system admin executables [EPREFIX/sbin]
996   --libexecdir=DIR       program executables [EPREFIX/libexec]
997   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001   --libdir=DIR           object code libraries [EPREFIX/lib]
1002   --includedir=DIR       C header files [PREFIX/include]
1003   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004   --infodir=DIR          info documentation [PREFIX/info]
1005   --mandir=DIR           man documentation [PREFIX/man]
1006 _ACEOF
1008   cat <<\_ACEOF
1010 Program names:
1011   --program-prefix=PREFIX            prepend PREFIX to installed program names
1012   --program-suffix=SUFFIX            append SUFFIX to installed program names
1013   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1015 System types:
1016   --build=BUILD     configure for building on BUILD [guessed]
1017   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018 _ACEOF
1019 fi
1021 if test -n "$ac_init_help"; then
1022   case $ac_init_help in
1023      short | recursive ) echo "Configuration of TI IPC 3.0.0:";;
1024    esac
1025   cat <<\_ACEOF
1027 Optional Features:
1028   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030   --enable-maintainer-mode  enable make rules and dependencies not useful
1031                           (and sometimes confusing) to the casual installer
1032   --enable-shared[=PKGS]
1033                           build shared libraries [default=yes]
1034   --enable-static[=PKGS]
1035                           build static libraries [default=yes]
1036   --enable-fast-install[=PKGS]
1037                           optimize for fast installation [default=yes]
1038   --disable-dependency-tracking  speeds up one-time build
1039   --enable-dependency-tracking   do not reject slow dependency extractors
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1042 Optional Packages:
1043   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046   --with-pic              try to use only PIC/non-PIC objects [default=use
1047                           both]
1048   --with-tags[=TAGS]
1049                           include additional configurations [automatic]
1051 Some influential environment variables:
1052   CC          C compiler command
1053   CFLAGS      C compiler flags
1054   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055               nonstandard directory <lib dir>
1056   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057               headers in a nonstandard directory <include dir>
1058   CPP         C preprocessor
1059   CXX         C++ compiler command
1060   CXXFLAGS    C++ compiler flags
1061   CXXCPP      C++ preprocessor
1062   PLATFORM    Platform to build. Options are: 'omapl138' 'omap54xx_smp'
1063               'tci6614' and 'tci6638'. If not defined all platforms will be
1064               built.
1065   CMEM_INSTALL_DIR
1066               Installation path directory to the CMEM libraries
1067   KERNEL_INSTALL_DIR
1068               Installation path to the Linux kernel.
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1073 _ACEOF
1074 fi
1076 if test "$ac_init_help" = "recursive"; then
1077   # If there are subdirs, report their specific --help.
1078   ac_popdir=`pwd`
1079   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080     test -d $ac_dir || continue
1081     ac_builddir=.
1083 if test "$ac_dir" != .; then
1084   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085   # A "../" for each directory in $ac_dir_suffix.
1086   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088   ac_dir_suffix= ac_top_builddir=
1089 fi
1091 case $srcdir in
1092   .)  # No --srcdir option.  We are building in place.
1093     ac_srcdir=.
1094     if test -z "$ac_top_builddir"; then
1095        ac_top_srcdir=.
1096     else
1097        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098     fi ;;
1099   [\\/]* | ?:[\\/]* )  # Absolute path.
1100     ac_srcdir=$srcdir$ac_dir_suffix;
1101     ac_top_srcdir=$srcdir ;;
1102   *) # Relative path.
1103     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112   case "$ac_dir" in
1113   .) ac_abs_builddir=`pwd`;;
1114   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116   esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121   case ${ac_top_builddir}. in
1122   .) ac_abs_top_builddir=$ac_abs_builddir;;
1123   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125   esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130   case $ac_srcdir in
1131   .) ac_abs_srcdir=$ac_abs_builddir;;
1132   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134   esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139   case $ac_top_srcdir in
1140   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143   esac;;
1144 esac
1146     cd $ac_dir
1147     # Check for guested configure; otherwise get Cygnus style configure.
1148     if test -f $ac_srcdir/configure.gnu; then
1149       echo
1150       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151     elif test -f $ac_srcdir/configure; then
1152       echo
1153       $SHELL $ac_srcdir/configure  --help=recursive
1154     elif test -f $ac_srcdir/configure.ac ||
1155            test -f $ac_srcdir/configure.in; then
1156       echo
1157       $ac_configure --help
1158     else
1159       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160     fi
1161     cd $ac_popdir
1162   done
1163 fi
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167   cat <<\_ACEOF
1168 TI IPC configure 3.0.0
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1174 _ACEOF
1175   exit 0
1176 fi
1177 exec 5>config.log
1178 cat >&5 <<_ACEOF
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by TI IPC $as_me 3.0.0, which was
1183 generated by GNU Autoconf 2.59.  Invocation command line was
1185   $ $0 $@
1187 _ACEOF
1189 cat <<_ASUNAME
1190 ## --------- ##
1191 ## Platform. ##
1192 ## --------- ##
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1203 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1211 _ASUNAME
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214 for as_dir in $PATH
1215 do
1216   IFS=$as_save_IFS
1217   test -z "$as_dir" && as_dir=.
1218   echo "PATH: $as_dir"
1219 done
1221 } >&5
1223 cat >&5 <<_ACEOF
1226 ## ----------- ##
1227 ## Core tests. ##
1228 ## ----------- ##
1230 _ACEOF
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1238 ac_configure_args=
1239 ac_configure_args0=
1240 ac_configure_args1=
1241 ac_sep=
1242 ac_must_keep_next=false
1243 for ac_pass in 1 2
1244 do
1245   for ac_arg
1246   do
1247     case $ac_arg in
1248     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250     | -silent | --silent | --silen | --sile | --sil)
1251       continue ;;
1252     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254     esac
1255     case $ac_pass in
1256     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257     2)
1258       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259       if test $ac_must_keep_next = true; then
1260         ac_must_keep_next=false # Got value, back to normal.
1261       else
1262         case $ac_arg in
1263           *=* | --config-cache | -C | -disable-* | --disable-* \
1264           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266           | -with-* | --with-* | -without-* | --without-* | --x)
1267             case "$ac_configure_args0 " in
1268               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269             esac
1270             ;;
1271           -* ) ac_must_keep_next=true ;;
1272         esac
1273       fi
1274       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275       # Get rid of the leading space.
1276       ac_sep=" "
1277       ;;
1278     esac
1279   done
1280 done
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log.  We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290   # Save into config.log some information that might help in debugging.
1291   {
1292     echo
1294     cat <<\_ASBOX
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1298 _ASBOX
1299     echo
1300     # The following way of writing the cache mishandles newlines in values,
1302   (set) 2>&1 |
1303     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304     *ac_space=\ *)
1305       sed -n \
1306         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308       ;;
1309     *)
1310       sed -n \
1311         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312       ;;
1313     esac;
1315     echo
1317     cat <<\_ASBOX
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1321 _ASBOX
1322     echo
1323     for ac_var in $ac_subst_vars
1324     do
1325       eval ac_val=$`echo $ac_var`
1326       echo "$ac_var='"'"'$ac_val'"'"'"
1327     done | sort
1328     echo
1330     if test -n "$ac_subst_files"; then
1331       cat <<\_ASBOX
1332 ## ------------- ##
1333 ## Output files. ##
1334 ## ------------- ##
1335 _ASBOX
1336       echo
1337       for ac_var in $ac_subst_files
1338       do
1339         eval ac_val=$`echo $ac_var`
1340         echo "$ac_var='"'"'$ac_val'"'"'"
1341       done | sort
1342       echo
1343     fi
1345     if test -s confdefs.h; then
1346       cat <<\_ASBOX
1347 ## ----------- ##
1348 ## confdefs.h. ##
1349 ## ----------- ##
1350 _ASBOX
1351       echo
1352       sed "/^$/d" confdefs.h | sort
1353       echo
1354     fi
1355     test "$ac_signal" != 0 &&
1356       echo "$as_me: caught signal $ac_signal"
1357     echo "$as_me: exit $exit_status"
1358   } >&5
1359   rm -f core *.core &&
1360   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361     exit $exit_status
1362      ' 0
1363 for ac_signal in 1 2 13 15; do
1364   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365 done
1366 ac_signal=0
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371 echo >confdefs.h
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1377 _ACEOF
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382 _ACEOF
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1387 _ACEOF
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1392 _ACEOF
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397 _ACEOF
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403   if test "x$prefix" != xNONE; then
1404     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405   else
1406     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407   fi
1408 fi
1409 for ac_site_file in $CONFIG_SITE; do
1410   if test -r "$ac_site_file"; then
1411     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413     sed 's/^/| /' "$ac_site_file" >&5
1414     . "$ac_site_file"
1415   fi
1416 done
1418 if test -r "$cache_file"; then
1419   # Some versions of bash will fail to source /dev/null (special
1420   # files actually), so we avoid doing that.
1421   if test -f "$cache_file"; then
1422     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1424     case $cache_file in
1425       [\\/]* | ?:[\\/]* ) . $cache_file;;
1426       *)                      . ./$cache_file;;
1427     esac
1428   fi
1429 else
1430   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1432   >$cache_file
1433 fi
1435 # Check that the precious variables saved in the cache have kept the same
1436 # value.
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441   eval ac_new_set=\$ac_env_${ac_var}_set
1442   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443   eval ac_new_val="\$ac_env_${ac_var}_value"
1444   case $ac_old_set,$ac_new_set in
1445     set,)
1446       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448       ac_cache_corrupted=: ;;
1449     ,set)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,);;
1454     *)
1455       if test "x$ac_old_val" != "x$ac_new_val"; then
1456         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459 echo "$as_me:   former value:  $ac_old_val" >&2;}
1460         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461 echo "$as_me:   current value: $ac_new_val" >&2;}
1462         ac_cache_corrupted=:
1463       fi;;
1464   esac
1465   # Pass precious variables to config.status.
1466   if test "$ac_new_set" = set; then
1467     case $ac_new_val in
1468     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470     *) ac_arg=$ac_var=$ac_new_val ;;
1471     esac
1472     case " $ac_configure_args " in
1473       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475     esac
1476   fi
1477 done
1478 if $ac_cache_corrupted; then
1479   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483    { (exit 1); exit 1; }; }
1484 fi
1486 ac_ext=c
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519 # Check common src files to ensure integrity of the package
1522 # Set auxiliary build tools directory
1523 ac_aux_dir=
1524 for ac_dir in linux/build-aux $srcdir/linux/build-aux; do
1525   if test -f $ac_dir/install-sh; then
1526     ac_aux_dir=$ac_dir
1527     ac_install_sh="$ac_aux_dir/install-sh -c"
1528     break
1529   elif test -f $ac_dir/install.sh; then
1530     ac_aux_dir=$ac_dir
1531     ac_install_sh="$ac_aux_dir/install.sh -c"
1532     break
1533   elif test -f $ac_dir/shtool; then
1534     ac_aux_dir=$ac_dir
1535     ac_install_sh="$ac_aux_dir/shtool install -c"
1536     break
1537   fi
1538 done
1539 if test -z "$ac_aux_dir"; then
1540   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&5
1541 echo "$as_me: error: cannot find install-sh or install.sh in linux/build-aux $srcdir/linux/build-aux" >&2;}
1542    { (exit 1); exit 1; }; }
1543 fi
1544 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1545 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1546 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1549 # Initilize automake
1550 am__api_version="1.9"
1551 # Find a good install program.  We prefer a C program (faster),
1552 # so one script is as good as another.  But avoid the broken or
1553 # incompatible versions:
1554 # SysV /etc/install, /usr/sbin/install
1555 # SunOS /usr/etc/install
1556 # IRIX /sbin/install
1557 # AIX /bin/install
1558 # AmigaOS /C/install, which installs bootblocks on floppy discs
1559 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1560 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1561 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1562 # OS/2's system install, which has a completely different semantic
1563 # ./install, which can be erroneously created by make from ./install.sh.
1564 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1565 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1566 if test -z "$INSTALL"; then
1567 if test "${ac_cv_path_install+set}" = set; then
1568   echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1571 for as_dir in $PATH
1572 do
1573   IFS=$as_save_IFS
1574   test -z "$as_dir" && as_dir=.
1575   # Account for people who put trailing slashes in PATH elements.
1576 case $as_dir/ in
1577   ./ | .// | /cC/* | \
1578   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1579   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1580   /usr/ucb/* ) ;;
1581   *)
1582     # OSF1 and SCO ODT 3.0 have their own names for install.
1583     # Don't use installbsd from OSF since it installs stuff as root
1584     # by default.
1585     for ac_prog in ginstall scoinst install; do
1586       for ac_exec_ext in '' $ac_executable_extensions; do
1587         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1588           if test $ac_prog = install &&
1589             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590             # AIX install.  It has an incompatible calling convention.
1591             :
1592           elif test $ac_prog = install &&
1593             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1594             # program-specific install script used by HP pwplus--don't use.
1595             :
1596           else
1597             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1598             break 3
1599           fi
1600         fi
1601       done
1602     done
1603     ;;
1604 esac
1605 done
1608 fi
1609   if test "${ac_cv_path_install+set}" = set; then
1610     INSTALL=$ac_cv_path_install
1611   else
1612     # As a last resort, use the slow shell script.  We don't cache a
1613     # path for INSTALL within a source directory, because that will
1614     # break other packages using the cache if that directory is
1615     # removed, or if the path is relative.
1616     INSTALL=$ac_install_sh
1617   fi
1618 fi
1619 echo "$as_me:$LINENO: result: $INSTALL" >&5
1620 echo "${ECHO_T}$INSTALL" >&6
1622 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1623 # It thinks the first close brace ends the variable substitution.
1624 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1628 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1630 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1631 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1632 # Just in case
1633 sleep 1
1634 echo timestamp > conftest.file
1635 # Do `set' in a subshell so we don't clobber the current shell's
1636 # arguments.  Must try -L first in case configure is actually a
1637 # symlink; some systems play weird games with the mod time of symlinks
1638 # (eg FreeBSD returns the mod time of the symlink's containing
1639 # directory).
1640 if (
1641    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1642    if test "$*" = "X"; then
1643       # -L didn't work.
1644       set X `ls -t $srcdir/configure conftest.file`
1645    fi
1646    rm -f conftest.file
1647    if test "$*" != "X $srcdir/configure conftest.file" \
1648       && test "$*" != "X conftest.file $srcdir/configure"; then
1650       # If neither matched, then we have a broken ls.  This can happen
1651       # if, for instance, CONFIG_SHELL is bash and it inherits a
1652       # broken ls alias from the environment.  This has actually
1653       # happened.  Such a system could not be considered "sane".
1654       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1655 alias in your environment" >&5
1656 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1657 alias in your environment" >&2;}
1658    { (exit 1); exit 1; }; }
1659    fi
1661    test "$2" = conftest.file
1662    )
1663 then
1664    # Ok.
1665    :
1666 else
1667    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1668 Check your system clock" >&5
1669 echo "$as_me: error: newly created file is older than distributed files!
1670 Check your system clock" >&2;}
1671    { (exit 1); exit 1; }; }
1672 fi
1673 echo "$as_me:$LINENO: result: yes" >&5
1674 echo "${ECHO_T}yes" >&6
1675 test "$program_prefix" != NONE &&
1676   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1677 # Use a double $ so make ignores it.
1678 test "$program_suffix" != NONE &&
1679   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1680 # Double any \ or $.  echo might interpret backslashes.
1681 # By default was `s,x,x', remove it if useless.
1682 cat <<\_ACEOF >conftest.sed
1683 s/[\\$]/&&/g;s/;s,x,x,$//
1684 _ACEOF
1685 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1686 rm conftest.sed
1688 # expand $ac_aux_dir to an absolute path
1689 am_aux_dir=`cd $ac_aux_dir && pwd`
1691 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1692 # Use eval to expand $SHELL
1693 if eval "$MISSING --run true"; then
1694   am_missing_run="$MISSING --run "
1695 else
1696   am_missing_run=
1697   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1698 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1699 fi
1701 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1702   # We used to keeping the `.' as first argument, in order to
1703   # allow $(mkdir_p) to be used without argument.  As in
1704   #   $(mkdir_p) $(somedir)
1705   # where $(somedir) is conditionally defined.  However this is wrong
1706   # for two reasons:
1707   #  1. if the package is installed by a user who cannot write `.'
1708   #     make install will fail,
1709   #  2. the above comment should most certainly read
1710   #     $(mkdir_p) $(DESTDIR)$(somedir)
1711   #     so it does not work when $(somedir) is undefined and
1712   #     $(DESTDIR) is not.
1713   #  To support the latter case, we have to write
1714   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1715   #  so the `.' trick is pointless.
1716   mkdir_p='mkdir -p --'
1717 else
1718   # On NextStep and OpenStep, the `mkdir' command does not
1719   # recognize any option.  It will interpret all options as
1720   # directories to create, and then abort because `.' already
1721   # exists.
1722   for d in ./-p ./--version;
1723   do
1724     test -d $d && rmdir $d
1725   done
1726   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1727   if test -f "$ac_aux_dir/mkinstalldirs"; then
1728     mkdir_p='$(mkinstalldirs)'
1729   else
1730     mkdir_p='$(install_sh) -d'
1731   fi
1732 fi
1734 for ac_prog in gawk mawk nawk awk
1735 do
1736   # Extract the first word of "$ac_prog", so it can be a program name with args.
1737 set dummy $ac_prog; ac_word=$2
1738 echo "$as_me:$LINENO: checking for $ac_word" >&5
1739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1740 if test "${ac_cv_prog_AWK+set}" = set; then
1741   echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743   if test -n "$AWK"; then
1744   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1745 else
1746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1747 for as_dir in $PATH
1748 do
1749   IFS=$as_save_IFS
1750   test -z "$as_dir" && as_dir=.
1751   for ac_exec_ext in '' $ac_executable_extensions; do
1752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1753     ac_cv_prog_AWK="$ac_prog"
1754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755     break 2
1756   fi
1757 done
1758 done
1760 fi
1761 fi
1762 AWK=$ac_cv_prog_AWK
1763 if test -n "$AWK"; then
1764   echo "$as_me:$LINENO: result: $AWK" >&5
1765 echo "${ECHO_T}$AWK" >&6
1766 else
1767   echo "$as_me:$LINENO: result: no" >&5
1768 echo "${ECHO_T}no" >&6
1769 fi
1771   test -n "$AWK" && break
1772 done
1774 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1775 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1776 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1777 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1778   echo $ECHO_N "(cached) $ECHO_C" >&6
1779 else
1780   cat >conftest.make <<\_ACEOF
1781 all:
1782         @echo 'ac_maketemp="$(MAKE)"'
1783 _ACEOF
1784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1785 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1786 if test -n "$ac_maketemp"; then
1787   eval ac_cv_prog_make_${ac_make}_set=yes
1788 else
1789   eval ac_cv_prog_make_${ac_make}_set=no
1790 fi
1791 rm -f conftest.make
1792 fi
1793 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1794   echo "$as_me:$LINENO: result: yes" >&5
1795 echo "${ECHO_T}yes" >&6
1796   SET_MAKE=
1797 else
1798   echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800   SET_MAKE="MAKE=${MAKE-make}"
1801 fi
1803 rm -rf .tst 2>/dev/null
1804 mkdir .tst 2>/dev/null
1805 if test -d .tst; then
1806   am__leading_dot=.
1807 else
1808   am__leading_dot=_
1809 fi
1810 rmdir .tst 2>/dev/null
1812 # test to see if srcdir already configured
1813 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1814    test -f $srcdir/config.status; then
1815   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1816 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1817    { (exit 1); exit 1; }; }
1818 fi
1820 # test whether we have cygpath
1821 if test -z "$CYGPATH_W"; then
1822   if (cygpath --version) >/dev/null 2>/dev/null; then
1823     CYGPATH_W='cygpath -w'
1824   else
1825     CYGPATH_W=echo
1826   fi
1827 fi
1830 # Define the identity of the package.
1831  PACKAGE='ti-ipc'
1832  VERSION='3.0.0'
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE "$PACKAGE"
1837 _ACEOF
1840 cat >>confdefs.h <<_ACEOF
1841 #define VERSION "$VERSION"
1842 _ACEOF
1844 # Some tools Automake needs.
1846 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1849 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1852 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1855 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1858 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1860 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1862 # Installed binaries are usually stripped using `strip' when the user
1863 # run `make install-strip'.  However `strip' might not be the right
1864 # tool to use in cross-compilation environments, therefore Automake
1865 # will honor the `STRIP' environment variable to overrule this program.
1866 if test "$cross_compiling" != no; then
1867   if test -n "$ac_tool_prefix"; then
1868   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1869 set dummy ${ac_tool_prefix}strip; ac_word=$2
1870 echo "$as_me:$LINENO: checking for $ac_word" >&5
1871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1872 if test "${ac_cv_prog_STRIP+set}" = set; then
1873   echo $ECHO_N "(cached) $ECHO_C" >&6
1874 else
1875   if test -n "$STRIP"; then
1876   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883   for ac_exec_ext in '' $ac_executable_extensions; do
1884   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1885     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1887     break 2
1888   fi
1889 done
1890 done
1892 fi
1893 fi
1894 STRIP=$ac_cv_prog_STRIP
1895 if test -n "$STRIP"; then
1896   echo "$as_me:$LINENO: result: $STRIP" >&5
1897 echo "${ECHO_T}$STRIP" >&6
1898 else
1899   echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 fi
1903 fi
1904 if test -z "$ac_cv_prog_STRIP"; then
1905   ac_ct_STRIP=$STRIP
1906   # Extract the first word of "strip", so it can be a program name with args.
1907 set dummy strip; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$ac_ct_STRIP"; then
1914   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923     ac_cv_prog_ac_ct_STRIP="strip"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1930   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1931 fi
1932 fi
1933 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1934 if test -n "$ac_ct_STRIP"; then
1935   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1936 echo "${ECHO_T}$ac_ct_STRIP" >&6
1937 else
1938   echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1940 fi
1942   STRIP=$ac_ct_STRIP
1943 else
1944   STRIP="$ac_cv_prog_STRIP"
1945 fi
1947 fi
1948 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1950 # We need awk for the "check" target.  The system "awk" is bad on
1951 # some platforms.
1952 # Always define AMTAR for backward compatibility.
1954 AMTAR=${AMTAR-"${am_missing_run}tar"}
1956 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1963 # Disabling maintainer mode to prevent rebuild of configure script
1964 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1965 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1966     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1967 if test "${enable_maintainer_mode+set}" = set; then
1968   enableval="$enable_maintainer_mode"
1969   USE_MAINTAINER_MODE=$enableval
1970 else
1971   USE_MAINTAINER_MODE=no
1972 fi;
1973   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1974 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1977 if test $USE_MAINTAINER_MODE = yes; then
1978   MAINTAINER_MODE_TRUE=
1979   MAINTAINER_MODE_FALSE='#'
1980 else
1981   MAINTAINER_MODE_TRUE='#'
1982   MAINTAINER_MODE_FALSE=
1983 fi
1985   MAINT=$MAINTAINER_MODE_TRUE
1989 # Initalize libtool but disable fortran check
1990 # Check whether --enable-shared or --disable-shared was given.
1991 if test "${enable_shared+set}" = set; then
1992   enableval="$enable_shared"
1993   p=${PACKAGE-default}
1994     case $enableval in
1995     yes) enable_shared=yes ;;
1996     no) enable_shared=no ;;
1997     *)
1998       enable_shared=no
1999       # Look at the argument we got.  We use all the common list separators.
2000       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2001       for pkg in $enableval; do
2002         IFS="$lt_save_ifs"
2003         if test "X$pkg" = "X$p"; then
2004           enable_shared=yes
2005         fi
2006       done
2007       IFS="$lt_save_ifs"
2008       ;;
2009     esac
2010 else
2011   enable_shared=yes
2012 fi;
2014 # Check whether --enable-static or --disable-static was given.
2015 if test "${enable_static+set}" = set; then
2016   enableval="$enable_static"
2017   p=${PACKAGE-default}
2018     case $enableval in
2019     yes) enable_static=yes ;;
2020     no) enable_static=no ;;
2021     *)
2022      enable_static=no
2023       # Look at the argument we got.  We use all the common list separators.
2024       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2025       for pkg in $enableval; do
2026         IFS="$lt_save_ifs"
2027         if test "X$pkg" = "X$p"; then
2028           enable_static=yes
2029         fi
2030       done
2031       IFS="$lt_save_ifs"
2032       ;;
2033     esac
2034 else
2035   enable_static=yes
2036 fi;
2038 # Check whether --enable-fast-install or --disable-fast-install was given.
2039 if test "${enable_fast_install+set}" = set; then
2040   enableval="$enable_fast_install"
2041   p=${PACKAGE-default}
2042     case $enableval in
2043     yes) enable_fast_install=yes ;;
2044     no) enable_fast_install=no ;;
2045     *)
2046       enable_fast_install=no
2047       # Look at the argument we got.  We use all the common list separators.
2048       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2049       for pkg in $enableval; do
2050         IFS="$lt_save_ifs"
2051         if test "X$pkg" = "X$p"; then
2052           enable_fast_install=yes
2053         fi
2054       done
2055       IFS="$lt_save_ifs"
2056       ;;
2057     esac
2058 else
2059   enable_fast_install=yes
2060 fi;
2062 # Make sure we can run config.sub.
2063 $ac_config_sub sun4 >/dev/null 2>&1 ||
2064   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2065 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2066    { (exit 1); exit 1; }; }
2068 echo "$as_me:$LINENO: checking build system type" >&5
2069 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2070 if test "${ac_cv_build+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   ac_cv_build_alias=$build_alias
2074 test -z "$ac_cv_build_alias" &&
2075   ac_cv_build_alias=`$ac_config_guess`
2076 test -z "$ac_cv_build_alias" &&
2077   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2078 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2079    { (exit 1); exit 1; }; }
2080 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2081   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2082 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2083    { (exit 1); exit 1; }; }
2085 fi
2086 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2087 echo "${ECHO_T}$ac_cv_build" >&6
2088 build=$ac_cv_build
2089 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2090 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2091 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2094 echo "$as_me:$LINENO: checking host system type" >&5
2095 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2096 if test "${ac_cv_host+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   ac_cv_host_alias=$host_alias
2100 test -z "$ac_cv_host_alias" &&
2101   ac_cv_host_alias=$ac_cv_build_alias
2102 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2103   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2104 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2105    { (exit 1); exit 1; }; }
2107 fi
2108 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2109 echo "${ECHO_T}$ac_cv_host" >&6
2110 host=$ac_cv_host
2111 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2112 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2113 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2116 DEPDIR="${am__leading_dot}deps"
2118           ac_config_commands="$ac_config_commands depfiles"
2121 am_make=${MAKE-make}
2122 cat > confinc << 'END'
2123 am__doit:
2124         @echo done
2125 .PHONY: am__doit
2126 END
2127 # If we don't find an include directive, just comment out the code.
2128 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2129 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2130 am__include="#"
2131 am__quote=
2132 _am_result=none
2133 # First try GNU make style include.
2134 echo "include confinc" > confmf
2135 # We grep out `Entering directory' and `Leaving directory'
2136 # messages which can occur if `w' ends up in MAKEFLAGS.
2137 # In particular we don't look at `^make:' because GNU make might
2138 # be invoked under some other name (usually "gmake"), in which
2139 # case it prints its new name instead of `make'.
2140 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2141    am__include=include
2142    am__quote=
2143    _am_result=GNU
2144 fi
2145 # Now try BSD make style include.
2146 if test "$am__include" = "#"; then
2147    echo '.include "confinc"' > confmf
2148    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2149       am__include=.include
2150       am__quote="\""
2151       _am_result=BSD
2152    fi
2153 fi
2156 echo "$as_me:$LINENO: result: $_am_result" >&5
2157 echo "${ECHO_T}$_am_result" >&6
2158 rm -f confinc confmf
2160 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2161 if test "${enable_dependency_tracking+set}" = set; then
2162   enableval="$enable_dependency_tracking"
2164 fi;
2165 if test "x$enable_dependency_tracking" != xno; then
2166   am_depcomp="$ac_aux_dir/depcomp"
2167   AMDEPBACKSLASH='\'
2168 fi
2171 if test "x$enable_dependency_tracking" != xno; then
2172   AMDEP_TRUE=
2173   AMDEP_FALSE='#'
2174 else
2175   AMDEP_TRUE='#'
2176   AMDEP_FALSE=
2177 fi
2181 ac_ext=c
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186 if test -n "$ac_tool_prefix"; then
2187   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2189 echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2191 if test "${ac_cv_prog_CC+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test -n "$CC"; then
2195   ac_cv_prog_CC="$CC" # Let the user override the test.
2196 else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2199 do
2200   IFS=$as_save_IFS
2201   test -z "$as_dir" && as_dir=.
2202   for ac_exec_ext in '' $ac_executable_extensions; do
2203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2204     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206     break 2
2207   fi
2208 done
2209 done
2211 fi
2212 fi
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215   echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6
2217 else
2218   echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6
2220 fi
2222 fi
2223 if test -z "$ac_cv_prog_CC"; then
2224   ac_ct_CC=$CC
2225   # Extract the first word of "gcc", so it can be a program name with args.
2226 set dummy gcc; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test -n "$ac_ct_CC"; then
2233   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240   for ac_exec_ext in '' $ac_executable_extensions; do
2241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242     ac_cv_prog_ac_ct_CC="gcc"
2243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244     break 2
2245   fi
2246 done
2247 done
2249 fi
2250 fi
2251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252 if test -n "$ac_ct_CC"; then
2253   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254 echo "${ECHO_T}$ac_ct_CC" >&6
2255 else
2256   echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2258 fi
2260   CC=$ac_ct_CC
2261 else
2262   CC="$ac_cv_prog_CC"
2263 fi
2265 if test -z "$CC"; then
2266   if test -n "$ac_tool_prefix"; then
2267   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}cc; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$CC"; then
2275   ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284     ac_cv_prog_CC="${ac_tool_prefix}cc"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2291 fi
2292 fi
2293 CC=$ac_cv_prog_CC
2294 if test -n "$CC"; then
2295   echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6
2297 else
2298   echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2300 fi
2302 fi
2303 if test -z "$ac_cv_prog_CC"; then
2304   ac_ct_CC=$CC
2305   # Extract the first word of "cc", so it can be a program name with args.
2306 set dummy cc; ac_word=$2
2307 echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   if test -n "$ac_ct_CC"; then
2313   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320   for ac_exec_ext in '' $ac_executable_extensions; do
2321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322     ac_cv_prog_ac_ct_CC="cc"
2323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324     break 2
2325   fi
2326 done
2327 done
2329 fi
2330 fi
2331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2332 if test -n "$ac_ct_CC"; then
2333   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2334 echo "${ECHO_T}$ac_ct_CC" >&6
2335 else
2336   echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6
2338 fi
2340   CC=$ac_ct_CC
2341 else
2342   CC="$ac_cv_prog_CC"
2343 fi
2345 fi
2346 if test -z "$CC"; then
2347   # Extract the first word of "cc", so it can be a program name with args.
2348 set dummy cc; ac_word=$2
2349 echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   if test -n "$CC"; then
2355   ac_cv_prog_CC="$CC" # Let the user override the test.
2356 else
2357   ac_prog_rejected=no
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2366        ac_prog_rejected=yes
2367        continue
2368      fi
2369     ac_cv_prog_CC="cc"
2370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371     break 2
2372   fi
2373 done
2374 done
2376 if test $ac_prog_rejected = yes; then
2377   # We found a bogon in the path, so make sure we never use it.
2378   set dummy $ac_cv_prog_CC
2379   shift
2380   if test $# != 0; then
2381     # We chose a different compiler from the bogus one.
2382     # However, it has the same basename, so the bogon will be chosen
2383     # first if we set CC to just the basename; use the full file name.
2384     shift
2385     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2386   fi
2387 fi
2388 fi
2389 fi
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392   echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6
2394 else
2395   echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2397 fi
2399 fi
2400 if test -z "$CC"; then
2401   if test -n "$ac_tool_prefix"; then
2402   for ac_prog in cl
2403   do
2404     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   if test -n "$CC"; then
2412   ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419   for ac_exec_ext in '' $ac_executable_extensions; do
2420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423     break 2
2424   fi
2425 done
2426 done
2428 fi
2429 fi
2430 CC=$ac_cv_prog_CC
2431 if test -n "$CC"; then
2432   echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6
2434 else
2435   echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2437 fi
2439     test -n "$CC" && break
2440   done
2441 fi
2442 if test -z "$CC"; then
2443   ac_ct_CC=$CC
2444   for ac_prog in cl
2445 do
2446   # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   if test -n "$ac_ct_CC"; then
2454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459   IFS=$as_save_IFS
2460   test -z "$as_dir" && as_dir=.
2461   for ac_exec_ext in '' $ac_executable_extensions; do
2462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463     ac_cv_prog_ac_ct_CC="$ac_prog"
2464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465     break 2
2466   fi
2467 done
2468 done
2470 fi
2471 fi
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6
2476 else
2477   echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6
2479 fi
2481   test -n "$ac_ct_CC" && break
2482 done
2484   CC=$ac_ct_CC
2485 fi
2487 fi
2490 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: no acceptable C compiler found in \$PATH
2493 See \`config.log' for more details." >&2;}
2494    { (exit 1); exit 1; }; }
2496 # Provide some information about the compiler.
2497 echo "$as_me:$LINENO:" \
2498      "checking for C compiler version" >&5
2499 ac_compiler=`set X $ac_compile; echo $2`
2500 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2501   (eval $ac_compiler --version </dev/null >&5) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2506   (eval $ac_compiler -v </dev/null >&5) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2511   (eval $ac_compiler -V </dev/null >&5) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2523 int
2524 main ()
2527   ;
2528   return 0;
2530 _ACEOF
2531 ac_clean_files_save=$ac_clean_files
2532 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2533 # Try to create an executable without -o first, disregard a.out.
2534 # It will help us diagnose broken compilers, and finding out an intuition
2535 # of exeext.
2536 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2537 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2538 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2540   (eval $ac_link_default) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }; then
2544   # Find the output, starting from the most likely.  This scheme is
2545 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2546 # resort.
2548 # Be careful to initialize this variable, since it used to be cached.
2549 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2550 ac_cv_exeext=
2551 # b.out is created by i960 compilers.
2552 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2553 do
2554   test -f "$ac_file" || continue
2555   case $ac_file in
2556     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2557         ;;
2558     conftest.$ac_ext )
2559         # This is the source file.
2560         ;;
2561     [ab].out )
2562         # We found the default executable, but exeext='' is most
2563         # certainly right.
2564         break;;
2565     *.* )
2566         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2567         # FIXME: I believe we export ac_cv_exeext for Libtool,
2568         # but it would be cool to find out if it's true.  Does anybody
2569         # maintain Libtool? --akim.
2570         export ac_cv_exeext
2571         break;;
2572     * )
2573         break;;
2574   esac
2575 done
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2580 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&2;}
2584    { (exit 77); exit 77; }; }
2585 fi
2587 ac_exeext=$ac_cv_exeext
2588 echo "$as_me:$LINENO: result: $ac_file" >&5
2589 echo "${ECHO_T}$ac_file" >&6
2591 # Check the compiler produces executables we can run.  If not, either
2592 # the compiler is broken, or we cross compile.
2593 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2596 # If not cross compiling, check that we can run a simple program.
2597 if test "$cross_compiling" != yes; then
2598   if { ac_try='./$ac_file'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604     cross_compiling=no
2605   else
2606     if test "$cross_compiling" = maybe; then
2607         cross_compiling=yes
2608     else
2609         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot run C compiled programs.
2613 If you meant to cross compile, use \`--host'.
2614 See \`config.log' for more details." >&2;}
2615    { (exit 1); exit 1; }; }
2616     fi
2617   fi
2618 fi
2619 echo "$as_me:$LINENO: result: yes" >&5
2620 echo "${ECHO_T}yes" >&6
2622 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2623 ac_clean_files=$ac_clean_files_save
2624 # Check the compiler produces executables we can run.  If not, either
2625 # the compiler is broken, or we cross compile.
2626 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2627 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2628 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2629 echo "${ECHO_T}$cross_compiling" >&6
2631 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2632 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2634   (eval $ac_link) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; then
2638   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2639 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2640 # work properly (i.e., refer to `conftest.exe'), while it won't with
2641 # `rm'.
2642 for ac_file in conftest.exe conftest conftest.*; do
2643   test -f "$ac_file" || continue
2644   case $ac_file in
2645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2646     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647           export ac_cv_exeext
2648           break;;
2649     * ) break;;
2650   esac
2651 done
2652 else
2653   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657    { (exit 1); exit 1; }; }
2658 fi
2660 rm -f conftest$ac_cv_exeext
2661 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2666 ac_exeext=$EXEEXT
2667 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2669 if test "${ac_cv_objext+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2679 int
2680 main ()
2683   ;
2684   return 0;
2686 _ACEOF
2687 rm -f conftest.o conftest.obj
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689   (eval $ac_compile) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }; then
2693   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2694   case $ac_file in
2695     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2696     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2697        break;;
2698   esac
2699 done
2700 else
2701   echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2704 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2707 See \`config.log' for more details." >&2;}
2708    { (exit 1); exit 1; }; }
2709 fi
2711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2712 fi
2713 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2714 echo "${ECHO_T}$ac_cv_objext" >&6
2715 OBJEXT=$ac_cv_objext
2716 ac_objext=$OBJEXT
2717 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2729 int
2730 main ()
2732 #ifndef __GNUC__
2733        choke me
2734 #endif
2736   ;
2737   return 0;
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742   (eval $ac_compile) 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } &&
2749          { ac_try='test -z "$ac_c_werror_flag"
2750                          || test ! -s conftest.err'
2751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752   (eval $ac_try) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; } &&
2756          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2762   ac_compiler_gnu=yes
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 ac_compiler_gnu=no
2768 fi
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2772 fi
2773 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2775 GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 ac_test_CFLAGS=${CFLAGS+set}
2777 ac_save_CFLAGS=$CFLAGS
2778 CFLAGS="-g"
2779 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2781 if test "${ac_cv_prog_cc_g+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2791 int
2792 main ()
2795   ;
2796   return 0;
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801   (eval $ac_compile) 2>conftest.er1
2802   ac_status=$?
2803   grep -v '^ *+' conftest.er1 >conftest.err
2804   rm -f conftest.er1
2805   cat conftest.err >&5
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); } &&
2808          { ac_try='test -z "$ac_c_werror_flag"
2809                          || test ! -s conftest.err'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; } &&
2815          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2821   ac_cv_prog_cc_g=yes
2822 else
2823   echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 ac_cv_prog_cc_g=no
2827 fi
2828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829 fi
2830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2832 if test "$ac_test_CFLAGS" = set; then
2833   CFLAGS=$ac_save_CFLAGS
2834 elif test $ac_cv_prog_cc_g = yes; then
2835   if test "$GCC" = yes; then
2836     CFLAGS="-g -O2"
2837   else
2838     CFLAGS="-g"
2839   fi
2840 else
2841   if test "$GCC" = yes; then
2842     CFLAGS="-O2"
2843   else
2844     CFLAGS=
2845   fi
2846 fi
2847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2850   echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852   ac_cv_prog_cc_stdc=no
2853 ac_save_CC=$CC
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860 #include <stdarg.h>
2861 #include <stdio.h>
2862 #include <sys/types.h>
2863 #include <sys/stat.h>
2864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2865 struct buf { int x; };
2866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2867 static char *e (p, i)
2868      char **p;
2869      int i;
2871   return p[i];
2873 static char *f (char * (*g) (char **, int), char **p, ...)
2875   char *s;
2876   va_list v;
2877   va_start (v,p);
2878   s = g (p, va_arg (v,int));
2879   va_end (v);
2880   return s;
2883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2884    function prototypes and stuff, but not '\xHH' hex character constants.
2885    These don't provoke an error unfortunately, instead are silently treated
2886    as 'x'.  The following induces an error, until -std1 is added to get
2887    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2888    array size at least.  It's necessary to write '\x00'==0 to get something
2889    that's true only with -std1.  */
2890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2892 int test (int i, double x);
2893 struct s1 {int (*f) (int a);};
2894 struct s2 {int (*f) (double a);};
2895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2896 int argc;
2897 char **argv;
2898 int
2899 main ()
2901 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2902   ;
2903   return 0;
2905 _ACEOF
2906 # Don't try gcc -ansi; that turns off useful extensions and
2907 # breaks some systems' header files.
2908 # AIX                   -qlanglvl=ansi
2909 # Ultrix and OSF/1      -std1
2910 # HP-UX 10.20 and later -Ae
2911 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2912 # SVR4                  -Xc -D__EXTENSIONS__
2913 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2914 do
2915   CC="$ac_save_CC $ac_arg"
2916   rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918   (eval $ac_compile) 2>conftest.er1
2919   ac_status=$?
2920   grep -v '^ *+' conftest.er1 >conftest.err
2921   rm -f conftest.er1
2922   cat conftest.err >&5
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -z "$ac_c_werror_flag"
2926                          || test ! -s conftest.err'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; } &&
2932          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2938   ac_cv_prog_cc_stdc=$ac_arg
2939 break
2940 else
2941   echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2944 fi
2945 rm -f conftest.err conftest.$ac_objext
2946 done
2947 rm -f conftest.$ac_ext conftest.$ac_objext
2948 CC=$ac_save_CC
2950 fi
2952 case "x$ac_cv_prog_cc_stdc" in
2953   x|xno)
2954     echo "$as_me:$LINENO: result: none needed" >&5
2955 echo "${ECHO_T}none needed" >&6 ;;
2956   *)
2957     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2958 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2959     CC="$CC $ac_cv_prog_cc_stdc" ;;
2960 esac
2962 # Some people use a C++ compiler to compile C.  Since we use `exit',
2963 # in C++ we need to declare it.  In case someone uses the same compiler
2964 # for both compiling C and C++ we need to have the C++ compiler decide
2965 # the declaration of exit, since it's the most demanding environment.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 #ifndef __cplusplus
2968   choke me
2969 #endif
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973   (eval $ac_compile) 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } &&
2980          { ac_try='test -z "$ac_c_werror_flag"
2981                          || test ! -s conftest.err'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; } &&
2987          { ac_try='test -s conftest.$ac_objext'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993   for ac_declaration in \
2994    '' \
2995    'extern "C" void std::exit (int) throw (); using std::exit;' \
2996    'extern "C" void std::exit (int); using std::exit;' \
2997    'extern "C" void exit (int) throw ();' \
2998    'extern "C" void exit (int);' \
2999    'void exit (int);'
3000 do
3001   cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007 $ac_declaration
3008 #include <stdlib.h>
3009 int
3010 main ()
3012 exit (42);
3013   ;
3014   return 0;
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019   (eval $ac_compile) 2>conftest.er1
3020   ac_status=$?
3021   grep -v '^ *+' conftest.er1 >conftest.err
3022   rm -f conftest.er1
3023   cat conftest.err >&5
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); } &&
3026          { ac_try='test -z "$ac_c_werror_flag"
3027                          || test ! -s conftest.err'
3028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029   (eval $ac_try) 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; } &&
3033          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3039   :
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3044 continue
3045 fi
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 $ac_declaration
3054 int
3055 main ()
3057 exit (42);
3058   ;
3059   return 0;
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064   (eval $ac_compile) 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -z "$ac_c_werror_flag"
3072                          || test ! -s conftest.err'
3073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; } &&
3078          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3084   break
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 fi
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3091 done
3092 rm -f conftest*
3093 if test -n "$ac_declaration"; then
3094   echo '#ifdef __cplusplus' >>confdefs.h
3095   echo $ac_declaration      >>confdefs.h
3096   echo '#endif'             >>confdefs.h
3097 fi
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 fi
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 ac_ext=c
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111 depcc="$CC"   am_compiler_list=
3113 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3114 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3115 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3119   # We make a subdir and do the tests there.  Otherwise we can end up
3120   # making bogus files that we don't know about and never remove.  For
3121   # instance it was reported that on HP-UX the gcc test will end up
3122   # making a dummy file named `D' -- because `-MD' means `put the output
3123   # in D'.
3124   mkdir conftest.dir
3125   # Copy depcomp to subdir because otherwise we won't find it if we're
3126   # using a relative directory.
3127   cp "$am_depcomp" conftest.dir
3128   cd conftest.dir
3129   # We will build objects and dependencies in a subdirectory because
3130   # it helps to detect inapplicable dependency modes.  For instance
3131   # both Tru64's cc and ICC support -MD to output dependencies as a
3132   # side effect of compilation, but ICC will put the dependencies in
3133   # the current directory while Tru64 will put them in the object
3134   # directory.
3135   mkdir sub
3137   am_cv_CC_dependencies_compiler_type=none
3138   if test "$am_compiler_list" = ""; then
3139      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3140   fi
3141   for depmode in $am_compiler_list; do
3142     # Setup a source with many dependencies, because some compilers
3143     # like to wrap large dependency lists on column 80 (with \), and
3144     # we should not choose a depcomp mode which is confused by this.
3145     #
3146     # We need to recreate these files for each test, as the compiler may
3147     # overwrite some of them when testing with obscure command lines.
3148     # This happens at least with the AIX C compiler.
3149     : > sub/conftest.c
3150     for i in 1 2 3 4 5 6; do
3151       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3152       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3153       # Solaris 8's {/usr,}/bin/sh.
3154       touch sub/conftst$i.h
3155     done
3156     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3158     case $depmode in
3159     nosideeffect)
3160       # after this tag, mechanisms are not by side-effect, so they'll
3161       # only be used when explicitly requested
3162       if test "x$enable_dependency_tracking" = xyes; then
3163         continue
3164       else
3165         break
3166       fi
3167       ;;
3168     none) break ;;
3169     esac
3170     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3171     # mode.  It turns out that the SunPro C++ compiler does not properly
3172     # handle `-M -o', and we need to detect this.
3173     if depmode=$depmode \
3174        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3175        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3176        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3177          >/dev/null 2>conftest.err &&
3178        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3179        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3180        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3181       # icc doesn't choke on unknown options, it will just issue warnings
3182       # or remarks (even with -Werror).  So we grep stderr for any message
3183       # that says an option was ignored or not supported.
3184       # When given -MP, icc 7.0 and 7.1 complain thusly:
3185       #   icc: Command line warning: ignoring option '-M'; no argument required
3186       # The diagnosis changed in icc 8.0:
3187       #   icc: Command line remark: option '-MP' not supported
3188       if (grep 'ignoring option' conftest.err ||
3189           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3190         am_cv_CC_dependencies_compiler_type=$depmode
3191         break
3192       fi
3193     fi
3194   done
3196   cd ..
3197   rm -rf conftest.dir
3198 else
3199   am_cv_CC_dependencies_compiler_type=none
3200 fi
3202 fi
3203 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3204 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3205 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3209 if
3210   test "x$enable_dependency_tracking" != xno \
3211   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3212   am__fastdepCC_TRUE=
3213   am__fastdepCC_FALSE='#'
3214 else
3215   am__fastdepCC_TRUE='#'
3216   am__fastdepCC_FALSE=
3217 fi
3220 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3221 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3222 if test "${lt_cv_path_SED+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   # Loop through the user's path and test for sed and gsed.
3226 # Then use that list of sed's as ones to test for truncation.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for lt_ac_prog in sed gsed; do
3233     for ac_exec_ext in '' $ac_executable_extensions; do
3234       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3235         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3236       fi
3237     done
3238   done
3239 done
3240 lt_ac_max=0
3241 lt_ac_count=0
3242 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3243 # along with /bin/sed that truncates output.
3244 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3245   test ! -f $lt_ac_sed && continue
3246   cat /dev/null > conftest.in
3247   lt_ac_count=0
3248   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3249   # Check for GNU sed and select it if it is found.
3250   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3251     lt_cv_path_SED=$lt_ac_sed
3252     break
3253   fi
3254   while true; do
3255     cat conftest.in conftest.in >conftest.tmp
3256     mv conftest.tmp conftest.in
3257     cp conftest.in conftest.nl
3258     echo >>conftest.nl
3259     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3260     cmp -s conftest.out conftest.nl || break
3261     # 10000 chars as input seems more than enough
3262     test $lt_ac_count -gt 10 && break
3263     lt_ac_count=`expr $lt_ac_count + 1`
3264     if test $lt_ac_count -gt $lt_ac_max; then
3265       lt_ac_max=$lt_ac_count
3266       lt_cv_path_SED=$lt_ac_sed
3267     fi
3268   done
3269 done
3271 fi
3273 SED=$lt_cv_path_SED
3274 echo "$as_me:$LINENO: result: $SED" >&5
3275 echo "${ECHO_T}$SED" >&6
3277 echo "$as_me:$LINENO: checking for egrep" >&5
3278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3279 if test "${ac_cv_prog_egrep+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3283     then ac_cv_prog_egrep='grep -E'
3284     else ac_cv_prog_egrep='egrep'
3285     fi
3286 fi
3287 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3288 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3289  EGREP=$ac_cv_prog_egrep
3293 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3294 if test "${with_gnu_ld+set}" = set; then
3295   withval="$with_gnu_ld"
3296   test "$withval" = no || with_gnu_ld=yes
3297 else
3298   with_gnu_ld=no
3299 fi;
3300 ac_prog=ld
3301 if test "$GCC" = yes; then
3302   # Check if gcc -print-prog-name=ld gives a path.
3303   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3304 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3305   case $host in
3306   *-*-mingw*)
3307     # gcc leaves a trailing carriage return which upsets mingw
3308     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3309   *)
3310     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3311   esac
3312   case $ac_prog in
3313     # Accept absolute paths.
3314     [\\/]* | ?:[\\/]*)
3315       re_direlt='/[^/][^/]*/\.\./'
3316       # Canonicalize the pathname of ld
3317       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3318       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3319         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3320       done
3321       test -z "$LD" && LD="$ac_prog"
3322       ;;
3323   "")
3324     # If it fails, then pretend we aren't using GCC.
3325     ac_prog=ld
3326     ;;
3327   *)
3328     # If it is relative, then search for the first ld in PATH.
3329     with_gnu_ld=unknown
3330     ;;
3331   esac
3332 elif test "$with_gnu_ld" = yes; then
3333   echo "$as_me:$LINENO: checking for GNU ld" >&5
3334 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3335 else
3336   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3337 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3338 fi
3339 if test "${lt_cv_path_LD+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   if test -z "$LD"; then
3343   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3344   for ac_dir in $PATH; do
3345     IFS="$lt_save_ifs"
3346     test -z "$ac_dir" && ac_dir=.
3347     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3348       lt_cv_path_LD="$ac_dir/$ac_prog"
3349       # Check to see if the program is GNU ld.  I'd rather use --version,
3350       # but apparently some variants of GNU ld only accept -v.
3351       # Break only if it was the GNU/non-GNU ld that we prefer.
3352       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3353       *GNU* | *'with BFD'*)
3354         test "$with_gnu_ld" != no && break
3355         ;;
3356       *)
3357         test "$with_gnu_ld" != yes && break
3358         ;;
3359       esac
3360     fi
3361   done
3362   IFS="$lt_save_ifs"
3363 else
3364   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3365 fi
3366 fi
3368 LD="$lt_cv_path_LD"
3369 if test -n "$LD"; then
3370   echo "$as_me:$LINENO: result: $LD" >&5
3371 echo "${ECHO_T}$LD" >&6
3372 else
3373   echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3375 fi
3376 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3377 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3378    { (exit 1); exit 1; }; }
3379 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3380 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3381 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3385 case `$LD -v 2>&1 </dev/null` in
3386 *GNU* | *'with BFD'*)
3387   lt_cv_prog_gnu_ld=yes
3388   ;;
3389 *)
3390   lt_cv_prog_gnu_ld=no
3391   ;;
3392 esac
3393 fi
3394 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3395 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3396 with_gnu_ld=$lt_cv_prog_gnu_ld
3399 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3400 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3401 if test "${lt_cv_ld_reload_flag+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   lt_cv_ld_reload_flag='-r'
3405 fi
3406 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3407 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3408 reload_flag=$lt_cv_ld_reload_flag
3409 case $reload_flag in
3410 "" | " "*) ;;
3411 *) reload_flag=" $reload_flag" ;;
3412 esac
3413 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3414 case $host_os in
3415   darwin*)
3416     if test "$GCC" = yes; then
3417       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3418     else
3419       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3420     fi
3421     ;;
3422 esac
3424 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3425 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3426 if test "${lt_cv_path_NM+set}" = set; then
3427   echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429   if test -n "$NM"; then
3430   # Let the user override the test.
3431   lt_cv_path_NM="$NM"
3432 else
3433   lt_nm_to_check="${ac_tool_prefix}nm"
3434   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3435     lt_nm_to_check="$lt_nm_to_check nm"
3436   fi
3437   for lt_tmp_nm in $lt_nm_to_check; do
3438     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3439     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3440       IFS="$lt_save_ifs"
3441       test -z "$ac_dir" && ac_dir=.
3442       tmp_nm="$ac_dir/$lt_tmp_nm"
3443       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3444         # Check to see if the nm accepts a BSD-compat flag.
3445         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3446         #   nm: unknown option "B" ignored
3447         # Tru64's nm complains that /dev/null is an invalid object file
3448         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3449         */dev/null* | *'Invalid file or object type'*)
3450           lt_cv_path_NM="$tmp_nm -B"
3451           break
3452           ;;
3453         *)
3454           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3455           */dev/null*)
3456             lt_cv_path_NM="$tmp_nm -p"
3457             break
3458             ;;
3459           *)
3460             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3461             continue # so that we can try to find one that supports BSD flags
3462             ;;
3463           esac
3464           ;;
3465         esac
3466       fi
3467     done
3468     IFS="$lt_save_ifs"
3469   done
3470   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3471 fi
3472 fi
3473 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3474 echo "${ECHO_T}$lt_cv_path_NM" >&6
3475 NM="$lt_cv_path_NM"
3477 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3478 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3479 LN_S=$as_ln_s
3480 if test "$LN_S" = "ln -s"; then
3481   echo "$as_me:$LINENO: result: yes" >&5
3482 echo "${ECHO_T}yes" >&6
3483 else
3484   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3485 echo "${ECHO_T}no, using $LN_S" >&6
3486 fi
3488 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3489 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3490 if test "${lt_cv_deplibs_check_method+set}" = set; then
3491   echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493   lt_cv_file_magic_cmd='$MAGIC_CMD'
3494 lt_cv_file_magic_test_file=
3495 lt_cv_deplibs_check_method='unknown'
3496 # Need to set the preceding variable on all platforms that support
3497 # interlibrary dependencies.
3498 # 'none' -- dependencies not supported.
3499 # `unknown' -- same as none, but documents that we really don't know.
3500 # 'pass_all' -- all dependencies passed with no checks.
3501 # 'test_compile' -- check by making test program.
3502 # 'file_magic [[regex]]' -- check by looking for files in library path
3503 # which responds to the $file_magic_cmd with a given extended regex.
3504 # If you have `file' or equivalent on your system and you're not sure
3505 # whether `pass_all' will *always* work, you probably want this one.
3507 case $host_os in
3508 aix4* | aix5*)
3509   lt_cv_deplibs_check_method=pass_all
3510   ;;
3512 beos*)
3513   lt_cv_deplibs_check_method=pass_all
3514   ;;
3516 bsdi[45]*)
3517   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3518   lt_cv_file_magic_cmd='/usr/bin/file -L'
3519   lt_cv_file_magic_test_file=/shlib/libc.so
3520   ;;
3522 cygwin*)
3523   # func_win32_libid is a shell function defined in ltmain.sh
3524   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3525   lt_cv_file_magic_cmd='func_win32_libid'
3526   ;;
3528 mingw* | pw32*)
3529   # Base MSYS/MinGW do not provide the 'file' command needed by
3530   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3531   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3532   lt_cv_file_magic_cmd='$OBJDUMP -f'
3533   ;;
3535 darwin* | rhapsody*)
3536   lt_cv_deplibs_check_method=pass_all
3537   ;;
3539 freebsd* | kfreebsd*-gnu | dragonfly*)
3540   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3541     case $host_cpu in
3542     i*86 )
3543       # Not sure whether the presence of OpenBSD here was a mistake.
3544       # Let's accept both of them until this is cleared up.
3545       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3546       lt_cv_file_magic_cmd=/usr/bin/file
3547       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3548       ;;
3549     esac
3550   else
3551     lt_cv_deplibs_check_method=pass_all
3552   fi
3553   ;;
3555 gnu*)
3556   lt_cv_deplibs_check_method=pass_all
3557   ;;
3559 hpux10.20* | hpux11*)
3560   lt_cv_file_magic_cmd=/usr/bin/file
3561   case $host_cpu in
3562   ia64*)
3563     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3564     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3565     ;;
3566   hppa*64*)
3567     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]'
3568     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3569     ;;
3570   *)
3571     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3572     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3573     ;;
3574   esac
3575   ;;
3577 interix3*)
3578   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3579   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3580   ;;
3582 irix5* | irix6* | nonstopux*)
3583   case $LD in
3584   *-32|*"-32 ") libmagic=32-bit;;
3585   *-n32|*"-n32 ") libmagic=N32;;
3586   *-64|*"-64 ") libmagic=64-bit;;
3587   *) libmagic=never-match;;
3588   esac
3589   lt_cv_deplibs_check_method=pass_all
3590   ;;
3592 # This must be Linux ELF.
3593 linux*)
3594   lt_cv_deplibs_check_method=pass_all
3595   ;;
3597 netbsd*)
3598   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3599     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3600   else
3601     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3602   fi
3603   ;;
3605 newos6*)
3606   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3607   lt_cv_file_magic_cmd=/usr/bin/file
3608   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3609   ;;
3611 nto-qnx*)
3612   lt_cv_deplibs_check_method=unknown
3613   ;;
3615 openbsd*)
3616   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3617     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3618   else
3619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3620   fi
3621   ;;
3623 osf3* | osf4* | osf5*)
3624   lt_cv_deplibs_check_method=pass_all
3625   ;;
3627 solaris*)
3628   lt_cv_deplibs_check_method=pass_all
3629   ;;
3631 sysv4 | sysv4.3*)
3632   case $host_vendor in
3633   motorola)
3634     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]'
3635     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3636     ;;
3637   ncr)
3638     lt_cv_deplibs_check_method=pass_all
3639     ;;
3640   sequent)
3641     lt_cv_file_magic_cmd='/bin/file'
3642     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3643     ;;
3644   sni)
3645     lt_cv_file_magic_cmd='/bin/file'
3646     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3647     lt_cv_file_magic_test_file=/lib/libc.so
3648     ;;
3649   siemens)
3650     lt_cv_deplibs_check_method=pass_all
3651     ;;
3652   pc)
3653     lt_cv_deplibs_check_method=pass_all
3654     ;;
3655   esac
3656   ;;
3658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3659   lt_cv_deplibs_check_method=pass_all
3660   ;;
3661 esac
3663 fi
3664 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3665 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3666 file_magic_cmd=$lt_cv_file_magic_cmd
3667 deplibs_check_method=$lt_cv_deplibs_check_method
3668 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3673 # If no C compiler was specified, use CC.
3674 LTCC=${LTCC-"$CC"}
3676 # If no C compiler flags were specified, use CFLAGS.
3677 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3679 # Allow CC to be a program name with arguments.
3680 compiler=$CC
3683 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3684 if test "${enable_libtool_lock+set}" = set; then
3685   enableval="$enable_libtool_lock"
3687 fi;
3688 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3690 # Some flags need to be propagated to the compiler or linker for good
3691 # libtool support.
3692 case $host in
3693 ia64-*-hpux*)
3694   # Find out which ABI we are using.
3695   echo 'int i;' > conftest.$ac_ext
3696   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3697   (eval $ac_compile) 2>&5
3698   ac_status=$?
3699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700   (exit $ac_status); }; then
3701     case `/usr/bin/file conftest.$ac_objext` in
3702     *ELF-32*)
3703       HPUX_IA64_MODE="32"
3704       ;;
3705     *ELF-64*)
3706       HPUX_IA64_MODE="64"
3707       ;;
3708     esac
3709   fi
3710   rm -rf conftest*
3711   ;;
3712 *-*-irix6*)
3713   # Find out which ABI we are using.
3714   echo '#line 3714 "configure"' > conftest.$ac_ext
3715   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716   (eval $ac_compile) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; then
3720    if test "$lt_cv_prog_gnu_ld" = yes; then
3721     case `/usr/bin/file conftest.$ac_objext` in
3722     *32-bit*)
3723       LD="${LD-ld} -melf32bsmip"
3724       ;;
3725     *N32*)
3726       LD="${LD-ld} -melf32bmipn32"
3727       ;;
3728     *64-bit*)
3729       LD="${LD-ld} -melf64bmip"
3730       ;;
3731     esac
3732    else
3733     case `/usr/bin/file conftest.$ac_objext` in
3734     *32-bit*)
3735       LD="${LD-ld} -32"
3736       ;;
3737     *N32*)
3738       LD="${LD-ld} -n32"
3739       ;;
3740     *64-bit*)
3741       LD="${LD-ld} -64"
3742       ;;
3743     esac
3744    fi
3745   fi
3746   rm -rf conftest*
3747   ;;
3749 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3750   # Find out which ABI we are using.
3751   echo 'int i;' > conftest.$ac_ext
3752   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3753   (eval $ac_compile) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; then
3757     case `/usr/bin/file conftest.o` in
3758     *32-bit*)
3759       case $host in
3760         x86_64-*linux*)
3761           LD="${LD-ld} -m elf_i386"
3762           ;;
3763         ppc64-*linux*|powerpc64-*linux*)
3764           LD="${LD-ld} -m elf32ppclinux"
3765           ;;
3766         s390x-*linux*)
3767           LD="${LD-ld} -m elf_s390"
3768           ;;
3769         sparc64-*linux*)
3770           LD="${LD-ld} -m elf32_sparc"
3771           ;;
3772       esac
3773       ;;
3774     *64-bit*)
3775       case $host in
3776         x86_64-*linux*)
3777           LD="${LD-ld} -m elf_x86_64"
3778           ;;
3779         ppc*-*linux*|powerpc*-*linux*)
3780           LD="${LD-ld} -m elf64ppc"
3781           ;;
3782         s390*-*linux*)
3783           LD="${LD-ld} -m elf64_s390"
3784           ;;
3785         sparc*-*linux*)
3786           LD="${LD-ld} -m elf64_sparc"
3787           ;;
3788       esac
3789       ;;
3790     esac
3791   fi
3792   rm -rf conftest*
3793   ;;
3795 *-*-sco3.2v5*)
3796   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3797   SAVE_CFLAGS="$CFLAGS"
3798   CFLAGS="$CFLAGS -belf"
3799   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3800 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3801 if test "${lt_cv_cc_needs_belf+set}" = set; then
3802   echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804   ac_ext=c
3805 ac_cpp='$CPP $CPPFLAGS'
3806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810      cat >conftest.$ac_ext <<_ACEOF
3811 /* confdefs.h.  */
3812 _ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h.  */
3817 int
3818 main ()
3821   ;
3822   return 0;
3824 _ACEOF
3825 rm -f conftest.$ac_objext conftest$ac_exeext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3827   (eval $ac_link) 2>conftest.er1
3828   ac_status=$?
3829   grep -v '^ *+' conftest.er1 >conftest.err
3830   rm -f conftest.er1
3831   cat conftest.err >&5
3832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); } &&
3834          { ac_try='test -z "$ac_c_werror_flag"
3835                          || test ! -s conftest.err'
3836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837   (eval $ac_try) 2>&5
3838   ac_status=$?
3839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840   (exit $ac_status); }; } &&
3841          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3847   lt_cv_cc_needs_belf=yes
3848 else
3849   echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 lt_cv_cc_needs_belf=no
3853 fi
3854 rm -f conftest.err conftest.$ac_objext \
3855       conftest$ac_exeext conftest.$ac_ext
3856      ac_ext=c
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 fi
3863 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3864 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3865   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3866     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3867     CFLAGS="$SAVE_CFLAGS"
3868   fi
3869   ;;
3870 sparc*-*solaris*)
3871   # Find out which ABI we are using.
3872   echo 'int i;' > conftest.$ac_ext
3873   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3874   (eval $ac_compile) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; then
3878     case `/usr/bin/file conftest.o` in
3879     *64-bit*)
3880       case $lt_cv_prog_gnu_ld in
3881       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3882       *)    LD="${LD-ld} -64" ;;
3883       esac
3884       ;;
3885     esac
3886   fi
3887   rm -rf conftest*
3888   ;;
3891 esac
3893 need_locks="$enable_libtool_lock"
3896 ac_ext=c
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3903 # On Suns, sometimes $CPP names a directory.
3904 if test -n "$CPP" && test -d "$CPP"; then
3905   CPP=
3906 fi
3907 if test -z "$CPP"; then
3908   if test "${ac_cv_prog_CPP+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911       # Double quotes because CPP needs to be expanded
3912     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3913     do
3914       ac_preproc_ok=false
3915 for ac_c_preproc_warn_flag in '' yes
3916 do
3917   # Use a header file that comes with gcc, so configuring glibc
3918   # with a fresh cross-compiler works.
3919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3920   # <limits.h> exists even on freestanding compilers.
3921   # On the NeXT, cc -E runs the code through the compiler's parser,
3922   # not just through cpp. "Syntax error" is here to catch this case.
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #ifdef __STDC__
3930 # include <limits.h>
3931 #else
3932 # include <assert.h>
3933 #endif
3934                      Syntax error
3935 _ACEOF
3936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3938   ac_status=$?
3939   grep -v '^ *+' conftest.er1 >conftest.err
3940   rm -f conftest.er1
3941   cat conftest.err >&5
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); } >/dev/null; then
3944   if test -s conftest.err; then
3945     ac_cpp_err=$ac_c_preproc_warn_flag
3946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3947   else
3948     ac_cpp_err=
3949   fi
3950 else
3951   ac_cpp_err=yes
3952 fi
3953 if test -z "$ac_cpp_err"; then
3954   :
3955 else
3956   echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959   # Broken: fails on valid input.
3960 continue
3961 fi
3962 rm -f conftest.err conftest.$ac_ext
3964   # OK, works on sane cases.  Now check whether non-existent headers
3965   # can be detected and how.
3966   cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h.  */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h.  */
3972 #include <ac_nonexistent.h>
3973 _ACEOF
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976   ac_status=$?
3977   grep -v '^ *+' conftest.er1 >conftest.err
3978   rm -f conftest.er1
3979   cat conftest.err >&5
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); } >/dev/null; then
3982   if test -s conftest.err; then
3983     ac_cpp_err=$ac_c_preproc_warn_flag
3984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3985   else
3986     ac_cpp_err=
3987   fi
3988 else
3989   ac_cpp_err=yes
3990 fi
3991 if test -z "$ac_cpp_err"; then
3992   # Broken: success on invalid input.
3993 continue
3994 else
3995   echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998   # Passes both tests.
3999 ac_preproc_ok=:
4000 break
4001 fi
4002 rm -f conftest.err conftest.$ac_ext
4004 done
4005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4006 rm -f conftest.err conftest.$ac_ext
4007 if $ac_preproc_ok; then
4008   break
4009 fi
4011     done
4012     ac_cv_prog_CPP=$CPP
4014 fi
4015   CPP=$ac_cv_prog_CPP
4016 else
4017   ac_cv_prog_CPP=$CPP
4018 fi
4019 echo "$as_me:$LINENO: result: $CPP" >&5
4020 echo "${ECHO_T}$CPP" >&6
4021 ac_preproc_ok=false
4022 for ac_c_preproc_warn_flag in '' yes
4023 do
4024   # Use a header file that comes with gcc, so configuring glibc
4025   # with a fresh cross-compiler works.
4026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027   # <limits.h> exists even on freestanding compilers.
4028   # On the NeXT, cc -E runs the code through the compiler's parser,
4029   # not just through cpp. "Syntax error" is here to catch this case.
4030   cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 #ifdef __STDC__
4037 # include <limits.h>
4038 #else
4039 # include <assert.h>
4040 #endif
4041                      Syntax error
4042 _ACEOF
4043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045   ac_status=$?
4046   grep -v '^ *+' conftest.er1 >conftest.err
4047   rm -f conftest.er1
4048   cat conftest.err >&5
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } >/dev/null; then
4051   if test -s conftest.err; then
4052     ac_cpp_err=$ac_c_preproc_warn_flag
4053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4054   else
4055     ac_cpp_err=
4056   fi
4057 else
4058   ac_cpp_err=yes
4059 fi
4060 if test -z "$ac_cpp_err"; then
4061   :
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066   # Broken: fails on valid input.
4067 continue
4068 fi
4069 rm -f conftest.err conftest.$ac_ext
4071   # OK, works on sane cases.  Now check whether non-existent headers
4072   # can be detected and how.
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 #include <ac_nonexistent.h>
4080 _ACEOF
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083   ac_status=$?
4084   grep -v '^ *+' conftest.er1 >conftest.err
4085   rm -f conftest.er1
4086   cat conftest.err >&5
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); } >/dev/null; then
4089   if test -s conftest.err; then
4090     ac_cpp_err=$ac_c_preproc_warn_flag
4091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4092   else
4093     ac_cpp_err=
4094   fi
4095 else
4096   ac_cpp_err=yes
4097 fi
4098 if test -z "$ac_cpp_err"; then
4099   # Broken: success on invalid input.
4100 continue
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105   # Passes both tests.
4106 ac_preproc_ok=:
4107 break
4108 fi
4109 rm -f conftest.err conftest.$ac_ext
4111 done
4112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113 rm -f conftest.err conftest.$ac_ext
4114 if $ac_preproc_ok; then
4115   :
4116 else
4117   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4118 See \`config.log' for more details." >&5
4119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4120 See \`config.log' for more details." >&2;}
4121    { (exit 1); exit 1; }; }
4122 fi
4124 ac_ext=c
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4133 if test "${ac_cv_header_stdc+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 #include <stdlib.h>
4143 #include <stdarg.h>
4144 #include <string.h>
4145 #include <float.h>
4147 int
4148 main ()
4151   ;
4152   return 0;
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157   (eval $ac_compile) 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } &&
4164          { ac_try='test -z "$ac_c_werror_flag"
4165                          || test ! -s conftest.err'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; } &&
4171          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4177   ac_cv_header_stdc=yes
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_cv_header_stdc=no
4183 fi
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 if test $ac_cv_header_stdc = yes; then
4187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <string.h>
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198   $EGREP "memchr" >/dev/null 2>&1; then
4199   :
4200 else
4201   ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest*
4205 fi
4207 if test $ac_cv_header_stdc = yes; then
4208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4209   cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 #include <stdlib.h>
4217 _ACEOF
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219   $EGREP "free" >/dev/null 2>&1; then
4220   :
4221 else
4222   ac_cv_header_stdc=no
4223 fi
4224 rm -f conftest*
4226 fi
4228 if test $ac_cv_header_stdc = yes; then
4229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4230   if test "$cross_compiling" = yes; then
4231   :
4232 else
4233   cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h.  */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h.  */
4239 #include <ctype.h>
4240 #if ((' ' & 0x0FF) == 0x020)
4241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243 #else
4244 # define ISLOWER(c) \
4245                    (('a' <= (c) && (c) <= 'i') \
4246                      || ('j' <= (c) && (c) <= 'r') \
4247                      || ('s' <= (c) && (c) <= 'z'))
4248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249 #endif
4251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4252 int
4253 main ()
4255   int i;
4256   for (i = 0; i < 256; i++)
4257     if (XOR (islower (i), ISLOWER (i))
4258         || toupper (i) != TOUPPER (i))
4259       exit(2);
4260   exit (0);
4262 _ACEOF
4263 rm -f conftest$ac_exeext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4265   (eval $ac_link) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270   (eval $ac_try) 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; }; then
4274   :
4275 else
4276   echo "$as_me: program exited with status $ac_status" >&5
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 ( exit $ac_status )
4281 ac_cv_header_stdc=no
4282 fi
4283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4284 fi
4285 fi
4286 fi
4287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4289 if test $ac_cv_header_stdc = yes; then
4291 cat >>confdefs.h <<\_ACEOF
4292 #define STDC_HEADERS 1
4293 _ACEOF
4295 fi
4297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4308                   inttypes.h stdint.h unistd.h
4309 do
4310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311 echo "$as_me:$LINENO: checking for $ac_header" >&5
4312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322 $ac_includes_default
4324 #include <$ac_header>
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328   (eval $ac_compile) 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -z "$ac_c_werror_flag"
4336                          || test ! -s conftest.err'
4337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338   (eval $ac_try) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; } &&
4342          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4348   eval "$as_ac_Header=yes"
4349 else
4350   echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 eval "$as_ac_Header=no"
4354 fi
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4356 fi
4357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4360   cat >>confdefs.h <<_ACEOF
4361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362 _ACEOF
4364 fi
4366 done
4370 for ac_header in dlfcn.h
4371 do
4372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374   echo "$as_me:$LINENO: checking for $ac_header" >&5
4375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 fi
4379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4381 else
4382   # Is the header compilable?
4383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4385 cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h.  */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h.  */
4391 $ac_includes_default
4392 #include <$ac_header>
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>conftest.er1
4397   ac_status=$?
4398   grep -v '^ *+' conftest.er1 >conftest.err
4399   rm -f conftest.er1
4400   cat conftest.err >&5
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); } &&
4403          { ac_try='test -z "$ac_c_werror_flag"
4404                          || test ! -s conftest.err'
4405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406   (eval $ac_try) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; } &&
4410          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4416   ac_header_compiler=yes
4417 else
4418   echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_header_compiler=no
4422 fi
4423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4425 echo "${ECHO_T}$ac_header_compiler" >&6
4427 # Is the header present?
4428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h.  */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h.  */
4436 #include <$ac_header>
4437 _ACEOF
4438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4440   ac_status=$?
4441   grep -v '^ *+' conftest.er1 >conftest.err
4442   rm -f conftest.er1
4443   cat conftest.err >&5
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } >/dev/null; then
4446   if test -s conftest.err; then
4447     ac_cpp_err=$ac_c_preproc_warn_flag
4448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4449   else
4450     ac_cpp_err=
4451   fi
4452 else
4453   ac_cpp_err=yes
4454 fi
4455 if test -z "$ac_cpp_err"; then
4456   ac_header_preproc=yes
4457 else
4458   echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4461   ac_header_preproc=no
4462 fi
4463 rm -f conftest.err conftest.$ac_ext
4464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4465 echo "${ECHO_T}$ac_header_preproc" >&6
4467 # So?  What about this header?
4468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4469   yes:no: )
4470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4474     ac_header_preproc=yes
4475     ;;
4476   no:yes:* )
4477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4489     (
4490       cat <<\_ASBOX
4491 ## --------------------------------- ##
4492 ## Report this to the TI IPC lists.  ##
4493 ## --------------------------------- ##
4494 _ASBOX
4495     ) |
4496       sed "s/^/$as_me: WARNING:     /" >&2
4497     ;;
4498 esac
4499 echo "$as_me:$LINENO: checking for $ac_header" >&5
4500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   eval "$as_ac_Header=\$ac_header_preproc"
4505 fi
4506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4509 fi
4510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4511   cat >>confdefs.h <<_ACEOF
4512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4513 _ACEOF
4515 fi
4517 done
4519 ac_ext=cc
4520 ac_cpp='$CXXCPP $CPPFLAGS'
4521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4524 if test -n "$ac_tool_prefix"; then
4525   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4526   do
4527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_prog_CXX+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   if test -n "$CXX"; then
4535   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542   for ac_exec_ext in '' $ac_executable_extensions; do
4543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549 done
4551 fi
4552 fi
4553 CXX=$ac_cv_prog_CXX
4554 if test -n "$CXX"; then
4555   echo "$as_me:$LINENO: result: $CXX" >&5
4556 echo "${ECHO_T}$CXX" >&6
4557 else
4558   echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4560 fi
4562     test -n "$CXX" && break
4563   done
4564 fi
4565 if test -z "$CXX"; then
4566   ac_ct_CXX=$CXX
4567   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4568 do
4569   # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   if test -n "$ac_ct_CXX"; then
4577   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4581 do
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586     ac_cv_prog_ac_ct_CXX="$ac_prog"
4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591 done
4593 fi
4594 fi
4595 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4596 if test -n "$ac_ct_CXX"; then
4597   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4598 echo "${ECHO_T}$ac_ct_CXX" >&6
4599 else
4600   echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6
4602 fi
4604   test -n "$ac_ct_CXX" && break
4605 done
4606 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4608   CXX=$ac_ct_CXX
4609 fi
4612 # Provide some information about the compiler.
4613 echo "$as_me:$LINENO:" \
4614      "checking for C++ compiler version" >&5
4615 ac_compiler=`set X $ac_compile; echo $2`
4616 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4617   (eval $ac_compiler --version </dev/null >&5) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }
4621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4622   (eval $ac_compiler -v </dev/null >&5) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }
4626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4627   (eval $ac_compiler -V </dev/null >&5) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }
4632 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4633 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4634 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4644 int
4645 main ()
4647 #ifndef __GNUC__
4648        choke me
4649 #endif
4651   ;
4652   return 0;
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657   (eval $ac_compile) 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -z "$ac_cxx_werror_flag"
4665                          || test ! -s conftest.err'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; } &&
4671          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4677   ac_compiler_gnu=yes
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 ac_compiler_gnu=no
4683 fi
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4687 fi
4688 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4689 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4690 GXX=`test $ac_compiler_gnu = yes && echo yes`
4691 ac_test_CXXFLAGS=${CXXFLAGS+set}
4692 ac_save_CXXFLAGS=$CXXFLAGS
4693 CXXFLAGS="-g"
4694 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4695 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4696 if test "${ac_cv_prog_cxx_g+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4706 int
4707 main ()
4710   ;
4711   return 0;
4713 _ACEOF
4714 rm -f conftest.$ac_objext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716   (eval $ac_compile) 2>conftest.er1
4717   ac_status=$?
4718   grep -v '^ *+' conftest.er1 >conftest.err
4719   rm -f conftest.er1
4720   cat conftest.err >&5
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); } &&
4723          { ac_try='test -z "$ac_cxx_werror_flag"
4724                          || test ! -s conftest.err'
4725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726   (eval $ac_try) 2>&5
4727   ac_status=$?
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); }; } &&
4730          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4736   ac_cv_prog_cxx_g=yes
4737 else
4738   echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 ac_cv_prog_cxx_g=no
4742 fi
4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4744 fi
4745 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4747 if test "$ac_test_CXXFLAGS" = set; then
4748   CXXFLAGS=$ac_save_CXXFLAGS
4749 elif test $ac_cv_prog_cxx_g = yes; then
4750   if test "$GXX" = yes; then
4751     CXXFLAGS="-g -O2"
4752   else
4753     CXXFLAGS="-g"
4754   fi
4755 else
4756   if test "$GXX" = yes; then
4757     CXXFLAGS="-O2"
4758   else
4759     CXXFLAGS=
4760   fi
4761 fi
4762 for ac_declaration in \
4763    '' \
4764    'extern "C" void std::exit (int) throw (); using std::exit;' \
4765    'extern "C" void std::exit (int); using std::exit;' \
4766    'extern "C" void exit (int) throw ();' \
4767    'extern "C" void exit (int);' \
4768    'void exit (int);'
4769 do
4770   cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h.  */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h.  */
4776 $ac_declaration
4777 #include <stdlib.h>
4778 int
4779 main ()
4781 exit (42);
4782   ;
4783   return 0;
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } &&
4795          { ac_try='test -z "$ac_cxx_werror_flag"
4796                          || test ! -s conftest.err'
4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798   (eval $ac_try) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; } &&
4802          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4808   :
4809 else
4810   echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 continue
4814 fi
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816   cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822 $ac_declaration
4823 int
4824 main ()
4826 exit (42);
4827   ;
4828   return 0;
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833   (eval $ac_compile) 2>conftest.er1
4834   ac_status=$?
4835   grep -v '^ *+' conftest.er1 >conftest.err
4836   rm -f conftest.er1
4837   cat conftest.err >&5
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } &&
4840          { ac_try='test -z "$ac_cxx_werror_flag"
4841                          || test ! -s conftest.err'
4842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843   (eval $ac_try) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); }; } &&
4847          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4853   break
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4858 fi
4859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4860 done
4861 rm -f conftest*
4862 if test -n "$ac_declaration"; then
4863   echo '#ifdef __cplusplus' >>confdefs.h
4864   echo $ac_declaration      >>confdefs.h
4865   echo '#endif'             >>confdefs.h
4866 fi
4868 ac_ext=cc
4869 ac_cpp='$CXXCPP $CPPFLAGS'
4870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4874 depcc="$CXX"  am_compiler_list=
4876 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4877 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4878 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4882   # We make a subdir and do the tests there.  Otherwise we can end up
4883   # making bogus files that we don't know about and never remove.  For
4884   # instance it was reported that on HP-UX the gcc test will end up
4885   # making a dummy file named `D' -- because `-MD' means `put the output
4886   # in D'.
4887   mkdir conftest.dir
4888   # Copy depcomp to subdir because otherwise we won't find it if we're
4889   # using a relative directory.
4890   cp "$am_depcomp" conftest.dir
4891   cd conftest.dir
4892   # We will build objects and dependencies in a subdirectory because
4893   # it helps to detect inapplicable dependency modes.  For instance
4894   # both Tru64's cc and ICC support -MD to output dependencies as a
4895   # side effect of compilation, but ICC will put the dependencies in
4896   # the current directory while Tru64 will put them in the object
4897   # directory.
4898   mkdir sub
4900   am_cv_CXX_dependencies_compiler_type=none
4901   if test "$am_compiler_list" = ""; then
4902      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4903   fi
4904   for depmode in $am_compiler_list; do
4905     # Setup a source with many dependencies, because some compilers
4906     # like to wrap large dependency lists on column 80 (with \), and
4907     # we should not choose a depcomp mode which is confused by this.
4908     #
4909     # We need to recreate these files for each test, as the compiler may
4910     # overwrite some of them when testing with obscure command lines.
4911     # This happens at least with the AIX C compiler.
4912     : > sub/conftest.c
4913     for i in 1 2 3 4 5 6; do
4914       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4915       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4916       # Solaris 8's {/usr,}/bin/sh.
4917       touch sub/conftst$i.h
4918     done
4919     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4921     case $depmode in
4922     nosideeffect)
4923       # after this tag, mechanisms are not by side-effect, so they'll
4924       # only be used when explicitly requested
4925       if test "x$enable_dependency_tracking" = xyes; then
4926         continue
4927       else
4928         break
4929       fi
4930       ;;
4931     none) break ;;
4932     esac
4933     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4934     # mode.  It turns out that the SunPro C++ compiler does not properly
4935     # handle `-M -o', and we need to detect this.
4936     if depmode=$depmode \
4937        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4938        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4939        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4940          >/dev/null 2>conftest.err &&
4941        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4942        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4943        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4944       # icc doesn't choke on unknown options, it will just issue warnings
4945       # or remarks (even with -Werror).  So we grep stderr for any message
4946       # that says an option was ignored or not supported.
4947       # When given -MP, icc 7.0 and 7.1 complain thusly:
4948       #   icc: Command line warning: ignoring option '-M'; no argument required
4949       # The diagnosis changed in icc 8.0:
4950       #   icc: Command line remark: option '-MP' not supported
4951       if (grep 'ignoring option' conftest.err ||
4952           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4953         am_cv_CXX_dependencies_compiler_type=$depmode
4954         break
4955       fi
4956     fi
4957   done
4959   cd ..
4960   rm -rf conftest.dir
4961 else
4962   am_cv_CXX_dependencies_compiler_type=none
4963 fi
4965 fi
4966 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4967 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4968 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4972 if
4973   test "x$enable_dependency_tracking" != xno \
4974   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4975   am__fastdepCXX_TRUE=
4976   am__fastdepCXX_FALSE='#'
4977 else
4978   am__fastdepCXX_TRUE='#'
4979   am__fastdepCXX_FALSE=
4980 fi
4985 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4986     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4987     (test "X$CXX" != "Xg++"))) ; then
4988   ac_ext=cc
4989 ac_cpp='$CXXCPP $CPPFLAGS'
4990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4993 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4994 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4995 if test -z "$CXXCPP"; then
4996   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999       # Double quotes because CXXCPP needs to be expanded
5000     for CXXCPP in "$CXX -E" "/lib/cpp"
5001     do
5002       ac_preproc_ok=false
5003 for ac_cxx_preproc_warn_flag in '' yes
5004 do
5005   # Use a header file that comes with gcc, so configuring glibc
5006   # with a fresh cross-compiler works.
5007   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5008   # <limits.h> exists even on freestanding compilers.
5009   # On the NeXT, cc -E runs the code through the compiler's parser,
5010   # not just through cpp. "Syntax error" is here to catch this case.
5011   cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017 #ifdef __STDC__
5018 # include <limits.h>
5019 #else
5020 # include <assert.h>
5021 #endif
5022                      Syntax error
5023 _ACEOF
5024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5026   ac_status=$?
5027   grep -v '^ *+' conftest.er1 >conftest.err
5028   rm -f conftest.er1
5029   cat conftest.err >&5
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); } >/dev/null; then
5032   if test -s conftest.err; then
5033     ac_cpp_err=$ac_cxx_preproc_warn_flag
5034     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5035   else
5036     ac_cpp_err=
5037   fi
5038 else
5039   ac_cpp_err=yes
5040 fi
5041 if test -z "$ac_cpp_err"; then
5042   :
5043 else
5044   echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047   # Broken: fails on valid input.
5048 continue
5049 fi
5050 rm -f conftest.err conftest.$ac_ext
5052   # OK, works on sane cases.  Now check whether non-existent headers
5053   # can be detected and how.
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <ac_nonexistent.h>
5061 _ACEOF
5062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } >/dev/null; then
5070   if test -s conftest.err; then
5071     ac_cpp_err=$ac_cxx_preproc_warn_flag
5072     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5073   else
5074     ac_cpp_err=
5075   fi
5076 else
5077   ac_cpp_err=yes
5078 fi
5079 if test -z "$ac_cpp_err"; then
5080   # Broken: success on invalid input.
5081 continue
5082 else
5083   echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5086   # Passes both tests.
5087 ac_preproc_ok=:
5088 break
5089 fi
5090 rm -f conftest.err conftest.$ac_ext
5092 done
5093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5094 rm -f conftest.err conftest.$ac_ext
5095 if $ac_preproc_ok; then
5096   break
5097 fi
5099     done
5100     ac_cv_prog_CXXCPP=$CXXCPP
5102 fi
5103   CXXCPP=$ac_cv_prog_CXXCPP
5104 else
5105   ac_cv_prog_CXXCPP=$CXXCPP
5106 fi
5107 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5108 echo "${ECHO_T}$CXXCPP" >&6
5109 ac_preproc_ok=false
5110 for ac_cxx_preproc_warn_flag in '' yes
5111 do
5112   # Use a header file that comes with gcc, so configuring glibc
5113   # with a fresh cross-compiler works.
5114   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5115   # <limits.h> exists even on freestanding compilers.
5116   # On the NeXT, cc -E runs the code through the compiler's parser,
5117   # not just through cpp. "Syntax error" is here to catch this case.
5118   cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 #ifdef __STDC__
5125 # include <limits.h>
5126 #else
5127 # include <assert.h>
5128 #endif
5129                      Syntax error
5130 _ACEOF
5131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5133   ac_status=$?
5134   grep -v '^ *+' conftest.er1 >conftest.err
5135   rm -f conftest.er1
5136   cat conftest.err >&5
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); } >/dev/null; then
5139   if test -s conftest.err; then
5140     ac_cpp_err=$ac_cxx_preproc_warn_flag
5141     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5142   else
5143     ac_cpp_err=
5144   fi
5145 else
5146   ac_cpp_err=yes
5147 fi
5148 if test -z "$ac_cpp_err"; then
5149   :
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154   # Broken: fails on valid input.
5155 continue
5156 fi
5157 rm -f conftest.err conftest.$ac_ext
5159   # OK, works on sane cases.  Now check whether non-existent headers
5160   # can be detected and how.
5161   cat >conftest.$ac_ext <<_ACEOF
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167 #include <ac_nonexistent.h>
5168 _ACEOF
5169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5171   ac_status=$?
5172   grep -v '^ *+' conftest.er1 >conftest.err
5173   rm -f conftest.er1
5174   cat conftest.err >&5
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } >/dev/null; then
5177   if test -s conftest.err; then
5178     ac_cpp_err=$ac_cxx_preproc_warn_flag
5179     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5180   else
5181     ac_cpp_err=
5182   fi
5183 else
5184   ac_cpp_err=yes
5185 fi
5186 if test -z "$ac_cpp_err"; then
5187   # Broken: success on invalid input.
5188 continue
5189 else
5190   echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5193   # Passes both tests.
5194 ac_preproc_ok=:
5195 break
5196 fi
5197 rm -f conftest.err conftest.$ac_ext
5199 done
5200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5201 rm -f conftest.err conftest.$ac_ext
5202 if $ac_preproc_ok; then
5203   :
5204 else
5205   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5206 See \`config.log' for more details." >&5
5207 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5208 See \`config.log' for more details." >&2;}
5209    { (exit 1); exit 1; }; }
5210 fi
5212 ac_ext=cc
5213 ac_cpp='$CXXCPP $CPPFLAGS'
5214 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5218 fi
5222 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5224 # find the maximum length of command line arguments
5225 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5226 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5227 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230     i=0
5231   teststring="ABCD"
5233   case $build_os in
5234   msdosdjgpp*)
5235     # On DJGPP, this test can blow up pretty badly due to problems in libc
5236     # (any single argument exceeding 2000 bytes causes a buffer overrun
5237     # during glob expansion).  Even if it were fixed, the result of this
5238     # check would be larger than it should be.
5239     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5240     ;;
5242   gnu*)
5243     # Under GNU Hurd, this test is not required because there is
5244     # no limit to the length of command line arguments.
5245     # Libtool will interpret -1 as no limit whatsoever
5246     lt_cv_sys_max_cmd_len=-1;
5247     ;;
5249   cygwin* | mingw*)
5250     # On Win9x/ME, this test blows up -- it succeeds, but takes
5251     # about 5 minutes as the teststring grows exponentially.
5252     # Worse, since 9x/ME are not pre-emptively multitasking,
5253     # you end up with a "frozen" computer, even though with patience
5254     # the test eventually succeeds (with a max line length of 256k).
5255     # Instead, let's just punt: use the minimum linelength reported by
5256     # all of the supported platforms: 8192 (on NT/2K/XP).
5257     lt_cv_sys_max_cmd_len=8192;
5258     ;;
5260   amigaos*)
5261     # On AmigaOS with pdksh, this test takes hours, literally.
5262     # So we just punt and use a minimum line length of 8192.
5263     lt_cv_sys_max_cmd_len=8192;
5264     ;;
5266   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5267     # This has been around since 386BSD, at least.  Likely further.
5268     if test -x /sbin/sysctl; then
5269       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5270     elif test -x /usr/sbin/sysctl; then
5271       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5272     else
5273       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5274     fi
5275     # And add a safety zone
5276     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5277     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5278     ;;
5280   interix*)
5281     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5282     lt_cv_sys_max_cmd_len=196608
5283     ;;
5285   osf*)
5286     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5287     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5288     # nice to cause kernel panics so lets avoid the loop below.
5289     # First set a reasonable default.
5290     lt_cv_sys_max_cmd_len=16384
5291     #
5292     if test -x /sbin/sysconfig; then
5293       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5294         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5295       esac
5296     fi
5297     ;;
5298   sco3.2v5*)
5299     lt_cv_sys_max_cmd_len=102400
5300     ;;
5301   sysv5* | sco5v6* | sysv4.2uw2*)
5302     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5303     if test -n "$kargmax"; then
5304       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5305     else
5306       lt_cv_sys_max_cmd_len=32768
5307     fi
5308     ;;
5309   *)
5310     # If test is not a shell built-in, we'll probably end up computing a
5311     # maximum length that is only half of the actual maximum length, but
5312     # we can't tell.
5313     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5314     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5315                = "XX$teststring") >/dev/null 2>&1 &&
5316             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5317             lt_cv_sys_max_cmd_len=$new_result &&
5318             test $i != 17 # 1/2 MB should be enough
5319     do
5320       i=`expr $i + 1`
5321       teststring=$teststring$teststring
5322     done
5323     teststring=
5324     # Add a significant safety factor because C++ compilers can tack on massive
5325     # amounts of additional arguments before passing them to the linker.
5326     # It appears as though 1/2 is a usable value.
5327     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5328     ;;
5329   esac
5331 fi
5333 if test -n $lt_cv_sys_max_cmd_len ; then
5334   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5335 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5336 else
5337   echo "$as_me:$LINENO: result: none" >&5
5338 echo "${ECHO_T}none" >&6
5339 fi
5344 # Check for command to grab the raw symbol name followed by C symbol from nm.
5345 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5346 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5347 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5351 # These are sane defaults that work on at least a few old systems.
5352 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5354 # Character class describing NM global symbol codes.
5355 symcode='[BCDEGRST]'
5357 # Regexp to match symbols that can be accessed directly from C.
5358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5360 # Transform an extracted symbol line into a proper C declaration
5361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5363 # Transform an extracted symbol line into symbol name and symbol address
5364 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'"
5366 # Define system-specific variables.
5367 case $host_os in
5368 aix*)
5369   symcode='[BCDT]'
5370   ;;
5371 cygwin* | mingw* | pw32*)
5372   symcode='[ABCDGISTW]'
5373   ;;
5374 hpux*) # Its linker distinguishes data from code symbols
5375   if test "$host_cpu" = ia64; then
5376     symcode='[ABCDEGRST]'
5377   fi
5378   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5379   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'"
5380   ;;
5381 linux*)
5382   if test "$host_cpu" = ia64; then
5383     symcode='[ABCDGIRSTW]'
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   fi
5387   ;;
5388 irix* | nonstopux*)
5389   symcode='[BCDEGRST]'
5390   ;;
5391 osf*)
5392   symcode='[BCDEGQRST]'
5393   ;;
5394 solaris*)
5395   symcode='[BDRT]'
5396   ;;
5397 sco3.2v5*)
5398   symcode='[DT]'
5399   ;;
5400 sysv4.2uw2*)
5401   symcode='[DT]'
5402   ;;
5403 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5404   symcode='[ABDT]'
5405   ;;
5406 sysv4)
5407   symcode='[DFNSTU]'
5408   ;;
5409 esac
5411 # Handle CRLF in mingw tool chain
5412 opt_cr=
5413 case $build_os in
5414 mingw*)
5415   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5416   ;;
5417 esac
5419 # If we're using GNU nm, then use its standard symbol codes.
5420 case `$NM -V 2>&1` in
5421 *GNU* | *'with BFD'*)
5422   symcode='[ABCDGIRSTW]' ;;
5423 esac
5425 # Try without a prefix undercore, then with it.
5426 for ac_symprfx in "" "_"; do
5428   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5429   symxfrm="\\1 $ac_symprfx\\2 \\2"
5431   # Write the raw and C identifiers.
5432   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5434   # Check to see that the pipe works correctly.
5435   pipe_works=no
5437   rm -f conftest*
5438   cat > conftest.$ac_ext <<EOF
5439 #ifdef __cplusplus
5440 extern "C" {
5441 #endif
5442 char nm_test_var;
5443 void nm_test_func(){}
5444 #ifdef __cplusplus
5446 #endif
5447 int main(){nm_test_var='a';nm_test_func();return(0);}
5448 EOF
5450   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451   (eval $ac_compile) 2>&5
5452   ac_status=$?
5453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454   (exit $ac_status); }; then
5455     # Now try to grab the symbols.
5456     nlist=conftest.nm
5457     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5458   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } && test -s "$nlist"; then
5462       # Try sorting and uniquifying the output.
5463       if sort "$nlist" | uniq > "$nlist"T; then
5464         mv -f "$nlist"T "$nlist"
5465       else
5466         rm -f "$nlist"T
5467       fi
5469       # Make sure that we snagged all the symbols we need.
5470       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5471         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5472           cat <<EOF > conftest.$ac_ext
5473 #ifdef __cplusplus
5474 extern "C" {
5475 #endif
5477 EOF
5478           # Now generate the symbol file.
5479           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5481           cat <<EOF >> conftest.$ac_ext
5482 #if defined (__STDC__) && __STDC__
5483 # define lt_ptr_t void *
5484 #else
5485 # define lt_ptr_t char *
5486 # define const
5487 #endif
5489 /* The mapping between symbol names and symbols. */
5490 const struct {
5491   const char *name;
5492   lt_ptr_t address;
5494 lt_preloaded_symbols[] =
5496 EOF
5497           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5498           cat <<\EOF >> conftest.$ac_ext
5499   {0, (lt_ptr_t) 0}
5500 };
5502 #ifdef __cplusplus
5504 #endif
5505 EOF
5506           # Now try linking the two files.
5507           mv conftest.$ac_objext conftstm.$ac_objext
5508           lt_save_LIBS="$LIBS"
5509           lt_save_CFLAGS="$CFLAGS"
5510           LIBS="conftstm.$ac_objext"
5511           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5512           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5513   (eval $ac_link) 2>&5
5514   ac_status=$?
5515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5517             pipe_works=yes
5518           fi
5519           LIBS="$lt_save_LIBS"
5520           CFLAGS="$lt_save_CFLAGS"
5521         else
5522           echo "cannot find nm_test_func in $nlist" >&5
5523         fi
5524       else
5525         echo "cannot find nm_test_var in $nlist" >&5
5526       fi
5527     else
5528       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5529     fi
5530   else
5531     echo "$progname: failed program was:" >&5
5532     cat conftest.$ac_ext >&5
5533   fi
5534   rm -f conftest* conftst*
5536   # Do not use the global_symbol_pipe unless it works.
5537   if test "$pipe_works" = yes; then
5538     break
5539   else
5540     lt_cv_sys_global_symbol_pipe=
5541   fi
5542 done
5544 fi
5546 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5547   lt_cv_sys_global_symbol_to_cdecl=
5548 fi
5549 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5550   echo "$as_me:$LINENO: result: failed" >&5
5551 echo "${ECHO_T}failed" >&6
5552 else
5553   echo "$as_me:$LINENO: result: ok" >&5
5554 echo "${ECHO_T}ok" >&6
5555 fi
5557 echo "$as_me:$LINENO: checking for objdir" >&5
5558 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5559 if test "${lt_cv_objdir+set}" = set; then
5560   echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562   rm -f .libs 2>/dev/null
5563 mkdir .libs 2>/dev/null
5564 if test -d .libs; then
5565   lt_cv_objdir=.libs
5566 else
5567   # MS-DOS does not allow filenames that begin with a dot.
5568   lt_cv_objdir=_libs
5569 fi
5570 rmdir .libs 2>/dev/null
5571 fi
5572 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5573 echo "${ECHO_T}$lt_cv_objdir" >&6
5574 objdir=$lt_cv_objdir
5580 case $host_os in
5581 aix3*)
5582   # AIX sometimes has problems with the GCC collect2 program.  For some
5583   # reason, if we set the COLLECT_NAMES environment variable, the problems
5584   # vanish in a puff of smoke.
5585   if test "X${COLLECT_NAMES+set}" != Xset; then
5586     COLLECT_NAMES=
5587     export COLLECT_NAMES
5588   fi
5589   ;;
5590 esac
5592 # Sed substitution that helps us do robust quoting.  It backslashifies
5593 # metacharacters that are still active within double-quoted strings.
5594 Xsed='sed -e 1s/^X//'
5595 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5597 # Same as above, but do not quote variable references.
5598 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5600 # Sed substitution to delay expansion of an escaped shell variable in a
5601 # double_quote_subst'ed string.
5602 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5604 # Sed substitution to avoid accidental globbing in evaled expressions
5605 no_glob_subst='s/\*/\\\*/g'
5607 # Constants:
5608 rm="rm -f"
5610 # Global variables:
5611 default_ofile=libtool
5612 can_build_shared=yes
5614 # All known linkers require a `.a' archive for static linking (except MSVC,
5615 # which needs '.lib').
5616 libext=a
5617 ltmain="$ac_aux_dir/ltmain.sh"
5618 ofile="$default_ofile"
5619 with_gnu_ld="$lt_cv_prog_gnu_ld"
5621 if test -n "$ac_tool_prefix"; then
5622   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5623 set dummy ${ac_tool_prefix}ar; ac_word=$2
5624 echo "$as_me:$LINENO: checking for $ac_word" >&5
5625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5626 if test "${ac_cv_prog_AR+set}" = set; then
5627   echo $ECHO_N "(cached) $ECHO_C" >&6
5628 else
5629   if test -n "$AR"; then
5630   ac_cv_prog_AR="$AR" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637   for ac_exec_ext in '' $ac_executable_extensions; do
5638   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5639     ac_cv_prog_AR="${ac_tool_prefix}ar"
5640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644 done
5646 fi
5647 fi
5648 AR=$ac_cv_prog_AR
5649 if test -n "$AR"; then
5650   echo "$as_me:$LINENO: result: $AR" >&5
5651 echo "${ECHO_T}$AR" >&6
5652 else
5653   echo "$as_me:$LINENO: result: no" >&5
5654 echo "${ECHO_T}no" >&6
5655 fi
5657 fi
5658 if test -z "$ac_cv_prog_AR"; then
5659   ac_ct_AR=$AR
5660   # Extract the first word of "ar", so it can be a program name with args.
5661 set dummy ar; ac_word=$2
5662 echo "$as_me:$LINENO: checking for $ac_word" >&5
5663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5664 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5665   echo $ECHO_N "(cached) $ECHO_C" >&6
5666 else
5667   if test -n "$ac_ct_AR"; then
5668   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675   for ac_exec_ext in '' $ac_executable_extensions; do
5676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677     ac_cv_prog_ac_ct_AR="ar"
5678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682 done
5684   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5685 fi
5686 fi
5687 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5688 if test -n "$ac_ct_AR"; then
5689   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5690 echo "${ECHO_T}$ac_ct_AR" >&6
5691 else
5692   echo "$as_me:$LINENO: result: no" >&5
5693 echo "${ECHO_T}no" >&6
5694 fi
5696   AR=$ac_ct_AR
5697 else
5698   AR="$ac_cv_prog_AR"
5699 fi
5701 if test -n "$ac_tool_prefix"; then
5702   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5703 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5704 echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5706 if test "${ac_cv_prog_RANLIB+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   if test -n "$RANLIB"; then
5710   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717   for ac_exec_ext in '' $ac_executable_extensions; do
5718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721     break 2
5722   fi
5723 done
5724 done
5726 fi
5727 fi
5728 RANLIB=$ac_cv_prog_RANLIB
5729 if test -n "$RANLIB"; then
5730   echo "$as_me:$LINENO: result: $RANLIB" >&5
5731 echo "${ECHO_T}$RANLIB" >&6
5732 else
5733   echo "$as_me:$LINENO: result: no" >&5
5734 echo "${ECHO_T}no" >&6
5735 fi
5737 fi
5738 if test -z "$ac_cv_prog_RANLIB"; then
5739   ac_ct_RANLIB=$RANLIB
5740   # Extract the first word of "ranlib", so it can be a program name with args.
5741 set dummy ranlib; ac_word=$2
5742 echo "$as_me:$LINENO: checking for $ac_word" >&5
5743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -n "$ac_ct_RANLIB"; then
5748   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5749 else
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH
5752 do
5753   IFS=$as_save_IFS
5754   test -z "$as_dir" && as_dir=.
5755   for ac_exec_ext in '' $ac_executable_extensions; do
5756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757     ac_cv_prog_ac_ct_RANLIB="ranlib"
5758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759     break 2
5760   fi
5761 done
5762 done
5764   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5765 fi
5766 fi
5767 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5768 if test -n "$ac_ct_RANLIB"; then
5769   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5770 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5771 else
5772   echo "$as_me:$LINENO: result: no" >&5
5773 echo "${ECHO_T}no" >&6
5774 fi
5776   RANLIB=$ac_ct_RANLIB
5777 else
5778   RANLIB="$ac_cv_prog_RANLIB"
5779 fi
5781 if test -n "$ac_tool_prefix"; then
5782   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}strip; ac_word=$2
5784 echo "$as_me:$LINENO: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5786 if test "${ac_cv_prog_STRIP+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   if test -n "$STRIP"; then
5790   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5791 else
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795   IFS=$as_save_IFS
5796   test -z "$as_dir" && as_dir=.
5797   for ac_exec_ext in '' $ac_executable_extensions; do
5798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801     break 2
5802   fi
5803 done
5804 done
5806 fi
5807 fi
5808 STRIP=$ac_cv_prog_STRIP
5809 if test -n "$STRIP"; then
5810   echo "$as_me:$LINENO: result: $STRIP" >&5
5811 echo "${ECHO_T}$STRIP" >&6
5812 else
5813   echo "$as_me:$LINENO: result: no" >&5
5814 echo "${ECHO_T}no" >&6
5815 fi
5817 fi
5818 if test -z "$ac_cv_prog_STRIP"; then
5819   ac_ct_STRIP=$STRIP
5820   # Extract the first word of "strip", so it can be a program name with args.
5821 set dummy strip; ac_word=$2
5822 echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5824 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   if test -n "$ac_ct_STRIP"; then
5828   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5829 else
5830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835   for ac_exec_ext in '' $ac_executable_extensions; do
5836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5837     ac_cv_prog_ac_ct_STRIP="strip"
5838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842 done
5844   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5845 fi
5846 fi
5847 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5848 if test -n "$ac_ct_STRIP"; then
5849   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5850 echo "${ECHO_T}$ac_ct_STRIP" >&6
5851 else
5852   echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6
5854 fi
5856   STRIP=$ac_ct_STRIP
5857 else
5858   STRIP="$ac_cv_prog_STRIP"
5859 fi
5862 old_CC="$CC"
5863 old_CFLAGS="$CFLAGS"
5865 # Set sane defaults for various variables
5866 test -z "$AR" && AR=ar
5867 test -z "$AR_FLAGS" && AR_FLAGS=cru
5868 test -z "$AS" && AS=as
5869 test -z "$CC" && CC=cc
5870 test -z "$LTCC" && LTCC=$CC
5871 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5872 test -z "$DLLTOOL" && DLLTOOL=dlltool
5873 test -z "$LD" && LD=ld
5874 test -z "$LN_S" && LN_S="ln -s"
5875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5876 test -z "$NM" && NM=nm
5877 test -z "$SED" && SED=sed
5878 test -z "$OBJDUMP" && OBJDUMP=objdump
5879 test -z "$RANLIB" && RANLIB=:
5880 test -z "$STRIP" && STRIP=:
5881 test -z "$ac_objext" && ac_objext=o
5883 # Determine commands to create old-style static archives.
5884 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5885 old_postinstall_cmds='chmod 644 $oldlib'
5886 old_postuninstall_cmds=
5888 if test -n "$RANLIB"; then
5889   case $host_os in
5890   openbsd*)
5891     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5892     ;;
5893   *)
5894     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5895     ;;
5896   esac
5897   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5898 fi
5900 for cc_temp in $compiler""; do
5901   case $cc_temp in
5902     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5903     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5904     \-*) ;;
5905     *) break;;
5906   esac
5907 done
5908 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5911 # Only perform the check for file, if the check method requires it
5912 case $deplibs_check_method in
5913 file_magic*)
5914   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5915     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5916 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5917 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920   case $MAGIC_CMD in
5921 [\\/*] |  ?:[\\/]*)
5922   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5923   ;;
5924 *)
5925   lt_save_MAGIC_CMD="$MAGIC_CMD"
5926   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5927   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5928   for ac_dir in $ac_dummy; do
5929     IFS="$lt_save_ifs"
5930     test -z "$ac_dir" && ac_dir=.
5931     if test -f $ac_dir/${ac_tool_prefix}file; then
5932       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5933       if test -n "$file_magic_test_file"; then
5934         case $deplibs_check_method in
5935         "file_magic "*)
5936           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5937           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5938           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5939             $EGREP "$file_magic_regex" > /dev/null; then
5940             :
5941           else
5942             cat <<EOF 1>&2
5944 *** Warning: the command libtool uses to detect shared libraries,
5945 *** $file_magic_cmd, produces output that libtool cannot recognize.
5946 *** The result is that libtool may fail to recognize shared libraries
5947 *** as such.  This will affect the creation of libtool libraries that
5948 *** depend on shared libraries, but programs linked with such libtool
5949 *** libraries will work regardless of this problem.  Nevertheless, you
5950 *** may want to report the problem to your system manager and/or to
5951 *** bug-libtool@gnu.org
5953 EOF
5954           fi ;;
5955         esac
5956       fi
5957       break
5958     fi
5959   done
5960   IFS="$lt_save_ifs"
5961   MAGIC_CMD="$lt_save_MAGIC_CMD"
5962   ;;
5963 esac
5964 fi
5966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5967 if test -n "$MAGIC_CMD"; then
5968   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5969 echo "${ECHO_T}$MAGIC_CMD" >&6
5970 else
5971   echo "$as_me:$LINENO: result: no" >&5
5972 echo "${ECHO_T}no" >&6
5973 fi
5975 if test -z "$lt_cv_path_MAGIC_CMD"; then
5976   if test -n "$ac_tool_prefix"; then
5977     echo "$as_me:$LINENO: checking for file" >&5
5978 echo $ECHO_N "checking for file... $ECHO_C" >&6
5979 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   case $MAGIC_CMD in
5983 [\\/*] |  ?:[\\/]*)
5984   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5985   ;;
5986 *)
5987   lt_save_MAGIC_CMD="$MAGIC_CMD"
5988   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5989   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5990   for ac_dir in $ac_dummy; do
5991     IFS="$lt_save_ifs"
5992     test -z "$ac_dir" && ac_dir=.
5993     if test -f $ac_dir/file; then
5994       lt_cv_path_MAGIC_CMD="$ac_dir/file"
5995       if test -n "$file_magic_test_file"; then
5996         case $deplibs_check_method in
5997         "file_magic "*)
5998           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5999           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6000           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6001             $EGREP "$file_magic_regex" > /dev/null; then
6002             :
6003           else
6004             cat <<EOF 1>&2
6006 *** Warning: the command libtool uses to detect shared libraries,
6007 *** $file_magic_cmd, produces output that libtool cannot recognize.
6008 *** The result is that libtool may fail to recognize shared libraries
6009 *** as such.  This will affect the creation of libtool libraries that
6010 *** depend on shared libraries, but programs linked with such libtool
6011 *** libraries will work regardless of this problem.  Nevertheless, you
6012 *** may want to report the problem to your system manager and/or to
6013 *** bug-libtool@gnu.org
6015 EOF
6016           fi ;;
6017         esac
6018       fi
6019       break
6020     fi
6021   done
6022   IFS="$lt_save_ifs"
6023   MAGIC_CMD="$lt_save_MAGIC_CMD"
6024   ;;
6025 esac
6026 fi
6028 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6029 if test -n "$MAGIC_CMD"; then
6030   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6031 echo "${ECHO_T}$MAGIC_CMD" >&6
6032 else
6033   echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6035 fi
6037   else
6038     MAGIC_CMD=:
6039   fi
6040 fi
6042   fi
6043   ;;
6044 esac
6046 enable_dlopen=no
6047 enable_win32_dll=no
6049 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6050 if test "${enable_libtool_lock+set}" = set; then
6051   enableval="$enable_libtool_lock"
6053 fi;
6054 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6057 # Check whether --with-pic or --without-pic was given.
6058 if test "${with_pic+set}" = set; then
6059   withval="$with_pic"
6060   pic_mode="$withval"
6061 else
6062   pic_mode=default
6063 fi;
6064 test -z "$pic_mode" && pic_mode=default
6066 # Use C for the default configuration in the libtool script
6067 tagname=
6068 lt_save_CC="$CC"
6069 ac_ext=c
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6076 # Source file extension for C test sources.
6077 ac_ext=c
6079 # Object file extension for compiled C test sources.
6080 objext=o
6081 objext=$objext
6083 # Code to be used in simple compile tests
6084 lt_simple_compile_test_code="int some_variable = 0;\n"
6086 # Code to be used in simple link tests
6087 lt_simple_link_test_code='int main(){return(0);}\n'
6090 # If no C compiler was specified, use CC.
6091 LTCC=${LTCC-"$CC"}
6093 # If no C compiler flags were specified, use CFLAGS.
6094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6096 # Allow CC to be a program name with arguments.
6097 compiler=$CC
6100 # save warnings/boilerplate of simple test code
6101 ac_outfile=conftest.$ac_objext
6102 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6103 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6104 _lt_compiler_boilerplate=`cat conftest.err`
6105 $rm conftest*
6107 ac_outfile=conftest.$ac_objext
6108 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6109 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6110 _lt_linker_boilerplate=`cat conftest.err`
6111 $rm conftest*
6115 lt_prog_compiler_no_builtin_flag=
6117 if test "$GCC" = yes; then
6118   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6121 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6122 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6123 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   lt_cv_prog_compiler_rtti_exceptions=no
6127   ac_outfile=conftest.$ac_objext
6128    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6129    lt_compiler_flag="-fno-rtti -fno-exceptions"
6130    # Insert the option either (1) after the last *FLAGS variable, or
6131    # (2) before a word containing "conftest.", or (3) at the end.
6132    # Note that $ac_compile itself does not contain backslashes and begins
6133    # with a dollar sign (not a hyphen), so the echo should work correctly.
6134    # The option is referenced via a variable to avoid confusing sed.
6135    lt_compile=`echo "$ac_compile" | $SED \
6136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6138    -e 's:$: $lt_compiler_flag:'`
6139    (eval echo "\"\$as_me:6139: $lt_compile\"" >&5)
6140    (eval "$lt_compile" 2>conftest.err)
6141    ac_status=$?
6142    cat conftest.err >&5
6143    echo "$as_me:6143: \$? = $ac_status" >&5
6144    if (exit $ac_status) && test -s "$ac_outfile"; then
6145      # The compiler can only warn and ignore the option if not recognized
6146      # So say no if there are warnings other than the usual output.
6147      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6148      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6149      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6150        lt_cv_prog_compiler_rtti_exceptions=yes
6151      fi
6152    fi
6153    $rm conftest*
6155 fi
6156 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6157 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6159 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6160     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6161 else
6162     :
6163 fi
6165 fi
6167 lt_prog_compiler_wl=
6168 lt_prog_compiler_pic=
6169 lt_prog_compiler_static=
6171 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6172 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6174   if test "$GCC" = yes; then
6175     lt_prog_compiler_wl='-Wl,'
6176     lt_prog_compiler_static='-static'
6178     case $host_os in
6179       aix*)
6180       # All AIX code is PIC.
6181       if test "$host_cpu" = ia64; then
6182         # AIX 5 now supports IA64 processor
6183         lt_prog_compiler_static='-Bstatic'
6184       fi
6185       ;;
6187     amigaos*)
6188       # FIXME: we need at least 68020 code to build shared libraries, but
6189       # adding the `-m68020' flag to GCC prevents building anything better,
6190       # like `-m68040'.
6191       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6192       ;;
6194     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6195       # PIC is the default for these OSes.
6196       ;;
6198     mingw* | pw32* | os2*)
6199       # This hack is so that the source file can tell whether it is being
6200       # built for inclusion in a dll (and should export symbols for example).
6201       lt_prog_compiler_pic='-DDLL_EXPORT'
6202       ;;
6204     darwin* | rhapsody*)
6205       # PIC is the default on this platform
6206       # Common symbols not allowed in MH_DYLIB files
6207       lt_prog_compiler_pic='-fno-common'
6208       ;;
6210     interix3*)
6211       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6212       # Instead, we relocate shared libraries at runtime.
6213       ;;
6215     msdosdjgpp*)
6216       # Just because we use GCC doesn't mean we suddenly get shared libraries
6217       # on systems that don't support them.
6218       lt_prog_compiler_can_build_shared=no
6219       enable_shared=no
6220       ;;
6222     sysv4*MP*)
6223       if test -d /usr/nec; then
6224         lt_prog_compiler_pic=-Kconform_pic
6225       fi
6226       ;;
6228     hpux*)
6229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6230       # not for PA HP-UX.
6231       case $host_cpu in
6232       hppa*64*|ia64*)
6233         # +Z the default
6234         ;;
6235       *)
6236         lt_prog_compiler_pic='-fPIC'
6237         ;;
6238       esac
6239       ;;
6241     *)
6242       lt_prog_compiler_pic='-fPIC'
6243       ;;
6244     esac
6245   else
6246     # PORTME Check for flag to pass linker flags through the system compiler.
6247     case $host_os in
6248     aix*)
6249       lt_prog_compiler_wl='-Wl,'
6250       if test "$host_cpu" = ia64; then
6251         # AIX 5 now supports IA64 processor
6252         lt_prog_compiler_static='-Bstatic'
6253       else
6254         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6255       fi
6256       ;;
6257       darwin*)
6258         # PIC is the default on this platform
6259         # Common symbols not allowed in MH_DYLIB files
6260        case $cc_basename in
6261          xlc*)
6262          lt_prog_compiler_pic='-qnocommon'
6263          lt_prog_compiler_wl='-Wl,'
6264          ;;
6265        esac
6266        ;;
6268     mingw* | pw32* | os2*)
6269       # This hack is so that the source file can tell whether it is being
6270       # built for inclusion in a dll (and should export symbols for example).
6271       lt_prog_compiler_pic='-DDLL_EXPORT'
6272       ;;
6274     hpux9* | hpux10* | hpux11*)
6275       lt_prog_compiler_wl='-Wl,'
6276       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6277       # not for PA HP-UX.
6278       case $host_cpu in
6279       hppa*64*|ia64*)
6280         # +Z the default
6281         ;;
6282       *)
6283         lt_prog_compiler_pic='+Z'
6284         ;;
6285       esac
6286       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6287       lt_prog_compiler_static='${wl}-a ${wl}archive'
6288       ;;
6290     irix5* | irix6* | nonstopux*)
6291       lt_prog_compiler_wl='-Wl,'
6292       # PIC (with -KPIC) is the default.
6293       lt_prog_compiler_static='-non_shared'
6294       ;;
6296     newsos6)
6297       lt_prog_compiler_pic='-KPIC'
6298       lt_prog_compiler_static='-Bstatic'
6299       ;;
6301     linux*)
6302       case $cc_basename in
6303       icc* | ecc*)
6304         lt_prog_compiler_wl='-Wl,'
6305         lt_prog_compiler_pic='-KPIC'
6306         lt_prog_compiler_static='-static'
6307         ;;
6308       pgcc* | pgf77* | pgf90* | pgf95*)
6309         # Portland Group compilers (*not* the Pentium gcc compiler,
6310         # which looks to be a dead project)
6311         lt_prog_compiler_wl='-Wl,'
6312         lt_prog_compiler_pic='-fpic'
6313         lt_prog_compiler_static='-Bstatic'
6314         ;;
6315       ccc*)
6316         lt_prog_compiler_wl='-Wl,'
6317         # All Alpha code is PIC.
6318         lt_prog_compiler_static='-non_shared'
6319         ;;
6320       esac
6321       ;;
6323     osf3* | osf4* | osf5*)
6324       lt_prog_compiler_wl='-Wl,'
6325       # All OSF/1 code is PIC.
6326       lt_prog_compiler_static='-non_shared'
6327       ;;
6329     solaris*)
6330       lt_prog_compiler_pic='-KPIC'
6331       lt_prog_compiler_static='-Bstatic'
6332       case $cc_basename in
6333       f77* | f90* | f95*)
6334         lt_prog_compiler_wl='-Qoption ld ';;
6335       *)
6336         lt_prog_compiler_wl='-Wl,';;
6337       esac
6338       ;;
6340     sunos4*)
6341       lt_prog_compiler_wl='-Qoption ld '
6342       lt_prog_compiler_pic='-PIC'
6343       lt_prog_compiler_static='-Bstatic'
6344       ;;
6346     sysv4 | sysv4.2uw2* | sysv4.3*)
6347       lt_prog_compiler_wl='-Wl,'
6348       lt_prog_compiler_pic='-KPIC'
6349       lt_prog_compiler_static='-Bstatic'
6350       ;;
6352     sysv4*MP*)
6353       if test -d /usr/nec ;then
6354         lt_prog_compiler_pic='-Kconform_pic'
6355         lt_prog_compiler_static='-Bstatic'
6356       fi
6357       ;;
6359     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6360       lt_prog_compiler_wl='-Wl,'
6361       lt_prog_compiler_pic='-KPIC'
6362       lt_prog_compiler_static='-Bstatic'
6363       ;;
6365     unicos*)
6366       lt_prog_compiler_wl='-Wl,'
6367       lt_prog_compiler_can_build_shared=no
6368       ;;
6370     uts4*)
6371       lt_prog_compiler_pic='-pic'
6372       lt_prog_compiler_static='-Bstatic'
6373       ;;
6375     *)
6376       lt_prog_compiler_can_build_shared=no
6377       ;;
6378     esac
6379   fi
6381 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6382 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6385 # Check to make sure the PIC flag actually works.
6387 if test -n "$lt_prog_compiler_pic"; then
6389 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6390 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6391 if test "${lt_prog_compiler_pic_works+set}" = set; then
6392   echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394   lt_prog_compiler_pic_works=no
6395   ac_outfile=conftest.$ac_objext
6396    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6397    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6398    # Insert the option either (1) after the last *FLAGS variable, or
6399    # (2) before a word containing "conftest.", or (3) at the end.
6400    # Note that $ac_compile itself does not contain backslashes and begins
6401    # with a dollar sign (not a hyphen), so the echo should work correctly.
6402    # The option is referenced via a variable to avoid confusing sed.
6403    lt_compile=`echo "$ac_compile" | $SED \
6404    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6405    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6406    -e 's:$: $lt_compiler_flag:'`
6407    (eval echo "\"\$as_me:6407: $lt_compile\"" >&5)
6408    (eval "$lt_compile" 2>conftest.err)
6409    ac_status=$?
6410    cat conftest.err >&5
6411    echo "$as_me:6411: \$? = $ac_status" >&5
6412    if (exit $ac_status) && test -s "$ac_outfile"; then
6413      # The compiler can only warn and ignore the option if not recognized
6414      # So say no if there are warnings other than the usual output.
6415      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6416      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6417      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6418        lt_prog_compiler_pic_works=yes
6419      fi
6420    fi
6421    $rm conftest*
6423 fi
6424 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6425 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6427 if test x"$lt_prog_compiler_pic_works" = xyes; then
6428     case $lt_prog_compiler_pic in
6429      "" | " "*) ;;
6430      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6431      esac
6432 else
6433     lt_prog_compiler_pic=
6434      lt_prog_compiler_can_build_shared=no
6435 fi
6437 fi
6438 case $host_os in
6439   # For platforms which do not support PIC, -DPIC is meaningless:
6440   *djgpp*)
6441     lt_prog_compiler_pic=
6442     ;;
6443   *)
6444     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6445     ;;
6446 esac
6449 # Check to make sure the static flag actually works.
6451 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6452 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6453 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6454 if test "${lt_prog_compiler_static_works+set}" = set; then
6455   echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457   lt_prog_compiler_static_works=no
6458    save_LDFLAGS="$LDFLAGS"
6459    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6460    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6461    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6462      # The linker can only warn and ignore the option if not recognized
6463      # So say no if there are warnings
6464      if test -s conftest.err; then
6465        # Append any errors to the config.log.
6466        cat conftest.err 1>&5
6467        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6468        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6469        if diff conftest.exp conftest.er2 >/dev/null; then
6470          lt_prog_compiler_static_works=yes
6471        fi
6472      else
6473        lt_prog_compiler_static_works=yes
6474      fi
6475    fi
6476    $rm conftest*
6477    LDFLAGS="$save_LDFLAGS"
6479 fi
6480 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6481 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6483 if test x"$lt_prog_compiler_static_works" = xyes; then
6484     :
6485 else
6486     lt_prog_compiler_static=
6487 fi
6490 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6491 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6492 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   lt_cv_prog_compiler_c_o=no
6496    $rm -r conftest 2>/dev/null
6497    mkdir conftest
6498    cd conftest
6499    mkdir out
6500    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6502    lt_compiler_flag="-o out/conftest2.$ac_objext"
6503    # Insert the option either (1) after the last *FLAGS variable, or
6504    # (2) before a word containing "conftest.", or (3) at the end.
6505    # Note that $ac_compile itself does not contain backslashes and begins
6506    # with a dollar sign (not a hyphen), so the echo should work correctly.
6507    lt_compile=`echo "$ac_compile" | $SED \
6508    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6509    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6510    -e 's:$: $lt_compiler_flag:'`
6511    (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
6512    (eval "$lt_compile" 2>out/conftest.err)
6513    ac_status=$?
6514    cat out/conftest.err >&5
6515    echo "$as_me:6515: \$? = $ac_status" >&5
6516    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6517    then
6518      # The compiler can only warn and ignore the option if not recognized
6519      # So say no if there are warnings
6520      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6521      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6522      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6523        lt_cv_prog_compiler_c_o=yes
6524      fi
6525    fi
6526    chmod u+w . 2>&5
6527    $rm conftest*
6528    # SGI C++ compiler will create directory out/ii_files/ for
6529    # template instantiation
6530    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6531    $rm out/* && rmdir out
6532    cd ..
6533    rmdir conftest
6534    $rm conftest*
6536 fi
6537 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6538 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6541 hard_links="nottested"
6542 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6543   # do not overwrite the value of need_locks provided by the user
6544   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6545 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6546   hard_links=yes
6547   $rm conftest*
6548   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6549   touch conftest.a
6550   ln conftest.a conftest.b 2>&5 || hard_links=no
6551   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6552   echo "$as_me:$LINENO: result: $hard_links" >&5
6553 echo "${ECHO_T}$hard_links" >&6
6554   if test "$hard_links" = no; then
6555     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6556 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6557     need_locks=warn
6558   fi
6559 else
6560   need_locks=no
6561 fi
6563 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6564 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6566   runpath_var=
6567   allow_undefined_flag=
6568   enable_shared_with_static_runtimes=no
6569   archive_cmds=
6570   archive_expsym_cmds=
6571   old_archive_From_new_cmds=
6572   old_archive_from_expsyms_cmds=
6573   export_dynamic_flag_spec=
6574   whole_archive_flag_spec=
6575   thread_safe_flag_spec=
6576   hardcode_libdir_flag_spec=
6577   hardcode_libdir_flag_spec_ld=
6578   hardcode_libdir_separator=
6579   hardcode_direct=no
6580   hardcode_minus_L=no
6581   hardcode_shlibpath_var=unsupported
6582   link_all_deplibs=unknown
6583   hardcode_automatic=no
6584   module_cmds=
6585   module_expsym_cmds=
6586   always_export_symbols=no
6587   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6588   # include_expsyms should be a list of space-separated symbols to be *always*
6589   # included in the symbol list
6590   include_expsyms=
6591   # exclude_expsyms can be an extended regexp of symbols to exclude
6592   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6593   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6594   # as well as any symbol that contains `d'.
6595   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6596   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6597   # platforms (ab)use it in PIC code, but their linkers get confused if
6598   # the symbol is explicitly referenced.  Since portable code cannot
6599   # rely on this symbol name, it's probably fine to never include it in
6600   # preloaded symbol tables.
6601   extract_expsyms_cmds=
6602   # Just being paranoid about ensuring that cc_basename is set.
6603   for cc_temp in $compiler""; do
6604   case $cc_temp in
6605     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6606     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6607     \-*) ;;
6608     *) break;;
6609   esac
6610 done
6611 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6613   case $host_os in
6614   cygwin* | mingw* | pw32*)
6615     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6616     # When not using gcc, we currently assume that we are using
6617     # Microsoft Visual C++.
6618     if test "$GCC" != yes; then
6619       with_gnu_ld=no
6620     fi
6621     ;;
6622   interix*)
6623     # we just hope/assume this is gcc and not c89 (= MSVC++)
6624     with_gnu_ld=yes
6625     ;;
6626   openbsd*)
6627     with_gnu_ld=no
6628     ;;
6629   esac
6631   ld_shlibs=yes
6632   if test "$with_gnu_ld" = yes; then
6633     # If archive_cmds runs LD, not CC, wlarc should be empty
6634     wlarc='${wl}'
6636     # Set some defaults for GNU ld with shared library support. These
6637     # are reset later if shared libraries are not supported. Putting them
6638     # here allows them to be overridden if necessary.
6639     runpath_var=LD_RUN_PATH
6640     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6641     export_dynamic_flag_spec='${wl}--export-dynamic'
6642     # ancient GNU ld didn't support --whole-archive et. al.
6643     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6644         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6645       else
6646         whole_archive_flag_spec=
6647     fi
6648     supports_anon_versioning=no
6649     case `$LD -v 2>/dev/null` in
6650       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6651       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6652       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6653       *\ 2.11.*) ;; # other 2.11 versions
6654       *) supports_anon_versioning=yes ;;
6655     esac
6657     # See if GNU ld supports shared libraries.
6658     case $host_os in
6659     aix3* | aix4* | aix5*)
6660       # On AIX/PPC, the GNU linker is very broken
6661       if test "$host_cpu" != ia64; then
6662         ld_shlibs=no
6663         cat <<EOF 1>&2
6665 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6666 *** to be unable to reliably create shared libraries on AIX.
6667 *** Therefore, libtool is disabling shared libraries support.  If you
6668 *** really care for shared libraries, you may want to modify your PATH
6669 *** so that a non-GNU linker is found, and then restart.
6671 EOF
6672       fi
6673       ;;
6675     amigaos*)
6676       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)'
6677       hardcode_libdir_flag_spec='-L$libdir'
6678       hardcode_minus_L=yes
6680       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6681       # that the semantics of dynamic libraries on AmigaOS, at least up
6682       # to version 4, is to share data among multiple programs linked
6683       # with the same dynamic library.  Since this doesn't match the
6684       # behavior of shared libraries on other platforms, we can't use
6685       # them.
6686       ld_shlibs=no
6687       ;;
6689     beos*)
6690       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6691         allow_undefined_flag=unsupported
6692         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6693         # support --undefined.  This deserves some investigation.  FIXME
6694         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6695       else
6696         ld_shlibs=no
6697       fi
6698       ;;
6700     cygwin* | mingw* | pw32*)
6701       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6702       # as there is no search path for DLLs.
6703       hardcode_libdir_flag_spec='-L$libdir'
6704       allow_undefined_flag=unsupported
6705       always_export_symbols=no
6706       enable_shared_with_static_runtimes=yes
6707       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6709       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6710         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6711         # If the export-symbols file already is a .def file (1st line
6712         # is EXPORTS), use it as is; otherwise, prepend...
6713         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6714           cp $export_symbols $output_objdir/$soname.def;
6715         else
6716           echo EXPORTS > $output_objdir/$soname.def;
6717           cat $export_symbols >> $output_objdir/$soname.def;
6718         fi~
6719         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6720       else
6721         ld_shlibs=no
6722       fi
6723       ;;
6725     interix3*)
6726       hardcode_direct=no
6727       hardcode_shlibpath_var=no
6728       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6729       export_dynamic_flag_spec='${wl}-E'
6730       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6731       # Instead, shared libraries are loaded at an image base (0x10000000 by
6732       # default) and relocated if they conflict, which is a slow very memory
6733       # consuming and fragmenting process.  To avoid this, we pick a random,
6734       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6735       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6736       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6737       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'
6738       ;;
6740     linux*)
6741       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6742         tmp_addflag=
6743         case $cc_basename,$host_cpu in
6744         pgcc*)                          # Portland Group C compiler
6745           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'
6746           tmp_addflag=' $pic_flag'
6747           ;;
6748         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6749           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'
6750           tmp_addflag=' $pic_flag -Mnomain' ;;
6751         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6752           tmp_addflag=' -i_dynamic' ;;
6753         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6754           tmp_addflag=' -i_dynamic -nofor_main' ;;
6755         ifc* | ifort*)                  # Intel Fortran compiler
6756           tmp_addflag=' -nofor_main' ;;
6757         esac
6758         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6760         if test $supports_anon_versioning = yes; then
6761           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6762   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6763   $echo "local: *; };" >> $output_objdir/$libname.ver~
6764           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6765         fi
6766       else
6767         ld_shlibs=no
6768       fi
6769       ;;
6771     netbsd*)
6772       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6773         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6774         wlarc=
6775       else
6776         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6777         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6778       fi
6779       ;;
6781     solaris*)
6782       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6783         ld_shlibs=no
6784         cat <<EOF 1>&2
6786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6787 *** create shared libraries on Solaris systems.  Therefore, libtool
6788 *** is disabling shared libraries support.  We urge you to upgrade GNU
6789 *** binutils to release 2.9.1 or newer.  Another option is to modify
6790 *** your PATH or compiler configuration so that the native linker is
6791 *** used, and then restart.
6793 EOF
6794       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6795         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6796         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6797       else
6798         ld_shlibs=no
6799       fi
6800       ;;
6802     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6803       case `$LD -v 2>&1` in
6804         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6805         ld_shlibs=no
6806         cat <<_LT_EOF 1>&2
6808 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6809 *** reliably create shared libraries on SCO systems.  Therefore, libtool
6810 *** is disabling shared libraries support.  We urge you to upgrade GNU
6811 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6812 *** your PATH or compiler configuration so that the native linker is
6813 *** used, and then restart.
6815 _LT_EOF
6816         ;;
6817         *)
6818           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6819             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6820             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6821             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6822           else
6823             ld_shlibs=no
6824           fi
6825         ;;
6826       esac
6827       ;;
6829     sunos4*)
6830       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6831       wlarc=
6832       hardcode_direct=yes
6833       hardcode_shlibpath_var=no
6834       ;;
6836     *)
6837       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6838         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6839         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6840       else
6841         ld_shlibs=no
6842       fi
6843       ;;
6844     esac
6846     if test "$ld_shlibs" = no; then
6847       runpath_var=
6848       hardcode_libdir_flag_spec=
6849       export_dynamic_flag_spec=
6850       whole_archive_flag_spec=
6851     fi
6852   else
6853     # PORTME fill in a description of your system's linker (not GNU ld)
6854     case $host_os in
6855     aix3*)
6856       allow_undefined_flag=unsupported
6857       always_export_symbols=yes
6858       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'
6859       # Note: this linker hardcodes the directories in LIBPATH if there
6860       # are no directories specified by -L.
6861       hardcode_minus_L=yes
6862       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6863         # Neither direct hardcoding nor static linking is supported with a
6864         # broken collect2.
6865         hardcode_direct=unsupported
6866       fi
6867       ;;
6869     aix4* | aix5*)
6870       if test "$host_cpu" = ia64; then
6871         # On IA64, the linker does run time linking by default, so we don't
6872         # have to do anything special.
6873         aix_use_runtimelinking=no
6874         exp_sym_flag='-Bexport'
6875         no_entry_flag=""
6876       else
6877         # If we're using GNU nm, then we don't want the "-C" option.
6878         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6879         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6880           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'
6881         else
6882           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'
6883         fi
6884         aix_use_runtimelinking=no
6886         # Test if we are trying to use run time linking or normal
6887         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6888         # need to do runtime linking.
6889         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6890           for ld_flag in $LDFLAGS; do
6891           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6892             aix_use_runtimelinking=yes
6893             break
6894           fi
6895           done
6896           ;;
6897         esac
6899         exp_sym_flag='-bexport'
6900         no_entry_flag='-bnoentry'
6901       fi
6903       # When large executables or shared objects are built, AIX ld can
6904       # have problems creating the table of contents.  If linking a library
6905       # or program results in "error TOC overflow" add -mminimal-toc to
6906       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6907       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6909       archive_cmds=''
6910       hardcode_direct=yes
6911       hardcode_libdir_separator=':'
6912       link_all_deplibs=yes
6914       if test "$GCC" = yes; then
6915         case $host_os in aix4.[012]|aix4.[012].*)
6916         # We only want to do this on AIX 4.2 and lower, the check
6917         # below for broken collect2 doesn't work under 4.3+
6918           collect2name=`${CC} -print-prog-name=collect2`
6919           if test -f "$collect2name" && \
6920            strings "$collect2name" | grep resolve_lib_name >/dev/null
6921           then
6922           # We have reworked collect2
6923           hardcode_direct=yes
6924           else
6925           # We have old collect2
6926           hardcode_direct=unsupported
6927           # It fails to find uninstalled libraries when the uninstalled
6928           # path is not listed in the libpath.  Setting hardcode_minus_L
6929           # to unsupported forces relinking
6930           hardcode_minus_L=yes
6931           hardcode_libdir_flag_spec='-L$libdir'
6932           hardcode_libdir_separator=
6933           fi
6934           ;;
6935         esac
6936         shared_flag='-shared'
6937         if test "$aix_use_runtimelinking" = yes; then
6938           shared_flag="$shared_flag "'${wl}-G'
6939         fi
6940       else
6941         # not using gcc
6942         if test "$host_cpu" = ia64; then
6943         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6944         # chokes on -Wl,-G. The following line is correct:
6945           shared_flag='-G'
6946         else
6947           if test "$aix_use_runtimelinking" = yes; then
6948             shared_flag='${wl}-G'
6949           else
6950             shared_flag='${wl}-bM:SRE'
6951           fi
6952         fi
6953       fi
6955       # It seems that -bexpall does not export symbols beginning with
6956       # underscore (_), so it is better to generate a list of symbols to export.
6957       always_export_symbols=yes
6958       if test "$aix_use_runtimelinking" = yes; then
6959         # Warning - without using the other runtime loading flags (-brtl),
6960         # -berok will link without error, but may produce a broken library.
6961         allow_undefined_flag='-berok'
6962        # Determine the default libpath from the value encoded in an empty executable.
6963        cat >conftest.$ac_ext <<_ACEOF
6964 /* confdefs.h.  */
6965 _ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h.  */
6970 int
6971 main ()
6974   ;
6975   return 0;
6977 _ACEOF
6978 rm -f conftest.$ac_objext conftest$ac_exeext
6979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6980   (eval $ac_link) 2>conftest.er1
6981   ac_status=$?
6982   grep -v '^ *+' conftest.er1 >conftest.err
6983   rm -f conftest.er1
6984   cat conftest.err >&5
6985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986   (exit $ac_status); } &&
6987          { ac_try='test -z "$ac_c_werror_flag"
6988                          || test ! -s conftest.err'
6989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990   (eval $ac_try) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); }; } &&
6994          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7002 }'`
7003 # Check for a 64-bit object if we didn't find anything.
7004 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; }
7005 }'`; fi
7006 else
7007   echo "$as_me: failed program was:" >&5
7008 sed 's/^/| /' conftest.$ac_ext >&5
7010 fi
7011 rm -f conftest.err conftest.$ac_objext \
7012       conftest$ac_exeext conftest.$ac_ext
7013 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7015        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7016         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"
7017        else
7018         if test "$host_cpu" = ia64; then
7019           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7020           allow_undefined_flag="-z nodefs"
7021           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"
7022         else
7023          # Determine the default libpath from the value encoded in an empty executable.
7024          cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h.  */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h.  */
7031 int
7032 main ()
7035   ;
7036   return 0;
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041   (eval $ac_link) 2>conftest.er1
7042   ac_status=$?
7043   grep -v '^ *+' conftest.er1 >conftest.err
7044   rm -f conftest.er1
7045   cat conftest.err >&5
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); } &&
7048          { ac_try='test -z "$ac_c_werror_flag"
7049                          || test ! -s conftest.err'
7050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051   (eval $ac_try) 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); }; } &&
7055          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7063 }'`
7064 # Check for a 64-bit object if we didn't find anything.
7065 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; }
7066 }'`; fi
7067 else
7068   echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7071 fi
7072 rm -f conftest.err conftest.$ac_objext \
7073       conftest$ac_exeext conftest.$ac_ext
7074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7076          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7077           # Warning - without using the other run time loading flags,
7078           # -berok will link without error, but may produce a broken library.
7079           no_undefined_flag=' ${wl}-bernotok'
7080           allow_undefined_flag=' ${wl}-berok'
7081           # Exported symbols can be pulled into shared objects from archives
7082           whole_archive_flag_spec='$convenience'
7083           archive_cmds_need_lc=yes
7084           # This is similar to how AIX traditionally builds its shared libraries.
7085           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'
7086         fi
7087       fi
7088       ;;
7090     amigaos*)
7091       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)'
7092       hardcode_libdir_flag_spec='-L$libdir'
7093       hardcode_minus_L=yes
7094       # see comment about different semantics on the GNU ld section
7095       ld_shlibs=no
7096       ;;
7098     bsdi[45]*)
7099       export_dynamic_flag_spec=-rdynamic
7100       ;;
7102     cygwin* | mingw* | pw32*)
7103       # When not using gcc, we currently assume that we are using
7104       # Microsoft Visual C++.
7105       # hardcode_libdir_flag_spec is actually meaningless, as there is
7106       # no search path for DLLs.
7107       hardcode_libdir_flag_spec=' '
7108       allow_undefined_flag=unsupported
7109       # Tell ltmain to make .lib files, not .a files.
7110       libext=lib
7111       # Tell ltmain to make .dll files, not .so files.
7112       shrext_cmds=".dll"
7113       # FIXME: Setting linknames here is a bad hack.
7114       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7115       # The linker will automatically build a .lib file if we build a DLL.
7116       old_archive_From_new_cmds='true'
7117       # FIXME: Should let the user specify the lib program.
7118       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7119       fix_srcfile_path='`cygpath -w "$srcfile"`'
7120       enable_shared_with_static_runtimes=yes
7121       ;;
7123     darwin* | rhapsody*)
7124       case $host_os in
7125         rhapsody* | darwin1.[012])
7126          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7127          ;;
7128        *) # Darwin 1.3 on
7129          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7130            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7131          else
7132            case ${MACOSX_DEPLOYMENT_TARGET} in
7133              10.[012])
7134                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7135                ;;
7136              10.*)
7137                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7138                ;;
7139            esac
7140          fi
7141          ;;
7142       esac
7143       archive_cmds_need_lc=no
7144       hardcode_direct=no
7145       hardcode_automatic=yes
7146       hardcode_shlibpath_var=unsupported
7147       whole_archive_flag_spec=''
7148       link_all_deplibs=yes
7149     if test "$GCC" = yes ; then
7150         output_verbose_link_cmd='echo'
7151         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7152       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7153       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7154       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}'
7155       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}'
7156     else
7157       case $cc_basename in
7158         xlc*)
7159          output_verbose_link_cmd='echo'
7160          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7161          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7162           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7163          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}'
7164           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}'
7165           ;;
7166        *)
7167          ld_shlibs=no
7168           ;;
7169       esac
7170     fi
7171       ;;
7173     dgux*)
7174       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7175       hardcode_libdir_flag_spec='-L$libdir'
7176       hardcode_shlibpath_var=no
7177       ;;
7179     freebsd1*)
7180       ld_shlibs=no
7181       ;;
7183     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7184     # support.  Future versions do this automatically, but an explicit c++rt0.o
7185     # does not break anything, and helps significantly (at the cost of a little
7186     # extra space).
7187     freebsd2.2*)
7188       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7189       hardcode_libdir_flag_spec='-R$libdir'
7190       hardcode_direct=yes
7191       hardcode_shlibpath_var=no
7192       ;;
7194     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7195     freebsd2*)
7196       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7197       hardcode_direct=yes
7198       hardcode_minus_L=yes
7199       hardcode_shlibpath_var=no
7200       ;;
7202     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7203     freebsd* | kfreebsd*-gnu | dragonfly*)
7204       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7205       hardcode_libdir_flag_spec='-R$libdir'
7206       hardcode_direct=yes
7207       hardcode_shlibpath_var=no
7208       ;;
7210     hpux9*)
7211       if test "$GCC" = yes; then
7212         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'
7213       else
7214         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'
7215       fi
7216       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7217       hardcode_libdir_separator=:
7218       hardcode_direct=yes
7220       # hardcode_minus_L: Not really in the search PATH,
7221       # but as the default location of the library.
7222       hardcode_minus_L=yes
7223       export_dynamic_flag_spec='${wl}-E'
7224       ;;
7226     hpux10*)
7227       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7228         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7229       else
7230         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7231       fi
7232       if test "$with_gnu_ld" = no; then
7233         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7234         hardcode_libdir_separator=:
7236         hardcode_direct=yes
7237         export_dynamic_flag_spec='${wl}-E'
7239         # hardcode_minus_L: Not really in the search PATH,
7240         # but as the default location of the library.
7241         hardcode_minus_L=yes
7242       fi
7243       ;;
7245     hpux11*)
7246       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7247         case $host_cpu in
7248         hppa*64*)
7249           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7250           ;;
7251         ia64*)
7252           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7253           ;;
7254         *)
7255           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7256           ;;
7257         esac
7258       else
7259         case $host_cpu in
7260         hppa*64*)
7261           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7262           ;;
7263         ia64*)
7264           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7265           ;;
7266         *)
7267           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7268           ;;
7269         esac
7270       fi
7271       if test "$with_gnu_ld" = no; then
7272         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7273         hardcode_libdir_separator=:
7275         case $host_cpu in
7276         hppa*64*|ia64*)
7277           hardcode_libdir_flag_spec_ld='+b $libdir'
7278           hardcode_direct=no
7279           hardcode_shlibpath_var=no
7280           ;;
7281         *)
7282           hardcode_direct=yes
7283           export_dynamic_flag_spec='${wl}-E'
7285           # hardcode_minus_L: Not really in the search PATH,
7286           # but as the default location of the library.
7287           hardcode_minus_L=yes
7288           ;;
7289         esac
7290       fi
7291       ;;
7293     irix5* | irix6* | nonstopux*)
7294       if test "$GCC" = yes; then
7295         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'
7296       else
7297         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'
7298         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7299       fi
7300       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7301       hardcode_libdir_separator=:
7302       link_all_deplibs=yes
7303       ;;
7305     netbsd*)
7306       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7307         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7308       else
7309         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7310       fi
7311       hardcode_libdir_flag_spec='-R$libdir'
7312       hardcode_direct=yes
7313       hardcode_shlibpath_var=no
7314       ;;
7316     newsos6)
7317       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7318       hardcode_direct=yes
7319       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7320       hardcode_libdir_separator=:
7321       hardcode_shlibpath_var=no
7322       ;;
7324     openbsd*)
7325       hardcode_direct=yes
7326       hardcode_shlibpath_var=no
7327       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7328         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7329         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7330         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7331         export_dynamic_flag_spec='${wl}-E'
7332       else
7333        case $host_os in
7334          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7335            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7336            hardcode_libdir_flag_spec='-R$libdir'
7337            ;;
7338          *)
7339            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7340            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7341            ;;
7342        esac
7343       fi
7344       ;;
7346     os2*)
7347       hardcode_libdir_flag_spec='-L$libdir'
7348       hardcode_minus_L=yes
7349       allow_undefined_flag=unsupported
7350       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'
7351       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7352       ;;
7354     osf3*)
7355       if test "$GCC" = yes; then
7356         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7357         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'
7358       else
7359         allow_undefined_flag=' -expect_unresolved \*'
7360         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'
7361       fi
7362       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7363       hardcode_libdir_separator=:
7364       ;;
7366     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7367       if test "$GCC" = yes; then
7368         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7369         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'
7370         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7371       else
7372         allow_undefined_flag=' -expect_unresolved \*'
7373         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'
7374         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7375         $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'
7377         # Both c and cxx compiler support -rpath directly
7378         hardcode_libdir_flag_spec='-rpath $libdir'
7379       fi
7380       hardcode_libdir_separator=:
7381       ;;
7383     solaris*)
7384       no_undefined_flag=' -z text'
7385       if test "$GCC" = yes; then
7386         wlarc='${wl}'
7387         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7388         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7389           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7390       else
7391         wlarc=''
7392         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7393         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7394         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7395       fi
7396       hardcode_libdir_flag_spec='-R$libdir'
7397       hardcode_shlibpath_var=no
7398       case $host_os in
7399       solaris2.[0-5] | solaris2.[0-5].*) ;;
7400       *)
7401         # The compiler driver will combine linker options so we
7402         # cannot just pass the convience library names through
7403         # without $wl, iff we do not link with $LD.
7404         # Luckily, gcc supports the same syntax we need for Sun Studio.
7405         # Supported since Solaris 2.6 (maybe 2.5.1?)
7406         case $wlarc in
7407         '')
7408           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7409         *)
7410           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' ;;
7411         esac ;;
7412       esac
7413       link_all_deplibs=yes
7414       ;;
7416     sunos4*)
7417       if test "x$host_vendor" = xsequent; then
7418         # Use $CC to link under sequent, because it throws in some extra .o
7419         # files that make .init and .fini sections work.
7420         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7421       else
7422         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7423       fi
7424       hardcode_libdir_flag_spec='-L$libdir'
7425       hardcode_direct=yes
7426       hardcode_minus_L=yes
7427       hardcode_shlibpath_var=no
7428       ;;
7430     sysv4)
7431       case $host_vendor in
7432         sni)
7433           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434           hardcode_direct=yes # is this really true???
7435         ;;
7436         siemens)
7437           ## LD is ld it makes a PLAMLIB
7438           ## CC just makes a GrossModule.
7439           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7440           reload_cmds='$CC -r -o $output$reload_objs'
7441           hardcode_direct=no
7442         ;;
7443         motorola)
7444           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7445           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7446         ;;
7447       esac
7448       runpath_var='LD_RUN_PATH'
7449       hardcode_shlibpath_var=no
7450       ;;
7452     sysv4.3*)
7453       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7454       hardcode_shlibpath_var=no
7455       export_dynamic_flag_spec='-Bexport'
7456       ;;
7458     sysv4*MP*)
7459       if test -d /usr/nec; then
7460         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7461         hardcode_shlibpath_var=no
7462         runpath_var=LD_RUN_PATH
7463         hardcode_runpath_var=yes
7464         ld_shlibs=yes
7465       fi
7466       ;;
7468     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7469       no_undefined_flag='${wl}-z,text'
7470       archive_cmds_need_lc=no
7471       hardcode_shlibpath_var=no
7472       runpath_var='LD_RUN_PATH'
7474       if test "$GCC" = yes; then
7475         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7476         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7477       else
7478         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7479         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7480       fi
7481       ;;
7483     sysv5* | sco3.2v5* | sco5v6*)
7484       # Note: We can NOT use -z defs as we might desire, because we do not
7485       # link with -lc, and that would cause any symbols used from libc to
7486       # always be unresolved, which means just about no library would
7487       # ever link correctly.  If we're not using GNU ld we use -z text
7488       # though, which does catch some bad symbols but isn't as heavy-handed
7489       # as -z defs.
7490       no_undefined_flag='${wl}-z,text'
7491       allow_undefined_flag='${wl}-z,nodefs'
7492       archive_cmds_need_lc=no
7493       hardcode_shlibpath_var=no
7494       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7495       hardcode_libdir_separator=':'
7496       link_all_deplibs=yes
7497       export_dynamic_flag_spec='${wl}-Bexport'
7498       runpath_var='LD_RUN_PATH'
7500       if test "$GCC" = yes; then
7501         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7502         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7503       else
7504         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7505         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7506       fi
7507       ;;
7509     uts4*)
7510       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7511       hardcode_libdir_flag_spec='-L$libdir'
7512       hardcode_shlibpath_var=no
7513       ;;
7515     *)
7516       ld_shlibs=no
7517       ;;
7518     esac
7519   fi
7521 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7522 echo "${ECHO_T}$ld_shlibs" >&6
7523 test "$ld_shlibs" = no && can_build_shared=no
7526 # Do we need to explicitly link libc?
7528 case "x$archive_cmds_need_lc" in
7529 x|xyes)
7530   # Assume -lc should be added
7531   archive_cmds_need_lc=yes
7533   if test "$enable_shared" = yes && test "$GCC" = yes; then
7534     case $archive_cmds in
7535     *'~'*)
7536       # FIXME: we may have to deal with multi-command sequences.
7537       ;;
7538     '$CC '*)
7539       # Test whether the compiler implicitly links with -lc since on some
7540       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7541       # to ld, don't add -lc before -lgcc.
7542       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7543 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7544       $rm conftest*
7545       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7547       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7548   (eval $ac_compile) 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); } 2>conftest.err; then
7552         soname=conftest
7553         lib=conftest
7554         libobjs=conftest.$ac_objext
7555         deplibs=
7556         wl=$lt_prog_compiler_wl
7557         pic_flag=$lt_prog_compiler_pic
7558         compiler_flags=-v
7559         linker_flags=-v
7560         verstring=
7561         output_objdir=.
7562         libname=conftest
7563         lt_save_allow_undefined_flag=$allow_undefined_flag
7564         allow_undefined_flag=
7565         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7566   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7567   ac_status=$?
7568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569   (exit $ac_status); }
7570         then
7571           archive_cmds_need_lc=no
7572         else
7573           archive_cmds_need_lc=yes
7574         fi
7575         allow_undefined_flag=$lt_save_allow_undefined_flag
7576       else
7577         cat conftest.err 1>&5
7578       fi
7579       $rm conftest*
7580       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7581 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7582       ;;
7583     esac
7584   fi
7585   ;;
7586 esac
7588 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7589 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7590 library_names_spec=
7591 libname_spec='lib$name'
7592 soname_spec=
7593 shrext_cmds=".so"
7594 postinstall_cmds=
7595 postuninstall_cmds=
7596 finish_cmds=
7597 finish_eval=
7598 shlibpath_var=
7599 shlibpath_overrides_runpath=unknown
7600 version_type=none
7601 dynamic_linker="$host_os ld.so"
7602 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7603 if test "$GCC" = yes; then
7604   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7605   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7606     # if the path contains ";" then we assume it to be the separator
7607     # otherwise default to the standard path separator (i.e. ":") - it is
7608     # assumed that no part of a normal pathname contains ";" but that should
7609     # okay in the real world where ";" in dirpaths is itself problematic.
7610     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7611   else
7612     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7613   fi
7614 else
7615   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7616 fi
7617 need_lib_prefix=unknown
7618 hardcode_into_libs=no
7620 # when you set need_version to no, make sure it does not cause -set_version
7621 # flags to be left without arguments
7622 need_version=unknown
7624 case $host_os in
7625 aix3*)
7626   version_type=linux
7627   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7628   shlibpath_var=LIBPATH
7630   # AIX 3 has no versioning support, so we append a major version to the name.
7631   soname_spec='${libname}${release}${shared_ext}$major'
7632   ;;
7634 aix4* | aix5*)
7635   version_type=linux
7636   need_lib_prefix=no
7637   need_version=no
7638   hardcode_into_libs=yes
7639   if test "$host_cpu" = ia64; then
7640     # AIX 5 supports IA64
7641     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7642     shlibpath_var=LD_LIBRARY_PATH
7643   else
7644     # With GCC up to 2.95.x, collect2 would create an import file
7645     # for dependence libraries.  The import file would start with
7646     # the line `#! .'.  This would cause the generated library to
7647     # depend on `.', always an invalid library.  This was fixed in
7648     # development snapshots of GCC prior to 3.0.
7649     case $host_os in
7650       aix4 | aix4.[01] | aix4.[01].*)
7651       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7652            echo ' yes '
7653            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7654         :
7655       else
7656         can_build_shared=no
7657       fi
7658       ;;
7659     esac
7660     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7661     # soname into executable. Probably we can add versioning support to
7662     # collect2, so additional links can be useful in future.
7663     if test "$aix_use_runtimelinking" = yes; then
7664       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7665       # instead of lib<name>.a to let people know that these are not
7666       # typical AIX shared libraries.
7667       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7668     else
7669       # We preserve .a as extension for shared libraries through AIX4.2
7670       # and later when we are not doing run time linking.
7671       library_names_spec='${libname}${release}.a $libname.a'
7672       soname_spec='${libname}${release}${shared_ext}$major'
7673     fi
7674     shlibpath_var=LIBPATH
7675   fi
7676   ;;
7678 amigaos*)
7679   library_names_spec='$libname.ixlibrary $libname.a'
7680   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7681   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'
7682   ;;
7684 beos*)
7685   library_names_spec='${libname}${shared_ext}'
7686   dynamic_linker="$host_os ld.so"
7687   shlibpath_var=LIBRARY_PATH
7688   ;;
7690 bsdi[45]*)
7691   version_type=linux
7692   need_version=no
7693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7694   soname_spec='${libname}${release}${shared_ext}$major'
7695   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7696   shlibpath_var=LD_LIBRARY_PATH
7697   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7698   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7699   # the default ld.so.conf also contains /usr/contrib/lib and
7700   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7701   # libtool to hard-code these into programs
7702   ;;
7704 cygwin* | mingw* | pw32*)
7705   version_type=windows
7706   shrext_cmds=".dll"
7707   need_version=no
7708   need_lib_prefix=no
7710   case $GCC,$host_os in
7711   yes,cygwin* | yes,mingw* | yes,pw32*)
7712     library_names_spec='$libname.dll.a'
7713     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7714     postinstall_cmds='base_file=`basename \${file}`~
7715       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7716       dldir=$destdir/`dirname \$dlpath`~
7717       test -d \$dldir || mkdir -p \$dldir~
7718       $install_prog $dir/$dlname \$dldir/$dlname~
7719       chmod a+x \$dldir/$dlname'
7720     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7721       dlpath=$dir/\$dldll~
7722        $rm \$dlpath'
7723     shlibpath_overrides_runpath=yes
7725     case $host_os in
7726     cygwin*)
7727       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7728       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7729       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7730       ;;
7731     mingw*)
7732       # MinGW DLLs use traditional 'lib' prefix
7733       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7734       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7735       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7736         # It is most probably a Windows format PATH printed by
7737         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7738         # path with ; separators, and with drive letters. We can handle the
7739         # drive letters (cygwin fileutils understands them), so leave them,
7740         # especially as we might pass files found there to a mingw objdump,
7741         # which wouldn't understand a cygwinified path. Ahh.
7742         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7743       else
7744         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7745       fi
7746       ;;
7747     pw32*)
7748       # pw32 DLLs use 'pw' prefix rather than 'lib'
7749       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7750       ;;
7751     esac
7752     ;;
7754   *)
7755     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7756     ;;
7757   esac
7758   dynamic_linker='Win32 ld.exe'
7759   # FIXME: first we should search . and the directory the executable is in
7760   shlibpath_var=PATH
7761   ;;
7763 darwin* | rhapsody*)
7764   dynamic_linker="$host_os dyld"
7765   version_type=darwin
7766   need_lib_prefix=no
7767   need_version=no
7768   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7769   soname_spec='${libname}${release}${major}$shared_ext'
7770   shlibpath_overrides_runpath=yes
7771   shlibpath_var=DYLD_LIBRARY_PATH
7772   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7773   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7774   if test "$GCC" = yes; then
7775     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"`
7776   else
7777     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7778   fi
7779   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7780   ;;
7782 dgux*)
7783   version_type=linux
7784   need_lib_prefix=no
7785   need_version=no
7786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7787   soname_spec='${libname}${release}${shared_ext}$major'
7788   shlibpath_var=LD_LIBRARY_PATH
7789   ;;
7791 freebsd1*)
7792   dynamic_linker=no
7793   ;;
7795 kfreebsd*-gnu)
7796   version_type=linux
7797   need_lib_prefix=no
7798   need_version=no
7799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7800   soname_spec='${libname}${release}${shared_ext}$major'
7801   shlibpath_var=LD_LIBRARY_PATH
7802   shlibpath_overrides_runpath=no
7803   hardcode_into_libs=yes
7804   dynamic_linker='GNU ld.so'
7805   ;;
7807 freebsd* | dragonfly*)
7808   # DragonFly does not have aout.  When/if they implement a new
7809   # versioning mechanism, adjust this.
7810   if test -x /usr/bin/objformat; then
7811     objformat=`/usr/bin/objformat`
7812   else
7813     case $host_os in
7814     freebsd[123]*) objformat=aout ;;
7815     *) objformat=elf ;;
7816     esac
7817   fi
7818   version_type=freebsd-$objformat
7819   case $version_type in
7820     freebsd-elf*)
7821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7822       need_version=no
7823       need_lib_prefix=no
7824       ;;
7825     freebsd-*)
7826       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7827       need_version=yes
7828       ;;
7829   esac
7830   shlibpath_var=LD_LIBRARY_PATH
7831   case $host_os in
7832   freebsd2*)
7833     shlibpath_overrides_runpath=yes
7834     ;;
7835   freebsd3.[01]* | freebsdelf3.[01]*)
7836     shlibpath_overrides_runpath=yes
7837     hardcode_into_libs=yes
7838     ;;
7839   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7840   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7841     shlibpath_overrides_runpath=no
7842     hardcode_into_libs=yes
7843     ;;
7844   freebsd*) # from 4.6 on
7845     shlibpath_overrides_runpath=yes
7846     hardcode_into_libs=yes
7847     ;;
7848   esac
7849   ;;
7851 gnu*)
7852   version_type=linux
7853   need_lib_prefix=no
7854   need_version=no
7855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7856   soname_spec='${libname}${release}${shared_ext}$major'
7857   shlibpath_var=LD_LIBRARY_PATH
7858   hardcode_into_libs=yes
7859   ;;
7861 hpux9* | hpux10* | hpux11*)
7862   # Give a soname corresponding to the major version so that dld.sl refuses to
7863   # link against other versions.
7864   version_type=sunos
7865   need_lib_prefix=no
7866   need_version=no
7867   case $host_cpu in
7868   ia64*)
7869     shrext_cmds='.so'
7870     hardcode_into_libs=yes
7871     dynamic_linker="$host_os dld.so"
7872     shlibpath_var=LD_LIBRARY_PATH
7873     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7875     soname_spec='${libname}${release}${shared_ext}$major'
7876     if test "X$HPUX_IA64_MODE" = X32; then
7877       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7878     else
7879       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7880     fi
7881     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7882     ;;
7883    hppa*64*)
7884      shrext_cmds='.sl'
7885      hardcode_into_libs=yes
7886      dynamic_linker="$host_os dld.sl"
7887      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7888      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7889      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7890      soname_spec='${libname}${release}${shared_ext}$major'
7891      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7892      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7893      ;;
7894    *)
7895     shrext_cmds='.sl'
7896     dynamic_linker="$host_os dld.sl"
7897     shlibpath_var=SHLIB_PATH
7898     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900     soname_spec='${libname}${release}${shared_ext}$major'
7901     ;;
7902   esac
7903   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7904   postinstall_cmds='chmod 555 $lib'
7905   ;;
7907 interix3*)
7908   version_type=linux
7909   need_lib_prefix=no
7910   need_version=no
7911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7912   soname_spec='${libname}${release}${shared_ext}$major'
7913   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7914   shlibpath_var=LD_LIBRARY_PATH
7915   shlibpath_overrides_runpath=no
7916   hardcode_into_libs=yes
7917   ;;
7919 irix5* | irix6* | nonstopux*)
7920   case $host_os in
7921     nonstopux*) version_type=nonstopux ;;
7922     *)
7923         if test "$lt_cv_prog_gnu_ld" = yes; then
7924                 version_type=linux
7925         else
7926                 version_type=irix
7927         fi ;;
7928   esac
7929   need_lib_prefix=no
7930   need_version=no
7931   soname_spec='${libname}${release}${shared_ext}$major'
7932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7933   case $host_os in
7934   irix5* | nonstopux*)
7935     libsuff= shlibsuff=
7936     ;;
7937   *)
7938     case $LD in # libtool.m4 will add one of these switches to LD
7939     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7940       libsuff= shlibsuff= libmagic=32-bit;;
7941     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7942       libsuff=32 shlibsuff=N32 libmagic=N32;;
7943     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7944       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7945     *) libsuff= shlibsuff= libmagic=never-match;;
7946     esac
7947     ;;
7948   esac
7949   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7950   shlibpath_overrides_runpath=no
7951   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7952   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7953   hardcode_into_libs=yes
7954   ;;
7956 # No shared lib support for Linux oldld, aout, or coff.
7957 linux*oldld* | linux*aout* | linux*coff*)
7958   dynamic_linker=no
7959   ;;
7961 # This must be Linux ELF.
7962 linux*)
7963   version_type=linux
7964   need_lib_prefix=no
7965   need_version=no
7966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7967   soname_spec='${libname}${release}${shared_ext}$major'
7968   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7969   shlibpath_var=LD_LIBRARY_PATH
7970   shlibpath_overrides_runpath=no
7971   # This implies no fast_install, which is unacceptable.
7972   # Some rework will be needed to allow for fast_install
7973   # before this can be enabled.
7974   hardcode_into_libs=yes
7976   # Append ld.so.conf contents to the search path
7977   if test -f /etc/ld.so.conf; then
7978     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' ' '`
7979     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7980   fi
7982   # We used to test for /lib/ld.so.1 and disable shared libraries on
7983   # powerpc, because MkLinux only supported shared libraries with the
7984   # GNU dynamic linker.  Since this was broken with cross compilers,
7985   # most powerpc-linux boxes support dynamic linking these days and
7986   # people can always --disable-shared, the test was removed, and we
7987   # assume the GNU/Linux dynamic linker is in use.
7988   dynamic_linker='GNU/Linux ld.so'
7989   ;;
7991 knetbsd*-gnu)
7992   version_type=linux
7993   need_lib_prefix=no
7994   need_version=no
7995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7996   soname_spec='${libname}${release}${shared_ext}$major'
7997   shlibpath_var=LD_LIBRARY_PATH
7998   shlibpath_overrides_runpath=no
7999   hardcode_into_libs=yes
8000   dynamic_linker='GNU ld.so'
8001   ;;
8003 netbsd*)
8004   version_type=sunos
8005   need_lib_prefix=no
8006   need_version=no
8007   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8008     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8009     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8010     dynamic_linker='NetBSD (a.out) ld.so'
8011   else
8012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8013     soname_spec='${libname}${release}${shared_ext}$major'
8014     dynamic_linker='NetBSD ld.elf_so'
8015   fi
8016   shlibpath_var=LD_LIBRARY_PATH
8017   shlibpath_overrides_runpath=yes
8018   hardcode_into_libs=yes
8019   ;;
8021 newsos6)
8022   version_type=linux
8023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8024   shlibpath_var=LD_LIBRARY_PATH
8025   shlibpath_overrides_runpath=yes
8026   ;;
8028 nto-qnx*)
8029   version_type=linux
8030   need_lib_prefix=no
8031   need_version=no
8032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033   soname_spec='${libname}${release}${shared_ext}$major'
8034   shlibpath_var=LD_LIBRARY_PATH
8035   shlibpath_overrides_runpath=yes
8036   ;;
8038 openbsd*)
8039   version_type=sunos
8040   sys_lib_dlsearch_path_spec="/usr/lib"
8041   need_lib_prefix=no
8042   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8043   case $host_os in
8044     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8045     *)                         need_version=no  ;;
8046   esac
8047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8048   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8049   shlibpath_var=LD_LIBRARY_PATH
8050   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8051     case $host_os in
8052       openbsd2.[89] | openbsd2.[89].*)
8053         shlibpath_overrides_runpath=no
8054         ;;
8055       *)
8056         shlibpath_overrides_runpath=yes
8057         ;;
8058       esac
8059   else
8060     shlibpath_overrides_runpath=yes
8061   fi
8062   ;;
8064 os2*)
8065   libname_spec='$name'
8066   shrext_cmds=".dll"
8067   need_lib_prefix=no
8068   library_names_spec='$libname${shared_ext} $libname.a'
8069   dynamic_linker='OS/2 ld.exe'
8070   shlibpath_var=LIBPATH
8071   ;;
8073 osf3* | osf4* | osf5*)
8074   version_type=osf
8075   need_lib_prefix=no
8076   need_version=no
8077   soname_spec='${libname}${release}${shared_ext}$major'
8078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8079   shlibpath_var=LD_LIBRARY_PATH
8080   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8081   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8082   ;;
8084 solaris*)
8085   version_type=linux
8086   need_lib_prefix=no
8087   need_version=no
8088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8089   soname_spec='${libname}${release}${shared_ext}$major'
8090   shlibpath_var=LD_LIBRARY_PATH
8091   shlibpath_overrides_runpath=yes
8092   hardcode_into_libs=yes
8093   # ldd complains unless libraries are executable
8094   postinstall_cmds='chmod +x $lib'
8095   ;;
8097 sunos4*)
8098   version_type=sunos
8099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8100   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8101   shlibpath_var=LD_LIBRARY_PATH
8102   shlibpath_overrides_runpath=yes
8103   if test "$with_gnu_ld" = yes; then
8104     need_lib_prefix=no
8105   fi
8106   need_version=yes
8107   ;;
8109 sysv4 | sysv4.3*)
8110   version_type=linux
8111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8112   soname_spec='${libname}${release}${shared_ext}$major'
8113   shlibpath_var=LD_LIBRARY_PATH
8114   case $host_vendor in
8115     sni)
8116       shlibpath_overrides_runpath=no
8117       need_lib_prefix=no
8118       export_dynamic_flag_spec='${wl}-Blargedynsym'
8119       runpath_var=LD_RUN_PATH
8120       ;;
8121     siemens)
8122       need_lib_prefix=no
8123       ;;
8124     motorola)
8125       need_lib_prefix=no
8126       need_version=no
8127       shlibpath_overrides_runpath=no
8128       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8129       ;;
8130   esac
8131   ;;
8133 sysv4*MP*)
8134   if test -d /usr/nec ;then
8135     version_type=linux
8136     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8137     soname_spec='$libname${shared_ext}.$major'
8138     shlibpath_var=LD_LIBRARY_PATH
8139   fi
8140   ;;
8142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8143   version_type=freebsd-elf
8144   need_lib_prefix=no
8145   need_version=no
8146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8147   soname_spec='${libname}${release}${shared_ext}$major'
8148   shlibpath_var=LD_LIBRARY_PATH
8149   hardcode_into_libs=yes
8150   if test "$with_gnu_ld" = yes; then
8151     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8152     shlibpath_overrides_runpath=no
8153   else
8154     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8155     shlibpath_overrides_runpath=yes
8156     case $host_os in
8157       sco3.2v5*)
8158         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8159         ;;
8160     esac
8161   fi
8162   sys_lib_dlsearch_path_spec='/usr/lib'
8163   ;;
8165 uts4*)
8166   version_type=linux
8167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8168   soname_spec='${libname}${release}${shared_ext}$major'
8169   shlibpath_var=LD_LIBRARY_PATH
8170   ;;
8172 *)
8173   dynamic_linker=no
8174   ;;
8175 esac
8176 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8177 echo "${ECHO_T}$dynamic_linker" >&6
8178 test "$dynamic_linker" = no && can_build_shared=no
8180 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8181 if test "$GCC" = yes; then
8182   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8183 fi
8185 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8186 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8187 hardcode_action=
8188 if test -n "$hardcode_libdir_flag_spec" || \
8189    test -n "$runpath_var" || \
8190    test "X$hardcode_automatic" = "Xyes" ; then
8192   # We can hardcode non-existant directories.
8193   if test "$hardcode_direct" != no &&
8194      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8195      # have to relink, otherwise we might link with an installed library
8196      # when we should be linking with a yet-to-be-installed one
8197      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8198      test "$hardcode_minus_L" != no; then
8199     # Linking always hardcodes the temporary library directory.
8200     hardcode_action=relink
8201   else
8202     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8203     hardcode_action=immediate
8204   fi
8205 else
8206   # We cannot hardcode anything, or else we can only hardcode existing
8207   # directories.
8208   hardcode_action=unsupported
8209 fi
8210 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8211 echo "${ECHO_T}$hardcode_action" >&6
8213 if test "$hardcode_action" = relink; then
8214   # Fast installation is not supported
8215   enable_fast_install=no
8216 elif test "$shlibpath_overrides_runpath" = yes ||
8217      test "$enable_shared" = no; then
8218   # Fast installation is not necessary
8219   enable_fast_install=needless
8220 fi
8222 striplib=
8223 old_striplib=
8224 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8225 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8226 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8227   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8228   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8229   echo "$as_me:$LINENO: result: yes" >&5
8230 echo "${ECHO_T}yes" >&6
8231 else
8232 # FIXME - insert some real tests, host_os isn't really good enough
8233   case $host_os in
8234    darwin*)
8235        if test -n "$STRIP" ; then
8236          striplib="$STRIP -x"
8237          echo "$as_me:$LINENO: result: yes" >&5
8238 echo "${ECHO_T}yes" >&6
8239        else
8240   echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6
8242 fi
8243        ;;
8244    *)
8245   echo "$as_me:$LINENO: result: no" >&5
8246 echo "${ECHO_T}no" >&6
8247     ;;
8248   esac
8249 fi
8251 if test "x$enable_dlopen" != xyes; then
8252   enable_dlopen=unknown
8253   enable_dlopen_self=unknown
8254   enable_dlopen_self_static=unknown
8255 else
8256   lt_cv_dlopen=no
8257   lt_cv_dlopen_libs=
8259   case $host_os in
8260   beos*)
8261     lt_cv_dlopen="load_add_on"
8262     lt_cv_dlopen_libs=
8263     lt_cv_dlopen_self=yes
8264     ;;
8266   mingw* | pw32*)
8267     lt_cv_dlopen="LoadLibrary"
8268     lt_cv_dlopen_libs=
8269    ;;
8271   cygwin*)
8272     lt_cv_dlopen="dlopen"
8273     lt_cv_dlopen_libs=
8274    ;;
8276   darwin*)
8277   # if libdl is installed we need to link against it
8278     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8279 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8280 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8281   echo $ECHO_N "(cached) $ECHO_C" >&6
8282 else
8283   ac_check_lib_save_LIBS=$LIBS
8284 LIBS="-ldl  $LIBS"
8285 cat >conftest.$ac_ext <<_ACEOF
8286 /* confdefs.h.  */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h.  */
8292 /* Override any gcc2 internal prototype to avoid an error.  */
8293 #ifdef __cplusplus
8294 extern "C"
8295 #endif
8296 /* We use char because int might match the return type of a gcc2
8297    builtin and then its argument prototype would still apply.  */
8298 char dlopen ();
8299 int
8300 main ()
8302 dlopen ();
8303   ;
8304   return 0;
8306 _ACEOF
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309   (eval $ac_link) 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } &&
8316          { ac_try='test -z "$ac_c_werror_flag"
8317                          || test ! -s conftest.err'
8318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319   (eval $ac_try) 2>&5
8320   ac_status=$?
8321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322   (exit $ac_status); }; } &&
8323          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8329   ac_cv_lib_dl_dlopen=yes
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_cv_lib_dl_dlopen=no
8335 fi
8336 rm -f conftest.err conftest.$ac_objext \
8337       conftest$ac_exeext conftest.$ac_ext
8338 LIBS=$ac_check_lib_save_LIBS
8339 fi
8340 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8341 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8342 if test $ac_cv_lib_dl_dlopen = yes; then
8343   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8344 else
8346     lt_cv_dlopen="dyld"
8347     lt_cv_dlopen_libs=
8348     lt_cv_dlopen_self=yes
8350 fi
8352    ;;
8354   *)
8355     echo "$as_me:$LINENO: checking for shl_load" >&5
8356 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8357 if test "${ac_cv_func_shl_load+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h.  */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h.  */
8366 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8368 #define shl_load innocuous_shl_load
8370 /* System header to define __stub macros and hopefully few prototypes,
8371     which can conflict with char shl_load (); below.
8372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8373     <limits.h> exists even on freestanding compilers.  */
8375 #ifdef __STDC__
8376 # include <limits.h>
8377 #else
8378 # include <assert.h>
8379 #endif
8381 #undef shl_load
8383 /* Override any gcc2 internal prototype to avoid an error.  */
8384 #ifdef __cplusplus
8385 extern "C"
8387 #endif
8388 /* We use char because int might match the return type of a gcc2
8389    builtin and then its argument prototype would still apply.  */
8390 char shl_load ();
8391 /* The GNU C library defines this for functions which it implements
8392     to always fail with ENOSYS.  Some functions are actually named
8393     something starting with __ and the normal name is an alias.  */
8394 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8395 choke me
8396 #else
8397 char (*f) () = shl_load;
8398 #endif
8399 #ifdef __cplusplus
8401 #endif
8403 int
8404 main ()
8406 return f != shl_load;
8407   ;
8408   return 0;
8410 _ACEOF
8411 rm -f conftest.$ac_objext conftest$ac_exeext
8412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8413   (eval $ac_link) 2>conftest.er1
8414   ac_status=$?
8415   grep -v '^ *+' conftest.er1 >conftest.err
8416   rm -f conftest.er1
8417   cat conftest.err >&5
8418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419   (exit $ac_status); } &&
8420          { ac_try='test -z "$ac_c_werror_flag"
8421                          || test ! -s conftest.err'
8422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8423   (eval $ac_try) 2>&5
8424   ac_status=$?
8425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); }; } &&
8427          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8433   ac_cv_func_shl_load=yes
8434 else
8435   echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 ac_cv_func_shl_load=no
8439 fi
8440 rm -f conftest.err conftest.$ac_objext \
8441       conftest$ac_exeext conftest.$ac_ext
8442 fi
8443 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8445 if test $ac_cv_func_shl_load = yes; then
8446   lt_cv_dlopen="shl_load"
8447 else
8448   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8449 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8450 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8451   echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453   ac_check_lib_save_LIBS=$LIBS
8454 LIBS="-ldld  $LIBS"
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8462 /* Override any gcc2 internal prototype to avoid an error.  */
8463 #ifdef __cplusplus
8464 extern "C"
8465 #endif
8466 /* We use char because int might match the return type of a gcc2
8467    builtin and then its argument prototype would still apply.  */
8468 char shl_load ();
8469 int
8470 main ()
8472 shl_load ();
8473   ;
8474   return 0;
8476 _ACEOF
8477 rm -f conftest.$ac_objext conftest$ac_exeext
8478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8479   (eval $ac_link) 2>conftest.er1
8480   ac_status=$?
8481   grep -v '^ *+' conftest.er1 >conftest.err
8482   rm -f conftest.er1
8483   cat conftest.err >&5
8484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485   (exit $ac_status); } &&
8486          { ac_try='test -z "$ac_c_werror_flag"
8487                          || test ! -s conftest.err'
8488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8489   (eval $ac_try) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); }; } &&
8493          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8499   ac_cv_lib_dld_shl_load=yes
8500 else
8501   echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8504 ac_cv_lib_dld_shl_load=no
8505 fi
8506 rm -f conftest.err conftest.$ac_objext \
8507       conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8511 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8512 if test $ac_cv_lib_dld_shl_load = yes; then
8513   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8514 else
8515   echo "$as_me:$LINENO: checking for dlopen" >&5
8516 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8517 if test "${ac_cv_func_dlopen+set}" = set; then
8518   echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520   cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8528 #define dlopen innocuous_dlopen
8530 /* System header to define __stub macros and hopefully few prototypes,
8531     which can conflict with char dlopen (); below.
8532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8533     <limits.h> exists even on freestanding compilers.  */
8535 #ifdef __STDC__
8536 # include <limits.h>
8537 #else
8538 # include <assert.h>
8539 #endif
8541 #undef dlopen
8543 /* Override any gcc2 internal prototype to avoid an error.  */
8544 #ifdef __cplusplus
8545 extern "C"
8547 #endif
8548 /* We use char because int might match the return type of a gcc2
8549    builtin and then its argument prototype would still apply.  */
8550 char dlopen ();
8551 /* The GNU C library defines this for functions which it implements
8552     to always fail with ENOSYS.  Some functions are actually named
8553     something starting with __ and the normal name is an alias.  */
8554 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8555 choke me
8556 #else
8557 char (*f) () = dlopen;
8558 #endif
8559 #ifdef __cplusplus
8561 #endif
8563 int
8564 main ()
8566 return f != dlopen;
8567   ;
8568   return 0;
8570 _ACEOF
8571 rm -f conftest.$ac_objext conftest$ac_exeext
8572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573   (eval $ac_link) 2>conftest.er1
8574   ac_status=$?
8575   grep -v '^ *+' conftest.er1 >conftest.err
8576   rm -f conftest.er1
8577   cat conftest.err >&5
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); } &&
8580          { ac_try='test -z "$ac_c_werror_flag"
8581                          || test ! -s conftest.err'
8582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583   (eval $ac_try) 2>&5
8584   ac_status=$?
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); }; } &&
8587          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8593   ac_cv_func_dlopen=yes
8594 else
8595   echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 ac_cv_func_dlopen=no
8599 fi
8600 rm -f conftest.err conftest.$ac_objext \
8601       conftest$ac_exeext conftest.$ac_ext
8602 fi
8603 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8604 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8605 if test $ac_cv_func_dlopen = yes; then
8606   lt_cv_dlopen="dlopen"
8607 else
8608   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8609 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8610 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8611   echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613   ac_check_lib_save_LIBS=$LIBS
8614 LIBS="-ldl  $LIBS"
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h.  */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h.  */
8622 /* Override any gcc2 internal prototype to avoid an error.  */
8623 #ifdef __cplusplus
8624 extern "C"
8625 #endif
8626 /* We use char because int might match the return type of a gcc2
8627    builtin and then its argument prototype would still apply.  */
8628 char dlopen ();
8629 int
8630 main ()
8632 dlopen ();
8633   ;
8634   return 0;
8636 _ACEOF
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8639   (eval $ac_link) 2>conftest.er1
8640   ac_status=$?
8641   grep -v '^ *+' conftest.er1 >conftest.err
8642   rm -f conftest.er1
8643   cat conftest.err >&5
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); } &&
8646          { ac_try='test -z "$ac_c_werror_flag"
8647                          || test ! -s conftest.err'
8648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649   (eval $ac_try) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; } &&
8653          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8659   ac_cv_lib_dl_dlopen=yes
8660 else
8661   echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8664 ac_cv_lib_dl_dlopen=no
8665 fi
8666 rm -f conftest.err conftest.$ac_objext \
8667       conftest$ac_exeext conftest.$ac_ext
8668 LIBS=$ac_check_lib_save_LIBS
8669 fi
8670 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8671 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8672 if test $ac_cv_lib_dl_dlopen = yes; then
8673   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8674 else
8675   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8676 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8677 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-lsvld  $LIBS"
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h.  */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h.  */
8689 /* Override any gcc2 internal prototype to avoid an error.  */
8690 #ifdef __cplusplus
8691 extern "C"
8692 #endif
8693 /* We use char because int might match the return type of a gcc2
8694    builtin and then its argument prototype would still apply.  */
8695 char dlopen ();
8696 int
8697 main ()
8699 dlopen ();
8700   ;
8701   return 0;
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706   (eval $ac_link) 2>conftest.er1
8707   ac_status=$?
8708   grep -v '^ *+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -z "$ac_c_werror_flag"
8714                          || test ! -s conftest.err'
8715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8716   (eval $ac_try) 2>&5
8717   ac_status=$?
8718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); }; } &&
8720          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8726   ac_cv_lib_svld_dlopen=yes
8727 else
8728   echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8731 ac_cv_lib_svld_dlopen=no
8732 fi
8733 rm -f conftest.err conftest.$ac_objext \
8734       conftest$ac_exeext conftest.$ac_ext
8735 LIBS=$ac_check_lib_save_LIBS
8736 fi
8737 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8738 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8739 if test $ac_cv_lib_svld_dlopen = yes; then
8740   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8741 else
8742   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8743 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8744 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747   ac_check_lib_save_LIBS=$LIBS
8748 LIBS="-ldld  $LIBS"
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h.  */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h.  */
8756 /* Override any gcc2 internal prototype to avoid an error.  */
8757 #ifdef __cplusplus
8758 extern "C"
8759 #endif
8760 /* We use char because int might match the return type of a gcc2
8761    builtin and then its argument prototype would still apply.  */
8762 char dld_link ();
8763 int
8764 main ()
8766 dld_link ();
8767   ;
8768   return 0;
8770 _ACEOF
8771 rm -f conftest.$ac_objext conftest$ac_exeext
8772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8773   (eval $ac_link) 2>conftest.er1
8774   ac_status=$?
8775   grep -v '^ *+' conftest.er1 >conftest.err
8776   rm -f conftest.er1
8777   cat conftest.err >&5
8778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779   (exit $ac_status); } &&
8780          { ac_try='test -z "$ac_c_werror_flag"
8781                          || test ! -s conftest.err'
8782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8783   (eval $ac_try) 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; } &&
8787          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8793   ac_cv_lib_dld_dld_link=yes
8794 else
8795   echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 ac_cv_lib_dld_dld_link=no
8799 fi
8800 rm -f conftest.err conftest.$ac_objext \
8801       conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8803 fi
8804 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8805 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8806 if test $ac_cv_lib_dld_dld_link = yes; then
8807   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8808 fi
8811 fi
8814 fi
8817 fi
8820 fi
8823 fi
8825     ;;
8826   esac
8828   if test "x$lt_cv_dlopen" != xno; then
8829     enable_dlopen=yes
8830   else
8831     enable_dlopen=no
8832   fi
8834   case $lt_cv_dlopen in
8835   dlopen)
8836     save_CPPFLAGS="$CPPFLAGS"
8837     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8839     save_LDFLAGS="$LDFLAGS"
8840     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8842     save_LIBS="$LIBS"
8843     LIBS="$lt_cv_dlopen_libs $LIBS"
8845     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8846 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8847 if test "${lt_cv_dlopen_self+set}" = set; then
8848   echo $ECHO_N "(cached) $ECHO_C" >&6
8849 else
8850           if test "$cross_compiling" = yes; then :
8851   lt_cv_dlopen_self=cross
8852 else
8853   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8854   lt_status=$lt_dlunknown
8855   cat > conftest.$ac_ext <<EOF
8856 #line 8856 "configure"
8857 #include "confdefs.h"
8859 #if HAVE_DLFCN_H
8860 #include <dlfcn.h>
8861 #endif
8863 #include <stdio.h>
8865 #ifdef RTLD_GLOBAL
8866 #  define LT_DLGLOBAL           RTLD_GLOBAL
8867 #else
8868 #  ifdef DL_GLOBAL
8869 #    define LT_DLGLOBAL         DL_GLOBAL
8870 #  else
8871 #    define LT_DLGLOBAL         0
8872 #  endif
8873 #endif
8875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8876    find out it does not work in some platform. */
8877 #ifndef LT_DLLAZY_OR_NOW
8878 #  ifdef RTLD_LAZY
8879 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8880 #  else
8881 #    ifdef DL_LAZY
8882 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8883 #    else
8884 #      ifdef RTLD_NOW
8885 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8886 #      else
8887 #        ifdef DL_NOW
8888 #          define LT_DLLAZY_OR_NOW      DL_NOW
8889 #        else
8890 #          define LT_DLLAZY_OR_NOW      0
8891 #        endif
8892 #      endif
8893 #    endif
8894 #  endif
8895 #endif
8897 #ifdef __cplusplus
8898 extern "C" void exit (int);
8899 #endif
8901 void fnord() { int i=42;}
8902 int main ()
8904   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8905   int status = $lt_dlunknown;
8907   if (self)
8908     {
8909       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8910       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8911       /* dlclose (self); */
8912     }
8913   else
8914     puts (dlerror ());
8916     exit (status);
8918 EOF
8919   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8920   (eval $ac_link) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8924     (./conftest; exit; ) >&5 2>/dev/null
8925     lt_status=$?
8926     case x$lt_status in
8927       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8928       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8929       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8930     esac
8931   else :
8932     # compilation failed
8933     lt_cv_dlopen_self=no
8934   fi
8935 fi
8936 rm -fr conftest*
8939 fi
8940 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8941 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8943     if test "x$lt_cv_dlopen_self" = xyes; then
8944       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8945       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8946 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8947 if test "${lt_cv_dlopen_self_static+set}" = set; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950           if test "$cross_compiling" = yes; then :
8951   lt_cv_dlopen_self_static=cross
8952 else
8953   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8954   lt_status=$lt_dlunknown
8955   cat > conftest.$ac_ext <<EOF
8956 #line 8956 "configure"
8957 #include "confdefs.h"
8959 #if HAVE_DLFCN_H
8960 #include <dlfcn.h>
8961 #endif
8963 #include <stdio.h>
8965 #ifdef RTLD_GLOBAL
8966 #  define LT_DLGLOBAL           RTLD_GLOBAL
8967 #else
8968 #  ifdef DL_GLOBAL
8969 #    define LT_DLGLOBAL         DL_GLOBAL
8970 #  else
8971 #    define LT_DLGLOBAL         0
8972 #  endif
8973 #endif
8975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8976    find out it does not work in some platform. */
8977 #ifndef LT_DLLAZY_OR_NOW
8978 #  ifdef RTLD_LAZY
8979 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8980 #  else
8981 #    ifdef DL_LAZY
8982 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8983 #    else
8984 #      ifdef RTLD_NOW
8985 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8986 #      else
8987 #        ifdef DL_NOW
8988 #          define LT_DLLAZY_OR_NOW      DL_NOW
8989 #        else
8990 #          define LT_DLLAZY_OR_NOW      0
8991 #        endif
8992 #      endif
8993 #    endif
8994 #  endif
8995 #endif
8997 #ifdef __cplusplus
8998 extern "C" void exit (int);
8999 #endif
9001 void fnord() { int i=42;}
9002 int main ()
9004   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9005   int status = $lt_dlunknown;
9007   if (self)
9008     {
9009       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9010       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9011       /* dlclose (self); */
9012     }
9013   else
9014     puts (dlerror ());
9016     exit (status);
9018 EOF
9019   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9020   (eval $ac_link) 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9024     (./conftest; exit; ) >&5 2>/dev/null
9025     lt_status=$?
9026     case x$lt_status in
9027       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9028       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9029       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9030     esac
9031   else :
9032     # compilation failed
9033     lt_cv_dlopen_self_static=no
9034   fi
9035 fi
9036 rm -fr conftest*
9039 fi
9040 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9041 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9042     fi
9044     CPPFLAGS="$save_CPPFLAGS"
9045     LDFLAGS="$save_LDFLAGS"
9046     LIBS="$save_LIBS"
9047     ;;
9048   esac
9050   case $lt_cv_dlopen_self in
9051   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9052   *) enable_dlopen_self=unknown ;;
9053   esac
9055   case $lt_cv_dlopen_self_static in
9056   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9057   *) enable_dlopen_self_static=unknown ;;
9058   esac
9059 fi
9062 # Report which library types will actually be built
9063 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9064 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9065 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9066 echo "${ECHO_T}$can_build_shared" >&6
9068 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9069 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9070 test "$can_build_shared" = "no" && enable_shared=no
9072 # On AIX, shared libraries and static libraries use the same namespace, and
9073 # are all built from PIC.
9074 case $host_os in
9075 aix3*)
9076   test "$enable_shared" = yes && enable_static=no
9077   if test -n "$RANLIB"; then
9078     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9079     postinstall_cmds='$RANLIB $lib'
9080   fi
9081   ;;
9083 aix4* | aix5*)
9084   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9085     test "$enable_shared" = yes && enable_static=no
9086   fi
9087     ;;
9088 esac
9089 echo "$as_me:$LINENO: result: $enable_shared" >&5
9090 echo "${ECHO_T}$enable_shared" >&6
9092 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9093 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9094 # Make sure either enable_shared or enable_static is yes.
9095 test "$enable_shared" = yes || enable_static=yes
9096 echo "$as_me:$LINENO: result: $enable_static" >&5
9097 echo "${ECHO_T}$enable_static" >&6
9099 # The else clause should only fire when bootstrapping the
9100 # libtool distribution, otherwise you forgot to ship ltmain.sh
9101 # with your package, and you will get complaints that there are
9102 # no rules to generate ltmain.sh.
9103 if test -f "$ltmain"; then
9104   # See if we are running on zsh, and set the options which allow our commands through
9105   # without removal of \ escapes.
9106   if test -n "${ZSH_VERSION+set}" ; then
9107     setopt NO_GLOB_SUBST
9108   fi
9109   # Now quote all the things that may contain metacharacters while being
9110   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9111   # variables and quote the copies for generation of the libtool script.
9112   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9113     SED SHELL STRIP \
9114     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9115     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9116     deplibs_check_method reload_flag reload_cmds need_locks \
9117     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9118     lt_cv_sys_global_symbol_to_c_name_address \
9119     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9120     old_postinstall_cmds old_postuninstall_cmds \
9121     compiler \
9122     CC \
9123     LD \
9124     lt_prog_compiler_wl \
9125     lt_prog_compiler_pic \
9126     lt_prog_compiler_static \
9127     lt_prog_compiler_no_builtin_flag \
9128     export_dynamic_flag_spec \
9129     thread_safe_flag_spec \
9130     whole_archive_flag_spec \
9131     enable_shared_with_static_runtimes \
9132     old_archive_cmds \
9133     old_archive_from_new_cmds \
9134     predep_objects \
9135     postdep_objects \
9136     predeps \
9137     postdeps \
9138     compiler_lib_search_path \
9139     archive_cmds \
9140     archive_expsym_cmds \
9141     postinstall_cmds \
9142     postuninstall_cmds \
9143     old_archive_from_expsyms_cmds \
9144     allow_undefined_flag \
9145     no_undefined_flag \
9146     export_symbols_cmds \
9147     hardcode_libdir_flag_spec \
9148     hardcode_libdir_flag_spec_ld \
9149     hardcode_libdir_separator \
9150     hardcode_automatic \
9151     module_cmds \
9152     module_expsym_cmds \
9153     lt_cv_prog_compiler_c_o \
9154     exclude_expsyms \
9155     include_expsyms; do
9157     case $var in
9158     old_archive_cmds | \
9159     old_archive_from_new_cmds | \
9160     archive_cmds | \
9161     archive_expsym_cmds | \
9162     module_cmds | \
9163     module_expsym_cmds | \
9164     old_archive_from_expsyms_cmds | \
9165     export_symbols_cmds | \
9166     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9167     postinstall_cmds | postuninstall_cmds | \
9168     old_postinstall_cmds | old_postuninstall_cmds | \
9169     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9170       # Double-quote double-evaled strings.
9171       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9172       ;;
9173     *)
9174       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9175       ;;
9176     esac
9177   done
9179   case $lt_echo in
9180   *'\$0 --fallback-echo"')
9181     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9182     ;;
9183   esac
9185 cfgfile="${ofile}T"
9186   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9187   $rm -f "$cfgfile"
9188   { echo "$as_me:$LINENO: creating $ofile" >&5
9189 echo "$as_me: creating $ofile" >&6;}
9191   cat <<__EOF__ >> "$cfgfile"
9192 #! $SHELL
9194 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9195 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9196 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9198 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9199 # Free Software Foundation, Inc.
9201 # This file is part of GNU Libtool:
9202 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9204 # This program is free software; you can redistribute it and/or modify
9205 # it under the terms of the GNU General Public License as published by
9206 # the Free Software Foundation; either version 2 of the License, or
9207 # (at your option) any later version.
9209 # This program is distributed in the hope that it will be useful, but
9210 # WITHOUT ANY WARRANTY; without even the implied warranty of
9211 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9212 # General Public License for more details.
9214 # You should have received a copy of the GNU General Public License
9215 # along with this program; if not, write to the Free Software
9216 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9218 # As a special exception to the GNU General Public License, if you
9219 # distribute this file as part of a program that contains a
9220 # configuration script generated by Autoconf, you may include it under
9221 # the same distribution terms that you use for the rest of that program.
9223 # A sed program that does not truncate output.
9224 SED=$lt_SED
9226 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9227 Xsed="$SED -e 1s/^X//"
9229 # The HP-UX ksh and POSIX shell print the target directory to stdout
9230 # if CDPATH is set.
9231 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9233 # The names of the tagged configurations supported by this script.
9234 available_tags=
9236 # ### BEGIN LIBTOOL CONFIG
9238 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9240 # Shell to use when invoking shell scripts.
9241 SHELL=$lt_SHELL
9243 # Whether or not to build shared libraries.
9244 build_libtool_libs=$enable_shared
9246 # Whether or not to build static libraries.
9247 build_old_libs=$enable_static
9249 # Whether or not to add -lc for building shared libraries.
9250 build_libtool_need_lc=$archive_cmds_need_lc
9252 # Whether or not to disallow shared libs when runtime libs are static
9253 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9255 # Whether or not to optimize for fast installation.
9256 fast_install=$enable_fast_install
9258 # The host system.
9259 host_alias=$host_alias
9260 host=$host
9261 host_os=$host_os
9263 # The build system.
9264 build_alias=$build_alias
9265 build=$build
9266 build_os=$build_os
9268 # An echo program that does not interpret backslashes.
9269 echo=$lt_echo
9271 # The archiver.
9272 AR=$lt_AR
9273 AR_FLAGS=$lt_AR_FLAGS
9275 # A C compiler.
9276 LTCC=$lt_LTCC
9278 # LTCC compiler flags.
9279 LTCFLAGS=$lt_LTCFLAGS
9281 # A language-specific compiler.
9282 CC=$lt_compiler
9284 # Is the compiler the GNU C compiler?
9285 with_gcc=$GCC
9287 # An ERE matcher.
9288 EGREP=$lt_EGREP
9290 # The linker used to build libraries.
9291 LD=$lt_LD
9293 # Whether we need hard or soft links.
9294 LN_S=$lt_LN_S
9296 # A BSD-compatible nm program.
9297 NM=$lt_NM
9299 # A symbol stripping program
9300 STRIP=$lt_STRIP
9302 # Used to examine libraries when file_magic_cmd begins "file"
9303 MAGIC_CMD=$MAGIC_CMD
9305 # Used on cygwin: DLL creation program.
9306 DLLTOOL="$DLLTOOL"
9308 # Used on cygwin: object dumper.
9309 OBJDUMP="$OBJDUMP"
9311 # Used on cygwin: assembler.
9312 AS="$AS"
9314 # The name of the directory that contains temporary libtool files.
9315 objdir=$objdir
9317 # How to create reloadable object files.
9318 reload_flag=$lt_reload_flag
9319 reload_cmds=$lt_reload_cmds
9321 # How to pass a linker flag through the compiler.
9322 wl=$lt_lt_prog_compiler_wl
9324 # Object file suffix (normally "o").
9325 objext="$ac_objext"
9327 # Old archive suffix (normally "a").
9328 libext="$libext"
9330 # Shared library suffix (normally ".so").
9331 shrext_cmds='$shrext_cmds'
9333 # Executable file suffix (normally "").
9334 exeext="$exeext"
9336 # Additional compiler flags for building library objects.
9337 pic_flag=$lt_lt_prog_compiler_pic
9338 pic_mode=$pic_mode
9340 # What is the maximum length of a command?
9341 max_cmd_len=$lt_cv_sys_max_cmd_len
9343 # Does compiler simultaneously support -c and -o options?
9344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9346 # Must we lock files when doing compilation?
9347 need_locks=$lt_need_locks
9349 # Do we need the lib prefix for modules?
9350 need_lib_prefix=$need_lib_prefix
9352 # Do we need a version for libraries?
9353 need_version=$need_version
9355 # Whether dlopen is supported.
9356 dlopen_support=$enable_dlopen
9358 # Whether dlopen of programs is supported.
9359 dlopen_self=$enable_dlopen_self
9361 # Whether dlopen of statically linked programs is supported.
9362 dlopen_self_static=$enable_dlopen_self_static
9364 # Compiler flag to prevent dynamic linking.
9365 link_static_flag=$lt_lt_prog_compiler_static
9367 # Compiler flag to turn off builtin functions.
9368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9370 # Compiler flag to allow reflexive dlopens.
9371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9373 # Compiler flag to generate shared objects directly from archives.
9374 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9376 # Compiler flag to generate thread-safe objects.
9377 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9379 # Library versioning type.
9380 version_type=$version_type
9382 # Format of library name prefix.
9383 libname_spec=$lt_libname_spec
9385 # List of archive names.  First name is the real one, the rest are links.
9386 # The last name is the one that the linker finds with -lNAME.
9387 library_names_spec=$lt_library_names_spec
9389 # The coded name of the library, if different from the real name.
9390 soname_spec=$lt_soname_spec
9392 # Commands used to build and install an old-style archive.
9393 RANLIB=$lt_RANLIB
9394 old_archive_cmds=$lt_old_archive_cmds
9395 old_postinstall_cmds=$lt_old_postinstall_cmds
9396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9398 # Create an old-style archive from a shared archive.
9399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9401 # Create a temporary old-style archive to link instead of a shared archive.
9402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9404 # Commands used to build and install a shared archive.
9405 archive_cmds=$lt_archive_cmds
9406 archive_expsym_cmds=$lt_archive_expsym_cmds
9407 postinstall_cmds=$lt_postinstall_cmds
9408 postuninstall_cmds=$lt_postuninstall_cmds
9410 # Commands used to build a loadable module (assumed same as above if empty)
9411 module_cmds=$lt_module_cmds
9412 module_expsym_cmds=$lt_module_expsym_cmds
9414 # Commands to strip libraries.
9415 old_striplib=$lt_old_striplib
9416 striplib=$lt_striplib
9418 # Dependencies to place before the objects being linked to create a
9419 # shared library.
9420 predep_objects=$lt_predep_objects
9422 # Dependencies to place after the objects being linked to create a
9423 # shared library.
9424 postdep_objects=$lt_postdep_objects
9426 # Dependencies to place before the objects being linked to create a
9427 # shared library.
9428 predeps=$lt_predeps
9430 # Dependencies to place after the objects being linked to create a
9431 # shared library.
9432 postdeps=$lt_postdeps
9434 # The library search path used internally by the compiler when linking
9435 # a shared library.
9436 compiler_lib_search_path=$lt_compiler_lib_search_path
9438 # Method to check whether dependent libraries are shared objects.
9439 deplibs_check_method=$lt_deplibs_check_method
9441 # Command to use when deplibs_check_method == file_magic.
9442 file_magic_cmd=$lt_file_magic_cmd
9444 # Flag that allows shared libraries with undefined symbols to be built.
9445 allow_undefined_flag=$lt_allow_undefined_flag
9447 # Flag that forces no undefined symbols.
9448 no_undefined_flag=$lt_no_undefined_flag
9450 # Commands used to finish a libtool library installation in a directory.
9451 finish_cmds=$lt_finish_cmds
9453 # Same as above, but a single script fragment to be evaled but not shown.
9454 finish_eval=$lt_finish_eval
9456 # Take the output of nm and produce a listing of raw symbols and C names.
9457 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9459 # Transform the output of nm in a proper C declaration
9460 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9462 # Transform the output of nm in a C name address pair
9463 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9465 # This is the shared library runtime path variable.
9466 runpath_var=$runpath_var
9468 # This is the shared library path variable.
9469 shlibpath_var=$shlibpath_var
9471 # Is shlibpath searched before the hard-coded library search path?
9472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9474 # How to hardcode a shared library path into an executable.
9475 hardcode_action=$hardcode_action
9477 # Whether we should hardcode library paths into libraries.
9478 hardcode_into_libs=$hardcode_into_libs
9480 # Flag to hardcode \$libdir into a binary during linking.
9481 # This must work even if \$libdir does not exist.
9482 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9484 # If ld is used when linking, flag to hardcode \$libdir into
9485 # a binary during linking. This must work even if \$libdir does
9486 # not exist.
9487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9489 # Whether we need a single -rpath flag with a separated argument.
9490 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9492 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9493 # resulting binary.
9494 hardcode_direct=$hardcode_direct
9496 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9497 # resulting binary.
9498 hardcode_minus_L=$hardcode_minus_L
9500 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9501 # the resulting binary.
9502 hardcode_shlibpath_var=$hardcode_shlibpath_var
9504 # Set to yes if building a shared library automatically hardcodes DIR into the library
9505 # and all subsequent libraries and executables linked against it.
9506 hardcode_automatic=$hardcode_automatic
9508 # Variables whose values should be saved in libtool wrapper scripts and
9509 # restored at relink time.
9510 variables_saved_for_relink="$variables_saved_for_relink"
9512 # Whether libtool must link a program against all its dependency libraries.
9513 link_all_deplibs=$link_all_deplibs
9515 # Compile-time system search path for libraries
9516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9518 # Run-time system search path for libraries
9519 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9521 # Fix the shell variable \$srcfile for the compiler.
9522 fix_srcfile_path="$fix_srcfile_path"
9524 # Set to yes if exported symbols are required.
9525 always_export_symbols=$always_export_symbols
9527 # The commands to list exported symbols.
9528 export_symbols_cmds=$lt_export_symbols_cmds
9530 # The commands to extract the exported symbol list from a shared archive.
9531 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9533 # Symbols that should not be listed in the preloaded symbols.
9534 exclude_expsyms=$lt_exclude_expsyms
9536 # Symbols that must always be exported.
9537 include_expsyms=$lt_include_expsyms
9539 # ### END LIBTOOL CONFIG
9541 __EOF__
9544   case $host_os in
9545   aix3*)
9546     cat <<\EOF >> "$cfgfile"
9548 # AIX sometimes has problems with the GCC collect2 program.  For some
9549 # reason, if we set the COLLECT_NAMES environment variable, the problems
9550 # vanish in a puff of smoke.
9551 if test "X${COLLECT_NAMES+set}" != Xset; then
9552   COLLECT_NAMES=
9553   export COLLECT_NAMES
9554 fi
9555 EOF
9556     ;;
9557   esac
9559   # We use sed instead of cat because bash on DJGPP gets confused if
9560   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9561   # text mode, it properly converts lines to CR/LF.  This bash problem
9562   # is reportedly fixed, but why not run on old versions too?
9563   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9565   mv -f "$cfgfile" "$ofile" || \
9566     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9567   chmod +x "$ofile"
9569 else
9570   # If there is no Makefile yet, we rely on a make rule to execute
9571   # `config.status --recheck' to rerun these tests and create the
9572   # libtool script then.
9573   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9574   if test -f "$ltmain_in"; then
9575     test -f Makefile && make "$ltmain"
9576   fi
9577 fi
9580 ac_ext=c
9581 ac_cpp='$CPP $CPPFLAGS'
9582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9586 CC="$lt_save_CC"
9589 # Check whether --with-tags or --without-tags was given.
9590 if test "${with_tags+set}" = set; then
9591   withval="$with_tags"
9592   tagnames="$withval"
9593 fi;
9595 if test -f "$ltmain" && test -n "$tagnames"; then
9596   if test ! -f "${ofile}"; then
9597     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9598 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9599   fi
9601   if test -z "$LTCC"; then
9602     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9603     if test -z "$LTCC"; then
9604       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9605 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9606     else
9607       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9608 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9609     fi
9610   fi
9611   if test -z "$LTCFLAGS"; then
9612     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9613   fi
9615   # Extract list of available tagged configurations in $ofile.
9616   # Note that this assumes the entire list is on one line.
9617   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9619   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9620   for tagname in $tagnames; do
9621     IFS="$lt_save_ifs"
9622     # Check whether tagname contains only valid characters
9623     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9624     "") ;;
9625     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9626 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9627    { (exit 1); exit 1; }; }
9628         ;;
9629     esac
9631     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9632     then
9633       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9634 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9635    { (exit 1); exit 1; }; }
9636     fi
9638     # Update the list of available tags.
9639     if test -n "$tagname"; then
9640       echo appending configuration tag \"$tagname\" to $ofile
9642       case $tagname in
9643       CXX)
9644         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9645             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9646             (test "X$CXX" != "Xg++"))) ; then
9647           ac_ext=cc
9648 ac_cpp='$CXXCPP $CPPFLAGS'
9649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9656 archive_cmds_need_lc_CXX=no
9657 allow_undefined_flag_CXX=
9658 always_export_symbols_CXX=no
9659 archive_expsym_cmds_CXX=
9660 export_dynamic_flag_spec_CXX=
9661 hardcode_direct_CXX=no
9662 hardcode_libdir_flag_spec_CXX=
9663 hardcode_libdir_flag_spec_ld_CXX=
9664 hardcode_libdir_separator_CXX=
9665 hardcode_minus_L_CXX=no
9666 hardcode_shlibpath_var_CXX=unsupported
9667 hardcode_automatic_CXX=no
9668 module_cmds_CXX=
9669 module_expsym_cmds_CXX=
9670 link_all_deplibs_CXX=unknown
9671 old_archive_cmds_CXX=$old_archive_cmds
9672 no_undefined_flag_CXX=
9673 whole_archive_flag_spec_CXX=
9674 enable_shared_with_static_runtimes_CXX=no
9676 # Dependencies to place before and after the object being linked:
9677 predep_objects_CXX=
9678 postdep_objects_CXX=
9679 predeps_CXX=
9680 postdeps_CXX=
9681 compiler_lib_search_path_CXX=
9683 # Source file extension for C++ test sources.
9684 ac_ext=cpp
9686 # Object file extension for compiled C++ test sources.
9687 objext=o
9688 objext_CXX=$objext
9690 # Code to be used in simple compile tests
9691 lt_simple_compile_test_code="int some_variable = 0;\n"
9693 # Code to be used in simple link tests
9694 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9698 # If no C compiler was specified, use CC.
9699 LTCC=${LTCC-"$CC"}
9701 # If no C compiler flags were specified, use CFLAGS.
9702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9704 # Allow CC to be a program name with arguments.
9705 compiler=$CC
9708 # save warnings/boilerplate of simple test code
9709 ac_outfile=conftest.$ac_objext
9710 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9712 _lt_compiler_boilerplate=`cat conftest.err`
9713 $rm conftest*
9715 ac_outfile=conftest.$ac_objext
9716 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9718 _lt_linker_boilerplate=`cat conftest.err`
9719 $rm conftest*
9722 # Allow CC to be a program name with arguments.
9723 lt_save_CC=$CC
9724 lt_save_LD=$LD
9725 lt_save_GCC=$GCC
9726 GCC=$GXX
9727 lt_save_with_gnu_ld=$with_gnu_ld
9728 lt_save_path_LD=$lt_cv_path_LD
9729 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9730   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9731 else
9732   $as_unset lt_cv_prog_gnu_ld
9733 fi
9734 if test -n "${lt_cv_path_LDCXX+set}"; then
9735   lt_cv_path_LD=$lt_cv_path_LDCXX
9736 else
9737   $as_unset lt_cv_path_LD
9738 fi
9739 test -z "${LDCXX+set}" || LD=$LDCXX
9740 CC=${CXX-"c++"}
9741 compiler=$CC
9742 compiler_CXX=$CC
9743 for cc_temp in $compiler""; do
9744   case $cc_temp in
9745     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9746     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9747     \-*) ;;
9748     *) break;;
9749   esac
9750 done
9751 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9754 # We don't want -fno-exception wen compiling C++ code, so set the
9755 # no_builtin_flag separately
9756 if test "$GXX" = yes; then
9757   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9758 else
9759   lt_prog_compiler_no_builtin_flag_CXX=
9760 fi
9762 if test "$GXX" = yes; then
9763   # Set up default GNU C++ configuration
9766 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9767 if test "${with_gnu_ld+set}" = set; then
9768   withval="$with_gnu_ld"
9769   test "$withval" = no || with_gnu_ld=yes
9770 else
9771   with_gnu_ld=no
9772 fi;
9773 ac_prog=ld
9774 if test "$GCC" = yes; then
9775   # Check if gcc -print-prog-name=ld gives a path.
9776   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9777 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9778   case $host in
9779   *-*-mingw*)
9780     # gcc leaves a trailing carriage return which upsets mingw
9781     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9782   *)
9783     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9784   esac
9785   case $ac_prog in
9786     # Accept absolute paths.
9787     [\\/]* | ?:[\\/]*)
9788       re_direlt='/[^/][^/]*/\.\./'
9789       # Canonicalize the pathname of ld
9790       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9791       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9792         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9793       done
9794       test -z "$LD" && LD="$ac_prog"
9795       ;;
9796   "")
9797     # If it fails, then pretend we aren't using GCC.
9798     ac_prog=ld
9799     ;;
9800   *)
9801     # If it is relative, then search for the first ld in PATH.
9802     with_gnu_ld=unknown
9803     ;;
9804   esac
9805 elif test "$with_gnu_ld" = yes; then
9806   echo "$as_me:$LINENO: checking for GNU ld" >&5
9807 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9808 else
9809   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9810 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9811 fi
9812 if test "${lt_cv_path_LD+set}" = set; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815   if test -z "$LD"; then
9816   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9817   for ac_dir in $PATH; do
9818     IFS="$lt_save_ifs"
9819     test -z "$ac_dir" && ac_dir=.
9820     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9821       lt_cv_path_LD="$ac_dir/$ac_prog"
9822       # Check to see if the program is GNU ld.  I'd rather use --version,
9823       # but apparently some variants of GNU ld only accept -v.
9824       # Break only if it was the GNU/non-GNU ld that we prefer.
9825       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9826       *GNU* | *'with BFD'*)
9827         test "$with_gnu_ld" != no && break
9828         ;;
9829       *)
9830         test "$with_gnu_ld" != yes && break
9831         ;;
9832       esac
9833     fi
9834   done
9835   IFS="$lt_save_ifs"
9836 else
9837   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9838 fi
9839 fi
9841 LD="$lt_cv_path_LD"
9842 if test -n "$LD"; then
9843   echo "$as_me:$LINENO: result: $LD" >&5
9844 echo "${ECHO_T}$LD" >&6
9845 else
9846   echo "$as_me:$LINENO: result: no" >&5
9847 echo "${ECHO_T}no" >&6
9848 fi
9849 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9850 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9851    { (exit 1); exit 1; }; }
9852 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9853 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9854 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9855   echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9858 case `$LD -v 2>&1 </dev/null` in
9859 *GNU* | *'with BFD'*)
9860   lt_cv_prog_gnu_ld=yes
9861   ;;
9862 *)
9863   lt_cv_prog_gnu_ld=no
9864   ;;
9865 esac
9866 fi
9867 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9868 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9869 with_gnu_ld=$lt_cv_prog_gnu_ld
9873   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9874   # archiving commands below assume that GNU ld is being used.
9875   if test "$with_gnu_ld" = yes; then
9876     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877     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'
9879     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9880     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9882     # If archive_cmds runs LD, not CC, wlarc should be empty
9883     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9884     #     investigate it a little bit more. (MM)
9885     wlarc='${wl}'
9887     # ancient GNU ld didn't support --whole-archive et. al.
9888     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9889         grep 'no-whole-archive' > /dev/null; then
9890       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9891     else
9892       whole_archive_flag_spec_CXX=
9893     fi
9894   else
9895     with_gnu_ld=no
9896     wlarc=
9898     # A generic and very simple default shared library creation
9899     # command for GNU C++ for the case where it uses the native
9900     # linker, instead of GNU ld.  If possible, this setting should
9901     # overridden to take advantage of the native linker features on
9902     # the platform it is being used on.
9903     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9904   fi
9906   # Commands to make compiler produce verbose output that lists
9907   # what "hidden" libraries, object files and flags are used when
9908   # linking a shared library.
9909   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9911 else
9912   GXX=no
9913   with_gnu_ld=no
9914   wlarc=
9915 fi
9917 # PORTME: fill in a description of your system's C++ link characteristics
9918 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9919 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9920 ld_shlibs_CXX=yes
9921 case $host_os in
9922   aix3*)
9923     # FIXME: insert proper C++ library support
9924     ld_shlibs_CXX=no
9925     ;;
9926   aix4* | aix5*)
9927     if test "$host_cpu" = ia64; then
9928       # On IA64, the linker does run time linking by default, so we don't
9929       # have to do anything special.
9930       aix_use_runtimelinking=no
9931       exp_sym_flag='-Bexport'
9932       no_entry_flag=""
9933     else
9934       aix_use_runtimelinking=no
9936       # Test if we are trying to use run time linking or normal
9937       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9938       # need to do runtime linking.
9939       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9940         for ld_flag in $LDFLAGS; do
9941           case $ld_flag in
9942           *-brtl*)
9943             aix_use_runtimelinking=yes
9944             break
9945             ;;
9946           esac
9947         done
9948         ;;
9949       esac
9951       exp_sym_flag='-bexport'
9952       no_entry_flag='-bnoentry'
9953     fi
9955     # When large executables or shared objects are built, AIX ld can
9956     # have problems creating the table of contents.  If linking a library
9957     # or program results in "error TOC overflow" add -mminimal-toc to
9958     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9959     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9961     archive_cmds_CXX=''
9962     hardcode_direct_CXX=yes
9963     hardcode_libdir_separator_CXX=':'
9964     link_all_deplibs_CXX=yes
9966     if test "$GXX" = yes; then
9967       case $host_os in aix4.[012]|aix4.[012].*)
9968       # We only want to do this on AIX 4.2 and lower, the check
9969       # below for broken collect2 doesn't work under 4.3+
9970         collect2name=`${CC} -print-prog-name=collect2`
9971         if test -f "$collect2name" && \
9972            strings "$collect2name" | grep resolve_lib_name >/dev/null
9973         then
9974           # We have reworked collect2
9975           hardcode_direct_CXX=yes
9976         else
9977           # We have old collect2
9978           hardcode_direct_CXX=unsupported
9979           # It fails to find uninstalled libraries when the uninstalled
9980           # path is not listed in the libpath.  Setting hardcode_minus_L
9981           # to unsupported forces relinking
9982           hardcode_minus_L_CXX=yes
9983           hardcode_libdir_flag_spec_CXX='-L$libdir'
9984           hardcode_libdir_separator_CXX=
9985         fi
9986         ;;
9987       esac
9988       shared_flag='-shared'
9989       if test "$aix_use_runtimelinking" = yes; then
9990         shared_flag="$shared_flag "'${wl}-G'
9991       fi
9992     else
9993       # not using gcc
9994       if test "$host_cpu" = ia64; then
9995         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9996         # chokes on -Wl,-G. The following line is correct:
9997         shared_flag='-G'
9998       else
9999         if test "$aix_use_runtimelinking" = yes; then
10000           shared_flag='${wl}-G'
10001         else
10002           shared_flag='${wl}-bM:SRE'
10003         fi
10004       fi
10005     fi
10007     # It seems that -bexpall does not export symbols beginning with
10008     # underscore (_), so it is better to generate a list of symbols to export.
10009     always_export_symbols_CXX=yes
10010     if test "$aix_use_runtimelinking" = yes; then
10011       # Warning - without using the other runtime loading flags (-brtl),
10012       # -berok will link without error, but may produce a broken library.
10013       allow_undefined_flag_CXX='-berok'
10014       # Determine the default libpath from the value encoded in an empty executable.
10015       cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10022 int
10023 main ()
10026   ;
10027   return 0;
10029 _ACEOF
10030 rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10032   (eval $ac_link) 2>conftest.er1
10033   ac_status=$?
10034   grep -v '^ *+' conftest.er1 >conftest.err
10035   rm -f conftest.er1
10036   cat conftest.err >&5
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); } &&
10039          { ac_try='test -z "$ac_cxx_werror_flag"
10040                          || test ! -s conftest.err'
10041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042   (eval $ac_try) 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; } &&
10046          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10053 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10054 }'`
10055 # Check for a 64-bit object if we didn't find anything.
10056 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; }
10057 }'`; fi
10058 else
10059   echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10063 rm -f conftest.err conftest.$ac_objext \
10064       conftest$ac_exeext conftest.$ac_ext
10065 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10067       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10069       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"
10070      else
10071       if test "$host_cpu" = ia64; then
10072         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10073         allow_undefined_flag_CXX="-z nodefs"
10074         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"
10075       else
10076         # Determine the default libpath from the value encoded in an empty executable.
10077         cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10084 int
10085 main ()
10088   ;
10089   return 0;
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094   (eval $ac_link) 2>conftest.er1
10095   ac_status=$?
10096   grep -v '^ *+' conftest.er1 >conftest.err
10097   rm -f conftest.er1
10098   cat conftest.err >&5
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); } &&
10101          { ac_try='test -z "$ac_cxx_werror_flag"
10102                          || test ! -s conftest.err'
10103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104   (eval $ac_try) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; } &&
10108          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10116 }'`
10117 # Check for a 64-bit object if we didn't find anything.
10118 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; }
10119 }'`; fi
10120 else
10121   echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10125 rm -f conftest.err conftest.$ac_objext \
10126       conftest$ac_exeext conftest.$ac_ext
10127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10129         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10130         # Warning - without using the other run time loading flags,
10131         # -berok will link without error, but may produce a broken library.
10132         no_undefined_flag_CXX=' ${wl}-bernotok'
10133         allow_undefined_flag_CXX=' ${wl}-berok'
10134         # Exported symbols can be pulled into shared objects from archives
10135         whole_archive_flag_spec_CXX='$convenience'
10136         archive_cmds_need_lc_CXX=yes
10137         # This is similar to how AIX traditionally builds its shared libraries.
10138         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'
10139       fi
10140     fi
10141     ;;
10143   beos*)
10144     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10145       allow_undefined_flag_CXX=unsupported
10146       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10147       # support --undefined.  This deserves some investigation.  FIXME
10148       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10149     else
10150       ld_shlibs_CXX=no
10151     fi
10152     ;;
10154   chorus*)
10155     case $cc_basename in
10156       *)
10157         # FIXME: insert proper C++ library support
10158         ld_shlibs_CXX=no
10159         ;;
10160     esac
10161     ;;
10163   cygwin* | mingw* | pw32*)
10164     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10165     # as there is no search path for DLLs.
10166     hardcode_libdir_flag_spec_CXX='-L$libdir'
10167     allow_undefined_flag_CXX=unsupported
10168     always_export_symbols_CXX=no
10169     enable_shared_with_static_runtimes_CXX=yes
10171     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10172       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'
10173       # If the export-symbols file already is a .def file (1st line
10174       # is EXPORTS), use it as is; otherwise, prepend...
10175       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10176         cp $export_symbols $output_objdir/$soname.def;
10177       else
10178         echo EXPORTS > $output_objdir/$soname.def;
10179         cat $export_symbols >> $output_objdir/$soname.def;
10180       fi~
10181       $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'
10182     else
10183       ld_shlibs_CXX=no
10184     fi
10185   ;;
10186       darwin* | rhapsody*)
10187         case $host_os in
10188         rhapsody* | darwin1.[012])
10189          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10190          ;;
10191        *) # Darwin 1.3 on
10192          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10193            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10194          else
10195            case ${MACOSX_DEPLOYMENT_TARGET} in
10196              10.[012])
10197                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10198                ;;
10199              10.*)
10200                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10201                ;;
10202            esac
10203          fi
10204          ;;
10205         esac
10206       archive_cmds_need_lc_CXX=no
10207       hardcode_direct_CXX=no
10208       hardcode_automatic_CXX=yes
10209       hardcode_shlibpath_var_CXX=unsupported
10210       whole_archive_flag_spec_CXX=''
10211       link_all_deplibs_CXX=yes
10213     if test "$GXX" = yes ; then
10214       lt_int_apple_cc_single_mod=no
10215       output_verbose_link_cmd='echo'
10216       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10217        lt_int_apple_cc_single_mod=yes
10218       fi
10219       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10220        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10221       else
10222           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'
10223         fi
10224         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10225         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10226           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10227             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}'
10228           else
10229             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}'
10230           fi
10231             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}'
10232       else
10233       case $cc_basename in
10234         xlc*)
10235          output_verbose_link_cmd='echo'
10236           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'
10237           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10238           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10239           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}'
10240           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}'
10241           ;;
10242        *)
10243          ld_shlibs_CXX=no
10244           ;;
10245       esac
10246       fi
10247         ;;
10249   dgux*)
10250     case $cc_basename in
10251       ec++*)
10252         # FIXME: insert proper C++ library support
10253         ld_shlibs_CXX=no
10254         ;;
10255       ghcx*)
10256         # Green Hills C++ Compiler
10257         # FIXME: insert proper C++ library support
10258         ld_shlibs_CXX=no
10259         ;;
10260       *)
10261         # FIXME: insert proper C++ library support
10262         ld_shlibs_CXX=no
10263         ;;
10264     esac
10265     ;;
10266   freebsd[12]*)
10267     # C++ shared libraries reported to be fairly broken before switch to ELF
10268     ld_shlibs_CXX=no
10269     ;;
10270   freebsd-elf*)
10271     archive_cmds_need_lc_CXX=no
10272     ;;
10273   freebsd* | kfreebsd*-gnu | dragonfly*)
10274     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10275     # conventions
10276     ld_shlibs_CXX=yes
10277     ;;
10278   gnu*)
10279     ;;
10280   hpux9*)
10281     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10282     hardcode_libdir_separator_CXX=:
10283     export_dynamic_flag_spec_CXX='${wl}-E'
10284     hardcode_direct_CXX=yes
10285     hardcode_minus_L_CXX=yes # Not in the search PATH,
10286                                 # but as the default
10287                                 # location of the library.
10289     case $cc_basename in
10290     CC*)
10291       # FIXME: insert proper C++ library support
10292       ld_shlibs_CXX=no
10293       ;;
10294     aCC*)
10295       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'
10296       # Commands to make compiler produce verbose output that lists
10297       # what "hidden" libraries, object files and flags are used when
10298       # linking a shared library.
10299       #
10300       # There doesn't appear to be a way to prevent this compiler from
10301       # explicitly linking system object files so we need to strip them
10302       # from the output so that they don't get included in the library
10303       # dependencies.
10304       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'
10305       ;;
10306     *)
10307       if test "$GXX" = yes; then
10308         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'
10309       else
10310         # FIXME: insert proper C++ library support
10311         ld_shlibs_CXX=no
10312       fi
10313       ;;
10314     esac
10315     ;;
10316   hpux10*|hpux11*)
10317     if test $with_gnu_ld = no; then
10318       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10319       hardcode_libdir_separator_CXX=:
10321       case $host_cpu in
10322       hppa*64*|ia64*)
10323         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10324         ;;
10325       *)
10326         export_dynamic_flag_spec_CXX='${wl}-E'
10327         ;;
10328       esac
10329     fi
10330     case $host_cpu in
10331     hppa*64*|ia64*)
10332       hardcode_direct_CXX=no
10333       hardcode_shlibpath_var_CXX=no
10334       ;;
10335     *)
10336       hardcode_direct_CXX=yes
10337       hardcode_minus_L_CXX=yes # Not in the search PATH,
10338                                               # but as the default
10339                                               # location of the library.
10340       ;;
10341     esac
10343     case $cc_basename in
10344       CC*)
10345         # FIXME: insert proper C++ library support
10346         ld_shlibs_CXX=no
10347         ;;
10348       aCC*)
10349         case $host_cpu in
10350         hppa*64*)
10351           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10352           ;;
10353         ia64*)
10354           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10355           ;;
10356         *)
10357           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10358           ;;
10359         esac
10360         # Commands to make compiler produce verbose output that lists
10361         # what "hidden" libraries, object files and flags are used when
10362         # linking a shared library.
10363         #
10364         # There doesn't appear to be a way to prevent this compiler from
10365         # explicitly linking system object files so we need to strip them
10366         # from the output so that they don't get included in the library
10367         # dependencies.
10368         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'
10369         ;;
10370       *)
10371         if test "$GXX" = yes; then
10372           if test $with_gnu_ld = no; then
10373             case $host_cpu in
10374             hppa*64*)
10375               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10376               ;;
10377             ia64*)
10378               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10379               ;;
10380             *)
10381               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'
10382               ;;
10383             esac
10384           fi
10385         else
10386           # FIXME: insert proper C++ library support
10387           ld_shlibs_CXX=no
10388         fi
10389         ;;
10390     esac
10391     ;;
10392   interix3*)
10393     hardcode_direct_CXX=no
10394     hardcode_shlibpath_var_CXX=no
10395     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10396     export_dynamic_flag_spec_CXX='${wl}-E'
10397     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10398     # Instead, shared libraries are loaded at an image base (0x10000000 by
10399     # default) and relocated if they conflict, which is a slow very memory
10400     # consuming and fragmenting process.  To avoid this, we pick a random,
10401     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10402     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10403     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'
10404     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'
10405     ;;
10406   irix5* | irix6*)
10407     case $cc_basename in
10408       CC*)
10409         # SGI C++
10410         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'
10412         # Archives containing C++ object files must be created using
10413         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10414         # necessary to make sure instantiated templates are included
10415         # in the archive.
10416         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10417         ;;
10418       *)
10419         if test "$GXX" = yes; then
10420           if test "$with_gnu_ld" = no; then
10421             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'
10422           else
10423             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'
10424           fi
10425         fi
10426         link_all_deplibs_CXX=yes
10427         ;;
10428     esac
10429     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10430     hardcode_libdir_separator_CXX=:
10431     ;;
10432   linux*)
10433     case $cc_basename in
10434       KCC*)
10435         # Kuck and Associates, Inc. (KAI) C++ Compiler
10437         # KCC will only create a shared library if the output file
10438         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10439         # to its proper name (with version) after linking.
10440         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'
10441         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'
10442         # Commands to make compiler produce verbose output that lists
10443         # what "hidden" libraries, object files and flags are used when
10444         # linking a shared library.
10445         #
10446         # There doesn't appear to be a way to prevent this compiler from
10447         # explicitly linking system object files so we need to strip them
10448         # from the output so that they don't get included in the library
10449         # dependencies.
10450         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'
10452         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10453         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10455         # Archives containing C++ object files must be created using
10456         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10457         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10458         ;;
10459       icpc*)
10460         # Intel C++
10461         with_gnu_ld=yes
10462         # version 8.0 and above of icpc choke on multiply defined symbols
10463         # if we add $predep_objects and $postdep_objects, however 7.1 and
10464         # earlier do not add the objects themselves.
10465         case `$CC -V 2>&1` in
10466         *"Version 7."*)
10467           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10468           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'
10469           ;;
10470         *)  # Version 8.0 or newer
10471           tmp_idyn=
10472           case $host_cpu in
10473             ia64*) tmp_idyn=' -i_dynamic';;
10474           esac
10475           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10476           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'
10477           ;;
10478         esac
10479         archive_cmds_need_lc_CXX=no
10480         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10481         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10482         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10483         ;;
10484       pgCC*)
10485         # Portland Group C++ compiler
10486         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10487         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'
10489         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10490         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10491         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'
10492         ;;
10493       cxx*)
10494         # Compaq C++
10495         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10496         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'
10498         runpath_var=LD_RUN_PATH
10499         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10500         hardcode_libdir_separator_CXX=:
10502         # Commands to make compiler produce verbose output that lists
10503         # what "hidden" libraries, object files and flags are used when
10504         # linking a shared library.
10505         #
10506         # There doesn't appear to be a way to prevent this compiler from
10507         # explicitly linking system object files so we need to strip them
10508         # from the output so that they don't get included in the library
10509         # dependencies.
10510         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'
10511         ;;
10512     esac
10513     ;;
10514   lynxos*)
10515     # FIXME: insert proper C++ library support
10516     ld_shlibs_CXX=no
10517     ;;
10518   m88k*)
10519     # FIXME: insert proper C++ library support
10520     ld_shlibs_CXX=no
10521     ;;
10522   mvs*)
10523     case $cc_basename in
10524       cxx*)
10525         # FIXME: insert proper C++ library support
10526         ld_shlibs_CXX=no
10527         ;;
10528       *)
10529         # FIXME: insert proper C++ library support
10530         ld_shlibs_CXX=no
10531         ;;
10532     esac
10533     ;;
10534   netbsd*)
10535     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10536       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10537       wlarc=
10538       hardcode_libdir_flag_spec_CXX='-R$libdir'
10539       hardcode_direct_CXX=yes
10540       hardcode_shlibpath_var_CXX=no
10541     fi
10542     # Workaround some broken pre-1.5 toolchains
10543     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10544     ;;
10545   openbsd2*)
10546     # C++ shared libraries are fairly broken
10547     ld_shlibs_CXX=no
10548     ;;
10549   openbsd*)
10550     hardcode_direct_CXX=yes
10551     hardcode_shlibpath_var_CXX=no
10552     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10553     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10554     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10555       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10556       export_dynamic_flag_spec_CXX='${wl}-E'
10557       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10558     fi
10559     output_verbose_link_cmd='echo'
10560     ;;
10561   osf3*)
10562     case $cc_basename in
10563       KCC*)
10564         # Kuck and Associates, Inc. (KAI) C++ Compiler
10566         # KCC will only create a shared library if the output file
10567         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10568         # to its proper name (with version) after linking.
10569         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'
10571         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10572         hardcode_libdir_separator_CXX=:
10574         # Archives containing C++ object files must be created using
10575         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10576         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10578         ;;
10579       RCC*)
10580         # Rational C++ 2.4.1
10581         # FIXME: insert proper C++ library support
10582         ld_shlibs_CXX=no
10583         ;;
10584       cxx*)
10585         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10586         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'
10588         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10589         hardcode_libdir_separator_CXX=:
10591         # Commands to make compiler produce verbose output that lists
10592         # what "hidden" libraries, object files and flags are used when
10593         # linking a shared library.
10594         #
10595         # There doesn't appear to be a way to prevent this compiler from
10596         # explicitly linking system object files so we need to strip them
10597         # from the output so that they don't get included in the library
10598         # dependencies.
10599         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'
10600         ;;
10601       *)
10602         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10603           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10604           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'
10606           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10607           hardcode_libdir_separator_CXX=:
10609           # Commands to make compiler produce verbose output that lists
10610           # what "hidden" libraries, object files and flags are used when
10611           # linking a shared library.
10612           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10614         else
10615           # FIXME: insert proper C++ library support
10616           ld_shlibs_CXX=no
10617         fi
10618         ;;
10619     esac
10620     ;;
10621   osf4* | osf5*)
10622     case $cc_basename in
10623       KCC*)
10624         # Kuck and Associates, Inc. (KAI) C++ Compiler
10626         # KCC will only create a shared library if the output file
10627         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10628         # to its proper name (with version) after linking.
10629         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'
10631         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10632         hardcode_libdir_separator_CXX=:
10634         # Archives containing C++ object files must be created using
10635         # the KAI C++ compiler.
10636         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10637         ;;
10638       RCC*)
10639         # Rational C++ 2.4.1
10640         # FIXME: insert proper C++ library support
10641         ld_shlibs_CXX=no
10642         ;;
10643       cxx*)
10644         allow_undefined_flag_CXX=' -expect_unresolved \*'
10645         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'
10646         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10647           echo "-hidden">> $lib.exp~
10648           $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~
10649           $rm $lib.exp'
10651         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10652         hardcode_libdir_separator_CXX=:
10654         # Commands to make compiler produce verbose output that lists
10655         # what "hidden" libraries, object files and flags are used when
10656         # linking a shared library.
10657         #
10658         # There doesn't appear to be a way to prevent this compiler from
10659         # explicitly linking system object files so we need to strip them
10660         # from the output so that they don't get included in the library
10661         # dependencies.
10662         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'
10663         ;;
10664       *)
10665         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10666           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10667          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'
10669           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10670           hardcode_libdir_separator_CXX=:
10672           # Commands to make compiler produce verbose output that lists
10673           # what "hidden" libraries, object files and flags are used when
10674           # linking a shared library.
10675           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10677         else
10678           # FIXME: insert proper C++ library support
10679           ld_shlibs_CXX=no
10680         fi
10681         ;;
10682     esac
10683     ;;
10684   psos*)
10685     # FIXME: insert proper C++ library support
10686     ld_shlibs_CXX=no
10687     ;;
10688   sunos4*)
10689     case $cc_basename in
10690       CC*)
10691         # Sun C++ 4.x
10692         # FIXME: insert proper C++ library support
10693         ld_shlibs_CXX=no
10694         ;;
10695       lcc*)
10696         # Lucid
10697         # FIXME: insert proper C++ library support
10698         ld_shlibs_CXX=no
10699         ;;
10700       *)
10701         # FIXME: insert proper C++ library support
10702         ld_shlibs_CXX=no
10703         ;;
10704     esac
10705     ;;
10706   solaris*)
10707     case $cc_basename in
10708       CC*)
10709         # Sun C++ 4.2, 5.x and Centerline C++
10710         archive_cmds_need_lc_CXX=yes
10711         no_undefined_flag_CXX=' -zdefs'
10712         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10713         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10714         $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'
10716         hardcode_libdir_flag_spec_CXX='-R$libdir'
10717         hardcode_shlibpath_var_CXX=no
10718         case $host_os in
10719           solaris2.[0-5] | solaris2.[0-5].*) ;;
10720           *)
10721             # The C++ compiler is used as linker so we must use $wl
10722             # flag to pass the commands to the underlying system
10723             # linker. We must also pass each convience library through
10724             # to the system linker between allextract/defaultextract.
10725             # The C++ compiler will combine linker options so we
10726             # cannot just pass the convience library names through
10727             # without $wl.
10728             # Supported since Solaris 2.6 (maybe 2.5.1?)
10729             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'
10730             ;;
10731         esac
10732         link_all_deplibs_CXX=yes
10734         output_verbose_link_cmd='echo'
10736         # Archives containing C++ object files must be created using
10737         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10738         # necessary to make sure instantiated templates are included
10739         # in the archive.
10740         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10741         ;;
10742       gcx*)
10743         # Green Hills C++ Compiler
10744         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10746         # The C++ compiler must be used to create the archive.
10747         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10748         ;;
10749       *)
10750         # GNU C++ compiler with Solaris linker
10751         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10752           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10753           if $CC --version | grep -v '^2\.7' > /dev/null; then
10754             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10755             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10756                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10758             # Commands to make compiler produce verbose output that lists
10759             # what "hidden" libraries, object files and flags are used when
10760             # linking a shared library.
10761             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10762           else
10763             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10764             # platform.
10765             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10766             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10767                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10769             # Commands to make compiler produce verbose output that lists
10770             # what "hidden" libraries, object files and flags are used when
10771             # linking a shared library.
10772             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10773           fi
10775           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10776         fi
10777         ;;
10778     esac
10779     ;;
10780   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10781     no_undefined_flag_CXX='${wl}-z,text'
10782     archive_cmds_need_lc_CXX=no
10783     hardcode_shlibpath_var_CXX=no
10784     runpath_var='LD_RUN_PATH'
10786     case $cc_basename in
10787       CC*)
10788         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10789         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10790         ;;
10791       *)
10792         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10793         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10794         ;;
10795     esac
10796     ;;
10797   sysv5* | sco3.2v5* | sco5v6*)
10798     # Note: We can NOT use -z defs as we might desire, because we do not
10799     # link with -lc, and that would cause any symbols used from libc to
10800     # always be unresolved, which means just about no library would
10801     # ever link correctly.  If we're not using GNU ld we use -z text
10802     # though, which does catch some bad symbols but isn't as heavy-handed
10803     # as -z defs.
10804     # For security reasons, it is highly recommended that you always
10805     # use absolute paths for naming shared libraries, and exclude the
10806     # DT_RUNPATH tag from executables and libraries.  But doing so
10807     # requires that you compile everything twice, which is a pain.
10808     # So that behaviour is only enabled if SCOABSPATH is set to a
10809     # non-empty value in the environment.  Most likely only useful for
10810     # creating official distributions of packages.
10811     # This is a hack until libtool officially supports absolute path
10812     # names for shared libraries.
10813     no_undefined_flag_CXX='${wl}-z,text'
10814     allow_undefined_flag_CXX='${wl}-z,nodefs'
10815     archive_cmds_need_lc_CXX=no
10816     hardcode_shlibpath_var_CXX=no
10817     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10818     hardcode_libdir_separator_CXX=':'
10819     link_all_deplibs_CXX=yes
10820     export_dynamic_flag_spec_CXX='${wl}-Bexport'
10821     runpath_var='LD_RUN_PATH'
10823     case $cc_basename in
10824       CC*)
10825         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10826         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10827         ;;
10828       *)
10829         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10830         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10831         ;;
10832     esac
10833     ;;
10834   tandem*)
10835     case $cc_basename in
10836       NCC*)
10837         # NonStop-UX NCC 3.20
10838         # FIXME: insert proper C++ library support
10839         ld_shlibs_CXX=no
10840         ;;
10841       *)
10842         # FIXME: insert proper C++ library support
10843         ld_shlibs_CXX=no
10844         ;;
10845     esac
10846     ;;
10847   vxworks*)
10848     # FIXME: insert proper C++ library support
10849     ld_shlibs_CXX=no
10850     ;;
10851   *)
10852     # FIXME: insert proper C++ library support
10853     ld_shlibs_CXX=no
10854     ;;
10855 esac
10856 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10857 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10858 test "$ld_shlibs_CXX" = no && can_build_shared=no
10860 GCC_CXX="$GXX"
10861 LD_CXX="$LD"
10864 cat > conftest.$ac_ext <<EOF
10865 class Foo
10867 public:
10868   Foo (void) { a = 0; }
10869 private:
10870   int a;
10872 EOF
10874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10875   (eval $ac_compile) 2>&5
10876   ac_status=$?
10877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878   (exit $ac_status); }; then
10879   # Parse the compiler output and extract the necessary
10880   # objects, libraries and library flags.
10882   # Sentinel used to keep track of whether or not we are before
10883   # the conftest object file.
10884   pre_test_object_deps_done=no
10886   # The `*' in the case matches for architectures that use `case' in
10887   # $output_verbose_cmd can trigger glob expansion during the loop
10888   # eval without this substitution.
10889   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10891   for p in `eval $output_verbose_link_cmd`; do
10892     case $p in
10894     -L* | -R* | -l*)
10895        # Some compilers place space between "-{L,R}" and the path.
10896        # Remove the space.
10897        if test $p = "-L" \
10898           || test $p = "-R"; then
10899          prev=$p
10900          continue
10901        else
10902          prev=
10903        fi
10905        if test "$pre_test_object_deps_done" = no; then
10906          case $p in
10907          -L* | -R*)
10908            # Internal compiler library paths should come after those
10909            # provided the user.  The postdeps already come after the
10910            # user supplied libs so there is no need to process them.
10911            if test -z "$compiler_lib_search_path_CXX"; then
10912              compiler_lib_search_path_CXX="${prev}${p}"
10913            else
10914              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10915            fi
10916            ;;
10917          # The "-l" case would never come before the object being
10918          # linked, so don't bother handling this case.
10919          esac
10920        else
10921          if test -z "$postdeps_CXX"; then
10922            postdeps_CXX="${prev}${p}"
10923          else
10924            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10925          fi
10926        fi
10927        ;;
10929     *.$objext)
10930        # This assumes that the test object file only shows up
10931        # once in the compiler output.
10932        if test "$p" = "conftest.$objext"; then
10933          pre_test_object_deps_done=yes
10934          continue
10935        fi
10937        if test "$pre_test_object_deps_done" = no; then
10938          if test -z "$predep_objects_CXX"; then
10939            predep_objects_CXX="$p"
10940          else
10941            predep_objects_CXX="$predep_objects_CXX $p"
10942          fi
10943        else
10944          if test -z "$postdep_objects_CXX"; then
10945            postdep_objects_CXX="$p"
10946          else
10947            postdep_objects_CXX="$postdep_objects_CXX $p"
10948          fi
10949        fi
10950        ;;
10952     *) ;; # Ignore the rest.
10954     esac
10955   done
10957   # Clean up.
10958   rm -f a.out a.exe
10959 else
10960   echo "libtool.m4: error: problem compiling CXX test program"
10963 $rm -f confest.$objext
10965 # PORTME: override above test on systems where it is broken
10966 case $host_os in
10967 interix3*)
10968   # Interix 3.5 installs completely hosed .la files for C++, so rather than
10969   # hack all around it, let's just trust "g++" to DTRT.
10970   predep_objects_CXX=
10971   postdep_objects_CXX=
10972   postdeps_CXX=
10973   ;;
10975 solaris*)
10976   case $cc_basename in
10977   CC*)
10978     # Adding this requires a known-good setup of shared libraries for
10979     # Sun compiler versions before 5.6, else PIC objects from an old
10980     # archive will be linked into the output, leading to subtle bugs.
10981     postdeps_CXX='-lCstd -lCrun'
10982     ;;
10983   esac
10984   ;;
10985 esac
10988 case " $postdeps_CXX " in
10989 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10990 esac
10992 lt_prog_compiler_wl_CXX=
10993 lt_prog_compiler_pic_CXX=
10994 lt_prog_compiler_static_CXX=
10996 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10997 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10999   # C++ specific cases for pic, static, wl, etc.
11000   if test "$GXX" = yes; then
11001     lt_prog_compiler_wl_CXX='-Wl,'
11002     lt_prog_compiler_static_CXX='-static'
11004     case $host_os in
11005     aix*)
11006       # All AIX code is PIC.
11007       if test "$host_cpu" = ia64; then
11008         # AIX 5 now supports IA64 processor
11009         lt_prog_compiler_static_CXX='-Bstatic'
11010       fi
11011       ;;
11012     amigaos*)
11013       # FIXME: we need at least 68020 code to build shared libraries, but
11014       # adding the `-m68020' flag to GCC prevents building anything better,
11015       # like `-m68040'.
11016       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11017       ;;
11018     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11019       # PIC is the default for these OSes.
11020       ;;
11021     mingw* | os2* | pw32*)
11022       # This hack is so that the source file can tell whether it is being
11023       # built for inclusion in a dll (and should export symbols for example).
11024       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11025       ;;
11026     darwin* | rhapsody*)
11027       # PIC is the default on this platform
11028       # Common symbols not allowed in MH_DYLIB files
11029       lt_prog_compiler_pic_CXX='-fno-common'
11030       ;;
11031     *djgpp*)
11032       # DJGPP does not support shared libraries at all
11033       lt_prog_compiler_pic_CXX=
11034       ;;
11035     interix3*)
11036       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11037       # Instead, we relocate shared libraries at runtime.
11038       ;;
11039     sysv4*MP*)
11040       if test -d /usr/nec; then
11041         lt_prog_compiler_pic_CXX=-Kconform_pic
11042       fi
11043       ;;
11044     hpux*)
11045       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11046       # not for PA HP-UX.
11047       case $host_cpu in
11048       hppa*64*|ia64*)
11049         ;;
11050       *)
11051         lt_prog_compiler_pic_CXX='-fPIC'
11052         ;;
11053       esac
11054       ;;
11055     *)
11056       lt_prog_compiler_pic_CXX='-fPIC'
11057       ;;
11058     esac
11059   else
11060     case $host_os in
11061       aix4* | aix5*)
11062         # All AIX code is PIC.
11063         if test "$host_cpu" = ia64; then
11064           # AIX 5 now supports IA64 processor
11065           lt_prog_compiler_static_CXX='-Bstatic'
11066         else
11067           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11068         fi
11069         ;;
11070       chorus*)
11071         case $cc_basename in
11072         cxch68*)
11073           # Green Hills C++ Compiler
11074           # _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"
11075           ;;
11076         esac
11077         ;;
11078        darwin*)
11079          # PIC is the default on this platform
11080          # Common symbols not allowed in MH_DYLIB files
11081          case $cc_basename in
11082            xlc*)
11083            lt_prog_compiler_pic_CXX='-qnocommon'
11084            lt_prog_compiler_wl_CXX='-Wl,'
11085            ;;
11086          esac
11087        ;;
11088       dgux*)
11089         case $cc_basename in
11090           ec++*)
11091             lt_prog_compiler_pic_CXX='-KPIC'
11092             ;;
11093           ghcx*)
11094             # Green Hills C++ Compiler
11095             lt_prog_compiler_pic_CXX='-pic'
11096             ;;
11097           *)
11098             ;;
11099         esac
11100         ;;
11101       freebsd* | kfreebsd*-gnu | dragonfly*)
11102         # FreeBSD uses GNU C++
11103         ;;
11104       hpux9* | hpux10* | hpux11*)
11105         case $cc_basename in
11106           CC*)
11107             lt_prog_compiler_wl_CXX='-Wl,'
11108             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11109             if test "$host_cpu" != ia64; then
11110               lt_prog_compiler_pic_CXX='+Z'
11111             fi
11112             ;;
11113           aCC*)
11114             lt_prog_compiler_wl_CXX='-Wl,'
11115             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11116             case $host_cpu in
11117             hppa*64*|ia64*)
11118               # +Z the default
11119               ;;
11120             *)
11121               lt_prog_compiler_pic_CXX='+Z'
11122               ;;
11123             esac
11124             ;;
11125           *)
11126             ;;
11127         esac
11128         ;;
11129       interix*)
11130         # This is c89, which is MS Visual C++ (no shared libs)
11131         # Anyone wants to do a port?
11132         ;;
11133       irix5* | irix6* | nonstopux*)
11134         case $cc_basename in
11135           CC*)
11136             lt_prog_compiler_wl_CXX='-Wl,'
11137             lt_prog_compiler_static_CXX='-non_shared'
11138             # CC pic flag -KPIC is the default.
11139             ;;
11140           *)
11141             ;;
11142         esac
11143         ;;
11144       linux*)
11145         case $cc_basename in
11146           KCC*)
11147             # KAI C++ Compiler
11148             lt_prog_compiler_wl_CXX='--backend -Wl,'
11149             lt_prog_compiler_pic_CXX='-fPIC'
11150             ;;
11151           icpc* | ecpc*)
11152             # Intel C++
11153             lt_prog_compiler_wl_CXX='-Wl,'
11154             lt_prog_compiler_pic_CXX='-KPIC'
11155             lt_prog_compiler_static_CXX='-static'
11156             ;;
11157           pgCC*)
11158             # Portland Group C++ compiler.
11159             lt_prog_compiler_wl_CXX='-Wl,'
11160             lt_prog_compiler_pic_CXX='-fpic'
11161             lt_prog_compiler_static_CXX='-Bstatic'
11162             ;;
11163           cxx*)
11164             # Compaq C++
11165             # Make sure the PIC flag is empty.  It appears that all Alpha
11166             # Linux and Compaq Tru64 Unix objects are PIC.
11167             lt_prog_compiler_pic_CXX=
11168             lt_prog_compiler_static_CXX='-non_shared'
11169             ;;
11170           *)
11171             ;;
11172         esac
11173         ;;
11174       lynxos*)
11175         ;;
11176       m88k*)
11177         ;;
11178       mvs*)
11179         case $cc_basename in
11180           cxx*)
11181             lt_prog_compiler_pic_CXX='-W c,exportall'
11182             ;;
11183           *)
11184             ;;
11185         esac
11186         ;;
11187       netbsd*)
11188         ;;
11189       osf3* | osf4* | osf5*)
11190         case $cc_basename in
11191           KCC*)
11192             lt_prog_compiler_wl_CXX='--backend -Wl,'
11193             ;;
11194           RCC*)
11195             # Rational C++ 2.4.1
11196             lt_prog_compiler_pic_CXX='-pic'
11197             ;;
11198           cxx*)
11199             # Digital/Compaq C++
11200             lt_prog_compiler_wl_CXX='-Wl,'
11201             # Make sure the PIC flag is empty.  It appears that all Alpha
11202             # Linux and Compaq Tru64 Unix objects are PIC.
11203             lt_prog_compiler_pic_CXX=
11204             lt_prog_compiler_static_CXX='-non_shared'
11205             ;;
11206           *)
11207             ;;
11208         esac
11209         ;;
11210       psos*)
11211         ;;
11212       solaris*)
11213         case $cc_basename in
11214           CC*)
11215             # Sun C++ 4.2, 5.x and Centerline C++
11216             lt_prog_compiler_pic_CXX='-KPIC'
11217             lt_prog_compiler_static_CXX='-Bstatic'
11218             lt_prog_compiler_wl_CXX='-Qoption ld '
11219             ;;
11220           gcx*)
11221             # Green Hills C++ Compiler
11222             lt_prog_compiler_pic_CXX='-PIC'
11223             ;;
11224           *)
11225             ;;
11226         esac
11227         ;;
11228       sunos4*)
11229         case $cc_basename in
11230           CC*)
11231             # Sun C++ 4.x
11232             lt_prog_compiler_pic_CXX='-pic'
11233             lt_prog_compiler_static_CXX='-Bstatic'
11234             ;;
11235           lcc*)
11236             # Lucid
11237             lt_prog_compiler_pic_CXX='-pic'
11238             ;;
11239           *)
11240             ;;
11241         esac
11242         ;;
11243       tandem*)
11244         case $cc_basename in
11245           NCC*)
11246             # NonStop-UX NCC 3.20
11247             lt_prog_compiler_pic_CXX='-KPIC'
11248             ;;
11249           *)
11250             ;;
11251         esac
11252         ;;
11253       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11254         case $cc_basename in
11255           CC*)
11256             lt_prog_compiler_wl_CXX='-Wl,'
11257             lt_prog_compiler_pic_CXX='-KPIC'
11258             lt_prog_compiler_static_CXX='-Bstatic'
11259             ;;
11260         esac
11261         ;;
11262       vxworks*)
11263         ;;
11264       *)
11265         lt_prog_compiler_can_build_shared_CXX=no
11266         ;;
11267     esac
11268   fi
11270 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11271 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11274 # Check to make sure the PIC flag actually works.
11276 if test -n "$lt_prog_compiler_pic_CXX"; then
11278 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11279 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11280 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   lt_prog_compiler_pic_works_CXX=no
11284   ac_outfile=conftest.$ac_objext
11285    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11286    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11287    # Insert the option either (1) after the last *FLAGS variable, or
11288    # (2) before a word containing "conftest.", or (3) at the end.
11289    # Note that $ac_compile itself does not contain backslashes and begins
11290    # with a dollar sign (not a hyphen), so the echo should work correctly.
11291    # The option is referenced via a variable to avoid confusing sed.
11292    lt_compile=`echo "$ac_compile" | $SED \
11293    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11294    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11295    -e 's:$: $lt_compiler_flag:'`
11296    (eval echo "\"\$as_me:11296: $lt_compile\"" >&5)
11297    (eval "$lt_compile" 2>conftest.err)
11298    ac_status=$?
11299    cat conftest.err >&5
11300    echo "$as_me:11300: \$? = $ac_status" >&5
11301    if (exit $ac_status) && test -s "$ac_outfile"; then
11302      # The compiler can only warn and ignore the option if not recognized
11303      # So say no if there are warnings other than the usual output.
11304      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11305      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11306      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11307        lt_prog_compiler_pic_works_CXX=yes
11308      fi
11309    fi
11310    $rm conftest*
11313 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11314 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11316 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11317     case $lt_prog_compiler_pic_CXX in
11318      "" | " "*) ;;
11319      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11320      esac
11321 else
11322     lt_prog_compiler_pic_CXX=
11323      lt_prog_compiler_can_build_shared_CXX=no
11327 case $host_os in
11328   # For platforms which do not support PIC, -DPIC is meaningless:
11329   *djgpp*)
11330     lt_prog_compiler_pic_CXX=
11331     ;;
11332   *)
11333     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11334     ;;
11335 esac
11338 # Check to make sure the static flag actually works.
11340 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11341 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11342 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11343 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   lt_prog_compiler_static_works_CXX=no
11347    save_LDFLAGS="$LDFLAGS"
11348    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11349    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11350    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11351      # The linker can only warn and ignore the option if not recognized
11352      # So say no if there are warnings
11353      if test -s conftest.err; then
11354        # Append any errors to the config.log.
11355        cat conftest.err 1>&5
11356        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11357        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11358        if diff conftest.exp conftest.er2 >/dev/null; then
11359          lt_prog_compiler_static_works_CXX=yes
11360        fi
11361      else
11362        lt_prog_compiler_static_works_CXX=yes
11363      fi
11364    fi
11365    $rm conftest*
11366    LDFLAGS="$save_LDFLAGS"
11369 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11370 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11372 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11373     :
11374 else
11375     lt_prog_compiler_static_CXX=
11379 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11380 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11381 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11382   echo $ECHO_N "(cached) $ECHO_C" >&6
11383 else
11384   lt_cv_prog_compiler_c_o_CXX=no
11385    $rm -r conftest 2>/dev/null
11386    mkdir conftest
11387    cd conftest
11388    mkdir out
11389    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11391    lt_compiler_flag="-o out/conftest2.$ac_objext"
11392    # Insert the option either (1) after the last *FLAGS variable, or
11393    # (2) before a word containing "conftest.", or (3) at the end.
11394    # Note that $ac_compile itself does not contain backslashes and begins
11395    # with a dollar sign (not a hyphen), so the echo should work correctly.
11396    lt_compile=`echo "$ac_compile" | $SED \
11397    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11398    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11399    -e 's:$: $lt_compiler_flag:'`
11400    (eval echo "\"\$as_me:11400: $lt_compile\"" >&5)
11401    (eval "$lt_compile" 2>out/conftest.err)
11402    ac_status=$?
11403    cat out/conftest.err >&5
11404    echo "$as_me:11404: \$? = $ac_status" >&5
11405    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11406    then
11407      # The compiler can only warn and ignore the option if not recognized
11408      # So say no if there are warnings
11409      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11410      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11411      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11412        lt_cv_prog_compiler_c_o_CXX=yes
11413      fi
11414    fi
11415    chmod u+w . 2>&5
11416    $rm conftest*
11417    # SGI C++ compiler will create directory out/ii_files/ for
11418    # template instantiation
11419    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11420    $rm out/* && rmdir out
11421    cd ..
11422    rmdir conftest
11423    $rm conftest*
11426 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11427 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11430 hard_links="nottested"
11431 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11432   # do not overwrite the value of need_locks provided by the user
11433   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11434 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11435   hard_links=yes
11436   $rm conftest*
11437   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11438   touch conftest.a
11439   ln conftest.a conftest.b 2>&5 || hard_links=no
11440   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11441   echo "$as_me:$LINENO: result: $hard_links" >&5
11442 echo "${ECHO_T}$hard_links" >&6
11443   if test "$hard_links" = no; then
11444     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11445 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11446     need_locks=warn
11447   fi
11448 else
11449   need_locks=no
11452 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11453 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11455   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11456   case $host_os in
11457   aix4* | aix5*)
11458     # If we're using GNU nm, then we don't want the "-C" option.
11459     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11460     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11461       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'
11462     else
11463       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'
11464     fi
11465     ;;
11466   pw32*)
11467     export_symbols_cmds_CXX="$ltdll_cmds"
11468   ;;
11469   cygwin* | mingw*)
11470     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'
11471   ;;
11472   *)
11473     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11474   ;;
11475   esac
11477 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11478 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11479 test "$ld_shlibs_CXX" = no && can_build_shared=no
11482 # Do we need to explicitly link libc?
11484 case "x$archive_cmds_need_lc_CXX" in
11485 x|xyes)
11486   # Assume -lc should be added
11487   archive_cmds_need_lc_CXX=yes
11489   if test "$enable_shared" = yes && test "$GCC" = yes; then
11490     case $archive_cmds_CXX in
11491     *'~'*)
11492       # FIXME: we may have to deal with multi-command sequences.
11493       ;;
11494     '$CC '*)
11495       # Test whether the compiler implicitly links with -lc since on some
11496       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11497       # to ld, don't add -lc before -lgcc.
11498       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11499 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11500       $rm conftest*
11501       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11503       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11504   (eval $ac_compile) 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); } 2>conftest.err; then
11508         soname=conftest
11509         lib=conftest
11510         libobjs=conftest.$ac_objext
11511         deplibs=
11512         wl=$lt_prog_compiler_wl_CXX
11513         pic_flag=$lt_prog_compiler_pic_CXX
11514         compiler_flags=-v
11515         linker_flags=-v
11516         verstring=
11517         output_objdir=.
11518         libname=conftest
11519         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11520         allow_undefined_flag_CXX=
11521         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11522   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11523   ac_status=$?
11524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525   (exit $ac_status); }
11526         then
11527           archive_cmds_need_lc_CXX=no
11528         else
11529           archive_cmds_need_lc_CXX=yes
11530         fi
11531         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11532       else
11533         cat conftest.err 1>&5
11534       fi
11535       $rm conftest*
11536       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11537 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11538       ;;
11539     esac
11540   fi
11541   ;;
11542 esac
11544 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11545 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11546 library_names_spec=
11547 libname_spec='lib$name'
11548 soname_spec=
11549 shrext_cmds=".so"
11550 postinstall_cmds=
11551 postuninstall_cmds=
11552 finish_cmds=
11553 finish_eval=
11554 shlibpath_var=
11555 shlibpath_overrides_runpath=unknown
11556 version_type=none
11557 dynamic_linker="$host_os ld.so"
11558 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11559 if test "$GCC" = yes; then
11560   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11561   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11562     # if the path contains ";" then we assume it to be the separator
11563     # otherwise default to the standard path separator (i.e. ":") - it is
11564     # assumed that no part of a normal pathname contains ";" but that should
11565     # okay in the real world where ";" in dirpaths is itself problematic.
11566     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11567   else
11568     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11569   fi
11570 else
11571   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11573 need_lib_prefix=unknown
11574 hardcode_into_libs=no
11576 # when you set need_version to no, make sure it does not cause -set_version
11577 # flags to be left without arguments
11578 need_version=unknown
11580 case $host_os in
11581 aix3*)
11582   version_type=linux
11583   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11584   shlibpath_var=LIBPATH
11586   # AIX 3 has no versioning support, so we append a major version to the name.
11587   soname_spec='${libname}${release}${shared_ext}$major'
11588   ;;
11590 aix4* | aix5*)
11591   version_type=linux
11592   need_lib_prefix=no
11593   need_version=no
11594   hardcode_into_libs=yes
11595   if test "$host_cpu" = ia64; then
11596     # AIX 5 supports IA64
11597     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11598     shlibpath_var=LD_LIBRARY_PATH
11599   else
11600     # With GCC up to 2.95.x, collect2 would create an import file
11601     # for dependence libraries.  The import file would start with
11602     # the line `#! .'.  This would cause the generated library to
11603     # depend on `.', always an invalid library.  This was fixed in
11604     # development snapshots of GCC prior to 3.0.
11605     case $host_os in
11606       aix4 | aix4.[01] | aix4.[01].*)
11607       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11608            echo ' yes '
11609            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11610         :
11611       else
11612         can_build_shared=no
11613       fi
11614       ;;
11615     esac
11616     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11617     # soname into executable. Probably we can add versioning support to
11618     # collect2, so additional links can be useful in future.
11619     if test "$aix_use_runtimelinking" = yes; then
11620       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11621       # instead of lib<name>.a to let people know that these are not
11622       # typical AIX shared libraries.
11623       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624     else
11625       # We preserve .a as extension for shared libraries through AIX4.2
11626       # and later when we are not doing run time linking.
11627       library_names_spec='${libname}${release}.a $libname.a'
11628       soname_spec='${libname}${release}${shared_ext}$major'
11629     fi
11630     shlibpath_var=LIBPATH
11631   fi
11632   ;;
11634 amigaos*)
11635   library_names_spec='$libname.ixlibrary $libname.a'
11636   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11637   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'
11638   ;;
11640 beos*)
11641   library_names_spec='${libname}${shared_ext}'
11642   dynamic_linker="$host_os ld.so"
11643   shlibpath_var=LIBRARY_PATH
11644   ;;
11646 bsdi[45]*)
11647   version_type=linux
11648   need_version=no
11649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650   soname_spec='${libname}${release}${shared_ext}$major'
11651   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11652   shlibpath_var=LD_LIBRARY_PATH
11653   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11654   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11655   # the default ld.so.conf also contains /usr/contrib/lib and
11656   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11657   # libtool to hard-code these into programs
11658   ;;
11660 cygwin* | mingw* | pw32*)
11661   version_type=windows
11662   shrext_cmds=".dll"
11663   need_version=no
11664   need_lib_prefix=no
11666   case $GCC,$host_os in
11667   yes,cygwin* | yes,mingw* | yes,pw32*)
11668     library_names_spec='$libname.dll.a'
11669     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11670     postinstall_cmds='base_file=`basename \${file}`~
11671       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11672       dldir=$destdir/`dirname \$dlpath`~
11673       test -d \$dldir || mkdir -p \$dldir~
11674       $install_prog $dir/$dlname \$dldir/$dlname~
11675       chmod a+x \$dldir/$dlname'
11676     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11677       dlpath=$dir/\$dldll~
11678        $rm \$dlpath'
11679     shlibpath_overrides_runpath=yes
11681     case $host_os in
11682     cygwin*)
11683       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11684       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11685       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11686       ;;
11687     mingw*)
11688       # MinGW DLLs use traditional 'lib' prefix
11689       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11690       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11691       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11692         # It is most probably a Windows format PATH printed by
11693         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11694         # path with ; separators, and with drive letters. We can handle the
11695         # drive letters (cygwin fileutils understands them), so leave them,
11696         # especially as we might pass files found there to a mingw objdump,
11697         # which wouldn't understand a cygwinified path. Ahh.
11698         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11699       else
11700         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11701       fi
11702       ;;
11703     pw32*)
11704       # pw32 DLLs use 'pw' prefix rather than 'lib'
11705       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11706       ;;
11707     esac
11708     ;;
11710   *)
11711     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11712     ;;
11713   esac
11714   dynamic_linker='Win32 ld.exe'
11715   # FIXME: first we should search . and the directory the executable is in
11716   shlibpath_var=PATH
11717   ;;
11719 darwin* | rhapsody*)
11720   dynamic_linker="$host_os dyld"
11721   version_type=darwin
11722   need_lib_prefix=no
11723   need_version=no
11724   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11725   soname_spec='${libname}${release}${major}$shared_ext'
11726   shlibpath_overrides_runpath=yes
11727   shlibpath_var=DYLD_LIBRARY_PATH
11728   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11729   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11730   if test "$GCC" = yes; then
11731     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"`
11732   else
11733     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11734   fi
11735   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11736   ;;
11738 dgux*)
11739   version_type=linux
11740   need_lib_prefix=no
11741   need_version=no
11742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11743   soname_spec='${libname}${release}${shared_ext}$major'
11744   shlibpath_var=LD_LIBRARY_PATH
11745   ;;
11747 freebsd1*)
11748   dynamic_linker=no
11749   ;;
11751 kfreebsd*-gnu)
11752   version_type=linux
11753   need_lib_prefix=no
11754   need_version=no
11755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11756   soname_spec='${libname}${release}${shared_ext}$major'
11757   shlibpath_var=LD_LIBRARY_PATH
11758   shlibpath_overrides_runpath=no
11759   hardcode_into_libs=yes
11760   dynamic_linker='GNU ld.so'
11761   ;;
11763 freebsd* | dragonfly*)
11764   # DragonFly does not have aout.  When/if they implement a new
11765   # versioning mechanism, adjust this.
11766   if test -x /usr/bin/objformat; then
11767     objformat=`/usr/bin/objformat`
11768   else
11769     case $host_os in
11770     freebsd[123]*) objformat=aout ;;
11771     *) objformat=elf ;;
11772     esac
11773   fi
11774   version_type=freebsd-$objformat
11775   case $version_type in
11776     freebsd-elf*)
11777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11778       need_version=no
11779       need_lib_prefix=no
11780       ;;
11781     freebsd-*)
11782       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11783       need_version=yes
11784       ;;
11785   esac
11786   shlibpath_var=LD_LIBRARY_PATH
11787   case $host_os in
11788   freebsd2*)
11789     shlibpath_overrides_runpath=yes
11790     ;;
11791   freebsd3.[01]* | freebsdelf3.[01]*)
11792     shlibpath_overrides_runpath=yes
11793     hardcode_into_libs=yes
11794     ;;
11795   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11796   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11797     shlibpath_overrides_runpath=no
11798     hardcode_into_libs=yes
11799     ;;
11800   freebsd*) # from 4.6 on
11801     shlibpath_overrides_runpath=yes
11802     hardcode_into_libs=yes
11803     ;;
11804   esac
11805   ;;
11807 gnu*)
11808   version_type=linux
11809   need_lib_prefix=no
11810   need_version=no
11811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11812   soname_spec='${libname}${release}${shared_ext}$major'
11813   shlibpath_var=LD_LIBRARY_PATH
11814   hardcode_into_libs=yes
11815   ;;
11817 hpux9* | hpux10* | hpux11*)
11818   # Give a soname corresponding to the major version so that dld.sl refuses to
11819   # link against other versions.
11820   version_type=sunos
11821   need_lib_prefix=no
11822   need_version=no
11823   case $host_cpu in
11824   ia64*)
11825     shrext_cmds='.so'
11826     hardcode_into_libs=yes
11827     dynamic_linker="$host_os dld.so"
11828     shlibpath_var=LD_LIBRARY_PATH
11829     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831     soname_spec='${libname}${release}${shared_ext}$major'
11832     if test "X$HPUX_IA64_MODE" = X32; then
11833       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11834     else
11835       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11836     fi
11837     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11838     ;;
11839    hppa*64*)
11840      shrext_cmds='.sl'
11841      hardcode_into_libs=yes
11842      dynamic_linker="$host_os dld.sl"
11843      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11844      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11845      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11846      soname_spec='${libname}${release}${shared_ext}$major'
11847      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11848      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11849      ;;
11850    *)
11851     shrext_cmds='.sl'
11852     dynamic_linker="$host_os dld.sl"
11853     shlibpath_var=SHLIB_PATH
11854     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11856     soname_spec='${libname}${release}${shared_ext}$major'
11857     ;;
11858   esac
11859   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11860   postinstall_cmds='chmod 555 $lib'
11861   ;;
11863 interix3*)
11864   version_type=linux
11865   need_lib_prefix=no
11866   need_version=no
11867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11868   soname_spec='${libname}${release}${shared_ext}$major'
11869   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11870   shlibpath_var=LD_LIBRARY_PATH
11871   shlibpath_overrides_runpath=no
11872   hardcode_into_libs=yes
11873   ;;
11875 irix5* | irix6* | nonstopux*)
11876   case $host_os in
11877     nonstopux*) version_type=nonstopux ;;
11878     *)
11879         if test "$lt_cv_prog_gnu_ld" = yes; then
11880                 version_type=linux
11881         else
11882                 version_type=irix
11883         fi ;;
11884   esac
11885   need_lib_prefix=no
11886   need_version=no
11887   soname_spec='${libname}${release}${shared_ext}$major'
11888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11889   case $host_os in
11890   irix5* | nonstopux*)
11891     libsuff= shlibsuff=
11892     ;;
11893   *)
11894     case $LD in # libtool.m4 will add one of these switches to LD
11895     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11896       libsuff= shlibsuff= libmagic=32-bit;;
11897     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11898       libsuff=32 shlibsuff=N32 libmagic=N32;;
11899     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11900       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11901     *) libsuff= shlibsuff= libmagic=never-match;;
11902     esac
11903     ;;
11904   esac
11905   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11906   shlibpath_overrides_runpath=no
11907   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11908   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11909   hardcode_into_libs=yes
11910   ;;
11912 # No shared lib support for Linux oldld, aout, or coff.
11913 linux*oldld* | linux*aout* | linux*coff*)
11914   dynamic_linker=no
11915   ;;
11917 # This must be Linux ELF.
11918 linux*)
11919   version_type=linux
11920   need_lib_prefix=no
11921   need_version=no
11922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11923   soname_spec='${libname}${release}${shared_ext}$major'
11924   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11925   shlibpath_var=LD_LIBRARY_PATH
11926   shlibpath_overrides_runpath=no
11927   # This implies no fast_install, which is unacceptable.
11928   # Some rework will be needed to allow for fast_install
11929   # before this can be enabled.
11930   hardcode_into_libs=yes
11932   # Append ld.so.conf contents to the search path
11933   if test -f /etc/ld.so.conf; then
11934     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' ' '`
11935     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11936   fi
11938   # We used to test for /lib/ld.so.1 and disable shared libraries on
11939   # powerpc, because MkLinux only supported shared libraries with the
11940   # GNU dynamic linker.  Since this was broken with cross compilers,
11941   # most powerpc-linux boxes support dynamic linking these days and
11942   # people can always --disable-shared, the test was removed, and we
11943   # assume the GNU/Linux dynamic linker is in use.
11944   dynamic_linker='GNU/Linux ld.so'
11945   ;;
11947 knetbsd*-gnu)
11948   version_type=linux
11949   need_lib_prefix=no
11950   need_version=no
11951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11952   soname_spec='${libname}${release}${shared_ext}$major'
11953   shlibpath_var=LD_LIBRARY_PATH
11954   shlibpath_overrides_runpath=no
11955   hardcode_into_libs=yes
11956   dynamic_linker='GNU ld.so'
11957   ;;
11959 netbsd*)
11960   version_type=sunos
11961   need_lib_prefix=no
11962   need_version=no
11963   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11965     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11966     dynamic_linker='NetBSD (a.out) ld.so'
11967   else
11968     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11969     soname_spec='${libname}${release}${shared_ext}$major'
11970     dynamic_linker='NetBSD ld.elf_so'
11971   fi
11972   shlibpath_var=LD_LIBRARY_PATH
11973   shlibpath_overrides_runpath=yes
11974   hardcode_into_libs=yes
11975   ;;
11977 newsos6)
11978   version_type=linux
11979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11980   shlibpath_var=LD_LIBRARY_PATH
11981   shlibpath_overrides_runpath=yes
11982   ;;
11984 nto-qnx*)
11985   version_type=linux
11986   need_lib_prefix=no
11987   need_version=no
11988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11989   soname_spec='${libname}${release}${shared_ext}$major'
11990   shlibpath_var=LD_LIBRARY_PATH
11991   shlibpath_overrides_runpath=yes
11992   ;;
11994 openbsd*)
11995   version_type=sunos
11996   sys_lib_dlsearch_path_spec="/usr/lib"
11997   need_lib_prefix=no
11998   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11999   case $host_os in
12000     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12001     *)                         need_version=no  ;;
12002   esac
12003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12004   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12005   shlibpath_var=LD_LIBRARY_PATH
12006   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12007     case $host_os in
12008       openbsd2.[89] | openbsd2.[89].*)
12009         shlibpath_overrides_runpath=no
12010         ;;
12011       *)
12012         shlibpath_overrides_runpath=yes
12013         ;;
12014       esac
12015   else
12016     shlibpath_overrides_runpath=yes
12017   fi
12018   ;;
12020 os2*)
12021   libname_spec='$name'
12022   shrext_cmds=".dll"
12023   need_lib_prefix=no
12024   library_names_spec='$libname${shared_ext} $libname.a'
12025   dynamic_linker='OS/2 ld.exe'
12026   shlibpath_var=LIBPATH
12027   ;;
12029 osf3* | osf4* | osf5*)
12030   version_type=osf
12031   need_lib_prefix=no
12032   need_version=no
12033   soname_spec='${libname}${release}${shared_ext}$major'
12034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12035   shlibpath_var=LD_LIBRARY_PATH
12036   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12037   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12038   ;;
12040 solaris*)
12041   version_type=linux
12042   need_lib_prefix=no
12043   need_version=no
12044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12045   soname_spec='${libname}${release}${shared_ext}$major'
12046   shlibpath_var=LD_LIBRARY_PATH
12047   shlibpath_overrides_runpath=yes
12048   hardcode_into_libs=yes
12049   # ldd complains unless libraries are executable
12050   postinstall_cmds='chmod +x $lib'
12051   ;;
12053 sunos4*)
12054   version_type=sunos
12055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12056   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12057   shlibpath_var=LD_LIBRARY_PATH
12058   shlibpath_overrides_runpath=yes
12059   if test "$with_gnu_ld" = yes; then
12060     need_lib_prefix=no
12061   fi
12062   need_version=yes
12063   ;;
12065 sysv4 | sysv4.3*)
12066   version_type=linux
12067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12068   soname_spec='${libname}${release}${shared_ext}$major'
12069   shlibpath_var=LD_LIBRARY_PATH
12070   case $host_vendor in
12071     sni)
12072       shlibpath_overrides_runpath=no
12073       need_lib_prefix=no
12074       export_dynamic_flag_spec='${wl}-Blargedynsym'
12075       runpath_var=LD_RUN_PATH
12076       ;;
12077     siemens)
12078       need_lib_prefix=no
12079       ;;
12080     motorola)
12081       need_lib_prefix=no
12082       need_version=no
12083       shlibpath_overrides_runpath=no
12084       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12085       ;;
12086   esac
12087   ;;
12089 sysv4*MP*)
12090   if test -d /usr/nec ;then
12091     version_type=linux
12092     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12093     soname_spec='$libname${shared_ext}.$major'
12094     shlibpath_var=LD_LIBRARY_PATH
12095   fi
12096   ;;
12098 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12099   version_type=freebsd-elf
12100   need_lib_prefix=no
12101   need_version=no
12102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12103   soname_spec='${libname}${release}${shared_ext}$major'
12104   shlibpath_var=LD_LIBRARY_PATH
12105   hardcode_into_libs=yes
12106   if test "$with_gnu_ld" = yes; then
12107     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12108     shlibpath_overrides_runpath=no
12109   else
12110     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12111     shlibpath_overrides_runpath=yes
12112     case $host_os in
12113       sco3.2v5*)
12114         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12115         ;;
12116     esac
12117   fi
12118   sys_lib_dlsearch_path_spec='/usr/lib'
12119   ;;
12121 uts4*)
12122   version_type=linux
12123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12124   soname_spec='${libname}${release}${shared_ext}$major'
12125   shlibpath_var=LD_LIBRARY_PATH
12126   ;;
12129   dynamic_linker=no
12130   ;;
12131 esac
12132 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12133 echo "${ECHO_T}$dynamic_linker" >&6
12134 test "$dynamic_linker" = no && can_build_shared=no
12136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12137 if test "$GCC" = yes; then
12138   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12141 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12142 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12143 hardcode_action_CXX=
12144 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12145    test -n "$runpath_var_CXX" || \
12146    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12148   # We can hardcode non-existant directories.
12149   if test "$hardcode_direct_CXX" != no &&
12150      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12151      # have to relink, otherwise we might link with an installed library
12152      # when we should be linking with a yet-to-be-installed one
12153      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12154      test "$hardcode_minus_L_CXX" != no; then
12155     # Linking always hardcodes the temporary library directory.
12156     hardcode_action_CXX=relink
12157   else
12158     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12159     hardcode_action_CXX=immediate
12160   fi
12161 else
12162   # We cannot hardcode anything, or else we can only hardcode existing
12163   # directories.
12164   hardcode_action_CXX=unsupported
12166 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12167 echo "${ECHO_T}$hardcode_action_CXX" >&6
12169 if test "$hardcode_action_CXX" = relink; then
12170   # Fast installation is not supported
12171   enable_fast_install=no
12172 elif test "$shlibpath_overrides_runpath" = yes ||
12173      test "$enable_shared" = no; then
12174   # Fast installation is not necessary
12175   enable_fast_install=needless
12179 # The else clause should only fire when bootstrapping the
12180 # libtool distribution, otherwise you forgot to ship ltmain.sh
12181 # with your package, and you will get complaints that there are
12182 # no rules to generate ltmain.sh.
12183 if test -f "$ltmain"; then
12184   # See if we are running on zsh, and set the options which allow our commands through
12185   # without removal of \ escapes.
12186   if test -n "${ZSH_VERSION+set}" ; then
12187     setopt NO_GLOB_SUBST
12188   fi
12189   # Now quote all the things that may contain metacharacters while being
12190   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12191   # variables and quote the copies for generation of the libtool script.
12192   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12193     SED SHELL STRIP \
12194     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12195     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12196     deplibs_check_method reload_flag reload_cmds need_locks \
12197     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12198     lt_cv_sys_global_symbol_to_c_name_address \
12199     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12200     old_postinstall_cmds old_postuninstall_cmds \
12201     compiler_CXX \
12202     CC_CXX \
12203     LD_CXX \
12204     lt_prog_compiler_wl_CXX \
12205     lt_prog_compiler_pic_CXX \
12206     lt_prog_compiler_static_CXX \
12207     lt_prog_compiler_no_builtin_flag_CXX \
12208     export_dynamic_flag_spec_CXX \
12209     thread_safe_flag_spec_CXX \
12210     whole_archive_flag_spec_CXX \
12211     enable_shared_with_static_runtimes_CXX \
12212     old_archive_cmds_CXX \
12213     old_archive_from_new_cmds_CXX \
12214     predep_objects_CXX \
12215     postdep_objects_CXX \
12216     predeps_CXX \
12217     postdeps_CXX \
12218     compiler_lib_search_path_CXX \
12219     archive_cmds_CXX \
12220     archive_expsym_cmds_CXX \
12221     postinstall_cmds_CXX \
12222     postuninstall_cmds_CXX \
12223     old_archive_from_expsyms_cmds_CXX \
12224     allow_undefined_flag_CXX \
12225     no_undefined_flag_CXX \
12226     export_symbols_cmds_CXX \
12227     hardcode_libdir_flag_spec_CXX \
12228     hardcode_libdir_flag_spec_ld_CXX \
12229     hardcode_libdir_separator_CXX \
12230     hardcode_automatic_CXX \
12231     module_cmds_CXX \
12232     module_expsym_cmds_CXX \
12233     lt_cv_prog_compiler_c_o_CXX \
12234     exclude_expsyms_CXX \
12235     include_expsyms_CXX; do
12237     case $var in
12238     old_archive_cmds_CXX | \
12239     old_archive_from_new_cmds_CXX | \
12240     archive_cmds_CXX | \
12241     archive_expsym_cmds_CXX | \
12242     module_cmds_CXX | \
12243     module_expsym_cmds_CXX | \
12244     old_archive_from_expsyms_cmds_CXX | \
12245     export_symbols_cmds_CXX | \
12246     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12247     postinstall_cmds | postuninstall_cmds | \
12248     old_postinstall_cmds | old_postuninstall_cmds | \
12249     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12250       # Double-quote double-evaled strings.
12251       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12252       ;;
12253     *)
12254       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12255       ;;
12256     esac
12257   done
12259   case $lt_echo in
12260   *'\$0 --fallback-echo"')
12261     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12262     ;;
12263   esac
12265 cfgfile="$ofile"
12267   cat <<__EOF__ >> "$cfgfile"
12268 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12270 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12272 # Shell to use when invoking shell scripts.
12273 SHELL=$lt_SHELL
12275 # Whether or not to build shared libraries.
12276 build_libtool_libs=$enable_shared
12278 # Whether or not to build static libraries.
12279 build_old_libs=$enable_static
12281 # Whether or not to add -lc for building shared libraries.
12282 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12284 # Whether or not to disallow shared libs when runtime libs are static
12285 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12287 # Whether or not to optimize for fast installation.
12288 fast_install=$enable_fast_install
12290 # The host system.
12291 host_alias=$host_alias
12292 host=$host
12293 host_os=$host_os
12295 # The build system.
12296 build_alias=$build_alias
12297 build=$build
12298 build_os=$build_os
12300 # An echo program that does not interpret backslashes.
12301 echo=$lt_echo
12303 # The archiver.
12304 AR=$lt_AR
12305 AR_FLAGS=$lt_AR_FLAGS
12307 # A C compiler.
12308 LTCC=$lt_LTCC
12310 # LTCC compiler flags.
12311 LTCFLAGS=$lt_LTCFLAGS
12313 # A language-specific compiler.
12314 CC=$lt_compiler_CXX
12316 # Is the compiler the GNU C compiler?
12317 with_gcc=$GCC_CXX
12319 # An ERE matcher.
12320 EGREP=$lt_EGREP
12322 # The linker used to build libraries.
12323 LD=$lt_LD_CXX
12325 # Whether we need hard or soft links.
12326 LN_S=$lt_LN_S
12328 # A BSD-compatible nm program.
12329 NM=$lt_NM
12331 # A symbol stripping program
12332 STRIP=$lt_STRIP
12334 # Used to examine libraries when file_magic_cmd begins "file"
12335 MAGIC_CMD=$MAGIC_CMD
12337 # Used on cygwin: DLL creation program.
12338 DLLTOOL="$DLLTOOL"
12340 # Used on cygwin: object dumper.
12341 OBJDUMP="$OBJDUMP"
12343 # Used on cygwin: assembler.
12344 AS="$AS"
12346 # The name of the directory that contains temporary libtool files.
12347 objdir=$objdir
12349 # How to create reloadable object files.
12350 reload_flag=$lt_reload_flag
12351 reload_cmds=$lt_reload_cmds
12353 # How to pass a linker flag through the compiler.
12354 wl=$lt_lt_prog_compiler_wl_CXX
12356 # Object file suffix (normally "o").
12357 objext="$ac_objext"
12359 # Old archive suffix (normally "a").
12360 libext="$libext"
12362 # Shared library suffix (normally ".so").
12363 shrext_cmds='$shrext_cmds'
12365 # Executable file suffix (normally "").
12366 exeext="$exeext"
12368 # Additional compiler flags for building library objects.
12369 pic_flag=$lt_lt_prog_compiler_pic_CXX
12370 pic_mode=$pic_mode
12372 # What is the maximum length of a command?
12373 max_cmd_len=$lt_cv_sys_max_cmd_len
12375 # Does compiler simultaneously support -c and -o options?
12376 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12378 # Must we lock files when doing compilation?
12379 need_locks=$lt_need_locks
12381 # Do we need the lib prefix for modules?
12382 need_lib_prefix=$need_lib_prefix
12384 # Do we need a version for libraries?
12385 need_version=$need_version
12387 # Whether dlopen is supported.
12388 dlopen_support=$enable_dlopen
12390 # Whether dlopen of programs is supported.
12391 dlopen_self=$enable_dlopen_self
12393 # Whether dlopen of statically linked programs is supported.
12394 dlopen_self_static=$enable_dlopen_self_static
12396 # Compiler flag to prevent dynamic linking.
12397 link_static_flag=$lt_lt_prog_compiler_static_CXX
12399 # Compiler flag to turn off builtin functions.
12400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12402 # Compiler flag to allow reflexive dlopens.
12403 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12405 # Compiler flag to generate shared objects directly from archives.
12406 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12408 # Compiler flag to generate thread-safe objects.
12409 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12411 # Library versioning type.
12412 version_type=$version_type
12414 # Format of library name prefix.
12415 libname_spec=$lt_libname_spec
12417 # List of archive names.  First name is the real one, the rest are links.
12418 # The last name is the one that the linker finds with -lNAME.
12419 library_names_spec=$lt_library_names_spec
12421 # The coded name of the library, if different from the real name.
12422 soname_spec=$lt_soname_spec
12424 # Commands used to build and install an old-style archive.
12425 RANLIB=$lt_RANLIB
12426 old_archive_cmds=$lt_old_archive_cmds_CXX
12427 old_postinstall_cmds=$lt_old_postinstall_cmds
12428 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12430 # Create an old-style archive from a shared archive.
12431 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12433 # Create a temporary old-style archive to link instead of a shared archive.
12434 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12436 # Commands used to build and install a shared archive.
12437 archive_cmds=$lt_archive_cmds_CXX
12438 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12439 postinstall_cmds=$lt_postinstall_cmds
12440 postuninstall_cmds=$lt_postuninstall_cmds
12442 # Commands used to build a loadable module (assumed same as above if empty)
12443 module_cmds=$lt_module_cmds_CXX
12444 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12446 # Commands to strip libraries.
12447 old_striplib=$lt_old_striplib
12448 striplib=$lt_striplib
12450 # Dependencies to place before the objects being linked to create a
12451 # shared library.
12452 predep_objects=$lt_predep_objects_CXX
12454 # Dependencies to place after the objects being linked to create a
12455 # shared library.
12456 postdep_objects=$lt_postdep_objects_CXX
12458 # Dependencies to place before the objects being linked to create a
12459 # shared library.
12460 predeps=$lt_predeps_CXX
12462 # Dependencies to place after the objects being linked to create a
12463 # shared library.
12464 postdeps=$lt_postdeps_CXX
12466 # The library search path used internally by the compiler when linking
12467 # a shared library.
12468 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12470 # Method to check whether dependent libraries are shared objects.
12471 deplibs_check_method=$lt_deplibs_check_method
12473 # Command to use when deplibs_check_method == file_magic.
12474 file_magic_cmd=$lt_file_magic_cmd
12476 # Flag that allows shared libraries with undefined symbols to be built.
12477 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12479 # Flag that forces no undefined symbols.
12480 no_undefined_flag=$lt_no_undefined_flag_CXX
12482 # Commands used to finish a libtool library installation in a directory.
12483 finish_cmds=$lt_finish_cmds
12485 # Same as above, but a single script fragment to be evaled but not shown.
12486 finish_eval=$lt_finish_eval
12488 # Take the output of nm and produce a listing of raw symbols and C names.
12489 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12491 # Transform the output of nm in a proper C declaration
12492 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12494 # Transform the output of nm in a C name address pair
12495 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12497 # This is the shared library runtime path variable.
12498 runpath_var=$runpath_var
12500 # This is the shared library path variable.
12501 shlibpath_var=$shlibpath_var
12503 # Is shlibpath searched before the hard-coded library search path?
12504 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12506 # How to hardcode a shared library path into an executable.
12507 hardcode_action=$hardcode_action_CXX
12509 # Whether we should hardcode library paths into libraries.
12510 hardcode_into_libs=$hardcode_into_libs
12512 # Flag to hardcode \$libdir into a binary during linking.
12513 # This must work even if \$libdir does not exist.
12514 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12516 # If ld is used when linking, flag to hardcode \$libdir into
12517 # a binary during linking. This must work even if \$libdir does
12518 # not exist.
12519 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12521 # Whether we need a single -rpath flag with a separated argument.
12522 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12524 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12525 # resulting binary.
12526 hardcode_direct=$hardcode_direct_CXX
12528 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12529 # resulting binary.
12530 hardcode_minus_L=$hardcode_minus_L_CXX
12532 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12533 # the resulting binary.
12534 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12536 # Set to yes if building a shared library automatically hardcodes DIR into the library
12537 # and all subsequent libraries and executables linked against it.
12538 hardcode_automatic=$hardcode_automatic_CXX
12540 # Variables whose values should be saved in libtool wrapper scripts and
12541 # restored at relink time.
12542 variables_saved_for_relink="$variables_saved_for_relink"
12544 # Whether libtool must link a program against all its dependency libraries.
12545 link_all_deplibs=$link_all_deplibs_CXX
12547 # Compile-time system search path for libraries
12548 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12550 # Run-time system search path for libraries
12551 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12553 # Fix the shell variable \$srcfile for the compiler.
12554 fix_srcfile_path="$fix_srcfile_path_CXX"
12556 # Set to yes if exported symbols are required.
12557 always_export_symbols=$always_export_symbols_CXX
12559 # The commands to list exported symbols.
12560 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12562 # The commands to extract the exported symbol list from a shared archive.
12563 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12565 # Symbols that should not be listed in the preloaded symbols.
12566 exclude_expsyms=$lt_exclude_expsyms_CXX
12568 # Symbols that must always be exported.
12569 include_expsyms=$lt_include_expsyms_CXX
12571 # ### END LIBTOOL TAG CONFIG: $tagname
12573 __EOF__
12576 else
12577   # If there is no Makefile yet, we rely on a make rule to execute
12578   # `config.status --recheck' to rerun these tests and create the
12579   # libtool script then.
12580   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12581   if test -f "$ltmain_in"; then
12582     test -f Makefile && make "$ltmain"
12583   fi
12587 ac_ext=c
12588 ac_cpp='$CPP $CPPFLAGS'
12589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593 CC=$lt_save_CC
12594 LDCXX=$LD
12595 LD=$lt_save_LD
12596 GCC=$lt_save_GCC
12597 with_gnu_ldcxx=$with_gnu_ld
12598 with_gnu_ld=$lt_save_with_gnu_ld
12599 lt_cv_path_LDCXX=$lt_cv_path_LD
12600 lt_cv_path_LD=$lt_save_path_LD
12601 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12602 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12604         else
12605           tagname=""
12606         fi
12607         ;;
12609       F77)
12610         if test -n "$F77" && test "X$F77" != "Xno"; then
12611           :
12612         else
12613           tagname=""
12614         fi
12615         ;;
12617       GCJ)
12618         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12622 # Source file extension for Java test sources.
12623 ac_ext=java
12625 # Object file extension for compiled Java test sources.
12626 objext=o
12627 objext_GCJ=$objext
12629 # Code to be used in simple compile tests
12630 lt_simple_compile_test_code="class foo {}\n"
12632 # Code to be used in simple link tests
12633 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
12635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12637 # If no C compiler was specified, use CC.
12638 LTCC=${LTCC-"$CC"}
12640 # If no C compiler flags were specified, use CFLAGS.
12641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12643 # Allow CC to be a program name with arguments.
12644 compiler=$CC
12647 # save warnings/boilerplate of simple test code
12648 ac_outfile=conftest.$ac_objext
12649 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12651 _lt_compiler_boilerplate=`cat conftest.err`
12652 $rm conftest*
12654 ac_outfile=conftest.$ac_objext
12655 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12657 _lt_linker_boilerplate=`cat conftest.err`
12658 $rm conftest*
12661 # Allow CC to be a program name with arguments.
12662 lt_save_CC="$CC"
12663 CC=${GCJ-"gcj"}
12664 compiler=$CC
12665 compiler_GCJ=$CC
12666 for cc_temp in $compiler""; do
12667   case $cc_temp in
12668     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12669     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12670     \-*) ;;
12671     *) break;;
12672   esac
12673 done
12674 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12677 # GCJ did not exist at the time GCC didn't implicitly link libc in.
12678 archive_cmds_need_lc_GCJ=no
12680 old_archive_cmds_GCJ=$old_archive_cmds
12683 lt_prog_compiler_no_builtin_flag_GCJ=
12685 if test "$GCC" = yes; then
12686   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
12689 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12690 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12691 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12692   echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694   lt_cv_prog_compiler_rtti_exceptions=no
12695   ac_outfile=conftest.$ac_objext
12696    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12697    lt_compiler_flag="-fno-rtti -fno-exceptions"
12698    # Insert the option either (1) after the last *FLAGS variable, or
12699    # (2) before a word containing "conftest.", or (3) at the end.
12700    # Note that $ac_compile itself does not contain backslashes and begins
12701    # with a dollar sign (not a hyphen), so the echo should work correctly.
12702    # The option is referenced via a variable to avoid confusing sed.
12703    lt_compile=`echo "$ac_compile" | $SED \
12704    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12705    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12706    -e 's:$: $lt_compiler_flag:'`
12707    (eval echo "\"\$as_me:12707: $lt_compile\"" >&5)
12708    (eval "$lt_compile" 2>conftest.err)
12709    ac_status=$?
12710    cat conftest.err >&5
12711    echo "$as_me:12711: \$? = $ac_status" >&5
12712    if (exit $ac_status) && test -s "$ac_outfile"; then
12713      # The compiler can only warn and ignore the option if not recognized
12714      # So say no if there are warnings other than the usual output.
12715      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12716      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12717      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12718        lt_cv_prog_compiler_rtti_exceptions=yes
12719      fi
12720    fi
12721    $rm conftest*
12724 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12725 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12727 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12728     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
12729 else
12730     :
12735 lt_prog_compiler_wl_GCJ=
12736 lt_prog_compiler_pic_GCJ=
12737 lt_prog_compiler_static_GCJ=
12739 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12740 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12742   if test "$GCC" = yes; then
12743     lt_prog_compiler_wl_GCJ='-Wl,'
12744     lt_prog_compiler_static_GCJ='-static'
12746     case $host_os in
12747       aix*)
12748       # All AIX code is PIC.
12749       if test "$host_cpu" = ia64; then
12750         # AIX 5 now supports IA64 processor
12751         lt_prog_compiler_static_GCJ='-Bstatic'
12752       fi
12753       ;;
12755     amigaos*)
12756       # FIXME: we need at least 68020 code to build shared libraries, but
12757       # adding the `-m68020' flag to GCC prevents building anything better,
12758       # like `-m68040'.
12759       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
12760       ;;
12762     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12763       # PIC is the default for these OSes.
12764       ;;
12766     mingw* | pw32* | os2*)
12767       # This hack is so that the source file can tell whether it is being
12768       # built for inclusion in a dll (and should export symbols for example).
12769       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12770       ;;
12772     darwin* | rhapsody*)
12773       # PIC is the default on this platform
12774       # Common symbols not allowed in MH_DYLIB files
12775       lt_prog_compiler_pic_GCJ='-fno-common'
12776       ;;
12778     interix3*)
12779       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12780       # Instead, we relocate shared libraries at runtime.
12781       ;;
12783     msdosdjgpp*)
12784       # Just because we use GCC doesn't mean we suddenly get shared libraries
12785       # on systems that don't support them.
12786       lt_prog_compiler_can_build_shared_GCJ=no
12787       enable_shared=no
12788       ;;
12790     sysv4*MP*)
12791       if test -d /usr/nec; then
12792         lt_prog_compiler_pic_GCJ=-Kconform_pic
12793       fi
12794       ;;
12796     hpux*)
12797       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12798       # not for PA HP-UX.
12799       case $host_cpu in
12800       hppa*64*|ia64*)
12801         # +Z the default
12802         ;;
12803       *)
12804         lt_prog_compiler_pic_GCJ='-fPIC'
12805         ;;
12806       esac
12807       ;;
12809     *)
12810       lt_prog_compiler_pic_GCJ='-fPIC'
12811       ;;
12812     esac
12813   else
12814     # PORTME Check for flag to pass linker flags through the system compiler.
12815     case $host_os in
12816     aix*)
12817       lt_prog_compiler_wl_GCJ='-Wl,'
12818       if test "$host_cpu" = ia64; then
12819         # AIX 5 now supports IA64 processor
12820         lt_prog_compiler_static_GCJ='-Bstatic'
12821       else
12822         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
12823       fi
12824       ;;
12825       darwin*)
12826         # PIC is the default on this platform
12827         # Common symbols not allowed in MH_DYLIB files
12828        case $cc_basename in
12829          xlc*)
12830          lt_prog_compiler_pic_GCJ='-qnocommon'
12831          lt_prog_compiler_wl_GCJ='-Wl,'
12832          ;;
12833        esac
12834        ;;
12836     mingw* | pw32* | os2*)
12837       # This hack is so that the source file can tell whether it is being
12838       # built for inclusion in a dll (and should export symbols for example).
12839       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
12840       ;;
12842     hpux9* | hpux10* | hpux11*)
12843       lt_prog_compiler_wl_GCJ='-Wl,'
12844       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12845       # not for PA HP-UX.
12846       case $host_cpu in
12847       hppa*64*|ia64*)
12848         # +Z the default
12849         ;;
12850       *)
12851         lt_prog_compiler_pic_GCJ='+Z'
12852         ;;
12853       esac
12854       # Is there a better lt_prog_compiler_static that works with the bundled CC?
12855       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
12856       ;;
12858     irix5* | irix6* | nonstopux*)
12859       lt_prog_compiler_wl_GCJ='-Wl,'
12860       # PIC (with -KPIC) is the default.
12861       lt_prog_compiler_static_GCJ='-non_shared'
12862       ;;
12864     newsos6)
12865       lt_prog_compiler_pic_GCJ='-KPIC'
12866       lt_prog_compiler_static_GCJ='-Bstatic'
12867       ;;
12869     linux*)
12870       case $cc_basename in
12871       icc* | ecc*)
12872         lt_prog_compiler_wl_GCJ='-Wl,'
12873         lt_prog_compiler_pic_GCJ='-KPIC'
12874         lt_prog_compiler_static_GCJ='-static'
12875         ;;
12876       pgcc* | pgf77* | pgf90* | pgf95*)
12877         # Portland Group compilers (*not* the Pentium gcc compiler,
12878         # which looks to be a dead project)
12879         lt_prog_compiler_wl_GCJ='-Wl,'
12880         lt_prog_compiler_pic_GCJ='-fpic'
12881         lt_prog_compiler_static_GCJ='-Bstatic'
12882         ;;
12883       ccc*)
12884         lt_prog_compiler_wl_GCJ='-Wl,'
12885         # All Alpha code is PIC.
12886         lt_prog_compiler_static_GCJ='-non_shared'
12887         ;;
12888       esac
12889       ;;
12891     osf3* | osf4* | osf5*)
12892       lt_prog_compiler_wl_GCJ='-Wl,'
12893       # All OSF/1 code is PIC.
12894       lt_prog_compiler_static_GCJ='-non_shared'
12895       ;;
12897     solaris*)
12898       lt_prog_compiler_pic_GCJ='-KPIC'
12899       lt_prog_compiler_static_GCJ='-Bstatic'
12900       case $cc_basename in
12901       f77* | f90* | f95*)
12902         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
12903       *)
12904         lt_prog_compiler_wl_GCJ='-Wl,';;
12905       esac
12906       ;;
12908     sunos4*)
12909       lt_prog_compiler_wl_GCJ='-Qoption ld '
12910       lt_prog_compiler_pic_GCJ='-PIC'
12911       lt_prog_compiler_static_GCJ='-Bstatic'
12912       ;;
12914     sysv4 | sysv4.2uw2* | sysv4.3*)
12915       lt_prog_compiler_wl_GCJ='-Wl,'
12916       lt_prog_compiler_pic_GCJ='-KPIC'
12917       lt_prog_compiler_static_GCJ='-Bstatic'
12918       ;;
12920     sysv4*MP*)
12921       if test -d /usr/nec ;then
12922         lt_prog_compiler_pic_GCJ='-Kconform_pic'
12923         lt_prog_compiler_static_GCJ='-Bstatic'
12924       fi
12925       ;;
12927     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12928       lt_prog_compiler_wl_GCJ='-Wl,'
12929       lt_prog_compiler_pic_GCJ='-KPIC'
12930       lt_prog_compiler_static_GCJ='-Bstatic'
12931       ;;
12933     unicos*)
12934       lt_prog_compiler_wl_GCJ='-Wl,'
12935       lt_prog_compiler_can_build_shared_GCJ=no
12936       ;;
12938     uts4*)
12939       lt_prog_compiler_pic_GCJ='-pic'
12940       lt_prog_compiler_static_GCJ='-Bstatic'
12941       ;;
12943     *)
12944       lt_prog_compiler_can_build_shared_GCJ=no
12945       ;;
12946     esac
12947   fi
12949 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
12950 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
12953 # Check to make sure the PIC flag actually works.
12955 if test -n "$lt_prog_compiler_pic_GCJ"; then
12957 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
12958 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
12959 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
12960   echo $ECHO_N "(cached) $ECHO_C" >&6
12961 else
12962   lt_prog_compiler_pic_works_GCJ=no
12963   ac_outfile=conftest.$ac_objext
12964    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12965    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
12966    # Insert the option either (1) after the last *FLAGS variable, or
12967    # (2) before a word containing "conftest.", or (3) at the end.
12968    # Note that $ac_compile itself does not contain backslashes and begins
12969    # with a dollar sign (not a hyphen), so the echo should work correctly.
12970    # The option is referenced via a variable to avoid confusing sed.
12971    lt_compile=`echo "$ac_compile" | $SED \
12972    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12973    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12974    -e 's:$: $lt_compiler_flag:'`
12975    (eval echo "\"\$as_me:12975: $lt_compile\"" >&5)
12976    (eval "$lt_compile" 2>conftest.err)
12977    ac_status=$?
12978    cat conftest.err >&5
12979    echo "$as_me:12979: \$? = $ac_status" >&5
12980    if (exit $ac_status) && test -s "$ac_outfile"; then
12981      # The compiler can only warn and ignore the option if not recognized
12982      # So say no if there are warnings other than the usual output.
12983      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12984      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12985      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12986        lt_prog_compiler_pic_works_GCJ=yes
12987      fi
12988    fi
12989    $rm conftest*
12992 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
12993 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
12995 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
12996     case $lt_prog_compiler_pic_GCJ in
12997      "" | " "*) ;;
12998      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
12999      esac
13000 else
13001     lt_prog_compiler_pic_GCJ=
13002      lt_prog_compiler_can_build_shared_GCJ=no
13006 case $host_os in
13007   # For platforms which do not support PIC, -DPIC is meaningless:
13008   *djgpp*)
13009     lt_prog_compiler_pic_GCJ=
13010     ;;
13011   *)
13012     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
13013     ;;
13014 esac
13017 # Check to make sure the static flag actually works.
13019 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
13020 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13021 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13022 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
13023   echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025   lt_prog_compiler_static_works_GCJ=no
13026    save_LDFLAGS="$LDFLAGS"
13027    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13028    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13029    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13030      # The linker can only warn and ignore the option if not recognized
13031      # So say no if there are warnings
13032      if test -s conftest.err; then
13033        # Append any errors to the config.log.
13034        cat conftest.err 1>&5
13035        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13036        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13037        if diff conftest.exp conftest.er2 >/dev/null; then
13038          lt_prog_compiler_static_works_GCJ=yes
13039        fi
13040      else
13041        lt_prog_compiler_static_works_GCJ=yes
13042      fi
13043    fi
13044    $rm conftest*
13045    LDFLAGS="$save_LDFLAGS"
13048 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
13049 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
13051 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
13052     :
13053 else
13054     lt_prog_compiler_static_GCJ=
13058 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13059 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13060 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
13061   echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063   lt_cv_prog_compiler_c_o_GCJ=no
13064    $rm -r conftest 2>/dev/null
13065    mkdir conftest
13066    cd conftest
13067    mkdir out
13068    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13070    lt_compiler_flag="-o out/conftest2.$ac_objext"
13071    # Insert the option either (1) after the last *FLAGS variable, or
13072    # (2) before a word containing "conftest.", or (3) at the end.
13073    # Note that $ac_compile itself does not contain backslashes and begins
13074    # with a dollar sign (not a hyphen), so the echo should work correctly.
13075    lt_compile=`echo "$ac_compile" | $SED \
13076    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13077    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13078    -e 's:$: $lt_compiler_flag:'`
13079    (eval echo "\"\$as_me:13079: $lt_compile\"" >&5)
13080    (eval "$lt_compile" 2>out/conftest.err)
13081    ac_status=$?
13082    cat out/conftest.err >&5
13083    echo "$as_me:13083: \$? = $ac_status" >&5
13084    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13085    then
13086      # The compiler can only warn and ignore the option if not recognized
13087      # So say no if there are warnings
13088      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13089      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13090      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13091        lt_cv_prog_compiler_c_o_GCJ=yes
13092      fi
13093    fi
13094    chmod u+w . 2>&5
13095    $rm conftest*
13096    # SGI C++ compiler will create directory out/ii_files/ for
13097    # template instantiation
13098    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13099    $rm out/* && rmdir out
13100    cd ..
13101    rmdir conftest
13102    $rm conftest*
13105 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
13106 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
13109 hard_links="nottested"
13110 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
13111   # do not overwrite the value of need_locks provided by the user
13112   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13114   hard_links=yes
13115   $rm conftest*
13116   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13117   touch conftest.a
13118   ln conftest.a conftest.b 2>&5 || hard_links=no
13119   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13120   echo "$as_me:$LINENO: result: $hard_links" >&5
13121 echo "${ECHO_T}$hard_links" >&6
13122   if test "$hard_links" = no; then
13123     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13125     need_locks=warn
13126   fi
13127 else
13128   need_locks=no
13131 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13132 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13134   runpath_var=
13135   allow_undefined_flag_GCJ=
13136   enable_shared_with_static_runtimes_GCJ=no
13137   archive_cmds_GCJ=
13138   archive_expsym_cmds_GCJ=
13139   old_archive_From_new_cmds_GCJ=
13140   old_archive_from_expsyms_cmds_GCJ=
13141   export_dynamic_flag_spec_GCJ=
13142   whole_archive_flag_spec_GCJ=
13143   thread_safe_flag_spec_GCJ=
13144   hardcode_libdir_flag_spec_GCJ=
13145   hardcode_libdir_flag_spec_ld_GCJ=
13146   hardcode_libdir_separator_GCJ=
13147   hardcode_direct_GCJ=no
13148   hardcode_minus_L_GCJ=no
13149   hardcode_shlibpath_var_GCJ=unsupported
13150   link_all_deplibs_GCJ=unknown
13151   hardcode_automatic_GCJ=no
13152   module_cmds_GCJ=
13153   module_expsym_cmds_GCJ=
13154   always_export_symbols_GCJ=no
13155   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13156   # include_expsyms should be a list of space-separated symbols to be *always*
13157   # included in the symbol list
13158   include_expsyms_GCJ=
13159   # exclude_expsyms can be an extended regexp of symbols to exclude
13160   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13161   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13162   # as well as any symbol that contains `d'.
13163   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
13164   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13165   # platforms (ab)use it in PIC code, but their linkers get confused if
13166   # the symbol is explicitly referenced.  Since portable code cannot
13167   # rely on this symbol name, it's probably fine to never include it in
13168   # preloaded symbol tables.
13169   extract_expsyms_cmds=
13170   # Just being paranoid about ensuring that cc_basename is set.
13171   for cc_temp in $compiler""; do
13172   case $cc_temp in
13173     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13174     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13175     \-*) ;;
13176     *) break;;
13177   esac
13178 done
13179 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13181   case $host_os in
13182   cygwin* | mingw* | pw32*)
13183     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13184     # When not using gcc, we currently assume that we are using
13185     # Microsoft Visual C++.
13186     if test "$GCC" != yes; then
13187       with_gnu_ld=no
13188     fi
13189     ;;
13190   interix*)
13191     # we just hope/assume this is gcc and not c89 (= MSVC++)
13192     with_gnu_ld=yes
13193     ;;
13194   openbsd*)
13195     with_gnu_ld=no
13196     ;;
13197   esac
13199   ld_shlibs_GCJ=yes
13200   if test "$with_gnu_ld" = yes; then
13201     # If archive_cmds runs LD, not CC, wlarc should be empty
13202     wlarc='${wl}'
13204     # Set some defaults for GNU ld with shared library support. These
13205     # are reset later if shared libraries are not supported. Putting them
13206     # here allows them to be overridden if necessary.
13207     runpath_var=LD_RUN_PATH
13208     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
13209     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
13210     # ancient GNU ld didn't support --whole-archive et. al.
13211     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13212         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13213       else
13214         whole_archive_flag_spec_GCJ=
13215     fi
13216     supports_anon_versioning=no
13217     case `$LD -v 2>/dev/null` in
13218       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13219       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13220       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13221       *\ 2.11.*) ;; # other 2.11 versions
13222       *) supports_anon_versioning=yes ;;
13223     esac
13225     # See if GNU ld supports shared libraries.
13226     case $host_os in
13227     aix3* | aix4* | aix5*)
13228       # On AIX/PPC, the GNU linker is very broken
13229       if test "$host_cpu" != ia64; then
13230         ld_shlibs_GCJ=no
13231         cat <<EOF 1>&2
13233 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13234 *** to be unable to reliably create shared libraries on AIX.
13235 *** Therefore, libtool is disabling shared libraries support.  If you
13236 *** really care for shared libraries, you may want to modify your PATH
13237 *** so that a non-GNU linker is found, and then restart.
13239 EOF
13240       fi
13241       ;;
13243     amigaos*)
13244       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)'
13245       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13246       hardcode_minus_L_GCJ=yes
13248       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13249       # that the semantics of dynamic libraries on AmigaOS, at least up
13250       # to version 4, is to share data among multiple programs linked
13251       # with the same dynamic library.  Since this doesn't match the
13252       # behavior of shared libraries on other platforms, we can't use
13253       # them.
13254       ld_shlibs_GCJ=no
13255       ;;
13257     beos*)
13258       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13259         allow_undefined_flag_GCJ=unsupported
13260         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13261         # support --undefined.  This deserves some investigation.  FIXME
13262         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13263       else
13264         ld_shlibs_GCJ=no
13265       fi
13266       ;;
13268     cygwin* | mingw* | pw32*)
13269       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
13270       # as there is no search path for DLLs.
13271       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13272       allow_undefined_flag_GCJ=unsupported
13273       always_export_symbols_GCJ=no
13274       enable_shared_with_static_runtimes_GCJ=yes
13275       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13277       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13278         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13279         # If the export-symbols file already is a .def file (1st line
13280         # is EXPORTS), use it as is; otherwise, prepend...
13281         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13282           cp $export_symbols $output_objdir/$soname.def;
13283         else
13284           echo EXPORTS > $output_objdir/$soname.def;
13285           cat $export_symbols >> $output_objdir/$soname.def;
13286         fi~
13287         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13288       else
13289         ld_shlibs_GCJ=no
13290       fi
13291       ;;
13293     interix3*)
13294       hardcode_direct_GCJ=no
13295       hardcode_shlibpath_var_GCJ=no
13296       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13297       export_dynamic_flag_spec_GCJ='${wl}-E'
13298       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13299       # Instead, shared libraries are loaded at an image base (0x10000000 by
13300       # default) and relocated if they conflict, which is a slow very memory
13301       # consuming and fragmenting process.  To avoid this, we pick a random,
13302       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13303       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13304       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'
13305       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'
13306       ;;
13308     linux*)
13309       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13310         tmp_addflag=
13311         case $cc_basename,$host_cpu in
13312         pgcc*)                          # Portland Group C compiler
13313           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'
13314           tmp_addflag=' $pic_flag'
13315           ;;
13316         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13317           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'
13318           tmp_addflag=' $pic_flag -Mnomain' ;;
13319         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13320           tmp_addflag=' -i_dynamic' ;;
13321         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13322           tmp_addflag=' -i_dynamic -nofor_main' ;;
13323         ifc* | ifort*)                  # Intel Fortran compiler
13324           tmp_addflag=' -nofor_main' ;;
13325         esac
13326         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13328         if test $supports_anon_versioning = yes; then
13329           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
13330   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13331   $echo "local: *; };" >> $output_objdir/$libname.ver~
13332           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13333         fi
13334       else
13335         ld_shlibs_GCJ=no
13336       fi
13337       ;;
13339     netbsd*)
13340       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13341         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13342         wlarc=
13343       else
13344         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13345         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13346       fi
13347       ;;
13349     solaris*)
13350       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13351         ld_shlibs_GCJ=no
13352         cat <<EOF 1>&2
13354 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13355 *** create shared libraries on Solaris systems.  Therefore, libtool
13356 *** is disabling shared libraries support.  We urge you to upgrade GNU
13357 *** binutils to release 2.9.1 or newer.  Another option is to modify
13358 *** your PATH or compiler configuration so that the native linker is
13359 *** used, and then restart.
13361 EOF
13362       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13363         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13365       else
13366         ld_shlibs_GCJ=no
13367       fi
13368       ;;
13370     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13371       case `$LD -v 2>&1` in
13372         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13373         ld_shlibs_GCJ=no
13374         cat <<_LT_EOF 1>&2
13376 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13377 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13378 *** is disabling shared libraries support.  We urge you to upgrade GNU
13379 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13380 *** your PATH or compiler configuration so that the native linker is
13381 *** used, and then restart.
13383 _LT_EOF
13384         ;;
13385         *)
13386           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13387             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13388             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13389             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13390           else
13391             ld_shlibs_GCJ=no
13392           fi
13393         ;;
13394       esac
13395       ;;
13397     sunos4*)
13398       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13399       wlarc=
13400       hardcode_direct_GCJ=yes
13401       hardcode_shlibpath_var_GCJ=no
13402       ;;
13404     *)
13405       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13406         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13407         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13408       else
13409         ld_shlibs_GCJ=no
13410       fi
13411       ;;
13412     esac
13414     if test "$ld_shlibs_GCJ" = no; then
13415       runpath_var=
13416       hardcode_libdir_flag_spec_GCJ=
13417       export_dynamic_flag_spec_GCJ=
13418       whole_archive_flag_spec_GCJ=
13419     fi
13420   else
13421     # PORTME fill in a description of your system's linker (not GNU ld)
13422     case $host_os in
13423     aix3*)
13424       allow_undefined_flag_GCJ=unsupported
13425       always_export_symbols_GCJ=yes
13426       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'
13427       # Note: this linker hardcodes the directories in LIBPATH if there
13428       # are no directories specified by -L.
13429       hardcode_minus_L_GCJ=yes
13430       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13431         # Neither direct hardcoding nor static linking is supported with a
13432         # broken collect2.
13433         hardcode_direct_GCJ=unsupported
13434       fi
13435       ;;
13437     aix4* | aix5*)
13438       if test "$host_cpu" = ia64; then
13439         # On IA64, the linker does run time linking by default, so we don't
13440         # have to do anything special.
13441         aix_use_runtimelinking=no
13442         exp_sym_flag='-Bexport'
13443         no_entry_flag=""
13444       else
13445         # If we're using GNU nm, then we don't want the "-C" option.
13446         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13447         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13448           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'
13449         else
13450           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'
13451         fi
13452         aix_use_runtimelinking=no
13454         # Test if we are trying to use run time linking or normal
13455         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13456         # need to do runtime linking.
13457         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13458           for ld_flag in $LDFLAGS; do
13459           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13460             aix_use_runtimelinking=yes
13461             break
13462           fi
13463           done
13464           ;;
13465         esac
13467         exp_sym_flag='-bexport'
13468         no_entry_flag='-bnoentry'
13469       fi
13471       # When large executables or shared objects are built, AIX ld can
13472       # have problems creating the table of contents.  If linking a library
13473       # or program results in "error TOC overflow" add -mminimal-toc to
13474       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13475       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13477       archive_cmds_GCJ=''
13478       hardcode_direct_GCJ=yes
13479       hardcode_libdir_separator_GCJ=':'
13480       link_all_deplibs_GCJ=yes
13482       if test "$GCC" = yes; then
13483         case $host_os in aix4.[012]|aix4.[012].*)
13484         # We only want to do this on AIX 4.2 and lower, the check
13485         # below for broken collect2 doesn't work under 4.3+
13486           collect2name=`${CC} -print-prog-name=collect2`
13487           if test -f "$collect2name" && \
13488            strings "$collect2name" | grep resolve_lib_name >/dev/null
13489           then
13490           # We have reworked collect2
13491           hardcode_direct_GCJ=yes
13492           else
13493           # We have old collect2
13494           hardcode_direct_GCJ=unsupported
13495           # It fails to find uninstalled libraries when the uninstalled
13496           # path is not listed in the libpath.  Setting hardcode_minus_L
13497           # to unsupported forces relinking
13498           hardcode_minus_L_GCJ=yes
13499           hardcode_libdir_flag_spec_GCJ='-L$libdir'
13500           hardcode_libdir_separator_GCJ=
13501           fi
13502           ;;
13503         esac
13504         shared_flag='-shared'
13505         if test "$aix_use_runtimelinking" = yes; then
13506           shared_flag="$shared_flag "'${wl}-G'
13507         fi
13508       else
13509         # not using gcc
13510         if test "$host_cpu" = ia64; then
13511         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13512         # chokes on -Wl,-G. The following line is correct:
13513           shared_flag='-G'
13514         else
13515           if test "$aix_use_runtimelinking" = yes; then
13516             shared_flag='${wl}-G'
13517           else
13518             shared_flag='${wl}-bM:SRE'
13519           fi
13520         fi
13521       fi
13523       # It seems that -bexpall does not export symbols beginning with
13524       # underscore (_), so it is better to generate a list of symbols to export.
13525       always_export_symbols_GCJ=yes
13526       if test "$aix_use_runtimelinking" = yes; then
13527         # Warning - without using the other runtime loading flags (-brtl),
13528         # -berok will link without error, but may produce a broken library.
13529         allow_undefined_flag_GCJ='-berok'
13530        # Determine the default libpath from the value encoded in an empty executable.
13531        cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h.  */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h.  */
13538 int
13539 main ()
13542   ;
13543   return 0;
13545 _ACEOF
13546 rm -f conftest.$ac_objext conftest$ac_exeext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13548   (eval $ac_link) 2>conftest.er1
13549   ac_status=$?
13550   grep -v '^ *+' conftest.er1 >conftest.err
13551   rm -f conftest.er1
13552   cat conftest.err >&5
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); } &&
13555          { ac_try='test -z "$ac_c_werror_flag"
13556                          || test ! -s conftest.err'
13557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13558   (eval $ac_try) 2>&5
13559   ac_status=$?
13560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561   (exit $ac_status); }; } &&
13562          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13569 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13570 }'`
13571 # Check for a 64-bit object if we didn't find anything.
13572 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; }
13573 }'`; fi
13574 else
13575   echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13579 rm -f conftest.err conftest.$ac_objext \
13580       conftest$ac_exeext conftest.$ac_ext
13581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13583        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13584         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"
13585        else
13586         if test "$host_cpu" = ia64; then
13587           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
13588           allow_undefined_flag_GCJ="-z nodefs"
13589           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"
13590         else
13591          # Determine the default libpath from the value encoded in an empty executable.
13592          cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13599 int
13600 main ()
13603   ;
13604   return 0;
13606 _ACEOF
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13609   (eval $ac_link) 2>conftest.er1
13610   ac_status=$?
13611   grep -v '^ *+' conftest.er1 >conftest.err
13612   rm -f conftest.er1
13613   cat conftest.err >&5
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); } &&
13616          { ac_try='test -z "$ac_c_werror_flag"
13617                          || test ! -s conftest.err'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; } &&
13623          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13631 }'`
13632 # Check for a 64-bit object if we didn't find anything.
13633 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; }
13634 }'`; fi
13635 else
13636   echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13640 rm -f conftest.err conftest.$ac_objext \
13641       conftest$ac_exeext conftest.$ac_ext
13642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13644          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
13645           # Warning - without using the other run time loading flags,
13646           # -berok will link without error, but may produce a broken library.
13647           no_undefined_flag_GCJ=' ${wl}-bernotok'
13648           allow_undefined_flag_GCJ=' ${wl}-berok'
13649           # Exported symbols can be pulled into shared objects from archives
13650           whole_archive_flag_spec_GCJ='$convenience'
13651           archive_cmds_need_lc_GCJ=yes
13652           # This is similar to how AIX traditionally builds its shared libraries.
13653           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'
13654         fi
13655       fi
13656       ;;
13658     amigaos*)
13659       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)'
13660       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13661       hardcode_minus_L_GCJ=yes
13662       # see comment about different semantics on the GNU ld section
13663       ld_shlibs_GCJ=no
13664       ;;
13666     bsdi[45]*)
13667       export_dynamic_flag_spec_GCJ=-rdynamic
13668       ;;
13670     cygwin* | mingw* | pw32*)
13671       # When not using gcc, we currently assume that we are using
13672       # Microsoft Visual C++.
13673       # hardcode_libdir_flag_spec is actually meaningless, as there is
13674       # no search path for DLLs.
13675       hardcode_libdir_flag_spec_GCJ=' '
13676       allow_undefined_flag_GCJ=unsupported
13677       # Tell ltmain to make .lib files, not .a files.
13678       libext=lib
13679       # Tell ltmain to make .dll files, not .so files.
13680       shrext_cmds=".dll"
13681       # FIXME: Setting linknames here is a bad hack.
13682       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13683       # The linker will automatically build a .lib file if we build a DLL.
13684       old_archive_From_new_cmds_GCJ='true'
13685       # FIXME: Should let the user specify the lib program.
13686       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
13687       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
13688       enable_shared_with_static_runtimes_GCJ=yes
13689       ;;
13691     darwin* | rhapsody*)
13692       case $host_os in
13693         rhapsody* | darwin1.[012])
13694          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
13695          ;;
13696        *) # Darwin 1.3 on
13697          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13698            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13699          else
13700            case ${MACOSX_DEPLOYMENT_TARGET} in
13701              10.[012])
13702                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13703                ;;
13704              10.*)
13705                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
13706                ;;
13707            esac
13708          fi
13709          ;;
13710       esac
13711       archive_cmds_need_lc_GCJ=no
13712       hardcode_direct_GCJ=no
13713       hardcode_automatic_GCJ=yes
13714       hardcode_shlibpath_var_GCJ=unsupported
13715       whole_archive_flag_spec_GCJ=''
13716       link_all_deplibs_GCJ=yes
13717     if test "$GCC" = yes ; then
13718         output_verbose_link_cmd='echo'
13719         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13720       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13721       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13722       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}'
13723       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}'
13724     else
13725       case $cc_basename in
13726         xlc*)
13727          output_verbose_link_cmd='echo'
13728          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13729          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13730           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13731          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}'
13732           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}'
13733           ;;
13734        *)
13735          ld_shlibs_GCJ=no
13736           ;;
13737       esac
13738     fi
13739       ;;
13741     dgux*)
13742       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13743       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13744       hardcode_shlibpath_var_GCJ=no
13745       ;;
13747     freebsd1*)
13748       ld_shlibs_GCJ=no
13749       ;;
13751     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13752     # support.  Future versions do this automatically, but an explicit c++rt0.o
13753     # does not break anything, and helps significantly (at the cost of a little
13754     # extra space).
13755     freebsd2.2*)
13756       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13757       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13758       hardcode_direct_GCJ=yes
13759       hardcode_shlibpath_var_GCJ=no
13760       ;;
13762     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13763     freebsd2*)
13764       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13765       hardcode_direct_GCJ=yes
13766       hardcode_minus_L_GCJ=yes
13767       hardcode_shlibpath_var_GCJ=no
13768       ;;
13770     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13771     freebsd* | kfreebsd*-gnu | dragonfly*)
13772       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13773       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13774       hardcode_direct_GCJ=yes
13775       hardcode_shlibpath_var_GCJ=no
13776       ;;
13778     hpux9*)
13779       if test "$GCC" = yes; then
13780         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'
13781       else
13782         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'
13783       fi
13784       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13785       hardcode_libdir_separator_GCJ=:
13786       hardcode_direct_GCJ=yes
13788       # hardcode_minus_L: Not really in the search PATH,
13789       # but as the default location of the library.
13790       hardcode_minus_L_GCJ=yes
13791       export_dynamic_flag_spec_GCJ='${wl}-E'
13792       ;;
13794     hpux10*)
13795       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13796         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13797       else
13798         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13799       fi
13800       if test "$with_gnu_ld" = no; then
13801         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13802         hardcode_libdir_separator_GCJ=:
13804         hardcode_direct_GCJ=yes
13805         export_dynamic_flag_spec_GCJ='${wl}-E'
13807         # hardcode_minus_L: Not really in the search PATH,
13808         # but as the default location of the library.
13809         hardcode_minus_L_GCJ=yes
13810       fi
13811       ;;
13813     hpux11*)
13814       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13815         case $host_cpu in
13816         hppa*64*)
13817           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13818           ;;
13819         ia64*)
13820           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13821           ;;
13822         *)
13823           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13824           ;;
13825         esac
13826       else
13827         case $host_cpu in
13828         hppa*64*)
13829           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13830           ;;
13831         ia64*)
13832           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13833           ;;
13834         *)
13835           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13836           ;;
13837         esac
13838       fi
13839       if test "$with_gnu_ld" = no; then
13840         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
13841         hardcode_libdir_separator_GCJ=:
13843         case $host_cpu in
13844         hppa*64*|ia64*)
13845           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
13846           hardcode_direct_GCJ=no
13847           hardcode_shlibpath_var_GCJ=no
13848           ;;
13849         *)
13850           hardcode_direct_GCJ=yes
13851           export_dynamic_flag_spec_GCJ='${wl}-E'
13853           # hardcode_minus_L: Not really in the search PATH,
13854           # but as the default location of the library.
13855           hardcode_minus_L_GCJ=yes
13856           ;;
13857         esac
13858       fi
13859       ;;
13861     irix5* | irix6* | nonstopux*)
13862       if test "$GCC" = yes; then
13863         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'
13864       else
13865         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'
13866         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
13867       fi
13868       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13869       hardcode_libdir_separator_GCJ=:
13870       link_all_deplibs_GCJ=yes
13871       ;;
13873     netbsd*)
13874       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13875         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13876       else
13877         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13878       fi
13879       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13880       hardcode_direct_GCJ=yes
13881       hardcode_shlibpath_var_GCJ=no
13882       ;;
13884     newsos6)
13885       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13886       hardcode_direct_GCJ=yes
13887       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13888       hardcode_libdir_separator_GCJ=:
13889       hardcode_shlibpath_var_GCJ=no
13890       ;;
13892     openbsd*)
13893       hardcode_direct_GCJ=yes
13894       hardcode_shlibpath_var_GCJ=no
13895       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13896         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13897         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13898         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13899         export_dynamic_flag_spec_GCJ='${wl}-E'
13900       else
13901        case $host_os in
13902          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13903            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13904            hardcode_libdir_flag_spec_GCJ='-R$libdir'
13905            ;;
13906          *)
13907            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13908            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
13909            ;;
13910        esac
13911       fi
13912       ;;
13914     os2*)
13915       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13916       hardcode_minus_L_GCJ=yes
13917       allow_undefined_flag_GCJ=unsupported
13918       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'
13919       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13920       ;;
13922     osf3*)
13923       if test "$GCC" = yes; then
13924         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13925         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'
13926       else
13927         allow_undefined_flag_GCJ=' -expect_unresolved \*'
13928         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'
13929       fi
13930       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13931       hardcode_libdir_separator_GCJ=:
13932       ;;
13934     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13935       if test "$GCC" = yes; then
13936         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
13937         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'
13938         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
13939       else
13940         allow_undefined_flag_GCJ=' -expect_unresolved \*'
13941         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'
13942         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~
13943         $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'
13945         # Both c and cxx compiler support -rpath directly
13946         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
13947       fi
13948       hardcode_libdir_separator_GCJ=:
13949       ;;
13951     solaris*)
13952       no_undefined_flag_GCJ=' -z text'
13953       if test "$GCC" = yes; then
13954         wlarc='${wl}'
13955         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13956         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13957           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13958       else
13959         wlarc=''
13960         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13961         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13962         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13963       fi
13964       hardcode_libdir_flag_spec_GCJ='-R$libdir'
13965       hardcode_shlibpath_var_GCJ=no
13966       case $host_os in
13967       solaris2.[0-5] | solaris2.[0-5].*) ;;
13968       *)
13969         # The compiler driver will combine linker options so we
13970         # cannot just pass the convience library names through
13971         # without $wl, iff we do not link with $LD.
13972         # Luckily, gcc supports the same syntax we need for Sun Studio.
13973         # Supported since Solaris 2.6 (maybe 2.5.1?)
13974         case $wlarc in
13975         '')
13976           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
13977         *)
13978           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' ;;
13979         esac ;;
13980       esac
13981       link_all_deplibs_GCJ=yes
13982       ;;
13984     sunos4*)
13985       if test "x$host_vendor" = xsequent; then
13986         # Use $CC to link under sequent, because it throws in some extra .o
13987         # files that make .init and .fini sections work.
13988         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13989       else
13990         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13991       fi
13992       hardcode_libdir_flag_spec_GCJ='-L$libdir'
13993       hardcode_direct_GCJ=yes
13994       hardcode_minus_L_GCJ=yes
13995       hardcode_shlibpath_var_GCJ=no
13996       ;;
13998     sysv4)
13999       case $host_vendor in
14000         sni)
14001           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14002           hardcode_direct_GCJ=yes # is this really true???
14003         ;;
14004         siemens)
14005           ## LD is ld it makes a PLAMLIB
14006           ## CC just makes a GrossModule.
14007           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14008           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
14009           hardcode_direct_GCJ=no
14010         ;;
14011         motorola)
14012           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14013           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
14014         ;;
14015       esac
14016       runpath_var='LD_RUN_PATH'
14017       hardcode_shlibpath_var_GCJ=no
14018       ;;
14020     sysv4.3*)
14021       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14022       hardcode_shlibpath_var_GCJ=no
14023       export_dynamic_flag_spec_GCJ='-Bexport'
14024       ;;
14026     sysv4*MP*)
14027       if test -d /usr/nec; then
14028         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14029         hardcode_shlibpath_var_GCJ=no
14030         runpath_var=LD_RUN_PATH
14031         hardcode_runpath_var=yes
14032         ld_shlibs_GCJ=yes
14033       fi
14034       ;;
14036     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14037       no_undefined_flag_GCJ='${wl}-z,text'
14038       archive_cmds_need_lc_GCJ=no
14039       hardcode_shlibpath_var_GCJ=no
14040       runpath_var='LD_RUN_PATH'
14042       if test "$GCC" = yes; then
14043         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14044         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14045       else
14046         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14047         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14048       fi
14049       ;;
14051     sysv5* | sco3.2v5* | sco5v6*)
14052       # Note: We can NOT use -z defs as we might desire, because we do not
14053       # link with -lc, and that would cause any symbols used from libc to
14054       # always be unresolved, which means just about no library would
14055       # ever link correctly.  If we're not using GNU ld we use -z text
14056       # though, which does catch some bad symbols but isn't as heavy-handed
14057       # as -z defs.
14058       no_undefined_flag_GCJ='${wl}-z,text'
14059       allow_undefined_flag_GCJ='${wl}-z,nodefs'
14060       archive_cmds_need_lc_GCJ=no
14061       hardcode_shlibpath_var_GCJ=no
14062       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14063       hardcode_libdir_separator_GCJ=':'
14064       link_all_deplibs_GCJ=yes
14065       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
14066       runpath_var='LD_RUN_PATH'
14068       if test "$GCC" = yes; then
14069         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14070         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14071       else
14072         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14073         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14074       fi
14075       ;;
14077     uts4*)
14078       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14079       hardcode_libdir_flag_spec_GCJ='-L$libdir'
14080       hardcode_shlibpath_var_GCJ=no
14081       ;;
14083     *)
14084       ld_shlibs_GCJ=no
14085       ;;
14086     esac
14087   fi
14089 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
14090 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
14091 test "$ld_shlibs_GCJ" = no && can_build_shared=no
14094 # Do we need to explicitly link libc?
14096 case "x$archive_cmds_need_lc_GCJ" in
14097 x|xyes)
14098   # Assume -lc should be added
14099   archive_cmds_need_lc_GCJ=yes
14101   if test "$enable_shared" = yes && test "$GCC" = yes; then
14102     case $archive_cmds_GCJ in
14103     *'~'*)
14104       # FIXME: we may have to deal with multi-command sequences.
14105       ;;
14106     '$CC '*)
14107       # Test whether the compiler implicitly links with -lc since on some
14108       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14109       # to ld, don't add -lc before -lgcc.
14110       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14111 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14112       $rm conftest*
14113       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14115       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14116   (eval $ac_compile) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } 2>conftest.err; then
14120         soname=conftest
14121         lib=conftest
14122         libobjs=conftest.$ac_objext
14123         deplibs=
14124         wl=$lt_prog_compiler_wl_GCJ
14125         pic_flag=$lt_prog_compiler_pic_GCJ
14126         compiler_flags=-v
14127         linker_flags=-v
14128         verstring=
14129         output_objdir=.
14130         libname=conftest
14131         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
14132         allow_undefined_flag_GCJ=
14133         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14134   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); }
14138         then
14139           archive_cmds_need_lc_GCJ=no
14140         else
14141           archive_cmds_need_lc_GCJ=yes
14142         fi
14143         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
14144       else
14145         cat conftest.err 1>&5
14146       fi
14147       $rm conftest*
14148       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
14149 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
14150       ;;
14151     esac
14152   fi
14153   ;;
14154 esac
14156 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14157 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14158 library_names_spec=
14159 libname_spec='lib$name'
14160 soname_spec=
14161 shrext_cmds=".so"
14162 postinstall_cmds=
14163 postuninstall_cmds=
14164 finish_cmds=
14165 finish_eval=
14166 shlibpath_var=
14167 shlibpath_overrides_runpath=unknown
14168 version_type=none
14169 dynamic_linker="$host_os ld.so"
14170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14171 if test "$GCC" = yes; then
14172   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14173   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14174     # if the path contains ";" then we assume it to be the separator
14175     # otherwise default to the standard path separator (i.e. ":") - it is
14176     # assumed that no part of a normal pathname contains ";" but that should
14177     # okay in the real world where ";" in dirpaths is itself problematic.
14178     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14179   else
14180     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14181   fi
14182 else
14183   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14185 need_lib_prefix=unknown
14186 hardcode_into_libs=no
14188 # when you set need_version to no, make sure it does not cause -set_version
14189 # flags to be left without arguments
14190 need_version=unknown
14192 case $host_os in
14193 aix3*)
14194   version_type=linux
14195   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14196   shlibpath_var=LIBPATH
14198   # AIX 3 has no versioning support, so we append a major version to the name.
14199   soname_spec='${libname}${release}${shared_ext}$major'
14200   ;;
14202 aix4* | aix5*)
14203   version_type=linux
14204   need_lib_prefix=no
14205   need_version=no
14206   hardcode_into_libs=yes
14207   if test "$host_cpu" = ia64; then
14208     # AIX 5 supports IA64
14209     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14210     shlibpath_var=LD_LIBRARY_PATH
14211   else
14212     # With GCC up to 2.95.x, collect2 would create an import file
14213     # for dependence libraries.  The import file would start with
14214     # the line `#! .'.  This would cause the generated library to
14215     # depend on `.', always an invalid library.  This was fixed in
14216     # development snapshots of GCC prior to 3.0.
14217     case $host_os in
14218       aix4 | aix4.[01] | aix4.[01].*)
14219       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14220            echo ' yes '
14221            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14222         :
14223       else
14224         can_build_shared=no
14225       fi
14226       ;;
14227     esac
14228     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14229     # soname into executable. Probably we can add versioning support to
14230     # collect2, so additional links can be useful in future.
14231     if test "$aix_use_runtimelinking" = yes; then
14232       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14233       # instead of lib<name>.a to let people know that these are not
14234       # typical AIX shared libraries.
14235       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14236     else
14237       # We preserve .a as extension for shared libraries through AIX4.2
14238       # and later when we are not doing run time linking.
14239       library_names_spec='${libname}${release}.a $libname.a'
14240       soname_spec='${libname}${release}${shared_ext}$major'
14241     fi
14242     shlibpath_var=LIBPATH
14243   fi
14244   ;;
14246 amigaos*)
14247   library_names_spec='$libname.ixlibrary $libname.a'
14248   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14249   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'
14250   ;;
14252 beos*)
14253   library_names_spec='${libname}${shared_ext}'
14254   dynamic_linker="$host_os ld.so"
14255   shlibpath_var=LIBRARY_PATH
14256   ;;
14258 bsdi[45]*)
14259   version_type=linux
14260   need_version=no
14261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262   soname_spec='${libname}${release}${shared_ext}$major'
14263   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14264   shlibpath_var=LD_LIBRARY_PATH
14265   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14266   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14267   # the default ld.so.conf also contains /usr/contrib/lib and
14268   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14269   # libtool to hard-code these into programs
14270   ;;
14272 cygwin* | mingw* | pw32*)
14273   version_type=windows
14274   shrext_cmds=".dll"
14275   need_version=no
14276   need_lib_prefix=no
14278   case $GCC,$host_os in
14279   yes,cygwin* | yes,mingw* | yes,pw32*)
14280     library_names_spec='$libname.dll.a'
14281     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14282     postinstall_cmds='base_file=`basename \${file}`~
14283       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14284       dldir=$destdir/`dirname \$dlpath`~
14285       test -d \$dldir || mkdir -p \$dldir~
14286       $install_prog $dir/$dlname \$dldir/$dlname~
14287       chmod a+x \$dldir/$dlname'
14288     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14289       dlpath=$dir/\$dldll~
14290        $rm \$dlpath'
14291     shlibpath_overrides_runpath=yes
14293     case $host_os in
14294     cygwin*)
14295       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14296       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14297       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14298       ;;
14299     mingw*)
14300       # MinGW DLLs use traditional 'lib' prefix
14301       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14303       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14304         # It is most probably a Windows format PATH printed by
14305         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14306         # path with ; separators, and with drive letters. We can handle the
14307         # drive letters (cygwin fileutils understands them), so leave them,
14308         # especially as we might pass files found there to a mingw objdump,
14309         # which wouldn't understand a cygwinified path. Ahh.
14310         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14311       else
14312         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14313       fi
14314       ;;
14315     pw32*)
14316       # pw32 DLLs use 'pw' prefix rather than 'lib'
14317       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14318       ;;
14319     esac
14320     ;;
14322   *)
14323     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14324     ;;
14325   esac
14326   dynamic_linker='Win32 ld.exe'
14327   # FIXME: first we should search . and the directory the executable is in
14328   shlibpath_var=PATH
14329   ;;
14331 darwin* | rhapsody*)
14332   dynamic_linker="$host_os dyld"
14333   version_type=darwin
14334   need_lib_prefix=no
14335   need_version=no
14336   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14337   soname_spec='${libname}${release}${major}$shared_ext'
14338   shlibpath_overrides_runpath=yes
14339   shlibpath_var=DYLD_LIBRARY_PATH
14340   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14341   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14342   if test "$GCC" = yes; then
14343     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"`
14344   else
14345     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14346   fi
14347   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14348   ;;
14350 dgux*)
14351   version_type=linux
14352   need_lib_prefix=no
14353   need_version=no
14354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14355   soname_spec='${libname}${release}${shared_ext}$major'
14356   shlibpath_var=LD_LIBRARY_PATH
14357   ;;
14359 freebsd1*)
14360   dynamic_linker=no
14361   ;;
14363 kfreebsd*-gnu)
14364   version_type=linux
14365   need_lib_prefix=no
14366   need_version=no
14367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14368   soname_spec='${libname}${release}${shared_ext}$major'
14369   shlibpath_var=LD_LIBRARY_PATH
14370   shlibpath_overrides_runpath=no
14371   hardcode_into_libs=yes
14372   dynamic_linker='GNU ld.so'
14373   ;;
14375 freebsd* | dragonfly*)
14376   # DragonFly does not have aout.  When/if they implement a new
14377   # versioning mechanism, adjust this.
14378   if test -x /usr/bin/objformat; then
14379     objformat=`/usr/bin/objformat`
14380   else
14381     case $host_os in
14382     freebsd[123]*) objformat=aout ;;
14383     *) objformat=elf ;;
14384     esac
14385   fi
14386   version_type=freebsd-$objformat
14387   case $version_type in
14388     freebsd-elf*)
14389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14390       need_version=no
14391       need_lib_prefix=no
14392       ;;
14393     freebsd-*)
14394       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14395       need_version=yes
14396       ;;
14397   esac
14398   shlibpath_var=LD_LIBRARY_PATH
14399   case $host_os in
14400   freebsd2*)
14401     shlibpath_overrides_runpath=yes
14402     ;;
14403   freebsd3.[01]* | freebsdelf3.[01]*)
14404     shlibpath_overrides_runpath=yes
14405     hardcode_into_libs=yes
14406     ;;
14407   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14408   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14409     shlibpath_overrides_runpath=no
14410     hardcode_into_libs=yes
14411     ;;
14412   freebsd*) # from 4.6 on
14413     shlibpath_overrides_runpath=yes
14414     hardcode_into_libs=yes
14415     ;;
14416   esac
14417   ;;
14419 gnu*)
14420   version_type=linux
14421   need_lib_prefix=no
14422   need_version=no
14423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14424   soname_spec='${libname}${release}${shared_ext}$major'
14425   shlibpath_var=LD_LIBRARY_PATH
14426   hardcode_into_libs=yes
14427   ;;
14429 hpux9* | hpux10* | hpux11*)
14430   # Give a soname corresponding to the major version so that dld.sl refuses to
14431   # link against other versions.
14432   version_type=sunos
14433   need_lib_prefix=no
14434   need_version=no
14435   case $host_cpu in
14436   ia64*)
14437     shrext_cmds='.so'
14438     hardcode_into_libs=yes
14439     dynamic_linker="$host_os dld.so"
14440     shlibpath_var=LD_LIBRARY_PATH
14441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14443     soname_spec='${libname}${release}${shared_ext}$major'
14444     if test "X$HPUX_IA64_MODE" = X32; then
14445       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14446     else
14447       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14448     fi
14449     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14450     ;;
14451    hppa*64*)
14452      shrext_cmds='.sl'
14453      hardcode_into_libs=yes
14454      dynamic_linker="$host_os dld.sl"
14455      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14456      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14457      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14458      soname_spec='${libname}${release}${shared_ext}$major'
14459      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14460      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14461      ;;
14462    *)
14463     shrext_cmds='.sl'
14464     dynamic_linker="$host_os dld.sl"
14465     shlibpath_var=SHLIB_PATH
14466     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468     soname_spec='${libname}${release}${shared_ext}$major'
14469     ;;
14470   esac
14471   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14472   postinstall_cmds='chmod 555 $lib'
14473   ;;
14475 interix3*)
14476   version_type=linux
14477   need_lib_prefix=no
14478   need_version=no
14479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14480   soname_spec='${libname}${release}${shared_ext}$major'
14481   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14482   shlibpath_var=LD_LIBRARY_PATH
14483   shlibpath_overrides_runpath=no
14484   hardcode_into_libs=yes
14485   ;;
14487 irix5* | irix6* | nonstopux*)
14488   case $host_os in
14489     nonstopux*) version_type=nonstopux ;;
14490     *)
14491         if test "$lt_cv_prog_gnu_ld" = yes; then
14492                 version_type=linux
14493         else
14494                 version_type=irix
14495         fi ;;
14496   esac
14497   need_lib_prefix=no
14498   need_version=no
14499   soname_spec='${libname}${release}${shared_ext}$major'
14500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14501   case $host_os in
14502   irix5* | nonstopux*)
14503     libsuff= shlibsuff=
14504     ;;
14505   *)
14506     case $LD in # libtool.m4 will add one of these switches to LD
14507     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14508       libsuff= shlibsuff= libmagic=32-bit;;
14509     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14510       libsuff=32 shlibsuff=N32 libmagic=N32;;
14511     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14512       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14513     *) libsuff= shlibsuff= libmagic=never-match;;
14514     esac
14515     ;;
14516   esac
14517   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14518   shlibpath_overrides_runpath=no
14519   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14520   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14521   hardcode_into_libs=yes
14522   ;;
14524 # No shared lib support for Linux oldld, aout, or coff.
14525 linux*oldld* | linux*aout* | linux*coff*)
14526   dynamic_linker=no
14527   ;;
14529 # This must be Linux ELF.
14530 linux*)
14531   version_type=linux
14532   need_lib_prefix=no
14533   need_version=no
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535   soname_spec='${libname}${release}${shared_ext}$major'
14536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14537   shlibpath_var=LD_LIBRARY_PATH
14538   shlibpath_overrides_runpath=no
14539   # This implies no fast_install, which is unacceptable.
14540   # Some rework will be needed to allow for fast_install
14541   # before this can be enabled.
14542   hardcode_into_libs=yes
14544   # Append ld.so.conf contents to the search path
14545   if test -f /etc/ld.so.conf; then
14546     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' ' '`
14547     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14548   fi
14550   # We used to test for /lib/ld.so.1 and disable shared libraries on
14551   # powerpc, because MkLinux only supported shared libraries with the
14552   # GNU dynamic linker.  Since this was broken with cross compilers,
14553   # most powerpc-linux boxes support dynamic linking these days and
14554   # people can always --disable-shared, the test was removed, and we
14555   # assume the GNU/Linux dynamic linker is in use.
14556   dynamic_linker='GNU/Linux ld.so'
14557   ;;
14559 knetbsd*-gnu)
14560   version_type=linux
14561   need_lib_prefix=no
14562   need_version=no
14563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14564   soname_spec='${libname}${release}${shared_ext}$major'
14565   shlibpath_var=LD_LIBRARY_PATH
14566   shlibpath_overrides_runpath=no
14567   hardcode_into_libs=yes
14568   dynamic_linker='GNU ld.so'
14569   ;;
14571 netbsd*)
14572   version_type=sunos
14573   need_lib_prefix=no
14574   need_version=no
14575   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14577     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14578     dynamic_linker='NetBSD (a.out) ld.so'
14579   else
14580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14581     soname_spec='${libname}${release}${shared_ext}$major'
14582     dynamic_linker='NetBSD ld.elf_so'
14583   fi
14584   shlibpath_var=LD_LIBRARY_PATH
14585   shlibpath_overrides_runpath=yes
14586   hardcode_into_libs=yes
14587   ;;
14589 newsos6)
14590   version_type=linux
14591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592   shlibpath_var=LD_LIBRARY_PATH
14593   shlibpath_overrides_runpath=yes
14594   ;;
14596 nto-qnx*)
14597   version_type=linux
14598   need_lib_prefix=no
14599   need_version=no
14600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601   soname_spec='${libname}${release}${shared_ext}$major'
14602   shlibpath_var=LD_LIBRARY_PATH
14603   shlibpath_overrides_runpath=yes
14604   ;;
14606 openbsd*)
14607   version_type=sunos
14608   sys_lib_dlsearch_path_spec="/usr/lib"
14609   need_lib_prefix=no
14610   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14611   case $host_os in
14612     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14613     *)                         need_version=no  ;;
14614   esac
14615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14616   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14617   shlibpath_var=LD_LIBRARY_PATH
14618   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14619     case $host_os in
14620       openbsd2.[89] | openbsd2.[89].*)
14621         shlibpath_overrides_runpath=no
14622         ;;
14623       *)
14624         shlibpath_overrides_runpath=yes
14625         ;;
14626       esac
14627   else
14628     shlibpath_overrides_runpath=yes
14629   fi
14630   ;;
14632 os2*)
14633   libname_spec='$name'
14634   shrext_cmds=".dll"
14635   need_lib_prefix=no
14636   library_names_spec='$libname${shared_ext} $libname.a'
14637   dynamic_linker='OS/2 ld.exe'
14638   shlibpath_var=LIBPATH
14639   ;;
14641 osf3* | osf4* | osf5*)
14642   version_type=osf
14643   need_lib_prefix=no
14644   need_version=no
14645   soname_spec='${libname}${release}${shared_ext}$major'
14646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647   shlibpath_var=LD_LIBRARY_PATH
14648   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14649   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14650   ;;
14652 solaris*)
14653   version_type=linux
14654   need_lib_prefix=no
14655   need_version=no
14656   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657   soname_spec='${libname}${release}${shared_ext}$major'
14658   shlibpath_var=LD_LIBRARY_PATH
14659   shlibpath_overrides_runpath=yes
14660   hardcode_into_libs=yes
14661   # ldd complains unless libraries are executable
14662   postinstall_cmds='chmod +x $lib'
14663   ;;
14665 sunos4*)
14666   version_type=sunos
14667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14668   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14669   shlibpath_var=LD_LIBRARY_PATH
14670   shlibpath_overrides_runpath=yes
14671   if test "$with_gnu_ld" = yes; then
14672     need_lib_prefix=no
14673   fi
14674   need_version=yes
14675   ;;
14677 sysv4 | sysv4.3*)
14678   version_type=linux
14679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680   soname_spec='${libname}${release}${shared_ext}$major'
14681   shlibpath_var=LD_LIBRARY_PATH
14682   case $host_vendor in
14683     sni)
14684       shlibpath_overrides_runpath=no
14685       need_lib_prefix=no
14686       export_dynamic_flag_spec='${wl}-Blargedynsym'
14687       runpath_var=LD_RUN_PATH
14688       ;;
14689     siemens)
14690       need_lib_prefix=no
14691       ;;
14692     motorola)
14693       need_lib_prefix=no
14694       need_version=no
14695       shlibpath_overrides_runpath=no
14696       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14697       ;;
14698   esac
14699   ;;
14701 sysv4*MP*)
14702   if test -d /usr/nec ;then
14703     version_type=linux
14704     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14705     soname_spec='$libname${shared_ext}.$major'
14706     shlibpath_var=LD_LIBRARY_PATH
14707   fi
14708   ;;
14710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14711   version_type=freebsd-elf
14712   need_lib_prefix=no
14713   need_version=no
14714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14715   soname_spec='${libname}${release}${shared_ext}$major'
14716   shlibpath_var=LD_LIBRARY_PATH
14717   hardcode_into_libs=yes
14718   if test "$with_gnu_ld" = yes; then
14719     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14720     shlibpath_overrides_runpath=no
14721   else
14722     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14723     shlibpath_overrides_runpath=yes
14724     case $host_os in
14725       sco3.2v5*)
14726         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14727         ;;
14728     esac
14729   fi
14730   sys_lib_dlsearch_path_spec='/usr/lib'
14731   ;;
14733 uts4*)
14734   version_type=linux
14735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736   soname_spec='${libname}${release}${shared_ext}$major'
14737   shlibpath_var=LD_LIBRARY_PATH
14738   ;;
14741   dynamic_linker=no
14742   ;;
14743 esac
14744 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14745 echo "${ECHO_T}$dynamic_linker" >&6
14746 test "$dynamic_linker" = no && can_build_shared=no
14748 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14749 if test "$GCC" = yes; then
14750   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14753 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14754 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14755 hardcode_action_GCJ=
14756 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
14757    test -n "$runpath_var_GCJ" || \
14758    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
14760   # We can hardcode non-existant directories.
14761   if test "$hardcode_direct_GCJ" != no &&
14762      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14763      # have to relink, otherwise we might link with an installed library
14764      # when we should be linking with a yet-to-be-installed one
14765      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
14766      test "$hardcode_minus_L_GCJ" != no; then
14767     # Linking always hardcodes the temporary library directory.
14768     hardcode_action_GCJ=relink
14769   else
14770     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14771     hardcode_action_GCJ=immediate
14772   fi
14773 else
14774   # We cannot hardcode anything, or else we can only hardcode existing
14775   # directories.
14776   hardcode_action_GCJ=unsupported
14778 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
14779 echo "${ECHO_T}$hardcode_action_GCJ" >&6
14781 if test "$hardcode_action_GCJ" = relink; then
14782   # Fast installation is not supported
14783   enable_fast_install=no
14784 elif test "$shlibpath_overrides_runpath" = yes ||
14785      test "$enable_shared" = no; then
14786   # Fast installation is not necessary
14787   enable_fast_install=needless
14791 # The else clause should only fire when bootstrapping the
14792 # libtool distribution, otherwise you forgot to ship ltmain.sh
14793 # with your package, and you will get complaints that there are
14794 # no rules to generate ltmain.sh.
14795 if test -f "$ltmain"; then
14796   # See if we are running on zsh, and set the options which allow our commands through
14797   # without removal of \ escapes.
14798   if test -n "${ZSH_VERSION+set}" ; then
14799     setopt NO_GLOB_SUBST
14800   fi
14801   # Now quote all the things that may contain metacharacters while being
14802   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14803   # variables and quote the copies for generation of the libtool script.
14804   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14805     SED SHELL STRIP \
14806     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14807     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14808     deplibs_check_method reload_flag reload_cmds need_locks \
14809     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14810     lt_cv_sys_global_symbol_to_c_name_address \
14811     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14812     old_postinstall_cmds old_postuninstall_cmds \
14813     compiler_GCJ \
14814     CC_GCJ \
14815     LD_GCJ \
14816     lt_prog_compiler_wl_GCJ \
14817     lt_prog_compiler_pic_GCJ \
14818     lt_prog_compiler_static_GCJ \
14819     lt_prog_compiler_no_builtin_flag_GCJ \
14820     export_dynamic_flag_spec_GCJ \
14821     thread_safe_flag_spec_GCJ \
14822     whole_archive_flag_spec_GCJ \
14823     enable_shared_with_static_runtimes_GCJ \
14824     old_archive_cmds_GCJ \
14825     old_archive_from_new_cmds_GCJ \
14826     predep_objects_GCJ \
14827     postdep_objects_GCJ \
14828     predeps_GCJ \
14829     postdeps_GCJ \
14830     compiler_lib_search_path_GCJ \
14831     archive_cmds_GCJ \
14832     archive_expsym_cmds_GCJ \
14833     postinstall_cmds_GCJ \
14834     postuninstall_cmds_GCJ \
14835     old_archive_from_expsyms_cmds_GCJ \
14836     allow_undefined_flag_GCJ \
14837     no_undefined_flag_GCJ \
14838     export_symbols_cmds_GCJ \
14839     hardcode_libdir_flag_spec_GCJ \
14840     hardcode_libdir_flag_spec_ld_GCJ \
14841     hardcode_libdir_separator_GCJ \
14842     hardcode_automatic_GCJ \
14843     module_cmds_GCJ \
14844     module_expsym_cmds_GCJ \
14845     lt_cv_prog_compiler_c_o_GCJ \
14846     exclude_expsyms_GCJ \
14847     include_expsyms_GCJ; do
14849     case $var in
14850     old_archive_cmds_GCJ | \
14851     old_archive_from_new_cmds_GCJ | \
14852     archive_cmds_GCJ | \
14853     archive_expsym_cmds_GCJ | \
14854     module_cmds_GCJ | \
14855     module_expsym_cmds_GCJ | \
14856     old_archive_from_expsyms_cmds_GCJ | \
14857     export_symbols_cmds_GCJ | \
14858     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14859     postinstall_cmds | postuninstall_cmds | \
14860     old_postinstall_cmds | old_postuninstall_cmds | \
14861     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14862       # Double-quote double-evaled strings.
14863       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14864       ;;
14865     *)
14866       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14867       ;;
14868     esac
14869   done
14871   case $lt_echo in
14872   *'\$0 --fallback-echo"')
14873     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14874     ;;
14875   esac
14877 cfgfile="$ofile"
14879   cat <<__EOF__ >> "$cfgfile"
14880 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14882 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14884 # Shell to use when invoking shell scripts.
14885 SHELL=$lt_SHELL
14887 # Whether or not to build shared libraries.
14888 build_libtool_libs=$enable_shared
14890 # Whether or not to build static libraries.
14891 build_old_libs=$enable_static
14893 # Whether or not to add -lc for building shared libraries.
14894 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
14896 # Whether or not to disallow shared libs when runtime libs are static
14897 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
14899 # Whether or not to optimize for fast installation.
14900 fast_install=$enable_fast_install
14902 # The host system.
14903 host_alias=$host_alias
14904 host=$host
14905 host_os=$host_os
14907 # The build system.
14908 build_alias=$build_alias
14909 build=$build
14910 build_os=$build_os
14912 # An echo program that does not interpret backslashes.
14913 echo=$lt_echo
14915 # The archiver.
14916 AR=$lt_AR
14917 AR_FLAGS=$lt_AR_FLAGS
14919 # A C compiler.
14920 LTCC=$lt_LTCC
14922 # LTCC compiler flags.
14923 LTCFLAGS=$lt_LTCFLAGS
14925 # A language-specific compiler.
14926 CC=$lt_compiler_GCJ
14928 # Is the compiler the GNU C compiler?
14929 with_gcc=$GCC_GCJ
14931 # An ERE matcher.
14932 EGREP=$lt_EGREP
14934 # The linker used to build libraries.
14935 LD=$lt_LD_GCJ
14937 # Whether we need hard or soft links.
14938 LN_S=$lt_LN_S
14940 # A BSD-compatible nm program.
14941 NM=$lt_NM
14943 # A symbol stripping program
14944 STRIP=$lt_STRIP
14946 # Used to examine libraries when file_magic_cmd begins "file"
14947 MAGIC_CMD=$MAGIC_CMD
14949 # Used on cygwin: DLL creation program.
14950 DLLTOOL="$DLLTOOL"
14952 # Used on cygwin: object dumper.
14953 OBJDUMP="$OBJDUMP"
14955 # Used on cygwin: assembler.
14956 AS="$AS"
14958 # The name of the directory that contains temporary libtool files.
14959 objdir=$objdir
14961 # How to create reloadable object files.
14962 reload_flag=$lt_reload_flag
14963 reload_cmds=$lt_reload_cmds
14965 # How to pass a linker flag through the compiler.
14966 wl=$lt_lt_prog_compiler_wl_GCJ
14968 # Object file suffix (normally "o").
14969 objext="$ac_objext"
14971 # Old archive suffix (normally "a").
14972 libext="$libext"
14974 # Shared library suffix (normally ".so").
14975 shrext_cmds='$shrext_cmds'
14977 # Executable file suffix (normally "").
14978 exeext="$exeext"
14980 # Additional compiler flags for building library objects.
14981 pic_flag=$lt_lt_prog_compiler_pic_GCJ
14982 pic_mode=$pic_mode
14984 # What is the maximum length of a command?
14985 max_cmd_len=$lt_cv_sys_max_cmd_len
14987 # Does compiler simultaneously support -c and -o options?
14988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
14990 # Must we lock files when doing compilation?
14991 need_locks=$lt_need_locks
14993 # Do we need the lib prefix for modules?
14994 need_lib_prefix=$need_lib_prefix
14996 # Do we need a version for libraries?
14997 need_version=$need_version
14999 # Whether dlopen is supported.
15000 dlopen_support=$enable_dlopen
15002 # Whether dlopen of programs is supported.
15003 dlopen_self=$enable_dlopen_self
15005 # Whether dlopen of statically linked programs is supported.
15006 dlopen_self_static=$enable_dlopen_self_static
15008 # Compiler flag to prevent dynamic linking.
15009 link_static_flag=$lt_lt_prog_compiler_static_GCJ
15011 # Compiler flag to turn off builtin functions.
15012 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
15014 # Compiler flag to allow reflexive dlopens.
15015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
15017 # Compiler flag to generate shared objects directly from archives.
15018 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
15020 # Compiler flag to generate thread-safe objects.
15021 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
15023 # Library versioning type.
15024 version_type=$version_type
15026 # Format of library name prefix.
15027 libname_spec=$lt_libname_spec
15029 # List of archive names.  First name is the real one, the rest are links.
15030 # The last name is the one that the linker finds with -lNAME.
15031 library_names_spec=$lt_library_names_spec
15033 # The coded name of the library, if different from the real name.
15034 soname_spec=$lt_soname_spec
15036 # Commands used to build and install an old-style archive.
15037 RANLIB=$lt_RANLIB
15038 old_archive_cmds=$lt_old_archive_cmds_GCJ
15039 old_postinstall_cmds=$lt_old_postinstall_cmds
15040 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15042 # Create an old-style archive from a shared archive.
15043 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
15045 # Create a temporary old-style archive to link instead of a shared archive.
15046 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
15048 # Commands used to build and install a shared archive.
15049 archive_cmds=$lt_archive_cmds_GCJ
15050 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
15051 postinstall_cmds=$lt_postinstall_cmds
15052 postuninstall_cmds=$lt_postuninstall_cmds
15054 # Commands used to build a loadable module (assumed same as above if empty)
15055 module_cmds=$lt_module_cmds_GCJ
15056 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
15058 # Commands to strip libraries.
15059 old_striplib=$lt_old_striplib
15060 striplib=$lt_striplib
15062 # Dependencies to place before the objects being linked to create a
15063 # shared library.
15064 predep_objects=$lt_predep_objects_GCJ
15066 # Dependencies to place after the objects being linked to create a
15067 # shared library.
15068 postdep_objects=$lt_postdep_objects_GCJ
15070 # Dependencies to place before the objects being linked to create a
15071 # shared library.
15072 predeps=$lt_predeps_GCJ
15074 # Dependencies to place after the objects being linked to create a
15075 # shared library.
15076 postdeps=$lt_postdeps_GCJ
15078 # The library search path used internally by the compiler when linking
15079 # a shared library.
15080 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
15082 # Method to check whether dependent libraries are shared objects.
15083 deplibs_check_method=$lt_deplibs_check_method
15085 # Command to use when deplibs_check_method == file_magic.
15086 file_magic_cmd=$lt_file_magic_cmd
15088 # Flag that allows shared libraries with undefined symbols to be built.
15089 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
15091 # Flag that forces no undefined symbols.
15092 no_undefined_flag=$lt_no_undefined_flag_GCJ
15094 # Commands used to finish a libtool library installation in a directory.
15095 finish_cmds=$lt_finish_cmds
15097 # Same as above, but a single script fragment to be evaled but not shown.
15098 finish_eval=$lt_finish_eval
15100 # Take the output of nm and produce a listing of raw symbols and C names.
15101 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15103 # Transform the output of nm in a proper C declaration
15104 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15106 # Transform the output of nm in a C name address pair
15107 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15109 # This is the shared library runtime path variable.
15110 runpath_var=$runpath_var
15112 # This is the shared library path variable.
15113 shlibpath_var=$shlibpath_var
15115 # Is shlibpath searched before the hard-coded library search path?
15116 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15118 # How to hardcode a shared library path into an executable.
15119 hardcode_action=$hardcode_action_GCJ
15121 # Whether we should hardcode library paths into libraries.
15122 hardcode_into_libs=$hardcode_into_libs
15124 # Flag to hardcode \$libdir into a binary during linking.
15125 # This must work even if \$libdir does not exist.
15126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
15128 # If ld is used when linking, flag to hardcode \$libdir into
15129 # a binary during linking. This must work even if \$libdir does
15130 # not exist.
15131 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
15133 # Whether we need a single -rpath flag with a separated argument.
15134 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
15136 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15137 # resulting binary.
15138 hardcode_direct=$hardcode_direct_GCJ
15140 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15141 # resulting binary.
15142 hardcode_minus_L=$hardcode_minus_L_GCJ
15144 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15145 # the resulting binary.
15146 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
15148 # Set to yes if building a shared library automatically hardcodes DIR into the library
15149 # and all subsequent libraries and executables linked against it.
15150 hardcode_automatic=$hardcode_automatic_GCJ
15152 # Variables whose values should be saved in libtool wrapper scripts and
15153 # restored at relink time.
15154 variables_saved_for_relink="$variables_saved_for_relink"
15156 # Whether libtool must link a program against all its dependency libraries.
15157 link_all_deplibs=$link_all_deplibs_GCJ
15159 # Compile-time system search path for libraries
15160 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15162 # Run-time system search path for libraries
15163 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15165 # Fix the shell variable \$srcfile for the compiler.
15166 fix_srcfile_path="$fix_srcfile_path_GCJ"
15168 # Set to yes if exported symbols are required.
15169 always_export_symbols=$always_export_symbols_GCJ
15171 # The commands to list exported symbols.
15172 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
15174 # The commands to extract the exported symbol list from a shared archive.
15175 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15177 # Symbols that should not be listed in the preloaded symbols.
15178 exclude_expsyms=$lt_exclude_expsyms_GCJ
15180 # Symbols that must always be exported.
15181 include_expsyms=$lt_include_expsyms_GCJ
15183 # ### END LIBTOOL TAG CONFIG: $tagname
15185 __EOF__
15188 else
15189   # If there is no Makefile yet, we rely on a make rule to execute
15190   # `config.status --recheck' to rerun these tests and create the
15191   # libtool script then.
15192   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15193   if test -f "$ltmain_in"; then
15194     test -f Makefile && make "$ltmain"
15195   fi
15199 ac_ext=c
15200 ac_cpp='$CPP $CPPFLAGS'
15201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15205 CC="$lt_save_CC"
15207         else
15208           tagname=""
15209         fi
15210         ;;
15212       RC)
15216 # Source file extension for RC test sources.
15217 ac_ext=rc
15219 # Object file extension for compiled RC test sources.
15220 objext=o
15221 objext_RC=$objext
15223 # Code to be used in simple compile tests
15224 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
15226 # Code to be used in simple link tests
15227 lt_simple_link_test_code="$lt_simple_compile_test_code"
15229 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15231 # If no C compiler was specified, use CC.
15232 LTCC=${LTCC-"$CC"}
15234 # If no C compiler flags were specified, use CFLAGS.
15235 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15237 # Allow CC to be a program name with arguments.
15238 compiler=$CC
15241 # save warnings/boilerplate of simple test code
15242 ac_outfile=conftest.$ac_objext
15243 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15244 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15245 _lt_compiler_boilerplate=`cat conftest.err`
15246 $rm conftest*
15248 ac_outfile=conftest.$ac_objext
15249 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15250 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15251 _lt_linker_boilerplate=`cat conftest.err`
15252 $rm conftest*
15255 # Allow CC to be a program name with arguments.
15256 lt_save_CC="$CC"
15257 CC=${RC-"windres"}
15258 compiler=$CC
15259 compiler_RC=$CC
15260 for cc_temp in $compiler""; do
15261   case $cc_temp in
15262     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15263     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15264     \-*) ;;
15265     *) break;;
15266   esac
15267 done
15268 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15270 lt_cv_prog_compiler_c_o_RC=yes
15272 # The else clause should only fire when bootstrapping the
15273 # libtool distribution, otherwise you forgot to ship ltmain.sh
15274 # with your package, and you will get complaints that there are
15275 # no rules to generate ltmain.sh.
15276 if test -f "$ltmain"; then
15277   # See if we are running on zsh, and set the options which allow our commands through
15278   # without removal of \ escapes.
15279   if test -n "${ZSH_VERSION+set}" ; then
15280     setopt NO_GLOB_SUBST
15281   fi
15282   # Now quote all the things that may contain metacharacters while being
15283   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15284   # variables and quote the copies for generation of the libtool script.
15285   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15286     SED SHELL STRIP \
15287     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15288     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15289     deplibs_check_method reload_flag reload_cmds need_locks \
15290     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15291     lt_cv_sys_global_symbol_to_c_name_address \
15292     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15293     old_postinstall_cmds old_postuninstall_cmds \
15294     compiler_RC \
15295     CC_RC \
15296     LD_RC \
15297     lt_prog_compiler_wl_RC \
15298     lt_prog_compiler_pic_RC \
15299     lt_prog_compiler_static_RC \
15300     lt_prog_compiler_no_builtin_flag_RC \
15301     export_dynamic_flag_spec_RC \
15302     thread_safe_flag_spec_RC \
15303     whole_archive_flag_spec_RC \
15304     enable_shared_with_static_runtimes_RC \
15305     old_archive_cmds_RC \
15306     old_archive_from_new_cmds_RC \
15307     predep_objects_RC \
15308     postdep_objects_RC \
15309     predeps_RC \
15310     postdeps_RC \
15311     compiler_lib_search_path_RC \
15312     archive_cmds_RC \
15313     archive_expsym_cmds_RC \
15314     postinstall_cmds_RC \
15315     postuninstall_cmds_RC \
15316     old_archive_from_expsyms_cmds_RC \
15317     allow_undefined_flag_RC \
15318     no_undefined_flag_RC \
15319     export_symbols_cmds_RC \
15320     hardcode_libdir_flag_spec_RC \
15321     hardcode_libdir_flag_spec_ld_RC \
15322     hardcode_libdir_separator_RC \
15323     hardcode_automatic_RC \
15324     module_cmds_RC \
15325     module_expsym_cmds_RC \
15326     lt_cv_prog_compiler_c_o_RC \
15327     exclude_expsyms_RC \
15328     include_expsyms_RC; do
15330     case $var in
15331     old_archive_cmds_RC | \
15332     old_archive_from_new_cmds_RC | \
15333     archive_cmds_RC | \
15334     archive_expsym_cmds_RC | \
15335     module_cmds_RC | \
15336     module_expsym_cmds_RC | \
15337     old_archive_from_expsyms_cmds_RC | \
15338     export_symbols_cmds_RC | \
15339     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15340     postinstall_cmds | postuninstall_cmds | \
15341     old_postinstall_cmds | old_postuninstall_cmds | \
15342     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15343       # Double-quote double-evaled strings.
15344       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15345       ;;
15346     *)
15347       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15348       ;;
15349     esac
15350   done
15352   case $lt_echo in
15353   *'\$0 --fallback-echo"')
15354     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15355     ;;
15356   esac
15358 cfgfile="$ofile"
15360   cat <<__EOF__ >> "$cfgfile"
15361 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15363 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15365 # Shell to use when invoking shell scripts.
15366 SHELL=$lt_SHELL
15368 # Whether or not to build shared libraries.
15369 build_libtool_libs=$enable_shared
15371 # Whether or not to build static libraries.
15372 build_old_libs=$enable_static
15374 # Whether or not to add -lc for building shared libraries.
15375 build_libtool_need_lc=$archive_cmds_need_lc_RC
15377 # Whether or not to disallow shared libs when runtime libs are static
15378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
15380 # Whether or not to optimize for fast installation.
15381 fast_install=$enable_fast_install
15383 # The host system.
15384 host_alias=$host_alias
15385 host=$host
15386 host_os=$host_os
15388 # The build system.
15389 build_alias=$build_alias
15390 build=$build
15391 build_os=$build_os
15393 # An echo program that does not interpret backslashes.
15394 echo=$lt_echo
15396 # The archiver.
15397 AR=$lt_AR
15398 AR_FLAGS=$lt_AR_FLAGS
15400 # A C compiler.
15401 LTCC=$lt_LTCC
15403 # LTCC compiler flags.
15404 LTCFLAGS=$lt_LTCFLAGS
15406 # A language-specific compiler.
15407 CC=$lt_compiler_RC
15409 # Is the compiler the GNU C compiler?
15410 with_gcc=$GCC_RC
15412 # An ERE matcher.
15413 EGREP=$lt_EGREP
15415 # The linker used to build libraries.
15416 LD=$lt_LD_RC
15418 # Whether we need hard or soft links.
15419 LN_S=$lt_LN_S
15421 # A BSD-compatible nm program.
15422 NM=$lt_NM
15424 # A symbol stripping program
15425 STRIP=$lt_STRIP
15427 # Used to examine libraries when file_magic_cmd begins "file"
15428 MAGIC_CMD=$MAGIC_CMD
15430 # Used on cygwin: DLL creation program.
15431 DLLTOOL="$DLLTOOL"
15433 # Used on cygwin: object dumper.
15434 OBJDUMP="$OBJDUMP"
15436 # Used on cygwin: assembler.
15437 AS="$AS"
15439 # The name of the directory that contains temporary libtool files.
15440 objdir=$objdir
15442 # How to create reloadable object files.
15443 reload_flag=$lt_reload_flag
15444 reload_cmds=$lt_reload_cmds
15446 # How to pass a linker flag through the compiler.
15447 wl=$lt_lt_prog_compiler_wl_RC
15449 # Object file suffix (normally "o").
15450 objext="$ac_objext"
15452 # Old archive suffix (normally "a").
15453 libext="$libext"
15455 # Shared library suffix (normally ".so").
15456 shrext_cmds='$shrext_cmds'
15458 # Executable file suffix (normally "").
15459 exeext="$exeext"
15461 # Additional compiler flags for building library objects.
15462 pic_flag=$lt_lt_prog_compiler_pic_RC
15463 pic_mode=$pic_mode
15465 # What is the maximum length of a command?
15466 max_cmd_len=$lt_cv_sys_max_cmd_len
15468 # Does compiler simultaneously support -c and -o options?
15469 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
15471 # Must we lock files when doing compilation?
15472 need_locks=$lt_need_locks
15474 # Do we need the lib prefix for modules?
15475 need_lib_prefix=$need_lib_prefix
15477 # Do we need a version for libraries?
15478 need_version=$need_version
15480 # Whether dlopen is supported.
15481 dlopen_support=$enable_dlopen
15483 # Whether dlopen of programs is supported.
15484 dlopen_self=$enable_dlopen_self
15486 # Whether dlopen of statically linked programs is supported.
15487 dlopen_self_static=$enable_dlopen_self_static
15489 # Compiler flag to prevent dynamic linking.
15490 link_static_flag=$lt_lt_prog_compiler_static_RC
15492 # Compiler flag to turn off builtin functions.
15493 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
15495 # Compiler flag to allow reflexive dlopens.
15496 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
15498 # Compiler flag to generate shared objects directly from archives.
15499 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
15501 # Compiler flag to generate thread-safe objects.
15502 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
15504 # Library versioning type.
15505 version_type=$version_type
15507 # Format of library name prefix.
15508 libname_spec=$lt_libname_spec
15510 # List of archive names.  First name is the real one, the rest are links.
15511 # The last name is the one that the linker finds with -lNAME.
15512 library_names_spec=$lt_library_names_spec
15514 # The coded name of the library, if different from the real name.
15515 soname_spec=$lt_soname_spec
15517 # Commands used to build and install an old-style archive.
15518 RANLIB=$lt_RANLIB
15519 old_archive_cmds=$lt_old_archive_cmds_RC
15520 old_postinstall_cmds=$lt_old_postinstall_cmds
15521 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15523 # Create an old-style archive from a shared archive.
15524 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
15526 # Create a temporary old-style archive to link instead of a shared archive.
15527 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
15529 # Commands used to build and install a shared archive.
15530 archive_cmds=$lt_archive_cmds_RC
15531 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
15532 postinstall_cmds=$lt_postinstall_cmds
15533 postuninstall_cmds=$lt_postuninstall_cmds
15535 # Commands used to build a loadable module (assumed same as above if empty)
15536 module_cmds=$lt_module_cmds_RC
15537 module_expsym_cmds=$lt_module_expsym_cmds_RC
15539 # Commands to strip libraries.
15540 old_striplib=$lt_old_striplib
15541 striplib=$lt_striplib
15543 # Dependencies to place before the objects being linked to create a
15544 # shared library.
15545 predep_objects=$lt_predep_objects_RC
15547 # Dependencies to place after the objects being linked to create a
15548 # shared library.
15549 postdep_objects=$lt_postdep_objects_RC
15551 # Dependencies to place before the objects being linked to create a
15552 # shared library.
15553 predeps=$lt_predeps_RC
15555 # Dependencies to place after the objects being linked to create a
15556 # shared library.
15557 postdeps=$lt_postdeps_RC
15559 # The library search path used internally by the compiler when linking
15560 # a shared library.
15561 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
15563 # Method to check whether dependent libraries are shared objects.
15564 deplibs_check_method=$lt_deplibs_check_method
15566 # Command to use when deplibs_check_method == file_magic.
15567 file_magic_cmd=$lt_file_magic_cmd
15569 # Flag that allows shared libraries with undefined symbols to be built.
15570 allow_undefined_flag=$lt_allow_undefined_flag_RC
15572 # Flag that forces no undefined symbols.
15573 no_undefined_flag=$lt_no_undefined_flag_RC
15575 # Commands used to finish a libtool library installation in a directory.
15576 finish_cmds=$lt_finish_cmds
15578 # Same as above, but a single script fragment to be evaled but not shown.
15579 finish_eval=$lt_finish_eval
15581 # Take the output of nm and produce a listing of raw symbols and C names.
15582 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15584 # Transform the output of nm in a proper C declaration
15585 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15587 # Transform the output of nm in a C name address pair
15588 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15590 # This is the shared library runtime path variable.
15591 runpath_var=$runpath_var
15593 # This is the shared library path variable.
15594 shlibpath_var=$shlibpath_var
15596 # Is shlibpath searched before the hard-coded library search path?
15597 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15599 # How to hardcode a shared library path into an executable.
15600 hardcode_action=$hardcode_action_RC
15602 # Whether we should hardcode library paths into libraries.
15603 hardcode_into_libs=$hardcode_into_libs
15605 # Flag to hardcode \$libdir into a binary during linking.
15606 # This must work even if \$libdir does not exist.
15607 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
15609 # If ld is used when linking, flag to hardcode \$libdir into
15610 # a binary during linking. This must work even if \$libdir does
15611 # not exist.
15612 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
15614 # Whether we need a single -rpath flag with a separated argument.
15615 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
15617 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15618 # resulting binary.
15619 hardcode_direct=$hardcode_direct_RC
15621 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15622 # resulting binary.
15623 hardcode_minus_L=$hardcode_minus_L_RC
15625 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15626 # the resulting binary.
15627 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
15629 # Set to yes if building a shared library automatically hardcodes DIR into the library
15630 # and all subsequent libraries and executables linked against it.
15631 hardcode_automatic=$hardcode_automatic_RC
15633 # Variables whose values should be saved in libtool wrapper scripts and
15634 # restored at relink time.
15635 variables_saved_for_relink="$variables_saved_for_relink"
15637 # Whether libtool must link a program against all its dependency libraries.
15638 link_all_deplibs=$link_all_deplibs_RC
15640 # Compile-time system search path for libraries
15641 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15643 # Run-time system search path for libraries
15644 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15646 # Fix the shell variable \$srcfile for the compiler.
15647 fix_srcfile_path="$fix_srcfile_path_RC"
15649 # Set to yes if exported symbols are required.
15650 always_export_symbols=$always_export_symbols_RC
15652 # The commands to list exported symbols.
15653 export_symbols_cmds=$lt_export_symbols_cmds_RC
15655 # The commands to extract the exported symbol list from a shared archive.
15656 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15658 # Symbols that should not be listed in the preloaded symbols.
15659 exclude_expsyms=$lt_exclude_expsyms_RC
15661 # Symbols that must always be exported.
15662 include_expsyms=$lt_include_expsyms_RC
15664 # ### END LIBTOOL TAG CONFIG: $tagname
15666 __EOF__
15669 else
15670   # If there is no Makefile yet, we rely on a make rule to execute
15671   # `config.status --recheck' to rerun these tests and create the
15672   # libtool script then.
15673   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15674   if test -f "$ltmain_in"; then
15675     test -f Makefile && make "$ltmain"
15676   fi
15680 ac_ext=c
15681 ac_cpp='$CPP $CPPFLAGS'
15682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15686 CC="$lt_save_CC"
15688         ;;
15690       *)
15691         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
15692 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
15693    { (exit 1); exit 1; }; }
15694         ;;
15695       esac
15697       # Append the new tag name to the list of available tags.
15698       if test -n "$tagname" ; then
15699       available_tags="$available_tags $tagname"
15700     fi
15701     fi
15702   done
15703   IFS="$lt_save_ifs"
15705   # Now substitute the updated list of available tags.
15706   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
15707     mv "${ofile}T" "$ofile"
15708     chmod +x "$ofile"
15709   else
15710     rm -f "${ofile}T"
15711     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
15712 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
15713    { (exit 1); exit 1; }; }
15714   fi
15719 # This can be used to rebuild libtool when needed
15720 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
15722 # Always use our own libtool.
15723 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15725 # Prevent multiple expansion
15742 # Checks for programs.
15743 ac_ext=c
15744 ac_cpp='$CPP $CPPFLAGS'
15745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15748 if test -n "$ac_tool_prefix"; then
15749   for ac_prog in gcc
15750   do
15751     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15753 echo "$as_me:$LINENO: checking for $ac_word" >&5
15754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15755 if test "${ac_cv_prog_CC+set}" = set; then
15756   echo $ECHO_N "(cached) $ECHO_C" >&6
15757 else
15758   if test -n "$CC"; then
15759   ac_cv_prog_CC="$CC" # Let the user override the test.
15760 else
15761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15762 for as_dir in $PATH
15764   IFS=$as_save_IFS
15765   test -z "$as_dir" && as_dir=.
15766   for ac_exec_ext in '' $ac_executable_extensions; do
15767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15768     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15770     break 2
15771   fi
15772 done
15773 done
15777 CC=$ac_cv_prog_CC
15778 if test -n "$CC"; then
15779   echo "$as_me:$LINENO: result: $CC" >&5
15780 echo "${ECHO_T}$CC" >&6
15781 else
15782   echo "$as_me:$LINENO: result: no" >&5
15783 echo "${ECHO_T}no" >&6
15786     test -n "$CC" && break
15787   done
15789 if test -z "$CC"; then
15790   ac_ct_CC=$CC
15791   for ac_prog in gcc
15793   # Extract the first word of "$ac_prog", so it can be a program name with args.
15794 set dummy $ac_prog; ac_word=$2
15795 echo "$as_me:$LINENO: checking for $ac_word" >&5
15796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
15798   echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800   if test -n "$ac_ct_CC"; then
15801   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15802 else
15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15806   IFS=$as_save_IFS
15807   test -z "$as_dir" && as_dir=.
15808   for ac_exec_ext in '' $ac_executable_extensions; do
15809   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15810     ac_cv_prog_ac_ct_CC="$ac_prog"
15811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15812     break 2
15813   fi
15814 done
15815 done
15819 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15820 if test -n "$ac_ct_CC"; then
15821   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
15822 echo "${ECHO_T}$ac_ct_CC" >&6
15823 else
15824   echo "$as_me:$LINENO: result: no" >&5
15825 echo "${ECHO_T}no" >&6
15828   test -n "$ac_ct_CC" && break
15829 done
15831   CC=$ac_ct_CC
15835 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
15836 See \`config.log' for more details." >&5
15837 echo "$as_me: error: no acceptable C compiler found in \$PATH
15838 See \`config.log' for more details." >&2;}
15839    { (exit 1); exit 1; }; }
15841 # Provide some information about the compiler.
15842 echo "$as_me:$LINENO:" \
15843      "checking for C compiler version" >&5
15844 ac_compiler=`set X $ac_compile; echo $2`
15845 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15846   (eval $ac_compiler --version </dev/null >&5) 2>&5
15847   ac_status=$?
15848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849   (exit $ac_status); }
15850 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15851   (eval $ac_compiler -v </dev/null >&5) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }
15855 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15856   (eval $ac_compiler -V </dev/null >&5) 2>&5
15857   ac_status=$?
15858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859   (exit $ac_status); }
15861 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
15862 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
15863 if test "${ac_cv_c_compiler_gnu+set}" = set; then
15864   echo $ECHO_N "(cached) $ECHO_C" >&6
15865 else
15866   cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h.  */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h.  */
15873 int
15874 main ()
15876 #ifndef __GNUC__
15877        choke me
15878 #endif
15880   ;
15881   return 0;
15883 _ACEOF
15884 rm -f conftest.$ac_objext
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886   (eval $ac_compile) 2>conftest.er1
15887   ac_status=$?
15888   grep -v '^ *+' conftest.er1 >conftest.err
15889   rm -f conftest.er1
15890   cat conftest.err >&5
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } &&
15893          { ac_try='test -z "$ac_c_werror_flag"
15894                          || test ! -s conftest.err'
15895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896   (eval $ac_try) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); }; } &&
15900          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15906   ac_compiler_gnu=yes
15907 else
15908   echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 ac_compiler_gnu=no
15913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15914 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15917 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
15918 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
15919 GCC=`test $ac_compiler_gnu = yes && echo yes`
15920 ac_test_CFLAGS=${CFLAGS+set}
15921 ac_save_CFLAGS=$CFLAGS
15922 CFLAGS="-g"
15923 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
15924 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
15925 if test "${ac_cv_prog_cc_g+set}" = set; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928   cat >conftest.$ac_ext <<_ACEOF
15929 /* confdefs.h.  */
15930 _ACEOF
15931 cat confdefs.h >>conftest.$ac_ext
15932 cat >>conftest.$ac_ext <<_ACEOF
15933 /* end confdefs.h.  */
15935 int
15936 main ()
15939   ;
15940   return 0;
15942 _ACEOF
15943 rm -f conftest.$ac_objext
15944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15945   (eval $ac_compile) 2>conftest.er1
15946   ac_status=$?
15947   grep -v '^ *+' conftest.er1 >conftest.err
15948   rm -f conftest.er1
15949   cat conftest.err >&5
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); } &&
15952          { ac_try='test -z "$ac_c_werror_flag"
15953                          || test ! -s conftest.err'
15954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955   (eval $ac_try) 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; } &&
15959          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15965   ac_cv_prog_cc_g=yes
15966 else
15967   echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ac_cv_prog_cc_g=no
15972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15974 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
15975 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
15976 if test "$ac_test_CFLAGS" = set; then
15977   CFLAGS=$ac_save_CFLAGS
15978 elif test $ac_cv_prog_cc_g = yes; then
15979   if test "$GCC" = yes; then
15980     CFLAGS="-g -O2"
15981   else
15982     CFLAGS="-g"
15983   fi
15984 else
15985   if test "$GCC" = yes; then
15986     CFLAGS="-O2"
15987   else
15988     CFLAGS=
15989   fi
15991 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
15992 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
15993 if test "${ac_cv_prog_cc_stdc+set}" = set; then
15994   echo $ECHO_N "(cached) $ECHO_C" >&6
15995 else
15996   ac_cv_prog_cc_stdc=no
15997 ac_save_CC=$CC
15998 cat >conftest.$ac_ext <<_ACEOF
15999 /* confdefs.h.  */
16000 _ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h.  */
16004 #include <stdarg.h>
16005 #include <stdio.h>
16006 #include <sys/types.h>
16007 #include <sys/stat.h>
16008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16009 struct buf { int x; };
16010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16011 static char *e (p, i)
16012      char **p;
16013      int i;
16015   return p[i];
16017 static char *f (char * (*g) (char **, int), char **p, ...)
16019   char *s;
16020   va_list v;
16021   va_start (v,p);
16022   s = g (p, va_arg (v,int));
16023   va_end (v);
16024   return s;
16027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16028    function prototypes and stuff, but not '\xHH' hex character constants.
16029    These don't provoke an error unfortunately, instead are silently treated
16030    as 'x'.  The following induces an error, until -std1 is added to get
16031    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16032    array size at least.  It's necessary to write '\x00'==0 to get something
16033    that's true only with -std1.  */
16034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16036 int test (int i, double x);
16037 struct s1 {int (*f) (int a);};
16038 struct s2 {int (*f) (double a);};
16039 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16040 int argc;
16041 char **argv;
16042 int
16043 main ()
16045 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16046   ;
16047   return 0;
16049 _ACEOF
16050 # Don't try gcc -ansi; that turns off useful extensions and
16051 # breaks some systems' header files.
16052 # AIX                   -qlanglvl=ansi
16053 # Ultrix and OSF/1      -std1
16054 # HP-UX 10.20 and later -Ae
16055 # HP-UX older versions  -Aa -D_HPUX_SOURCE
16056 # SVR4                  -Xc -D__EXTENSIONS__
16057 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16059   CC="$ac_save_CC $ac_arg"
16060   rm -f conftest.$ac_objext
16061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16062   (eval $ac_compile) 2>conftest.er1
16063   ac_status=$?
16064   grep -v '^ *+' conftest.er1 >conftest.err
16065   rm -f conftest.er1
16066   cat conftest.err >&5
16067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); } &&
16069          { ac_try='test -z "$ac_c_werror_flag"
16070                          || test ! -s conftest.err'
16071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072   (eval $ac_try) 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; } &&
16076          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16082   ac_cv_prog_cc_stdc=$ac_arg
16083 break
16084 else
16085   echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16089 rm -f conftest.err conftest.$ac_objext
16090 done
16091 rm -f conftest.$ac_ext conftest.$ac_objext
16092 CC=$ac_save_CC
16096 case "x$ac_cv_prog_cc_stdc" in
16097   x|xno)
16098     echo "$as_me:$LINENO: result: none needed" >&5
16099 echo "${ECHO_T}none needed" >&6 ;;
16100   *)
16101     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
16102 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
16103     CC="$CC $ac_cv_prog_cc_stdc" ;;
16104 esac
16106 # Some people use a C++ compiler to compile C.  Since we use `exit',
16107 # in C++ we need to declare it.  In case someone uses the same compiler
16108 # for both compiling C and C++ we need to have the C++ compiler decide
16109 # the declaration of exit, since it's the most demanding environment.
16110 cat >conftest.$ac_ext <<_ACEOF
16111 #ifndef __cplusplus
16112   choke me
16113 #endif
16114 _ACEOF
16115 rm -f conftest.$ac_objext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16117   (eval $ac_compile) 2>conftest.er1
16118   ac_status=$?
16119   grep -v '^ *+' conftest.er1 >conftest.err
16120   rm -f conftest.er1
16121   cat conftest.err >&5
16122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); } &&
16124          { ac_try='test -z "$ac_c_werror_flag"
16125                          || test ! -s conftest.err'
16126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127   (eval $ac_try) 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; } &&
16131          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16137   for ac_declaration in \
16138    '' \
16139    'extern "C" void std::exit (int) throw (); using std::exit;' \
16140    'extern "C" void std::exit (int); using std::exit;' \
16141    'extern "C" void exit (int) throw ();' \
16142    'extern "C" void exit (int);' \
16143    'void exit (int);'
16145   cat >conftest.$ac_ext <<_ACEOF
16146 /* confdefs.h.  */
16147 _ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h.  */
16151 $ac_declaration
16152 #include <stdlib.h>
16153 int
16154 main ()
16156 exit (42);
16157   ;
16158   return 0;
16160 _ACEOF
16161 rm -f conftest.$ac_objext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16163   (eval $ac_compile) 2>conftest.er1
16164   ac_status=$?
16165   grep -v '^ *+' conftest.er1 >conftest.err
16166   rm -f conftest.er1
16167   cat conftest.err >&5
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } &&
16170          { ac_try='test -z "$ac_c_werror_flag"
16171                          || test ! -s conftest.err'
16172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173   (eval $ac_try) 2>&5
16174   ac_status=$?
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); }; } &&
16177          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16183   :
16184 else
16185   echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16188 continue
16190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16191   cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197 $ac_declaration
16198 int
16199 main ()
16201 exit (42);
16202   ;
16203   return 0;
16205 _ACEOF
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208   (eval $ac_compile) 2>conftest.er1
16209   ac_status=$?
16210   grep -v '^ *+' conftest.er1 >conftest.err
16211   rm -f conftest.er1
16212   cat conftest.err >&5
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); } &&
16215          { ac_try='test -z "$ac_c_werror_flag"
16216                          || test ! -s conftest.err'
16217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218   (eval $ac_try) 2>&5
16219   ac_status=$?
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); }; } &&
16222          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16228   break
16229 else
16230   echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16235 done
16236 rm -f conftest*
16237 if test -n "$ac_declaration"; then
16238   echo '#ifdef __cplusplus' >>confdefs.h
16239   echo $ac_declaration      >>confdefs.h
16240   echo '#endif'             >>confdefs.h
16243 else
16244   echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16249 ac_ext=c
16250 ac_cpp='$CPP $CPPFLAGS'
16251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16255 depcc="$CC"   am_compiler_list=
16257 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16258 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16259 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16263   # We make a subdir and do the tests there.  Otherwise we can end up
16264   # making bogus files that we don't know about and never remove.  For
16265   # instance it was reported that on HP-UX the gcc test will end up
16266   # making a dummy file named `D' -- because `-MD' means `put the output
16267   # in D'.
16268   mkdir conftest.dir
16269   # Copy depcomp to subdir because otherwise we won't find it if we're
16270   # using a relative directory.
16271   cp "$am_depcomp" conftest.dir
16272   cd conftest.dir
16273   # We will build objects and dependencies in a subdirectory because
16274   # it helps to detect inapplicable dependency modes.  For instance
16275   # both Tru64's cc and ICC support -MD to output dependencies as a
16276   # side effect of compilation, but ICC will put the dependencies in
16277   # the current directory while Tru64 will put them in the object
16278   # directory.
16279   mkdir sub
16281   am_cv_CC_dependencies_compiler_type=none
16282   if test "$am_compiler_list" = ""; then
16283      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16284   fi
16285   for depmode in $am_compiler_list; do
16286     # Setup a source with many dependencies, because some compilers
16287     # like to wrap large dependency lists on column 80 (with \), and
16288     # we should not choose a depcomp mode which is confused by this.
16289     #
16290     # We need to recreate these files for each test, as the compiler may
16291     # overwrite some of them when testing with obscure command lines.
16292     # This happens at least with the AIX C compiler.
16293     : > sub/conftest.c
16294     for i in 1 2 3 4 5 6; do
16295       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16296       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16297       # Solaris 8's {/usr,}/bin/sh.
16298       touch sub/conftst$i.h
16299     done
16300     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16302     case $depmode in
16303     nosideeffect)
16304       # after this tag, mechanisms are not by side-effect, so they'll
16305       # only be used when explicitly requested
16306       if test "x$enable_dependency_tracking" = xyes; then
16307         continue
16308       else
16309         break
16310       fi
16311       ;;
16312     none) break ;;
16313     esac
16314     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16315     # mode.  It turns out that the SunPro C++ compiler does not properly
16316     # handle `-M -o', and we need to detect this.
16317     if depmode=$depmode \
16318        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16319        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16320        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16321          >/dev/null 2>conftest.err &&
16322        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16323        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16324        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16325       # icc doesn't choke on unknown options, it will just issue warnings
16326       # or remarks (even with -Werror).  So we grep stderr for any message
16327       # that says an option was ignored or not supported.
16328       # When given -MP, icc 7.0 and 7.1 complain thusly:
16329       #   icc: Command line warning: ignoring option '-M'; no argument required
16330       # The diagnosis changed in icc 8.0:
16331       #   icc: Command line remark: option '-MP' not supported
16332       if (grep 'ignoring option' conftest.err ||
16333           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16334         am_cv_CC_dependencies_compiler_type=$depmode
16335         break
16336       fi
16337     fi
16338   done
16340   cd ..
16341   rm -rf conftest.dir
16342 else
16343   am_cv_CC_dependencies_compiler_type=none
16347 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
16348 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
16349 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16354   test "x$enable_dependency_tracking" != xno \
16355   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16356   am__fastdepCC_TRUE=
16357   am__fastdepCC_FALSE='#'
16358 else
16359   am__fastdepCC_TRUE='#'
16360   am__fastdepCC_FALSE=
16364 # Find a good install program.  We prefer a C program (faster),
16365 # so one script is as good as another.  But avoid the broken or
16366 # incompatible versions:
16367 # SysV /etc/install, /usr/sbin/install
16368 # SunOS /usr/etc/install
16369 # IRIX /sbin/install
16370 # AIX /bin/install
16371 # AmigaOS /C/install, which installs bootblocks on floppy discs
16372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16375 # OS/2's system install, which has a completely different semantic
16376 # ./install, which can be erroneously created by make from ./install.sh.
16377 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
16378 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
16379 if test -z "$INSTALL"; then
16380 if test "${ac_cv_path_install+set}" = set; then
16381   echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16384 for as_dir in $PATH
16386   IFS=$as_save_IFS
16387   test -z "$as_dir" && as_dir=.
16388   # Account for people who put trailing slashes in PATH elements.
16389 case $as_dir/ in
16390   ./ | .// | /cC/* | \
16391   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16392   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
16393   /usr/ucb/* ) ;;
16394   *)
16395     # OSF1 and SCO ODT 3.0 have their own names for install.
16396     # Don't use installbsd from OSF since it installs stuff as root
16397     # by default.
16398     for ac_prog in ginstall scoinst install; do
16399       for ac_exec_ext in '' $ac_executable_extensions; do
16400         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16401           if test $ac_prog = install &&
16402             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16403             # AIX install.  It has an incompatible calling convention.
16404             :
16405           elif test $ac_prog = install &&
16406             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16407             # program-specific install script used by HP pwplus--don't use.
16408             :
16409           else
16410             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16411             break 3
16412           fi
16413         fi
16414       done
16415     done
16416     ;;
16417 esac
16418 done
16422   if test "${ac_cv_path_install+set}" = set; then
16423     INSTALL=$ac_cv_path_install
16424   else
16425     # As a last resort, use the slow shell script.  We don't cache a
16426     # path for INSTALL within a source directory, because that will
16427     # break other packages using the cache if that directory is
16428     # removed, or if the path is relative.
16429     INSTALL=$ac_install_sh
16430   fi
16432 echo "$as_me:$LINENO: result: $INSTALL" >&5
16433 echo "${ECHO_T}$INSTALL" >&6
16435 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16436 # It thinks the first close brace ends the variable substitution.
16437 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16439 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16441 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16444 # Checks for header files.
16445 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16446 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16447 if test "${ac_cv_header_stdc+set}" = set; then
16448   echo $ECHO_N "(cached) $ECHO_C" >&6
16449 else
16450   cat >conftest.$ac_ext <<_ACEOF
16451 /* confdefs.h.  */
16452 _ACEOF
16453 cat confdefs.h >>conftest.$ac_ext
16454 cat >>conftest.$ac_ext <<_ACEOF
16455 /* end confdefs.h.  */
16456 #include <stdlib.h>
16457 #include <stdarg.h>
16458 #include <string.h>
16459 #include <float.h>
16461 int
16462 main ()
16465   ;
16466   return 0;
16468 _ACEOF
16469 rm -f conftest.$ac_objext
16470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16471   (eval $ac_compile) 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } &&
16478          { ac_try='test -z "$ac_c_werror_flag"
16479                          || test ! -s conftest.err'
16480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481   (eval $ac_try) 2>&5
16482   ac_status=$?
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); }; } &&
16485          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16491   ac_cv_header_stdc=yes
16492 else
16493   echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 ac_cv_header_stdc=no
16498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16500 if test $ac_cv_header_stdc = yes; then
16501   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16502   cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h.  */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h.  */
16508 #include <string.h>
16510 _ACEOF
16511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16512   $EGREP "memchr" >/dev/null 2>&1; then
16513   :
16514 else
16515   ac_cv_header_stdc=no
16517 rm -f conftest*
16521 if test $ac_cv_header_stdc = yes; then
16522   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16523   cat >conftest.$ac_ext <<_ACEOF
16524 /* confdefs.h.  */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h.  */
16529 #include <stdlib.h>
16531 _ACEOF
16532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16533   $EGREP "free" >/dev/null 2>&1; then
16534   :
16535 else
16536   ac_cv_header_stdc=no
16538 rm -f conftest*
16542 if test $ac_cv_header_stdc = yes; then
16543   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16544   if test "$cross_compiling" = yes; then
16545   :
16546 else
16547   cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 #include <ctype.h>
16554 #if ((' ' & 0x0FF) == 0x020)
16555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16557 #else
16558 # define ISLOWER(c) \
16559                    (('a' <= (c) && (c) <= 'i') \
16560                      || ('j' <= (c) && (c) <= 'r') \
16561                      || ('s' <= (c) && (c) <= 'z'))
16562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16563 #endif
16565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16566 int
16567 main ()
16569   int i;
16570   for (i = 0; i < 256; i++)
16571     if (XOR (islower (i), ISLOWER (i))
16572         || toupper (i) != TOUPPER (i))
16573       exit(2);
16574   exit (0);
16576 _ACEOF
16577 rm -f conftest$ac_exeext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579   (eval $ac_link) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584   (eval $ac_try) 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); }; }; then
16588   :
16589 else
16590   echo "$as_me: program exited with status $ac_status" >&5
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16594 ( exit $ac_status )
16595 ac_cv_header_stdc=no
16597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16601 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16602 echo "${ECHO_T}$ac_cv_header_stdc" >&6
16603 if test $ac_cv_header_stdc = yes; then
16605 cat >>confdefs.h <<\_ACEOF
16606 #define STDC_HEADERS 1
16607 _ACEOF
16618 for ac_header in fcntl.h stdlib.h string.h sys/param.h sys/socket.h sys/time.h unistd.h
16620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16622   echo "$as_me:$LINENO: checking for $ac_header" >&5
16623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16625   echo $ECHO_N "(cached) $ECHO_C" >&6
16627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16629 else
16630   # Is the header compilable?
16631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16633 cat >conftest.$ac_ext <<_ACEOF
16634 /* confdefs.h.  */
16635 _ACEOF
16636 cat confdefs.h >>conftest.$ac_ext
16637 cat >>conftest.$ac_ext <<_ACEOF
16638 /* end confdefs.h.  */
16639 $ac_includes_default
16640 #include <$ac_header>
16641 _ACEOF
16642 rm -f conftest.$ac_objext
16643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16644   (eval $ac_compile) 2>conftest.er1
16645   ac_status=$?
16646   grep -v '^ *+' conftest.er1 >conftest.err
16647   rm -f conftest.er1
16648   cat conftest.err >&5
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); } &&
16651          { ac_try='test -z "$ac_c_werror_flag"
16652                          || test ! -s conftest.err'
16653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654   (eval $ac_try) 2>&5
16655   ac_status=$?
16656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657   (exit $ac_status); }; } &&
16658          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16664   ac_header_compiler=yes
16665 else
16666   echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_header_compiler=no
16671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16673 echo "${ECHO_T}$ac_header_compiler" >&6
16675 # Is the header present?
16676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16678 cat >conftest.$ac_ext <<_ACEOF
16679 /* confdefs.h.  */
16680 _ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h.  */
16684 #include <$ac_header>
16685 _ACEOF
16686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } >/dev/null; then
16694   if test -s conftest.err; then
16695     ac_cpp_err=$ac_c_preproc_warn_flag
16696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16697   else
16698     ac_cpp_err=
16699   fi
16700 else
16701   ac_cpp_err=yes
16703 if test -z "$ac_cpp_err"; then
16704   ac_header_preproc=yes
16705 else
16706   echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16709   ac_header_preproc=no
16711 rm -f conftest.err conftest.$ac_ext
16712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16713 echo "${ECHO_T}$ac_header_preproc" >&6
16715 # So?  What about this header?
16716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16717   yes:no: )
16718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16722     ac_header_preproc=yes
16723     ;;
16724   no:yes:* )
16725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16737     (
16738       cat <<\_ASBOX
16739 ## --------------------------------- ##
16740 ## Report this to the TI IPC lists.  ##
16741 ## --------------------------------- ##
16742 _ASBOX
16743     ) |
16744       sed "s/^/$as_me: WARNING:     /" >&2
16745     ;;
16746 esac
16747 echo "$as_me:$LINENO: checking for $ac_header" >&5
16748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16750   echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752   eval "$as_ac_Header=\$ac_header_preproc"
16754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16759   cat >>confdefs.h <<_ACEOF
16760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16761 _ACEOF
16765 done
16768 # Export CFLAGS and LDFLAGS to Makefile(s)
16772 # Add config variables/options and check them
16777 # Test platform variable for setting
16778 if test "x$PLATFORM" = "xomapl138"; then
16779   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16780 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16781 else
16782   if test "x$PLATFORM" = "xtci6614"; then
16783   { echo "$as_me:$LINENO: PLATFORM is set to ${PLATFORM}" >&5
16784 echo "$as_me: PLATFORM is set to ${PLATFORM}" >&6;}
16785 else
16786   if test "x$PLATFORM" = "xtci6638"; 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" = "xomap54xx_smp"; 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" = "x"; then
16795   { echo "$as_me:$LINENO: PLATFORM is not set. All supported platforms will be built ...." >&5
16796 echo "$as_me: PLATFORM is not set. All supported platforms will be built ...." >&6;}
16797 else
16798   { { echo "$as_me:$LINENO: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&5
16799 echo "$as_me: error: PLATFORM is set to \"${PLATFORM}\": run ./configure --help for available PLATFORM options" >&2;}
16800    { (exit 1); exit 1; }; }
16812 # Test platform for omap5 variable and require a KERNEL path
16813 if test "x$PLATFORM" = "xomap54xx_smp"; then
16814   if test "x$KERNEL_INSTALL_DIR" = "x"; then
16815   { { echo "$as_me:$LINENO: error: Kernel path for ${PLATFORM} is not set" >&5
16816 echo "$as_me: error: Kernel path for ${PLATFORM} is not set" >&2;}
16817    { (exit 1); exit 1; }; }
16823 # Ignore KERNEL path when no platform is set
16824 if test "x$PLATFORM" = "x"; then
16825   KERNEL_INSTALL_DIR=
16829 # Export optional user variable to Makefile(s)
16834 # Define specific variables to be used in Makefile.am
16837 if test "x$PLATFORM" = "xomapl138"; then
16838   OMAPL138_TRUE=
16839   OMAPL138_FALSE='#'
16840 else
16841   OMAPL138_TRUE='#'
16842   OMAPL138_FALSE=
16847 if test "x$PLATFORM" = "xtci6614"; then
16848   TCI6614_TRUE=
16849   TCI6614_FALSE='#'
16850 else
16851   TCI6614_TRUE='#'
16852   TCI6614_FALSE=
16857 if test "x$PLATFORM" = "xtci6638"; then
16858   TCI6638_TRUE=
16859   TCI6638_FALSE='#'
16860 else
16861   TCI6638_TRUE='#'
16862   TCI6638_FALSE=
16867 if test "x$PLATFORM" = "xomap54xx_smp"; then
16868   OMAP54XX_SMP_TRUE=
16869   OMAP54XX_SMP_FALSE='#'
16870 else
16871   OMAP54XX_SMP_TRUE='#'
16872   OMAP54XX_SMP_FALSE=
16877 if test "x$CMEM_INSTALL_DIR" != "x"; then
16878   CMEM_TRUE=
16879   CMEM_FALSE='#'
16880 else
16881   CMEM_TRUE='#'
16882   CMEM_FALSE=
16887 if test "x$KERNEL_INSTALL_DIR" != "x"; then
16888   KDIR_TRUE=
16889   KDIR_FALSE='#'
16890 else
16891   KDIR_TRUE='#'
16892   KDIR_FALSE=
16896 # Generate Makefile(s)
16897           ac_config_files="$ac_config_files Makefile"
16899           ac_config_files="$ac_config_files linux/etc/Makefile"
16901           ac_config_files="$ac_config_files linux/src/utils/Makefile"
16903           ac_config_files="$ac_config_files linux/src/api/Makefile"
16905           ac_config_files="$ac_config_files linux/src/mm/Makefile"
16907           ac_config_files="$ac_config_files linux/src/daemon/Makefile"
16909           ac_config_files="$ac_config_files linux/src/tests/Makefile"
16911 cat >confcache <<\_ACEOF
16912 # This file is a shell script that caches the results of configure
16913 # tests run on this system so they can be shared between configure
16914 # scripts and configure runs, see configure's option --config-cache.
16915 # It is not useful on other systems.  If it contains results you don't
16916 # want to keep, you may remove or edit it.
16918 # config.status only pays attention to the cache file if you give it
16919 # the --recheck option to rerun configure.
16921 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16922 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16923 # following values.
16925 _ACEOF
16927 # The following way of writing the cache mishandles newlines in values,
16928 # but we know of no workaround that is simple, portable, and efficient.
16929 # So, don't put newlines in cache variables' values.
16930 # Ultrix sh set writes to stderr and can't be redirected directly,
16931 # and sets the high bit in the cache file unless we assign to the vars.
16933   (set) 2>&1 |
16934     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16935     *ac_space=\ *)
16936       # `set' does not quote correctly, so add quotes (double-quote
16937       # substitution turns \\\\ into \\, and sed turns \\ into \).
16938       sed -n \
16939         "s/'/'\\\\''/g;
16940           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16941       ;;
16942     *)
16943       # `set' quotes correctly as required by POSIX, so do not add quotes.
16944       sed -n \
16945         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16946       ;;
16947     esac;
16948 } |
16949   sed '
16950      t clear
16951      : clear
16952      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16953      t end
16954      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16955      : end' >>confcache
16956 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16957   if test -w $cache_file; then
16958     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16959     cat confcache >$cache_file
16960   else
16961     echo "not updating unwritable cache $cache_file"
16962   fi
16964 rm -f confcache
16966 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16967 # Let make expand exec_prefix.
16968 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16970 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16971 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16972 # trailing colons and then remove the whole line if VPATH becomes empty
16973 # (actually we leave an empty line to preserve line numbers).
16974 if test "x$srcdir" = x.; then
16975   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16976 s/:*\$(srcdir):*/:/;
16977 s/:*\${srcdir}:*/:/;
16978 s/:*@srcdir@:*/:/;
16979 s/^\([^=]*=[     ]*\):*/\1/;
16980 s/:*$//;
16981 s/^[^=]*=[       ]*$//;
16985 # Transform confdefs.h into DEFS.
16986 # Protect against shell expansion while executing Makefile rules.
16987 # Protect against Makefile macro expansion.
16989 # If the first sed substitution is executed (which looks for macros that
16990 # take arguments), then we branch to the quote section.  Otherwise,
16991 # look for a macro that doesn't take arguments.
16992 cat >confdef2opt.sed <<\_ACEOF
16993 t clear
16994 : clear
16995 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
16996 t quote
16997 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
16998 t quote
17000 : quote
17001 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
17002 s,\[,\\&,g
17003 s,\],\\&,g
17004 s,\$,$$,g
17006 _ACEOF
17007 # We use echo to avoid assuming a particular line-breaking character.
17008 # The extra dot is to prevent the shell from consuming trailing
17009 # line-breaks from the sub-command output.  A line-break within
17010 # single-quotes doesn't work because, if this script is created in a
17011 # platform that uses two characters for line-breaks (e.g., DOS), tr
17012 # would break.
17013 ac_LF_and_DOT=`echo; echo .`
17014 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
17015 rm -f confdef2opt.sed
17018 ac_libobjs=
17019 ac_ltlibobjs=
17020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17021   # 1. Remove the extension, and $U if already installed.
17022   ac_i=`echo "$ac_i" |
17023          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17024   # 2. Add them.
17025   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17026   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17027 done
17028 LIBOBJS=$ac_libobjs
17030 LTLIBOBJS=$ac_ltlibobjs
17033 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17034   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17035 Usually this means the macro was only invoked conditionally." >&5
17036 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17037 Usually this means the macro was only invoked conditionally." >&2;}
17038    { (exit 1); exit 1; }; }
17040 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17041   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17042 Usually this means the macro was only invoked conditionally." >&5
17043 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17044 Usually this means the macro was only invoked conditionally." >&2;}
17045    { (exit 1); exit 1; }; }
17047 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17048   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17049 Usually this means the macro was only invoked conditionally." >&5
17050 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17051 Usually this means the macro was only invoked conditionally." >&2;}
17052    { (exit 1); exit 1; }; }
17054 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17055   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17056 Usually this means the macro was only invoked conditionally." >&5
17057 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17058 Usually this means the macro was only invoked conditionally." >&2;}
17059    { (exit 1); exit 1; }; }
17061 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17062   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17063 Usually this means the macro was only invoked conditionally." >&5
17064 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17065 Usually this means the macro was only invoked conditionally." >&2;}
17066    { (exit 1); exit 1; }; }
17068 if test -z "${OMAPL138_TRUE}" && test -z "${OMAPL138_FALSE}"; then
17069   { { echo "$as_me:$LINENO: error: conditional \"OMAPL138\" was never defined.
17070 Usually this means the macro was only invoked conditionally." >&5
17071 echo "$as_me: error: conditional \"OMAPL138\" was never defined.
17072 Usually this means the macro was only invoked conditionally." >&2;}
17073    { (exit 1); exit 1; }; }
17075 if test -z "${TCI6614_TRUE}" && test -z "${TCI6614_FALSE}"; then
17076   { { echo "$as_me:$LINENO: error: conditional \"TCI6614\" was never defined.
17077 Usually this means the macro was only invoked conditionally." >&5
17078 echo "$as_me: error: conditional \"TCI6614\" was never defined.
17079 Usually this means the macro was only invoked conditionally." >&2;}
17080    { (exit 1); exit 1; }; }
17082 if test -z "${TCI6638_TRUE}" && test -z "${TCI6638_FALSE}"; then
17083   { { echo "$as_me:$LINENO: error: conditional \"TCI6638\" was never defined.
17084 Usually this means the macro was only invoked conditionally." >&5
17085 echo "$as_me: error: conditional \"TCI6638\" was never defined.
17086 Usually this means the macro was only invoked conditionally." >&2;}
17087    { (exit 1); exit 1; }; }
17089 if test -z "${OMAP54XX_SMP_TRUE}" && test -z "${OMAP54XX_SMP_FALSE}"; then
17090   { { echo "$as_me:$LINENO: error: conditional \"OMAP54XX_SMP\" was never defined.
17091 Usually this means the macro was only invoked conditionally." >&5
17092 echo "$as_me: error: conditional \"OMAP54XX_SMP\" was never defined.
17093 Usually this means the macro was only invoked conditionally." >&2;}
17094    { (exit 1); exit 1; }; }
17096 if test -z "${CMEM_TRUE}" && test -z "${CMEM_FALSE}"; then
17097   { { echo "$as_me:$LINENO: error: conditional \"CMEM\" was never defined.
17098 Usually this means the macro was only invoked conditionally." >&5
17099 echo "$as_me: error: conditional \"CMEM\" was never defined.
17100 Usually this means the macro was only invoked conditionally." >&2;}
17101    { (exit 1); exit 1; }; }
17103 if test -z "${KDIR_TRUE}" && test -z "${KDIR_FALSE}"; then
17104   { { echo "$as_me:$LINENO: error: conditional \"KDIR\" was never defined.
17105 Usually this means the macro was only invoked conditionally." >&5
17106 echo "$as_me: error: conditional \"KDIR\" was never defined.
17107 Usually this means the macro was only invoked conditionally." >&2;}
17108    { (exit 1); exit 1; }; }
17111 : ${CONFIG_STATUS=./config.status}
17112 ac_clean_files_save=$ac_clean_files
17113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17114 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17115 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17116 cat >$CONFIG_STATUS <<_ACEOF
17117 #! $SHELL
17118 # Generated by $as_me.
17119 # Run this file to recreate the current configuration.
17120 # Compiler output produced by configure, useful for debugging
17121 # configure, is in config.log if it exists.
17123 debug=false
17124 ac_cs_recheck=false
17125 ac_cs_silent=false
17126 SHELL=\${CONFIG_SHELL-$SHELL}
17127 _ACEOF
17129 cat >>$CONFIG_STATUS <<\_ACEOF
17130 ## --------------------- ##
17131 ## M4sh Initialization.  ##
17132 ## --------------------- ##
17134 # Be Bourne compatible
17135 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17136   emulate sh
17137   NULLCMD=:
17138   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17139   # is contrary to our usage.  Disable this feature.
17140   alias -g '${1+"$@"}'='"$@"'
17141 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17142   set -o posix
17144 DUALCASE=1; export DUALCASE # for MKS sh
17146 # Support unset when possible.
17147 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17148   as_unset=unset
17149 else
17150   as_unset=false
17154 # Work around bugs in pre-3.0 UWIN ksh.
17155 $as_unset ENV MAIL MAILPATH
17156 PS1='$ '
17157 PS2='> '
17158 PS4='+ '
17160 # NLS nuisances.
17161 for as_var in \
17162   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17163   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17164   LC_TELEPHONE LC_TIME
17166   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17167     eval $as_var=C; export $as_var
17168   else
17169     $as_unset $as_var
17170   fi
17171 done
17173 # Required to use basename.
17174 if expr a : '\(a\)' >/dev/null 2>&1; then
17175   as_expr=expr
17176 else
17177   as_expr=false
17180 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17181   as_basename=basename
17182 else
17183   as_basename=false
17187 # Name of the executable.
17188 as_me=`$as_basename "$0" ||
17189 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17190          X"$0" : 'X\(//\)$' \| \
17191          X"$0" : 'X\(/\)$' \| \
17192          .     : '\(.\)' 2>/dev/null ||
17193 echo X/"$0" |
17194     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17195           /^X\/\(\/\/\)$/{ s//\1/; q; }
17196           /^X\/\(\/\).*/{ s//\1/; q; }
17197           s/.*/./; q'`
17200 # PATH needs CR, and LINENO needs CR and PATH.
17201 # Avoid depending upon Character Ranges.
17202 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17203 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17204 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17205 as_cr_digits='0123456789'
17206 as_cr_alnum=$as_cr_Letters$as_cr_digits
17208 # The user is always right.
17209 if test "${PATH_SEPARATOR+set}" != set; then
17210   echo "#! /bin/sh" >conf$$.sh
17211   echo  "exit 0"   >>conf$$.sh
17212   chmod +x conf$$.sh
17213   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17214     PATH_SEPARATOR=';'
17215   else
17216     PATH_SEPARATOR=:
17217   fi
17218   rm -f conf$$.sh
17222   as_lineno_1=$LINENO
17223   as_lineno_2=$LINENO
17224   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17225   test "x$as_lineno_1" != "x$as_lineno_2" &&
17226   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17227   # Find who we are.  Look in the path if we contain no path at all
17228   # relative or not.
17229   case $0 in
17230     *[\\/]* ) as_myself=$0 ;;
17231     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17232 for as_dir in $PATH
17234   IFS=$as_save_IFS
17235   test -z "$as_dir" && as_dir=.
17236   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17237 done
17239        ;;
17240   esac
17241   # We did not find ourselves, most probably we were run as `sh COMMAND'
17242   # in which case we are not to be found in the path.
17243   if test "x$as_myself" = x; then
17244     as_myself=$0
17245   fi
17246   if test ! -f "$as_myself"; then
17247     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17248 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17249    { (exit 1); exit 1; }; }
17250   fi
17251   case $CONFIG_SHELL in
17252   '')
17253     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17254 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17256   IFS=$as_save_IFS
17257   test -z "$as_dir" && as_dir=.
17258   for as_base in sh bash ksh sh5; do
17259          case $as_dir in
17260          /*)
17261            if ("$as_dir/$as_base" -c '
17262   as_lineno_1=$LINENO
17263   as_lineno_2=$LINENO
17264   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17265   test "x$as_lineno_1" != "x$as_lineno_2" &&
17266   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17267              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17268              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17269              CONFIG_SHELL=$as_dir/$as_base
17270              export CONFIG_SHELL
17271              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17272            fi;;
17273          esac
17274        done
17275 done
17277   esac
17279   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17280   # uniformly replaced by the line number.  The first 'sed' inserts a
17281   # line-number line before each line; the second 'sed' does the real
17282   # work.  The second script uses 'N' to pair each line-number line
17283   # with the numbered line, and appends trailing '-' during
17284   # substitution so that $LINENO is not a special case at line end.
17285   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17286   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17287   sed '=' <$as_myself |
17288     sed '
17289       N
17290       s,$,-,
17291       : loop
17292       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17293       t loop
17294       s,-$,,
17295       s,^['$as_cr_digits']*\n,,
17296     ' >$as_me.lineno &&
17297   chmod +x $as_me.lineno ||
17298     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17299 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17300    { (exit 1); exit 1; }; }
17302   # Don't try to exec as it changes $[0], causing all sort of problems
17303   # (the dirname of $[0] is not the place where we might find the
17304   # original and so on.  Autoconf is especially sensible to this).
17305   . ./$as_me.lineno
17306   # Exit status is that of the last command.
17307   exit
17311 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17312   *c*,-n*) ECHO_N= ECHO_C='
17313 ' ECHO_T='      ' ;;
17314   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17315   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17316 esac
17318 if expr a : '\(a\)' >/dev/null 2>&1; then
17319   as_expr=expr
17320 else
17321   as_expr=false
17324 rm -f conf$$ conf$$.exe conf$$.file
17325 echo >conf$$.file
17326 if ln -s conf$$.file conf$$ 2>/dev/null; then
17327   # We could just check for DJGPP; but this test a) works b) is more generic
17328   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17329   if test -f conf$$.exe; then
17330     # Don't use ln at all; we don't have any links
17331     as_ln_s='cp -p'
17332   else
17333     as_ln_s='ln -s'
17334   fi
17335 elif ln conf$$.file conf$$ 2>/dev/null; then
17336   as_ln_s=ln
17337 else
17338   as_ln_s='cp -p'
17340 rm -f conf$$ conf$$.exe conf$$.file
17342 if mkdir -p . 2>/dev/null; then
17343   as_mkdir_p=:
17344 else
17345   test -d ./-p && rmdir ./-p
17346   as_mkdir_p=false
17349 as_executable_p="test -f"
17351 # Sed expression to map a string onto a valid CPP name.
17352 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17354 # Sed expression to map a string onto a valid variable name.
17355 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17358 # IFS
17359 # We need space, tab and new line, in precisely that order.
17360 as_nl='
17362 IFS="   $as_nl"
17364 # CDPATH.
17365 $as_unset CDPATH
17367 exec 6>&1
17369 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17370 # report actual input values of CONFIG_FILES etc. instead of their
17371 # values after options handling.  Logging --version etc. is OK.
17372 exec 5>>config.log
17374   echo
17375   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17376 ## Running $as_me. ##
17377 _ASBOX
17378 } >&5
17379 cat >&5 <<_CSEOF
17381 This file was extended by TI IPC $as_me 3.0.0, which was
17382 generated by GNU Autoconf 2.59.  Invocation command line was
17384   CONFIG_FILES    = $CONFIG_FILES
17385   CONFIG_HEADERS  = $CONFIG_HEADERS
17386   CONFIG_LINKS    = $CONFIG_LINKS
17387   CONFIG_COMMANDS = $CONFIG_COMMANDS
17388   $ $0 $@
17390 _CSEOF
17391 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17392 echo >&5
17393 _ACEOF
17395 # Files that config.status was made for.
17396 if test -n "$ac_config_files"; then
17397   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17400 if test -n "$ac_config_headers"; then
17401   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17404 if test -n "$ac_config_links"; then
17405   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17408 if test -n "$ac_config_commands"; then
17409   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17412 cat >>$CONFIG_STATUS <<\_ACEOF
17414 ac_cs_usage="\
17415 \`$as_me' instantiates files from templates according to the
17416 current configuration.
17418 Usage: $0 [OPTIONS] [FILE]...
17420   -h, --help       print this help, then exit
17421   -V, --version    print version number, then exit
17422   -q, --quiet      do not print progress messages
17423   -d, --debug      don't remove temporary files
17424       --recheck    update $as_me by reconfiguring in the same conditions
17425   --file=FILE[:TEMPLATE]
17426                    instantiate the configuration file FILE
17428 Configuration files:
17429 $config_files
17431 Configuration commands:
17432 $config_commands
17434 Report bugs to <bug-autoconf@gnu.org>."
17435 _ACEOF
17437 cat >>$CONFIG_STATUS <<_ACEOF
17438 ac_cs_version="\\
17439 TI IPC config.status 3.0.0
17440 configured by $0, generated by GNU Autoconf 2.59,
17441   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17443 Copyright (C) 2003 Free Software Foundation, Inc.
17444 This config.status script is free software; the Free Software Foundation
17445 gives unlimited permission to copy, distribute and modify it."
17446 srcdir=$srcdir
17447 INSTALL="$INSTALL"
17448 _ACEOF
17450 cat >>$CONFIG_STATUS <<\_ACEOF
17451 # If no file are specified by the user, then we need to provide default
17452 # value.  By we need to know if files were specified by the user.
17453 ac_need_defaults=:
17454 while test $# != 0
17456   case $1 in
17457   --*=*)
17458     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17459     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17460     ac_shift=:
17461     ;;
17462   -*)
17463     ac_option=$1
17464     ac_optarg=$2
17465     ac_shift=shift
17466     ;;
17467   *) # This is not an option, so the user has probably given explicit
17468      # arguments.
17469      ac_option=$1
17470      ac_need_defaults=false;;
17471   esac
17473   case $ac_option in
17474   # Handling of the options.
17475 _ACEOF
17476 cat >>$CONFIG_STATUS <<\_ACEOF
17477   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17478     ac_cs_recheck=: ;;
17479   --version | --vers* | -V )
17480     echo "$ac_cs_version"; exit 0 ;;
17481   --he | --h)
17482     # Conflict between --help and --header
17483     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17484 Try \`$0 --help' for more information." >&5
17485 echo "$as_me: error: ambiguous option: $1
17486 Try \`$0 --help' for more information." >&2;}
17487    { (exit 1); exit 1; }; };;
17488   --help | --hel | -h )
17489     echo "$ac_cs_usage"; exit 0 ;;
17490   --debug | --d* | -d )
17491     debug=: ;;
17492   --file | --fil | --fi | --f )
17493     $ac_shift
17494     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17495     ac_need_defaults=false;;
17496   --header | --heade | --head | --hea )
17497     $ac_shift
17498     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17499     ac_need_defaults=false;;
17500   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17501   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17502     ac_cs_silent=: ;;
17504   # This is an error.
17505   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17506 Try \`$0 --help' for more information." >&5
17507 echo "$as_me: error: unrecognized option: $1
17508 Try \`$0 --help' for more information." >&2;}
17509    { (exit 1); exit 1; }; } ;;
17511   *) ac_config_targets="$ac_config_targets $1" ;;
17513   esac
17514   shift
17515 done
17517 ac_configure_extra_args=
17519 if $ac_cs_silent; then
17520   exec 6>/dev/null
17521   ac_configure_extra_args="$ac_configure_extra_args --silent"
17524 _ACEOF
17525 cat >>$CONFIG_STATUS <<_ACEOF
17526 if \$ac_cs_recheck; then
17527   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17528   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17531 _ACEOF
17533 cat >>$CONFIG_STATUS <<_ACEOF
17535 # INIT-COMMANDS section.
17538 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17540 _ACEOF
17544 cat >>$CONFIG_STATUS <<\_ACEOF
17545 for ac_config_target in $ac_config_targets
17547   case "$ac_config_target" in
17548   # Handling of arguments.
17549   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17550   "linux/etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/etc/Makefile" ;;
17551   "linux/src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/utils/Makefile" ;;
17552   "linux/src/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/api/Makefile" ;;
17553   "linux/src/mm/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/mm/Makefile" ;;
17554   "linux/src/daemon/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/daemon/Makefile" ;;
17555   "linux/src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES linux/src/tests/Makefile" ;;
17556   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17557   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17558 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17559    { (exit 1); exit 1; }; };;
17560   esac
17561 done
17563 # If the user did not use the arguments to specify the items to instantiate,
17564 # then the envvar interface is used.  Set only those that are not.
17565 # We use the long form for the default assignment because of an extremely
17566 # bizarre bug on SunOS 4.1.3.
17567 if $ac_need_defaults; then
17568   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17569   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17572 # Have a temporary directory for convenience.  Make it in the build tree
17573 # simply because there is no reason to put it here, and in addition,
17574 # creating and moving files from /tmp can sometimes cause problems.
17575 # Create a temporary directory, and hook for its removal unless debugging.
17576 $debug ||
17578   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17579   trap '{ (exit 1); exit 1; }' 1 2 13 15
17582 # Create a (secure) tmp directory for tmp files.
17585   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17586   test -n "$tmp" && test -d "$tmp"
17587 }  ||
17589   tmp=./confstat$$-$RANDOM
17590   (umask 077 && mkdir $tmp)
17591 } ||
17593    echo "$me: cannot create a temporary directory in ." >&2
17594    { (exit 1); exit 1; }
17597 _ACEOF
17599 cat >>$CONFIG_STATUS <<_ACEOF
17602 # CONFIG_FILES section.
17605 # No need to generate the scripts if there are no CONFIG_FILES.
17606 # This happens for instance when ./config.status config.h
17607 if test -n "\$CONFIG_FILES"; then
17608   # Protect against being on the right side of a sed subst in config.status.
17609   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17610    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17611 s,@SHELL@,$SHELL,;t t
17612 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17613 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17614 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17615 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17616 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17617 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17618 s,@exec_prefix@,$exec_prefix,;t t
17619 s,@prefix@,$prefix,;t t
17620 s,@program_transform_name@,$program_transform_name,;t t
17621 s,@bindir@,$bindir,;t t
17622 s,@sbindir@,$sbindir,;t t
17623 s,@libexecdir@,$libexecdir,;t t
17624 s,@datadir@,$datadir,;t t
17625 s,@sysconfdir@,$sysconfdir,;t t
17626 s,@sharedstatedir@,$sharedstatedir,;t t
17627 s,@localstatedir@,$localstatedir,;t t
17628 s,@libdir@,$libdir,;t t
17629 s,@includedir@,$includedir,;t t
17630 s,@oldincludedir@,$oldincludedir,;t t
17631 s,@infodir@,$infodir,;t t
17632 s,@mandir@,$mandir,;t t
17633 s,@build_alias@,$build_alias,;t t
17634 s,@host_alias@,$host_alias,;t t
17635 s,@target_alias@,$target_alias,;t t
17636 s,@DEFS@,$DEFS,;t t
17637 s,@ECHO_C@,$ECHO_C,;t t
17638 s,@ECHO_N@,$ECHO_N,;t t
17639 s,@ECHO_T@,$ECHO_T,;t t
17640 s,@LIBS@,$LIBS,;t t
17641 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17642 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17643 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17644 s,@CYGPATH_W@,$CYGPATH_W,;t t
17645 s,@PACKAGE@,$PACKAGE,;t t
17646 s,@VERSION@,$VERSION,;t t
17647 s,@ACLOCAL@,$ACLOCAL,;t t
17648 s,@AUTOCONF@,$AUTOCONF,;t t
17649 s,@AUTOMAKE@,$AUTOMAKE,;t t
17650 s,@AUTOHEADER@,$AUTOHEADER,;t t
17651 s,@MAKEINFO@,$MAKEINFO,;t t
17652 s,@install_sh@,$install_sh,;t t
17653 s,@STRIP@,$STRIP,;t t
17654 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17655 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17656 s,@mkdir_p@,$mkdir_p,;t t
17657 s,@AWK@,$AWK,;t t
17658 s,@SET_MAKE@,$SET_MAKE,;t t
17659 s,@am__leading_dot@,$am__leading_dot,;t t
17660 s,@AMTAR@,$AMTAR,;t t
17661 s,@am__tar@,$am__tar,;t t
17662 s,@am__untar@,$am__untar,;t t
17663 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17664 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17665 s,@MAINT@,$MAINT,;t t
17666 s,@build@,$build,;t t
17667 s,@build_cpu@,$build_cpu,;t t
17668 s,@build_vendor@,$build_vendor,;t t
17669 s,@build_os@,$build_os,;t t
17670 s,@host@,$host,;t t
17671 s,@host_cpu@,$host_cpu,;t t
17672 s,@host_vendor@,$host_vendor,;t t
17673 s,@host_os@,$host_os,;t t
17674 s,@CC@,$CC,;t t
17675 s,@CFLAGS@,$CFLAGS,;t t
17676 s,@LDFLAGS@,$LDFLAGS,;t t
17677 s,@CPPFLAGS@,$CPPFLAGS,;t t
17678 s,@ac_ct_CC@,$ac_ct_CC,;t t
17679 s,@EXEEXT@,$EXEEXT,;t t
17680 s,@OBJEXT@,$OBJEXT,;t t
17681 s,@DEPDIR@,$DEPDIR,;t t
17682 s,@am__include@,$am__include,;t t
17683 s,@am__quote@,$am__quote,;t t
17684 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17685 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17686 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17687 s,@CCDEPMODE@,$CCDEPMODE,;t t
17688 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17689 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17690 s,@EGREP@,$EGREP,;t t
17691 s,@LN_S@,$LN_S,;t t
17692 s,@ECHO@,$ECHO,;t t
17693 s,@AR@,$AR,;t t
17694 s,@ac_ct_AR@,$ac_ct_AR,;t t
17695 s,@RANLIB@,$RANLIB,;t t
17696 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17697 s,@CPP@,$CPP,;t t
17698 s,@CXX@,$CXX,;t t
17699 s,@CXXFLAGS@,$CXXFLAGS,;t t
17700 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17701 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17702 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17703 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17704 s,@CXXCPP@,$CXXCPP,;t t
17705 s,@LIBTOOL@,$LIBTOOL,;t t
17706 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
17707 s,@AM_LDFLAGS@,$AM_LDFLAGS,;t t
17708 s,@PLATFORM@,$PLATFORM,;t t
17709 s,@CMEM_INSTALL_DIR@,$CMEM_INSTALL_DIR,;t t
17710 s,@KERNEL_INSTALL_DIR@,$KERNEL_INSTALL_DIR,;t t
17711 s,@OMAPL138_TRUE@,$OMAPL138_TRUE,;t t
17712 s,@OMAPL138_FALSE@,$OMAPL138_FALSE,;t t
17713 s,@TCI6614_TRUE@,$TCI6614_TRUE,;t t
17714 s,@TCI6614_FALSE@,$TCI6614_FALSE,;t t
17715 s,@TCI6638_TRUE@,$TCI6638_TRUE,;t t
17716 s,@TCI6638_FALSE@,$TCI6638_FALSE,;t t
17717 s,@OMAP54XX_SMP_TRUE@,$OMAP54XX_SMP_TRUE,;t t
17718 s,@OMAP54XX_SMP_FALSE@,$OMAP54XX_SMP_FALSE,;t t
17719 s,@CMEM_TRUE@,$CMEM_TRUE,;t t
17720 s,@CMEM_FALSE@,$CMEM_FALSE,;t t
17721 s,@KDIR_TRUE@,$KDIR_TRUE,;t t
17722 s,@KDIR_FALSE@,$KDIR_FALSE,;t t
17723 s,@LIBOBJS@,$LIBOBJS,;t t
17724 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17725 CEOF
17727 _ACEOF
17729   cat >>$CONFIG_STATUS <<\_ACEOF
17730   # Split the substitutions into bite-sized pieces for seds with
17731   # small command number limits, like on Digital OSF/1 and HP-UX.
17732   ac_max_sed_lines=48
17733   ac_sed_frag=1 # Number of current file.
17734   ac_beg=1 # First line for current file.
17735   ac_end=$ac_max_sed_lines # Line after last line for current file.
17736   ac_more_lines=:
17737   ac_sed_cmds=
17738   while $ac_more_lines; do
17739     if test $ac_beg -gt 1; then
17740       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17741     else
17742       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17743     fi
17744     if test ! -s $tmp/subs.frag; then
17745       ac_more_lines=false
17746     else
17747       # The purpose of the label and of the branching condition is to
17748       # speed up the sed processing (if there are no `@' at all, there
17749       # is no need to browse any of the substitutions).
17750       # These are the two extra sed commands mentioned above.
17751       (echo ':t
17752   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17753       if test -z "$ac_sed_cmds"; then
17754         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17755       else
17756         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17757       fi
17758       ac_sed_frag=`expr $ac_sed_frag + 1`
17759       ac_beg=$ac_end
17760       ac_end=`expr $ac_end + $ac_max_sed_lines`
17761     fi
17762   done
17763   if test -z "$ac_sed_cmds"; then
17764     ac_sed_cmds=cat
17765   fi
17766 fi # test -n "$CONFIG_FILES"
17768 _ACEOF
17769 cat >>$CONFIG_STATUS <<\_ACEOF
17770 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17771   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17772   case $ac_file in
17773   - | *:- | *:-:* ) # input from stdin
17774         cat >$tmp/stdin
17775         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17776         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17777   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17778         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17779   * )   ac_file_in=$ac_file.in ;;
17780   esac
17782   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17783   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17784 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17785          X"$ac_file" : 'X\(//\)[^/]' \| \
17786          X"$ac_file" : 'X\(//\)$' \| \
17787          X"$ac_file" : 'X\(/\)' \| \
17788          .     : '\(.\)' 2>/dev/null ||
17789 echo X"$ac_file" |
17790     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17791           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17792           /^X\(\/\/\)$/{ s//\1/; q; }
17793           /^X\(\/\).*/{ s//\1/; q; }
17794           s/.*/./; q'`
17795   { if $as_mkdir_p; then
17796     mkdir -p "$ac_dir"
17797   else
17798     as_dir="$ac_dir"
17799     as_dirs=
17800     while test ! -d "$as_dir"; do
17801       as_dirs="$as_dir $as_dirs"
17802       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17803 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17804          X"$as_dir" : 'X\(//\)[^/]' \| \
17805          X"$as_dir" : 'X\(//\)$' \| \
17806          X"$as_dir" : 'X\(/\)' \| \
17807          .     : '\(.\)' 2>/dev/null ||
17808 echo X"$as_dir" |
17809     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17810           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17811           /^X\(\/\/\)$/{ s//\1/; q; }
17812           /^X\(\/\).*/{ s//\1/; q; }
17813           s/.*/./; q'`
17814     done
17815     test ! -n "$as_dirs" || mkdir $as_dirs
17816   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17817 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17818    { (exit 1); exit 1; }; }; }
17820   ac_builddir=.
17822 if test "$ac_dir" != .; then
17823   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17824   # A "../" for each directory in $ac_dir_suffix.
17825   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17826 else
17827   ac_dir_suffix= ac_top_builddir=
17830 case $srcdir in
17831   .)  # No --srcdir option.  We are building in place.
17832     ac_srcdir=.
17833     if test -z "$ac_top_builddir"; then
17834        ac_top_srcdir=.
17835     else
17836        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17837     fi ;;
17838   [\\/]* | ?:[\\/]* )  # Absolute path.
17839     ac_srcdir=$srcdir$ac_dir_suffix;
17840     ac_top_srcdir=$srcdir ;;
17841   *) # Relative path.
17842     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17843     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17844 esac
17846 # Do not use `cd foo && pwd` to compute absolute paths, because
17847 # the directories may not exist.
17848 case `pwd` in
17849 .) ac_abs_builddir="$ac_dir";;
17851   case "$ac_dir" in
17852   .) ac_abs_builddir=`pwd`;;
17853   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17854   *) ac_abs_builddir=`pwd`/"$ac_dir";;
17855   esac;;
17856 esac
17857 case $ac_abs_builddir in
17858 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17860   case ${ac_top_builddir}. in
17861   .) ac_abs_top_builddir=$ac_abs_builddir;;
17862   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17863   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17864   esac;;
17865 esac
17866 case $ac_abs_builddir in
17867 .) ac_abs_srcdir=$ac_srcdir;;
17869   case $ac_srcdir in
17870   .) ac_abs_srcdir=$ac_abs_builddir;;
17871   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17872   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17873   esac;;
17874 esac
17875 case $ac_abs_builddir in
17876 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17878   case $ac_top_srcdir in
17879   .) ac_abs_top_srcdir=$ac_abs_builddir;;
17880   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17881   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17882   esac;;
17883 esac
17886   case $INSTALL in
17887   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17888   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17889   esac
17891   if test x"$ac_file" != x-; then
17892     { echo "$as_me:$LINENO: creating $ac_file" >&5
17893 echo "$as_me: creating $ac_file" >&6;}
17894     rm -f "$ac_file"
17895   fi
17896   # Let's still pretend it is `configure' which instantiates (i.e., don't
17897   # use $as_me), people would be surprised to read:
17898   #    /* config.h.  Generated by config.status.  */
17899   if test x"$ac_file" = x-; then
17900     configure_input=
17901   else
17902     configure_input="$ac_file.  "
17903   fi
17904   configure_input=$configure_input"Generated from `echo $ac_file_in |
17905                                      sed 's,.*/,,'` by configure."
17907   # First look for the input files in the build tree, otherwise in the
17908   # src tree.
17909   ac_file_inputs=`IFS=:
17910     for f in $ac_file_in; do
17911       case $f in
17912       -) echo $tmp/stdin ;;
17913       [\\/$]*)
17914          # Absolute (can't be DOS-style, as IFS=:)
17915          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17916 echo "$as_me: error: cannot find input file: $f" >&2;}
17917    { (exit 1); exit 1; }; }
17918          echo "$f";;
17919       *) # Relative
17920          if test -f "$f"; then
17921            # Build tree
17922            echo "$f"
17923          elif test -f "$srcdir/$f"; then
17924            # Source tree
17925            echo "$srcdir/$f"
17926          else
17927            # /dev/null tree
17928            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17929 echo "$as_me: error: cannot find input file: $f" >&2;}
17930    { (exit 1); exit 1; }; }
17931          fi;;
17932       esac
17933     done` || { (exit 1); exit 1; }
17934 _ACEOF
17935 cat >>$CONFIG_STATUS <<_ACEOF
17936   sed "$ac_vpsub
17937 $extrasub
17938 _ACEOF
17939 cat >>$CONFIG_STATUS <<\_ACEOF
17941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17942 s,@configure_input@,$configure_input,;t t
17943 s,@srcdir@,$ac_srcdir,;t t
17944 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17945 s,@top_srcdir@,$ac_top_srcdir,;t t
17946 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17947 s,@builddir@,$ac_builddir,;t t
17948 s,@abs_builddir@,$ac_abs_builddir,;t t
17949 s,@top_builddir@,$ac_top_builddir,;t t
17950 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17951 s,@INSTALL@,$ac_INSTALL,;t t
17952 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17953   rm -f $tmp/stdin
17954   if test x"$ac_file" != x-; then
17955     mv $tmp/out $ac_file
17956   else
17957     cat $tmp/out
17958     rm -f $tmp/out
17959   fi
17961 done
17962 _ACEOF
17963 cat >>$CONFIG_STATUS <<\_ACEOF
17966 # CONFIG_COMMANDS section.
17968 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17969   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17970   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17971   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17972 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17973          X"$ac_dest" : 'X\(//\)[^/]' \| \
17974          X"$ac_dest" : 'X\(//\)$' \| \
17975          X"$ac_dest" : 'X\(/\)' \| \
17976          .     : '\(.\)' 2>/dev/null ||
17977 echo X"$ac_dest" |
17978     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17979           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17980           /^X\(\/\/\)$/{ s//\1/; q; }
17981           /^X\(\/\).*/{ s//\1/; q; }
17982           s/.*/./; q'`
17983   { if $as_mkdir_p; then
17984     mkdir -p "$ac_dir"
17985   else
17986     as_dir="$ac_dir"
17987     as_dirs=
17988     while test ! -d "$as_dir"; do
17989       as_dirs="$as_dir $as_dirs"
17990       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17992          X"$as_dir" : 'X\(//\)[^/]' \| \
17993          X"$as_dir" : 'X\(//\)$' \| \
17994          X"$as_dir" : 'X\(/\)' \| \
17995          .     : '\(.\)' 2>/dev/null ||
17996 echo X"$as_dir" |
17997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17998           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17999           /^X\(\/\/\)$/{ s//\1/; q; }
18000           /^X\(\/\).*/{ s//\1/; q; }
18001           s/.*/./; q'`
18002     done
18003     test ! -n "$as_dirs" || mkdir $as_dirs
18004   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18005 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18006    { (exit 1); exit 1; }; }; }
18008   ac_builddir=.
18010 if test "$ac_dir" != .; then
18011   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18012   # A "../" for each directory in $ac_dir_suffix.
18013   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18014 else
18015   ac_dir_suffix= ac_top_builddir=
18018 case $srcdir in
18019   .)  # No --srcdir option.  We are building in place.
18020     ac_srcdir=.
18021     if test -z "$ac_top_builddir"; then
18022        ac_top_srcdir=.
18023     else
18024        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18025     fi ;;
18026   [\\/]* | ?:[\\/]* )  # Absolute path.
18027     ac_srcdir=$srcdir$ac_dir_suffix;
18028     ac_top_srcdir=$srcdir ;;
18029   *) # Relative path.
18030     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18031     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18032 esac
18034 # Do not use `cd foo && pwd` to compute absolute paths, because
18035 # the directories may not exist.
18036 case `pwd` in
18037 .) ac_abs_builddir="$ac_dir";;
18039   case "$ac_dir" in
18040   .) ac_abs_builddir=`pwd`;;
18041   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18042   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18043   esac;;
18044 esac
18045 case $ac_abs_builddir in
18046 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18048   case ${ac_top_builddir}. in
18049   .) ac_abs_top_builddir=$ac_abs_builddir;;
18050   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18051   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18052   esac;;
18053 esac
18054 case $ac_abs_builddir in
18055 .) ac_abs_srcdir=$ac_srcdir;;
18057   case $ac_srcdir in
18058   .) ac_abs_srcdir=$ac_abs_builddir;;
18059   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18060   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18061   esac;;
18062 esac
18063 case $ac_abs_builddir in
18064 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18066   case $ac_top_srcdir in
18067   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18068   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18069   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18070   esac;;
18071 esac
18074   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18075 echo "$as_me: executing $ac_dest commands" >&6;}
18076   case $ac_dest in
18077     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18078   # Strip MF so we end up with the name of the file.
18079   mf=`echo "$mf" | sed -e 's/:.*$//'`
18080   # Check whether this is an Automake generated Makefile or not.
18081   # We used to match only the files named `Makefile.in', but
18082   # some people rename them; so instead we look at the file content.
18083   # Grep'ing the first line is not enough: some people post-process
18084   # each Makefile.in and add a new line on top of each file to say so.
18085   # So let's grep whole file.
18086   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18087     dirpart=`(dirname "$mf") 2>/dev/null ||
18088 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18089          X"$mf" : 'X\(//\)[^/]' \| \
18090          X"$mf" : 'X\(//\)$' \| \
18091          X"$mf" : 'X\(/\)' \| \
18092          .     : '\(.\)' 2>/dev/null ||
18093 echo X"$mf" |
18094     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18095           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18096           /^X\(\/\/\)$/{ s//\1/; q; }
18097           /^X\(\/\).*/{ s//\1/; q; }
18098           s/.*/./; q'`
18099   else
18100     continue
18101   fi
18102   # Extract the definition of DEPDIR, am__include, and am__quote
18103   # from the Makefile without running `make'.
18104   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18105   test -z "$DEPDIR" && continue
18106   am__include=`sed -n 's/^am__include = //p' < "$mf"`
18107   test -z "am__include" && continue
18108   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18109   # When using ansi2knr, U may be empty or an underscore; expand it
18110   U=`sed -n 's/^U = //p' < "$mf"`
18111   # Find all dependency output files, they are included files with
18112   # $(DEPDIR) in their names.  We invoke sed twice because it is the
18113   # simplest approach to changing $(DEPDIR) to its actual value in the
18114   # expansion.
18115   for file in `sed -n "
18116     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18117        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18118     # Make sure the directory exists.
18119     test -f "$dirpart/$file" && continue
18120     fdir=`(dirname "$file") 2>/dev/null ||
18121 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18122          X"$file" : 'X\(//\)[^/]' \| \
18123          X"$file" : 'X\(//\)$' \| \
18124          X"$file" : 'X\(/\)' \| \
18125          .     : '\(.\)' 2>/dev/null ||
18126 echo X"$file" |
18127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18129           /^X\(\/\/\)$/{ s//\1/; q; }
18130           /^X\(\/\).*/{ s//\1/; q; }
18131           s/.*/./; q'`
18132     { if $as_mkdir_p; then
18133     mkdir -p $dirpart/$fdir
18134   else
18135     as_dir=$dirpart/$fdir
18136     as_dirs=
18137     while test ! -d "$as_dir"; do
18138       as_dirs="$as_dir $as_dirs"
18139       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18141          X"$as_dir" : 'X\(//\)[^/]' \| \
18142          X"$as_dir" : 'X\(//\)$' \| \
18143          X"$as_dir" : 'X\(/\)' \| \
18144          .     : '\(.\)' 2>/dev/null ||
18145 echo X"$as_dir" |
18146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18147           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18148           /^X\(\/\/\)$/{ s//\1/; q; }
18149           /^X\(\/\).*/{ s//\1/; q; }
18150           s/.*/./; q'`
18151     done
18152     test ! -n "$as_dirs" || mkdir $as_dirs
18153   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18154 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18155    { (exit 1); exit 1; }; }; }
18157     # echo "creating $dirpart/$file"
18158     echo '# dummy' > "$dirpart/$file"
18159   done
18160 done
18161  ;;
18162   esac
18163 done
18164 _ACEOF
18166 cat >>$CONFIG_STATUS <<\_ACEOF
18168 { (exit 0); exit 0; }
18169 _ACEOF
18170 chmod +x $CONFIG_STATUS
18171 ac_clean_files=$ac_clean_files_save
18174 # configure is writing to config.log, and then calls config.status.
18175 # config.status does its own redirection, appending to config.log.
18176 # Unfortunately, on DOS this fails, as config.log is still kept open
18177 # by configure, so config.status won't be able to write to it; its
18178 # output is simply discarded.  So we exec the FD to /dev/null,
18179 # effectively closing config.log, so it can be properly (re)opened and
18180 # appended to by config.status.  When coming back to configure, we
18181 # need to make the FD available again.
18182 if test "$no_create" != yes; then
18183   ac_cs_success=:
18184   ac_config_status_args=
18185   test "$silent" = yes &&
18186     ac_config_status_args="$ac_config_status_args --quiet"
18187   exec 5>/dev/null
18188   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18189   exec 5>>config.log
18190   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18191   # would make configure fail if this is the last instruction.
18192   $ac_cs_success || { (exit 1); exit 1; }
18196 echo \
18197 "-----------------------------------------------------------
18199 Thank you for installing the Linux ${PACKAGE_NAME} package
18201 Installation directory prefix: '${prefix}'.
18202 Compilation command: '${CC} ${CFLAGS} ${CPPFLAGS}'
18204 You have configured to build for the '${PLATFORM}' platform
18206 Your KERNEL installation directory is set to:
18207     '${KERNEL_INSTALL_DIR}'
18209 Your CMEM installation directory is set to:
18210     '${CMEM_INSTALL_DIR}'
18212 Now type 'make; sudo make install' to generate the program
18213 and install it to your system.
18215 ------------------------------------------------------------"