78220478c5d563eee74bdf4a0c2085214dc4baa9
[hildon] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="Makefile.am"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 CPP EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG OUTO_CFLAGS OUTO_LIBS GTK_CFLAGS GTK_LIBS GTK_VERSION ESD_CFLAGS ESD_LIBS GNOME_VFS_CFLAGS GNOME_VFS_LIBS GCONF_CFLAGS GCONF_LIBS LIBMB_CFLAGS LIBMB_LIBS ALL_LINGUAS USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE DOXYGEN_FOUND HAVE_DOXYGEN_TRUE HAVE_DOXYGEN_FALSE localedir outomoduledir PERL REBUILD LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --disable-dependency-tracking Speeds up one-time builds
1027   --enable-dependency-tracking  Do not reject slow dependency extractors
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --enable-gtk-doc        use gtk-doc to build documentation default=no
1036   --disable-rebuilds      disable all source autogeneration rules
1037
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1042   --with-pic              try to use only PIC/non-PIC objects [default=use
1043                           both]
1044   --with-tags[=TAGS]
1045                           include additional configurations [automatic]
1046   --with-html-dir=PATH    path to installed docs
1047
1048 Some influential environment variables:
1049   CC          C compiler command
1050   CFLAGS      C compiler flags
1051   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1052               nonstandard directory <lib dir>
1053   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054               headers in a nonstandard directory <include dir>
1055   CPP         C preprocessor
1056   CXX         C++ compiler command
1057   CXXFLAGS    C++ compiler flags
1058   CXXCPP      C++ preprocessor
1059   F77         Fortran 77 compiler command
1060   FFLAGS      Fortran 77 compiler flags
1061
1062 Use these variables to override the choices made by `configure' or to help
1063 it to find libraries and programs with nonstandard names/locations.
1064
1065 _ACEOF
1066 fi
1067
1068 if test "$ac_init_help" = "recursive"; then
1069   # If there are subdirs, report their specific --help.
1070   ac_popdir=`pwd`
1071   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072     test -d $ac_dir || continue
1073     ac_builddir=.
1074
1075 if test "$ac_dir" != .; then
1076   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077   # A "../" for each directory in $ac_dir_suffix.
1078   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 else
1080   ac_dir_suffix= ac_top_builddir=
1081 fi
1082
1083 case $srcdir in
1084   .)  # No --srcdir option.  We are building in place.
1085     ac_srcdir=.
1086     if test -z "$ac_top_builddir"; then
1087        ac_top_srcdir=.
1088     else
1089        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090     fi ;;
1091   [\\/]* | ?:[\\/]* )  # Absolute path.
1092     ac_srcdir=$srcdir$ac_dir_suffix;
1093     ac_top_srcdir=$srcdir ;;
1094   *) # Relative path.
1095     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 esac
1098
1099 # Do not use `cd foo && pwd` to compute absolute paths, because
1100 # the directories may not exist.
1101 case `pwd` in
1102 .) ac_abs_builddir="$ac_dir";;
1103 *)
1104   case "$ac_dir" in
1105   .) ac_abs_builddir=`pwd`;;
1106   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1107   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108   esac;;
1109 esac
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 *)
1113   case ${ac_top_builddir}. in
1114   .) ac_abs_top_builddir=$ac_abs_builddir;;
1115   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1116   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117   esac;;
1118 esac
1119 case $ac_abs_builddir in
1120 .) ac_abs_srcdir=$ac_srcdir;;
1121 *)
1122   case $ac_srcdir in
1123   .) ac_abs_srcdir=$ac_abs_builddir;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1125   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 *)
1131   case $ac_top_srcdir in
1132   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1134   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1135   esac;;
1136 esac
1137
1138     cd $ac_dir
1139     # Check for guested configure; otherwise get Cygnus style configure.
1140     if test -f $ac_srcdir/configure.gnu; then
1141       echo
1142       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1143     elif test -f $ac_srcdir/configure; then
1144       echo
1145       $SHELL $ac_srcdir/configure  --help=recursive
1146     elif test -f $ac_srcdir/configure.ac ||
1147            test -f $ac_srcdir/configure.in; then
1148       echo
1149       $ac_configure --help
1150     else
1151       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1152     fi
1153     cd "$ac_popdir"
1154   done
1155 fi
1156
1157 test -n "$ac_init_help" && exit 0
1158 if $ac_init_version; then
1159   cat <<\_ACEOF
1160
1161 Copyright (C) 2003 Free Software Foundation, Inc.
1162 This configure script is free software; the Free Software Foundation
1163 gives unlimited permission to copy, distribute and modify it.
1164 _ACEOF
1165   exit 0
1166 fi
1167 exec 5>config.log
1168 cat >&5 <<_ACEOF
1169 This file contains any messages produced by compilers while
1170 running configure, to aid debugging if configure makes a mistake.
1171
1172 It was created by $as_me, which was
1173 generated by GNU Autoconf 2.59.  Invocation command line was
1174
1175   $ $0 $@
1176
1177 _ACEOF
1178 {
1179 cat <<_ASUNAME
1180 ## --------- ##
1181 ## Platform. ##
1182 ## --------- ##
1183
1184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189
1190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1192
1193 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1194 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1197 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1198 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1199 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1200
1201 _ASUNAME
1202
1203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204 for as_dir in $PATH
1205 do
1206   IFS=$as_save_IFS
1207   test -z "$as_dir" && as_dir=.
1208   echo "PATH: $as_dir"
1209 done
1210
1211 } >&5
1212
1213 cat >&5 <<_ACEOF
1214
1215
1216 ## ----------- ##
1217 ## Core tests. ##
1218 ## ----------- ##
1219
1220 _ACEOF
1221
1222
1223 # Keep a trace of the command line.
1224 # Strip out --no-create and --no-recursion so they do not pile up.
1225 # Strip out --silent because we don't want to record it for future runs.
1226 # Also quote any args containing shell meta-characters.
1227 # Make two passes to allow for proper duplicate-argument suppression.
1228 ac_configure_args=
1229 ac_configure_args0=
1230 ac_configure_args1=
1231 ac_sep=
1232 ac_must_keep_next=false
1233 for ac_pass in 1 2
1234 do
1235   for ac_arg
1236   do
1237     case $ac_arg in
1238     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240     | -silent | --silent | --silen | --sile | --sil)
1241       continue ;;
1242     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244     esac
1245     case $ac_pass in
1246     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247     2)
1248       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249       if test $ac_must_keep_next = true; then
1250         ac_must_keep_next=false # Got value, back to normal.
1251       else
1252         case $ac_arg in
1253           *=* | --config-cache | -C | -disable-* | --disable-* \
1254           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256           | -with-* | --with-* | -without-* | --without-* | --x)
1257             case "$ac_configure_args0 " in
1258               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259             esac
1260             ;;
1261           -* ) ac_must_keep_next=true ;;
1262         esac
1263       fi
1264       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265       # Get rid of the leading space.
1266       ac_sep=" "
1267       ;;
1268     esac
1269   done
1270 done
1271 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273
1274 # When interrupted or exit'd, cleanup temporary files, and complete
1275 # config.log.  We remove comments because anyway the quotes in there
1276 # would cause problems or look ugly.
1277 # WARNING: Be sure not to use single quotes in there, as some shells,
1278 # such as our DU 5.0 friend, will then `close' the trap.
1279 trap 'exit_status=$?
1280   # Save into config.log some information that might help in debugging.
1281   {
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ---------------- ##
1286 ## Cache variables. ##
1287 ## ---------------- ##
1288 _ASBOX
1289     echo
1290     # The following way of writing the cache mishandles newlines in values,
1291 {
1292   (set) 2>&1 |
1293     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294     *ac_space=\ *)
1295       sed -n \
1296         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298       ;;
1299     *)
1300       sed -n \
1301         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1302       ;;
1303     esac;
1304 }
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ----------------- ##
1309 ## Output variables. ##
1310 ## ----------------- ##
1311 _ASBOX
1312     echo
1313     for ac_var in $ac_subst_vars
1314     do
1315       eval ac_val=$`echo $ac_var`
1316       echo "$ac_var='"'"'$ac_val'"'"'"
1317     done | sort
1318     echo
1319
1320     if test -n "$ac_subst_files"; then
1321       cat <<\_ASBOX
1322 ## ------------- ##
1323 ## Output files. ##
1324 ## ------------- ##
1325 _ASBOX
1326       echo
1327       for ac_var in $ac_subst_files
1328       do
1329         eval ac_val=$`echo $ac_var`
1330         echo "$ac_var='"'"'$ac_val'"'"'"
1331       done | sort
1332       echo
1333     fi
1334
1335     if test -s confdefs.h; then
1336       cat <<\_ASBOX
1337 ## ----------- ##
1338 ## confdefs.h. ##
1339 ## ----------- ##
1340 _ASBOX
1341       echo
1342       sed "/^$/d" confdefs.h | sort
1343       echo
1344     fi
1345     test "$ac_signal" != 0 &&
1346       echo "$as_me: caught signal $ac_signal"
1347     echo "$as_me: exit $exit_status"
1348   } >&5
1349   rm -f core *.core &&
1350   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351     exit $exit_status
1352      ' 0
1353 for ac_signal in 1 2 13 15; do
1354   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355 done
1356 ac_signal=0
1357
1358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1359 rm -rf conftest* confdefs.h
1360 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 echo >confdefs.h
1362
1363 # Predefined preprocessor variables.
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_NAME "$PACKAGE_NAME"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_STRING "$PACKAGE_STRING"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387 _ACEOF
1388
1389
1390 # Let the site file select an alternate cache file if it wants to.
1391 # Prefer explicitly selected file to automatically selected ones.
1392 if test -z "$CONFIG_SITE"; then
1393   if test "x$prefix" != xNONE; then
1394     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395   else
1396     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397   fi
1398 fi
1399 for ac_site_file in $CONFIG_SITE; do
1400   if test -r "$ac_site_file"; then
1401     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402 echo "$as_me: loading site script $ac_site_file" >&6;}
1403     sed 's/^/| /' "$ac_site_file" >&5
1404     . "$ac_site_file"
1405   fi
1406 done
1407
1408 if test -r "$cache_file"; then
1409   # Some versions of bash will fail to source /dev/null (special
1410   # files actually), so we avoid doing that.
1411   if test -f "$cache_file"; then
1412     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413 echo "$as_me: loading cache $cache_file" >&6;}
1414     case $cache_file in
1415       [\\/]* | ?:[\\/]* ) . $cache_file;;
1416       *)                      . ./$cache_file;;
1417     esac
1418   fi
1419 else
1420   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421 echo "$as_me: creating cache $cache_file" >&6;}
1422   >$cache_file
1423 fi
1424
1425 # Check that the precious variables saved in the cache have kept the same
1426 # value.
1427 ac_cache_corrupted=false
1428 for ac_var in `(set) 2>&1 |
1429                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431   eval ac_new_set=\$ac_env_${ac_var}_set
1432   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433   eval ac_new_val="\$ac_env_${ac_var}_value"
1434   case $ac_old_set,$ac_new_set in
1435     set,)
1436       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438       ac_cache_corrupted=: ;;
1439     ,set)
1440       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442       ac_cache_corrupted=: ;;
1443     ,);;
1444     *)
1445       if test "x$ac_old_val" != "x$ac_new_val"; then
1446         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1449 echo "$as_me:   former value:  $ac_old_val" >&2;}
1450         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1451 echo "$as_me:   current value: $ac_new_val" >&2;}
1452         ac_cache_corrupted=:
1453       fi;;
1454   esac
1455   # Pass precious variables to config.status.
1456   if test "$ac_new_set" = set; then
1457     case $ac_new_val in
1458     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460     *) ac_arg=$ac_var=$ac_new_val ;;
1461     esac
1462     case " $ac_configure_args " in
1463       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1464       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465     esac
1466   fi
1467 done
1468 if $ac_cache_corrupted; then
1469   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473    { (exit 1); exit 1; }; }
1474 fi
1475
1476 ac_ext=c
1477 ac_cpp='$CPP $CPPFLAGS'
1478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500 am__api_version="1.7"
1501 ac_aux_dir=
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503   if test -f $ac_dir/install-sh; then
1504     ac_aux_dir=$ac_dir
1505     ac_install_sh="$ac_aux_dir/install-sh -c"
1506     break
1507   elif test -f $ac_dir/install.sh; then
1508     ac_aux_dir=$ac_dir
1509     ac_install_sh="$ac_aux_dir/install.sh -c"
1510     break
1511   elif test -f $ac_dir/shtool; then
1512     ac_aux_dir=$ac_dir
1513     ac_install_sh="$ac_aux_dir/shtool install -c"
1514     break
1515   fi
1516 done
1517 if test -z "$ac_aux_dir"; then
1518   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520    { (exit 1); exit 1; }; }
1521 fi
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526 # Find a good install program.  We prefer a C program (faster),
1527 # so one script is as good as another.  But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1532 # AIX /bin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543   echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1547 do
1548   IFS=$as_save_IFS
1549   test -z "$as_dir" && as_dir=.
1550   # Account for people who put trailing slashes in PATH elements.
1551 case $as_dir/ in
1552   ./ | .// | /cC/* | \
1553   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1555   /usr/ucb/* ) ;;
1556   *)
1557     # OSF1 and SCO ODT 3.0 have their own names for install.
1558     # Don't use installbsd from OSF since it installs stuff as root
1559     # by default.
1560     for ac_prog in ginstall scoinst install; do
1561       for ac_exec_ext in '' $ac_executable_extensions; do
1562         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563           if test $ac_prog = install &&
1564             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565             # AIX install.  It has an incompatible calling convention.
1566             :
1567           elif test $ac_prog = install &&
1568             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569             # program-specific install script used by HP pwplus--don't use.
1570             :
1571           else
1572             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1573             break 3
1574           fi
1575         fi
1576       done
1577     done
1578     ;;
1579 esac
1580 done
1581
1582
1583 fi
1584   if test "${ac_cv_path_install+set}" = set; then
1585     INSTALL=$ac_cv_path_install
1586   else
1587     # As a last resort, use the slow shell script.  We don't cache a
1588     # path for INSTALL within a source directory, because that will
1589     # break other packages using the cache if that directory is
1590     # removed, or if the path is relative.
1591     INSTALL=$ac_install_sh
1592   fi
1593 fi
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1596
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1607 # Just in case
1608 sleep 1
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments.  Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1614 # directory).
1615 if (
1616    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617    if test "$*" = "X"; then
1618       # -L didn't work.
1619       set X `ls -t $srcdir/configure conftest.file`
1620    fi
1621    rm -f conftest.file
1622    if test "$*" != "X $srcdir/configure conftest.file" \
1623       && test "$*" != "X conftest.file $srcdir/configure"; then
1624
1625       # If neither matched, then we have a broken ls.  This can happen
1626       # if, for instance, CONFIG_SHELL is bash and it inherits a
1627       # broken ls alias from the environment.  This has actually
1628       # happened.  Such a system could not be considered "sane".
1629       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1632 alias in your environment" >&2;}
1633    { (exit 1); exit 1; }; }
1634    fi
1635
1636    test "$2" = conftest.file
1637    )
1638 then
1639    # Ok.
1640    :
1641 else
1642    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646    { (exit 1); exit 1; }; }
1647 fi
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $.  echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1659 _ACEOF
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1661 rm conftest.sed
1662
1663
1664 # expand $ac_aux_dir to an absolute path
1665 am_aux_dir=`cd $ac_aux_dir && pwd`
1666
1667 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1668 # Use eval to expand $SHELL
1669 if eval "$MISSING --run true"; then
1670   am_missing_run="$MISSING --run "
1671 else
1672   am_missing_run=
1673   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1674 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1675 fi
1676
1677 for ac_prog in gawk mawk nawk awk
1678 do
1679   # Extract the first word of "$ac_prog", so it can be a program name with args.
1680 set dummy $ac_prog; ac_word=$2
1681 echo "$as_me:$LINENO: checking for $ac_word" >&5
1682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1683 if test "${ac_cv_prog_AWK+set}" = set; then
1684   echo $ECHO_N "(cached) $ECHO_C" >&6
1685 else
1686   if test -n "$AWK"; then
1687   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1688 else
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 for as_dir in $PATH
1691 do
1692   IFS=$as_save_IFS
1693   test -z "$as_dir" && as_dir=.
1694   for ac_exec_ext in '' $ac_executable_extensions; do
1695   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696     ac_cv_prog_AWK="$ac_prog"
1697     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1698     break 2
1699   fi
1700 done
1701 done
1702
1703 fi
1704 fi
1705 AWK=$ac_cv_prog_AWK
1706 if test -n "$AWK"; then
1707   echo "$as_me:$LINENO: result: $AWK" >&5
1708 echo "${ECHO_T}$AWK" >&6
1709 else
1710   echo "$as_me:$LINENO: result: no" >&5
1711 echo "${ECHO_T}no" >&6
1712 fi
1713
1714   test -n "$AWK" && break
1715 done
1716
1717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1721   echo $ECHO_N "(cached) $ECHO_C" >&6
1722 else
1723   cat >conftest.make <<\_ACEOF
1724 all:
1725         @echo 'ac_maketemp="$(MAKE)"'
1726 _ACEOF
1727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1729 if test -n "$ac_maketemp"; then
1730   eval ac_cv_prog_make_${ac_make}_set=yes
1731 else
1732   eval ac_cv_prog_make_${ac_make}_set=no
1733 fi
1734 rm -f conftest.make
1735 fi
1736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1737   echo "$as_me:$LINENO: result: yes" >&5
1738 echo "${ECHO_T}yes" >&6
1739   SET_MAKE=
1740 else
1741   echo "$as_me:$LINENO: result: no" >&5
1742 echo "${ECHO_T}no" >&6
1743   SET_MAKE="MAKE=${MAKE-make}"
1744 fi
1745
1746 rm -rf .tst 2>/dev/null
1747 mkdir .tst 2>/dev/null
1748 if test -d .tst; then
1749   am__leading_dot=.
1750 else
1751   am__leading_dot=_
1752 fi
1753 rmdir .tst 2>/dev/null
1754
1755  # test to see if srcdir already configured
1756 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1757    test -f $srcdir/config.status; then
1758   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1759 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1760    { (exit 1); exit 1; }; }
1761 fi
1762
1763 # test whether we have cygpath
1764 if test -z "$CYGPATH_W"; then
1765   if (cygpath --version) >/dev/null 2>/dev/null; then
1766     CYGPATH_W='cygpath -w'
1767   else
1768     CYGPATH_W=echo
1769   fi
1770 fi
1771
1772
1773 # Define the identity of the package.
1774  PACKAGE=hildon-libs
1775  VERSION=0.12.9
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE "$PACKAGE"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define VERSION "$VERSION"
1785 _ACEOF
1786
1787 # Some tools Automake needs.
1788
1789 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1790
1791
1792 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1793
1794
1795 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1796
1797
1798 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1799
1800
1801 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1802
1803
1804 AMTAR=${AMTAR-"${am_missing_run}tar"}
1805
1806 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1807
1808 # Installed binaries are usually stripped using `strip' when the user
1809 # run `make install-strip'.  However `strip' might not be the right
1810 # tool to use in cross-compilation environments, therefore Automake
1811 # will honor the `STRIP' environment variable to overrule this program.
1812 if test "$cross_compiling" != no; then
1813   if test -n "$ac_tool_prefix"; then
1814   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1815 set dummy ${ac_tool_prefix}strip; ac_word=$2
1816 echo "$as_me:$LINENO: checking for $ac_word" >&5
1817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1818 if test "${ac_cv_prog_STRIP+set}" = set; then
1819   echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821   if test -n "$STRIP"; then
1822   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1823 else
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827   IFS=$as_save_IFS
1828   test -z "$as_dir" && as_dir=.
1829   for ac_exec_ext in '' $ac_executable_extensions; do
1830   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1831     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833     break 2
1834   fi
1835 done
1836 done
1837
1838 fi
1839 fi
1840 STRIP=$ac_cv_prog_STRIP
1841 if test -n "$STRIP"; then
1842   echo "$as_me:$LINENO: result: $STRIP" >&5
1843 echo "${ECHO_T}$STRIP" >&6
1844 else
1845   echo "$as_me:$LINENO: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1847 fi
1848
1849 fi
1850 if test -z "$ac_cv_prog_STRIP"; then
1851   ac_ct_STRIP=$STRIP
1852   # Extract the first word of "strip", so it can be a program name with args.
1853 set dummy strip; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$ac_ct_STRIP"; then
1860   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869     ac_cv_prog_ac_ct_STRIP="strip"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875
1876   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1877 fi
1878 fi
1879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1880 if test -n "$ac_ct_STRIP"; then
1881   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1882 echo "${ECHO_T}$ac_ct_STRIP" >&6
1883 else
1884   echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1886 fi
1887
1888   STRIP=$ac_ct_STRIP
1889 else
1890   STRIP="$ac_cv_prog_STRIP"
1891 fi
1892
1893 fi
1894 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1895
1896 # We need awk for the "check" target.  The system "awk" is bad on
1897 # some platforms.
1898
1899
1900
1901           ac_config_headers="$ac_config_headers config.h"
1902
1903
1904 # Make sure we can run config.sub.
1905 $ac_config_sub sun4 >/dev/null 2>&1 ||
1906   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1907 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1908    { (exit 1); exit 1; }; }
1909
1910 echo "$as_me:$LINENO: checking build system type" >&5
1911 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1912 if test "${ac_cv_build+set}" = set; then
1913   echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915   ac_cv_build_alias=$build_alias
1916 test -z "$ac_cv_build_alias" &&
1917   ac_cv_build_alias=`$ac_config_guess`
1918 test -z "$ac_cv_build_alias" &&
1919   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1920 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1921    { (exit 1); exit 1; }; }
1922 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1923   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1924 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1925    { (exit 1); exit 1; }; }
1926
1927 fi
1928 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1929 echo "${ECHO_T}$ac_cv_build" >&6
1930 build=$ac_cv_build
1931 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1932 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1933 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1934
1935
1936 echo "$as_me:$LINENO: checking host system type" >&5
1937 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1938 if test "${ac_cv_host+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   ac_cv_host_alias=$host_alias
1942 test -z "$ac_cv_host_alias" &&
1943   ac_cv_host_alias=$ac_cv_build_alias
1944 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1945   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1946 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1947    { (exit 1); exit 1; }; }
1948
1949 fi
1950 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1951 echo "${ECHO_T}$ac_cv_host" >&6
1952 host=$ac_cv_host
1953 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1954 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1955 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1956
1957
1958
1959 ac_ext=c
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1966 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1967 echo "$as_me:$LINENO: checking for $ac_word" >&5
1968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1969 if test "${ac_cv_prog_CC+set}" = set; then
1970   echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972   if test -n "$CC"; then
1973   ac_cv_prog_CC="$CC" # Let the user override the test.
1974 else
1975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 for as_dir in $PATH
1977 do
1978   IFS=$as_save_IFS
1979   test -z "$as_dir" && as_dir=.
1980   for ac_exec_ext in '' $ac_executable_extensions; do
1981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984     break 2
1985   fi
1986 done
1987 done
1988
1989 fi
1990 fi
1991 CC=$ac_cv_prog_CC
1992 if test -n "$CC"; then
1993   echo "$as_me:$LINENO: result: $CC" >&5
1994 echo "${ECHO_T}$CC" >&6
1995 else
1996   echo "$as_me:$LINENO: result: no" >&5
1997 echo "${ECHO_T}no" >&6
1998 fi
1999
2000 fi
2001 if test -z "$ac_cv_prog_CC"; then
2002   ac_ct_CC=$CC
2003   # Extract the first word of "gcc", so it can be a program name with args.
2004 set dummy gcc; ac_word=$2
2005 echo "$as_me:$LINENO: checking for $ac_word" >&5
2006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2008   echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010   if test -n "$ac_ct_CC"; then
2011   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2012 else
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014 for as_dir in $PATH
2015 do
2016   IFS=$as_save_IFS
2017   test -z "$as_dir" && as_dir=.
2018   for ac_exec_ext in '' $ac_executable_extensions; do
2019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2020     ac_cv_prog_ac_ct_CC="gcc"
2021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022     break 2
2023   fi
2024 done
2025 done
2026
2027 fi
2028 fi
2029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2030 if test -n "$ac_ct_CC"; then
2031   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2032 echo "${ECHO_T}$ac_ct_CC" >&6
2033 else
2034   echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6
2036 fi
2037
2038   CC=$ac_ct_CC
2039 else
2040   CC="$ac_cv_prog_CC"
2041 fi
2042
2043 if test -z "$CC"; then
2044   if test -n "$ac_tool_prefix"; then
2045   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2046 set dummy ${ac_tool_prefix}cc; ac_word=$2
2047 echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2049 if test "${ac_cv_prog_CC+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   if test -n "$CC"; then
2053   ac_cv_prog_CC="$CC" # Let the user override the test.
2054 else
2055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2062     ac_cv_prog_CC="${ac_tool_prefix}cc"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068
2069 fi
2070 fi
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073   echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6
2075 else
2076   echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2078 fi
2079
2080 fi
2081 if test -z "$ac_cv_prog_CC"; then
2082   ac_ct_CC=$CC
2083   # Extract the first word of "cc", so it can be a program name with args.
2084 set dummy cc; ac_word=$2
2085 echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2088   echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090   if test -n "$ac_ct_CC"; then
2091   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2100     ac_cv_prog_ac_ct_CC="cc"
2101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102     break 2
2103   fi
2104 done
2105 done
2106
2107 fi
2108 fi
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6
2113 else
2114   echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2116 fi
2117
2118   CC=$ac_ct_CC
2119 else
2120   CC="$ac_cv_prog_CC"
2121 fi
2122
2123 fi
2124 if test -z "$CC"; then
2125   # Extract the first word of "cc", so it can be a program name with args.
2126 set dummy cc; ac_word=$2
2127 echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$CC"; then
2133   ac_cv_prog_CC="$CC" # Let the user override the test.
2134 else
2135   ac_prog_rejected=no
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2144        ac_prog_rejected=yes
2145        continue
2146      fi
2147     ac_cv_prog_CC="cc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153
2154 if test $ac_prog_rejected = yes; then
2155   # We found a bogon in the path, so make sure we never use it.
2156   set dummy $ac_cv_prog_CC
2157   shift
2158   if test $# != 0; then
2159     # We chose a different compiler from the bogus one.
2160     # However, it has the same basename, so the bogon will be chosen
2161     # first if we set CC to just the basename; use the full file name.
2162     shift
2163     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2164   fi
2165 fi
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170   echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6
2172 else
2173   echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6
2175 fi
2176
2177 fi
2178 if test -z "$CC"; then
2179   if test -n "$ac_tool_prefix"; then
2180   for ac_prog in cl
2181   do
2182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187   echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189   if test -n "$CC"; then
2190   ac_cv_prog_CC="$CC" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195   IFS=$as_save_IFS
2196   test -z "$as_dir" && as_dir=.
2197   for ac_exec_ext in '' $ac_executable_extensions; do
2198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201     break 2
2202   fi
2203 done
2204 done
2205
2206 fi
2207 fi
2208 CC=$ac_cv_prog_CC
2209 if test -n "$CC"; then
2210   echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2212 else
2213   echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2215 fi
2216
2217     test -n "$CC" && break
2218   done
2219 fi
2220 if test -z "$CC"; then
2221   ac_ct_CC=$CC
2222   for ac_prog in cl
2223 do
2224   # Extract the first word of "$ac_prog", so it can be a program name with args.
2225 set dummy $ac_prog; ac_word=$2
2226 echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test -n "$ac_ct_CC"; then
2232   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2241     ac_cv_prog_ac_ct_CC="$ac_prog"
2242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247
2248 fi
2249 fi
2250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2251 if test -n "$ac_ct_CC"; then
2252   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2253 echo "${ECHO_T}$ac_ct_CC" >&6
2254 else
2255   echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6
2257 fi
2258
2259   test -n "$ac_ct_CC" && break
2260 done
2261
2262   CC=$ac_ct_CC
2263 fi
2264
2265 fi
2266
2267
2268 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273
2274 # Provide some information about the compiler.
2275 echo "$as_me:$LINENO:" \
2276      "checking for C compiler version" >&5
2277 ac_compiler=`set X $ac_compile; echo $2`
2278 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2279   (eval $ac_compiler --version </dev/null >&5) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2284   (eval $ac_compiler -v </dev/null >&5) 2>&5
2285   ac_status=$?
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); }
2288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2289   (eval $ac_compiler -V </dev/null >&5) 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }
2293
2294 cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300
2301 int
2302 main ()
2303 {
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 ac_clean_files_save=$ac_clean_files
2310 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2311 # Try to create an executable without -o first, disregard a.out.
2312 # It will help us diagnose broken compilers, and finding out an intuition
2313 # of exeext.
2314 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2315 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2316 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2317 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2318   (eval $ac_link_default) 2>&5
2319   ac_status=$?
2320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321   (exit $ac_status); }; then
2322   # Find the output, starting from the most likely.  This scheme is
2323 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2324 # resort.
2325
2326 # Be careful to initialize this variable, since it used to be cached.
2327 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2328 ac_cv_exeext=
2329 # b.out is created by i960 compilers.
2330 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2331 do
2332   test -f "$ac_file" || continue
2333   case $ac_file in
2334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2335         ;;
2336     conftest.$ac_ext )
2337         # This is the source file.
2338         ;;
2339     [ab].out )
2340         # We found the default executable, but exeext='' is most
2341         # certainly right.
2342         break;;
2343     *.* )
2344         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2345         # FIXME: I believe we export ac_cv_exeext for Libtool,
2346         # but it would be cool to find out if it's true.  Does anybody
2347         # maintain Libtool? --akim.
2348         export ac_cv_exeext
2349         break;;
2350     * )
2351         break;;
2352   esac
2353 done
2354 else
2355   echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2359 See \`config.log' for more details." >&5
2360 echo "$as_me: error: C compiler cannot create executables
2361 See \`config.log' for more details." >&2;}
2362    { (exit 77); exit 77; }; }
2363 fi
2364
2365 ac_exeext=$ac_cv_exeext
2366 echo "$as_me:$LINENO: result: $ac_file" >&5
2367 echo "${ECHO_T}$ac_file" >&6
2368
2369 # Check the compiler produces executables we can run.  If not, either
2370 # the compiler is broken, or we cross compile.
2371 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2372 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2373 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2374 # If not cross compiling, check that we can run a simple program.
2375 if test "$cross_compiling" != yes; then
2376   if { ac_try='./$ac_file'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; }; then
2382     cross_compiling=no
2383   else
2384     if test "$cross_compiling" = maybe; then
2385         cross_compiling=yes
2386     else
2387         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2388 If you meant to cross compile, use \`--host'.
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: cannot run C compiled programs.
2391 If you meant to cross compile, use \`--host'.
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }
2394     fi
2395   fi
2396 fi
2397 echo "$as_me:$LINENO: result: yes" >&5
2398 echo "${ECHO_T}yes" >&6
2399
2400 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2401 ac_clean_files=$ac_clean_files_save
2402 # Check the compiler produces executables we can run.  If not, either
2403 # the compiler is broken, or we cross compile.
2404 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2405 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2406 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2407 echo "${ECHO_T}$cross_compiling" >&6
2408
2409 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2410 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2412   (eval $ac_link) 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }; then
2416   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2417 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2418 # work properly (i.e., refer to `conftest.exe'), while it won't with
2419 # `rm'.
2420 for ac_file in conftest.exe conftest conftest.*; do
2421   test -f "$ac_file" || continue
2422   case $ac_file in
2423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2424     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425           export ac_cv_exeext
2426           break;;
2427     * ) break;;
2428   esac
2429 done
2430 else
2431   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2432 See \`config.log' for more details." >&5
2433 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2434 See \`config.log' for more details." >&2;}
2435    { (exit 1); exit 1; }; }
2436 fi
2437
2438 rm -f conftest$ac_cv_exeext
2439 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2440 echo "${ECHO_T}$ac_cv_exeext" >&6
2441
2442 rm -f conftest.$ac_ext
2443 EXEEXT=$ac_cv_exeext
2444 ac_exeext=$EXEEXT
2445 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2446 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2447 if test "${ac_cv_objext+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   cat >conftest.$ac_ext <<_ACEOF
2451 /* confdefs.h.  */
2452 _ACEOF
2453 cat confdefs.h >>conftest.$ac_ext
2454 cat >>conftest.$ac_ext <<_ACEOF
2455 /* end confdefs.h.  */
2456
2457 int
2458 main ()
2459 {
2460
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 rm -f conftest.o conftest.obj
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; then
2471   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2472   case $ac_file in
2473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2474     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2475        break;;
2476   esac
2477 done
2478 else
2479   echo "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2483 See \`config.log' for more details." >&5
2484 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2485 See \`config.log' for more details." >&2;}
2486    { (exit 1); exit 1; }; }
2487 fi
2488
2489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2490 fi
2491 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2492 echo "${ECHO_T}$ac_cv_objext" >&6
2493 OBJEXT=$ac_cv_objext
2494 ac_objext=$OBJEXT
2495 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2496 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2498   echo $ECHO_N "(cached) $ECHO_C" >&6
2499 else
2500   cat >conftest.$ac_ext <<_ACEOF
2501 /* confdefs.h.  */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h.  */
2506
2507 int
2508 main ()
2509 {
2510 #ifndef __GNUC__
2511        choke me
2512 #endif
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520   (eval $ac_compile) 2>conftest.er1
2521   ac_status=$?
2522   grep -v '^ *+' conftest.er1 >conftest.err
2523   rm -f conftest.er1
2524   cat conftest.err >&5
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529   (eval $ac_try) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }; } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   ac_compiler_gnu=yes
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_compiler_gnu=no
2545 fi
2546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2548
2549 fi
2550 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2551 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2552 GCC=`test $ac_compiler_gnu = yes && echo yes`
2553 ac_test_CFLAGS=${CFLAGS+set}
2554 ac_save_CFLAGS=$CFLAGS
2555 CFLAGS="-g"
2556 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2557 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2558 if test "${ac_cv_prog_cc_g+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   cat >conftest.$ac_ext <<_ACEOF
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567
2568 int
2569 main ()
2570 {
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578   (eval $ac_compile) 2>conftest.er1
2579   ac_status=$?
2580   grep -v '^ *+' conftest.er1 >conftest.err
2581   rm -f conftest.er1
2582   cat conftest.err >&5
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); } &&
2585          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; } &&
2591          { ac_try='test -s conftest.$ac_objext'
2592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; }; then
2597   ac_cv_prog_cc_g=yes
2598 else
2599   echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2601
2602 ac_cv_prog_cc_g=no
2603 fi
2604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2607 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2608 if test "$ac_test_CFLAGS" = set; then
2609   CFLAGS=$ac_save_CFLAGS
2610 elif test $ac_cv_prog_cc_g = yes; then
2611   if test "$GCC" = yes; then
2612     CFLAGS="-g -O2"
2613   else
2614     CFLAGS="-g"
2615   fi
2616 else
2617   if test "$GCC" = yes; then
2618     CFLAGS="-O2"
2619   else
2620     CFLAGS=
2621   fi
2622 fi
2623 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2624 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2625 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   ac_cv_prog_cc_stdc=no
2629 ac_save_CC=$CC
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636 #include <stdarg.h>
2637 #include <stdio.h>
2638 #include <sys/types.h>
2639 #include <sys/stat.h>
2640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2641 struct buf { int x; };
2642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2643 static char *e (p, i)
2644      char **p;
2645      int i;
2646 {
2647   return p[i];
2648 }
2649 static char *f (char * (*g) (char **, int), char **p, ...)
2650 {
2651   char *s;
2652   va_list v;
2653   va_start (v,p);
2654   s = g (p, va_arg (v,int));
2655   va_end (v);
2656   return s;
2657 }
2658
2659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2660    function prototypes and stuff, but not '\xHH' hex character constants.
2661    These don't provoke an error unfortunately, instead are silently treated
2662    as 'x'.  The following induces an error, until -std1 is added to get
2663    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2664    array size at least.  It's necessary to write '\x00'==0 to get something
2665    that's true only with -std1.  */
2666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2667
2668 int test (int i, double x);
2669 struct s1 {int (*f) (int a);};
2670 struct s2 {int (*f) (double a);};
2671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2672 int argc;
2673 char **argv;
2674 int
2675 main ()
2676 {
2677 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2678   ;
2679   return 0;
2680 }
2681 _ACEOF
2682 # Don't try gcc -ansi; that turns off useful extensions and
2683 # breaks some systems' header files.
2684 # AIX                   -qlanglvl=ansi
2685 # Ultrix and OSF/1      -std1
2686 # HP-UX 10.20 and later -Ae
2687 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2688 # SVR4                  -Xc -D__EXTENSIONS__
2689 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2690 do
2691   CC="$ac_save_CC $ac_arg"
2692   rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>conftest.er1
2695   ac_status=$?
2696   grep -v '^ *+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); }; } &&
2707          { ac_try='test -s conftest.$ac_objext'
2708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709   (eval $ac_try) 2>&5
2710   ac_status=$?
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); }; }; then
2713   ac_cv_prog_cc_stdc=$ac_arg
2714 break
2715 else
2716   echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 fi
2720 rm -f conftest.err conftest.$ac_objext
2721 done
2722 rm -f conftest.$ac_ext conftest.$ac_objext
2723 CC=$ac_save_CC
2724
2725 fi
2726
2727 case "x$ac_cv_prog_cc_stdc" in
2728   x|xno)
2729     echo "$as_me:$LINENO: result: none needed" >&5
2730 echo "${ECHO_T}none needed" >&6 ;;
2731   *)
2732     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2733 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2734     CC="$CC $ac_cv_prog_cc_stdc" ;;
2735 esac
2736
2737 # Some people use a C++ compiler to compile C.  Since we use `exit',
2738 # in C++ we need to declare it.  In case someone uses the same compiler
2739 # for both compiling C and C++ we need to have the C++ compiler decide
2740 # the declaration of exit, since it's the most demanding environment.
2741 cat >conftest.$ac_ext <<_ACEOF
2742 #ifndef __cplusplus
2743   choke me
2744 #endif
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2748   (eval $ac_compile) 2>conftest.er1
2749   ac_status=$?
2750   grep -v '^ *+' conftest.er1 >conftest.err
2751   rm -f conftest.er1
2752   cat conftest.err >&5
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); } &&
2755          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757   (eval $ac_try) 2>&5
2758   ac_status=$?
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); }; } &&
2761          { ac_try='test -s conftest.$ac_objext'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; }; then
2767   for ac_declaration in \
2768    '' \
2769    'extern "C" void std::exit (int) throw (); using std::exit;' \
2770    'extern "C" void std::exit (int); using std::exit;' \
2771    'extern "C" void exit (int) throw ();' \
2772    'extern "C" void exit (int);' \
2773    'void exit (int);'
2774 do
2775   cat >conftest.$ac_ext <<_ACEOF
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 $ac_declaration
2782 #include <stdlib.h>
2783 int
2784 main ()
2785 {
2786 exit (42);
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 rm -f conftest.$ac_objext
2792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2793   (eval $ac_compile) 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } &&
2800          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802   (eval $ac_try) 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }; } &&
2806          { ac_try='test -s conftest.$ac_objext'
2807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808   (eval $ac_try) 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812   :
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817 continue
2818 fi
2819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820   cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h.  */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h.  */
2826 $ac_declaration
2827 int
2828 main ()
2829 {
2830 exit (42);
2831   ;
2832   return 0;
2833 }
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2837   (eval $ac_compile) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } &&
2844          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; } &&
2850          { ac_try='test -s conftest.$ac_objext'
2851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); }; }; then
2856   break
2857 else
2858   echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 fi
2862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2863 done
2864 rm -f conftest*
2865 if test -n "$ac_declaration"; then
2866   echo '#ifdef __cplusplus' >>confdefs.h
2867   echo $ac_declaration      >>confdefs.h
2868   echo '#endif'             >>confdefs.h
2869 fi
2870
2871 else
2872   echo "$as_me: failed program was:" >&5
2873 sed 's/^/| /' conftest.$ac_ext >&5
2874
2875 fi
2876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 DEPDIR="${am__leading_dot}deps"
2883
2884           ac_config_commands="$ac_config_commands depfiles"
2885
2886
2887 am_make=${MAKE-make}
2888 cat > confinc << 'END'
2889 am__doit:
2890         @echo done
2891 .PHONY: am__doit
2892 END
2893 # If we don't find an include directive, just comment out the code.
2894 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2895 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2896 am__include="#"
2897 am__quote=
2898 _am_result=none
2899 # First try GNU make style include.
2900 echo "include confinc" > confmf
2901 # We grep out `Entering directory' and `Leaving directory'
2902 # messages which can occur if `w' ends up in MAKEFLAGS.
2903 # In particular we don't look at `^make:' because GNU make might
2904 # be invoked under some other name (usually "gmake"), in which
2905 # case it prints its new name instead of `make'.
2906 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2907    am__include=include
2908    am__quote=
2909    _am_result=GNU
2910 fi
2911 # Now try BSD make style include.
2912 if test "$am__include" = "#"; then
2913    echo '.include "confinc"' > confmf
2914    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2915       am__include=.include
2916       am__quote="\""
2917       _am_result=BSD
2918    fi
2919 fi
2920
2921
2922 echo "$as_me:$LINENO: result: $_am_result" >&5
2923 echo "${ECHO_T}$_am_result" >&6
2924 rm -f confinc confmf
2925
2926 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2927 if test "${enable_dependency_tracking+set}" = set; then
2928   enableval="$enable_dependency_tracking"
2929
2930 fi;
2931 if test "x$enable_dependency_tracking" != xno; then
2932   am_depcomp="$ac_aux_dir/depcomp"
2933   AMDEPBACKSLASH='\'
2934 fi
2935
2936
2937 if test "x$enable_dependency_tracking" != xno; then
2938   AMDEP_TRUE=
2939   AMDEP_FALSE='#'
2940 else
2941   AMDEP_TRUE='#'
2942   AMDEP_FALSE=
2943 fi
2944
2945
2946
2947
2948 depcc="$CC"   am_compiler_list=
2949
2950 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2951 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2952 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2953   echo $ECHO_N "(cached) $ECHO_C" >&6
2954 else
2955   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2956   # We make a subdir and do the tests there.  Otherwise we can end up
2957   # making bogus files that we don't know about and never remove.  For
2958   # instance it was reported that on HP-UX the gcc test will end up
2959   # making a dummy file named `D' -- because `-MD' means `put the output
2960   # in D'.
2961   mkdir conftest.dir
2962   # Copy depcomp to subdir because otherwise we won't find it if we're
2963   # using a relative directory.
2964   cp "$am_depcomp" conftest.dir
2965   cd conftest.dir
2966   # We will build objects and dependencies in a subdirectory because
2967   # it helps to detect inapplicable dependency modes.  For instance
2968   # both Tru64's cc and ICC support -MD to output dependencies as a
2969   # side effect of compilation, but ICC will put the dependencies in
2970   # the current directory while Tru64 will put them in the object
2971   # directory.
2972   mkdir sub
2973
2974   am_cv_CC_dependencies_compiler_type=none
2975   if test "$am_compiler_list" = ""; then
2976      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2977   fi
2978   for depmode in $am_compiler_list; do
2979     # Setup a source with many dependencies, because some compilers
2980     # like to wrap large dependency lists on column 80 (with \), and
2981     # we should not choose a depcomp mode which is confused by this.
2982     #
2983     # We need to recreate these files for each test, as the compiler may
2984     # overwrite some of them when testing with obscure command lines.
2985     # This happens at least with the AIX C compiler.
2986     : > sub/conftest.c
2987     for i in 1 2 3 4 5 6; do
2988       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2989       : > sub/conftst$i.h
2990     done
2991     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2992
2993     case $depmode in
2994     nosideeffect)
2995       # after this tag, mechanisms are not by side-effect, so they'll
2996       # only be used when explicitly requested
2997       if test "x$enable_dependency_tracking" = xyes; then
2998         continue
2999       else
3000         break
3001       fi
3002       ;;
3003     none) break ;;
3004     esac
3005     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3006     # mode.  It turns out that the SunPro C++ compiler does not properly
3007     # handle `-M -o', and we need to detect this.
3008     if depmode=$depmode \
3009        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3010        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3011        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3012          >/dev/null 2>conftest.err &&
3013        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3014        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3015        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3016       # icc doesn't choke on unknown options, it will just issue warnings
3017       # (even with -Werror).  So we grep stderr for any message
3018       # that says an option was ignored.
3019       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3020         am_cv_CC_dependencies_compiler_type=$depmode
3021         break
3022       fi
3023     fi
3024   done
3025
3026   cd ..
3027   rm -rf conftest.dir
3028 else
3029   am_cv_CC_dependencies_compiler_type=none
3030 fi
3031
3032 fi
3033 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3034 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3035 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3036
3037
3038
3039 if
3040   test "x$enable_dependency_tracking" != xno \
3041   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3042   am__fastdepCC_TRUE=
3043   am__fastdepCC_FALSE='#'
3044 else
3045   am__fastdepCC_TRUE='#'
3046   am__fastdepCC_FALSE=
3047 fi
3048
3049
3050 ac_ext=c
3051 ac_cpp='$CPP $CPPFLAGS'
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3056 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3057 # On Suns, sometimes $CPP names a directory.
3058 if test -n "$CPP" && test -d "$CPP"; then
3059   CPP=
3060 fi
3061 if test -z "$CPP"; then
3062   if test "${ac_cv_prog_CPP+set}" = set; then
3063   echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065       # Double quotes because CPP needs to be expanded
3066     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3067     do
3068       ac_preproc_ok=false
3069 for ac_c_preproc_warn_flag in '' yes
3070 do
3071   # Use a header file that comes with gcc, so configuring glibc
3072   # with a fresh cross-compiler works.
3073   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074   # <limits.h> exists even on freestanding compilers.
3075   # On the NeXT, cc -E runs the code through the compiler's parser,
3076   # not just through cpp. "Syntax error" is here to catch this case.
3077   cat >conftest.$ac_ext <<_ACEOF
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083 #ifdef __STDC__
3084 # include <limits.h>
3085 #else
3086 # include <assert.h>
3087 #endif
3088                      Syntax error
3089 _ACEOF
3090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } >/dev/null; then
3098   if test -s conftest.err; then
3099     ac_cpp_err=$ac_c_preproc_warn_flag
3100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101   else
3102     ac_cpp_err=
3103   fi
3104 else
3105   ac_cpp_err=yes
3106 fi
3107 if test -z "$ac_cpp_err"; then
3108   :
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113   # Broken: fails on valid input.
3114 continue
3115 fi
3116 rm -f conftest.err conftest.$ac_ext
3117
3118   # OK, works on sane cases.  Now check whether non-existent headers
3119   # can be detected and how.
3120   cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126 #include <ac_nonexistent.h>
3127 _ACEOF
3128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3129   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3130   ac_status=$?
3131   grep -v '^ *+' conftest.er1 >conftest.err
3132   rm -f conftest.er1
3133   cat conftest.err >&5
3134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); } >/dev/null; then
3136   if test -s conftest.err; then
3137     ac_cpp_err=$ac_c_preproc_warn_flag
3138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3139   else
3140     ac_cpp_err=
3141   fi
3142 else
3143   ac_cpp_err=yes
3144 fi
3145 if test -z "$ac_cpp_err"; then
3146   # Broken: success on invalid input.
3147 continue
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152   # Passes both tests.
3153 ac_preproc_ok=:
3154 break
3155 fi
3156 rm -f conftest.err conftest.$ac_ext
3157
3158 done
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3162   break
3163 fi
3164
3165     done
3166     ac_cv_prog_CPP=$CPP
3167
3168 fi
3169   CPP=$ac_cv_prog_CPP
3170 else
3171   ac_cv_prog_CPP=$CPP
3172 fi
3173 echo "$as_me:$LINENO: result: $CPP" >&5
3174 echo "${ECHO_T}$CPP" >&6
3175 ac_preproc_ok=false
3176 for ac_c_preproc_warn_flag in '' yes
3177 do
3178   # Use a header file that comes with gcc, so configuring glibc
3179   # with a fresh cross-compiler works.
3180   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3181   # <limits.h> exists even on freestanding compilers.
3182   # On the NeXT, cc -E runs the code through the compiler's parser,
3183   # not just through cpp. "Syntax error" is here to catch this case.
3184   cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 #ifdef __STDC__
3191 # include <limits.h>
3192 #else
3193 # include <assert.h>
3194 #endif
3195                      Syntax error
3196 _ACEOF
3197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } >/dev/null; then
3205   if test -s conftest.err; then
3206     ac_cpp_err=$ac_c_preproc_warn_flag
3207     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3208   else
3209     ac_cpp_err=
3210   fi
3211 else
3212   ac_cpp_err=yes
3213 fi
3214 if test -z "$ac_cpp_err"; then
3215   :
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220   # Broken: fails on valid input.
3221 continue
3222 fi
3223 rm -f conftest.err conftest.$ac_ext
3224
3225   # OK, works on sane cases.  Now check whether non-existent headers
3226   # can be detected and how.
3227   cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h.  */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h.  */
3233 #include <ac_nonexistent.h>
3234 _ACEOF
3235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } >/dev/null; then
3243   if test -s conftest.err; then
3244     ac_cpp_err=$ac_c_preproc_warn_flag
3245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3246   else
3247     ac_cpp_err=
3248   fi
3249 else
3250   ac_cpp_err=yes
3251 fi
3252 if test -z "$ac_cpp_err"; then
3253   # Broken: success on invalid input.
3254 continue
3255 else
3256   echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3258
3259   # Passes both tests.
3260 ac_preproc_ok=:
3261 break
3262 fi
3263 rm -f conftest.err conftest.$ac_ext
3264
3265 done
3266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3267 rm -f conftest.err conftest.$ac_ext
3268 if $ac_preproc_ok; then
3269   :
3270 else
3271   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3272 See \`config.log' for more details." >&5
3273 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3274 See \`config.log' for more details." >&2;}
3275    { (exit 1); exit 1; }; }
3276 fi
3277
3278 ac_ext=c
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283
3284 # Find a good install program.  We prefer a C program (faster),
3285 # so one script is as good as another.  But avoid the broken or
3286 # incompatible versions:
3287 # SysV /etc/install, /usr/sbin/install
3288 # SunOS /usr/etc/install
3289 # IRIX /sbin/install
3290 # AIX /bin/install
3291 # AmigaOS /C/install, which installs bootblocks on floppy discs
3292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3295 # OS/2's system install, which has a completely different semantic
3296 # ./install, which can be erroneously created by make from ./install.sh.
3297 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3298 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3299 if test -z "$INSTALL"; then
3300 if test "${ac_cv_path_install+set}" = set; then
3301   echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308   # Account for people who put trailing slashes in PATH elements.
3309 case $as_dir/ in
3310   ./ | .// | /cC/* | \
3311   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3312   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3313   /usr/ucb/* ) ;;
3314   *)
3315     # OSF1 and SCO ODT 3.0 have their own names for install.
3316     # Don't use installbsd from OSF since it installs stuff as root
3317     # by default.
3318     for ac_prog in ginstall scoinst install; do
3319       for ac_exec_ext in '' $ac_executable_extensions; do
3320         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3321           if test $ac_prog = install &&
3322             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3323             # AIX install.  It has an incompatible calling convention.
3324             :
3325           elif test $ac_prog = install &&
3326             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3327             # program-specific install script used by HP pwplus--don't use.
3328             :
3329           else
3330             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3331             break 3
3332           fi
3333         fi
3334       done
3335     done
3336     ;;
3337 esac
3338 done
3339
3340
3341 fi
3342   if test "${ac_cv_path_install+set}" = set; then
3343     INSTALL=$ac_cv_path_install
3344   else
3345     # As a last resort, use the slow shell script.  We don't cache a
3346     # path for INSTALL within a source directory, because that will
3347     # break other packages using the cache if that directory is
3348     # removed, or if the path is relative.
3349     INSTALL=$ac_install_sh
3350   fi
3351 fi
3352 echo "$as_me:$LINENO: result: $INSTALL" >&5
3353 echo "${ECHO_T}$INSTALL" >&6
3354
3355 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3356 # It thinks the first close brace ends the variable substitution.
3357 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3358
3359 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3360
3361 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3362
3363 for ac_prog in gawk mawk nawk awk
3364 do
3365   # Extract the first word of "$ac_prog", so it can be a program name with args.
3366 set dummy $ac_prog; ac_word=$2
3367 echo "$as_me:$LINENO: checking for $ac_word" >&5
3368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3369 if test "${ac_cv_prog_AWK+set}" = set; then
3370   echo $ECHO_N "(cached) $ECHO_C" >&6
3371 else
3372   if test -n "$AWK"; then
3373   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3374 else
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380   for ac_exec_ext in '' $ac_executable_extensions; do
3381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382     ac_cv_prog_AWK="$ac_prog"
3383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387 done
3388
3389 fi
3390 fi
3391 AWK=$ac_cv_prog_AWK
3392 if test -n "$AWK"; then
3393   echo "$as_me:$LINENO: result: $AWK" >&5
3394 echo "${ECHO_T}$AWK" >&6
3395 else
3396   echo "$as_me:$LINENO: result: no" >&5
3397 echo "${ECHO_T}no" >&6
3398 fi
3399
3400   test -n "$AWK" && break
3401 done
3402
3403 # Check whether --enable-shared or --disable-shared was given.
3404 if test "${enable_shared+set}" = set; then
3405   enableval="$enable_shared"
3406   p=${PACKAGE-default}
3407     case $enableval in
3408     yes) enable_shared=yes ;;
3409     no) enable_shared=no ;;
3410     *)
3411       enable_shared=no
3412       # Look at the argument we got.  We use all the common list separators.
3413       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3414       for pkg in $enableval; do
3415         IFS="$lt_save_ifs"
3416         if test "X$pkg" = "X$p"; then
3417           enable_shared=yes
3418         fi
3419       done
3420       IFS="$lt_save_ifs"
3421       ;;
3422     esac
3423 else
3424   enable_shared=yes
3425 fi;
3426
3427 # Check whether --enable-static or --disable-static was given.
3428 if test "${enable_static+set}" = set; then
3429   enableval="$enable_static"
3430   p=${PACKAGE-default}
3431     case $enableval in
3432     yes) enable_static=yes ;;
3433     no) enable_static=no ;;
3434     *)
3435      enable_static=no
3436       # Look at the argument we got.  We use all the common list separators.
3437       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3438       for pkg in $enableval; do
3439         IFS="$lt_save_ifs"
3440         if test "X$pkg" = "X$p"; then
3441           enable_static=yes
3442         fi
3443       done
3444       IFS="$lt_save_ifs"
3445       ;;
3446     esac
3447 else
3448   enable_static=yes
3449 fi;
3450
3451 # Check whether --enable-fast-install or --disable-fast-install was given.
3452 if test "${enable_fast_install+set}" = set; then
3453   enableval="$enable_fast_install"
3454   p=${PACKAGE-default}
3455     case $enableval in
3456     yes) enable_fast_install=yes ;;
3457     no) enable_fast_install=no ;;
3458     *)
3459       enable_fast_install=no
3460       # Look at the argument we got.  We use all the common list separators.
3461       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3462       for pkg in $enableval; do
3463         IFS="$lt_save_ifs"
3464         if test "X$pkg" = "X$p"; then
3465           enable_fast_install=yes
3466         fi
3467       done
3468       IFS="$lt_save_ifs"
3469       ;;
3470     esac
3471 else
3472   enable_fast_install=yes
3473 fi;
3474
3475 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3476 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3477 if test "${lt_cv_path_SED+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   # Loop through the user's path and test for sed and gsed.
3481 # Then use that list of sed's as ones to test for truncation.
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487   for lt_ac_prog in sed gsed; do
3488     for ac_exec_ext in '' $ac_executable_extensions; do
3489       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3490         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3491       fi
3492     done
3493   done
3494 done
3495 lt_ac_max=0
3496 lt_ac_count=0
3497 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3498 # along with /bin/sed that truncates output.
3499 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3500   test ! -f $lt_ac_sed && break
3501   cat /dev/null > conftest.in
3502   lt_ac_count=0
3503   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3504   # Check for GNU sed and select it if it is found.
3505   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3506     lt_cv_path_SED=$lt_ac_sed
3507     break
3508   fi
3509   while true; do
3510     cat conftest.in conftest.in >conftest.tmp
3511     mv conftest.tmp conftest.in
3512     cp conftest.in conftest.nl
3513     echo >>conftest.nl
3514     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3515     cmp -s conftest.out conftest.nl || break
3516     # 10000 chars as input seems more than enough
3517     test $lt_ac_count -gt 10 && break
3518     lt_ac_count=`expr $lt_ac_count + 1`
3519     if test $lt_ac_count -gt $lt_ac_max; then
3520       lt_ac_max=$lt_ac_count
3521       lt_cv_path_SED=$lt_ac_sed
3522     fi
3523   done
3524 done
3525 SED=$lt_cv_path_SED
3526
3527 fi
3528
3529 echo "$as_me:$LINENO: result: $SED" >&5
3530 echo "${ECHO_T}$SED" >&6
3531
3532 echo "$as_me:$LINENO: checking for egrep" >&5
3533 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3534 if test "${ac_cv_prog_egrep+set}" = set; then
3535   echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3538     then ac_cv_prog_egrep='grep -E'
3539     else ac_cv_prog_egrep='egrep'
3540     fi
3541 fi
3542 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3543 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3544  EGREP=$ac_cv_prog_egrep
3545
3546
3547
3548 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3549 if test "${with_gnu_ld+set}" = set; then
3550   withval="$with_gnu_ld"
3551   test "$withval" = no || with_gnu_ld=yes
3552 else
3553   with_gnu_ld=no
3554 fi;
3555 ac_prog=ld
3556 if test "$GCC" = yes; then
3557   # Check if gcc -print-prog-name=ld gives a path.
3558   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3559 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3560   case $host in
3561   *-*-mingw*)
3562     # gcc leaves a trailing carriage return which upsets mingw
3563     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3564   *)
3565     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3566   esac
3567   case $ac_prog in
3568     # Accept absolute paths.
3569     [\\/]* | ?:[\\/]*)
3570       re_direlt='/[^/][^/]*/\.\./'
3571       # Canonicalize the pathname of ld
3572       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3573       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3574         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3575       done
3576       test -z "$LD" && LD="$ac_prog"
3577       ;;
3578   "")
3579     # If it fails, then pretend we aren't using GCC.
3580     ac_prog=ld
3581     ;;
3582   *)
3583     # If it is relative, then search for the first ld in PATH.
3584     with_gnu_ld=unknown
3585     ;;
3586   esac
3587 elif test "$with_gnu_ld" = yes; then
3588   echo "$as_me:$LINENO: checking for GNU ld" >&5
3589 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3590 else
3591   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3592 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3593 fi
3594 if test "${lt_cv_path_LD+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   if test -z "$LD"; then
3598   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3599   for ac_dir in $PATH; do
3600     IFS="$lt_save_ifs"
3601     test -z "$ac_dir" && ac_dir=.
3602     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3603       lt_cv_path_LD="$ac_dir/$ac_prog"
3604       # Check to see if the program is GNU ld.  I'd rather use --version,
3605       # but apparently some GNU ld's only accept -v.
3606       # Break only if it was the GNU/non-GNU ld that we prefer.
3607       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3608       *GNU* | *'with BFD'*)
3609         test "$with_gnu_ld" != no && break
3610         ;;
3611       *)
3612         test "$with_gnu_ld" != yes && break
3613         ;;
3614       esac
3615     fi
3616   done
3617   IFS="$lt_save_ifs"
3618 else
3619   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3620 fi
3621 fi
3622
3623 LD="$lt_cv_path_LD"
3624 if test -n "$LD"; then
3625   echo "$as_me:$LINENO: result: $LD" >&5
3626 echo "${ECHO_T}$LD" >&6
3627 else
3628   echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6
3630 fi
3631 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3632 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3633    { (exit 1); exit 1; }; }
3634 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3635 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3636 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3637   echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3640 case `$LD -v 2>&1 </dev/null` in
3641 *GNU* | *'with BFD'*)
3642   lt_cv_prog_gnu_ld=yes
3643   ;;
3644 *)
3645   lt_cv_prog_gnu_ld=no
3646   ;;
3647 esac
3648 fi
3649 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3650 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3651 with_gnu_ld=$lt_cv_prog_gnu_ld
3652
3653
3654 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3655 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3656 if test "${lt_cv_ld_reload_flag+set}" = set; then
3657   echo $ECHO_N "(cached) $ECHO_C" >&6
3658 else
3659   lt_cv_ld_reload_flag='-r'
3660 fi
3661 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3662 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3663 reload_flag=$lt_cv_ld_reload_flag
3664 case $reload_flag in
3665 "" | " "*) ;;
3666 *) reload_flag=" $reload_flag" ;;
3667 esac
3668 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3669
3670 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3671 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3672 if test "${lt_cv_path_NM+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   if test -n "$NM"; then
3676   # Let the user override the test.
3677   lt_cv_path_NM="$NM"
3678 else
3679   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3680   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3681     IFS="$lt_save_ifs"
3682     test -z "$ac_dir" && ac_dir=.
3683     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3684     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3685       # Check to see if the nm accepts a BSD-compat flag.
3686       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3687       #   nm: unknown option "B" ignored
3688       # Tru64's nm complains that /dev/null is an invalid object file
3689       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3690       */dev/null* | *'Invalid file or object type'*)
3691         lt_cv_path_NM="$tmp_nm -B"
3692         break
3693         ;;
3694       *)
3695         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3696         */dev/null*)
3697           lt_cv_path_NM="$tmp_nm -p"
3698           break
3699           ;;
3700         *)
3701           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3702           continue # so that we can try to find one that supports BSD flags
3703           ;;
3704         esac
3705       esac
3706     fi
3707   done
3708   IFS="$lt_save_ifs"
3709   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3710 fi
3711 fi
3712 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3713 echo "${ECHO_T}$lt_cv_path_NM" >&6
3714 NM="$lt_cv_path_NM"
3715
3716 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3717 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3718 LN_S=$as_ln_s
3719 if test "$LN_S" = "ln -s"; then
3720   echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6
3722 else
3723   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3724 echo "${ECHO_T}no, using $LN_S" >&6
3725 fi
3726
3727 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3728 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3729 if test "${lt_cv_deplibs_check_method+set}" = set; then
3730   echo $ECHO_N "(cached) $ECHO_C" >&6
3731 else
3732   lt_cv_file_magic_cmd='$MAGIC_CMD'
3733 lt_cv_file_magic_test_file=
3734 lt_cv_deplibs_check_method='unknown'
3735 # Need to set the preceding variable on all platforms that support
3736 # interlibrary dependencies.
3737 # 'none' -- dependencies not supported.
3738 # `unknown' -- same as none, but documents that we really don't know.
3739 # 'pass_all' -- all dependencies passed with no checks.
3740 # 'test_compile' -- check by making test program.
3741 # 'file_magic [[regex]]' -- check by looking for files in library path
3742 # which responds to the $file_magic_cmd with a given extended regex.
3743 # If you have `file' or equivalent on your system and you're not sure
3744 # whether `pass_all' will *always* work, you probably want this one.
3745
3746 case $host_os in
3747 aix4* | aix5*)
3748   lt_cv_deplibs_check_method=pass_all
3749   ;;
3750
3751 beos*)
3752   lt_cv_deplibs_check_method=pass_all
3753   ;;
3754
3755 bsdi4*)
3756   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3757   lt_cv_file_magic_cmd='/usr/bin/file -L'
3758   lt_cv_file_magic_test_file=/shlib/libc.so
3759   ;;
3760
3761 cygwin*)
3762   # func_win32_libid is a shell function defined in ltmain.sh
3763   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3764   lt_cv_file_magic_cmd='func_win32_libid'
3765   ;;
3766
3767 mingw* | pw32*)
3768   # Base MSYS/MinGW do not provide the 'file' command needed by
3769   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3770   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3771   lt_cv_file_magic_cmd='$OBJDUMP -f'
3772   ;;
3773
3774 darwin* | rhapsody*)
3775   lt_cv_deplibs_check_method=pass_all
3776   ;;
3777
3778 freebsd* | kfreebsd*-gnu)
3779   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3780     case $host_cpu in
3781     i*86 )
3782       # Not sure whether the presence of OpenBSD here was a mistake.
3783       # Let's accept both of them until this is cleared up.
3784       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3785       lt_cv_file_magic_cmd=/usr/bin/file
3786       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3787       ;;
3788     esac
3789   else
3790     lt_cv_deplibs_check_method=pass_all
3791   fi
3792   ;;
3793
3794 gnu*)
3795   lt_cv_deplibs_check_method=pass_all
3796   ;;
3797
3798 hpux10.20* | hpux11*)
3799   lt_cv_file_magic_cmd=/usr/bin/file
3800   case "$host_cpu" in
3801   ia64*)
3802     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3803     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3804     ;;
3805   hppa*64*)
3806     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]'
3807     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3808     ;;
3809   *)
3810     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3811     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3812     ;;
3813   esac
3814   ;;
3815
3816 irix5* | irix6* | nonstopux*)
3817   case $LD in
3818   *-32|*"-32 ") libmagic=32-bit;;
3819   *-n32|*"-n32 ") libmagic=N32;;
3820   *-64|*"-64 ") libmagic=64-bit;;
3821   *) libmagic=never-match;;
3822   esac
3823   lt_cv_deplibs_check_method=pass_all
3824   ;;
3825
3826 # This must be Linux ELF.
3827 linux*)
3828   case $host_cpu in
3829   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3830     lt_cv_deplibs_check_method=pass_all ;;
3831   *)
3832     # glibc up to 2.1.1 does not perform some relocations on ARM
3833     # this will be overridden with pass_all, but let us keep it just in case
3834     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3835   esac
3836   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3837   lt_cv_deplibs_check_method=pass_all
3838   ;;
3839
3840 netbsd*)
3841   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3842     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3843   else
3844     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3845   fi
3846   ;;
3847
3848 newos6*)
3849   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3850   lt_cv_file_magic_cmd=/usr/bin/file
3851   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3852   ;;
3853
3854 nto-qnx*)
3855   lt_cv_deplibs_check_method=unknown
3856   ;;
3857
3858 openbsd*)
3859   lt_cv_file_magic_cmd=/usr/bin/file
3860   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3861   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3862     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3863   else
3864     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3865   fi
3866   ;;
3867
3868 osf3* | osf4* | osf5*)
3869   lt_cv_deplibs_check_method=pass_all
3870   ;;
3871
3872 sco3.2v5*)
3873   lt_cv_deplibs_check_method=pass_all
3874   ;;
3875
3876 solaris*)
3877   lt_cv_deplibs_check_method=pass_all
3878   ;;
3879
3880 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3881   case $host_vendor in
3882   motorola)
3883     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]'
3884     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3885     ;;
3886   ncr)
3887     lt_cv_deplibs_check_method=pass_all
3888     ;;
3889   sequent)
3890     lt_cv_file_magic_cmd='/bin/file'
3891     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3892     ;;
3893   sni)
3894     lt_cv_file_magic_cmd='/bin/file'
3895     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3896     lt_cv_file_magic_test_file=/lib/libc.so
3897     ;;
3898   siemens)
3899     lt_cv_deplibs_check_method=pass_all
3900     ;;
3901   esac
3902   ;;
3903
3904 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3905   lt_cv_deplibs_check_method=pass_all
3906   ;;
3907 esac
3908
3909 fi
3910 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3911 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3912 file_magic_cmd=$lt_cv_file_magic_cmd
3913 deplibs_check_method=$lt_cv_deplibs_check_method
3914 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3915
3916
3917
3918
3919 # If no C compiler was specified, use CC.
3920 LTCC=${LTCC-"$CC"}
3921
3922 # Allow CC to be a program name with arguments.
3923 compiler=$CC
3924
3925
3926 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3927 if test "${enable_libtool_lock+set}" = set; then
3928   enableval="$enable_libtool_lock"
3929
3930 fi;
3931 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3932
3933 # Some flags need to be propagated to the compiler or linker for good
3934 # libtool support.
3935 case $host in
3936 ia64-*-hpux*)
3937   # Find out which ABI we are using.
3938   echo 'int i;' > conftest.$ac_ext
3939   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3940   (eval $ac_compile) 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; then
3944     case `/usr/bin/file conftest.$ac_objext` in
3945     *ELF-32*)
3946       HPUX_IA64_MODE="32"
3947       ;;
3948     *ELF-64*)
3949       HPUX_IA64_MODE="64"
3950       ;;
3951     esac
3952   fi
3953   rm -rf conftest*
3954   ;;
3955 *-*-irix6*)
3956   # Find out which ABI we are using.
3957   echo '#line 3957 "configure"' > conftest.$ac_ext
3958   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959   (eval $ac_compile) 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); }; then
3963    if test "$lt_cv_prog_gnu_ld" = yes; then
3964     case `/usr/bin/file conftest.$ac_objext` in
3965     *32-bit*)
3966       LD="${LD-ld} -melf32bsmip"
3967       ;;
3968     *N32*)
3969       LD="${LD-ld} -melf32bmipn32"
3970       ;;
3971     *64-bit*)
3972       LD="${LD-ld} -melf64bmip"
3973       ;;
3974     esac
3975    else
3976     case `/usr/bin/file conftest.$ac_objext` in
3977     *32-bit*)
3978       LD="${LD-ld} -32"
3979       ;;
3980     *N32*)
3981       LD="${LD-ld} -n32"
3982       ;;
3983     *64-bit*)
3984       LD="${LD-ld} -64"
3985       ;;
3986     esac
3987    fi
3988   fi
3989   rm -rf conftest*
3990   ;;
3991
3992 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3993   # Find out which ABI we are using.
3994   echo 'int i;' > conftest.$ac_ext
3995   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3996   (eval $ac_compile) 2>&5
3997   ac_status=$?
3998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999   (exit $ac_status); }; then
4000     case "`/usr/bin/file conftest.o`" in
4001     *32-bit*)
4002       case $host in
4003         x86_64-*linux*)
4004           LD="${LD-ld} -m elf_i386"
4005           ;;
4006         ppc64-*linux*|powerpc64-*linux*)
4007           LD="${LD-ld} -m elf32ppclinux"
4008           ;;
4009         s390x-*linux*)
4010           LD="${LD-ld} -m elf_s390"
4011           ;;
4012         sparc64-*linux*)
4013           LD="${LD-ld} -m elf32_sparc"
4014           ;;
4015       esac
4016       ;;
4017     *64-bit*)
4018       case $host in
4019         x86_64-*linux*)
4020           LD="${LD-ld} -m elf_x86_64"
4021           ;;
4022         ppc*-*linux*|powerpc*-*linux*)
4023           LD="${LD-ld} -m elf64ppc"
4024           ;;
4025         s390*-*linux*)
4026           LD="${LD-ld} -m elf64_s390"
4027           ;;
4028         sparc*-*linux*)
4029           LD="${LD-ld} -m elf64_sparc"
4030           ;;
4031       esac
4032       ;;
4033     esac
4034   fi
4035   rm -rf conftest*
4036   ;;
4037
4038 *-*-sco3.2v5*)
4039   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4040   SAVE_CFLAGS="$CFLAGS"
4041   CFLAGS="$CFLAGS -belf"
4042   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4043 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4044 if test "${lt_cv_cc_needs_belf+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052
4053      cat >conftest.$ac_ext <<_ACEOF
4054 /* confdefs.h.  */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h.  */
4059
4060 int
4061 main ()
4062 {
4063
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 rm -f conftest.$ac_objext conftest$ac_exeext
4069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070   (eval $ac_link) 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } &&
4077          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079   (eval $ac_try) 2>&5
4080   ac_status=$?
4081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082   (exit $ac_status); }; } &&
4083          { ac_try='test -s conftest$ac_exeext'
4084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085   (eval $ac_try) 2>&5
4086   ac_status=$?
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); }; }; then
4089   lt_cv_cc_needs_belf=yes
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094 lt_cv_cc_needs_belf=no
4095 fi
4096 rm -f conftest.err conftest.$ac_objext \
4097       conftest$ac_exeext conftest.$ac_ext
4098      ac_ext=c
4099 ac_cpp='$CPP $CPPFLAGS'
4100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104 fi
4105 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4106 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4107   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4108     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4109     CFLAGS="$SAVE_CFLAGS"
4110   fi
4111   ;;
4112
4113 esac
4114
4115 need_locks="$enable_libtool_lock"
4116
4117
4118
4119 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4121 if test "${ac_cv_header_stdc+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h.  */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h.  */
4130 #include <stdlib.h>
4131 #include <stdarg.h>
4132 #include <string.h>
4133 #include <float.h>
4134
4135 int
4136 main ()
4137 {
4138
4139   ;
4140   return 0;
4141 }
4142 _ACEOF
4143 rm -f conftest.$ac_objext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4145   (eval $ac_compile) 2>conftest.er1
4146   ac_status=$?
4147   grep -v '^ *+' conftest.er1 >conftest.err
4148   rm -f conftest.er1
4149   cat conftest.err >&5
4150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151   (exit $ac_status); } &&
4152          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154   (eval $ac_try) 2>&5
4155   ac_status=$?
4156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157   (exit $ac_status); }; } &&
4158          { ac_try='test -s conftest.$ac_objext'
4159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160   (eval $ac_try) 2>&5
4161   ac_status=$?
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); }; }; then
4164   ac_cv_header_stdc=yes
4165 else
4166   echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 ac_cv_header_stdc=no
4170 fi
4171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4172
4173 if test $ac_cv_header_stdc = yes; then
4174   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4175   cat >conftest.$ac_ext <<_ACEOF
4176 /* confdefs.h.  */
4177 _ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h.  */
4181 #include <string.h>
4182
4183 _ACEOF
4184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4185   $EGREP "memchr" >/dev/null 2>&1; then
4186   :
4187 else
4188   ac_cv_header_stdc=no
4189 fi
4190 rm -f conftest*
4191
4192 fi
4193
4194 if test $ac_cv_header_stdc = yes; then
4195   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4196   cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202 #include <stdlib.h>
4203
4204 _ACEOF
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206   $EGREP "free" >/dev/null 2>&1; then
4207   :
4208 else
4209   ac_cv_header_stdc=no
4210 fi
4211 rm -f conftest*
4212
4213 fi
4214
4215 if test $ac_cv_header_stdc = yes; then
4216   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217   if test "$cross_compiling" = yes; then
4218   :
4219 else
4220   cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 #include <ctype.h>
4227 #if ((' ' & 0x0FF) == 0x020)
4228 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4230 #else
4231 # define ISLOWER(c) \
4232                    (('a' <= (c) && (c) <= 'i') \
4233                      || ('j' <= (c) && (c) <= 'r') \
4234                      || ('s' <= (c) && (c) <= 'z'))
4235 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4236 #endif
4237
4238 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4239 int
4240 main ()
4241 {
4242   int i;
4243   for (i = 0; i < 256; i++)
4244     if (XOR (islower (i), ISLOWER (i))
4245         || toupper (i) != TOUPPER (i))
4246       exit(2);
4247   exit (0);
4248 }
4249 _ACEOF
4250 rm -f conftest$ac_exeext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4252   (eval $ac_link) 2>&5
4253   ac_status=$?
4254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257   (eval $ac_try) 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; }; then
4261   :
4262 else
4263   echo "$as_me: program exited with status $ac_status" >&5
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267 ( exit $ac_status )
4268 ac_cv_header_stdc=no
4269 fi
4270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 fi
4273 fi
4274 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4275 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4276 if test $ac_cv_header_stdc = yes; then
4277
4278 cat >>confdefs.h <<\_ACEOF
4279 #define STDC_HEADERS 1
4280 _ACEOF
4281
4282 fi
4283
4284 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4295                   inttypes.h stdint.h unistd.h
4296 do
4297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4298 echo "$as_me:$LINENO: checking for $ac_header" >&5
4299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h.  */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h.  */
4309 $ac_includes_default
4310
4311 #include <$ac_header>
4312 _ACEOF
4313 rm -f conftest.$ac_objext
4314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4315   (eval $ac_compile) 2>conftest.er1
4316   ac_status=$?
4317   grep -v '^ *+' conftest.er1 >conftest.err
4318   rm -f conftest.er1
4319   cat conftest.err >&5
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); } &&
4322          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324   (eval $ac_try) 2>&5
4325   ac_status=$?
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); }; } &&
4328          { ac_try='test -s conftest.$ac_objext'
4329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4330   (eval $ac_try) 2>&5
4331   ac_status=$?
4332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333   (exit $ac_status); }; }; then
4334   eval "$as_ac_Header=yes"
4335 else
4336   echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4338
4339 eval "$as_ac_Header=no"
4340 fi
4341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4342 fi
4343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4346   cat >>confdefs.h <<_ACEOF
4347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4348 _ACEOF
4349
4350 fi
4351
4352 done
4353
4354
4355
4356 for ac_header in dlfcn.h
4357 do
4358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4360   echo "$as_me:$LINENO: checking for $ac_header" >&5
4361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 fi
4365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4366 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4367 else
4368   # Is the header compilable?
4369 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h.  */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h.  */
4377 $ac_includes_default
4378 #include <$ac_header>
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4382   (eval $ac_compile) 2>conftest.er1
4383   ac_status=$?
4384   grep -v '^ *+' conftest.er1 >conftest.err
4385   rm -f conftest.er1
4386   cat conftest.err >&5
4387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388   (exit $ac_status); } &&
4389          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4391   (eval $ac_try) 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }; } &&
4395          { ac_try='test -s conftest.$ac_objext'
4396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4397   (eval $ac_try) 2>&5
4398   ac_status=$?
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); }; }; then
4401   ac_header_compiler=yes
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 ac_header_compiler=no
4407 fi
4408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4410 echo "${ECHO_T}$ac_header_compiler" >&6
4411
4412 # Is the header present?
4413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4415 cat >conftest.$ac_ext <<_ACEOF
4416 /* confdefs.h.  */
4417 _ACEOF
4418 cat confdefs.h >>conftest.$ac_ext
4419 cat >>conftest.$ac_ext <<_ACEOF
4420 /* end confdefs.h.  */
4421 #include <$ac_header>
4422 _ACEOF
4423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4424   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4425   ac_status=$?
4426   grep -v '^ *+' conftest.er1 >conftest.err
4427   rm -f conftest.er1
4428   cat conftest.err >&5
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } >/dev/null; then
4431   if test -s conftest.err; then
4432     ac_cpp_err=$ac_c_preproc_warn_flag
4433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4434   else
4435     ac_cpp_err=
4436   fi
4437 else
4438   ac_cpp_err=yes
4439 fi
4440 if test -z "$ac_cpp_err"; then
4441   ac_header_preproc=yes
4442 else
4443   echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4445
4446   ac_header_preproc=no
4447 fi
4448 rm -f conftest.err conftest.$ac_ext
4449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4450 echo "${ECHO_T}$ac_header_preproc" >&6
4451
4452 # So?  What about this header?
4453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4454   yes:no: )
4455     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4459     ac_header_preproc=yes
4460     ;;
4461   no:yes:* )
4462     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4464     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4465 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4466     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4468     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4469 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4470     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4472     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4474     (
4475       cat <<\_ASBOX
4476 ## ------------------------------------------ ##
4477 ## Report this to the AC_PACKAGE_NAME lists.  ##
4478 ## ------------------------------------------ ##
4479 _ASBOX
4480     ) |
4481       sed "s/^/$as_me: WARNING:     /" >&2
4482     ;;
4483 esac
4484 echo "$as_me:$LINENO: checking for $ac_header" >&5
4485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   eval "$as_ac_Header=\$ac_header_preproc"
4490 fi
4491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4493
4494 fi
4495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496   cat >>confdefs.h <<_ACEOF
4497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4498 _ACEOF
4499
4500 fi
4501
4502 done
4503
4504 ac_ext=cc
4505 ac_cpp='$CXXCPP $CPPFLAGS'
4506 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4507 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4508 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4509 if test -n "$ac_tool_prefix"; then
4510   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4511   do
4512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_prog_CXX+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if test -n "$CXX"; then
4520   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535
4536 fi
4537 fi
4538 CXX=$ac_cv_prog_CXX
4539 if test -n "$CXX"; then
4540   echo "$as_me:$LINENO: result: $CXX" >&5
4541 echo "${ECHO_T}$CXX" >&6
4542 else
4543   echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547     test -n "$CXX" && break
4548   done
4549 fi
4550 if test -z "$CXX"; then
4551   ac_ct_CXX=$CXX
4552   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4553 do
4554   # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4558 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   if test -n "$ac_ct_CXX"; then
4562   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_exec_ext in '' $ac_executable_extensions; do
4570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571     ac_cv_prog_ac_ct_CXX="$ac_prog"
4572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576 done
4577
4578 fi
4579 fi
4580 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4581 if test -n "$ac_ct_CXX"; then
4582   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4583 echo "${ECHO_T}$ac_ct_CXX" >&6
4584 else
4585   echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4587 fi
4588
4589   test -n "$ac_ct_CXX" && break
4590 done
4591 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4592
4593   CXX=$ac_ct_CXX
4594 fi
4595
4596
4597 # Provide some information about the compiler.
4598 echo "$as_me:$LINENO:" \
4599      "checking for C++ compiler version" >&5
4600 ac_compiler=`set X $ac_compile; echo $2`
4601 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4602   (eval $ac_compiler --version </dev/null >&5) 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }
4606 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4607   (eval $ac_compiler -v </dev/null >&5) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }
4611 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4612   (eval $ac_compiler -V </dev/null >&5) 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }
4616
4617 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4618 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4619 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4620   echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622   cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h.  */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h.  */
4628
4629 int
4630 main ()
4631 {
4632 #ifndef __GNUC__
4633        choke me
4634 #endif
4635
4636   ;
4637   return 0;
4638 }
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642   (eval $ac_compile) 2>conftest.er1
4643   ac_status=$?
4644   grep -v '^ *+' conftest.er1 >conftest.err
4645   rm -f conftest.er1
4646   cat conftest.err >&5
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } &&
4649          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651   (eval $ac_try) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); }; } &&
4655          { ac_try='test -s conftest.$ac_objext'
4656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657   (eval $ac_try) 2>&5
4658   ac_status=$?
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); }; }; then
4661   ac_compiler_gnu=yes
4662 else
4663   echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_compiler_gnu=no
4667 fi
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4670
4671 fi
4672 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4673 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4674 GXX=`test $ac_compiler_gnu = yes && echo yes`
4675 ac_test_CXXFLAGS=${CXXFLAGS+set}
4676 ac_save_CXXFLAGS=$CXXFLAGS
4677 CXXFLAGS="-g"
4678 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4679 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4680 if test "${ac_cv_prog_cxx_g+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   cat >conftest.$ac_ext <<_ACEOF
4684 /* confdefs.h.  */
4685 _ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h.  */
4689
4690 int
4691 main ()
4692 {
4693
4694   ;
4695   return 0;
4696 }
4697 _ACEOF
4698 rm -f conftest.$ac_objext
4699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4700   (eval $ac_compile) 2>conftest.er1
4701   ac_status=$?
4702   grep -v '^ *+' conftest.er1 >conftest.err
4703   rm -f conftest.er1
4704   cat conftest.err >&5
4705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706   (exit $ac_status); } &&
4707          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709   (eval $ac_try) 2>&5
4710   ac_status=$?
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); }; } &&
4713          { ac_try='test -s conftest.$ac_objext'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; }; then
4719   ac_cv_prog_cxx_g=yes
4720 else
4721   echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 ac_cv_prog_cxx_g=no
4725 fi
4726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4727 fi
4728 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4729 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4730 if test "$ac_test_CXXFLAGS" = set; then
4731   CXXFLAGS=$ac_save_CXXFLAGS
4732 elif test $ac_cv_prog_cxx_g = yes; then
4733   if test "$GXX" = yes; then
4734     CXXFLAGS="-g -O2"
4735   else
4736     CXXFLAGS="-g"
4737   fi
4738 else
4739   if test "$GXX" = yes; then
4740     CXXFLAGS="-O2"
4741   else
4742     CXXFLAGS=
4743   fi
4744 fi
4745 for ac_declaration in \
4746    '' \
4747    'extern "C" void std::exit (int) throw (); using std::exit;' \
4748    'extern "C" void std::exit (int); using std::exit;' \
4749    'extern "C" void exit (int) throw ();' \
4750    'extern "C" void exit (int);' \
4751    'void exit (int);'
4752 do
4753   cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759 $ac_declaration
4760 #include <stdlib.h>
4761 int
4762 main ()
4763 {
4764 exit (42);
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771   (eval $ac_compile) 2>conftest.er1
4772   ac_status=$?
4773   grep -v '^ *+' conftest.er1 >conftest.err
4774   rm -f conftest.er1
4775   cat conftest.err >&5
4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } &&
4778          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780   (eval $ac_try) 2>&5
4781   ac_status=$?
4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783   (exit $ac_status); }; } &&
4784          { ac_try='test -s conftest.$ac_objext'
4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786   (eval $ac_try) 2>&5
4787   ac_status=$?
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); }; }; then
4790   :
4791 else
4792   echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 continue
4796 fi
4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798   cat >conftest.$ac_ext <<_ACEOF
4799 /* confdefs.h.  */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h.  */
4804 $ac_declaration
4805 int
4806 main ()
4807 {
4808 exit (42);
4809   ;
4810   return 0;
4811 }
4812 _ACEOF
4813 rm -f conftest.$ac_objext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815   (eval $ac_compile) 2>conftest.er1
4816   ac_status=$?
4817   grep -v '^ *+' conftest.er1 >conftest.err
4818   rm -f conftest.er1
4819   cat conftest.err >&5
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); } &&
4822          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824   (eval $ac_try) 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }; } &&
4828          { ac_try='test -s conftest.$ac_objext'
4829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830   (eval $ac_try) 2>&5
4831   ac_status=$?
4832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833   (exit $ac_status); }; }; then
4834   break
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 fi
4840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4841 done
4842 rm -f conftest*
4843 if test -n "$ac_declaration"; then
4844   echo '#ifdef __cplusplus' >>confdefs.h
4845   echo $ac_declaration      >>confdefs.h
4846   echo '#endif'             >>confdefs.h
4847 fi
4848
4849 ac_ext=cc
4850 ac_cpp='$CXXCPP $CPPFLAGS'
4851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4854
4855 depcc="$CXX"  am_compiler_list=
4856
4857 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4858 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4859 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4863   # We make a subdir and do the tests there.  Otherwise we can end up
4864   # making bogus files that we don't know about and never remove.  For
4865   # instance it was reported that on HP-UX the gcc test will end up
4866   # making a dummy file named `D' -- because `-MD' means `put the output
4867   # in D'.
4868   mkdir conftest.dir
4869   # Copy depcomp to subdir because otherwise we won't find it if we're
4870   # using a relative directory.
4871   cp "$am_depcomp" conftest.dir
4872   cd conftest.dir
4873   # We will build objects and dependencies in a subdirectory because
4874   # it helps to detect inapplicable dependency modes.  For instance
4875   # both Tru64's cc and ICC support -MD to output dependencies as a
4876   # side effect of compilation, but ICC will put the dependencies in
4877   # the current directory while Tru64 will put them in the object
4878   # directory.
4879   mkdir sub
4880
4881   am_cv_CXX_dependencies_compiler_type=none
4882   if test "$am_compiler_list" = ""; then
4883      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4884   fi
4885   for depmode in $am_compiler_list; do
4886     # Setup a source with many dependencies, because some compilers
4887     # like to wrap large dependency lists on column 80 (with \), and
4888     # we should not choose a depcomp mode which is confused by this.
4889     #
4890     # We need to recreate these files for each test, as the compiler may
4891     # overwrite some of them when testing with obscure command lines.
4892     # This happens at least with the AIX C compiler.
4893     : > sub/conftest.c
4894     for i in 1 2 3 4 5 6; do
4895       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4896       : > sub/conftst$i.h
4897     done
4898     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4899
4900     case $depmode in
4901     nosideeffect)
4902       # after this tag, mechanisms are not by side-effect, so they'll
4903       # only be used when explicitly requested
4904       if test "x$enable_dependency_tracking" = xyes; then
4905         continue
4906       else
4907         break
4908       fi
4909       ;;
4910     none) break ;;
4911     esac
4912     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4913     # mode.  It turns out that the SunPro C++ compiler does not properly
4914     # handle `-M -o', and we need to detect this.
4915     if depmode=$depmode \
4916        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4917        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4918        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4919          >/dev/null 2>conftest.err &&
4920        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4921        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4922        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4923       # icc doesn't choke on unknown options, it will just issue warnings
4924       # (even with -Werror).  So we grep stderr for any message
4925       # that says an option was ignored.
4926       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4927         am_cv_CXX_dependencies_compiler_type=$depmode
4928         break
4929       fi
4930     fi
4931   done
4932
4933   cd ..
4934   rm -rf conftest.dir
4935 else
4936   am_cv_CXX_dependencies_compiler_type=none
4937 fi
4938
4939 fi
4940 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4941 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4942 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4943
4944
4945
4946 if
4947   test "x$enable_dependency_tracking" != xno \
4948   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4949   am__fastdepCXX_TRUE=
4950   am__fastdepCXX_FALSE='#'
4951 else
4952   am__fastdepCXX_TRUE='#'
4953   am__fastdepCXX_FALSE=
4954 fi
4955
4956
4957 ac_ext=cc
4958 ac_cpp='$CXXCPP $CPPFLAGS'
4959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4962 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4963 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4964 if test -z "$CXXCPP"; then
4965   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968       # Double quotes because CXXCPP needs to be expanded
4969     for CXXCPP in "$CXX -E" "/lib/cpp"
4970     do
4971       ac_preproc_ok=false
4972 for ac_cxx_preproc_warn_flag in '' yes
4973 do
4974   # Use a header file that comes with gcc, so configuring glibc
4975   # with a fresh cross-compiler works.
4976   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4977   # <limits.h> exists even on freestanding compilers.
4978   # On the NeXT, cc -E runs the code through the compiler's parser,
4979   # not just through cpp. "Syntax error" is here to catch this case.
4980   cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h.  */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h.  */
4986 #ifdef __STDC__
4987 # include <limits.h>
4988 #else
4989 # include <assert.h>
4990 #endif
4991                      Syntax error
4992 _ACEOF
4993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4995   ac_status=$?
4996   grep -v '^ *+' conftest.er1 >conftest.err
4997   rm -f conftest.er1
4998   cat conftest.err >&5
4999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000   (exit $ac_status); } >/dev/null; then
5001   if test -s conftest.err; then
5002     ac_cpp_err=$ac_cxx_preproc_warn_flag
5003     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5004   else
5005     ac_cpp_err=
5006   fi
5007 else
5008   ac_cpp_err=yes
5009 fi
5010 if test -z "$ac_cpp_err"; then
5011   :
5012 else
5013   echo "$as_me: failed program was:" >&5
5014 sed 's/^/| /' conftest.$ac_ext >&5
5015
5016   # Broken: fails on valid input.
5017 continue
5018 fi
5019 rm -f conftest.err conftest.$ac_ext
5020
5021   # OK, works on sane cases.  Now check whether non-existent headers
5022   # can be detected and how.
5023   cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 #include <ac_nonexistent.h>
5030 _ACEOF
5031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5032   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5033   ac_status=$?
5034   grep -v '^ *+' conftest.er1 >conftest.err
5035   rm -f conftest.er1
5036   cat conftest.err >&5
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); } >/dev/null; then
5039   if test -s conftest.err; then
5040     ac_cpp_err=$ac_cxx_preproc_warn_flag
5041     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5042   else
5043     ac_cpp_err=
5044   fi
5045 else
5046   ac_cpp_err=yes
5047 fi
5048 if test -z "$ac_cpp_err"; then
5049   # Broken: success on invalid input.
5050 continue
5051 else
5052   echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055   # Passes both tests.
5056 ac_preproc_ok=:
5057 break
5058 fi
5059 rm -f conftest.err conftest.$ac_ext
5060
5061 done
5062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5063 rm -f conftest.err conftest.$ac_ext
5064 if $ac_preproc_ok; then
5065   break
5066 fi
5067
5068     done
5069     ac_cv_prog_CXXCPP=$CXXCPP
5070
5071 fi
5072   CXXCPP=$ac_cv_prog_CXXCPP
5073 else
5074   ac_cv_prog_CXXCPP=$CXXCPP
5075 fi
5076 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5077 echo "${ECHO_T}$CXXCPP" >&6
5078 ac_preproc_ok=false
5079 for ac_cxx_preproc_warn_flag in '' yes
5080 do
5081   # Use a header file that comes with gcc, so configuring glibc
5082   # with a fresh cross-compiler works.
5083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5084   # <limits.h> exists even on freestanding compilers.
5085   # On the NeXT, cc -E runs the code through the compiler's parser,
5086   # not just through cpp. "Syntax error" is here to catch this case.
5087   cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h.  */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h.  */
5093 #ifdef __STDC__
5094 # include <limits.h>
5095 #else
5096 # include <assert.h>
5097 #endif
5098                      Syntax error
5099 _ACEOF
5100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
5105   cat conftest.err >&5
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } >/dev/null; then
5108   if test -s conftest.err; then
5109     ac_cpp_err=$ac_cxx_preproc_warn_flag
5110     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5111   else
5112     ac_cpp_err=
5113   fi
5114 else
5115   ac_cpp_err=yes
5116 fi
5117 if test -z "$ac_cpp_err"; then
5118   :
5119 else
5120   echo "$as_me: failed program was:" >&5
5121 sed 's/^/| /' conftest.$ac_ext >&5
5122
5123   # Broken: fails on valid input.
5124 continue
5125 fi
5126 rm -f conftest.err conftest.$ac_ext
5127
5128   # OK, works on sane cases.  Now check whether non-existent headers
5129   # can be detected and how.
5130   cat >conftest.$ac_ext <<_ACEOF
5131 /* confdefs.h.  */
5132 _ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h.  */
5136 #include <ac_nonexistent.h>
5137 _ACEOF
5138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5140   ac_status=$?
5141   grep -v '^ *+' conftest.er1 >conftest.err
5142   rm -f conftest.er1
5143   cat conftest.err >&5
5144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145   (exit $ac_status); } >/dev/null; then
5146   if test -s conftest.err; then
5147     ac_cpp_err=$ac_cxx_preproc_warn_flag
5148     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5149   else
5150     ac_cpp_err=
5151   fi
5152 else
5153   ac_cpp_err=yes
5154 fi
5155 if test -z "$ac_cpp_err"; then
5156   # Broken: success on invalid input.
5157 continue
5158 else
5159   echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162   # Passes both tests.
5163 ac_preproc_ok=:
5164 break
5165 fi
5166 rm -f conftest.err conftest.$ac_ext
5167
5168 done
5169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5170 rm -f conftest.err conftest.$ac_ext
5171 if $ac_preproc_ok; then
5172   :
5173 else
5174   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5175 See \`config.log' for more details." >&5
5176 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5177 See \`config.log' for more details." >&2;}
5178    { (exit 1); exit 1; }; }
5179 fi
5180
5181 ac_ext=cc
5182 ac_cpp='$CXXCPP $CPPFLAGS'
5183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5186
5187
5188 ac_ext=f
5189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5192 if test -n "$ac_tool_prefix"; then
5193   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5194   do
5195     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5197 echo "$as_me:$LINENO: checking for $ac_word" >&5
5198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5199 if test "${ac_cv_prog_F77+set}" = set; then
5200   echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202   if test -n "$F77"; then
5203   ac_cv_prog_F77="$F77" # Let the user override the test.
5204 else
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210   for ac_exec_ext in '' $ac_executable_extensions; do
5211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217 done
5218
5219 fi
5220 fi
5221 F77=$ac_cv_prog_F77
5222 if test -n "$F77"; then
5223   echo "$as_me:$LINENO: result: $F77" >&5
5224 echo "${ECHO_T}$F77" >&6
5225 else
5226   echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6
5228 fi
5229
5230     test -n "$F77" && break
5231   done
5232 fi
5233 if test -z "$F77"; then
5234   ac_ct_F77=$F77
5235   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5236 do
5237   # Extract the first word of "$ac_prog", so it can be a program name with args.
5238 set dummy $ac_prog; ac_word=$2
5239 echo "$as_me:$LINENO: checking for $ac_word" >&5
5240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5241 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   if test -n "$ac_ct_F77"; then
5245   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252   for ac_exec_ext in '' $ac_executable_extensions; do
5253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254     ac_cv_prog_ac_ct_F77="$ac_prog"
5255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256     break 2
5257   fi
5258 done
5259 done
5260
5261 fi
5262 fi
5263 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5264 if test -n "$ac_ct_F77"; then
5265   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5266 echo "${ECHO_T}$ac_ct_F77" >&6
5267 else
5268   echo "$as_me:$LINENO: result: no" >&5
5269 echo "${ECHO_T}no" >&6
5270 fi
5271
5272   test -n "$ac_ct_F77" && break
5273 done
5274
5275   F77=$ac_ct_F77
5276 fi
5277
5278
5279 # Provide some information about the compiler.
5280 echo "$as_me:5280:" \
5281      "checking for Fortran 77 compiler version" >&5
5282 ac_compiler=`set X $ac_compile; echo $2`
5283 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5284   (eval $ac_compiler --version </dev/null >&5) 2>&5
5285   ac_status=$?
5286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287   (exit $ac_status); }
5288 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5289   (eval $ac_compiler -v </dev/null >&5) 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }
5293 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5294   (eval $ac_compiler -V </dev/null >&5) 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }
5298 rm -f a.out
5299
5300 # If we don't use `.F' as extension, the preprocessor is not run on the
5301 # input file.  (Note that this only needs to work for GNU compilers.)
5302 ac_save_ext=$ac_ext
5303 ac_ext=F
5304 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5305 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5306 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309   cat >conftest.$ac_ext <<_ACEOF
5310       program main
5311 #ifndef __GNUC__
5312        choke me
5313 #endif
5314
5315       end
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319   (eval $ac_compile) 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } &&
5326          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328   (eval $ac_try) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); }; } &&
5332          { ac_try='test -s conftest.$ac_objext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   ac_compiler_gnu=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_compiler_gnu=no
5344 fi
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5347
5348 fi
5349 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5350 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5351 ac_ext=$ac_save_ext
5352 ac_test_FFLAGS=${FFLAGS+set}
5353 ac_save_FFLAGS=$FFLAGS
5354 FFLAGS=
5355 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5356 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5357 if test "${ac_cv_prog_f77_g+set}" = set; then
5358   echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360   FFLAGS=-g
5361 cat >conftest.$ac_ext <<_ACEOF
5362       program main
5363
5364       end
5365 _ACEOF
5366 rm -f conftest.$ac_objext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5368   (eval $ac_compile) 2>conftest.er1
5369   ac_status=$?
5370   grep -v '^ *+' conftest.er1 >conftest.err
5371   rm -f conftest.er1
5372   cat conftest.err >&5
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } &&
5375          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
5376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377   (eval $ac_try) 2>&5
5378   ac_status=$?
5379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380   (exit $ac_status); }; } &&
5381          { ac_try='test -s conftest.$ac_objext'
5382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5383   (eval $ac_try) 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); }; }; then
5387   ac_cv_prog_f77_g=yes
5388 else
5389   echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 ac_cv_prog_f77_g=no
5393 fi
5394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5395
5396 fi
5397 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5398 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5399 if test "$ac_test_FFLAGS" = set; then
5400   FFLAGS=$ac_save_FFLAGS
5401 elif test $ac_cv_prog_f77_g = yes; then
5402   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5403     FFLAGS="-g -O2"
5404   else
5405     FFLAGS="-g"
5406   fi
5407 else
5408   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5409     FFLAGS="-O2"
5410   else
5411     FFLAGS=
5412   fi
5413 fi
5414
5415 G77=`test $ac_compiler_gnu = yes && echo yes`
5416 ac_ext=c
5417 ac_cpp='$CPP $CPPFLAGS'
5418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5421
5422
5423
5424 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5425
5426 # find the maximum length of command line arguments
5427 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5428 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5429 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432     i=0
5433   teststring="ABCD"
5434
5435   case $build_os in
5436   msdosdjgpp*)
5437     # On DJGPP, this test can blow up pretty badly due to problems in libc
5438     # (any single argument exceeding 2000 bytes causes a buffer overrun
5439     # during glob expansion).  Even if it were fixed, the result of this
5440     # check would be larger than it should be.
5441     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5442     ;;
5443
5444   gnu*)
5445     # Under GNU Hurd, this test is not required because there is
5446     # no limit to the length of command line arguments.
5447     # Libtool will interpret -1 as no limit whatsoever
5448     lt_cv_sys_max_cmd_len=-1;
5449     ;;
5450
5451   cygwin* | mingw*)
5452     # On Win9x/ME, this test blows up -- it succeeds, but takes
5453     # about 5 minutes as the teststring grows exponentially.
5454     # Worse, since 9x/ME are not pre-emptively multitasking,
5455     # you end up with a "frozen" computer, even though with patience
5456     # the test eventually succeeds (with a max line length of 256k).
5457     # Instead, let's just punt: use the minimum linelength reported by
5458     # all of the supported platforms: 8192 (on NT/2K/XP).
5459     lt_cv_sys_max_cmd_len=8192;
5460     ;;
5461
5462   amigaos*)
5463     # On AmigaOS with pdksh, this test takes hours, literally.
5464     # So we just punt and use a minimum line length of 8192.
5465     lt_cv_sys_max_cmd_len=8192;
5466     ;;
5467
5468  *)
5469     # If test is not a shell built-in, we'll probably end up computing a
5470     # maximum length that is only half of the actual maximum length, but
5471     # we can't tell.
5472     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5473                = "XX$teststring") >/dev/null 2>&1 &&
5474             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5475             lt_cv_sys_max_cmd_len=$new_result &&
5476             test $i != 17 # 1/2 MB should be enough
5477     do
5478       i=`expr $i + 1`
5479       teststring=$teststring$teststring
5480     done
5481     teststring=
5482     # Add a significant safety factor because C++ compilers can tack on massive
5483     # amounts of additional arguments before passing them to the linker.
5484     # It appears as though 1/2 is a usable value.
5485     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5486     ;;
5487   esac
5488
5489 fi
5490
5491 if test -n $lt_cv_sys_max_cmd_len ; then
5492   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5493 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5494 else
5495   echo "$as_me:$LINENO: result: none" >&5
5496 echo "${ECHO_T}none" >&6
5497 fi
5498
5499
5500
5501
5502 # Check for command to grab the raw symbol name followed by C symbol from nm.
5503 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5504 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5506   echo $ECHO_N "(cached) $ECHO_C" >&6
5507 else
5508
5509 # These are sane defaults that work on at least a few old systems.
5510 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5511
5512 # Character class describing NM global symbol codes.
5513 symcode='[BCDEGRST]'
5514
5515 # Regexp to match symbols that can be accessed directly from C.
5516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5517
5518 # Transform the above into a raw symbol and a C symbol.
5519 symxfrm='\1 \2\3 \3'
5520
5521 # Transform an extracted symbol line into a proper C declaration
5522 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5523
5524 # Transform an extracted symbol line into symbol name and symbol address
5525 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'"
5526
5527 # Define system-specific variables.
5528 case $host_os in
5529 aix*)
5530   symcode='[BCDT]'
5531   ;;
5532 cygwin* | mingw* | pw32*)
5533   symcode='[ABCDGISTW]'
5534   ;;
5535 hpux*) # Its linker distinguishes data from code symbols
5536   if test "$host_cpu" = ia64; then
5537     symcode='[ABCDEGRST]'
5538   fi
5539   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5540   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'"
5541   ;;
5542 irix* | nonstopux*)
5543   symcode='[BCDEGRST]'
5544   ;;
5545 osf*)
5546   symcode='[BCDEGQRST]'
5547   ;;
5548 solaris* | sysv5*)
5549   symcode='[BDRT]'
5550   ;;
5551 sysv4)
5552   symcode='[DFNSTU]'
5553   ;;
5554 esac
5555
5556 # Handle CRLF in mingw tool chain
5557 opt_cr=
5558 case $build_os in
5559 mingw*)
5560   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5561   ;;
5562 esac
5563
5564 # If we're using GNU nm, then use its standard symbol codes.
5565 case `$NM -V 2>&1` in
5566 *GNU* | *'with BFD'*)
5567   symcode='[ABCDGIRSTW]' ;;
5568 esac
5569
5570 # Try without a prefix undercore, then with it.
5571 for ac_symprfx in "" "_"; do
5572
5573   # Write the raw and C identifiers.
5574   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5575
5576   # Check to see that the pipe works correctly.
5577   pipe_works=no
5578
5579   rm -f conftest*
5580   cat > conftest.$ac_ext <<EOF
5581 #ifdef __cplusplus
5582 extern "C" {
5583 #endif
5584 char nm_test_var;
5585 void nm_test_func(){}
5586 #ifdef __cplusplus
5587 }
5588 #endif
5589 int main(){nm_test_var='a';nm_test_func();return(0);}
5590 EOF
5591
5592   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5593   (eval $ac_compile) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; then
5597     # Now try to grab the symbols.
5598     nlist=conftest.nm
5599     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5600   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } && test -s "$nlist"; then
5604       # Try sorting and uniquifying the output.
5605       if sort "$nlist" | uniq > "$nlist"T; then
5606         mv -f "$nlist"T "$nlist"
5607       else
5608         rm -f "$nlist"T
5609       fi
5610
5611       # Make sure that we snagged all the symbols we need.
5612       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5613         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5614           cat <<EOF > conftest.$ac_ext
5615 #ifdef __cplusplus
5616 extern "C" {
5617 #endif
5618
5619 EOF
5620           # Now generate the symbol file.
5621           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5622
5623           cat <<EOF >> conftest.$ac_ext
5624 #if defined (__STDC__) && __STDC__
5625 # define lt_ptr_t void *
5626 #else
5627 # define lt_ptr_t char *
5628 # define const
5629 #endif
5630
5631 /* The mapping between symbol names and symbols. */
5632 const struct {
5633   const char *name;
5634   lt_ptr_t address;
5635 }
5636 lt_preloaded_symbols[] =
5637 {
5638 EOF
5639           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5640           cat <<\EOF >> conftest.$ac_ext
5641   {0, (lt_ptr_t) 0}
5642 };
5643
5644 #ifdef __cplusplus
5645 }
5646 #endif
5647 EOF
5648           # Now try linking the two files.
5649           mv conftest.$ac_objext conftstm.$ac_objext
5650           lt_save_LIBS="$LIBS"
5651           lt_save_CFLAGS="$CFLAGS"
5652           LIBS="conftstm.$ac_objext"
5653           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5654           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655   (eval $ac_link) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5659             pipe_works=yes
5660           fi
5661           LIBS="$lt_save_LIBS"
5662           CFLAGS="$lt_save_CFLAGS"
5663         else
5664           echo "cannot find nm_test_func in $nlist" >&5
5665         fi
5666       else
5667         echo "cannot find nm_test_var in $nlist" >&5
5668       fi
5669     else
5670       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5671     fi
5672   else
5673     echo "$progname: failed program was:" >&5
5674     cat conftest.$ac_ext >&5
5675   fi
5676   rm -f conftest* conftst*
5677
5678   # Do not use the global_symbol_pipe unless it works.
5679   if test "$pipe_works" = yes; then
5680     break
5681   else
5682     lt_cv_sys_global_symbol_pipe=
5683   fi
5684 done
5685
5686 fi
5687
5688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5689   lt_cv_sys_global_symbol_to_cdecl=
5690 fi
5691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5692   echo "$as_me:$LINENO: result: failed" >&5
5693 echo "${ECHO_T}failed" >&6
5694 else
5695   echo "$as_me:$LINENO: result: ok" >&5
5696 echo "${ECHO_T}ok" >&6
5697 fi
5698
5699 echo "$as_me:$LINENO: checking for objdir" >&5
5700 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5701 if test "${lt_cv_objdir+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   rm -f .libs 2>/dev/null
5705 mkdir .libs 2>/dev/null
5706 if test -d .libs; then
5707   lt_cv_objdir=.libs
5708 else
5709   # MS-DOS does not allow filenames that begin with a dot.
5710   lt_cv_objdir=_libs
5711 fi
5712 rmdir .libs 2>/dev/null
5713 fi
5714 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5715 echo "${ECHO_T}$lt_cv_objdir" >&6
5716 objdir=$lt_cv_objdir
5717
5718
5719
5720
5721
5722 case $host_os in
5723 aix3*)
5724   # AIX sometimes has problems with the GCC collect2 program.  For some
5725   # reason, if we set the COLLECT_NAMES environment variable, the problems
5726   # vanish in a puff of smoke.
5727   if test "X${COLLECT_NAMES+set}" != Xset; then
5728     COLLECT_NAMES=
5729     export COLLECT_NAMES
5730   fi
5731   ;;
5732 esac
5733
5734 # Sed substitution that helps us do robust quoting.  It backslashifies
5735 # metacharacters that are still active within double-quoted strings.
5736 Xsed='sed -e s/^X//'
5737 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5738
5739 # Same as above, but do not quote variable references.
5740 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5741
5742 # Sed substitution to delay expansion of an escaped shell variable in a
5743 # double_quote_subst'ed string.
5744 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5745
5746 # Sed substitution to avoid accidental globbing in evaled expressions
5747 no_glob_subst='s/\*/\\\*/g'
5748
5749 # Constants:
5750 rm="rm -f"
5751
5752 # Global variables:
5753 default_ofile=libtool
5754 can_build_shared=yes
5755
5756 # All known linkers require a `.a' archive for static linking (except M$VC,
5757 # which needs '.lib').
5758 libext=a
5759 ltmain="$ac_aux_dir/ltmain.sh"
5760 ofile="$default_ofile"
5761 with_gnu_ld="$lt_cv_prog_gnu_ld"
5762
5763 if test -n "$ac_tool_prefix"; then
5764   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5765 set dummy ${ac_tool_prefix}ar; ac_word=$2
5766 echo "$as_me:$LINENO: checking for $ac_word" >&5
5767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5768 if test "${ac_cv_prog_AR+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   if test -n "$AR"; then
5772   ac_cv_prog_AR="$AR" # Let the user override the test.
5773 else
5774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 for as_dir in $PATH
5776 do
5777   IFS=$as_save_IFS
5778   test -z "$as_dir" && as_dir=.
5779   for ac_exec_ext in '' $ac_executable_extensions; do
5780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781     ac_cv_prog_AR="${ac_tool_prefix}ar"
5782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783     break 2
5784   fi
5785 done
5786 done
5787
5788 fi
5789 fi
5790 AR=$ac_cv_prog_AR
5791 if test -n "$AR"; then
5792   echo "$as_me:$LINENO: result: $AR" >&5
5793 echo "${ECHO_T}$AR" >&6
5794 else
5795   echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6
5797 fi
5798
5799 fi
5800 if test -z "$ac_cv_prog_AR"; then
5801   ac_ct_AR=$AR
5802   # Extract the first word of "ar", so it can be a program name with args.
5803 set dummy ar; ac_word=$2
5804 echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5806 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5807   echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809   if test -n "$ac_ct_AR"; then
5810   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817   for ac_exec_ext in '' $ac_executable_extensions; do
5818   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819     ac_cv_prog_ac_ct_AR="ar"
5820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824 done
5825
5826   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5827 fi
5828 fi
5829 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5830 if test -n "$ac_ct_AR"; then
5831   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5832 echo "${ECHO_T}$ac_ct_AR" >&6
5833 else
5834   echo "$as_me:$LINENO: result: no" >&5
5835 echo "${ECHO_T}no" >&6
5836 fi
5837
5838   AR=$ac_ct_AR
5839 else
5840   AR="$ac_cv_prog_AR"
5841 fi
5842
5843 if test -n "$ac_tool_prefix"; then
5844   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5845 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5846 echo "$as_me:$LINENO: checking for $ac_word" >&5
5847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5848 if test "${ac_cv_prog_RANLIB+set}" = set; then
5849   echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851   if test -n "$RANLIB"; then
5852   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5853 else
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5855 for as_dir in $PATH
5856 do
5857   IFS=$as_save_IFS
5858   test -z "$as_dir" && as_dir=.
5859   for ac_exec_ext in '' $ac_executable_extensions; do
5860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5861     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5863     break 2
5864   fi
5865 done
5866 done
5867
5868 fi
5869 fi
5870 RANLIB=$ac_cv_prog_RANLIB
5871 if test -n "$RANLIB"; then
5872   echo "$as_me:$LINENO: result: $RANLIB" >&5
5873 echo "${ECHO_T}$RANLIB" >&6
5874 else
5875   echo "$as_me:$LINENO: result: no" >&5
5876 echo "${ECHO_T}no" >&6
5877 fi
5878
5879 fi
5880 if test -z "$ac_cv_prog_RANLIB"; then
5881   ac_ct_RANLIB=$RANLIB
5882   # Extract the first word of "ranlib", so it can be a program name with args.
5883 set dummy ranlib; ac_word=$2
5884 echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5887   echo $ECHO_N "(cached) $ECHO_C" >&6
5888 else
5889   if test -n "$ac_ct_RANLIB"; then
5890   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5891 else
5892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5894 do
5895   IFS=$as_save_IFS
5896   test -z "$as_dir" && as_dir=.
5897   for ac_exec_ext in '' $ac_executable_extensions; do
5898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5899     ac_cv_prog_ac_ct_RANLIB="ranlib"
5900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901     break 2
5902   fi
5903 done
5904 done
5905
5906   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5907 fi
5908 fi
5909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5910 if test -n "$ac_ct_RANLIB"; then
5911   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5912 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5913 else
5914   echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6
5916 fi
5917
5918   RANLIB=$ac_ct_RANLIB
5919 else
5920   RANLIB="$ac_cv_prog_RANLIB"
5921 fi
5922
5923 if test -n "$ac_tool_prefix"; then
5924   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5925 set dummy ${ac_tool_prefix}strip; ac_word=$2
5926 echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5928 if test "${ac_cv_prog_STRIP+set}" = set; then
5929   echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931   if test -n "$STRIP"; then
5932   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939   for ac_exec_ext in '' $ac_executable_extensions; do
5940   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946 done
5947
5948 fi
5949 fi
5950 STRIP=$ac_cv_prog_STRIP
5951 if test -n "$STRIP"; then
5952   echo "$as_me:$LINENO: result: $STRIP" >&5
5953 echo "${ECHO_T}$STRIP" >&6
5954 else
5955   echo "$as_me:$LINENO: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5957 fi
5958
5959 fi
5960 if test -z "$ac_cv_prog_STRIP"; then
5961   ac_ct_STRIP=$STRIP
5962   # Extract the first word of "strip", so it can be a program name with args.
5963 set dummy strip; ac_word=$2
5964 echo "$as_me:$LINENO: checking for $ac_word" >&5
5965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5966 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969   if test -n "$ac_ct_STRIP"; then
5970   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5971 else
5972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 for as_dir in $PATH
5974 do
5975   IFS=$as_save_IFS
5976   test -z "$as_dir" && as_dir=.
5977   for ac_exec_ext in '' $ac_executable_extensions; do
5978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5979     ac_cv_prog_ac_ct_STRIP="strip"
5980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981     break 2
5982   fi
5983 done
5984 done
5985
5986   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5987 fi
5988 fi
5989 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5990 if test -n "$ac_ct_STRIP"; then
5991   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5992 echo "${ECHO_T}$ac_ct_STRIP" >&6
5993 else
5994   echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
5996 fi
5997
5998   STRIP=$ac_ct_STRIP
5999 else
6000   STRIP="$ac_cv_prog_STRIP"
6001 fi
6002
6003
6004 old_CC="$CC"
6005 old_CFLAGS="$CFLAGS"
6006
6007 # Set sane defaults for various variables
6008 test -z "$AR" && AR=ar
6009 test -z "$AR_FLAGS" && AR_FLAGS=cru
6010 test -z "$AS" && AS=as
6011 test -z "$CC" && CC=cc
6012 test -z "$LTCC" && LTCC=$CC
6013 test -z "$DLLTOOL" && DLLTOOL=dlltool
6014 test -z "$LD" && LD=ld
6015 test -z "$LN_S" && LN_S="ln -s"
6016 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6017 test -z "$NM" && NM=nm
6018 test -z "$SED" && SED=sed
6019 test -z "$OBJDUMP" && OBJDUMP=objdump
6020 test -z "$RANLIB" && RANLIB=:
6021 test -z "$STRIP" && STRIP=:
6022 test -z "$ac_objext" && ac_objext=o
6023
6024 # Determine commands to create old-style static archives.
6025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6026 old_postinstall_cmds='chmod 644 $oldlib'
6027 old_postuninstall_cmds=
6028
6029 if test -n "$RANLIB"; then
6030   case $host_os in
6031   openbsd*)
6032     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6033     ;;
6034   *)
6035     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6036     ;;
6037   esac
6038   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6039 fi
6040
6041 # Only perform the check for file, if the check method requires it
6042 case $deplibs_check_method in
6043 file_magic*)
6044   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6045     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6046 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6047 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   case $MAGIC_CMD in
6051 [\\/*] |  ?:[\\/]*)
6052   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6053   ;;
6054 *)
6055   lt_save_MAGIC_CMD="$MAGIC_CMD"
6056   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6057   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6058   for ac_dir in $ac_dummy; do
6059     IFS="$lt_save_ifs"
6060     test -z "$ac_dir" && ac_dir=.
6061     if test -f $ac_dir/${ac_tool_prefix}file; then
6062       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6063       if test -n "$file_magic_test_file"; then
6064         case $deplibs_check_method in
6065         "file_magic "*)
6066           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6067           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6068           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6069             $EGREP "$file_magic_regex" > /dev/null; then
6070             :
6071           else
6072             cat <<EOF 1>&2
6073
6074 *** Warning: the command libtool uses to detect shared libraries,
6075 *** $file_magic_cmd, produces output that libtool cannot recognize.
6076 *** The result is that libtool may fail to recognize shared libraries
6077 *** as such.  This will affect the creation of libtool libraries that
6078 *** depend on shared libraries, but programs linked with such libtool
6079 *** libraries will work regardless of this problem.  Nevertheless, you
6080 *** may want to report the problem to your system manager and/or to
6081 *** bug-libtool@gnu.org
6082
6083 EOF
6084           fi ;;
6085         esac
6086       fi
6087       break
6088     fi
6089   done
6090   IFS="$lt_save_ifs"
6091   MAGIC_CMD="$lt_save_MAGIC_CMD"
6092   ;;
6093 esac
6094 fi
6095
6096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6097 if test -n "$MAGIC_CMD"; then
6098   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6099 echo "${ECHO_T}$MAGIC_CMD" >&6
6100 else
6101   echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6
6103 fi
6104
6105 if test -z "$lt_cv_path_MAGIC_CMD"; then
6106   if test -n "$ac_tool_prefix"; then
6107     echo "$as_me:$LINENO: checking for file" >&5
6108 echo $ECHO_N "checking for file... $ECHO_C" >&6
6109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   case $MAGIC_CMD in
6113 [\\/*] |  ?:[\\/]*)
6114   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6115   ;;
6116 *)
6117   lt_save_MAGIC_CMD="$MAGIC_CMD"
6118   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6119   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6120   for ac_dir in $ac_dummy; do
6121     IFS="$lt_save_ifs"
6122     test -z "$ac_dir" && ac_dir=.
6123     if test -f $ac_dir/file; then
6124       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6125       if test -n "$file_magic_test_file"; then
6126         case $deplibs_check_method in
6127         "file_magic "*)
6128           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6129           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6130           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6131             $EGREP "$file_magic_regex" > /dev/null; then
6132             :
6133           else
6134             cat <<EOF 1>&2
6135
6136 *** Warning: the command libtool uses to detect shared libraries,
6137 *** $file_magic_cmd, produces output that libtool cannot recognize.
6138 *** The result is that libtool may fail to recognize shared libraries
6139 *** as such.  This will affect the creation of libtool libraries that
6140 *** depend on shared libraries, but programs linked with such libtool
6141 *** libraries will work regardless of this problem.  Nevertheless, you
6142 *** may want to report the problem to your system manager and/or to
6143 *** bug-libtool@gnu.org
6144
6145 EOF
6146           fi ;;
6147         esac
6148       fi
6149       break
6150     fi
6151   done
6152   IFS="$lt_save_ifs"
6153   MAGIC_CMD="$lt_save_MAGIC_CMD"
6154   ;;
6155 esac
6156 fi
6157
6158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6159 if test -n "$MAGIC_CMD"; then
6160   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6161 echo "${ECHO_T}$MAGIC_CMD" >&6
6162 else
6163   echo "$as_me:$LINENO: result: no" >&5
6164 echo "${ECHO_T}no" >&6
6165 fi
6166
6167   else
6168     MAGIC_CMD=:
6169   fi
6170 fi
6171
6172   fi
6173   ;;
6174 esac
6175
6176 enable_dlopen=no
6177 enable_win32_dll=no
6178
6179 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6180 if test "${enable_libtool_lock+set}" = set; then
6181   enableval="$enable_libtool_lock"
6182
6183 fi;
6184 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6185
6186
6187 # Check whether --with-pic or --without-pic was given.
6188 if test "${with_pic+set}" = set; then
6189   withval="$with_pic"
6190   pic_mode="$withval"
6191 else
6192   pic_mode=default
6193 fi;
6194 test -z "$pic_mode" && pic_mode=default
6195
6196 # Use C for the default configuration in the libtool script
6197 tagname=
6198 lt_save_CC="$CC"
6199 ac_ext=c
6200 ac_cpp='$CPP $CPPFLAGS'
6201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6204
6205
6206 # Source file extension for C test sources.
6207 ac_ext=c
6208
6209 # Object file extension for compiled C test sources.
6210 objext=o
6211 objext=$objext
6212
6213 # Code to be used in simple compile tests
6214 lt_simple_compile_test_code="int some_variable = 0;\n"
6215
6216 # Code to be used in simple link tests
6217 lt_simple_link_test_code='int main(){return(0);}\n'
6218
6219
6220 # If no C compiler was specified, use CC.
6221 LTCC=${LTCC-"$CC"}
6222
6223 # Allow CC to be a program name with arguments.
6224 compiler=$CC
6225
6226
6227 #
6228 # Check for any special shared library compilation flags.
6229 #
6230 lt_prog_cc_shlib=
6231 if test "$GCC" = no; then
6232   case $host_os in
6233   sco3.2v5*)
6234     lt_prog_cc_shlib='-belf'
6235     ;;
6236   esac
6237 fi
6238 if test -n "$lt_prog_cc_shlib"; then
6239   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6240 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6241   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6242   else
6243     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6244 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6245     lt_cv_prog_cc_can_build_shared=no
6246   fi
6247 fi
6248
6249
6250 #
6251 # Check to make sure the static flag actually works.
6252 #
6253 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6254 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6255 if test "${lt_prog_compiler_static_works+set}" = set; then
6256   echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258   lt_prog_compiler_static_works=no
6259    save_LDFLAGS="$LDFLAGS"
6260    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6261    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6262    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6263      # The compiler can only warn and ignore the option if not recognized
6264      # So say no if there are warnings
6265      if test -s conftest.err; then
6266        # Append any errors to the config.log.
6267        cat conftest.err 1>&5
6268      else
6269        lt_prog_compiler_static_works=yes
6270      fi
6271    fi
6272    $rm conftest*
6273    LDFLAGS="$save_LDFLAGS"
6274
6275 fi
6276 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6277 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6278
6279 if test x"$lt_prog_compiler_static_works" = xyes; then
6280     :
6281 else
6282     lt_prog_compiler_static=
6283 fi
6284
6285
6286
6287
6288 lt_prog_compiler_no_builtin_flag=
6289
6290 if test "$GCC" = yes; then
6291   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6292
6293
6294 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6295 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6296 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   lt_cv_prog_compiler_rtti_exceptions=no
6300   ac_outfile=conftest.$ac_objext
6301    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6302    lt_compiler_flag="-fno-rtti -fno-exceptions"
6303    # Insert the option either (1) after the last *FLAGS variable, or
6304    # (2) before a word containing "conftest.", or (3) at the end.
6305    # Note that $ac_compile itself does not contain backslashes and begins
6306    # with a dollar sign (not a hyphen), so the echo should work correctly.
6307    # The option is referenced via a variable to avoid confusing sed.
6308    lt_compile=`echo "$ac_compile" | $SED \
6309    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6310    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6311    -e 's:$: $lt_compiler_flag:'`
6312    (eval echo "\"\$as_me:6312: $lt_compile\"" >&5)
6313    (eval "$lt_compile" 2>conftest.err)
6314    ac_status=$?
6315    cat conftest.err >&5
6316    echo "$as_me:6316: \$? = $ac_status" >&5
6317    if (exit $ac_status) && test -s "$ac_outfile"; then
6318      # The compiler can only warn and ignore the option if not recognized
6319      # So say no if there are warnings
6320      if test ! -s conftest.err; then
6321        lt_cv_prog_compiler_rtti_exceptions=yes
6322      fi
6323    fi
6324    $rm conftest*
6325
6326 fi
6327 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6328 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6329
6330 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6331     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6332 else
6333     :
6334 fi
6335
6336 fi
6337
6338 lt_prog_compiler_wl=
6339 lt_prog_compiler_pic=
6340 lt_prog_compiler_static=
6341
6342 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6343 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6344
6345   if test "$GCC" = yes; then
6346     lt_prog_compiler_wl='-Wl,'
6347     lt_prog_compiler_static='-static'
6348
6349     case $host_os in
6350       aix*)
6351       # All AIX code is PIC.
6352       if test "$host_cpu" = ia64; then
6353         # AIX 5 now supports IA64 processor
6354         lt_prog_compiler_static='-Bstatic'
6355       fi
6356       ;;
6357
6358     amigaos*)
6359       # FIXME: we need at least 68020 code to build shared libraries, but
6360       # adding the `-m68020' flag to GCC prevents building anything better,
6361       # like `-m68040'.
6362       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6363       ;;
6364
6365     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6366       # PIC is the default for these OSes.
6367       ;;
6368
6369     mingw* | pw32* | os2*)
6370       # This hack is so that the source file can tell whether it is being
6371       # built for inclusion in a dll (and should export symbols for example).
6372       lt_prog_compiler_pic='-DDLL_EXPORT'
6373       ;;
6374
6375     darwin* | rhapsody*)
6376       # PIC is the default on this platform
6377       # Common symbols not allowed in MH_DYLIB files
6378       lt_prog_compiler_pic='-fno-common'
6379       ;;
6380
6381     msdosdjgpp*)
6382       # Just because we use GCC doesn't mean we suddenly get shared libraries
6383       # on systems that don't support them.
6384       lt_prog_compiler_can_build_shared=no
6385       enable_shared=no
6386       ;;
6387
6388     sysv4*MP*)
6389       if test -d /usr/nec; then
6390         lt_prog_compiler_pic=-Kconform_pic
6391       fi
6392       ;;
6393
6394     hpux*)
6395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6396       # not for PA HP-UX.
6397       case "$host_cpu" in
6398       hppa*64*|ia64*)
6399         # +Z the default
6400         ;;
6401       *)
6402         lt_prog_compiler_pic='-fPIC'
6403         ;;
6404       esac
6405       ;;
6406
6407     *)
6408       lt_prog_compiler_pic='-fPIC'
6409       ;;
6410     esac
6411   else
6412     # PORTME Check for flag to pass linker flags through the system compiler.
6413     case $host_os in
6414     aix*)
6415       lt_prog_compiler_wl='-Wl,'
6416       if test "$host_cpu" = ia64; then
6417         # AIX 5 now supports IA64 processor
6418         lt_prog_compiler_static='-Bstatic'
6419       else
6420         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6421       fi
6422       ;;
6423
6424     mingw* | pw32* | os2*)
6425       # This hack is so that the source file can tell whether it is being
6426       # built for inclusion in a dll (and should export symbols for example).
6427       lt_prog_compiler_pic='-DDLL_EXPORT'
6428       ;;
6429
6430     hpux9* | hpux10* | hpux11*)
6431       lt_prog_compiler_wl='-Wl,'
6432       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6433       # not for PA HP-UX.
6434       case "$host_cpu" in
6435       hppa*64*|ia64*)
6436         # +Z the default
6437         ;;
6438       *)
6439         lt_prog_compiler_pic='+Z'
6440         ;;
6441       esac
6442       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6443       lt_prog_compiler_static='${wl}-a ${wl}archive'
6444       ;;
6445
6446     irix5* | irix6* | nonstopux*)
6447       lt_prog_compiler_wl='-Wl,'
6448       # PIC (with -KPIC) is the default.
6449       lt_prog_compiler_static='-non_shared'
6450       ;;
6451
6452     newsos6)
6453       lt_prog_compiler_pic='-KPIC'
6454       lt_prog_compiler_static='-Bstatic'
6455       ;;
6456
6457     linux*)
6458       case $CC in
6459       icc* | ecc*)
6460         lt_prog_compiler_wl='-Wl,'
6461         lt_prog_compiler_pic='-KPIC'
6462         lt_prog_compiler_static='-static'
6463         ;;
6464       ccc*)
6465         lt_prog_compiler_wl='-Wl,'
6466         # All Alpha code is PIC.
6467         lt_prog_compiler_static='-non_shared'
6468         ;;
6469       esac
6470       ;;
6471
6472     osf3* | osf4* | osf5*)
6473       lt_prog_compiler_wl='-Wl,'
6474       # All OSF/1 code is PIC.
6475       lt_prog_compiler_static='-non_shared'
6476       ;;
6477
6478     sco3.2v5*)
6479       lt_prog_compiler_pic='-Kpic'
6480       lt_prog_compiler_static='-dn'
6481       ;;
6482
6483     solaris*)
6484       lt_prog_compiler_wl='-Wl,'
6485       lt_prog_compiler_pic='-KPIC'
6486       lt_prog_compiler_static='-Bstatic'
6487       ;;
6488
6489     sunos4*)
6490       lt_prog_compiler_wl='-Qoption ld '
6491       lt_prog_compiler_pic='-PIC'
6492       lt_prog_compiler_static='-Bstatic'
6493       ;;
6494
6495     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6496       lt_prog_compiler_wl='-Wl,'
6497       lt_prog_compiler_pic='-KPIC'
6498       lt_prog_compiler_static='-Bstatic'
6499       ;;
6500
6501     sysv4*MP*)
6502       if test -d /usr/nec ;then
6503         lt_prog_compiler_pic='-Kconform_pic'
6504         lt_prog_compiler_static='-Bstatic'
6505       fi
6506       ;;
6507
6508     uts4*)
6509       lt_prog_compiler_pic='-pic'
6510       lt_prog_compiler_static='-Bstatic'
6511       ;;
6512
6513     *)
6514       lt_prog_compiler_can_build_shared=no
6515       ;;
6516     esac
6517   fi
6518
6519 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6520 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6521
6522 #
6523 # Check to make sure the PIC flag actually works.
6524 #
6525 if test -n "$lt_prog_compiler_pic"; then
6526
6527 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6528 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6529 if test "${lt_prog_compiler_pic_works+set}" = set; then
6530   echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532   lt_prog_compiler_pic_works=no
6533   ac_outfile=conftest.$ac_objext
6534    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6535    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6536    # Insert the option either (1) after the last *FLAGS variable, or
6537    # (2) before a word containing "conftest.", or (3) at the end.
6538    # Note that $ac_compile itself does not contain backslashes and begins
6539    # with a dollar sign (not a hyphen), so the echo should work correctly.
6540    # The option is referenced via a variable to avoid confusing sed.
6541    lt_compile=`echo "$ac_compile" | $SED \
6542    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6543    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6544    -e 's:$: $lt_compiler_flag:'`
6545    (eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
6546    (eval "$lt_compile" 2>conftest.err)
6547    ac_status=$?
6548    cat conftest.err >&5
6549    echo "$as_me:6549: \$? = $ac_status" >&5
6550    if (exit $ac_status) && test -s "$ac_outfile"; then
6551      # The compiler can only warn and ignore the option if not recognized
6552      # So say no if there are warnings
6553      if test ! -s conftest.err; then
6554        lt_prog_compiler_pic_works=yes
6555      fi
6556    fi
6557    $rm conftest*
6558
6559 fi
6560 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6561 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6562
6563 if test x"$lt_prog_compiler_pic_works" = xyes; then
6564     case $lt_prog_compiler_pic in
6565      "" | " "*) ;;
6566      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6567      esac
6568 else
6569     lt_prog_compiler_pic=
6570      lt_prog_compiler_can_build_shared=no
6571 fi
6572
6573 fi
6574 case "$host_os" in
6575   # For platforms which do not support PIC, -DPIC is meaningless:
6576   *djgpp*)
6577     lt_prog_compiler_pic=
6578     ;;
6579   *)
6580     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6581     ;;
6582 esac
6583
6584 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6585 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6586 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6587   echo $ECHO_N "(cached) $ECHO_C" >&6
6588 else
6589   lt_cv_prog_compiler_c_o=no
6590    $rm -r conftest 2>/dev/null
6591    mkdir conftest
6592    cd conftest
6593    mkdir out
6594    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6595
6596    lt_compiler_flag="-o out/conftest2.$ac_objext"
6597    # Insert the option either (1) after the last *FLAGS variable, or
6598    # (2) before a word containing "conftest.", or (3) at the end.
6599    # Note that $ac_compile itself does not contain backslashes and begins
6600    # with a dollar sign (not a hyphen), so the echo should work correctly.
6601    lt_compile=`echo "$ac_compile" | $SED \
6602    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6603    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6604    -e 's:$: $lt_compiler_flag:'`
6605    (eval echo "\"\$as_me:6605: $lt_compile\"" >&5)
6606    (eval "$lt_compile" 2>out/conftest.err)
6607    ac_status=$?
6608    cat out/conftest.err >&5
6609    echo "$as_me:6609: \$? = $ac_status" >&5
6610    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6611    then
6612      # The compiler can only warn and ignore the option if not recognized
6613      # So say no if there are warnings
6614      if test ! -s out/conftest.err; then
6615        lt_cv_prog_compiler_c_o=yes
6616      fi
6617    fi
6618    chmod u+w .
6619    $rm conftest*
6620    # SGI C++ compiler will create directory out/ii_files/ for
6621    # template instantiation
6622    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6623    $rm out/* && rmdir out
6624    cd ..
6625    rmdir conftest
6626    $rm conftest*
6627
6628 fi
6629 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6631
6632
6633 hard_links="nottested"
6634 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6635   # do not overwrite the value of need_locks provided by the user
6636   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6637 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6638   hard_links=yes
6639   $rm conftest*
6640   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6641   touch conftest.a
6642   ln conftest.a conftest.b 2>&5 || hard_links=no
6643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6644   echo "$as_me:$LINENO: result: $hard_links" >&5
6645 echo "${ECHO_T}$hard_links" >&6
6646   if test "$hard_links" = no; then
6647     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6648 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6649     need_locks=warn
6650   fi
6651 else
6652   need_locks=no
6653 fi
6654
6655 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6656 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6657
6658   runpath_var=
6659   allow_undefined_flag=
6660   enable_shared_with_static_runtimes=no
6661   archive_cmds=
6662   archive_expsym_cmds=
6663   old_archive_From_new_cmds=
6664   old_archive_from_expsyms_cmds=
6665   export_dynamic_flag_spec=
6666   whole_archive_flag_spec=
6667   thread_safe_flag_spec=
6668   hardcode_libdir_flag_spec=
6669   hardcode_libdir_flag_spec_ld=
6670   hardcode_libdir_separator=
6671   hardcode_direct=no
6672   hardcode_minus_L=no
6673   hardcode_shlibpath_var=unsupported
6674   link_all_deplibs=unknown
6675   hardcode_automatic=no
6676   module_cmds=
6677   module_expsym_cmds=
6678   always_export_symbols=no
6679   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6680   # include_expsyms should be a list of space-separated symbols to be *always*
6681   # included in the symbol list
6682   include_expsyms=
6683   # exclude_expsyms can be an extended regexp of symbols to exclude
6684   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6685   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6686   # as well as any symbol that contains `d'.
6687   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6688   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6689   # platforms (ab)use it in PIC code, but their linkers get confused if
6690   # the symbol is explicitly referenced.  Since portable code cannot
6691   # rely on this symbol name, it's probably fine to never include it in
6692   # preloaded symbol tables.
6693   extract_expsyms_cmds=
6694
6695   case $host_os in
6696   cygwin* | mingw* | pw32*)
6697     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6698     # When not using gcc, we currently assume that we are using
6699     # Microsoft Visual C++.
6700     if test "$GCC" != yes; then
6701       with_gnu_ld=no
6702     fi
6703     ;;
6704   openbsd*)
6705     with_gnu_ld=no
6706     ;;
6707   esac
6708
6709   ld_shlibs=yes
6710   if test "$with_gnu_ld" = yes; then
6711     # If archive_cmds runs LD, not CC, wlarc should be empty
6712     wlarc='${wl}'
6713
6714     # See if GNU ld supports shared libraries.
6715     case $host_os in
6716     aix3* | aix4* | aix5*)
6717       # On AIX/PPC, the GNU linker is very broken
6718       if test "$host_cpu" != ia64; then
6719         ld_shlibs=no
6720         cat <<EOF 1>&2
6721
6722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6723 *** to be unable to reliably create shared libraries on AIX.
6724 *** Therefore, libtool is disabling shared libraries support.  If you
6725 *** really care for shared libraries, you may want to modify your PATH
6726 *** so that a non-GNU linker is found, and then restart.
6727
6728 EOF
6729       fi
6730       ;;
6731
6732     amigaos*)
6733       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)'
6734       hardcode_libdir_flag_spec='-L$libdir'
6735       hardcode_minus_L=yes
6736
6737       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6738       # that the semantics of dynamic libraries on AmigaOS, at least up
6739       # to version 4, is to share data among multiple programs linked
6740       # with the same dynamic library.  Since this doesn't match the
6741       # behavior of shared libraries on other platforms, we can't use
6742       # them.
6743       ld_shlibs=no
6744       ;;
6745
6746     beos*)
6747       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6748         allow_undefined_flag=unsupported
6749         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6750         # support --undefined.  This deserves some investigation.  FIXME
6751         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752       else
6753         ld_shlibs=no
6754       fi
6755       ;;
6756
6757     cygwin* | mingw* | pw32*)
6758       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6759       # as there is no search path for DLLs.
6760       hardcode_libdir_flag_spec='-L$libdir'
6761       allow_undefined_flag=unsupported
6762       always_export_symbols=no
6763       enable_shared_with_static_runtimes=yes
6764       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6765
6766       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6767         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6768         # If the export-symbols file already is a .def file (1st line
6769         # is EXPORTS), use it as is; otherwise, prepend...
6770         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6771           cp $export_symbols $output_objdir/$soname.def;
6772         else
6773           echo EXPORTS > $output_objdir/$soname.def;
6774           cat $export_symbols >> $output_objdir/$soname.def;
6775         fi~
6776         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6777       else
6778         ld_shlibs=no
6779       fi
6780       ;;
6781
6782     netbsd*)
6783       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6784         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6785         wlarc=
6786       else
6787         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6788         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6789       fi
6790       ;;
6791
6792     solaris* | sysv5*)
6793       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6794         ld_shlibs=no
6795         cat <<EOF 1>&2
6796
6797 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6798 *** create shared libraries on Solaris systems.  Therefore, libtool
6799 *** is disabling shared libraries support.  We urge you to upgrade GNU
6800 *** binutils to release 2.9.1 or newer.  Another option is to modify
6801 *** your PATH or compiler configuration so that the native linker is
6802 *** used, and then restart.
6803
6804 EOF
6805       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6806         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6807         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6808       else
6809         ld_shlibs=no
6810       fi
6811       ;;
6812
6813     sunos4*)
6814       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6815       wlarc=
6816       hardcode_direct=yes
6817       hardcode_shlibpath_var=no
6818       ;;
6819
6820   linux*)
6821     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6822         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6823         archive_cmds="$tmp_archive_cmds"
6824       supports_anon_versioning=no
6825       case `$LD -v 2>/dev/null` in
6826         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6827         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6828         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6829         *\ 2.11.*) ;; # other 2.11 versions
6830         *) supports_anon_versioning=yes ;;
6831       esac
6832       if test $supports_anon_versioning = yes; then
6833         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6834 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6835 $echo "local: *; };" >> $output_objdir/$libname.ver~
6836         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6837       else
6838         archive_expsym_cmds="$tmp_archive_cmds"
6839       fi
6840     else
6841       ld_shlibs=no
6842     fi
6843     ;;
6844
6845     *)
6846       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6848         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6849       else
6850         ld_shlibs=no
6851       fi
6852       ;;
6853     esac
6854
6855     if test "$ld_shlibs" = yes; then
6856       runpath_var=LD_RUN_PATH
6857       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6858       export_dynamic_flag_spec='${wl}--export-dynamic'
6859       # ancient GNU ld didn't support --whole-archive et. al.
6860       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6861         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6862       else
6863         whole_archive_flag_spec=
6864       fi
6865     fi
6866   else
6867     # PORTME fill in a description of your system's linker (not GNU ld)
6868     case $host_os in
6869     aix3*)
6870       allow_undefined_flag=unsupported
6871       always_export_symbols=yes
6872       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'
6873       # Note: this linker hardcodes the directories in LIBPATH if there
6874       # are no directories specified by -L.
6875       hardcode_minus_L=yes
6876       if test "$GCC" = yes && test -z "$link_static_flag"; then
6877         # Neither direct hardcoding nor static linking is supported with a
6878         # broken collect2.
6879         hardcode_direct=unsupported
6880       fi
6881       ;;
6882
6883     aix4* | aix5*)
6884       if test "$host_cpu" = ia64; then
6885         # On IA64, the linker does run time linking by default, so we don't
6886         # have to do anything special.
6887         aix_use_runtimelinking=no
6888         exp_sym_flag='-Bexport'
6889         no_entry_flag=""
6890       else
6891         # If we're using GNU nm, then we don't want the "-C" option.
6892         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6893         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6894           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'
6895         else
6896           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'
6897         fi
6898         aix_use_runtimelinking=no
6899
6900         # Test if we are trying to use run time linking or normal
6901         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6902         # need to do runtime linking.
6903         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6904           for ld_flag in $LDFLAGS; do
6905           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6906             aix_use_runtimelinking=yes
6907             break
6908           fi
6909           done
6910         esac
6911
6912         exp_sym_flag='-bexport'
6913         no_entry_flag='-bnoentry'
6914       fi
6915
6916       # When large executables or shared objects are built, AIX ld can
6917       # have problems creating the table of contents.  If linking a library
6918       # or program results in "error TOC overflow" add -mminimal-toc to
6919       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6920       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6921
6922       archive_cmds=''
6923       hardcode_direct=yes
6924       hardcode_libdir_separator=':'
6925       link_all_deplibs=yes
6926
6927       if test "$GCC" = yes; then
6928         case $host_os in aix4.012|aix4.012.*)
6929         # We only want to do this on AIX 4.2 and lower, the check
6930         # below for broken collect2 doesn't work under 4.3+
6931           collect2name=`${CC} -print-prog-name=collect2`
6932           if test -f "$collect2name" && \
6933            strings "$collect2name" | grep resolve_lib_name >/dev/null
6934           then
6935           # We have reworked collect2
6936           hardcode_direct=yes
6937           else
6938           # We have old collect2
6939           hardcode_direct=unsupported
6940           # It fails to find uninstalled libraries when the uninstalled
6941           # path is not listed in the libpath.  Setting hardcode_minus_L
6942           # to unsupported forces relinking
6943           hardcode_minus_L=yes
6944           hardcode_libdir_flag_spec='-L$libdir'
6945           hardcode_libdir_separator=
6946           fi
6947         esac
6948         shared_flag='-shared'
6949       else
6950         # not using gcc
6951         if test "$host_cpu" = ia64; then
6952         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6953         # chokes on -Wl,-G. The following line is correct:
6954           shared_flag='-G'
6955         else
6956         if test "$aix_use_runtimelinking" = yes; then
6957             shared_flag='${wl}-G'
6958           else
6959             shared_flag='${wl}-bM:SRE'
6960         fi
6961         fi
6962       fi
6963
6964       # It seems that -bexpall does not export symbols beginning with
6965       # underscore (_), so it is better to generate a list of symbols to export.
6966       always_export_symbols=yes
6967       if test "$aix_use_runtimelinking" = yes; then
6968         # Warning - without using the other runtime loading flags (-brtl),
6969         # -berok will link without error, but may produce a broken library.
6970         allow_undefined_flag='-berok'
6971        # Determine the default libpath from the value encoded in an empty executable.
6972        cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h.  */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h.  */
6978
6979 int
6980 main ()
6981 {
6982
6983   ;
6984   return 0;
6985 }
6986 _ACEOF
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989   (eval $ac_link) 2>conftest.er1
6990   ac_status=$?
6991   grep -v '^ *+' conftest.er1 >conftest.err
6992   rm -f conftest.er1
6993   cat conftest.err >&5
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); } &&
6996          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998   (eval $ac_try) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; } &&
7002          { ac_try='test -s conftest$ac_exeext'
7003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004   (eval $ac_try) 2>&5
7005   ac_status=$?
7006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007   (exit $ac_status); }; }; then
7008
7009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7010 }'`
7011 # Check for a 64-bit object if we didn't find anything.
7012 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; }
7013 }'`; fi
7014 else
7015   echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7017
7018 fi
7019 rm -f conftest.err conftest.$ac_objext \
7020       conftest$ac_exeext conftest.$ac_ext
7021 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7022
7023        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7024         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7025        else
7026         if test "$host_cpu" = ia64; then
7027           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7028           allow_undefined_flag="-z nodefs"
7029           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7030         else
7031          # Determine the default libpath from the value encoded in an empty executable.
7032          cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h.  */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h.  */
7038
7039 int
7040 main ()
7041 {
7042
7043   ;
7044   return 0;
7045 }
7046 _ACEOF
7047 rm -f conftest.$ac_objext conftest$ac_exeext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7049   (eval $ac_link) 2>conftest.er1
7050   ac_status=$?
7051   grep -v '^ *+' conftest.er1 >conftest.err
7052   rm -f conftest.er1
7053   cat conftest.err >&5
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); } &&
7056          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; } &&
7062          { ac_try='test -s conftest$ac_exeext'
7063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064   (eval $ac_try) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; }; then
7068
7069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7070 }'`
7071 # Check for a 64-bit object if we didn't find anything.
7072 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; }
7073 }'`; fi
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078 fi
7079 rm -f conftest.err conftest.$ac_objext \
7080       conftest$ac_exeext conftest.$ac_ext
7081 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7082
7083          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7084           # Warning - without using the other run time loading flags,
7085           # -berok will link without error, but may produce a broken library.
7086           no_undefined_flag=' ${wl}-bernotok'
7087           allow_undefined_flag=' ${wl}-berok'
7088           # -bexpall does not export symbols beginning with underscore (_)
7089           always_export_symbols=yes
7090           # Exported symbols can be pulled into shared objects from archives
7091           whole_archive_flag_spec=' '
7092           archive_cmds_need_lc=yes
7093           # This is similar to how AIX traditionally builds it's shared libraries.
7094           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7095         fi
7096       fi
7097       ;;
7098
7099     amigaos*)
7100       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)'
7101       hardcode_libdir_flag_spec='-L$libdir'
7102       hardcode_minus_L=yes
7103       # see comment about different semantics on the GNU ld section
7104       ld_shlibs=no
7105       ;;
7106
7107     bsdi4*)
7108       export_dynamic_flag_spec=-rdynamic
7109       ;;
7110
7111     cygwin* | mingw* | pw32*)
7112       # When not using gcc, we currently assume that we are using
7113       # Microsoft Visual C++.
7114       # hardcode_libdir_flag_spec is actually meaningless, as there is
7115       # no search path for DLLs.
7116       hardcode_libdir_flag_spec=' '
7117       allow_undefined_flag=unsupported
7118       # Tell ltmain to make .lib files, not .a files.
7119       libext=lib
7120       # Tell ltmain to make .dll files, not .so files.
7121       shrext_cmds=".dll"
7122       # FIXME: Setting linknames here is a bad hack.
7123       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7124       # The linker will automatically build a .lib file if we build a DLL.
7125       old_archive_From_new_cmds='true'
7126       # FIXME: Should let the user specify the lib program.
7127       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7128       fix_srcfile_path='`cygpath -w "$srcfile"`'
7129       enable_shared_with_static_runtimes=yes
7130       ;;
7131
7132     darwin* | rhapsody*)
7133     if test "$GXX" = yes ; then
7134       archive_cmds_need_lc=no
7135       case "$host_os" in
7136       rhapsody* | darwin1.[012])
7137         allow_undefined_flag='-undefined suppress'
7138         ;;
7139       *) # Darwin 1.3 on
7140       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7141         allow_undefined_flag='-flat_namespace -undefined suppress'
7142       else
7143         case ${MACOSX_DEPLOYMENT_TARGET} in
7144           10.[012])
7145             allow_undefined_flag='-flat_namespace -undefined suppress'
7146             ;;
7147           10.*)
7148             allow_undefined_flag='-undefined dynamic_lookup'
7149             ;;
7150         esac
7151       fi
7152         ;;
7153       esac
7154         lt_int_apple_cc_single_mod=no
7155         output_verbose_link_cmd='echo'
7156         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7157           lt_int_apple_cc_single_mod=yes
7158         fi
7159         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7160           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7161         else
7162         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7163       fi
7164       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7165       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7166         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7167           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7168         else
7169           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7170         fi
7171           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}'
7172       hardcode_direct=no
7173       hardcode_automatic=yes
7174       hardcode_shlibpath_var=unsupported
7175       whole_archive_flag_spec='-all_load $convenience'
7176       link_all_deplibs=yes
7177     else
7178       ld_shlibs=no
7179     fi
7180       ;;
7181
7182     dgux*)
7183       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7184       hardcode_libdir_flag_spec='-L$libdir'
7185       hardcode_shlibpath_var=no
7186       ;;
7187
7188     freebsd1*)
7189       ld_shlibs=no
7190       ;;
7191
7192     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7193     # support.  Future versions do this automatically, but an explicit c++rt0.o
7194     # does not break anything, and helps significantly (at the cost of a little
7195     # extra space).
7196     freebsd2.2*)
7197       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7198       hardcode_libdir_flag_spec='-R$libdir'
7199       hardcode_direct=yes
7200       hardcode_shlibpath_var=no
7201       ;;
7202
7203     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7204     freebsd2*)
7205       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7206       hardcode_direct=yes
7207       hardcode_minus_L=yes
7208       hardcode_shlibpath_var=no
7209       ;;
7210
7211     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7212     freebsd* | kfreebsd*-gnu)
7213       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7214       hardcode_libdir_flag_spec='-R$libdir'
7215       hardcode_direct=yes
7216       hardcode_shlibpath_var=no
7217       ;;
7218
7219     hpux9*)
7220       if test "$GCC" = yes; then
7221         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'
7222       else
7223         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'
7224       fi
7225       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7226       hardcode_libdir_separator=:
7227       hardcode_direct=yes
7228
7229       # hardcode_minus_L: Not really in the search PATH,
7230       # but as the default location of the library.
7231       hardcode_minus_L=yes
7232       export_dynamic_flag_spec='${wl}-E'
7233       ;;
7234
7235     hpux10* | hpux11*)
7236       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7237         case "$host_cpu" in
7238         hppa*64*|ia64*)
7239           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7240           ;;
7241         *)
7242           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7243           ;;
7244         esac
7245       else
7246         case "$host_cpu" in
7247         hppa*64*|ia64*)
7248           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7249           ;;
7250         *)
7251           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7252           ;;
7253         esac
7254       fi
7255       if test "$with_gnu_ld" = no; then
7256         case "$host_cpu" in
7257         hppa*64*)
7258           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7259           hardcode_libdir_flag_spec_ld='+b $libdir'
7260           hardcode_libdir_separator=:
7261           hardcode_direct=no
7262           hardcode_shlibpath_var=no
7263           ;;
7264         ia64*)
7265           hardcode_libdir_flag_spec='-L$libdir'
7266           hardcode_direct=no
7267           hardcode_shlibpath_var=no
7268
7269           # hardcode_minus_L: Not really in the search PATH,
7270           # but as the default location of the library.
7271           hardcode_minus_L=yes
7272           ;;
7273         *)
7274           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7275           hardcode_libdir_separator=:
7276           hardcode_direct=yes
7277           export_dynamic_flag_spec='${wl}-E'
7278
7279           # hardcode_minus_L: Not really in the search PATH,
7280           # but as the default location of the library.
7281           hardcode_minus_L=yes
7282           ;;
7283         esac
7284       fi
7285       ;;
7286
7287     irix5* | irix6* | nonstopux*)
7288       if test "$GCC" = yes; then
7289         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'
7290       else
7291         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'
7292         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7293       fi
7294       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7295       hardcode_libdir_separator=:
7296       link_all_deplibs=yes
7297       ;;
7298
7299     netbsd*)
7300       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7301         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7302       else
7303         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7304       fi
7305       hardcode_libdir_flag_spec='-R$libdir'
7306       hardcode_direct=yes
7307       hardcode_shlibpath_var=no
7308       ;;
7309
7310     newsos6)
7311       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7312       hardcode_direct=yes
7313       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314       hardcode_libdir_separator=:
7315       hardcode_shlibpath_var=no
7316       ;;
7317
7318     openbsd*)
7319       hardcode_direct=yes
7320       hardcode_shlibpath_var=no
7321       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7322         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7323         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7324         export_dynamic_flag_spec='${wl}-E'
7325       else
7326        case $host_os in
7327          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7328            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7329            hardcode_libdir_flag_spec='-R$libdir'
7330            ;;
7331          *)
7332            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7333            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7334            ;;
7335        esac
7336       fi
7337       ;;
7338
7339     os2*)
7340       hardcode_libdir_flag_spec='-L$libdir'
7341       hardcode_minus_L=yes
7342       allow_undefined_flag=unsupported
7343       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'
7344       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7345       ;;
7346
7347     osf3*)
7348       if test "$GCC" = yes; then
7349         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7350         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'
7351       else
7352         allow_undefined_flag=' -expect_unresolved \*'
7353         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'
7354       fi
7355       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7356       hardcode_libdir_separator=:
7357       ;;
7358
7359     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7360       if test "$GCC" = yes; then
7361         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7362         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'
7363         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7364       else
7365         allow_undefined_flag=' -expect_unresolved \*'
7366         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'
7367         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7368         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7369
7370         # Both c and cxx compiler support -rpath directly
7371         hardcode_libdir_flag_spec='-rpath $libdir'
7372       fi
7373       hardcode_libdir_separator=:
7374       ;;
7375
7376     sco3.2v5*)
7377       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7378       hardcode_shlibpath_var=no
7379       export_dynamic_flag_spec='${wl}-Bexport'
7380       runpath_var=LD_RUN_PATH
7381       hardcode_runpath_var=yes
7382       ;;
7383
7384     solaris*)
7385       no_undefined_flag=' -z text'
7386       if test "$GCC" = yes; then
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         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7392         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7393         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7394       fi
7395       hardcode_libdir_flag_spec='-R$libdir'
7396       hardcode_shlibpath_var=no
7397       case $host_os in
7398       solaris2.[0-5] | solaris2.[0-5].*) ;;
7399       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7400         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7401       esac
7402       link_all_deplibs=yes
7403       ;;
7404
7405     sunos4*)
7406       if test "x$host_vendor" = xsequent; then
7407         # Use $CC to link under sequent, because it throws in some extra .o
7408         # files that make .init and .fini sections work.
7409         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7410       else
7411         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7412       fi
7413       hardcode_libdir_flag_spec='-L$libdir'
7414       hardcode_direct=yes
7415       hardcode_minus_L=yes
7416       hardcode_shlibpath_var=no
7417       ;;
7418
7419     sysv4)
7420       case $host_vendor in
7421         sni)
7422           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7423           hardcode_direct=yes # is this really true???
7424         ;;
7425         siemens)
7426           ## LD is ld it makes a PLAMLIB
7427           ## CC just makes a GrossModule.
7428           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7429           reload_cmds='$CC -r -o $output$reload_objs'
7430           hardcode_direct=no
7431         ;;
7432         motorola)
7433           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7434           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7435         ;;
7436       esac
7437       runpath_var='LD_RUN_PATH'
7438       hardcode_shlibpath_var=no
7439       ;;
7440
7441     sysv4.3*)
7442       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7443       hardcode_shlibpath_var=no
7444       export_dynamic_flag_spec='-Bexport'
7445       ;;
7446
7447     sysv4*MP*)
7448       if test -d /usr/nec; then
7449         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7450         hardcode_shlibpath_var=no
7451         runpath_var=LD_RUN_PATH
7452         hardcode_runpath_var=yes
7453         ld_shlibs=yes
7454       fi
7455       ;;
7456
7457     sysv4.2uw2*)
7458       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7459       hardcode_direct=yes
7460       hardcode_minus_L=no
7461       hardcode_shlibpath_var=no
7462       hardcode_runpath_var=yes
7463       runpath_var=LD_RUN_PATH
7464       ;;
7465
7466    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7467       no_undefined_flag='${wl}-z ${wl}text'
7468       if test "$GCC" = yes; then
7469         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7470       else
7471         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7472       fi
7473       runpath_var='LD_RUN_PATH'
7474       hardcode_shlibpath_var=no
7475       ;;
7476
7477     sysv5*)
7478       no_undefined_flag=' -z text'
7479       # $CC -shared without GNU ld will not create a library from C++
7480       # object files and a static libstdc++, better avoid it by now
7481       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7482       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7483                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7484       hardcode_libdir_flag_spec=
7485       hardcode_shlibpath_var=no
7486       runpath_var='LD_RUN_PATH'
7487       ;;
7488
7489     uts4*)
7490       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7491       hardcode_libdir_flag_spec='-L$libdir'
7492       hardcode_shlibpath_var=no
7493       ;;
7494
7495     *)
7496       ld_shlibs=no
7497       ;;
7498     esac
7499   fi
7500
7501 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7502 echo "${ECHO_T}$ld_shlibs" >&6
7503 test "$ld_shlibs" = no && can_build_shared=no
7504
7505 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7506 if test "$GCC" = yes; then
7507   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7508 fi
7509
7510 #
7511 # Do we need to explicitly link libc?
7512 #
7513 case "x$archive_cmds_need_lc" in
7514 x|xyes)
7515   # Assume -lc should be added
7516   archive_cmds_need_lc=yes
7517
7518   if test "$enable_shared" = yes && test "$GCC" = yes; then
7519     case $archive_cmds in
7520     *'~'*)
7521       # FIXME: we may have to deal with multi-command sequences.
7522       ;;
7523     '$CC '*)
7524       # Test whether the compiler implicitly links with -lc since on some
7525       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7526       # to ld, don't add -lc before -lgcc.
7527       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7528 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7529       $rm conftest*
7530       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7531
7532       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7533   (eval $ac_compile) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); } 2>conftest.err; then
7537         soname=conftest
7538         lib=conftest
7539         libobjs=conftest.$ac_objext
7540         deplibs=
7541         wl=$lt_prog_compiler_wl
7542         compiler_flags=-v
7543         linker_flags=-v
7544         verstring=
7545         output_objdir=.
7546         libname=conftest
7547         lt_save_allow_undefined_flag=$allow_undefined_flag
7548         allow_undefined_flag=
7549         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7550   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7551   ac_status=$?
7552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553   (exit $ac_status); }
7554         then
7555           archive_cmds_need_lc=no
7556         else
7557           archive_cmds_need_lc=yes
7558         fi
7559         allow_undefined_flag=$lt_save_allow_undefined_flag
7560       else
7561         cat conftest.err 1>&5
7562       fi
7563       $rm conftest*
7564       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7565 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7566       ;;
7567     esac
7568   fi
7569   ;;
7570 esac
7571
7572 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7573 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7574 library_names_spec=
7575 libname_spec='lib$name'
7576 soname_spec=
7577 shrext_cmds=".so"
7578 postinstall_cmds=
7579 postuninstall_cmds=
7580 finish_cmds=
7581 finish_eval=
7582 shlibpath_var=
7583 shlibpath_overrides_runpath=unknown
7584 version_type=none
7585 dynamic_linker="$host_os ld.so"
7586 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7587 if test "$GCC" = yes; then
7588   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7589   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7590     # if the path contains ";" then we assume it to be the separator
7591     # otherwise default to the standard path separator (i.e. ":") - it is
7592     # assumed that no part of a normal pathname contains ";" but that should
7593     # okay in the real world where ";" in dirpaths is itself problematic.
7594     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7595   else
7596     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7597   fi
7598 else
7599   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7600 fi
7601 need_lib_prefix=unknown
7602 hardcode_into_libs=no
7603
7604 # when you set need_version to no, make sure it does not cause -set_version
7605 # flags to be left without arguments
7606 need_version=unknown
7607
7608 case $host_os in
7609 aix3*)
7610   version_type=linux
7611   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7612   shlibpath_var=LIBPATH
7613
7614   # AIX 3 has no versioning support, so we append a major version to the name.
7615   soname_spec='${libname}${release}${shared_ext}$major'
7616   ;;
7617
7618 aix4* | aix5*)
7619   version_type=linux
7620   need_lib_prefix=no
7621   need_version=no
7622   hardcode_into_libs=yes
7623   if test "$host_cpu" = ia64; then
7624     # AIX 5 supports IA64
7625     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7626     shlibpath_var=LD_LIBRARY_PATH
7627   else
7628     # With GCC up to 2.95.x, collect2 would create an import file
7629     # for dependence libraries.  The import file would start with
7630     # the line `#! .'.  This would cause the generated library to
7631     # depend on `.', always an invalid library.  This was fixed in
7632     # development snapshots of GCC prior to 3.0.
7633     case $host_os in
7634       aix4 | aix4.[01] | aix4.[01].*)
7635       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7636            echo ' yes '
7637            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7638         :
7639       else
7640         can_build_shared=no
7641       fi
7642       ;;
7643     esac
7644     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7645     # soname into executable. Probably we can add versioning support to
7646     # collect2, so additional links can be useful in future.
7647     if test "$aix_use_runtimelinking" = yes; then
7648       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7649       # instead of lib<name>.a to let people know that these are not
7650       # typical AIX shared libraries.
7651       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7652     else
7653       # We preserve .a as extension for shared libraries through AIX4.2
7654       # and later when we are not doing run time linking.
7655       library_names_spec='${libname}${release}.a $libname.a'
7656       soname_spec='${libname}${release}${shared_ext}$major'
7657     fi
7658     shlibpath_var=LIBPATH
7659   fi
7660   ;;
7661
7662 amigaos*)
7663   library_names_spec='$libname.ixlibrary $libname.a'
7664   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7665   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'
7666   ;;
7667
7668 beos*)
7669   library_names_spec='${libname}${shared_ext}'
7670   dynamic_linker="$host_os ld.so"
7671   shlibpath_var=LIBRARY_PATH
7672   ;;
7673
7674 bsdi4*)
7675   version_type=linux
7676   need_version=no
7677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678   soname_spec='${libname}${release}${shared_ext}$major'
7679   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7680   shlibpath_var=LD_LIBRARY_PATH
7681   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7682   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7683   # the default ld.so.conf also contains /usr/contrib/lib and
7684   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7685   # libtool to hard-code these into programs
7686   ;;
7687
7688 cygwin* | mingw* | pw32*)
7689   version_type=windows
7690   shrext_cmds=".dll"
7691   need_version=no
7692   need_lib_prefix=no
7693
7694   case $GCC,$host_os in
7695   yes,cygwin* | yes,mingw* | yes,pw32*)
7696     library_names_spec='$libname.dll.a'
7697     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7698     postinstall_cmds='base_file=`basename \${file}`~
7699       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7700       dldir=$destdir/`dirname \$dlpath`~
7701       test -d \$dldir || mkdir -p \$dldir~
7702       $install_prog $dir/$dlname \$dldir/$dlname'
7703     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7704       dlpath=$dir/\$dldll~
7705        $rm \$dlpath'
7706     shlibpath_overrides_runpath=yes
7707
7708     case $host_os in
7709     cygwin*)
7710       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7711       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7712       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7713       ;;
7714     mingw*)
7715       # MinGW DLLs use traditional 'lib' prefix
7716       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7717       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7718       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7719         # It is most probably a Windows format PATH printed by
7720         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7721         # path with ; separators, and with drive letters. We can handle the
7722         # drive letters (cygwin fileutils understands them), so leave them,
7723         # especially as we might pass files found there to a mingw objdump,
7724         # which wouldn't understand a cygwinified path. Ahh.
7725         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7726       else
7727         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7728       fi
7729       ;;
7730     pw32*)
7731       # pw32 DLLs use 'pw' prefix rather than 'lib'
7732       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7733       ;;
7734     esac
7735     ;;
7736
7737   *)
7738     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7739     ;;
7740   esac
7741   dynamic_linker='Win32 ld.exe'
7742   # FIXME: first we should search . and the directory the executable is in
7743   shlibpath_var=PATH
7744   ;;
7745
7746 darwin* | rhapsody*)
7747   dynamic_linker="$host_os dyld"
7748   version_type=darwin
7749   need_lib_prefix=no
7750   need_version=no
7751   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7752   soname_spec='${libname}${release}${major}$shared_ext'
7753   shlibpath_overrides_runpath=yes
7754   shlibpath_var=DYLD_LIBRARY_PATH
7755   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7756   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7757   if test "$GCC" = yes; then
7758     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"`
7759   else
7760     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7761   fi
7762   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7763   ;;
7764
7765 dgux*)
7766   version_type=linux
7767   need_lib_prefix=no
7768   need_version=no
7769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7770   soname_spec='${libname}${release}${shared_ext}$major'
7771   shlibpath_var=LD_LIBRARY_PATH
7772   ;;
7773
7774 freebsd1*)
7775   dynamic_linker=no
7776   ;;
7777
7778 kfreebsd*-gnu)
7779   version_type=linux
7780   need_lib_prefix=no
7781   need_version=no
7782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7783   soname_spec='${libname}${release}${shared_ext}$major'
7784   shlibpath_var=LD_LIBRARY_PATH
7785   shlibpath_overrides_runpath=no
7786   hardcode_into_libs=yes
7787   dynamic_linker='GNU ld.so'
7788   ;;
7789
7790 freebsd*)
7791   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7792   version_type=freebsd-$objformat
7793   case $version_type in
7794     freebsd-elf*)
7795       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7796       need_version=no
7797       need_lib_prefix=no
7798       ;;
7799     freebsd-*)
7800       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7801       need_version=yes
7802       ;;
7803   esac
7804   shlibpath_var=LD_LIBRARY_PATH
7805   case $host_os in
7806   freebsd2*)
7807     shlibpath_overrides_runpath=yes
7808     ;;
7809   freebsd3.01* | freebsdelf3.01*)
7810     shlibpath_overrides_runpath=yes
7811     hardcode_into_libs=yes
7812     ;;
7813   *) # from 3.2 on
7814     shlibpath_overrides_runpath=no
7815     hardcode_into_libs=yes
7816     ;;
7817   esac
7818   ;;
7819
7820 gnu*)
7821   version_type=linux
7822   need_lib_prefix=no
7823   need_version=no
7824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7825   soname_spec='${libname}${release}${shared_ext}$major'
7826   shlibpath_var=LD_LIBRARY_PATH
7827   hardcode_into_libs=yes
7828   ;;
7829
7830 hpux9* | hpux10* | hpux11*)
7831   # Give a soname corresponding to the major version so that dld.sl refuses to
7832   # link against other versions.
7833   version_type=sunos
7834   need_lib_prefix=no
7835   need_version=no
7836   case "$host_cpu" in
7837   ia64*)
7838     shrext_cmds='.so'
7839     hardcode_into_libs=yes
7840     dynamic_linker="$host_os dld.so"
7841     shlibpath_var=LD_LIBRARY_PATH
7842     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7843     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7844     soname_spec='${libname}${release}${shared_ext}$major'
7845     if test "X$HPUX_IA64_MODE" = X32; then
7846       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7847     else
7848       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7849     fi
7850     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7851     ;;
7852    hppa*64*)
7853      shrext_cmds='.sl'
7854      hardcode_into_libs=yes
7855      dynamic_linker="$host_os dld.sl"
7856      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7857      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7858      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7859      soname_spec='${libname}${release}${shared_ext}$major'
7860      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7861      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7862      ;;
7863    *)
7864     shrext_cmds='.sl'
7865     dynamic_linker="$host_os dld.sl"
7866     shlibpath_var=SHLIB_PATH
7867     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7868     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7869     soname_spec='${libname}${release}${shared_ext}$major'
7870     ;;
7871   esac
7872   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7873   postinstall_cmds='chmod 555 $lib'
7874   ;;
7875
7876 irix5* | irix6* | nonstopux*)
7877   case $host_os in
7878     nonstopux*) version_type=nonstopux ;;
7879     *)
7880         if test "$lt_cv_prog_gnu_ld" = yes; then
7881                 version_type=linux
7882         else
7883                 version_type=irix
7884         fi ;;
7885   esac
7886   need_lib_prefix=no
7887   need_version=no
7888   soname_spec='${libname}${release}${shared_ext}$major'
7889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7890   case $host_os in
7891   irix5* | nonstopux*)
7892     libsuff= shlibsuff=
7893     ;;
7894   *)
7895     case $LD in # libtool.m4 will add one of these switches to LD
7896     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7897       libsuff= shlibsuff= libmagic=32-bit;;
7898     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7899       libsuff=32 shlibsuff=N32 libmagic=N32;;
7900     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7901       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7902     *) libsuff= shlibsuff= libmagic=never-match;;
7903     esac
7904     ;;
7905   esac
7906   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7907   shlibpath_overrides_runpath=no
7908   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7909   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7910   hardcode_into_libs=yes
7911   ;;
7912
7913 # No shared lib support for Linux oldld, aout, or coff.
7914 linux*oldld* | linux*aout* | linux*coff*)
7915   dynamic_linker=no
7916   ;;
7917
7918 # This must be Linux ELF.
7919 linux*)
7920   version_type=linux
7921   need_lib_prefix=no
7922   need_version=no
7923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924   soname_spec='${libname}${release}${shared_ext}$major'
7925   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7926   shlibpath_var=LD_LIBRARY_PATH
7927   shlibpath_overrides_runpath=no
7928   # This implies no fast_install, which is unacceptable.
7929   # Some rework will be needed to allow for fast_install
7930   # before this can be enabled.
7931   hardcode_into_libs=yes
7932
7933   # Append ld.so.conf contents to the search path
7934   if test -f /etc/ld.so.conf; then
7935     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7936     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7937   fi
7938
7939   # We used to test for /lib/ld.so.1 and disable shared libraries on
7940   # powerpc, because MkLinux only supported shared libraries with the
7941   # GNU dynamic linker.  Since this was broken with cross compilers,
7942   # most powerpc-linux boxes support dynamic linking these days and
7943   # people can always --disable-shared, the test was removed, and we
7944   # assume the GNU/Linux dynamic linker is in use.
7945   dynamic_linker='GNU/Linux ld.so'
7946   ;;
7947
7948 knetbsd*-gnu)
7949   version_type=linux
7950   need_lib_prefix=no
7951   need_version=no
7952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7953   soname_spec='${libname}${release}${shared_ext}$major'
7954   shlibpath_var=LD_LIBRARY_PATH
7955   shlibpath_overrides_runpath=no
7956   hardcode_into_libs=yes
7957   dynamic_linker='GNU ld.so'
7958   ;;
7959
7960 netbsd*)
7961   version_type=sunos
7962   need_lib_prefix=no
7963   need_version=no
7964   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7966     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7967     dynamic_linker='NetBSD (a.out) ld.so'
7968   else
7969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7970     soname_spec='${libname}${release}${shared_ext}$major'
7971     dynamic_linker='NetBSD ld.elf_so'
7972   fi
7973   shlibpath_var=LD_LIBRARY_PATH
7974   shlibpath_overrides_runpath=yes
7975   hardcode_into_libs=yes
7976   ;;
7977
7978 newsos6)
7979   version_type=linux
7980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7981   shlibpath_var=LD_LIBRARY_PATH
7982   shlibpath_overrides_runpath=yes
7983   ;;
7984
7985 nto-qnx*)
7986   version_type=linux
7987   need_lib_prefix=no
7988   need_version=no
7989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990   soname_spec='${libname}${release}${shared_ext}$major'
7991   shlibpath_var=LD_LIBRARY_PATH
7992   shlibpath_overrides_runpath=yes
7993   ;;
7994
7995 openbsd*)
7996   version_type=sunos
7997   need_lib_prefix=no
7998   need_version=yes
7999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8000   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8001   shlibpath_var=LD_LIBRARY_PATH
8002   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8003     case $host_os in
8004       openbsd2.[89] | openbsd2.[89].*)
8005         shlibpath_overrides_runpath=no
8006         ;;
8007       *)
8008         shlibpath_overrides_runpath=yes
8009         ;;
8010       esac
8011   else
8012     shlibpath_overrides_runpath=yes
8013   fi
8014   ;;
8015
8016 os2*)
8017   libname_spec='$name'
8018   shrext_cmds=".dll"
8019   need_lib_prefix=no
8020   library_names_spec='$libname${shared_ext} $libname.a'
8021   dynamic_linker='OS/2 ld.exe'
8022   shlibpath_var=LIBPATH
8023   ;;
8024
8025 osf3* | osf4* | osf5*)
8026   version_type=osf
8027   need_lib_prefix=no
8028   need_version=no
8029   soname_spec='${libname}${release}${shared_ext}$major'
8030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031   shlibpath_var=LD_LIBRARY_PATH
8032   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8033   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8034   ;;
8035
8036 sco3.2v5*)
8037   version_type=osf
8038   soname_spec='${libname}${release}${shared_ext}$major'
8039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040   shlibpath_var=LD_LIBRARY_PATH
8041   ;;
8042
8043 solaris*)
8044   version_type=linux
8045   need_lib_prefix=no
8046   need_version=no
8047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8048   soname_spec='${libname}${release}${shared_ext}$major'
8049   shlibpath_var=LD_LIBRARY_PATH
8050   shlibpath_overrides_runpath=yes
8051   hardcode_into_libs=yes
8052   # ldd complains unless libraries are executable
8053   postinstall_cmds='chmod +x $lib'
8054   ;;
8055
8056 sunos4*)
8057   version_type=sunos
8058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8059   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8060   shlibpath_var=LD_LIBRARY_PATH
8061   shlibpath_overrides_runpath=yes
8062   if test "$with_gnu_ld" = yes; then
8063     need_lib_prefix=no
8064   fi
8065   need_version=yes
8066   ;;
8067
8068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8069   version_type=linux
8070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071   soname_spec='${libname}${release}${shared_ext}$major'
8072   shlibpath_var=LD_LIBRARY_PATH
8073   case $host_vendor in
8074     sni)
8075       shlibpath_overrides_runpath=no
8076       need_lib_prefix=no
8077       export_dynamic_flag_spec='${wl}-Blargedynsym'
8078       runpath_var=LD_RUN_PATH
8079       ;;
8080     siemens)
8081       need_lib_prefix=no
8082       ;;
8083     motorola)
8084       need_lib_prefix=no
8085       need_version=no
8086       shlibpath_overrides_runpath=no
8087       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8088       ;;
8089   esac
8090   ;;
8091
8092 sysv4*MP*)
8093   if test -d /usr/nec ;then
8094     version_type=linux
8095     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8096     soname_spec='$libname${shared_ext}.$major'
8097     shlibpath_var=LD_LIBRARY_PATH
8098   fi
8099   ;;
8100
8101 uts4*)
8102   version_type=linux
8103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104   soname_spec='${libname}${release}${shared_ext}$major'
8105   shlibpath_var=LD_LIBRARY_PATH
8106   ;;
8107
8108 *)
8109   dynamic_linker=no
8110   ;;
8111 esac
8112 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8113 echo "${ECHO_T}$dynamic_linker" >&6
8114 test "$dynamic_linker" = no && can_build_shared=no
8115
8116 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8117 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8118 hardcode_action=
8119 if test -n "$hardcode_libdir_flag_spec" || \
8120    test -n "$runpath_var " || \
8121    test "X$hardcode_automatic"="Xyes" ; then
8122
8123   # We can hardcode non-existant directories.
8124   if test "$hardcode_direct" != no &&
8125      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8126      # have to relink, otherwise we might link with an installed library
8127      # when we should be linking with a yet-to-be-installed one
8128      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8129      test "$hardcode_minus_L" != no; then
8130     # Linking always hardcodes the temporary library directory.
8131     hardcode_action=relink
8132   else
8133     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8134     hardcode_action=immediate
8135   fi
8136 else
8137   # We cannot hardcode anything, or else we can only hardcode existing
8138   # directories.
8139   hardcode_action=unsupported
8140 fi
8141 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8142 echo "${ECHO_T}$hardcode_action" >&6
8143
8144 if test "$hardcode_action" = relink; then
8145   # Fast installation is not supported
8146   enable_fast_install=no
8147 elif test "$shlibpath_overrides_runpath" = yes ||
8148      test "$enable_shared" = no; then
8149   # Fast installation is not necessary
8150   enable_fast_install=needless
8151 fi
8152
8153 striplib=
8154 old_striplib=
8155 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8156 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8157 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8158   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8159   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8160   echo "$as_me:$LINENO: result: yes" >&5
8161 echo "${ECHO_T}yes" >&6
8162 else
8163 # FIXME - insert some real tests, host_os isn't really good enough
8164   case $host_os in
8165    darwin*)
8166        if test -n "$STRIP" ; then
8167          striplib="$STRIP -x"
8168          echo "$as_me:$LINENO: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8170        else
8171   echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6
8173 fi
8174        ;;
8175    *)
8176   echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6
8178     ;;
8179   esac
8180 fi
8181
8182 if test "x$enable_dlopen" != xyes; then
8183   enable_dlopen=unknown
8184   enable_dlopen_self=unknown
8185   enable_dlopen_self_static=unknown
8186 else
8187   lt_cv_dlopen=no
8188   lt_cv_dlopen_libs=
8189
8190   case $host_os in
8191   beos*)
8192     lt_cv_dlopen="load_add_on"
8193     lt_cv_dlopen_libs=
8194     lt_cv_dlopen_self=yes
8195     ;;
8196
8197   mingw* | pw32*)
8198     lt_cv_dlopen="LoadLibrary"
8199     lt_cv_dlopen_libs=
8200    ;;
8201
8202   cygwin*)
8203     lt_cv_dlopen="dlopen"
8204     lt_cv_dlopen_libs=
8205    ;;
8206
8207   darwin*)
8208   # if libdl is installed we need to link against it
8209     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8210 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   ac_check_lib_save_LIBS=$LIBS
8215 LIBS="-ldl  $LIBS"
8216 cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222
8223 /* Override any gcc2 internal prototype to avoid an error.  */
8224 #ifdef __cplusplus
8225 extern "C"
8226 #endif
8227 /* We use char because int might match the return type of a gcc2
8228    builtin and then its argument prototype would still apply.  */
8229 char dlopen ();
8230 int
8231 main ()
8232 {
8233 dlopen ();
8234   ;
8235   return 0;
8236 }
8237 _ACEOF
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8240   (eval $ac_link) 2>conftest.er1
8241   ac_status=$?
8242   grep -v '^ *+' conftest.er1 >conftest.err
8243   rm -f conftest.er1
8244   cat conftest.err >&5
8245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246   (exit $ac_status); } &&
8247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8249   (eval $ac_try) 2>&5
8250   ac_status=$?
8251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252   (exit $ac_status); }; } &&
8253          { ac_try='test -s conftest$ac_exeext'
8254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8255   (eval $ac_try) 2>&5
8256   ac_status=$?
8257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258   (exit $ac_status); }; }; then
8259   ac_cv_lib_dl_dlopen=yes
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264 ac_cv_lib_dl_dlopen=no
8265 fi
8266 rm -f conftest.err conftest.$ac_objext \
8267       conftest$ac_exeext conftest.$ac_ext
8268 LIBS=$ac_check_lib_save_LIBS
8269 fi
8270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8271 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8272 if test $ac_cv_lib_dl_dlopen = yes; then
8273   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8274 else
8275
8276     lt_cv_dlopen="dyld"
8277     lt_cv_dlopen_libs=
8278     lt_cv_dlopen_self=yes
8279
8280 fi
8281
8282    ;;
8283
8284   *)
8285     echo "$as_me:$LINENO: checking for shl_load" >&5
8286 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8287 if test "${ac_cv_func_shl_load+set}" = set; then
8288   echo $ECHO_N "(cached) $ECHO_C" >&6
8289 else
8290   cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h.  */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h.  */
8296 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8298 #define shl_load innocuous_shl_load
8299
8300 /* System header to define __stub macros and hopefully few prototypes,
8301     which can conflict with char shl_load (); below.
8302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8303     <limits.h> exists even on freestanding compilers.  */
8304
8305 #ifdef __STDC__
8306 # include <limits.h>
8307 #else
8308 # include <assert.h>
8309 #endif
8310
8311 #undef shl_load
8312
8313 /* Override any gcc2 internal prototype to avoid an error.  */
8314 #ifdef __cplusplus
8315 extern "C"
8316 {
8317 #endif
8318 /* We use char because int might match the return type of a gcc2
8319    builtin and then its argument prototype would still apply.  */
8320 char shl_load ();
8321 /* The GNU C library defines this for functions which it implements
8322     to always fail with ENOSYS.  Some functions are actually named
8323     something starting with __ and the normal name is an alias.  */
8324 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8325 choke me
8326 #else
8327 char (*f) () = shl_load;
8328 #endif
8329 #ifdef __cplusplus
8330 }
8331 #endif
8332
8333 int
8334 main ()
8335 {
8336 return f != shl_load;
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 rm -f conftest.$ac_objext conftest$ac_exeext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8343   (eval $ac_link) 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } &&
8350          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8352   (eval $ac_try) 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; } &&
8356          { ac_try='test -s conftest$ac_exeext'
8357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8358   (eval $ac_try) 2>&5
8359   ac_status=$?
8360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361   (exit $ac_status); }; }; then
8362   ac_cv_func_shl_load=yes
8363 else
8364   echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8366
8367 ac_cv_func_shl_load=no
8368 fi
8369 rm -f conftest.err conftest.$ac_objext \
8370       conftest$ac_exeext conftest.$ac_ext
8371 fi
8372 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8373 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8374 if test $ac_cv_func_shl_load = yes; then
8375   lt_cv_dlopen="shl_load"
8376 else
8377   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8378 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8379 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 else
8382   ac_check_lib_save_LIBS=$LIBS
8383 LIBS="-ldld  $LIBS"
8384 cat >conftest.$ac_ext <<_ACEOF
8385 /* confdefs.h.  */
8386 _ACEOF
8387 cat confdefs.h >>conftest.$ac_ext
8388 cat >>conftest.$ac_ext <<_ACEOF
8389 /* end confdefs.h.  */
8390
8391 /* Override any gcc2 internal prototype to avoid an error.  */
8392 #ifdef __cplusplus
8393 extern "C"
8394 #endif
8395 /* We use char because int might match the return type of a gcc2
8396    builtin and then its argument prototype would still apply.  */
8397 char shl_load ();
8398 int
8399 main ()
8400 {
8401 shl_load ();
8402   ;
8403   return 0;
8404 }
8405 _ACEOF
8406 rm -f conftest.$ac_objext conftest$ac_exeext
8407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8408   (eval $ac_link) 2>conftest.er1
8409   ac_status=$?
8410   grep -v '^ *+' conftest.er1 >conftest.err
8411   rm -f conftest.er1
8412   cat conftest.err >&5
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); } &&
8415          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417   (eval $ac_try) 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; } &&
8421          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
8427   ac_cv_lib_dld_shl_load=yes
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 ac_cv_lib_dld_shl_load=no
8433 fi
8434 rm -f conftest.err conftest.$ac_objext \
8435       conftest$ac_exeext conftest.$ac_ext
8436 LIBS=$ac_check_lib_save_LIBS
8437 fi
8438 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8439 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8440 if test $ac_cv_lib_dld_shl_load = yes; then
8441   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8442 else
8443   echo "$as_me:$LINENO: checking for dlopen" >&5
8444 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8445 if test "${ac_cv_func_dlopen+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h.  */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h.  */
8454 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8456 #define dlopen innocuous_dlopen
8457
8458 /* System header to define __stub macros and hopefully few prototypes,
8459     which can conflict with char dlopen (); below.
8460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8461     <limits.h> exists even on freestanding compilers.  */
8462
8463 #ifdef __STDC__
8464 # include <limits.h>
8465 #else
8466 # include <assert.h>
8467 #endif
8468
8469 #undef dlopen
8470
8471 /* Override any gcc2 internal prototype to avoid an error.  */
8472 #ifdef __cplusplus
8473 extern "C"
8474 {
8475 #endif
8476 /* We use char because int might match the return type of a gcc2
8477    builtin and then its argument prototype would still apply.  */
8478 char dlopen ();
8479 /* The GNU C library defines this for functions which it implements
8480     to always fail with ENOSYS.  Some functions are actually named
8481     something starting with __ and the normal name is an alias.  */
8482 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8483 choke me
8484 #else
8485 char (*f) () = dlopen;
8486 #endif
8487 #ifdef __cplusplus
8488 }
8489 #endif
8490
8491 int
8492 main ()
8493 {
8494 return f != dlopen;
8495   ;
8496   return 0;
8497 }
8498 _ACEOF
8499 rm -f conftest.$ac_objext conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501   (eval $ac_link) 2>conftest.er1
8502   ac_status=$?
8503   grep -v '^ *+' conftest.er1 >conftest.err
8504   rm -f conftest.er1
8505   cat conftest.err >&5
8506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507   (exit $ac_status); } &&
8508          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510   (eval $ac_try) 2>&5
8511   ac_status=$?
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   (exit $ac_status); }; } &&
8514          { ac_try='test -s conftest$ac_exeext'
8515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516   (eval $ac_try) 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); }; }; then
8520   ac_cv_func_dlopen=yes
8521 else
8522   echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525 ac_cv_func_dlopen=no
8526 fi
8527 rm -f conftest.err conftest.$ac_objext \
8528       conftest$ac_exeext conftest.$ac_ext
8529 fi
8530 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8531 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8532 if test $ac_cv_func_dlopen = yes; then
8533   lt_cv_dlopen="dlopen"
8534 else
8535   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8536 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8537 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8538   echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540   ac_check_lib_save_LIBS=$LIBS
8541 LIBS="-ldl  $LIBS"
8542 cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h.  */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h.  */
8548
8549 /* Override any gcc2 internal prototype to avoid an error.  */
8550 #ifdef __cplusplus
8551 extern "C"
8552 #endif
8553 /* We use char because int might match the return type of a gcc2
8554    builtin and then its argument prototype would still apply.  */
8555 char dlopen ();
8556 int
8557 main ()
8558 {
8559 dlopen ();
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8566   (eval $ac_link) 2>conftest.er1
8567   ac_status=$?
8568   grep -v '^ *+' conftest.er1 >conftest.err
8569   rm -f conftest.er1
8570   cat conftest.err >&5
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); } &&
8573          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575   (eval $ac_try) 2>&5
8576   ac_status=$?
8577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578   (exit $ac_status); }; } &&
8579          { ac_try='test -s conftest$ac_exeext'
8580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581   (eval $ac_try) 2>&5
8582   ac_status=$?
8583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584   (exit $ac_status); }; }; then
8585   ac_cv_lib_dl_dlopen=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 ac_cv_lib_dl_dlopen=no
8591 fi
8592 rm -f conftest.err conftest.$ac_objext \
8593       conftest$ac_exeext conftest.$ac_ext
8594 LIBS=$ac_check_lib_save_LIBS
8595 fi
8596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8598 if test $ac_cv_lib_dl_dlopen = yes; then
8599   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8600 else
8601   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   ac_check_lib_save_LIBS=$LIBS
8607 LIBS="-lsvld  $LIBS"
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614
8615 /* Override any gcc2 internal prototype to avoid an error.  */
8616 #ifdef __cplusplus
8617 extern "C"
8618 #endif
8619 /* We use char because int might match the return type of a gcc2
8620    builtin and then its argument prototype would still apply.  */
8621 char dlopen ();
8622 int
8623 main ()
8624 {
8625 dlopen ();
8626   ;
8627   return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632   (eval $ac_link) 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } &&
8639          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8641   (eval $ac_try) 2>&5
8642   ac_status=$?
8643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644   (exit $ac_status); }; } &&
8645          { ac_try='test -s conftest$ac_exeext'
8646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647   (eval $ac_try) 2>&5
8648   ac_status=$?
8649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650   (exit $ac_status); }; }; then
8651   ac_cv_lib_svld_dlopen=yes
8652 else
8653   echo "$as_me: failed program was:" >&5
8654 sed 's/^/| /' conftest.$ac_ext >&5
8655
8656 ac_cv_lib_svld_dlopen=no
8657 fi
8658 rm -f conftest.err conftest.$ac_objext \
8659       conftest$ac_exeext conftest.$ac_ext
8660 LIBS=$ac_check_lib_save_LIBS
8661 fi
8662 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8663 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8664 if test $ac_cv_lib_svld_dlopen = yes; then
8665   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8666 else
8667   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8668 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8669 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8670   echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672   ac_check_lib_save_LIBS=$LIBS
8673 LIBS="-ldld  $LIBS"
8674 cat >conftest.$ac_ext <<_ACEOF
8675 /* confdefs.h.  */
8676 _ACEOF
8677 cat confdefs.h >>conftest.$ac_ext
8678 cat >>conftest.$ac_ext <<_ACEOF
8679 /* end confdefs.h.  */
8680
8681 /* Override any gcc2 internal prototype to avoid an error.  */
8682 #ifdef __cplusplus
8683 extern "C"
8684 #endif
8685 /* We use char because int might match the return type of a gcc2
8686    builtin and then its argument prototype would still apply.  */
8687 char dld_link ();
8688 int
8689 main ()
8690 {
8691 dld_link ();
8692   ;
8693   return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext conftest$ac_exeext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8698   (eval $ac_link) 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } &&
8705          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707   (eval $ac_try) 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; } &&
8711          { ac_try='test -s conftest$ac_exeext'
8712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713   (eval $ac_try) 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_lib_dld_dld_link=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 ac_cv_lib_dld_dld_link=no
8723 fi
8724 rm -f conftest.err conftest.$ac_objext \
8725       conftest$ac_exeext conftest.$ac_ext
8726 LIBS=$ac_check_lib_save_LIBS
8727 fi
8728 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8729 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8730 if test $ac_cv_lib_dld_dld_link = yes; then
8731   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8732 fi
8733
8734
8735 fi
8736
8737
8738 fi
8739
8740
8741 fi
8742
8743
8744 fi
8745
8746
8747 fi
8748
8749     ;;
8750   esac
8751
8752   if test "x$lt_cv_dlopen" != xno; then
8753     enable_dlopen=yes
8754   else
8755     enable_dlopen=no
8756   fi
8757
8758   case $lt_cv_dlopen in
8759   dlopen)
8760     save_CPPFLAGS="$CPPFLAGS"
8761     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8762
8763     save_LDFLAGS="$LDFLAGS"
8764     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8765
8766     save_LIBS="$LIBS"
8767     LIBS="$lt_cv_dlopen_libs $LIBS"
8768
8769     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8770 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8771 if test "${lt_cv_dlopen_self+set}" = set; then
8772   echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774           if test "$cross_compiling" = yes; then :
8775   lt_cv_dlopen_self=cross
8776 else
8777   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8778   lt_status=$lt_dlunknown
8779   cat > conftest.$ac_ext <<EOF
8780 #line 8780 "configure"
8781 #include "confdefs.h"
8782
8783 #if HAVE_DLFCN_H
8784 #include <dlfcn.h>
8785 #endif
8786
8787 #include <stdio.h>
8788
8789 #ifdef RTLD_GLOBAL
8790 #  define LT_DLGLOBAL           RTLD_GLOBAL
8791 #else
8792 #  ifdef DL_GLOBAL
8793 #    define LT_DLGLOBAL         DL_GLOBAL
8794 #  else
8795 #    define LT_DLGLOBAL         0
8796 #  endif
8797 #endif
8798
8799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8800    find out it does not work in some platform. */
8801 #ifndef LT_DLLAZY_OR_NOW
8802 #  ifdef RTLD_LAZY
8803 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8804 #  else
8805 #    ifdef DL_LAZY
8806 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8807 #    else
8808 #      ifdef RTLD_NOW
8809 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8810 #      else
8811 #        ifdef DL_NOW
8812 #          define LT_DLLAZY_OR_NOW      DL_NOW
8813 #        else
8814 #          define LT_DLLAZY_OR_NOW      0
8815 #        endif
8816 #      endif
8817 #    endif
8818 #  endif
8819 #endif
8820
8821 #ifdef __cplusplus
8822 extern "C" void exit (int);
8823 #endif
8824
8825 void fnord() { int i=42;}
8826 int main ()
8827 {
8828   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8829   int status = $lt_dlunknown;
8830
8831   if (self)
8832     {
8833       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8834       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8835       /* dlclose (self); */
8836     }
8837
8838     exit (status);
8839 }
8840 EOF
8841   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842   (eval $ac_link) 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8846     (./conftest; exit; ) 2>/dev/null
8847     lt_status=$?
8848     case x$lt_status in
8849       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8850       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8851       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8852     esac
8853   else :
8854     # compilation failed
8855     lt_cv_dlopen_self=no
8856   fi
8857 fi
8858 rm -fr conftest*
8859
8860
8861 fi
8862 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8863 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8864
8865     if test "x$lt_cv_dlopen_self" = xyes; then
8866       LDFLAGS="$LDFLAGS $link_static_flag"
8867       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8868 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8869 if test "${lt_cv_dlopen_self_static+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872           if test "$cross_compiling" = yes; then :
8873   lt_cv_dlopen_self_static=cross
8874 else
8875   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8876   lt_status=$lt_dlunknown
8877   cat > conftest.$ac_ext <<EOF
8878 #line 8878 "configure"
8879 #include "confdefs.h"
8880
8881 #if HAVE_DLFCN_H
8882 #include <dlfcn.h>
8883 #endif
8884
8885 #include <stdio.h>
8886
8887 #ifdef RTLD_GLOBAL
8888 #  define LT_DLGLOBAL           RTLD_GLOBAL
8889 #else
8890 #  ifdef DL_GLOBAL
8891 #    define LT_DLGLOBAL         DL_GLOBAL
8892 #  else
8893 #    define LT_DLGLOBAL         0
8894 #  endif
8895 #endif
8896
8897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8898    find out it does not work in some platform. */
8899 #ifndef LT_DLLAZY_OR_NOW
8900 #  ifdef RTLD_LAZY
8901 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8902 #  else
8903 #    ifdef DL_LAZY
8904 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8905 #    else
8906 #      ifdef RTLD_NOW
8907 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8908 #      else
8909 #        ifdef DL_NOW
8910 #          define LT_DLLAZY_OR_NOW      DL_NOW
8911 #        else
8912 #          define LT_DLLAZY_OR_NOW      0
8913 #        endif
8914 #      endif
8915 #    endif
8916 #  endif
8917 #endif
8918
8919 #ifdef __cplusplus
8920 extern "C" void exit (int);
8921 #endif
8922
8923 void fnord() { int i=42;}
8924 int main ()
8925 {
8926   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8927   int status = $lt_dlunknown;
8928
8929   if (self)
8930     {
8931       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8932       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8933       /* dlclose (self); */
8934     }
8935
8936     exit (status);
8937 }
8938 EOF
8939   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940   (eval $ac_link) 2>&5
8941   ac_status=$?
8942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8944     (./conftest; exit; ) 2>/dev/null
8945     lt_status=$?
8946     case x$lt_status in
8947       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8948       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8949       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8950     esac
8951   else :
8952     # compilation failed
8953     lt_cv_dlopen_self_static=no
8954   fi
8955 fi
8956 rm -fr conftest*
8957
8958
8959 fi
8960 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8961 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8962     fi
8963
8964     CPPFLAGS="$save_CPPFLAGS"
8965     LDFLAGS="$save_LDFLAGS"
8966     LIBS="$save_LIBS"
8967     ;;
8968   esac
8969
8970   case $lt_cv_dlopen_self in
8971   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8972   *) enable_dlopen_self=unknown ;;
8973   esac
8974
8975   case $lt_cv_dlopen_self_static in
8976   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8977   *) enable_dlopen_self_static=unknown ;;
8978   esac
8979 fi
8980
8981
8982 # Report which librarie types wil actually be built
8983 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8984 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8985 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8986 echo "${ECHO_T}$can_build_shared" >&6
8987
8988 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8989 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8990 test "$can_build_shared" = "no" && enable_shared=no
8991
8992 # On AIX, shared libraries and static libraries use the same namespace, and
8993 # are all built from PIC.
8994 case "$host_os" in
8995 aix3*)
8996   test "$enable_shared" = yes && enable_static=no
8997   if test -n "$RANLIB"; then
8998     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8999     postinstall_cmds='$RANLIB $lib'
9000   fi
9001   ;;
9002
9003 aix4* | aix5*)
9004   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9005     test "$enable_shared" = yes && enable_static=no
9006   fi
9007   ;;
9008   darwin* | rhapsody*)
9009   if test "$GCC" = yes; then
9010     archive_cmds_need_lc=no
9011     case "$host_os" in
9012     rhapsody* | darwin1.[012])
9013       allow_undefined_flag='-undefined suppress'
9014       ;;
9015     *) # Darwin 1.3 on
9016       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9017         allow_undefined_flag='-flat_namespace -undefined suppress'
9018       else
9019         case ${MACOSX_DEPLOYMENT_TARGET} in
9020           10.[012])
9021             allow_undefined_flag='-flat_namespace -undefined suppress'
9022             ;;
9023           10.*)
9024             allow_undefined_flag='-undefined dynamic_lookup'
9025             ;;
9026         esac
9027       fi
9028       ;;
9029     esac
9030     output_verbose_link_cmd='echo'
9031     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9032     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9033     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9034     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}'
9035     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}'
9036     hardcode_direct=no
9037     hardcode_automatic=yes
9038     hardcode_shlibpath_var=unsupported
9039     whole_archive_flag_spec='-all_load $convenience'
9040     link_all_deplibs=yes
9041   else
9042     ld_shlibs=no
9043   fi
9044     ;;
9045 esac
9046 echo "$as_me:$LINENO: result: $enable_shared" >&5
9047 echo "${ECHO_T}$enable_shared" >&6
9048
9049 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9050 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9051 # Make sure either enable_shared or enable_static is yes.
9052 test "$enable_shared" = yes || enable_static=yes
9053 echo "$as_me:$LINENO: result: $enable_static" >&5
9054 echo "${ECHO_T}$enable_static" >&6
9055
9056 # The else clause should only fire when bootstrapping the
9057 # libtool distribution, otherwise you forgot to ship ltmain.sh
9058 # with your package, and you will get complaints that there are
9059 # no rules to generate ltmain.sh.
9060 if test -f "$ltmain"; then
9061   # See if we are running on zsh, and set the options which allow our commands through
9062   # without removal of \ escapes.
9063   if test -n "${ZSH_VERSION+set}" ; then
9064     setopt NO_GLOB_SUBST
9065   fi
9066   # Now quote all the things that may contain metacharacters while being
9067   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9068   # variables and quote the copies for generation of the libtool script.
9069   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9070     SED SHELL STRIP \
9071     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9072     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9073     deplibs_check_method reload_flag reload_cmds need_locks \
9074     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9075     lt_cv_sys_global_symbol_to_c_name_address \
9076     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9077     old_postinstall_cmds old_postuninstall_cmds \
9078     compiler \
9079     CC \
9080     LD \
9081     lt_prog_compiler_wl \
9082     lt_prog_compiler_pic \
9083     lt_prog_compiler_static \
9084     lt_prog_compiler_no_builtin_flag \
9085     export_dynamic_flag_spec \
9086     thread_safe_flag_spec \
9087     whole_archive_flag_spec \
9088     enable_shared_with_static_runtimes \
9089     old_archive_cmds \
9090     old_archive_from_new_cmds \
9091     predep_objects \
9092     postdep_objects \
9093     predeps \
9094     postdeps \
9095     compiler_lib_search_path \
9096     archive_cmds \
9097     archive_expsym_cmds \
9098     postinstall_cmds \
9099     postuninstall_cmds \
9100     old_archive_from_expsyms_cmds \
9101     allow_undefined_flag \
9102     no_undefined_flag \
9103     export_symbols_cmds \
9104     hardcode_libdir_flag_spec \
9105     hardcode_libdir_flag_spec_ld \
9106     hardcode_libdir_separator \
9107     hardcode_automatic \
9108     module_cmds \
9109     module_expsym_cmds \
9110     lt_cv_prog_compiler_c_o \
9111     exclude_expsyms \
9112     include_expsyms; do
9113
9114     case $var in
9115     old_archive_cmds | \
9116     old_archive_from_new_cmds | \
9117     archive_cmds | \
9118     archive_expsym_cmds | \
9119     module_cmds | \
9120     module_expsym_cmds | \
9121     old_archive_from_expsyms_cmds | \
9122     export_symbols_cmds | \
9123     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9124     postinstall_cmds | postuninstall_cmds | \
9125     old_postinstall_cmds | old_postuninstall_cmds | \
9126     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9127       # Double-quote double-evaled strings.
9128       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9129       ;;
9130     *)
9131       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9132       ;;
9133     esac
9134   done
9135
9136   case $lt_echo in
9137   *'\$0 --fallback-echo"')
9138     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9139     ;;
9140   esac
9141
9142 cfgfile="${ofile}T"
9143   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9144   $rm -f "$cfgfile"
9145   { echo "$as_me:$LINENO: creating $ofile" >&5
9146 echo "$as_me: creating $ofile" >&6;}
9147
9148   cat <<__EOF__ >> "$cfgfile"
9149 #! $SHELL
9150
9151 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9152 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9153 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9154 #
9155 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9156 # Free Software Foundation, Inc.
9157 #
9158 # This file is part of GNU Libtool:
9159 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9160 #
9161 # This program is free software; you can redistribute it and/or modify
9162 # it under the terms of the GNU General Public License as published by
9163 # the Free Software Foundation; either version 2 of the License, or
9164 # (at your option) any later version.
9165 #
9166 # This program is distributed in the hope that it will be useful, but
9167 # WITHOUT ANY WARRANTY; without even the implied warranty of
9168 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9169 # General Public License for more details.
9170 #
9171 # You should have received a copy of the GNU General Public License
9172 # along with this program; if not, write to the Free Software
9173 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9174 #
9175 # As a special exception to the GNU General Public License, if you
9176 # distribute this file as part of a program that contains a
9177 # configuration script generated by Autoconf, you may include it under
9178 # the same distribution terms that you use for the rest of that program.
9179
9180 # A sed program that does not truncate output.
9181 SED=$lt_SED
9182
9183 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9184 Xsed="$SED -e s/^X//"
9185
9186 # The HP-UX ksh and POSIX shell print the target directory to stdout
9187 # if CDPATH is set.
9188 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9189
9190 # The names of the tagged configurations supported by this script.
9191 available_tags=
9192
9193 # ### BEGIN LIBTOOL CONFIG
9194
9195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9196
9197 # Shell to use when invoking shell scripts.
9198 SHELL=$lt_SHELL
9199
9200 # Whether or not to build shared libraries.
9201 build_libtool_libs=$enable_shared
9202
9203 # Whether or not to build static libraries.
9204 build_old_libs=$enable_static
9205
9206 # Whether or not to add -lc for building shared libraries.
9207 build_libtool_need_lc=$archive_cmds_need_lc
9208
9209 # Whether or not to disallow shared libs when runtime libs are static
9210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9211
9212 # Whether or not to optimize for fast installation.
9213 fast_install=$enable_fast_install
9214
9215 # The host system.
9216 host_alias=$host_alias
9217 host=$host
9218
9219 # An echo program that does not interpret backslashes.
9220 echo=$lt_echo
9221
9222 # The archiver.
9223 AR=$lt_AR
9224 AR_FLAGS=$lt_AR_FLAGS
9225
9226 # A C compiler.
9227 LTCC=$lt_LTCC
9228
9229 # A language-specific compiler.
9230 CC=$lt_compiler
9231
9232 # Is the compiler the GNU C compiler?
9233 with_gcc=$GCC
9234
9235 # An ERE matcher.
9236 EGREP=$lt_EGREP
9237
9238 # The linker used to build libraries.
9239 LD=$lt_LD
9240
9241 # Whether we need hard or soft links.
9242 LN_S=$lt_LN_S
9243
9244 # A BSD-compatible nm program.
9245 NM=$lt_NM
9246
9247 # A symbol stripping program
9248 STRIP=$lt_STRIP
9249
9250 # Used to examine libraries when file_magic_cmd begins "file"
9251 MAGIC_CMD=$MAGIC_CMD
9252
9253 # Used on cygwin: DLL creation program.
9254 DLLTOOL="$DLLTOOL"
9255
9256 # Used on cygwin: object dumper.
9257 OBJDUMP="$OBJDUMP"
9258
9259 # Used on cygwin: assembler.
9260 AS="$AS"
9261
9262 # The name of the directory that contains temporary libtool files.
9263 objdir=$objdir
9264
9265 # How to create reloadable object files.
9266 reload_flag=$lt_reload_flag
9267 reload_cmds=$lt_reload_cmds
9268
9269 # How to pass a linker flag through the compiler.
9270 wl=$lt_lt_prog_compiler_wl
9271
9272 # Object file suffix (normally "o").
9273 objext="$ac_objext"
9274
9275 # Old archive suffix (normally "a").
9276 libext="$libext"
9277
9278 # Shared library suffix (normally ".so").
9279 shrext_cmds='$shrext_cmds'
9280
9281 # Executable file suffix (normally "").
9282 exeext="$exeext"
9283
9284 # Additional compiler flags for building library objects.
9285 pic_flag=$lt_lt_prog_compiler_pic
9286 pic_mode=$pic_mode
9287
9288 # What is the maximum length of a command?
9289 max_cmd_len=$lt_cv_sys_max_cmd_len
9290
9291 # Does compiler simultaneously support -c and -o options?
9292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9293
9294 # Must we lock files when doing compilation ?
9295 need_locks=$lt_need_locks
9296
9297 # Do we need the lib prefix for modules?
9298 need_lib_prefix=$need_lib_prefix
9299
9300 # Do we need a version for libraries?
9301 need_version=$need_version
9302
9303 # Whether dlopen is supported.
9304 dlopen_support=$enable_dlopen
9305
9306 # Whether dlopen of programs is supported.
9307 dlopen_self=$enable_dlopen_self
9308
9309 # Whether dlopen of statically linked programs is supported.
9310 dlopen_self_static=$enable_dlopen_self_static
9311
9312 # Compiler flag to prevent dynamic linking.
9313 link_static_flag=$lt_lt_prog_compiler_static
9314
9315 # Compiler flag to turn off builtin functions.
9316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9317
9318 # Compiler flag to allow reflexive dlopens.
9319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9320
9321 # Compiler flag to generate shared objects directly from archives.
9322 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9323
9324 # Compiler flag to generate thread-safe objects.
9325 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9326
9327 # Library versioning type.
9328 version_type=$version_type
9329
9330 # Format of library name prefix.
9331 libname_spec=$lt_libname_spec
9332
9333 # List of archive names.  First name is the real one, the rest are links.
9334 # The last name is the one that the linker finds with -lNAME.
9335 library_names_spec=$lt_library_names_spec
9336
9337 # The coded name of the library, if different from the real name.
9338 soname_spec=$lt_soname_spec
9339
9340 # Commands used to build and install an old-style archive.
9341 RANLIB=$lt_RANLIB
9342 old_archive_cmds=$lt_old_archive_cmds
9343 old_postinstall_cmds=$lt_old_postinstall_cmds
9344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9345
9346 # Create an old-style archive from a shared archive.
9347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9348
9349 # Create a temporary old-style archive to link instead of a shared archive.
9350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9351
9352 # Commands used to build and install a shared archive.
9353 archive_cmds=$lt_archive_cmds
9354 archive_expsym_cmds=$lt_archive_expsym_cmds
9355 postinstall_cmds=$lt_postinstall_cmds
9356 postuninstall_cmds=$lt_postuninstall_cmds
9357
9358 # Commands used to build a loadable module (assumed same as above if empty)
9359 module_cmds=$lt_module_cmds
9360 module_expsym_cmds=$lt_module_expsym_cmds
9361
9362 # Commands to strip libraries.
9363 old_striplib=$lt_old_striplib
9364 striplib=$lt_striplib
9365
9366 # Dependencies to place before the objects being linked to create a
9367 # shared library.
9368 predep_objects=$lt_predep_objects
9369
9370 # Dependencies to place after the objects being linked to create a
9371 # shared library.
9372 postdep_objects=$lt_postdep_objects
9373
9374 # Dependencies to place before the objects being linked to create a
9375 # shared library.
9376 predeps=$lt_predeps
9377
9378 # Dependencies to place after the objects being linked to create a
9379 # shared library.
9380 postdeps=$lt_postdeps
9381
9382 # The library search path used internally by the compiler when linking
9383 # a shared library.
9384 compiler_lib_search_path=$lt_compiler_lib_search_path
9385
9386 # Method to check whether dependent libraries are shared objects.
9387 deplibs_check_method=$lt_deplibs_check_method
9388
9389 # Command to use when deplibs_check_method == file_magic.
9390 file_magic_cmd=$lt_file_magic_cmd
9391
9392 # Flag that allows shared libraries with undefined symbols to be built.
9393 allow_undefined_flag=$lt_allow_undefined_flag
9394
9395 # Flag that forces no undefined symbols.
9396 no_undefined_flag=$lt_no_undefined_flag
9397
9398 # Commands used to finish a libtool library installation in a directory.
9399 finish_cmds=$lt_finish_cmds
9400
9401 # Same as above, but a single script fragment to be evaled but not shown.
9402 finish_eval=$lt_finish_eval
9403
9404 # Take the output of nm and produce a listing of raw symbols and C names.
9405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9406
9407 # Transform the output of nm in a proper C declaration
9408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9409
9410 # Transform the output of nm in a C name address pair
9411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9412
9413 # This is the shared library runtime path variable.
9414 runpath_var=$runpath_var
9415
9416 # This is the shared library path variable.
9417 shlibpath_var=$shlibpath_var
9418
9419 # Is shlibpath searched before the hard-coded library search path?
9420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9421
9422 # How to hardcode a shared library path into an executable.
9423 hardcode_action=$hardcode_action
9424
9425 # Whether we should hardcode library paths into libraries.
9426 hardcode_into_libs=$hardcode_into_libs
9427
9428 # Flag to hardcode \$libdir into a binary during linking.
9429 # This must work even if \$libdir does not exist.
9430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9431
9432 # If ld is used when linking, flag to hardcode \$libdir into
9433 # a binary during linking. This must work even if \$libdir does
9434 # not exist.
9435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9436
9437 # Whether we need a single -rpath flag with a separated argument.
9438 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9439
9440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9441 # resulting binary.
9442 hardcode_direct=$hardcode_direct
9443
9444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9445 # resulting binary.
9446 hardcode_minus_L=$hardcode_minus_L
9447
9448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9449 # the resulting binary.
9450 hardcode_shlibpath_var=$hardcode_shlibpath_var
9451
9452 # Set to yes if building a shared library automatically hardcodes DIR into the library
9453 # and all subsequent libraries and executables linked against it.
9454 hardcode_automatic=$hardcode_automatic
9455
9456 # Variables whose values should be saved in libtool wrapper scripts and
9457 # restored at relink time.
9458 variables_saved_for_relink="$variables_saved_for_relink"
9459
9460 # Whether libtool must link a program against all its dependency libraries.
9461 link_all_deplibs=$link_all_deplibs
9462
9463 # Compile-time system search path for libraries
9464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9465
9466 # Run-time system search path for libraries
9467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9468
9469 # Fix the shell variable \$srcfile for the compiler.
9470 fix_srcfile_path="$fix_srcfile_path"
9471
9472 # Set to yes if exported symbols are required.
9473 always_export_symbols=$always_export_symbols
9474
9475 # The commands to list exported symbols.
9476 export_symbols_cmds=$lt_export_symbols_cmds
9477
9478 # The commands to extract the exported symbol list from a shared archive.
9479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9480
9481 # Symbols that should not be listed in the preloaded symbols.
9482 exclude_expsyms=$lt_exclude_expsyms
9483
9484 # Symbols that must always be exported.
9485 include_expsyms=$lt_include_expsyms
9486
9487 # ### END LIBTOOL CONFIG
9488
9489 __EOF__
9490
9491
9492   case $host_os in
9493   aix3*)
9494     cat <<\EOF >> "$cfgfile"
9495
9496 # AIX sometimes has problems with the GCC collect2 program.  For some
9497 # reason, if we set the COLLECT_NAMES environment variable, the problems
9498 # vanish in a puff of smoke.
9499 if test "X${COLLECT_NAMES+set}" != Xset; then
9500   COLLECT_NAMES=
9501   export COLLECT_NAMES
9502 fi
9503 EOF
9504     ;;
9505   esac
9506
9507   # We use sed instead of cat because bash on DJGPP gets confused if
9508   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9509   # text mode, it properly converts lines to CR/LF.  This bash problem
9510   # is reportedly fixed, but why not run on old versions too?
9511   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9512
9513   mv -f "$cfgfile" "$ofile" || \
9514     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9515   chmod +x "$ofile"
9516
9517 else
9518   # If there is no Makefile yet, we rely on a make rule to execute
9519   # `config.status --recheck' to rerun these tests and create the
9520   # libtool script then.
9521   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9522   if test -f "$ltmain_in"; then
9523     test -f Makefile && make "$ltmain"
9524   fi
9525 fi
9526
9527
9528 ac_ext=c
9529 ac_cpp='$CPP $CPPFLAGS'
9530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9533
9534 CC="$lt_save_CC"
9535
9536
9537 # Check whether --with-tags or --without-tags was given.
9538 if test "${with_tags+set}" = set; then
9539   withval="$with_tags"
9540   tagnames="$withval"
9541 fi;
9542
9543 if test -f "$ltmain" && test -n "$tagnames"; then
9544   if test ! -f "${ofile}"; then
9545     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9546 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9547   fi
9548
9549   if test -z "$LTCC"; then
9550     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9551     if test -z "$LTCC"; then
9552       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9553 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9554     else
9555       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9556 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9557     fi
9558   fi
9559
9560   # Extract list of available tagged configurations in $ofile.
9561   # Note that this assumes the entire list is on one line.
9562   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9563
9564   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9565   for tagname in $tagnames; do
9566     IFS="$lt_save_ifs"
9567     # Check whether tagname contains only valid characters
9568     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9569     "") ;;
9570     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9571 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9572    { (exit 1); exit 1; }; }
9573         ;;
9574     esac
9575
9576     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9577     then
9578       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9579 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9580    { (exit 1); exit 1; }; }
9581     fi
9582
9583     # Update the list of available tags.
9584     if test -n "$tagname"; then
9585       echo appending configuration tag \"$tagname\" to $ofile
9586
9587       case $tagname in
9588       CXX)
9589         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9590           ac_ext=cc
9591 ac_cpp='$CXXCPP $CPPFLAGS'
9592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9595
9596
9597
9598
9599 archive_cmds_need_lc_CXX=no
9600 allow_undefined_flag_CXX=
9601 always_export_symbols_CXX=no
9602 archive_expsym_cmds_CXX=
9603 export_dynamic_flag_spec_CXX=
9604 hardcode_direct_CXX=no
9605 hardcode_libdir_flag_spec_CXX=
9606 hardcode_libdir_flag_spec_ld_CXX=
9607 hardcode_libdir_separator_CXX=
9608 hardcode_minus_L_CXX=no
9609 hardcode_automatic_CXX=no
9610 module_cmds_CXX=
9611 module_expsym_cmds_CXX=
9612 link_all_deplibs_CXX=unknown
9613 old_archive_cmds_CXX=$old_archive_cmds
9614 no_undefined_flag_CXX=
9615 whole_archive_flag_spec_CXX=
9616 enable_shared_with_static_runtimes_CXX=no
9617
9618 # Dependencies to place before and after the object being linked:
9619 predep_objects_CXX=
9620 postdep_objects_CXX=
9621 predeps_CXX=
9622 postdeps_CXX=
9623 compiler_lib_search_path_CXX=
9624
9625 # Source file extension for C++ test sources.
9626 ac_ext=cc
9627
9628 # Object file extension for compiled C++ test sources.
9629 objext=o
9630 objext_CXX=$objext
9631
9632 # Code to be used in simple compile tests
9633 lt_simple_compile_test_code="int some_variable = 0;\n"
9634
9635 # Code to be used in simple link tests
9636 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9637
9638 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9639
9640 # If no C compiler was specified, use CC.
9641 LTCC=${LTCC-"$CC"}
9642
9643 # Allow CC to be a program name with arguments.
9644 compiler=$CC
9645
9646
9647 # Allow CC to be a program name with arguments.
9648 lt_save_CC=$CC
9649 lt_save_LD=$LD
9650 lt_save_GCC=$GCC
9651 GCC=$GXX
9652 lt_save_with_gnu_ld=$with_gnu_ld
9653 lt_save_path_LD=$lt_cv_path_LD
9654 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9655   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9656 else
9657   unset lt_cv_prog_gnu_ld
9658 fi
9659 if test -n "${lt_cv_path_LDCXX+set}"; then
9660   lt_cv_path_LD=$lt_cv_path_LDCXX
9661 else
9662   unset lt_cv_path_LD
9663 fi
9664 test -z "${LDCXX+set}" || LD=$LDCXX
9665 CC=${CXX-"c++"}
9666 compiler=$CC
9667 compiler_CXX=$CC
9668 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9669
9670 # We don't want -fno-exception wen compiling C++ code, so set the
9671 # no_builtin_flag separately
9672 if test "$GXX" = yes; then
9673   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9674 else
9675   lt_prog_compiler_no_builtin_flag_CXX=
9676 fi
9677
9678 if test "$GXX" = yes; then
9679   # Set up default GNU C++ configuration
9680
9681
9682 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9683 if test "${with_gnu_ld+set}" = set; then
9684   withval="$with_gnu_ld"
9685   test "$withval" = no || with_gnu_ld=yes
9686 else
9687   with_gnu_ld=no
9688 fi;
9689 ac_prog=ld
9690 if test "$GCC" = yes; then
9691   # Check if gcc -print-prog-name=ld gives a path.
9692   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9693 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9694   case $host in
9695   *-*-mingw*)
9696     # gcc leaves a trailing carriage return which upsets mingw
9697     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9698   *)
9699     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9700   esac
9701   case $ac_prog in
9702     # Accept absolute paths.
9703     [\\/]* | ?:[\\/]*)
9704       re_direlt='/[^/][^/]*/\.\./'
9705       # Canonicalize the pathname of ld
9706       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9707       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9708         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9709       done
9710       test -z "$LD" && LD="$ac_prog"
9711       ;;
9712   "")
9713     # If it fails, then pretend we aren't using GCC.
9714     ac_prog=ld
9715     ;;
9716   *)
9717     # If it is relative, then search for the first ld in PATH.
9718     with_gnu_ld=unknown
9719     ;;
9720   esac
9721 elif test "$with_gnu_ld" = yes; then
9722   echo "$as_me:$LINENO: checking for GNU ld" >&5
9723 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9724 else
9725   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9726 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9727 fi
9728 if test "${lt_cv_path_LD+set}" = set; then
9729   echo $ECHO_N "(cached) $ECHO_C" >&6
9730 else
9731   if test -z "$LD"; then
9732   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9733   for ac_dir in $PATH; do
9734     IFS="$lt_save_ifs"
9735     test -z "$ac_dir" && ac_dir=.
9736     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9737       lt_cv_path_LD="$ac_dir/$ac_prog"
9738       # Check to see if the program is GNU ld.  I'd rather use --version,
9739       # but apparently some GNU ld's only accept -v.
9740       # Break only if it was the GNU/non-GNU ld that we prefer.
9741       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9742       *GNU* | *'with BFD'*)
9743         test "$with_gnu_ld" != no && break
9744         ;;
9745       *)
9746         test "$with_gnu_ld" != yes && break
9747         ;;
9748       esac
9749     fi
9750   done
9751   IFS="$lt_save_ifs"
9752 else
9753   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9754 fi
9755 fi
9756
9757 LD="$lt_cv_path_LD"
9758 if test -n "$LD"; then
9759   echo "$as_me:$LINENO: result: $LD" >&5
9760 echo "${ECHO_T}$LD" >&6
9761 else
9762   echo "$as_me:$LINENO: result: no" >&5
9763 echo "${ECHO_T}no" >&6
9764 fi
9765 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9766 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9767    { (exit 1); exit 1; }; }
9768 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9769 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9770 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9774 case `$LD -v 2>&1 </dev/null` in
9775 *GNU* | *'with BFD'*)
9776   lt_cv_prog_gnu_ld=yes
9777   ;;
9778 *)
9779   lt_cv_prog_gnu_ld=no
9780   ;;
9781 esac
9782 fi
9783 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9784 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9785 with_gnu_ld=$lt_cv_prog_gnu_ld
9786
9787
9788
9789   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9790   # archiving commands below assume that GNU ld is being used.
9791   if test "$with_gnu_ld" = yes; then
9792     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793     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'
9794
9795     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9796     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9797
9798     # If archive_cmds runs LD, not CC, wlarc should be empty
9799     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9800     #     investigate it a little bit more. (MM)
9801     wlarc='${wl}'
9802
9803     # ancient GNU ld didn't support --whole-archive et. al.
9804     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9805         grep 'no-whole-archive' > /dev/null; then
9806       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9807     else
9808       whole_archive_flag_spec_CXX=
9809     fi
9810   else
9811     with_gnu_ld=no
9812     wlarc=
9813
9814     # A generic and very simple default shared library creation
9815     # command for GNU C++ for the case where it uses the native
9816     # linker, instead of GNU ld.  If possible, this setting should
9817     # overridden to take advantage of the native linker features on
9818     # the platform it is being used on.
9819     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9820   fi
9821
9822   # Commands to make compiler produce verbose output that lists
9823   # what "hidden" libraries, object files and flags are used when
9824   # linking a shared library.
9825   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9826
9827 else
9828   GXX=no
9829   with_gnu_ld=no
9830   wlarc=
9831 fi
9832
9833 # PORTME: fill in a description of your system's C++ link characteristics
9834 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9835 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9836 ld_shlibs_CXX=yes
9837 case $host_os in
9838   aix3*)
9839     # FIXME: insert proper C++ library support
9840     ld_shlibs_CXX=no
9841     ;;
9842   aix4* | aix5*)
9843     if test "$host_cpu" = ia64; then
9844       # On IA64, the linker does run time linking by default, so we don't
9845       # have to do anything special.
9846       aix_use_runtimelinking=no
9847       exp_sym_flag='-Bexport'
9848       no_entry_flag=""
9849     else
9850       aix_use_runtimelinking=no
9851
9852       # Test if we are trying to use run time linking or normal
9853       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9854       # need to do runtime linking.
9855       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9856         for ld_flag in $LDFLAGS; do
9857           case $ld_flag in
9858           *-brtl*)
9859             aix_use_runtimelinking=yes
9860             break
9861             ;;
9862           esac
9863         done
9864       esac
9865
9866       exp_sym_flag='-bexport'
9867       no_entry_flag='-bnoentry'
9868     fi
9869
9870     # When large executables or shared objects are built, AIX ld can
9871     # have problems creating the table of contents.  If linking a library
9872     # or program results in "error TOC overflow" add -mminimal-toc to
9873     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9874     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9875
9876     archive_cmds_CXX=''
9877     hardcode_direct_CXX=yes
9878     hardcode_libdir_separator_CXX=':'
9879     link_all_deplibs_CXX=yes
9880
9881     if test "$GXX" = yes; then
9882       case $host_os in aix4.012|aix4.012.*)
9883       # We only want to do this on AIX 4.2 and lower, the check
9884       # below for broken collect2 doesn't work under 4.3+
9885         collect2name=`${CC} -print-prog-name=collect2`
9886         if test -f "$collect2name" && \
9887            strings "$collect2name" | grep resolve_lib_name >/dev/null
9888         then
9889           # We have reworked collect2
9890           hardcode_direct_CXX=yes
9891         else
9892           # We have old collect2
9893           hardcode_direct_CXX=unsupported
9894           # It fails to find uninstalled libraries when the uninstalled
9895           # path is not listed in the libpath.  Setting hardcode_minus_L
9896           # to unsupported forces relinking
9897           hardcode_minus_L_CXX=yes
9898           hardcode_libdir_flag_spec_CXX='-L$libdir'
9899           hardcode_libdir_separator_CXX=
9900         fi
9901       esac
9902       shared_flag='-shared'
9903     else
9904       # not using gcc
9905       if test "$host_cpu" = ia64; then
9906         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9907         # chokes on -Wl,-G. The following line is correct:
9908         shared_flag='-G'
9909       else
9910         if test "$aix_use_runtimelinking" = yes; then
9911           shared_flag='${wl}-G'
9912         else
9913           shared_flag='${wl}-bM:SRE'
9914         fi
9915       fi
9916     fi
9917
9918     # It seems that -bexpall does not export symbols beginning with
9919     # underscore (_), so it is better to generate a list of symbols to export.
9920     always_export_symbols_CXX=yes
9921     if test "$aix_use_runtimelinking" = yes; then
9922       # Warning - without using the other runtime loading flags (-brtl),
9923       # -berok will link without error, but may produce a broken library.
9924       allow_undefined_flag_CXX='-berok'
9925       # Determine the default libpath from the value encoded in an empty executable.
9926       cat >conftest.$ac_ext <<_ACEOF
9927 /* confdefs.h.  */
9928 _ACEOF
9929 cat confdefs.h >>conftest.$ac_ext
9930 cat >>conftest.$ac_ext <<_ACEOF
9931 /* end confdefs.h.  */
9932
9933 int
9934 main ()
9935 {
9936
9937   ;
9938   return 0;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9943   (eval $ac_link) 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } &&
9950          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest$ac_exeext'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; }; then
9962
9963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9964 }'`
9965 # Check for a 64-bit object if we didn't find anything.
9966 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; }
9967 }'`; fi
9968 else
9969   echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9971
9972 fi
9973 rm -f conftest.err conftest.$ac_objext \
9974       conftest$ac_exeext conftest.$ac_ext
9975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9976
9977       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9978
9979       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9980      else
9981       if test "$host_cpu" = ia64; then
9982         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9983         allow_undefined_flag_CXX="-z nodefs"
9984         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9985       else
9986         # Determine the default libpath from the value encoded in an empty executable.
9987         cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h.  */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h.  */
9993
9994 int
9995 main ()
9996 {
9997
9998   ;
9999   return 0;
10000 }
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004   (eval $ac_link) 2>conftest.er1
10005   ac_status=$?
10006   grep -v '^ *+' conftest.er1 >conftest.err
10007   rm -f conftest.er1
10008   cat conftest.err >&5
10009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010   (exit $ac_status); } &&
10011          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013   (eval $ac_try) 2>&5
10014   ac_status=$?
10015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016   (exit $ac_status); }; } &&
10017          { ac_try='test -s conftest$ac_exeext'
10018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10019   (eval $ac_try) 2>&5
10020   ac_status=$?
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); }; }; then
10023
10024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10025 }'`
10026 # Check for a 64-bit object if we didn't find anything.
10027 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; }
10028 }'`; fi
10029 else
10030   echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 fi
10034 rm -f conftest.err conftest.$ac_objext \
10035       conftest$ac_exeext conftest.$ac_ext
10036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10037
10038         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10039         # Warning - without using the other run time loading flags,
10040         # -berok will link without error, but may produce a broken library.
10041         no_undefined_flag_CXX=' ${wl}-bernotok'
10042         allow_undefined_flag_CXX=' ${wl}-berok'
10043         # -bexpall does not export symbols beginning with underscore (_)
10044         always_export_symbols_CXX=yes
10045         # Exported symbols can be pulled into shared objects from archives
10046         whole_archive_flag_spec_CXX=' '
10047         archive_cmds_need_lc_CXX=yes
10048         # This is similar to how AIX traditionally builds it's shared libraries.
10049         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10050       fi
10051     fi
10052     ;;
10053   chorus*)
10054     case $cc_basename in
10055       *)
10056         # FIXME: insert proper C++ library support
10057         ld_shlibs_CXX=no
10058         ;;
10059     esac
10060     ;;
10061
10062   cygwin* | mingw* | pw32*)
10063     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10064     # as there is no search path for DLLs.
10065     hardcode_libdir_flag_spec_CXX='-L$libdir'
10066     allow_undefined_flag_CXX=unsupported
10067     always_export_symbols_CXX=no
10068     enable_shared_with_static_runtimes_CXX=yes
10069
10070     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10071       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10072       # If the export-symbols file already is a .def file (1st line
10073       # is EXPORTS), use it as is; otherwise, prepend...
10074       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10075         cp $export_symbols $output_objdir/$soname.def;
10076       else
10077         echo EXPORTS > $output_objdir/$soname.def;
10078         cat $export_symbols >> $output_objdir/$soname.def;
10079       fi~
10080       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10081     else
10082       ld_shlibs_CXX=no
10083     fi
10084   ;;
10085
10086   darwin* | rhapsody*)
10087   if test "$GXX" = yes; then
10088     archive_cmds_need_lc_CXX=no
10089     case "$host_os" in
10090     rhapsody* | darwin1.[012])
10091       allow_undefined_flag_CXX='-undefined suppress'
10092       ;;
10093     *) # Darwin 1.3 on
10094       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10095         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10096       else
10097         case ${MACOSX_DEPLOYMENT_TARGET} in
10098           10.[012])
10099             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10100             ;;
10101           10.*)
10102             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10103             ;;
10104         esac
10105       fi
10106       ;;
10107     esac
10108     lt_int_apple_cc_single_mod=no
10109     output_verbose_link_cmd='echo'
10110     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10111       lt_int_apple_cc_single_mod=yes
10112     fi
10113     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10114       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10115     else
10116       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10117     fi
10118     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10119
10120     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10121     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10122       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}'
10123     else
10124       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10125     fi
10126     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}'
10127     hardcode_direct_CXX=no
10128     hardcode_automatic_CXX=yes
10129     hardcode_shlibpath_var_CXX=unsupported
10130     whole_archive_flag_spec_CXX='-all_load $convenience'
10131     link_all_deplibs_CXX=yes
10132   else
10133     ld_shlibs_CXX=no
10134   fi
10135     ;;
10136
10137   dgux*)
10138     case $cc_basename in
10139       ec++)
10140         # FIXME: insert proper C++ library support
10141         ld_shlibs_CXX=no
10142         ;;
10143       ghcx)
10144         # Green Hills C++ Compiler
10145         # FIXME: insert proper C++ library support
10146         ld_shlibs_CXX=no
10147         ;;
10148       *)
10149         # FIXME: insert proper C++ library support
10150         ld_shlibs_CXX=no
10151         ;;
10152     esac
10153     ;;
10154   freebsd12*)
10155     # C++ shared libraries reported to be fairly broken before switch to ELF
10156     ld_shlibs_CXX=no
10157     ;;
10158   freebsd-elf*)
10159     archive_cmds_need_lc_CXX=no
10160     ;;
10161   freebsd* | kfreebsd*-gnu)
10162     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10163     # conventions
10164     ld_shlibs_CXX=yes
10165     ;;
10166   gnu*)
10167     ;;
10168   hpux9*)
10169     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10170     hardcode_libdir_separator_CXX=:
10171     export_dynamic_flag_spec_CXX='${wl}-E'
10172     hardcode_direct_CXX=yes
10173     hardcode_minus_L_CXX=yes # Not in the search PATH,
10174                                 # but as the default
10175                                 # location of the library.
10176
10177     case $cc_basename in
10178     CC)
10179       # FIXME: insert proper C++ library support
10180       ld_shlibs_CXX=no
10181       ;;
10182     aCC)
10183       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'
10184       # Commands to make compiler produce verbose output that lists
10185       # what "hidden" libraries, object files and flags are used when
10186       # linking a shared library.
10187       #
10188       # There doesn't appear to be a way to prevent this compiler from
10189       # explicitly linking system object files so we need to strip them
10190       # from the output so that they don't get included in the library
10191       # dependencies.
10192       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'
10193       ;;
10194     *)
10195       if test "$GXX" = yes; then
10196         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'
10197       else
10198         # FIXME: insert proper C++ library support
10199         ld_shlibs_CXX=no
10200       fi
10201       ;;
10202     esac
10203     ;;
10204   hpux10*|hpux11*)
10205     if test $with_gnu_ld = no; then
10206       case "$host_cpu" in
10207       hppa*64*)
10208         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10209         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10210         hardcode_libdir_separator_CXX=:
10211         ;;
10212       ia64*)
10213         hardcode_libdir_flag_spec_CXX='-L$libdir'
10214         ;;
10215       *)
10216         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10217         hardcode_libdir_separator_CXX=:
10218         export_dynamic_flag_spec_CXX='${wl}-E'
10219         ;;
10220       esac
10221     fi
10222     case "$host_cpu" in
10223     hppa*64*)
10224       hardcode_direct_CXX=no
10225       hardcode_shlibpath_var_CXX=no
10226       ;;
10227     ia64*)
10228       hardcode_direct_CXX=no
10229       hardcode_shlibpath_var_CXX=no
10230       hardcode_minus_L_CXX=yes # Not in the search PATH,
10231                                               # but as the default
10232                                               # location of the library.
10233       ;;
10234     *)
10235       hardcode_direct_CXX=yes
10236       hardcode_minus_L_CXX=yes # Not in the search PATH,
10237                                               # but as the default
10238                                               # location of the library.
10239       ;;
10240     esac
10241
10242     case $cc_basename in
10243       CC)
10244         # FIXME: insert proper C++ library support
10245         ld_shlibs_CXX=no
10246         ;;
10247       aCC)
10248         case "$host_cpu" in
10249         hppa*64*|ia64*)
10250           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10251           ;;
10252         *)
10253           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10254           ;;
10255         esac
10256         # Commands to make compiler produce verbose output that lists
10257         # what "hidden" libraries, object files and flags are used when
10258         # linking a shared library.
10259         #
10260         # There doesn't appear to be a way to prevent this compiler from
10261         # explicitly linking system object files so we need to strip them
10262         # from the output so that they don't get included in the library
10263         # dependencies.
10264         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'
10265         ;;
10266       *)
10267         if test "$GXX" = yes; then
10268           if test $with_gnu_ld = no; then
10269             case "$host_cpu" in
10270             ia64*|hppa*64*)
10271               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10272               ;;
10273             *)
10274               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'
10275               ;;
10276             esac
10277           fi
10278         else
10279           # FIXME: insert proper C++ library support
10280           ld_shlibs_CXX=no
10281         fi
10282         ;;
10283     esac
10284     ;;
10285   irix5* | irix6*)
10286     case $cc_basename in
10287       CC)
10288         # SGI C++
10289         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10290
10291         # Archives containing C++ object files must be created using
10292         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10293         # necessary to make sure instantiated templates are included
10294         # in the archive.
10295         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10296         ;;
10297       *)
10298         if test "$GXX" = yes; then
10299           if test "$with_gnu_ld" = no; then
10300             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10301           else
10302             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'
10303           fi
10304         fi
10305         link_all_deplibs_CXX=yes
10306         ;;
10307     esac
10308     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10309     hardcode_libdir_separator_CXX=:
10310     ;;
10311   linux*)
10312     case $cc_basename in
10313       KCC)
10314         # Kuck and Associates, Inc. (KAI) C++ Compiler
10315
10316         # KCC will only create a shared library if the output file
10317         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10318         # to its proper name (with version) after linking.
10319         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'
10320         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'
10321         # Commands to make compiler produce verbose output that lists
10322         # what "hidden" libraries, object files and flags are used when
10323         # linking a shared library.
10324         #
10325         # There doesn't appear to be a way to prevent this compiler from
10326         # explicitly linking system object files so we need to strip them
10327         # from the output so that they don't get included in the library
10328         # dependencies.
10329         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'
10330
10331         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10332         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10333
10334         # Archives containing C++ object files must be created using
10335         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10336         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10337         ;;
10338       icpc)
10339         # Intel C++
10340         with_gnu_ld=yes
10341         archive_cmds_need_lc_CXX=no
10342         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10343         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'
10344         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10345         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10346         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10347         ;;
10348       cxx)
10349         # Compaq C++
10350         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10351         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'
10352
10353         runpath_var=LD_RUN_PATH
10354         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10355         hardcode_libdir_separator_CXX=:
10356
10357         # Commands to make compiler produce verbose output that lists
10358         # what "hidden" libraries, object files and flags are used when
10359         # linking a shared library.
10360         #
10361         # There doesn't appear to be a way to prevent this compiler from
10362         # explicitly linking system object files so we need to strip them
10363         # from the output so that they don't get included in the library
10364         # dependencies.
10365         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'
10366         ;;
10367     esac
10368     ;;
10369   lynxos*)
10370     # FIXME: insert proper C++ library support
10371     ld_shlibs_CXX=no
10372     ;;
10373   m88k*)
10374     # FIXME: insert proper C++ library support
10375     ld_shlibs_CXX=no
10376     ;;
10377   mvs*)
10378     case $cc_basename in
10379       cxx)
10380         # FIXME: insert proper C++ library support
10381         ld_shlibs_CXX=no
10382         ;;
10383       *)
10384         # FIXME: insert proper C++ library support
10385         ld_shlibs_CXX=no
10386         ;;
10387     esac
10388     ;;
10389   netbsd*)
10390     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10391       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10392       wlarc=
10393       hardcode_libdir_flag_spec_CXX='-R$libdir'
10394       hardcode_direct_CXX=yes
10395       hardcode_shlibpath_var_CXX=no
10396     fi
10397     # Workaround some broken pre-1.5 toolchains
10398     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10399     ;;
10400   osf3*)
10401     case $cc_basename in
10402       KCC)
10403         # Kuck and Associates, Inc. (KAI) C++ Compiler
10404
10405         # KCC will only create a shared library if the output file
10406         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10407         # to its proper name (with version) after linking.
10408         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'
10409
10410         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10411         hardcode_libdir_separator_CXX=:
10412
10413         # Archives containing C++ object files must be created using
10414         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10415         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10416
10417         ;;
10418       RCC)
10419         # Rational C++ 2.4.1
10420         # FIXME: insert proper C++ library support
10421         ld_shlibs_CXX=no
10422         ;;
10423       cxx)
10424         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10425         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10426
10427         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10428         hardcode_libdir_separator_CXX=:
10429
10430         # Commands to make compiler produce verbose output that lists
10431         # what "hidden" libraries, object files and flags are used when
10432         # linking a shared library.
10433         #
10434         # There doesn't appear to be a way to prevent this compiler from
10435         # explicitly linking system object files so we need to strip them
10436         # from the output so that they don't get included in the library
10437         # dependencies.
10438         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'
10439         ;;
10440       *)
10441         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10442           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10443           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10444
10445           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10446           hardcode_libdir_separator_CXX=:
10447
10448           # Commands to make compiler produce verbose output that lists
10449           # what "hidden" libraries, object files and flags are used when
10450           # linking a shared library.
10451           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10452
10453         else
10454           # FIXME: insert proper C++ library support
10455           ld_shlibs_CXX=no
10456         fi
10457         ;;
10458     esac
10459     ;;
10460   osf4* | osf5*)
10461     case $cc_basename in
10462       KCC)
10463         # Kuck and Associates, Inc. (KAI) C++ Compiler
10464
10465         # KCC will only create a shared library if the output file
10466         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10467         # to its proper name (with version) after linking.
10468         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'
10469
10470         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10471         hardcode_libdir_separator_CXX=:
10472
10473         # Archives containing C++ object files must be created using
10474         # the KAI C++ compiler.
10475         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10476         ;;
10477       RCC)
10478         # Rational C++ 2.4.1
10479         # FIXME: insert proper C++ library support
10480         ld_shlibs_CXX=no
10481         ;;
10482       cxx)
10483         allow_undefined_flag_CXX=' -expect_unresolved \*'
10484         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10485         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10486           echo "-hidden">> $lib.exp~
10487           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10488           $rm $lib.exp'
10489
10490         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10491         hardcode_libdir_separator_CXX=:
10492
10493         # Commands to make compiler produce verbose output that lists
10494         # what "hidden" libraries, object files and flags are used when
10495         # linking a shared library.
10496         #
10497         # There doesn't appear to be a way to prevent this compiler from
10498         # explicitly linking system object files so we need to strip them
10499         # from the output so that they don't get included in the library
10500         # dependencies.
10501         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'
10502         ;;
10503       *)
10504         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10505           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10506          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10507
10508           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10509           hardcode_libdir_separator_CXX=:
10510
10511           # Commands to make compiler produce verbose output that lists
10512           # what "hidden" libraries, object files and flags are used when
10513           # linking a shared library.
10514           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10515
10516         else
10517           # FIXME: insert proper C++ library support
10518           ld_shlibs_CXX=no
10519         fi
10520         ;;
10521     esac
10522     ;;
10523   psos*)
10524     # FIXME: insert proper C++ library support
10525     ld_shlibs_CXX=no
10526     ;;
10527   sco*)
10528     archive_cmds_need_lc_CXX=no
10529     case $cc_basename in
10530       CC)
10531         # FIXME: insert proper C++ library support
10532         ld_shlibs_CXX=no
10533         ;;
10534       *)
10535         # FIXME: insert proper C++ library support
10536         ld_shlibs_CXX=no
10537         ;;
10538     esac
10539     ;;
10540   sunos4*)
10541     case $cc_basename in
10542       CC)
10543         # Sun C++ 4.x
10544         # FIXME: insert proper C++ library support
10545         ld_shlibs_CXX=no
10546         ;;
10547       lcc)
10548         # Lucid
10549         # FIXME: insert proper C++ library support
10550         ld_shlibs_CXX=no
10551         ;;
10552       *)
10553         # FIXME: insert proper C++ library support
10554         ld_shlibs_CXX=no
10555         ;;
10556     esac
10557     ;;
10558   solaris*)
10559     case $cc_basename in
10560       CC)
10561         # Sun C++ 4.2, 5.x and Centerline C++
10562         no_undefined_flag_CXX=' -zdefs'
10563         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10564         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10565         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10566
10567         hardcode_libdir_flag_spec_CXX='-R$libdir'
10568         hardcode_shlibpath_var_CXX=no
10569         case $host_os in
10570           solaris2.0-5 | solaris2.0-5.*) ;;
10571           *)
10572             # The C++ compiler is used as linker so we must use $wl
10573             # flag to pass the commands to the underlying system
10574             # linker.
10575             # Supported since Solaris 2.6 (maybe 2.5.1?)
10576             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10577             ;;
10578         esac
10579         link_all_deplibs_CXX=yes
10580
10581         # Commands to make compiler produce verbose output that lists
10582         # what "hidden" libraries, object files and flags are used when
10583         # linking a shared library.
10584         #
10585         # There doesn't appear to be a way to prevent this compiler from
10586         # explicitly linking system object files so we need to strip them
10587         # from the output so that they don't get included in the library
10588         # dependencies.
10589         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10590
10591         # Archives containing C++ object files must be created using
10592         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10593         # necessary to make sure instantiated templates are included
10594         # in the archive.
10595         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10596         ;;
10597       gcx)
10598         # Green Hills C++ Compiler
10599         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10600
10601         # The C++ compiler must be used to create the archive.
10602         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10603         ;;
10604       *)
10605         # GNU C++ compiler with Solaris linker
10606         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10607           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10608           if $CC --version | grep -v '^2\.7' > /dev/null; then
10609             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10610             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10611                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10612
10613             # Commands to make compiler produce verbose output that lists
10614             # what "hidden" libraries, object files and flags are used when
10615             # linking a shared library.
10616             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10617           else
10618             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10619             # platform.
10620             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10621             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10622                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10623
10624             # Commands to make compiler produce verbose output that lists
10625             # what "hidden" libraries, object files and flags are used when
10626             # linking a shared library.
10627             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10628           fi
10629
10630           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10631         fi
10632         ;;
10633     esac
10634     ;;
10635   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10636     archive_cmds_need_lc_CXX=no
10637     ;;
10638   tandem*)
10639     case $cc_basename in
10640       NCC)
10641         # NonStop-UX NCC 3.20
10642         # FIXME: insert proper C++ library support
10643         ld_shlibs_CXX=no
10644         ;;
10645       *)
10646         # FIXME: insert proper C++ library support
10647         ld_shlibs_CXX=no
10648         ;;
10649     esac
10650     ;;
10651   vxworks*)
10652     # FIXME: insert proper C++ library support
10653     ld_shlibs_CXX=no
10654     ;;
10655   *)
10656     # FIXME: insert proper C++ library support
10657     ld_shlibs_CXX=no
10658     ;;
10659 esac
10660 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10661 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10662 test "$ld_shlibs_CXX" = no && can_build_shared=no
10663
10664 GCC_CXX="$GXX"
10665 LD_CXX="$LD"
10666
10667
10668 cat > conftest.$ac_ext <<EOF
10669 class Foo
10670 {
10671 public:
10672   Foo (void) { a = 0; }
10673 private:
10674   int a;
10675 };
10676 EOF
10677
10678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10679   (eval $ac_compile) 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; then
10683   # Parse the compiler output and extract the necessary
10684   # objects, libraries and library flags.
10685
10686   # Sentinel used to keep track of whether or not we are before
10687   # the conftest object file.
10688   pre_test_object_deps_done=no
10689
10690   # The `*' in the case matches for architectures that use `case' in
10691   # $output_verbose_cmd can trigger glob expansion during the loop
10692   # eval without this substitution.
10693   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10694
10695   for p in `eval $output_verbose_link_cmd`; do
10696     case $p in
10697
10698     -L* | -R* | -l*)
10699        # Some compilers place space between "-{L,R}" and the path.
10700        # Remove the space.
10701        if test $p = "-L" \
10702           || test $p = "-R"; then
10703          prev=$p
10704          continue
10705        else
10706          prev=
10707        fi
10708
10709        if test "$pre_test_object_deps_done" = no; then
10710          case $p in
10711          -L* | -R*)
10712            # Internal compiler library paths should come after those
10713            # provided the user.  The postdeps already come after the
10714            # user supplied libs so there is no need to process them.
10715            if test -z "$compiler_lib_search_path_CXX"; then
10716              compiler_lib_search_path_CXX="${prev}${p}"
10717            else
10718              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10719            fi
10720            ;;
10721          # The "-l" case would never come before the object being
10722          # linked, so don't bother handling this case.
10723          esac
10724        else
10725          if test -z "$postdeps_CXX"; then
10726            postdeps_CXX="${prev}${p}"
10727          else
10728            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10729          fi
10730        fi
10731        ;;
10732
10733     *.$objext)
10734        # This assumes that the test object file only shows up
10735        # once in the compiler output.
10736        if test "$p" = "conftest.$objext"; then
10737          pre_test_object_deps_done=yes
10738          continue
10739        fi
10740
10741        if test "$pre_test_object_deps_done" = no; then
10742          if test -z "$predep_objects_CXX"; then
10743            predep_objects_CXX="$p"
10744          else
10745            predep_objects_CXX="$predep_objects_CXX $p"
10746          fi
10747        else
10748          if test -z "$postdep_objects_CXX"; then
10749            postdep_objects_CXX="$p"
10750          else
10751            postdep_objects_CXX="$postdep_objects_CXX $p"
10752          fi
10753        fi
10754        ;;
10755
10756     *) ;; # Ignore the rest.
10757
10758     esac
10759   done
10760
10761   # Clean up.
10762   rm -f a.out a.exe
10763 else
10764   echo "libtool.m4: error: problem compiling CXX test program"
10765 fi
10766
10767 $rm -f confest.$objext
10768
10769 case " $postdeps_CXX " in
10770 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10771 esac
10772
10773 lt_prog_compiler_wl_CXX=
10774 lt_prog_compiler_pic_CXX=
10775 lt_prog_compiler_static_CXX=
10776
10777 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10778 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10779
10780   # C++ specific cases for pic, static, wl, etc.
10781   if test "$GXX" = yes; then
10782     lt_prog_compiler_wl_CXX='-Wl,'
10783     lt_prog_compiler_static_CXX='-static'
10784
10785     case $host_os in
10786     aix*)
10787       # All AIX code is PIC.
10788       if test "$host_cpu" = ia64; then
10789         # AIX 5 now supports IA64 processor
10790         lt_prog_compiler_static_CXX='-Bstatic'
10791       fi
10792       ;;
10793     amigaos*)
10794       # FIXME: we need at least 68020 code to build shared libraries, but
10795       # adding the `-m68020' flag to GCC prevents building anything better,
10796       # like `-m68040'.
10797       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10798       ;;
10799     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10800       # PIC is the default for these OSes.
10801       ;;
10802     mingw* | os2* | pw32*)
10803       # This hack is so that the source file can tell whether it is being
10804       # built for inclusion in a dll (and should export symbols for example).
10805       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10806       ;;
10807     darwin* | rhapsody*)
10808       # PIC is the default on this platform
10809       # Common symbols not allowed in MH_DYLIB files
10810       lt_prog_compiler_pic_CXX='-fno-common'
10811       ;;
10812     *djgpp*)
10813       # DJGPP does not support shared libraries at all
10814       lt_prog_compiler_pic_CXX=
10815       ;;
10816     sysv4*MP*)
10817       if test -d /usr/nec; then
10818         lt_prog_compiler_pic_CXX=-Kconform_pic
10819       fi
10820       ;;
10821     hpux*)
10822       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10823       # not for PA HP-UX.
10824       case "$host_cpu" in
10825       hppa*64*|ia64*)
10826         ;;
10827       *)
10828         lt_prog_compiler_pic_CXX='-fPIC'
10829         ;;
10830       esac
10831       ;;
10832     *)
10833       lt_prog_compiler_pic_CXX='-fPIC'
10834       ;;
10835     esac
10836   else
10837     case $host_os in
10838       aix4* | aix5*)
10839         # All AIX code is PIC.
10840         if test "$host_cpu" = ia64; then
10841           # AIX 5 now supports IA64 processor
10842           lt_prog_compiler_static_CXX='-Bstatic'
10843         else
10844           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10845         fi
10846         ;;
10847       chorus*)
10848         case $cc_basename in
10849         cxch68)
10850           # Green Hills C++ Compiler
10851           # _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"
10852           ;;
10853         esac
10854         ;;
10855       dgux*)
10856         case $cc_basename in
10857           ec++)
10858             lt_prog_compiler_pic_CXX='-KPIC'
10859             ;;
10860           ghcx)
10861             # Green Hills C++ Compiler
10862             lt_prog_compiler_pic_CXX='-pic'
10863             ;;
10864           *)
10865             ;;
10866         esac
10867         ;;
10868       freebsd* | kfreebsd*-gnu)
10869         # FreeBSD uses GNU C++
10870         ;;
10871       hpux9* | hpux10* | hpux11*)
10872         case $cc_basename in
10873           CC)
10874             lt_prog_compiler_wl_CXX='-Wl,'
10875             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10876             if test "$host_cpu" != ia64; then
10877               lt_prog_compiler_pic_CXX='+Z'
10878             fi
10879             ;;
10880           aCC)
10881             lt_prog_compiler_wl_CXX='-Wl,'
10882             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10883             case "$host_cpu" in
10884             hppa*64*|ia64*)
10885               # +Z the default
10886               ;;
10887             *)
10888               lt_prog_compiler_pic_CXX='+Z'
10889               ;;
10890             esac
10891             ;;
10892           *)
10893             ;;
10894         esac
10895         ;;
10896       irix5* | irix6* | nonstopux*)
10897         case $cc_basename in
10898           CC)
10899             lt_prog_compiler_wl_CXX='-Wl,'
10900             lt_prog_compiler_static_CXX='-non_shared'
10901             # CC pic flag -KPIC is the default.
10902             ;;
10903           *)
10904             ;;
10905         esac
10906         ;;
10907       linux*)
10908         case $cc_basename in
10909           KCC)
10910             # KAI C++ Compiler
10911             lt_prog_compiler_wl_CXX='--backend -Wl,'
10912             lt_prog_compiler_pic_CXX='-fPIC'
10913             ;;
10914           icpc)
10915             # Intel C++
10916             lt_prog_compiler_wl_CXX='-Wl,'
10917             lt_prog_compiler_pic_CXX='-KPIC'
10918             lt_prog_compiler_static_CXX='-static'
10919             ;;
10920           cxx)
10921             # Compaq C++
10922             # Make sure the PIC flag is empty.  It appears that all Alpha
10923             # Linux and Compaq Tru64 Unix objects are PIC.
10924             lt_prog_compiler_pic_CXX=
10925             lt_prog_compiler_static_CXX='-non_shared'
10926             ;;
10927           *)
10928             ;;
10929         esac
10930         ;;
10931       lynxos*)
10932         ;;
10933       m88k*)
10934         ;;
10935       mvs*)
10936         case $cc_basename in
10937           cxx)
10938             lt_prog_compiler_pic_CXX='-W c,exportall'
10939             ;;
10940           *)
10941             ;;
10942         esac
10943         ;;
10944       netbsd*)
10945         ;;
10946       osf3* | osf4* | osf5*)
10947         case $cc_basename in
10948           KCC)
10949             lt_prog_compiler_wl_CXX='--backend -Wl,'
10950             ;;
10951           RCC)
10952             # Rational C++ 2.4.1
10953             lt_prog_compiler_pic_CXX='-pic'
10954             ;;
10955           cxx)
10956             # Digital/Compaq C++
10957             lt_prog_compiler_wl_CXX='-Wl,'
10958             # Make sure the PIC flag is empty.  It appears that all Alpha
10959             # Linux and Compaq Tru64 Unix objects are PIC.
10960             lt_prog_compiler_pic_CXX=
10961             lt_prog_compiler_static_CXX='-non_shared'
10962             ;;
10963           *)
10964             ;;
10965         esac
10966         ;;
10967       psos*)
10968         ;;
10969       sco*)
10970         case $cc_basename in
10971           CC)
10972             lt_prog_compiler_pic_CXX='-fPIC'
10973             ;;
10974           *)
10975             ;;
10976         esac
10977         ;;
10978       solaris*)
10979         case $cc_basename in
10980           CC)
10981             # Sun C++ 4.2, 5.x and Centerline C++
10982             lt_prog_compiler_pic_CXX='-KPIC'
10983             lt_prog_compiler_static_CXX='-Bstatic'
10984             lt_prog_compiler_wl_CXX='-Qoption ld '
10985             ;;
10986           gcx)
10987             # Green Hills C++ Compiler
10988             lt_prog_compiler_pic_CXX='-PIC'
10989             ;;
10990           *)
10991             ;;
10992         esac
10993         ;;
10994       sunos4*)
10995         case $cc_basename in
10996           CC)
10997             # Sun C++ 4.x
10998             lt_prog_compiler_pic_CXX='-pic'
10999             lt_prog_compiler_static_CXX='-Bstatic'
11000             ;;
11001           lcc)
11002             # Lucid
11003             lt_prog_compiler_pic_CXX='-pic'
11004             ;;
11005           *)
11006             ;;
11007         esac
11008         ;;
11009       tandem*)
11010         case $cc_basename in
11011           NCC)
11012             # NonStop-UX NCC 3.20
11013             lt_prog_compiler_pic_CXX='-KPIC'
11014             ;;
11015           *)
11016             ;;
11017         esac
11018         ;;
11019       unixware*)
11020         ;;
11021       vxworks*)
11022         ;;
11023       *)
11024         lt_prog_compiler_can_build_shared_CXX=no
11025         ;;
11026     esac
11027   fi
11028
11029 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11030 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11031
11032 #
11033 # Check to make sure the PIC flag actually works.
11034 #
11035 if test -n "$lt_prog_compiler_pic_CXX"; then
11036
11037 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11038 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11039 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11040   echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042   lt_prog_compiler_pic_works_CXX=no
11043   ac_outfile=conftest.$ac_objext
11044    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11045    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11046    # Insert the option either (1) after the last *FLAGS variable, or
11047    # (2) before a word containing "conftest.", or (3) at the end.
11048    # Note that $ac_compile itself does not contain backslashes and begins
11049    # with a dollar sign (not a hyphen), so the echo should work correctly.
11050    # The option is referenced via a variable to avoid confusing sed.
11051    lt_compile=`echo "$ac_compile" | $SED \
11052    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11053    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11054    -e 's:$: $lt_compiler_flag:'`
11055    (eval echo "\"\$as_me:11055: $lt_compile\"" >&5)
11056    (eval "$lt_compile" 2>conftest.err)
11057    ac_status=$?
11058    cat conftest.err >&5
11059    echo "$as_me:11059: \$? = $ac_status" >&5
11060    if (exit $ac_status) && test -s "$ac_outfile"; then
11061      # The compiler can only warn and ignore the option if not recognized
11062      # So say no if there are warnings
11063      if test ! -s conftest.err; then
11064        lt_prog_compiler_pic_works_CXX=yes
11065      fi
11066    fi
11067    $rm conftest*
11068
11069 fi
11070 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11071 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11072
11073 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11074     case $lt_prog_compiler_pic_CXX in
11075      "" | " "*) ;;
11076      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11077      esac
11078 else
11079     lt_prog_compiler_pic_CXX=
11080      lt_prog_compiler_can_build_shared_CXX=no
11081 fi
11082
11083 fi
11084 case "$host_os" in
11085   # For platforms which do not support PIC, -DPIC is meaningless:
11086   *djgpp*)
11087     lt_prog_compiler_pic_CXX=
11088     ;;
11089   *)
11090     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11091     ;;
11092 esac
11093
11094 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11095 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11096 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11097   echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099   lt_cv_prog_compiler_c_o_CXX=no
11100    $rm -r conftest 2>/dev/null
11101    mkdir conftest
11102    cd conftest
11103    mkdir out
11104    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11105
11106    lt_compiler_flag="-o out/conftest2.$ac_objext"
11107    # Insert the option either (1) after the last *FLAGS variable, or
11108    # (2) before a word containing "conftest.", or (3) at the end.
11109    # Note that $ac_compile itself does not contain backslashes and begins
11110    # with a dollar sign (not a hyphen), so the echo should work correctly.
11111    lt_compile=`echo "$ac_compile" | $SED \
11112    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11113    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11114    -e 's:$: $lt_compiler_flag:'`
11115    (eval echo "\"\$as_me:11115: $lt_compile\"" >&5)
11116    (eval "$lt_compile" 2>out/conftest.err)
11117    ac_status=$?
11118    cat out/conftest.err >&5
11119    echo "$as_me:11119: \$? = $ac_status" >&5
11120    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11121    then
11122      # The compiler can only warn and ignore the option if not recognized
11123      # So say no if there are warnings
11124      if test ! -s out/conftest.err; then
11125        lt_cv_prog_compiler_c_o_CXX=yes
11126      fi
11127    fi
11128    chmod u+w .
11129    $rm conftest*
11130    # SGI C++ compiler will create directory out/ii_files/ for
11131    # template instantiation
11132    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11133    $rm out/* && rmdir out
11134    cd ..
11135    rmdir conftest
11136    $rm conftest*
11137
11138 fi
11139 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11140 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11141
11142
11143 hard_links="nottested"
11144 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11145   # do not overwrite the value of need_locks provided by the user
11146   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11147 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11148   hard_links=yes
11149   $rm conftest*
11150   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11151   touch conftest.a
11152   ln conftest.a conftest.b 2>&5 || hard_links=no
11153   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11154   echo "$as_me:$LINENO: result: $hard_links" >&5
11155 echo "${ECHO_T}$hard_links" >&6
11156   if test "$hard_links" = no; then
11157     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11158 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11159     need_locks=warn
11160   fi
11161 else
11162   need_locks=no
11163 fi
11164
11165 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11166 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11167
11168   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11169   case $host_os in
11170   aix4* | aix5*)
11171     # If we're using GNU nm, then we don't want the "-C" option.
11172     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11173     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11174       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'
11175     else
11176       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'
11177     fi
11178     ;;
11179   pw32*)
11180     export_symbols_cmds_CXX="$ltdll_cmds"
11181   ;;
11182   cygwin* | mingw*)
11183     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11184   ;;
11185   *)
11186     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11187   ;;
11188   esac
11189
11190 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11191 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11192 test "$ld_shlibs_CXX" = no && can_build_shared=no
11193
11194 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11195 if test "$GCC" = yes; then
11196   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11197 fi
11198
11199 #
11200 # Do we need to explicitly link libc?
11201 #
11202 case "x$archive_cmds_need_lc_CXX" in
11203 x|xyes)
11204   # Assume -lc should be added
11205   archive_cmds_need_lc_CXX=yes
11206
11207   if test "$enable_shared" = yes && test "$GCC" = yes; then
11208     case $archive_cmds_CXX in
11209     *'~'*)
11210       # FIXME: we may have to deal with multi-command sequences.
11211       ;;
11212     '$CC '*)
11213       # Test whether the compiler implicitly links with -lc since on some
11214       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11215       # to ld, don't add -lc before -lgcc.
11216       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11217 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11218       $rm conftest*
11219       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11220
11221       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222   (eval $ac_compile) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } 2>conftest.err; then
11226         soname=conftest
11227         lib=conftest
11228         libobjs=conftest.$ac_objext
11229         deplibs=
11230         wl=$lt_prog_compiler_wl_CXX
11231         compiler_flags=-v
11232         linker_flags=-v
11233         verstring=
11234         output_objdir=.
11235         libname=conftest
11236         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11237         allow_undefined_flag_CXX=
11238         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11239   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }
11243         then
11244           archive_cmds_need_lc_CXX=no
11245         else
11246           archive_cmds_need_lc_CXX=yes
11247         fi
11248         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11249       else
11250         cat conftest.err 1>&5
11251       fi
11252       $rm conftest*
11253       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11254 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11255       ;;
11256     esac
11257   fi
11258   ;;
11259 esac
11260
11261 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11262 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11263 library_names_spec=
11264 libname_spec='lib$name'
11265 soname_spec=
11266 shrext_cmds=".so"
11267 postinstall_cmds=
11268 postuninstall_cmds=
11269 finish_cmds=
11270 finish_eval=
11271 shlibpath_var=
11272 shlibpath_overrides_runpath=unknown
11273 version_type=none
11274 dynamic_linker="$host_os ld.so"
11275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11276 if test "$GCC" = yes; then
11277   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11278   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11279     # if the path contains ";" then we assume it to be the separator
11280     # otherwise default to the standard path separator (i.e. ":") - it is
11281     # assumed that no part of a normal pathname contains ";" but that should
11282     # okay in the real world where ";" in dirpaths is itself problematic.
11283     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11284   else
11285     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11286   fi
11287 else
11288   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11289 fi
11290 need_lib_prefix=unknown
11291 hardcode_into_libs=no
11292
11293 # when you set need_version to no, make sure it does not cause -set_version
11294 # flags to be left without arguments
11295 need_version=unknown
11296
11297 case $host_os in
11298 aix3*)
11299   version_type=linux
11300   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11301   shlibpath_var=LIBPATH
11302
11303   # AIX 3 has no versioning support, so we append a major version to the name.
11304   soname_spec='${libname}${release}${shared_ext}$major'
11305   ;;
11306
11307 aix4* | aix5*)
11308   version_type=linux
11309   need_lib_prefix=no
11310   need_version=no
11311   hardcode_into_libs=yes
11312   if test "$host_cpu" = ia64; then
11313     # AIX 5 supports IA64
11314     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11315     shlibpath_var=LD_LIBRARY_PATH
11316   else
11317     # With GCC up to 2.95.x, collect2 would create an import file
11318     # for dependence libraries.  The import file would start with
11319     # the line `#! .'.  This would cause the generated library to
11320     # depend on `.', always an invalid library.  This was fixed in
11321     # development snapshots of GCC prior to 3.0.
11322     case $host_os in
11323       aix4 | aix4.[01] | aix4.[01].*)
11324       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11325            echo ' yes '
11326            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11327         :
11328       else
11329         can_build_shared=no
11330       fi
11331       ;;
11332     esac
11333     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11334     # soname into executable. Probably we can add versioning support to
11335     # collect2, so additional links can be useful in future.
11336     if test "$aix_use_runtimelinking" = yes; then
11337       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11338       # instead of lib<name>.a to let people know that these are not
11339       # typical AIX shared libraries.
11340       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341     else
11342       # We preserve .a as extension for shared libraries through AIX4.2
11343       # and later when we are not doing run time linking.
11344       library_names_spec='${libname}${release}.a $libname.a'
11345       soname_spec='${libname}${release}${shared_ext}$major'
11346     fi
11347     shlibpath_var=LIBPATH
11348   fi
11349   ;;
11350
11351 amigaos*)
11352   library_names_spec='$libname.ixlibrary $libname.a'
11353   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11354   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'
11355   ;;
11356
11357 beos*)
11358   library_names_spec='${libname}${shared_ext}'
11359   dynamic_linker="$host_os ld.so"
11360   shlibpath_var=LIBRARY_PATH
11361   ;;
11362
11363 bsdi4*)
11364   version_type=linux
11365   need_version=no
11366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11367   soname_spec='${libname}${release}${shared_ext}$major'
11368   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11369   shlibpath_var=LD_LIBRARY_PATH
11370   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11371   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11372   # the default ld.so.conf also contains /usr/contrib/lib and
11373   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11374   # libtool to hard-code these into programs
11375   ;;
11376
11377 cygwin* | mingw* | pw32*)
11378   version_type=windows
11379   shrext_cmds=".dll"
11380   need_version=no
11381   need_lib_prefix=no
11382
11383   case $GCC,$host_os in
11384   yes,cygwin* | yes,mingw* | yes,pw32*)
11385     library_names_spec='$libname.dll.a'
11386     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11387     postinstall_cmds='base_file=`basename \${file}`~
11388       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11389       dldir=$destdir/`dirname \$dlpath`~
11390       test -d \$dldir || mkdir -p \$dldir~
11391       $install_prog $dir/$dlname \$dldir/$dlname'
11392     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11393       dlpath=$dir/\$dldll~
11394        $rm \$dlpath'
11395     shlibpath_overrides_runpath=yes
11396
11397     case $host_os in
11398     cygwin*)
11399       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11400       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11401       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11402       ;;
11403     mingw*)
11404       # MinGW DLLs use traditional 'lib' prefix
11405       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11406       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11407       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11408         # It is most probably a Windows format PATH printed by
11409         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11410         # path with ; separators, and with drive letters. We can handle the
11411         # drive letters (cygwin fileutils understands them), so leave them,
11412         # especially as we might pass files found there to a mingw objdump,
11413         # which wouldn't understand a cygwinified path. Ahh.
11414         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11415       else
11416         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11417       fi
11418       ;;
11419     pw32*)
11420       # pw32 DLLs use 'pw' prefix rather than 'lib'
11421       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11422       ;;
11423     esac
11424     ;;
11425
11426   *)
11427     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11428     ;;
11429   esac
11430   dynamic_linker='Win32 ld.exe'
11431   # FIXME: first we should search . and the directory the executable is in
11432   shlibpath_var=PATH
11433   ;;
11434
11435 darwin* | rhapsody*)
11436   dynamic_linker="$host_os dyld"
11437   version_type=darwin
11438   need_lib_prefix=no
11439   need_version=no
11440   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11441   soname_spec='${libname}${release}${major}$shared_ext'
11442   shlibpath_overrides_runpath=yes
11443   shlibpath_var=DYLD_LIBRARY_PATH
11444   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11445   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11446   if test "$GCC" = yes; then
11447     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"`
11448   else
11449     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11450   fi
11451   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11452   ;;
11453
11454 dgux*)
11455   version_type=linux
11456   need_lib_prefix=no
11457   need_version=no
11458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11459   soname_spec='${libname}${release}${shared_ext}$major'
11460   shlibpath_var=LD_LIBRARY_PATH
11461   ;;
11462
11463 freebsd1*)
11464   dynamic_linker=no
11465   ;;
11466
11467 kfreebsd*-gnu)
11468   version_type=linux
11469   need_lib_prefix=no
11470   need_version=no
11471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11472   soname_spec='${libname}${release}${shared_ext}$major'
11473   shlibpath_var=LD_LIBRARY_PATH
11474   shlibpath_overrides_runpath=no
11475   hardcode_into_libs=yes
11476   dynamic_linker='GNU ld.so'
11477   ;;
11478
11479 freebsd*)
11480   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11481   version_type=freebsd-$objformat
11482   case $version_type in
11483     freebsd-elf*)
11484       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11485       need_version=no
11486       need_lib_prefix=no
11487       ;;
11488     freebsd-*)
11489       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11490       need_version=yes
11491       ;;
11492   esac
11493   shlibpath_var=LD_LIBRARY_PATH
11494   case $host_os in
11495   freebsd2*)
11496     shlibpath_overrides_runpath=yes
11497     ;;
11498   freebsd3.01* | freebsdelf3.01*)
11499     shlibpath_overrides_runpath=yes
11500     hardcode_into_libs=yes
11501     ;;
11502   *) # from 3.2 on
11503     shlibpath_overrides_runpath=no
11504     hardcode_into_libs=yes
11505     ;;
11506   esac
11507   ;;
11508
11509 gnu*)
11510   version_type=linux
11511   need_lib_prefix=no
11512   need_version=no
11513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11514   soname_spec='${libname}${release}${shared_ext}$major'
11515   shlibpath_var=LD_LIBRARY_PATH
11516   hardcode_into_libs=yes
11517   ;;
11518
11519 hpux9* | hpux10* | hpux11*)
11520   # Give a soname corresponding to the major version so that dld.sl refuses to
11521   # link against other versions.
11522   version_type=sunos
11523   need_lib_prefix=no
11524   need_version=no
11525   case "$host_cpu" in
11526   ia64*)
11527     shrext_cmds='.so'
11528     hardcode_into_libs=yes
11529     dynamic_linker="$host_os dld.so"
11530     shlibpath_var=LD_LIBRARY_PATH
11531     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533     soname_spec='${libname}${release}${shared_ext}$major'
11534     if test "X$HPUX_IA64_MODE" = X32; then
11535       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11536     else
11537       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11538     fi
11539     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11540     ;;
11541    hppa*64*)
11542      shrext_cmds='.sl'
11543      hardcode_into_libs=yes
11544      dynamic_linker="$host_os dld.sl"
11545      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11546      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11547      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548      soname_spec='${libname}${release}${shared_ext}$major'
11549      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11550      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11551      ;;
11552    *)
11553     shrext_cmds='.sl'
11554     dynamic_linker="$host_os dld.sl"
11555     shlibpath_var=SHLIB_PATH
11556     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558     soname_spec='${libname}${release}${shared_ext}$major'
11559     ;;
11560   esac
11561   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11562   postinstall_cmds='chmod 555 $lib'
11563   ;;
11564
11565 irix5* | irix6* | nonstopux*)
11566   case $host_os in
11567     nonstopux*) version_type=nonstopux ;;
11568     *)
11569         if test "$lt_cv_prog_gnu_ld" = yes; then
11570                 version_type=linux
11571         else
11572                 version_type=irix
11573         fi ;;
11574   esac
11575   need_lib_prefix=no
11576   need_version=no
11577   soname_spec='${libname}${release}${shared_ext}$major'
11578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11579   case $host_os in
11580   irix5* | nonstopux*)
11581     libsuff= shlibsuff=
11582     ;;
11583   *)
11584     case $LD in # libtool.m4 will add one of these switches to LD
11585     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11586       libsuff= shlibsuff= libmagic=32-bit;;
11587     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11588       libsuff=32 shlibsuff=N32 libmagic=N32;;
11589     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11590       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11591     *) libsuff= shlibsuff= libmagic=never-match;;
11592     esac
11593     ;;
11594   esac
11595   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11596   shlibpath_overrides_runpath=no
11597   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11598   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11599   hardcode_into_libs=yes
11600   ;;
11601
11602 # No shared lib support for Linux oldld, aout, or coff.
11603 linux*oldld* | linux*aout* | linux*coff*)
11604   dynamic_linker=no
11605   ;;
11606
11607 # This must be Linux ELF.
11608 linux*)
11609   version_type=linux
11610   need_lib_prefix=no
11611   need_version=no
11612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11613   soname_spec='${libname}${release}${shared_ext}$major'
11614   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11615   shlibpath_var=LD_LIBRARY_PATH
11616   shlibpath_overrides_runpath=no
11617   # This implies no fast_install, which is unacceptable.
11618   # Some rework will be needed to allow for fast_install
11619   # before this can be enabled.
11620   hardcode_into_libs=yes
11621
11622   # Append ld.so.conf contents to the search path
11623   if test -f /etc/ld.so.conf; then
11624     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11625     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11626   fi
11627
11628   # We used to test for /lib/ld.so.1 and disable shared libraries on
11629   # powerpc, because MkLinux only supported shared libraries with the
11630   # GNU dynamic linker.  Since this was broken with cross compilers,
11631   # most powerpc-linux boxes support dynamic linking these days and
11632   # people can always --disable-shared, the test was removed, and we
11633   # assume the GNU/Linux dynamic linker is in use.
11634   dynamic_linker='GNU/Linux ld.so'
11635   ;;
11636
11637 knetbsd*-gnu)
11638   version_type=linux
11639   need_lib_prefix=no
11640   need_version=no
11641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11642   soname_spec='${libname}${release}${shared_ext}$major'
11643   shlibpath_var=LD_LIBRARY_PATH
11644   shlibpath_overrides_runpath=no
11645   hardcode_into_libs=yes
11646   dynamic_linker='GNU ld.so'
11647   ;;
11648
11649 netbsd*)
11650   version_type=sunos
11651   need_lib_prefix=no
11652   need_version=no
11653   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11655     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656     dynamic_linker='NetBSD (a.out) ld.so'
11657   else
11658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11659     soname_spec='${libname}${release}${shared_ext}$major'
11660     dynamic_linker='NetBSD ld.elf_so'
11661   fi
11662   shlibpath_var=LD_LIBRARY_PATH
11663   shlibpath_overrides_runpath=yes
11664   hardcode_into_libs=yes
11665   ;;
11666
11667 newsos6)
11668   version_type=linux
11669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670   shlibpath_var=LD_LIBRARY_PATH
11671   shlibpath_overrides_runpath=yes
11672   ;;
11673
11674 nto-qnx*)
11675   version_type=linux
11676   need_lib_prefix=no
11677   need_version=no
11678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679   soname_spec='${libname}${release}${shared_ext}$major'
11680   shlibpath_var=LD_LIBRARY_PATH
11681   shlibpath_overrides_runpath=yes
11682   ;;
11683
11684 openbsd*)
11685   version_type=sunos
11686   need_lib_prefix=no
11687   need_version=yes
11688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11689   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11690   shlibpath_var=LD_LIBRARY_PATH
11691   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11692     case $host_os in
11693       openbsd2.[89] | openbsd2.[89].*)
11694         shlibpath_overrides_runpath=no
11695         ;;
11696       *)
11697         shlibpath_overrides_runpath=yes
11698         ;;
11699       esac
11700   else
11701     shlibpath_overrides_runpath=yes
11702   fi
11703   ;;
11704
11705 os2*)
11706   libname_spec='$name'
11707   shrext_cmds=".dll"
11708   need_lib_prefix=no
11709   library_names_spec='$libname${shared_ext} $libname.a'
11710   dynamic_linker='OS/2 ld.exe'
11711   shlibpath_var=LIBPATH
11712   ;;
11713
11714 osf3* | osf4* | osf5*)
11715   version_type=osf
11716   need_lib_prefix=no
11717   need_version=no
11718   soname_spec='${libname}${release}${shared_ext}$major'
11719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720   shlibpath_var=LD_LIBRARY_PATH
11721   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11722   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11723   ;;
11724
11725 sco3.2v5*)
11726   version_type=osf
11727   soname_spec='${libname}${release}${shared_ext}$major'
11728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729   shlibpath_var=LD_LIBRARY_PATH
11730   ;;
11731
11732 solaris*)
11733   version_type=linux
11734   need_lib_prefix=no
11735   need_version=no
11736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737   soname_spec='${libname}${release}${shared_ext}$major'
11738   shlibpath_var=LD_LIBRARY_PATH
11739   shlibpath_overrides_runpath=yes
11740   hardcode_into_libs=yes
11741   # ldd complains unless libraries are executable
11742   postinstall_cmds='chmod +x $lib'
11743   ;;
11744
11745 sunos4*)
11746   version_type=sunos
11747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11748   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11749   shlibpath_var=LD_LIBRARY_PATH
11750   shlibpath_overrides_runpath=yes
11751   if test "$with_gnu_ld" = yes; then
11752     need_lib_prefix=no
11753   fi
11754   need_version=yes
11755   ;;
11756
11757 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11758   version_type=linux
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   shlibpath_var=LD_LIBRARY_PATH
11762   case $host_vendor in
11763     sni)
11764       shlibpath_overrides_runpath=no
11765       need_lib_prefix=no
11766       export_dynamic_flag_spec='${wl}-Blargedynsym'
11767       runpath_var=LD_RUN_PATH
11768       ;;
11769     siemens)
11770       need_lib_prefix=no
11771       ;;
11772     motorola)
11773       need_lib_prefix=no
11774       need_version=no
11775       shlibpath_overrides_runpath=no
11776       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11777       ;;
11778   esac
11779   ;;
11780
11781 sysv4*MP*)
11782   if test -d /usr/nec ;then
11783     version_type=linux
11784     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11785     soname_spec='$libname${shared_ext}.$major'
11786     shlibpath_var=LD_LIBRARY_PATH
11787   fi
11788   ;;
11789
11790 uts4*)
11791   version_type=linux
11792   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11793   soname_spec='${libname}${release}${shared_ext}$major'
11794   shlibpath_var=LD_LIBRARY_PATH
11795   ;;
11796
11797 *)
11798   dynamic_linker=no
11799   ;;
11800 esac
11801 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11802 echo "${ECHO_T}$dynamic_linker" >&6
11803 test "$dynamic_linker" = no && can_build_shared=no
11804
11805 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11806 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11807 hardcode_action_CXX=
11808 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11809    test -n "$runpath_var CXX" || \
11810    test "X$hardcode_automatic_CXX"="Xyes" ; then
11811
11812   # We can hardcode non-existant directories.
11813   if test "$hardcode_direct_CXX" != no &&
11814      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11815      # have to relink, otherwise we might link with an installed library
11816      # when we should be linking with a yet-to-be-installed one
11817      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11818      test "$hardcode_minus_L_CXX" != no; then
11819     # Linking always hardcodes the temporary library directory.
11820     hardcode_action_CXX=relink
11821   else
11822     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11823     hardcode_action_CXX=immediate
11824   fi
11825 else
11826   # We cannot hardcode anything, or else we can only hardcode existing
11827   # directories.
11828   hardcode_action_CXX=unsupported
11829 fi
11830 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11831 echo "${ECHO_T}$hardcode_action_CXX" >&6
11832
11833 if test "$hardcode_action_CXX" = relink; then
11834   # Fast installation is not supported
11835   enable_fast_install=no
11836 elif test "$shlibpath_overrides_runpath" = yes ||
11837      test "$enable_shared" = no; then
11838   # Fast installation is not necessary
11839   enable_fast_install=needless
11840 fi
11841
11842 striplib=
11843 old_striplib=
11844 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11845 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11846 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11847   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11848   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11849   echo "$as_me:$LINENO: result: yes" >&5
11850 echo "${ECHO_T}yes" >&6
11851 else
11852 # FIXME - insert some real tests, host_os isn't really good enough
11853   case $host_os in
11854    darwin*)
11855        if test -n "$STRIP" ; then
11856          striplib="$STRIP -x"
11857          echo "$as_me:$LINENO: result: yes" >&5
11858 echo "${ECHO_T}yes" >&6
11859        else
11860   echo "$as_me:$LINENO: result: no" >&5
11861 echo "${ECHO_T}no" >&6
11862 fi
11863        ;;
11864    *)
11865   echo "$as_me:$LINENO: result: no" >&5
11866 echo "${ECHO_T}no" >&6
11867     ;;
11868   esac
11869 fi
11870
11871 if test "x$enable_dlopen" != xyes; then
11872   enable_dlopen=unknown
11873   enable_dlopen_self=unknown
11874   enable_dlopen_self_static=unknown
11875 else
11876   lt_cv_dlopen=no
11877   lt_cv_dlopen_libs=
11878
11879   case $host_os in
11880   beos*)
11881     lt_cv_dlopen="load_add_on"
11882     lt_cv_dlopen_libs=
11883     lt_cv_dlopen_self=yes
11884     ;;
11885
11886   mingw* | pw32*)
11887     lt_cv_dlopen="LoadLibrary"
11888     lt_cv_dlopen_libs=
11889    ;;
11890
11891   cygwin*)
11892     lt_cv_dlopen="dlopen"
11893     lt_cv_dlopen_libs=
11894    ;;
11895
11896   darwin*)
11897   # if libdl is installed we need to link against it
11898     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11899 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11900 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11901   echo $ECHO_N "(cached) $ECHO_C" >&6
11902 else
11903   ac_check_lib_save_LIBS=$LIBS
11904 LIBS="-ldl  $LIBS"
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h.  */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h.  */
11911
11912 /* Override any gcc2 internal prototype to avoid an error.  */
11913 #ifdef __cplusplus
11914 extern "C"
11915 #endif
11916 /* We use char because int might match the return type of a gcc2
11917    builtin and then its argument prototype would still apply.  */
11918 char dlopen ();
11919 int
11920 main ()
11921 {
11922 dlopen ();
11923   ;
11924   return 0;
11925 }
11926 _ACEOF
11927 rm -f conftest.$ac_objext conftest$ac_exeext
11928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11929   (eval $ac_link) 2>conftest.er1
11930   ac_status=$?
11931   grep -v '^ *+' conftest.er1 >conftest.err
11932   rm -f conftest.er1
11933   cat conftest.err >&5
11934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935   (exit $ac_status); } &&
11936          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
11937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938   (eval $ac_try) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; } &&
11942          { ac_try='test -s conftest$ac_exeext'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }; then
11948   ac_cv_lib_dl_dlopen=yes
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ac_cv_lib_dl_dlopen=no
11954 fi
11955 rm -f conftest.err conftest.$ac_objext \
11956       conftest$ac_exeext conftest.$ac_ext
11957 LIBS=$ac_check_lib_save_LIBS
11958 fi
11959 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11960 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11961 if test $ac_cv_lib_dl_dlopen = yes; then
11962   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11963 else
11964
11965     lt_cv_dlopen="dyld"
11966     lt_cv_dlopen_libs=
11967     lt_cv_dlopen_self=yes
11968
11969 fi
11970
11971    ;;
11972
11973   *)
11974     echo "$as_me:$LINENO: checking for shl_load" >&5
11975 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11976 if test "${ac_cv_func_shl_load+set}" = set; then
11977   echo $ECHO_N "(cached) $ECHO_C" >&6
11978 else
11979   cat >conftest.$ac_ext <<_ACEOF
11980 /* confdefs.h.  */
11981 _ACEOF
11982 cat confdefs.h >>conftest.$ac_ext
11983 cat >>conftest.$ac_ext <<_ACEOF
11984 /* end confdefs.h.  */
11985 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11987 #define shl_load innocuous_shl_load
11988
11989 /* System header to define __stub macros and hopefully few prototypes,
11990     which can conflict with char shl_load (); below.
11991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11992     <limits.h> exists even on freestanding compilers.  */
11993
11994 #ifdef __STDC__
11995 # include <limits.h>
11996 #else
11997 # include <assert.h>
11998 #endif
11999
12000 #undef shl_load
12001
12002 /* Override any gcc2 internal prototype to avoid an error.  */
12003 #ifdef __cplusplus
12004 extern "C"
12005 {
12006 #endif
12007 /* We use char because int might match the return type of a gcc2
12008    builtin and then its argument prototype would still apply.  */
12009 char shl_load ();
12010 /* The GNU C library defines this for functions which it implements
12011     to always fail with ENOSYS.  Some functions are actually named
12012     something starting with __ and the normal name is an alias.  */
12013 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12014 choke me
12015 #else
12016 char (*f) () = shl_load;
12017 #endif
12018 #ifdef __cplusplus
12019 }
12020 #endif
12021
12022 int
12023 main ()
12024 {
12025 return f != shl_load;
12026   ;
12027   return 0;
12028 }
12029 _ACEOF
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12032   (eval $ac_link) 2>conftest.er1
12033   ac_status=$?
12034   grep -v '^ *+' conftest.er1 >conftest.err
12035   rm -f conftest.er1
12036   cat conftest.err >&5
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } &&
12039          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041   (eval $ac_try) 2>&5
12042   ac_status=$?
12043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044   (exit $ac_status); }; } &&
12045          { ac_try='test -s conftest$ac_exeext'
12046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047   (eval $ac_try) 2>&5
12048   ac_status=$?
12049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050   (exit $ac_status); }; }; then
12051   ac_cv_func_shl_load=yes
12052 else
12053   echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12055
12056 ac_cv_func_shl_load=no
12057 fi
12058 rm -f conftest.err conftest.$ac_objext \
12059       conftest$ac_exeext conftest.$ac_ext
12060 fi
12061 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12062 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12063 if test $ac_cv_func_shl_load = yes; then
12064   lt_cv_dlopen="shl_load"
12065 else
12066   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12067 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12068 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12069   echo $ECHO_N "(cached) $ECHO_C" >&6
12070 else
12071   ac_check_lib_save_LIBS=$LIBS
12072 LIBS="-ldld  $LIBS"
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079
12080 /* Override any gcc2 internal prototype to avoid an error.  */
12081 #ifdef __cplusplus
12082 extern "C"
12083 #endif
12084 /* We use char because int might match the return type of a gcc2
12085    builtin and then its argument prototype would still apply.  */
12086 char shl_load ();
12087 int
12088 main ()
12089 {
12090 shl_load ();
12091   ;
12092   return 0;
12093 }
12094 _ACEOF
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097   (eval $ac_link) 2>conftest.er1
12098   ac_status=$?
12099   grep -v '^ *+' conftest.er1 >conftest.err
12100   rm -f conftest.er1
12101   cat conftest.err >&5
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); } &&
12104          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106   (eval $ac_try) 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); }; } &&
12110          { ac_try='test -s conftest$ac_exeext'
12111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112   (eval $ac_try) 2>&5
12113   ac_status=$?
12114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115   (exit $ac_status); }; }; then
12116   ac_cv_lib_dld_shl_load=yes
12117 else
12118   echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12120
12121 ac_cv_lib_dld_shl_load=no
12122 fi
12123 rm -f conftest.err conftest.$ac_objext \
12124       conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12126 fi
12127 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12128 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12129 if test $ac_cv_lib_dld_shl_load = yes; then
12130   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12131 else
12132   echo "$as_me:$LINENO: checking for dlopen" >&5
12133 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12134 if test "${ac_cv_func_dlopen+set}" = set; then
12135   echo $ECHO_N "(cached) $ECHO_C" >&6
12136 else
12137   cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12145 #define dlopen innocuous_dlopen
12146
12147 /* System header to define __stub macros and hopefully few prototypes,
12148     which can conflict with char dlopen (); below.
12149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12150     <limits.h> exists even on freestanding compilers.  */
12151
12152 #ifdef __STDC__
12153 # include <limits.h>
12154 #else
12155 # include <assert.h>
12156 #endif
12157
12158 #undef dlopen
12159
12160 /* Override any gcc2 internal prototype to avoid an error.  */
12161 #ifdef __cplusplus
12162 extern "C"
12163 {
12164 #endif
12165 /* We use char because int might match the return type of a gcc2
12166    builtin and then its argument prototype would still apply.  */
12167 char dlopen ();
12168 /* The GNU C library defines this for functions which it implements
12169     to always fail with ENOSYS.  Some functions are actually named
12170     something starting with __ and the normal name is an alias.  */
12171 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12172 choke me
12173 #else
12174 char (*f) () = dlopen;
12175 #endif
12176 #ifdef __cplusplus
12177 }
12178 #endif
12179
12180 int
12181 main ()
12182 {
12183 return f != dlopen;
12184   ;
12185   return 0;
12186 }
12187 _ACEOF
12188 rm -f conftest.$ac_objext conftest$ac_exeext
12189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12190   (eval $ac_link) 2>conftest.er1
12191   ac_status=$?
12192   grep -v '^ *+' conftest.er1 >conftest.err
12193   rm -f conftest.er1
12194   cat conftest.err >&5
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); } &&
12197          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12199   (eval $ac_try) 2>&5
12200   ac_status=$?
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); }; } &&
12203          { ac_try='test -s conftest$ac_exeext'
12204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205   (eval $ac_try) 2>&5
12206   ac_status=$?
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); }; }; then
12209   ac_cv_func_dlopen=yes
12210 else
12211   echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12213
12214 ac_cv_func_dlopen=no
12215 fi
12216 rm -f conftest.err conftest.$ac_objext \
12217       conftest$ac_exeext conftest.$ac_ext
12218 fi
12219 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12220 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12221 if test $ac_cv_func_dlopen = yes; then
12222   lt_cv_dlopen="dlopen"
12223 else
12224   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12227   echo $ECHO_N "(cached) $ECHO_C" >&6
12228 else
12229   ac_check_lib_save_LIBS=$LIBS
12230 LIBS="-ldl  $LIBS"
12231 cat >conftest.$ac_ext <<_ACEOF
12232 /* confdefs.h.  */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h.  */
12237
12238 /* Override any gcc2 internal prototype to avoid an error.  */
12239 #ifdef __cplusplus
12240 extern "C"
12241 #endif
12242 /* We use char because int might match the return type of a gcc2
12243    builtin and then its argument prototype would still apply.  */
12244 char dlopen ();
12245 int
12246 main ()
12247 {
12248 dlopen ();
12249   ;
12250   return 0;
12251 }
12252 _ACEOF
12253 rm -f conftest.$ac_objext conftest$ac_exeext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12255   (eval $ac_link) 2>conftest.er1
12256   ac_status=$?
12257   grep -v '^ *+' conftest.er1 >conftest.err
12258   rm -f conftest.er1
12259   cat conftest.err >&5
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); } &&
12262          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264   (eval $ac_try) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; } &&
12268          { ac_try='test -s conftest$ac_exeext'
12269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270   (eval $ac_try) 2>&5
12271   ac_status=$?
12272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273   (exit $ac_status); }; }; then
12274   ac_cv_lib_dl_dlopen=yes
12275 else
12276   echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12278
12279 ac_cv_lib_dl_dlopen=no
12280 fi
12281 rm -f conftest.err conftest.$ac_objext \
12282       conftest$ac_exeext conftest.$ac_ext
12283 LIBS=$ac_check_lib_save_LIBS
12284 fi
12285 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12286 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12287 if test $ac_cv_lib_dl_dlopen = yes; then
12288   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12289 else
12290   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12291 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12292 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295   ac_check_lib_save_LIBS=$LIBS
12296 LIBS="-lsvld  $LIBS"
12297 cat >conftest.$ac_ext <<_ACEOF
12298 /* confdefs.h.  */
12299 _ACEOF
12300 cat confdefs.h >>conftest.$ac_ext
12301 cat >>conftest.$ac_ext <<_ACEOF
12302 /* end confdefs.h.  */
12303
12304 /* Override any gcc2 internal prototype to avoid an error.  */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 /* We use char because int might match the return type of a gcc2
12309    builtin and then its argument prototype would still apply.  */
12310 char dlopen ();
12311 int
12312 main ()
12313 {
12314 dlopen ();
12315   ;
12316   return 0;
12317 }
12318 _ACEOF
12319 rm -f conftest.$ac_objext conftest$ac_exeext
12320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12321   (eval $ac_link) 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } &&
12328          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330   (eval $ac_try) 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }; } &&
12334          { ac_try='test -s conftest$ac_exeext'
12335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336   (eval $ac_try) 2>&5
12337   ac_status=$?
12338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339   (exit $ac_status); }; }; then
12340   ac_cv_lib_svld_dlopen=yes
12341 else
12342   echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345 ac_cv_lib_svld_dlopen=no
12346 fi
12347 rm -f conftest.err conftest.$ac_objext \
12348       conftest$ac_exeext conftest.$ac_ext
12349 LIBS=$ac_check_lib_save_LIBS
12350 fi
12351 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12352 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12353 if test $ac_cv_lib_svld_dlopen = yes; then
12354   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12355 else
12356   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12357 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12358 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12359   echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361   ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-ldld  $LIBS"
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h.  */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h.  */
12369
12370 /* Override any gcc2 internal prototype to avoid an error.  */
12371 #ifdef __cplusplus
12372 extern "C"
12373 #endif
12374 /* We use char because int might match the return type of a gcc2
12375    builtin and then its argument prototype would still apply.  */
12376 char dld_link ();
12377 int
12378 main ()
12379 {
12380 dld_link ();
12381   ;
12382   return 0;
12383 }
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12387   (eval $ac_link) 2>conftest.er1
12388   ac_status=$?
12389   grep -v '^ *+' conftest.er1 >conftest.err
12390   rm -f conftest.er1
12391   cat conftest.err >&5
12392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393   (exit $ac_status); } &&
12394          { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
12395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396   (eval $ac_try) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); }; } &&
12400          { ac_try='test -s conftest$ac_exeext'
12401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402   (eval $ac_try) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; }; then
12406   ac_cv_lib_dld_dld_link=yes
12407 else
12408   echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12410
12411 ac_cv_lib_dld_dld_link=no
12412 fi
12413 rm -f conftest.err conftest.$ac_objext \
12414       conftest$ac_exeext conftest.$ac_ext
12415 LIBS=$ac_check_lib_save_LIBS
12416 fi
12417 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12418 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12419 if test $ac_cv_lib_dld_dld_link = yes; then
12420   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12421 fi
12422
12423
12424 fi
12425
12426
12427 fi
12428
12429
12430 fi
12431
12432
12433 fi
12434
12435
12436 fi
12437
12438     ;;
12439   esac
12440
12441   if test "x$lt_cv_dlopen" != xno; then
12442     enable_dlopen=yes
12443   else
12444     enable_dlopen=no
12445   fi
12446
12447   case $lt_cv_dlopen in
12448   dlopen)
12449     save_CPPFLAGS="$CPPFLAGS"
12450     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12451
12452     save_LDFLAGS="$LDFLAGS"
12453     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12454
12455     save_LIBS="$LIBS"
12456     LIBS="$lt_cv_dlopen_libs $LIBS"
12457
12458     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12459 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12460 if test "${lt_cv_dlopen_self+set}" = set; then
12461   echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463           if test "$cross_compiling" = yes; then :
12464   lt_cv_dlopen_self=cross
12465 else
12466   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12467   lt_status=$lt_dlunknown
12468   cat > conftest.$ac_ext <<EOF
12469 #line 12469 "configure"
12470 #include "confdefs.h"
12471
12472 #if HAVE_DLFCN_H
12473 #include <dlfcn.h>
12474 #endif
12475
12476 #include <stdio.h>
12477
12478 #ifdef RTLD_GLOBAL
12479 #  define LT_DLGLOBAL           RTLD_GLOBAL
12480 #else
12481 #  ifdef DL_GLOBAL
12482 #    define LT_DLGLOBAL         DL_GLOBAL
12483 #  else
12484 #    define LT_DLGLOBAL         0
12485 #  endif
12486 #endif
12487
12488 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12489    find out it does not work in some platform. */
12490 #ifndef LT_DLLAZY_OR_NOW
12491 #  ifdef RTLD_LAZY
12492 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12493 #  else
12494 #    ifdef DL_LAZY
12495 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12496 #    else
12497 #      ifdef RTLD_NOW
12498 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12499 #      else
12500 #        ifdef DL_NOW
12501 #          define LT_DLLAZY_OR_NOW      DL_NOW
12502 #        else
12503 #          define LT_DLLAZY_OR_NOW      0
12504 #        endif
12505 #      endif
12506 #    endif
12507 #  endif
12508 #endif
12509
12510 #ifdef __cplusplus
12511 extern "C" void exit (int);
12512 #endif
12513
12514 void fnord() { int i=42;}
12515 int main ()
12516 {
12517   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12518   int status = $lt_dlunknown;
12519
12520   if (self)
12521     {
12522       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12523       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12524       /* dlclose (self); */
12525     }
12526
12527     exit (status);
12528 }
12529 EOF
12530   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531   (eval $ac_link) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12535     (./conftest; exit; ) 2>/dev/null
12536     lt_status=$?
12537     case x$lt_status in
12538       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12539       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12540       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12541     esac
12542   else :
12543     # compilation failed
12544     lt_cv_dlopen_self=no
12545   fi
12546 fi
12547 rm -fr conftest*
12548
12549
12550 fi
12551 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12552 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12553
12554     if test "x$lt_cv_dlopen_self" = xyes; then
12555       LDFLAGS="$LDFLAGS $link_static_flag"
12556       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12557 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12558 if test "${lt_cv_dlopen_self_static+set}" = set; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561           if test "$cross_compiling" = yes; then :
12562   lt_cv_dlopen_self_static=cross
12563 else
12564   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12565   lt_status=$lt_dlunknown
12566   cat > conftest.$ac_ext <<EOF
12567 #line 12567 "configure"
12568 #include "confdefs.h"
12569
12570 #if HAVE_DLFCN_H
12571 #include <dlfcn.h>
12572 #endif
12573
12574 #include <stdio.h>
12575
12576 #ifdef RTLD_GLOBAL
12577 #  define LT_DLGLOBAL           RTLD_GLOBAL
12578 #else
12579 #  ifdef DL_GLOBAL
12580 #    define LT_DLGLOBAL         DL_GLOBAL
12581 #  else
12582 #    define LT_DLGLOBAL         0
12583 #  endif
12584 #endif
12585
12586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12587    find out it does not work in some platform. */
12588 #ifndef LT_DLLAZY_OR_NOW
12589 #  ifdef RTLD_LAZY
12590 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12591 #  else
12592 #    ifdef DL_LAZY
12593 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12594 #    else
12595 #      ifdef RTLD_NOW
12596 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12597 #      else
12598 #        ifdef DL_NOW
12599 #          define LT_DLLAZY_OR_NOW      DL_NOW
12600 #        else
12601 #          define LT_DLLAZY_OR_NOW      0
12602 #        endif
12603 #      endif
12604 #    endif
12605 #  endif
12606 #endif
12607
12608 #ifdef __cplusplus
12609 extern "C" void exit (int);
12610 #endif
12611
12612 void fnord() { int i=42;}
12613 int main ()
12614 {
12615   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12616   int status = $lt_dlunknown;
12617
12618   if (self)
12619     {
12620       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12621       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12622       /* dlclose (self); */
12623     }
12624
12625     exit (status);
12626 }
12627 EOF
12628   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12629   (eval $ac_link) 2>&5
12630   ac_status=$?
12631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12633     (./conftest; exit; ) 2>/dev/null
12634     lt_status=$?
12635     case x$lt_status in
12636       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12637       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12638       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12639     esac
12640   else :
12641     # compilation failed
12642     lt_cv_dlopen_self_static=no
12643   fi
12644 fi
12645 rm -fr conftest*
12646
12647
12648 fi
12649 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12650 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12651     fi
12652
12653     CPPFLAGS="$save_CPPFLAGS"
12654     LDFLAGS="$save_LDFLAGS"
12655     LIBS="$save_LIBS"
12656     ;;
12657   esac
12658
12659   case $lt_cv_dlopen_self in
12660   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12661   *) enable_dlopen_self=unknown ;;
12662   esac
12663
12664   case $lt_cv_dlopen_self_static in
12665   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12666   *) enable_dlopen_self_static=unknown ;;
12667   esac
12668 fi
12669
12670
12671 # The else clause should only fire when bootstrapping the
12672 # libtool distribution, otherwise you forgot to ship ltmain.sh
12673 # with your package, and you will get complaints that there are
12674 # no rules to generate ltmain.sh.
12675 if test -f "$ltmain"; then
12676   # See if we are running on zsh, and set the options which allow our commands through
12677   # without removal of \ escapes.
12678   if test -n "${ZSH_VERSION+set}" ; then
12679     setopt NO_GLOB_SUBST
12680   fi
12681   # Now quote all the things that may contain metacharacters while being
12682   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12683   # variables and quote the copies for generation of the libtool script.
12684   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12685     SED SHELL STRIP \
12686     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12687     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12688     deplibs_check_method reload_flag reload_cmds need_locks \
12689     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12690     lt_cv_sys_global_symbol_to_c_name_address \
12691     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12692     old_postinstall_cmds old_postuninstall_cmds \
12693     compiler_CXX \
12694     CC_CXX \
12695     LD_CXX \
12696     lt_prog_compiler_wl_CXX \
12697     lt_prog_compiler_pic_CXX \
12698     lt_prog_compiler_static_CXX \
12699     lt_prog_compiler_no_builtin_flag_CXX \
12700     export_dynamic_flag_spec_CXX \
12701     thread_safe_flag_spec_CXX \
12702     whole_archive_flag_spec_CXX \
12703     enable_shared_with_static_runtimes_CXX \
12704     old_archive_cmds_CXX \
12705     old_archive_from_new_cmds_CXX \
12706     predep_objects_CXX \
12707     postdep_objects_CXX \
12708     predeps_CXX \
12709     postdeps_CXX \
12710     compiler_lib_search_path_CXX \
12711     archive_cmds_CXX \
12712     archive_expsym_cmds_CXX \
12713     postinstall_cmds_CXX \
12714     postuninstall_cmds_CXX \
12715     old_archive_from_expsyms_cmds_CXX \
12716     allow_undefined_flag_CXX \
12717     no_undefined_flag_CXX \
12718     export_symbols_cmds_CXX \
12719     hardcode_libdir_flag_spec_CXX \
12720     hardcode_libdir_flag_spec_ld_CXX \
12721     hardcode_libdir_separator_CXX \
12722     hardcode_automatic_CXX \
12723     module_cmds_CXX \
12724     module_expsym_cmds_CXX \
12725     lt_cv_prog_compiler_c_o_CXX \
12726     exclude_expsyms_CXX \
12727     include_expsyms_CXX; do
12728
12729     case $var in
12730     old_archive_cmds_CXX | \
12731     old_archive_from_new_cmds_CXX | \
12732     archive_cmds_CXX | \
12733     archive_expsym_cmds_CXX | \
12734     module_cmds_CXX | \
12735     module_expsym_cmds_CXX | \
12736     old_archive_from_expsyms_cmds_CXX | \
12737     export_symbols_cmds_CXX | \
12738     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12739     postinstall_cmds | postuninstall_cmds | \
12740     old_postinstall_cmds | old_postuninstall_cmds | \
12741     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12742       # Double-quote double-evaled strings.
12743       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12744       ;;
12745     *)
12746       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12747       ;;
12748     esac
12749   done
12750
12751   case $lt_echo in
12752   *'\$0 --fallback-echo"')
12753     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12754     ;;
12755   esac
12756
12757 cfgfile="$ofile"
12758
12759   cat <<__EOF__ >> "$cfgfile"
12760 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12761
12762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12763
12764 # Shell to use when invoking shell scripts.
12765 SHELL=$lt_SHELL
12766
12767 # Whether or not to build shared libraries.
12768 build_libtool_libs=$enable_shared
12769
12770 # Whether or not to build static libraries.
12771 build_old_libs=$enable_static
12772
12773 # Whether or not to add -lc for building shared libraries.
12774 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12775
12776 # Whether or not to disallow shared libs when runtime libs are static
12777 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12778
12779 # Whether or not to optimize for fast installation.
12780 fast_install=$enable_fast_install
12781
12782 # The host system.
12783 host_alias=$host_alias
12784 host=$host
12785
12786 # An echo program that does not interpret backslashes.
12787 echo=$lt_echo
12788
12789 # The archiver.
12790 AR=$lt_AR
12791 AR_FLAGS=$lt_AR_FLAGS
12792
12793 # A C compiler.
12794 LTCC=$lt_LTCC
12795
12796 # A language-specific compiler.
12797 CC=$lt_compiler_CXX
12798
12799 # Is the compiler the GNU C compiler?
12800 with_gcc=$GCC_CXX
12801
12802 # An ERE matcher.
12803 EGREP=$lt_EGREP
12804
12805 # The linker used to build libraries.
12806 LD=$lt_LD_CXX
12807
12808 # Whether we need hard or soft links.
12809 LN_S=$lt_LN_S
12810
12811 # A BSD-compatible nm program.
12812 NM=$lt_NM
12813
12814 # A symbol stripping program
12815 STRIP=$lt_STRIP
12816
12817 # Used to examine libraries when file_magic_cmd begins "file"
12818 MAGIC_CMD=$MAGIC_CMD
12819
12820 # Used on cygwin: DLL creation program.
12821 DLLTOOL="$DLLTOOL"
12822
12823 # Used on cygwin: object dumper.
12824 OBJDUMP="$OBJDUMP"
12825
12826 # Used on cygwin: assembler.
12827 AS="$AS"
12828
12829 # The name of the directory that contains temporary libtool files.
12830 objdir=$objdir
12831
12832 # How to create reloadable object files.
12833 reload_flag=$lt_reload_flag
12834 reload_cmds=$lt_reload_cmds
12835
12836 # How to pass a linker flag through the compiler.
12837 wl=$lt_lt_prog_compiler_wl_CXX
12838
12839 # Object file suffix (normally "o").
12840 objext="$ac_objext"
12841
12842 # Old archive suffix (normally "a").
12843 libext="$libext"
12844
12845 # Shared library suffix (normally ".so").
12846 shrext_cmds='$shrext_cmds'
12847
12848 # Executable file suffix (normally "").
12849 exeext="$exeext"
12850
12851 # Additional compiler flags for building library objects.
12852 pic_flag=$lt_lt_prog_compiler_pic_CXX
12853 pic_mode=$pic_mode
12854
12855 # What is the maximum length of a command?
12856 max_cmd_len=$lt_cv_sys_max_cmd_len
12857
12858 # Does compiler simultaneously support -c and -o options?
12859 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12860
12861 # Must we lock files when doing compilation ?
12862 need_locks=$lt_need_locks
12863
12864 # Do we need the lib prefix for modules?
12865 need_lib_prefix=$need_lib_prefix
12866
12867 # Do we need a version for libraries?
12868 need_version=$need_version
12869
12870 # Whether dlopen is supported.
12871 dlopen_support=$enable_dlopen
12872
12873 # Whether dlopen of programs is supported.
12874 dlopen_self=$enable_dlopen_self
12875
12876 # Whether dlopen of statically linked programs is supported.
12877 dlopen_self_static=$enable_dlopen_self_static
12878
12879 # Compiler flag to prevent dynamic linking.
12880 link_static_flag=$lt_lt_prog_compiler_static_CXX
12881
12882 # Compiler flag to turn off builtin functions.
12883 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12884
12885 # Compiler flag to allow reflexive dlopens.
12886 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12887
12888 # Compiler flag to generate shared objects directly from archives.
12889 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12890
12891 # Compiler flag to generate thread-safe objects.
12892 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12893
12894 # Library versioning type.
12895 version_type=$version_type
12896
12897 # Format of library name prefix.
12898 libname_spec=$lt_libname_spec
12899
12900 # List of archive names.  First name is the real one, the rest are links.
12901 # The last name is the one that the linker finds with -lNAME.
12902 library_names_spec=$lt_library_names_spec
12903
12904 # The coded name of the library, if different from the real name.
12905 soname_spec=$lt_soname_spec
12906
12907 # Commands used to build and install an old-style archive.
12908 RANLIB=$lt_RANLIB
12909 old_archive_cmds=$lt_old_archive_cmds_CXX
12910 old_postinstall_cmds=$lt_old_postinstall_cmds
12911 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12912
12913 # Create an old-style archive from a shared archive.
12914 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12915
12916 # Create a temporary old-style archive to link instead of a shared archive.
12917 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12918
12919 # Commands used to build and install a shared archive.
12920 archive_cmds=$lt_archive_cmds_CXX
12921 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12922 postinstall_cmds=$lt_postinstall_cmds
12923 postuninstall_cmds=$lt_postuninstall_cmds
12924
12925 # Commands used to build a loadable module (assumed same as above if empty)
12926 module_cmds=$lt_module_cmds_CXX
12927 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12928
12929 # Commands to strip libraries.
12930 old_striplib=$lt_old_striplib
12931 striplib=$lt_striplib
12932
12933 # Dependencies to place before the objects being linked to create a
12934 # shared library.
12935 predep_objects=$lt_predep_objects_CXX
12936
12937 # Dependencies to place after the objects being linked to create a
12938 # shared library.
12939 postdep_objects=$lt_postdep_objects_CXX
12940
12941 # Dependencies to place before the objects being linked to create a
12942 # shared library.
12943 predeps=$lt_predeps_CXX
12944
12945 # Dependencies to place after the objects being linked to create a
12946 # shared library.
12947 postdeps=$lt_postdeps_CXX
12948
12949 # The library search path used internally by the compiler when linking
12950 # a shared library.
12951 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12952
12953 # Method to check whether dependent libraries are shared objects.
12954 deplibs_check_method=$lt_deplibs_check_method
12955
12956 # Command to use when deplibs_check_method == file_magic.
12957 file_magic_cmd=$lt_file_magic_cmd
12958
12959 # Flag that allows shared libraries with undefined symbols to be built.
12960 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12961
12962 # Flag that forces no undefined symbols.
12963 no_undefined_flag=$lt_no_undefined_flag_CXX
12964
12965 # Commands used to finish a libtool library installation in a directory.
12966 finish_cmds=$lt_finish_cmds
12967
12968 # Same as above, but a single script fragment to be evaled but not shown.
12969 finish_eval=$lt_finish_eval
12970
12971 # Take the output of nm and produce a listing of raw symbols and C names.
12972 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12973
12974 # Transform the output of nm in a proper C declaration
12975 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12976
12977 # Transform the output of nm in a C name address pair
12978 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12979
12980 # This is the shared library runtime path variable.
12981 runpath_var=$runpath_var
12982
12983 # This is the shared library path variable.
12984 shlibpath_var=$shlibpath_var
12985
12986 # Is shlibpath searched before the hard-coded library search path?
12987 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12988
12989 # How to hardcode a shared library path into an executable.
12990 hardcode_action=$hardcode_action_CXX
12991
12992 # Whether we should hardcode library paths into libraries.
12993 hardcode_into_libs=$hardcode_into_libs
12994
12995 # Flag to hardcode \$libdir into a binary during linking.
12996 # This must work even if \$libdir does not exist.
12997 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12998
12999 # If ld is used when linking, flag to hardcode \$libdir into
13000 # a binary during linking. This must work even if \$libdir does
13001 # not exist.
13002 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13003
13004 # Whether we need a single -rpath flag with a separated argument.
13005 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13006
13007 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13008 # resulting binary.
13009 hardcode_direct=$hardcode_direct_CXX
13010
13011 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13012 # resulting binary.
13013 hardcode_minus_L=$hardcode_minus_L_CXX
13014
13015 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13016 # the resulting binary.
13017 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13018
13019 # Set to yes if building a shared library automatically hardcodes DIR into the library
13020 # and all subsequent libraries and executables linked against it.
13021 hardcode_automatic=$hardcode_automatic_CXX
13022
13023 # Variables whose values should be saved in libtool wrapper scripts and
13024 # restored at relink time.
13025 variables_saved_for_relink="$variables_saved_for_relink"
13026
13027 # Whether libtool must link a program against all its dependency libraries.
13028 link_all_deplibs=$link_all_deplibs_CXX
13029
13030 # Compile-time system search path for libraries
13031 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13032
13033 # Run-time system search path for libraries
13034 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13035
13036 # Fix the shell variable \$srcfile for the compiler.
13037 fix_srcfile_path="$fix_srcfile_path_CXX"
13038
13039 # Set to yes if exported symbols are required.
13040 always_export_symbols=$always_export_symbols_CXX
13041
13042 # The commands to list exported symbols.
13043 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13044
13045 # The commands to extract the exported symbol list from a shared archive.
13046 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13047
13048 # Symbols that should not be listed in the preloaded symbols.
13049 exclude_expsyms=$lt_exclude_expsyms_CXX
13050
13051 # Symbols that must always be exported.
13052 include_expsyms=$lt_include_expsyms_CXX
13053
13054 # ### END LIBTOOL TAG CONFIG: $tagname
13055
13056 __EOF__
13057
13058
13059 else
13060   # If there is no Makefile yet, we rely on a make rule to execute
13061   # `config.status --recheck' to rerun these tests and create the
13062   # libtool script then.
13063   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13064   if test -f "$ltmain_in"; then
13065     test -f Makefile && make "$ltmain"
13066   fi
13067 fi
13068
13069
13070 ac_ext=c
13071 ac_cpp='$CPP $CPPFLAGS'
13072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13075
13076 CC=$lt_save_CC
13077 LDCXX=$LD
13078 LD=$lt_save_LD
13079 GCC=$lt_save_GCC
13080 with_gnu_ldcxx=$with_gnu_ld
13081 with_gnu_ld=$lt_save_with_gnu_ld
13082 lt_cv_path_LDCXX=$lt_cv_path_LD
13083 lt_cv_path_LD=$lt_save_path_LD
13084 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13085 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13086
13087         else
13088           tagname=""
13089         fi
13090         ;;
13091
13092       F77)
13093         if test -n "$F77" && test "X$F77" != "Xno"; then
13094
13095 ac_ext=f
13096 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13097 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13099
13100
13101 archive_cmds_need_lc_F77=no
13102 allow_undefined_flag_F77=
13103 always_export_symbols_F77=no
13104 archive_expsym_cmds_F77=
13105 export_dynamic_flag_spec_F77=
13106 hardcode_direct_F77=no
13107 hardcode_libdir_flag_spec_F77=
13108 hardcode_libdir_flag_spec_ld_F77=
13109 hardcode_libdir_separator_F77=
13110 hardcode_minus_L_F77=no
13111 hardcode_automatic_F77=no
13112 module_cmds_F77=
13113 module_expsym_cmds_F77=
13114 link_all_deplibs_F77=unknown
13115 old_archive_cmds_F77=$old_archive_cmds
13116 no_undefined_flag_F77=
13117 whole_archive_flag_spec_F77=
13118 enable_shared_with_static_runtimes_F77=no
13119
13120 # Source file extension for f77 test sources.
13121 ac_ext=f
13122
13123 # Object file extension for compiled f77 test sources.
13124 objext=o
13125 objext_F77=$objext
13126
13127 # Code to be used in simple compile tests
13128 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13129
13130 # Code to be used in simple link tests
13131 lt_simple_link_test_code="      program t\n      end\n"
13132
13133 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13134
13135 # If no C compiler was specified, use CC.
13136 LTCC=${LTCC-"$CC"}
13137
13138 # Allow CC to be a program name with arguments.
13139 compiler=$CC
13140
13141
13142 # Allow CC to be a program name with arguments.
13143 lt_save_CC="$CC"
13144 CC=${F77-"f77"}
13145 compiler=$CC
13146 compiler_F77=$CC
13147 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13148
13149 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13150 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13151 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13152 echo "${ECHO_T}$can_build_shared" >&6
13153
13154 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13155 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13156 test "$can_build_shared" = "no" && enable_shared=no
13157
13158 # On AIX, shared libraries and static libraries use the same namespace, and
13159 # are all built from PIC.
13160 case "$host_os" in
13161 aix3*)
13162   test "$enable_shared" = yes && enable_static=no
13163   if test -n "$RANLIB"; then
13164     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13165     postinstall_cmds='$RANLIB $lib'
13166   fi
13167   ;;
13168 aix4* | aix5*)
13169   test "$enable_shared" = yes && enable_static=no
13170   ;;
13171 esac
13172 echo "$as_me:$LINENO: result: $enable_shared" >&5
13173 echo "${ECHO_T}$enable_shared" >&6
13174
13175 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13176 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13177 # Make sure either enable_shared or enable_static is yes.
13178 test "$enable_shared" = yes || enable_static=yes
13179 echo "$as_me:$LINENO: result: $enable_static" >&5
13180 echo "${ECHO_T}$enable_static" >&6
13181
13182 test "$ld_shlibs_F77" = no && can_build_shared=no
13183
13184 GCC_F77="$G77"
13185 LD_F77="$LD"
13186
13187 lt_prog_compiler_wl_F77=
13188 lt_prog_compiler_pic_F77=
13189 lt_prog_compiler_static_F77=
13190
13191 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13192 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13193
13194   if test "$GCC" = yes; then
13195     lt_prog_compiler_wl_F77='-Wl,'
13196     lt_prog_compiler_static_F77='-static'
13197
13198     case $host_os in
13199       aix*)
13200       # All AIX code is PIC.
13201       if test "$host_cpu" = ia64; then
13202         # AIX 5 now supports IA64 processor
13203         lt_prog_compiler_static_F77='-Bstatic'
13204       fi
13205       ;;
13206
13207     amigaos*)
13208       # FIXME: we need at least 68020 code to build shared libraries, but
13209       # adding the `-m68020' flag to GCC prevents building anything better,
13210       # like `-m68040'.
13211       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13212       ;;
13213
13214     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13215       # PIC is the default for these OSes.
13216       ;;
13217
13218     mingw* | pw32* | os2*)
13219       # This hack is so that the source file can tell whether it is being
13220       # built for inclusion in a dll (and should export symbols for example).
13221       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13222       ;;
13223
13224     darwin* | rhapsody*)
13225       # PIC is the default on this platform
13226       # Common symbols not allowed in MH_DYLIB files
13227       lt_prog_compiler_pic_F77='-fno-common'
13228       ;;
13229
13230     msdosdjgpp*)
13231       # Just because we use GCC doesn't mean we suddenly get shared libraries
13232       # on systems that don't support them.
13233       lt_prog_compiler_can_build_shared_F77=no
13234       enable_shared=no
13235       ;;
13236
13237     sysv4*MP*)
13238       if test -d /usr/nec; then
13239         lt_prog_compiler_pic_F77=-Kconform_pic
13240       fi
13241       ;;
13242
13243     hpux*)
13244       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13245       # not for PA HP-UX.
13246       case "$host_cpu" in
13247       hppa*64*|ia64*)
13248         # +Z the default
13249         ;;
13250       *)
13251         lt_prog_compiler_pic_F77='-fPIC'
13252         ;;
13253       esac
13254       ;;
13255
13256     *)
13257       lt_prog_compiler_pic_F77='-fPIC'
13258       ;;
13259     esac
13260   else
13261     # PORTME Check for flag to pass linker flags through the system compiler.
13262     case $host_os in
13263     aix*)
13264       lt_prog_compiler_wl_F77='-Wl,'
13265       if test "$host_cpu" = ia64; then
13266         # AIX 5 now supports IA64 processor
13267         lt_prog_compiler_static_F77='-Bstatic'
13268       else
13269         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13270       fi
13271       ;;
13272
13273     mingw* | pw32* | os2*)
13274       # This hack is so that the source file can tell whether it is being
13275       # built for inclusion in a dll (and should export symbols for example).
13276       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13277       ;;
13278
13279     hpux9* | hpux10* | hpux11*)
13280       lt_prog_compiler_wl_F77='-Wl,'
13281       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13282       # not for PA HP-UX.
13283       case "$host_cpu" in
13284       hppa*64*|ia64*)
13285         # +Z the default
13286         ;;
13287       *)
13288         lt_prog_compiler_pic_F77='+Z'
13289         ;;
13290       esac
13291       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13292       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13293       ;;
13294
13295     irix5* | irix6* | nonstopux*)
13296       lt_prog_compiler_wl_F77='-Wl,'
13297       # PIC (with -KPIC) is the default.
13298       lt_prog_compiler_static_F77='-non_shared'
13299       ;;
13300
13301     newsos6)
13302       lt_prog_compiler_pic_F77='-KPIC'
13303       lt_prog_compiler_static_F77='-Bstatic'
13304       ;;
13305
13306     linux*)
13307       case $CC in
13308       icc* | ecc*)
13309         lt_prog_compiler_wl_F77='-Wl,'
13310         lt_prog_compiler_pic_F77='-KPIC'
13311         lt_prog_compiler_static_F77='-static'
13312         ;;
13313       ccc*)
13314         lt_prog_compiler_wl_F77='-Wl,'
13315         # All Alpha code is PIC.
13316         lt_prog_compiler_static_F77='-non_shared'
13317         ;;
13318       esac
13319       ;;
13320
13321     osf3* | osf4* | osf5*)
13322       lt_prog_compiler_wl_F77='-Wl,'
13323       # All OSF/1 code is PIC.
13324       lt_prog_compiler_static_F77='-non_shared'
13325       ;;
13326
13327     sco3.2v5*)
13328       lt_prog_compiler_pic_F77='-Kpic'
13329       lt_prog_compiler_static_F77='-dn'
13330       ;;
13331
13332     solaris*)
13333       lt_prog_compiler_wl_F77='-Wl,'
13334       lt_prog_compiler_pic_F77='-KPIC'
13335       lt_prog_compiler_static_F77='-Bstatic'
13336       ;;
13337
13338     sunos4*)
13339       lt_prog_compiler_wl_F77='-Qoption ld '
13340       lt_prog_compiler_pic_F77='-PIC'
13341       lt_prog_compiler_static_F77='-Bstatic'
13342       ;;
13343
13344     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13345       lt_prog_compiler_wl_F77='-Wl,'
13346       lt_prog_compiler_pic_F77='-KPIC'
13347       lt_prog_compiler_static_F77='-Bstatic'
13348       ;;
13349
13350     sysv4*MP*)
13351       if test -d /usr/nec ;then
13352         lt_prog_compiler_pic_F77='-Kconform_pic'
13353         lt_prog_compiler_static_F77='-Bstatic'
13354       fi
13355       ;;
13356
13357     uts4*)
13358       lt_prog_compiler_pic_F77='-pic'
13359       lt_prog_compiler_static_F77='-Bstatic'
13360       ;;
13361
13362     *)
13363       lt_prog_compiler_can_build_shared_F77=no
13364       ;;
13365     esac
13366   fi
13367
13368 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13369 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13370
13371 #
13372 # Check to make sure the PIC flag actually works.
13373 #
13374 if test -n "$lt_prog_compiler_pic_F77"; then
13375
13376 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13377 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13378 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13379   echo $ECHO_N "(cached) $ECHO_C" >&6
13380 else
13381   lt_prog_compiler_pic_works_F77=no
13382   ac_outfile=conftest.$ac_objext
13383    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13384    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13385    # Insert the option either (1) after the last *FLAGS variable, or
13386    # (2) before a word containing "conftest.", or (3) at the end.
13387    # Note that $ac_compile itself does not contain backslashes and begins
13388    # with a dollar sign (not a hyphen), so the echo should work correctly.
13389    # The option is referenced via a variable to avoid confusing sed.
13390    lt_compile=`echo "$ac_compile" | $SED \
13391    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13393    -e 's:$: $lt_compiler_flag:'`
13394    (eval echo "\"\$as_me:13394: $lt_compile\"" >&5)
13395    (eval "$lt_compile" 2>conftest.err)
13396    ac_status=$?
13397    cat conftest.err >&5
13398    echo "$as_me:13398: \$? = $ac_status" >&5
13399    if (exit $ac_status) && test -s "$ac_outfile"; then
13400      # The compiler can only warn and ignore the option if not recognized
13401      # So say no if there are warnings
13402      if test ! -s conftest.err; then
13403        lt_prog_compiler_pic_works_F77=yes
13404      fi
13405    fi
13406    $rm conftest*
13407
13408 fi
13409 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13410 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13411
13412 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13413     case $lt_prog_compiler_pic_F77 in
13414      "" | " "*) ;;
13415      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13416      esac
13417 else
13418     lt_prog_compiler_pic_F77=
13419      lt_prog_compiler_can_build_shared_F77=no
13420 fi
13421
13422 fi
13423 case "$host_os" in
13424   # For platforms which do not support PIC, -DPIC is meaningless:
13425   *djgpp*)
13426     lt_prog_compiler_pic_F77=
13427     ;;
13428   *)
13429     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13430     ;;
13431 esac
13432
13433 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13434 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13435 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13436   echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438   lt_cv_prog_compiler_c_o_F77=no
13439    $rm -r conftest 2>/dev/null
13440    mkdir conftest
13441    cd conftest
13442    mkdir out
13443    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13444
13445    lt_compiler_flag="-o out/conftest2.$ac_objext"
13446    # Insert the option either (1) after the last *FLAGS variable, or
13447    # (2) before a word containing "conftest.", or (3) at the end.
13448    # Note that $ac_compile itself does not contain backslashes and begins
13449    # with a dollar sign (not a hyphen), so the echo should work correctly.
13450    lt_compile=`echo "$ac_compile" | $SED \
13451    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13452    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13453    -e 's:$: $lt_compiler_flag:'`
13454    (eval echo "\"\$as_me:13454: $lt_compile\"" >&5)
13455    (eval "$lt_compile" 2>out/conftest.err)
13456    ac_status=$?
13457    cat out/conftest.err >&5
13458    echo "$as_me:13458: \$? = $ac_status" >&5
13459    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13460    then
13461      # The compiler can only warn and ignore the option if not recognized
13462      # So say no if there are warnings
13463      if test ! -s out/conftest.err; then
13464        lt_cv_prog_compiler_c_o_F77=yes
13465      fi
13466    fi
13467    chmod u+w .
13468    $rm conftest*
13469    # SGI C++ compiler will create directory out/ii_files/ for
13470    # template instantiation
13471    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13472    $rm out/* && rmdir out
13473    cd ..
13474    rmdir conftest
13475    $rm conftest*
13476
13477 fi
13478 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13479 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13480
13481
13482 hard_links="nottested"
13483 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13484   # do not overwrite the value of need_locks provided by the user
13485   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13486 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13487   hard_links=yes
13488   $rm conftest*
13489   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13490   touch conftest.a
13491   ln conftest.a conftest.b 2>&5 || hard_links=no
13492   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13493   echo "$as_me:$LINENO: result: $hard_links" >&5
13494 echo "${ECHO_T}$hard_links" >&6
13495   if test "$hard_links" = no; then
13496     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13497 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13498     need_locks=warn
13499   fi
13500 else
13501   need_locks=no
13502 fi
13503
13504 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13505 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13506
13507   runpath_var=
13508   allow_undefined_flag_F77=
13509   enable_shared_with_static_runtimes_F77=no
13510   archive_cmds_F77=
13511   archive_expsym_cmds_F77=
13512   old_archive_From_new_cmds_F77=
13513   old_archive_from_expsyms_cmds_F77=
13514   export_dynamic_flag_spec_F77=
13515   whole_archive_flag_spec_F77=
13516   thread_safe_flag_spec_F77=
13517   hardcode_libdir_flag_spec_F77=
13518   hardcode_libdir_flag_spec_ld_F77=
13519   hardcode_libdir_separator_F77=
13520   hardcode_direct_F77=no
13521   hardcode_minus_L_F77=no
13522   hardcode_shlibpath_var_F77=unsupported
13523   link_all_deplibs_F77=unknown
13524   hardcode_automatic_F77=no
13525   module_cmds_F77=
13526   module_expsym_cmds_F77=
13527   always_export_symbols_F77=no
13528   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13529   # include_expsyms should be a list of space-separated symbols to be *always*
13530   # included in the symbol list
13531   include_expsyms_F77=
13532   # exclude_expsyms can be an extended regexp of symbols to exclude
13533   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13534   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13535   # as well as any symbol that contains `d'.
13536   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13537   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13538   # platforms (ab)use it in PIC code, but their linkers get confused if
13539   # the symbol is explicitly referenced.  Since portable code cannot
13540   # rely on this symbol name, it's probably fine to never include it in
13541   # preloaded symbol tables.
13542   extract_expsyms_cmds=
13543
13544   case $host_os in
13545   cygwin* | mingw* | pw32*)
13546     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13547     # When not using gcc, we currently assume that we are using
13548     # Microsoft Visual C++.
13549     if test "$GCC" != yes; then
13550       with_gnu_ld=no
13551     fi
13552     ;;
13553   openbsd*)
13554     with_gnu_ld=no
13555     ;;
13556   esac
13557
13558   ld_shlibs_F77=yes
13559   if test "$with_gnu_ld" = yes; then
13560     # If archive_cmds runs LD, not CC, wlarc should be empty
13561     wlarc='${wl}'
13562
13563     # See if GNU ld supports shared libraries.
13564     case $host_os in
13565     aix3* | aix4* | aix5*)
13566       # On AIX/PPC, the GNU linker is very broken
13567       if test "$host_cpu" != ia64; then
13568         ld_shlibs_F77=no
13569         cat <<EOF 1>&2
13570
13571 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13572 *** to be unable to reliably create shared libraries on AIX.
13573 *** Therefore, libtool is disabling shared libraries support.  If you
13574 *** really care for shared libraries, you may want to modify your PATH
13575 *** so that a non-GNU linker is found, and then restart.
13576
13577 EOF
13578       fi
13579       ;;
13580
13581     amigaos*)
13582       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13583       hardcode_libdir_flag_spec_F77='-L$libdir'
13584       hardcode_minus_L_F77=yes
13585
13586       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13587       # that the semantics of dynamic libraries on AmigaOS, at least up
13588       # to version 4, is to share data among multiple programs linked
13589       # with the same dynamic library.  Since this doesn't match the
13590       # behavior of shared libraries on other platforms, we can't use
13591       # them.
13592       ld_shlibs_F77=no
13593       ;;
13594
13595     beos*)
13596       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13597         allow_undefined_flag_F77=unsupported
13598         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13599         # support --undefined.  This deserves some investigation.  FIXME
13600         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13601       else
13602         ld_shlibs_F77=no
13603       fi
13604       ;;
13605
13606     cygwin* | mingw* | pw32*)
13607       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13608       # as there is no search path for DLLs.
13609       hardcode_libdir_flag_spec_F77='-L$libdir'
13610       allow_undefined_flag_F77=unsupported
13611       always_export_symbols_F77=no
13612       enable_shared_with_static_runtimes_F77=yes
13613       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13614
13615       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13616         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13617         # If the export-symbols file already is a .def file (1st line
13618         # is EXPORTS), use it as is; otherwise, prepend...
13619         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13620           cp $export_symbols $output_objdir/$soname.def;
13621         else
13622           echo EXPORTS > $output_objdir/$soname.def;
13623           cat $export_symbols >> $output_objdir/$soname.def;
13624         fi~
13625         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13626       else
13627         ld_shlibs=no
13628       fi
13629       ;;
13630
13631     netbsd*)
13632       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13633         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13634         wlarc=
13635       else
13636         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13637         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13638       fi
13639       ;;
13640
13641     solaris* | sysv5*)
13642       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13643         ld_shlibs_F77=no
13644         cat <<EOF 1>&2
13645
13646 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13647 *** create shared libraries on Solaris systems.  Therefore, libtool
13648 *** is disabling shared libraries support.  We urge you to upgrade GNU
13649 *** binutils to release 2.9.1 or newer.  Another option is to modify
13650 *** your PATH or compiler configuration so that the native linker is
13651 *** used, and then restart.
13652
13653 EOF
13654       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13655         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13656         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13657       else
13658         ld_shlibs_F77=no
13659       fi
13660       ;;
13661
13662     sunos4*)
13663       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13664       wlarc=
13665       hardcode_direct_F77=yes
13666       hardcode_shlibpath_var_F77=no
13667       ;;
13668
13669   linux*)
13670     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13671         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13672         archive_cmds_F77="$tmp_archive_cmds"
13673       supports_anon_versioning=no
13674       case `$LD -v 2>/dev/null` in
13675         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13676         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13677         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13678         *\ 2.11.*) ;; # other 2.11 versions
13679         *) supports_anon_versioning=yes ;;
13680       esac
13681       if test $supports_anon_versioning = yes; then
13682         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13683 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13684 $echo "local: *; };" >> $output_objdir/$libname.ver~
13685         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13686       else
13687         archive_expsym_cmds_F77="$tmp_archive_cmds"
13688       fi
13689     else
13690       ld_shlibs_F77=no
13691     fi
13692     ;;
13693
13694     *)
13695       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13696         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13697         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13698       else
13699         ld_shlibs_F77=no
13700       fi
13701       ;;
13702     esac
13703
13704     if test "$ld_shlibs_F77" = yes; then
13705       runpath_var=LD_RUN_PATH
13706       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13707       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13708       # ancient GNU ld didn't support --whole-archive et. al.
13709       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13710         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13711       else
13712         whole_archive_flag_spec_F77=
13713       fi
13714     fi
13715   else
13716     # PORTME fill in a description of your system's linker (not GNU ld)
13717     case $host_os in
13718     aix3*)
13719       allow_undefined_flag_F77=unsupported
13720       always_export_symbols_F77=yes
13721       archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13722       # Note: this linker hardcodes the directories in LIBPATH if there
13723       # are no directories specified by -L.
13724       hardcode_minus_L_F77=yes
13725       if test "$GCC" = yes && test -z "$link_static_flag"; then
13726         # Neither direct hardcoding nor static linking is supported with a
13727         # broken collect2.
13728         hardcode_direct_F77=unsupported
13729       fi
13730       ;;
13731
13732     aix4* | aix5*)
13733       if test "$host_cpu" = ia64; then
13734         # On IA64, the linker does run time linking by default, so we don't
13735         # have to do anything special.
13736         aix_use_runtimelinking=no
13737         exp_sym_flag='-Bexport'
13738         no_entry_flag=""
13739       else
13740         # If we're using GNU nm, then we don't want the "-C" option.
13741         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13742         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13743           export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13744         else
13745           export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13746         fi
13747         aix_use_runtimelinking=no
13748
13749         # Test if we are trying to use run time linking or normal
13750         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13751         # need to do runtime linking.
13752         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13753           for ld_flag in $LDFLAGS; do
13754           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13755             aix_use_runtimelinking=yes
13756             break
13757           fi
13758           done
13759         esac
13760
13761         exp_sym_flag='-bexport'
13762         no_entry_flag='-bnoentry'
13763       fi
13764
13765       # When large executables or shared objects are built, AIX ld can
13766       # have problems creating the table of contents.  If linking a library
13767       # or program results in "error TOC overflow" add -mminimal-toc to
13768       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13769       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13770
13771       archive_cmds_F77=''
13772       hardcode_direct_F77=yes
13773       hardcode_libdir_separator_F77=':'
13774       link_all_deplibs_F77=yes
13775
13776       if test "$GCC" = yes; then
13777         case $host_os in aix4.012|aix4.012.*)
13778         # We only want to do this on AIX 4.2 and lower, the check
13779         # below for broken collect2 doesn't work under 4.3+
13780           collect2name=`${CC} -print-prog-name=collect2`
13781           if test -f "$collect2name" && \
13782            strings "$collect2name" | grep resolve_lib_name >/dev/null
13783           then
13784           # We have reworked collect2
13785           hardcode_direct_F77=yes
13786           else
13787           # We have old collect2
13788           hardcode_direct_F77=unsupported
13789           # It fails to find uninstalled libraries when the uninstalled
13790           # path is not listed in the libpath.  Setting hardcode_minus_L
13791           # to unsupported forces relinking
13792           hardcode_minus_L_F77=yes
13793           hardcode_libdir_flag_spec_F77='-L$libdir'
13794           hardcode_libdir_separator_F77=
13795           fi
13796         esac
13797         shared_flag='-shared'
13798       else
13799         # not using gcc
13800         if test "$host_cpu" = ia64; then
13801         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13802         # chokes on -Wl,-G. The following line is correct:
13803           shared_flag='-G'
13804         else
13805         if test "$aix_use_runtimelinking" = yes; then
13806             shared_flag='${wl}-G'
13807           else
13808             shared_flag='${wl}-bM:SRE'
13809         fi
13810         fi
13811       fi
13812
13813       # It seems that -bexpall does not export symbols beginning with
13814       # underscore (_), so it is better to generate a list of symbols to export.
13815       always_export_symbols_F77=yes
13816       if test "$aix_use_runtimelinking" = yes; then
13817         # Warning - without using the other runtime loading flags (-brtl),
13818         # -berok will link without error, but may produce a broken library.
13819         allow_undefined_flag_F77='-berok'
13820        # Determine the default libpath from the value encoded in an empty executable.
13821        cat >conftest.$ac_ext <<_ACEOF
13822       program main
13823
13824       end
13825 _ACEOF
13826 rm -f conftest.$ac_objext conftest$ac_exeext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13828   (eval $ac_link) 2>conftest.er1
13829   ac_status=$?
13830   grep -v '^ *+' conftest.er1 >conftest.err
13831   rm -f conftest.er1
13832   cat conftest.err >&5
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); } &&
13835          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837   (eval $ac_try) 2>&5
13838   ac_status=$?
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); }; } &&
13841          { ac_try='test -s conftest$ac_exeext'
13842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843   (eval $ac_try) 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); }; }; then
13847
13848 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13849 }'`
13850 # Check for a 64-bit object if we didn't find anything.
13851 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; }
13852 }'`; fi
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857 fi
13858 rm -f conftest.err conftest.$ac_objext \
13859       conftest$ac_exeext conftest.$ac_ext
13860 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13861
13862        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13863         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13864        else
13865         if test "$host_cpu" = ia64; then
13866           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13867           allow_undefined_flag_F77="-z nodefs"
13868           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13869         else
13870          # Determine the default libpath from the value encoded in an empty executable.
13871          cat >conftest.$ac_ext <<_ACEOF
13872       program main
13873
13874       end
13875 _ACEOF
13876 rm -f conftest.$ac_objext conftest$ac_exeext
13877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13878   (eval $ac_link) 2>conftest.er1
13879   ac_status=$?
13880   grep -v '^ *+' conftest.er1 >conftest.err
13881   rm -f conftest.er1
13882   cat conftest.err >&5
13883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); } &&
13885          { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
13886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13887   (eval $ac_try) 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); }; } &&
13891          { ac_try='test -s conftest$ac_exeext'
13892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893   (eval $ac_try) 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; }; then
13897
13898 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13899 }'`
13900 # Check for a 64-bit object if we didn't find anything.
13901 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; }
13902 }'`; fi
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 fi
13908 rm -f conftest.err conftest.$ac_objext \
13909       conftest$ac_exeext conftest.$ac_ext
13910 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13911
13912          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13913           # Warning - without using the other run time loading flags,
13914           # -berok will link without error, but may produce a broken library.
13915           no_undefined_flag_F77=' ${wl}-bernotok'
13916           allow_undefined_flag_F77=' ${wl}-berok'
13917           # -bexpall does not export symbols beginning with underscore (_)
13918           always_export_symbols_F77=yes
13919           # Exported symbols can be pulled into shared objects from archives
13920           whole_archive_flag_spec_F77=' '
13921           archive_cmds_need_lc_F77=yes
13922           # This is similar to how AIX traditionally builds it's shared libraries.
13923           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13924         fi
13925       fi
13926       ;;
13927
13928     amigaos*)
13929       archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13930       hardcode_libdir_flag_spec_F77='-L$libdir'
13931       hardcode_minus_L_F77=yes
13932       # see comment about different semantics on the GNU ld section
13933       ld_shlibs_F77=no
13934       ;;
13935
13936     bsdi4*)
13937       export_dynamic_flag_spec_F77=-rdynamic
13938       ;;
13939
13940     cygwin* | mingw* | pw32*)
13941       # When not using gcc, we currently assume that we are using
13942       # Microsoft Visual C++.
13943       # hardcode_libdir_flag_spec is actually meaningless, as there is
13944       # no search path for DLLs.
13945       hardcode_libdir_flag_spec_F77=' '
13946       allow_undefined_flag_F77=unsupported
13947       # Tell ltmain to make .lib files, not .a files.
13948       libext=lib
13949       # Tell ltmain to make .dll files, not .so files.
13950       shrext_cmds=".dll"
13951       # FIXME: Setting linknames here is a bad hack.
13952       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13953       # The linker will automatically build a .lib file if we build a DLL.
13954       old_archive_From_new_cmds_F77='true'
13955       # FIXME: Should let the user specify the lib program.
13956       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13957       fix_srcfile_path='`cygpath -w "$srcfile"`'
13958       enable_shared_with_static_runtimes_F77=yes
13959       ;;
13960
13961     darwin* | rhapsody*)
13962     if test "$GXX" = yes ; then
13963       archive_cmds_need_lc_F77=no
13964       case "$host_os" in
13965       rhapsody* | darwin1.[012])
13966         allow_undefined_flag_F77='-undefined suppress'
13967         ;;
13968       *) # Darwin 1.3 on
13969       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13970         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13971       else
13972         case ${MACOSX_DEPLOYMENT_TARGET} in
13973           10.[012])
13974             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13975             ;;
13976           10.*)
13977             allow_undefined_flag_F77='-undefined dynamic_lookup'
13978             ;;
13979         esac
13980       fi
13981         ;;
13982       esac
13983         lt_int_apple_cc_single_mod=no
13984         output_verbose_link_cmd='echo'
13985         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13986           lt_int_apple_cc_single_mod=yes
13987         fi
13988         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13989           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13990         else
13991         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13992       fi
13993       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13994       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13995         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13996           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13997         else
13998           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13999         fi
14000           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14001       hardcode_direct_F77=no
14002       hardcode_automatic_F77=yes
14003       hardcode_shlibpath_var_F77=unsupported
14004       whole_archive_flag_spec_F77='-all_load $convenience'
14005       link_all_deplibs_F77=yes
14006     else
14007       ld_shlibs_F77=no
14008     fi
14009       ;;
14010
14011     dgux*)
14012       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14013       hardcode_libdir_flag_spec_F77='-L$libdir'
14014       hardcode_shlibpath_var_F77=no
14015       ;;
14016
14017     freebsd1*)
14018       ld_shlibs_F77=no
14019       ;;
14020
14021     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14022     # support.  Future versions do this automatically, but an explicit c++rt0.o
14023     # does not break anything, and helps significantly (at the cost of a little
14024     # extra space).
14025     freebsd2.2*)
14026       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14027       hardcode_libdir_flag_spec_F77='-R$libdir'
14028       hardcode_direct_F77=yes
14029       hardcode_shlibpath_var_F77=no
14030       ;;
14031
14032     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14033     freebsd2*)
14034       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14035       hardcode_direct_F77=yes
14036       hardcode_minus_L_F77=yes
14037       hardcode_shlibpath_var_F77=no
14038       ;;
14039
14040     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14041     freebsd* | kfreebsd*-gnu)
14042       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14043       hardcode_libdir_flag_spec_F77='-R$libdir'
14044       hardcode_direct_F77=yes
14045       hardcode_shlibpath_var_F77=no
14046       ;;
14047
14048     hpux9*)
14049       if test "$GCC" = yes; then
14050         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14051       else
14052         archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14053       fi
14054       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14055       hardcode_libdir_separator_F77=:
14056       hardcode_direct_F77=yes
14057
14058       # hardcode_minus_L: Not really in the search PATH,
14059       # but as the default location of the library.
14060       hardcode_minus_L_F77=yes
14061       export_dynamic_flag_spec_F77='${wl}-E'
14062       ;;
14063
14064     hpux10* | hpux11*)
14065       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14066         case "$host_cpu" in
14067         hppa*64*|ia64*)
14068           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14069           ;;
14070         *)
14071           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14072           ;;
14073         esac
14074       else
14075         case "$host_cpu" in
14076         hppa*64*|ia64*)
14077           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14078           ;;
14079         *)
14080           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14081           ;;
14082         esac
14083       fi
14084       if test "$with_gnu_ld" = no; then
14085         case "$host_cpu" in
14086         hppa*64*)
14087           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14088           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14089           hardcode_libdir_separator_F77=:
14090           hardcode_direct_F77=no
14091           hardcode_shlibpath_var_F77=no
14092           ;;
14093         ia64*)
14094           hardcode_libdir_flag_spec_F77='-L$libdir'
14095           hardcode_direct_F77=no
14096           hardcode_shlibpath_var_F77=no
14097
14098           # hardcode_minus_L: Not really in the search PATH,
14099           # but as the default location of the library.
14100           hardcode_minus_L_F77=yes
14101           ;;
14102         *)
14103           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14104           hardcode_libdir_separator_F77=:
14105           hardcode_direct_F77=yes
14106           export_dynamic_flag_spec_F77='${wl}-E'
14107
14108           # hardcode_minus_L: Not really in the search PATH,
14109           # but as the default location of the library.
14110           hardcode_minus_L_F77=yes
14111           ;;
14112         esac
14113       fi
14114       ;;
14115
14116     irix5* | irix6* | nonstopux*)
14117       if test "$GCC" = yes; then
14118         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14119       else
14120         archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14121         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14122       fi
14123       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14124       hardcode_libdir_separator_F77=:
14125       link_all_deplibs_F77=yes
14126       ;;
14127
14128     netbsd*)
14129       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14130         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14131       else
14132         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14133       fi
14134       hardcode_libdir_flag_spec_F77='-R$libdir'
14135       hardcode_direct_F77=yes
14136       hardcode_shlibpath_var_F77=no
14137       ;;
14138
14139     newsos6)
14140       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14141       hardcode_direct_F77=yes
14142       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14143       hardcode_libdir_separator_F77=:
14144       hardcode_shlibpath_var_F77=no
14145       ;;
14146
14147     openbsd*)
14148       hardcode_direct_F77=yes
14149       hardcode_shlibpath_var_F77=no
14150       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14151         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14152         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14153         export_dynamic_flag_spec_F77='${wl}-E'
14154       else
14155        case $host_os in
14156          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14157            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14158            hardcode_libdir_flag_spec_F77='-R$libdir'
14159            ;;
14160          *)
14161            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14162            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14163            ;;
14164        esac
14165       fi
14166       ;;
14167
14168     os2*)
14169       hardcode_libdir_flag_spec_F77='-L$libdir'
14170       hardcode_minus_L_F77=yes
14171       allow_undefined_flag_F77=unsupported
14172       archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14173       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14174       ;;
14175
14176     osf3*)
14177       if test "$GCC" = yes; then
14178         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14179         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14180       else
14181         allow_undefined_flag_F77=' -expect_unresolved \*'
14182         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14183       fi
14184       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14185       hardcode_libdir_separator_F77=:
14186       ;;
14187
14188     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14189       if test "$GCC" = yes; then
14190         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14191         archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14192         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14193       else
14194         allow_undefined_flag_F77=' -expect_unresolved \*'
14195         archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14196         archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14197         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14198
14199         # Both c and cxx compiler support -rpath directly
14200         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14201       fi
14202       hardcode_libdir_separator_F77=:
14203       ;;
14204
14205     sco3.2v5*)
14206       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14207       hardcode_shlibpath_var_F77=no
14208       export_dynamic_flag_spec_F77='${wl}-Bexport'
14209       runpath_var=LD_RUN_PATH
14210       hardcode_runpath_var=yes
14211       ;;
14212
14213     solaris*)
14214       no_undefined_flag_F77=' -z text'
14215       if test "$GCC" = yes; then
14216         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14217         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14218           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14219       else
14220         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14222         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14223       fi
14224       hardcode_libdir_flag_spec_F77='-R$libdir'
14225       hardcode_shlibpath_var_F77=no
14226       case $host_os in
14227       solaris2.[0-5] | solaris2.[0-5].*) ;;
14228       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14229         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14230       esac
14231       link_all_deplibs_F77=yes
14232       ;;
14233
14234     sunos4*)
14235       if test "x$host_vendor" = xsequent; then
14236         # Use $CC to link under sequent, because it throws in some extra .o
14237         # files that make .init and .fini sections work.
14238         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14239       else
14240         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14241       fi
14242       hardcode_libdir_flag_spec_F77='-L$libdir'
14243       hardcode_direct_F77=yes
14244       hardcode_minus_L_F77=yes
14245       hardcode_shlibpath_var_F77=no
14246       ;;
14247
14248     sysv4)
14249       case $host_vendor in
14250         sni)
14251           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252           hardcode_direct_F77=yes # is this really true???
14253         ;;
14254         siemens)
14255           ## LD is ld it makes a PLAMLIB
14256           ## CC just makes a GrossModule.
14257           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14258           reload_cmds_F77='$CC -r -o $output$reload_objs'
14259           hardcode_direct_F77=no
14260         ;;
14261         motorola)
14262           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14263           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14264         ;;
14265       esac
14266       runpath_var='LD_RUN_PATH'
14267       hardcode_shlibpath_var_F77=no
14268       ;;
14269
14270     sysv4.3*)
14271       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272       hardcode_shlibpath_var_F77=no
14273       export_dynamic_flag_spec_F77='-Bexport'
14274       ;;
14275
14276     sysv4*MP*)
14277       if test -d /usr/nec; then
14278         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279         hardcode_shlibpath_var_F77=no
14280         runpath_var=LD_RUN_PATH
14281         hardcode_runpath_var=yes
14282         ld_shlibs_F77=yes
14283       fi
14284       ;;
14285
14286     sysv4.2uw2*)
14287       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14288       hardcode_direct_F77=yes
14289       hardcode_minus_L_F77=no
14290       hardcode_shlibpath_var_F77=no
14291       hardcode_runpath_var=yes
14292       runpath_var=LD_RUN_PATH
14293       ;;
14294
14295    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14296       no_undefined_flag_F77='${wl}-z ${wl}text'
14297       if test "$GCC" = yes; then
14298         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14299       else
14300         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14301       fi
14302       runpath_var='LD_RUN_PATH'
14303       hardcode_shlibpath_var_F77=no
14304       ;;
14305
14306     sysv5*)
14307       no_undefined_flag_F77=' -z text'
14308       # $CC -shared without GNU ld will not create a library from C++
14309       # object files and a static libstdc++, better avoid it by now
14310       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14312                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14313       hardcode_libdir_flag_spec_F77=
14314       hardcode_shlibpath_var_F77=no
14315       runpath_var='LD_RUN_PATH'
14316       ;;
14317
14318     uts4*)
14319       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14320       hardcode_libdir_flag_spec_F77='-L$libdir'
14321       hardcode_shlibpath_var_F77=no
14322       ;;
14323
14324     *)
14325       ld_shlibs_F77=no
14326       ;;
14327     esac
14328   fi
14329
14330 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14331 echo "${ECHO_T}$ld_shlibs_F77" >&6
14332 test "$ld_shlibs_F77" = no && can_build_shared=no
14333
14334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14335 if test "$GCC" = yes; then
14336   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14337 fi
14338
14339 #
14340 # Do we need to explicitly link libc?
14341 #
14342 case "x$archive_cmds_need_lc_F77" in
14343 x|xyes)
14344   # Assume -lc should be added
14345   archive_cmds_need_lc_F77=yes
14346
14347   if test "$enable_shared" = yes && test "$GCC" = yes; then
14348     case $archive_cmds_F77 in
14349     *'~'*)
14350       # FIXME: we may have to deal with multi-command sequences.
14351       ;;
14352     '$CC '*)
14353       # Test whether the compiler implicitly links with -lc since on some
14354       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14355       # to ld, don't add -lc before -lgcc.
14356       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14357 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14358       $rm conftest*
14359       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14360
14361       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14362   (eval $ac_compile) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); } 2>conftest.err; then
14366         soname=conftest
14367         lib=conftest
14368         libobjs=conftest.$ac_objext
14369         deplibs=
14370         wl=$lt_prog_compiler_wl_F77
14371         compiler_flags=-v
14372         linker_flags=-v
14373         verstring=
14374         output_objdir=.
14375         libname=conftest
14376         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14377         allow_undefined_flag_F77=
14378         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14379   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }
14383         then
14384           archive_cmds_need_lc_F77=no
14385         else
14386           archive_cmds_need_lc_F77=yes
14387         fi
14388         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14389       else
14390         cat conftest.err 1>&5
14391       fi
14392       $rm conftest*
14393       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14394 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14395       ;;
14396     esac
14397   fi
14398   ;;
14399 esac
14400
14401 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14402 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14403 library_names_spec=
14404 libname_spec='lib$name'
14405 soname_spec=
14406 shrext_cmds=".so"
14407 postinstall_cmds=
14408 postuninstall_cmds=
14409 finish_cmds=
14410 finish_eval=
14411 shlibpath_var=
14412 shlibpath_overrides_runpath=unknown
14413 version_type=none
14414 dynamic_linker="$host_os ld.so"
14415 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14416 if test "$GCC" = yes; then
14417   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14418   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14419     # if the path contains ";" then we assume it to be the separator
14420     # otherwise default to the standard path separator (i.e. ":") - it is
14421     # assumed that no part of a normal pathname contains ";" but that should
14422     # okay in the real world where ";" in dirpaths is itself problematic.
14423     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14424   else
14425     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14426   fi
14427 else
14428   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14429 fi
14430 need_lib_prefix=unknown
14431 hardcode_into_libs=no
14432
14433 # when you set need_version to no, make sure it does not cause -set_version
14434 # flags to be left without arguments
14435 need_version=unknown
14436
14437 case $host_os in
14438 aix3*)
14439   version_type=linux
14440   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14441   shlibpath_var=LIBPATH
14442
14443   # AIX 3 has no versioning support, so we append a major version to the name.
14444   soname_spec='${libname}${release}${shared_ext}$major'
14445   ;;
14446
14447 aix4* | aix5*)
14448   version_type=linux
14449   need_lib_prefix=no
14450   need_version=no
14451   hardcode_into_libs=yes
14452   if test "$host_cpu" = ia64; then
14453     # AIX 5 supports IA64
14454     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14455     shlibpath_var=LD_LIBRARY_PATH
14456   else
14457     # With GCC up to 2.95.x, collect2 would create an import file
14458     # for dependence libraries.  The import file would start with
14459     # the line `#! .'.  This would cause the generated library to
14460     # depend on `.', always an invalid library.  This was fixed in
14461     # development snapshots of GCC prior to 3.0.
14462     case $host_os in
14463       aix4 | aix4.[01] | aix4.[01].*)
14464       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14465            echo ' yes '
14466            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14467         :
14468       else
14469         can_build_shared=no
14470       fi
14471       ;;
14472     esac
14473     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14474     # soname into executable. Probably we can add versioning support to
14475     # collect2, so additional links can be useful in future.
14476     if test "$aix_use_runtimelinking" = yes; then
14477       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14478       # instead of lib<name>.a to let people know that these are not
14479       # typical AIX shared libraries.
14480       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481     else
14482       # We preserve .a as extension for shared libraries through AIX4.2
14483       # and later when we are not doing run time linking.
14484       library_names_spec='${libname}${release}.a $libname.a'
14485       soname_spec='${libname}${release}${shared_ext}$major'
14486     fi
14487     shlibpath_var=LIBPATH
14488   fi
14489   ;;
14490
14491 amigaos*)
14492   library_names_spec='$libname.ixlibrary $libname.a'
14493   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14494   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'
14495   ;;
14496
14497 beos*)
14498   library_names_spec='${libname}${shared_ext}'
14499   dynamic_linker="$host_os ld.so"
14500   shlibpath_var=LIBRARY_PATH
14501   ;;
14502
14503 bsdi4*)
14504   version_type=linux
14505   need_version=no
14506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507   soname_spec='${libname}${release}${shared_ext}$major'
14508   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14509   shlibpath_var=LD_LIBRARY_PATH
14510   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14511   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14512   # the default ld.so.conf also contains /usr/contrib/lib and
14513   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14514   # libtool to hard-code these into programs
14515   ;;
14516
14517 cygwin* | mingw* | pw32*)
14518   version_type=windows
14519   shrext_cmds=".dll"
14520   need_version=no
14521   need_lib_prefix=no
14522
14523   case $GCC,$host_os in
14524   yes,cygwin* | yes,mingw* | yes,pw32*)
14525     library_names_spec='$libname.dll.a'
14526     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14527     postinstall_cmds='base_file=`basename \${file}`~
14528       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14529       dldir=$destdir/`dirname \$dlpath`~
14530       test -d \$dldir || mkdir -p \$dldir~
14531       $install_prog $dir/$dlname \$dldir/$dlname'
14532     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14533       dlpath=$dir/\$dldll~
14534        $rm \$dlpath'
14535     shlibpath_overrides_runpath=yes
14536
14537     case $host_os in
14538     cygwin*)
14539       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14540       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14541       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14542       ;;
14543     mingw*)
14544       # MinGW DLLs use traditional 'lib' prefix
14545       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14546       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14547       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14548         # It is most probably a Windows format PATH printed by
14549         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14550         # path with ; separators, and with drive letters. We can handle the
14551         # drive letters (cygwin fileutils understands them), so leave them,
14552         # especially as we might pass files found there to a mingw objdump,
14553         # which wouldn't understand a cygwinified path. Ahh.
14554         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14555       else
14556         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14557       fi
14558       ;;
14559     pw32*)
14560       # pw32 DLLs use 'pw' prefix rather than 'lib'
14561       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14562       ;;
14563     esac
14564     ;;
14565
14566   *)
14567     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14568     ;;
14569   esac
14570   dynamic_linker='Win32 ld.exe'
14571   # FIXME: first we should search . and the directory the executable is in
14572   shlibpath_var=PATH
14573   ;;
14574
14575 darwin* | rhapsody*)
14576   dynamic_linker="$host_os dyld"
14577   version_type=darwin
14578   need_lib_prefix=no
14579   need_version=no
14580   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14581   soname_spec='${libname}${release}${major}$shared_ext'
14582   shlibpath_overrides_runpath=yes
14583   shlibpath_var=DYLD_LIBRARY_PATH
14584   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14585   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14586   if test "$GCC" = yes; then
14587     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"`
14588   else
14589     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14590   fi
14591   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14592   ;;
14593
14594 dgux*)
14595   version_type=linux
14596   need_lib_prefix=no
14597   need_version=no
14598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14599   soname_spec='${libname}${release}${shared_ext}$major'
14600   shlibpath_var=LD_LIBRARY_PATH
14601   ;;
14602
14603 freebsd1*)
14604   dynamic_linker=no
14605   ;;
14606
14607 kfreebsd*-gnu)
14608   version_type=linux
14609   need_lib_prefix=no
14610   need_version=no
14611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14612   soname_spec='${libname}${release}${shared_ext}$major'
14613   shlibpath_var=LD_LIBRARY_PATH
14614   shlibpath_overrides_runpath=no
14615   hardcode_into_libs=yes
14616   dynamic_linker='GNU ld.so'
14617   ;;
14618
14619 freebsd*)
14620   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14621   version_type=freebsd-$objformat
14622   case $version_type in
14623     freebsd-elf*)
14624       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14625       need_version=no
14626       need_lib_prefix=no
14627       ;;
14628     freebsd-*)
14629       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14630       need_version=yes
14631       ;;
14632   esac
14633   shlibpath_var=LD_LIBRARY_PATH
14634   case $host_os in
14635   freebsd2*)
14636     shlibpath_overrides_runpath=yes
14637     ;;
14638   freebsd3.01* | freebsdelf3.01*)
14639     shlibpath_overrides_runpath=yes
14640     hardcode_into_libs=yes
14641     ;;
14642   *) # from 3.2 on
14643     shlibpath_overrides_runpath=no
14644     hardcode_into_libs=yes
14645     ;;
14646   esac
14647   ;;
14648
14649 gnu*)
14650   version_type=linux
14651   need_lib_prefix=no
14652   need_version=no
14653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14654   soname_spec='${libname}${release}${shared_ext}$major'
14655   shlibpath_var=LD_LIBRARY_PATH
14656   hardcode_into_libs=yes
14657   ;;
14658
14659 hpux9* | hpux10* | hpux11*)
14660   # Give a soname corresponding to the major version so that dld.sl refuses to
14661   # link against other versions.
14662   version_type=sunos
14663   need_lib_prefix=no
14664   need_version=no
14665   case "$host_cpu" in
14666   ia64*)
14667     shrext_cmds='.so'
14668     hardcode_into_libs=yes
14669     dynamic_linker="$host_os dld.so"
14670     shlibpath_var=LD_LIBRARY_PATH
14671     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14673     soname_spec='${libname}${release}${shared_ext}$major'
14674     if test "X$HPUX_IA64_MODE" = X32; then
14675       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14676     else
14677       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14678     fi
14679     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14680     ;;
14681    hppa*64*)
14682      shrext_cmds='.sl'
14683      hardcode_into_libs=yes
14684      dynamic_linker="$host_os dld.sl"
14685      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14686      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14687      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14688      soname_spec='${libname}${release}${shared_ext}$major'
14689      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14690      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14691      ;;
14692    *)
14693     shrext_cmds='.sl'
14694     dynamic_linker="$host_os dld.sl"
14695     shlibpath_var=SHLIB_PATH
14696     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698     soname_spec='${libname}${release}${shared_ext}$major'
14699     ;;
14700   esac
14701   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14702   postinstall_cmds='chmod 555 $lib'
14703   ;;
14704
14705 irix5* | irix6* | nonstopux*)
14706   case $host_os in
14707     nonstopux*) version_type=nonstopux ;;
14708     *)
14709         if test "$lt_cv_prog_gnu_ld" = yes; then
14710                 version_type=linux
14711         else
14712                 version_type=irix
14713         fi ;;
14714   esac
14715   need_lib_prefix=no
14716   need_version=no
14717   soname_spec='${libname}${release}${shared_ext}$major'
14718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14719   case $host_os in
14720   irix5* | nonstopux*)
14721     libsuff= shlibsuff=
14722     ;;
14723   *)
14724     case $LD in # libtool.m4 will add one of these switches to LD
14725     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14726       libsuff= shlibsuff= libmagic=32-bit;;
14727     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14728       libsuff=32 shlibsuff=N32 libmagic=N32;;
14729     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14730       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14731     *) libsuff= shlibsuff= libmagic=never-match;;
14732     esac
14733     ;;
14734   esac
14735   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14736   shlibpath_overrides_runpath=no
14737   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14738   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14739   hardcode_into_libs=yes
14740   ;;
14741
14742 # No shared lib support for Linux oldld, aout, or coff.
14743 linux*oldld* | linux*aout* | linux*coff*)
14744   dynamic_linker=no
14745   ;;
14746
14747 # This must be Linux ELF.
14748 linux*)
14749   version_type=linux
14750   need_lib_prefix=no
14751   need_version=no
14752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14753   soname_spec='${libname}${release}${shared_ext}$major'
14754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14755   shlibpath_var=LD_LIBRARY_PATH
14756   shlibpath_overrides_runpath=no
14757   # This implies no fast_install, which is unacceptable.
14758   # Some rework will be needed to allow for fast_install
14759   # before this can be enabled.
14760   hardcode_into_libs=yes
14761
14762   # Append ld.so.conf contents to the search path
14763   if test -f /etc/ld.so.conf; then
14764     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14765     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14766   fi
14767
14768   # We used to test for /lib/ld.so.1 and disable shared libraries on
14769   # powerpc, because MkLinux only supported shared libraries with the
14770   # GNU dynamic linker.  Since this was broken with cross compilers,
14771   # most powerpc-linux boxes support dynamic linking these days and
14772   # people can always --disable-shared, the test was removed, and we
14773   # assume the GNU/Linux dynamic linker is in use.
14774   dynamic_linker='GNU/Linux ld.so'
14775   ;;
14776
14777 knetbsd*-gnu)
14778   version_type=linux
14779   need_lib_prefix=no
14780   need_version=no
14781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14782   soname_spec='${libname}${release}${shared_ext}$major'
14783   shlibpath_var=LD_LIBRARY_PATH
14784   shlibpath_overrides_runpath=no
14785   hardcode_into_libs=yes
14786   dynamic_linker='GNU ld.so'
14787   ;;
14788
14789 netbsd*)
14790   version_type=sunos
14791   need_lib_prefix=no
14792   need_version=no
14793   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14795     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14796     dynamic_linker='NetBSD (a.out) ld.so'
14797   else
14798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14799     soname_spec='${libname}${release}${shared_ext}$major'
14800     dynamic_linker='NetBSD ld.elf_so'
14801   fi
14802   shlibpath_var=LD_LIBRARY_PATH
14803   shlibpath_overrides_runpath=yes
14804   hardcode_into_libs=yes
14805   ;;
14806
14807 newsos6)
14808   version_type=linux
14809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14810   shlibpath_var=LD_LIBRARY_PATH
14811   shlibpath_overrides_runpath=yes
14812   ;;
14813
14814 nto-qnx*)
14815   version_type=linux
14816   need_lib_prefix=no
14817   need_version=no
14818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14819   soname_spec='${libname}${release}${shared_ext}$major'
14820   shlibpath_var=LD_LIBRARY_PATH
14821   shlibpath_overrides_runpath=yes
14822   ;;
14823
14824 openbsd*)
14825   version_type=sunos
14826   need_lib_prefix=no
14827   need_version=yes
14828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14829   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14830   shlibpath_var=LD_LIBRARY_PATH
14831   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14832     case $host_os in
14833       openbsd2.[89] | openbsd2.[89].*)
14834         shlibpath_overrides_runpath=no
14835         ;;
14836       *)
14837         shlibpath_overrides_runpath=yes
14838         ;;
14839       esac
14840   else
14841     shlibpath_overrides_runpath=yes
14842   fi
14843   ;;
14844
14845 os2*)
14846   libname_spec='$name'
14847   shrext_cmds=".dll"
14848   need_lib_prefix=no
14849   library_names_spec='$libname${shared_ext} $libname.a'
14850   dynamic_linker='OS/2 ld.exe'
14851   shlibpath_var=LIBPATH
14852   ;;
14853
14854 osf3* | osf4* | osf5*)
14855   version_type=osf
14856   need_lib_prefix=no
14857   need_version=no
14858   soname_spec='${libname}${release}${shared_ext}$major'
14859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860   shlibpath_var=LD_LIBRARY_PATH
14861   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14862   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14863   ;;
14864
14865 sco3.2v5*)
14866   version_type=osf
14867   soname_spec='${libname}${release}${shared_ext}$major'
14868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869   shlibpath_var=LD_LIBRARY_PATH
14870   ;;
14871
14872 solaris*)
14873   version_type=linux
14874   need_lib_prefix=no
14875   need_version=no
14876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877   soname_spec='${libname}${release}${shared_ext}$major'
14878   shlibpath_var=LD_LIBRARY_PATH
14879   shlibpath_overrides_runpath=yes
14880   hardcode_into_libs=yes
14881   # ldd complains unless libraries are executable
14882   postinstall_cmds='chmod +x $lib'
14883   ;;
14884
14885 sunos4*)
14886   version_type=sunos
14887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14888   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14889   shlibpath_var=LD_LIBRARY_PATH
14890   shlibpath_overrides_runpath=yes
14891   if test "$with_gnu_ld" = yes; then
14892     need_lib_prefix=no
14893   fi
14894   need_version=yes
14895   ;;
14896
14897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14898   version_type=linux
14899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14900   soname_spec='${libname}${release}${shared_ext}$major'
14901   shlibpath_var=LD_LIBRARY_PATH
14902   case $host_vendor in
14903     sni)
14904       shlibpath_overrides_runpath=no
14905       need_lib_prefix=no
14906       export_dynamic_flag_spec='${wl}-Blargedynsym'
14907       runpath_var=LD_RUN_PATH
14908       ;;
14909     siemens)
14910       need_lib_prefix=no
14911       ;;
14912     motorola)
14913       need_lib_prefix=no
14914       need_version=no
14915       shlibpath_overrides_runpath=no
14916       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14917       ;;
14918   esac
14919   ;;
14920
14921 sysv4*MP*)
14922   if test -d /usr/nec ;then
14923     version_type=linux
14924     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14925     soname_spec='$libname${shared_ext}.$major'
14926     shlibpath_var=LD_LIBRARY_PATH
14927   fi
14928   ;;
14929
14930 uts4*)
14931   version_type=linux
14932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933   soname_spec='${libname}${release}${shared_ext}$major'
14934   shlibpath_var=LD_LIBRARY_PATH
14935   ;;
14936
14937 *)
14938   dynamic_linker=no
14939   ;;
14940 esac
14941 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14942 echo "${ECHO_T}$dynamic_linker" >&6
14943 test "$dynamic_linker" = no && can_build_shared=no
14944
14945 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14946 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14947 hardcode_action_F77=
14948 if test -n "$hardcode_libdir_flag_spec_F77" || \
14949    test -n "$runpath_var F77" || \
14950    test "X$hardcode_automatic_F77"="Xyes" ; then
14951
14952   # We can hardcode non-existant directories.
14953   if test "$hardcode_direct_F77" != no &&
14954      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14955      # have to relink, otherwise we might link with an installed library
14956      # when we should be linking with a yet-to-be-installed one
14957      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14958      test "$hardcode_minus_L_F77" != no; then
14959     # Linking always hardcodes the temporary library directory.
14960     hardcode_action_F77=relink
14961   else
14962     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14963     hardcode_action_F77=immediate
14964   fi
14965 else
14966   # We cannot hardcode anything, or else we can only hardcode existing
14967   # directories.
14968   hardcode_action_F77=unsupported
14969 fi
14970 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14971 echo "${ECHO_T}$hardcode_action_F77" >&6
14972
14973 if test "$hardcode_action_F77" = relink; then
14974   # Fast installation is not supported
14975   enable_fast_install=no
14976 elif test "$shlibpath_overrides_runpath" = yes ||
14977      test "$enable_shared" = no; then
14978   # Fast installation is not necessary
14979   enable_fast_install=needless
14980 fi
14981
14982 striplib=
14983 old_striplib=
14984 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14985 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14986 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14987   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14988   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14989   echo "$as_me:$LINENO: result: yes" >&5
14990 echo "${ECHO_T}yes" >&6
14991 else
14992 # FIXME - insert some real tests, host_os isn't really good enough
14993   case $host_os in
14994    darwin*)
14995        if test -n "$STRIP" ; then
14996          striplib="$STRIP -x"
14997          echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
14999        else
15000   echo "$as_me:$LINENO: result: no" >&5
15001 echo "${ECHO_T}no" >&6
15002 fi
15003        ;;
15004    *)
15005   echo "$as_me:$LINENO: result: no" >&5
15006 echo "${ECHO_T}no" >&6
15007     ;;
15008   esac
15009 fi
15010
15011
15012
15013 # The else clause should only fire when bootstrapping the
15014 # libtool distribution, otherwise you forgot to ship ltmain.sh
15015 # with your package, and you will get complaints that there are
15016 # no rules to generate ltmain.sh.
15017 if test -f "$ltmain"; then
15018   # See if we are running on zsh, and set the options which allow our commands through
15019   # without removal of \ escapes.
15020   if test -n "${ZSH_VERSION+set}" ; then
15021     setopt NO_GLOB_SUBST
15022   fi
15023   # Now quote all the things that may contain metacharacters while being
15024   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15025   # variables and quote the copies for generation of the libtool script.
15026   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15027     SED SHELL STRIP \
15028     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15029     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15030     deplibs_check_method reload_flag reload_cmds need_locks \
15031     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15032     lt_cv_sys_global_symbol_to_c_name_address \
15033     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15034     old_postinstall_cmds old_postuninstall_cmds \
15035     compiler_F77 \
15036     CC_F77 \
15037     LD_F77 \
15038     lt_prog_compiler_wl_F77 \
15039     lt_prog_compiler_pic_F77 \
15040     lt_prog_compiler_static_F77 \
15041     lt_prog_compiler_no_builtin_flag_F77 \
15042     export_dynamic_flag_spec_F77 \
15043     thread_safe_flag_spec_F77 \
15044     whole_archive_flag_spec_F77 \
15045     enable_shared_with_static_runtimes_F77 \
15046     old_archive_cmds_F77 \
15047     old_archive_from_new_cmds_F77 \
15048     predep_objects_F77 \
15049     postdep_objects_F77 \
15050     predeps_F77 \
15051     postdeps_F77 \
15052     compiler_lib_search_path_F77 \
15053     archive_cmds_F77 \
15054     archive_expsym_cmds_F77 \
15055     postinstall_cmds_F77 \
15056     postuninstall_cmds_F77 \
15057     old_archive_from_expsyms_cmds_F77 \
15058     allow_undefined_flag_F77 \
15059     no_undefined_flag_F77 \
15060     export_symbols_cmds_F77 \
15061     hardcode_libdir_flag_spec_F77 \
15062     hardcode_libdir_flag_spec_ld_F77 \
15063     hardcode_libdir_separator_F77 \
15064     hardcode_automatic_F77 \
15065     module_cmds_F77 \
15066     module_expsym_cmds_F77 \
15067     lt_cv_prog_compiler_c_o_F77 \
15068     exclude_expsyms_F77 \
15069     include_expsyms_F77; do
15070
15071     case $var in
15072     old_archive_cmds_F77 | \
15073     old_archive_from_new_cmds_F77 | \
15074     archive_cmds_F77 | \
15075     archive_expsym_cmds_F77 | \
15076     module_cmds_F77 | \
15077     module_expsym_cmds_F77 | \
15078     old_archive_from_expsyms_cmds_F77 | \
15079     export_symbols_cmds_F77 | \
15080     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15081     postinstall_cmds | postuninstall_cmds | \
15082     old_postinstall_cmds | old_postuninstall_cmds | \
15083     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15084       # Double-quote double-evaled strings.
15085       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15086       ;;
15087     *)
15088       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15089       ;;
15090     esac
15091   done
15092
15093   case $lt_echo in
15094   *'\$0 --fallback-echo"')
15095     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15096     ;;
15097   esac
15098
15099 cfgfile="$ofile"
15100
15101   cat <<__EOF__ >> "$cfgfile"
15102 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15103
15104 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15105
15106 # Shell to use when invoking shell scripts.
15107 SHELL=$lt_SHELL
15108
15109 # Whether or not to build shared libraries.
15110 build_libtool_libs=$enable_shared
15111
15112 # Whether or not to build static libraries.
15113 build_old_libs=$enable_static
15114
15115 # Whether or not to add -lc for building shared libraries.
15116 build_libtool_need_lc=$archive_cmds_need_lc_F77
15117
15118 # Whether or not to disallow shared libs when runtime libs are static
15119 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15120
15121 # Whether or not to optimize for fast installation.
15122 fast_install=$enable_fast_install
15123
15124 # The host system.
15125 host_alias=$host_alias
15126 host=$host
15127
15128 # An echo program that does not interpret backslashes.
15129 echo=$lt_echo
15130
15131 # The archiver.
15132 AR=$lt_AR
15133 AR_FLAGS=$lt_AR_FLAGS
15134
15135 # A C compiler.
15136 LTCC=$lt_LTCC
15137
15138 # A language-specific compiler.
15139 CC=$lt_compiler_F77
15140
15141 # Is the compiler the GNU C compiler?
15142 with_gcc=$GCC_F77
15143
15144 # An ERE matcher.
15145 EGREP=$lt_EGREP
15146
15147 # The linker used to build libraries.
15148 LD=$lt_LD_F77
15149
15150 # Whether we need hard or soft links.
15151 LN_S=$lt_LN_S
15152
15153 # A BSD-compatible nm program.
15154 NM=$lt_NM
15155
15156 # A symbol stripping program
15157 STRIP=$lt_STRIP
15158
15159 # Used to examine libraries when file_magic_cmd begins "file"
15160 MAGIC_CMD=$MAGIC_CMD
15161
15162 # Used on cygwin: DLL creation program.
15163 DLLTOOL="$DLLTOOL"
15164
15165 # Used on cygwin: object dumper.
15166 OBJDUMP="$OBJDUMP"
15167
15168 # Used on cygwin: assembler.
15169 AS="$AS"
15170
15171 # The name of the directory that contains temporary libtool files.
15172 objdir=$objdir
15173
15174 # How to create reloadable object files.
15175 reload_flag=$lt_reload_flag
15176 reload_cmds=$lt_reload_cmds
15177
15178 # How to pass a linker flag through the compiler.
15179 wl=$lt_lt_prog_compiler_wl_F77
15180
15181 # Object file suffix (normally "o").
15182 objext="$ac_objext"
15183
15184 # Old archive suffix (normally "a").
15185 libext="$libext"
15186
15187 # Shared library suffix (normally ".so").
15188 shrext_cmds='$shrext_cmds'
15189
15190 # Executable file suffix (normally "").
15191 exeext="$exeext"
15192
15193 # Additional compiler flags for building library objects.
15194 pic_flag=$lt_lt_prog_compiler_pic_F77
15195 pic_mode=$pic_mode
15196
15197 # What is the maximum length of a command?
15198 max_cmd_len=$lt_cv_sys_max_cmd_len
15199
15200 # Does compiler simultaneously support -c and -o options?
15201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15202
15203 # Must we lock files when doing compilation ?
15204 need_locks=$lt_need_locks
15205
15206 # Do we need the lib prefix for modules?
15207 need_lib_prefix=$need_lib_prefix
15208
15209 # Do we need a version for libraries?
15210 need_version=$need_version
15211
15212 # Whether dlopen is supported.
15213 dlopen_support=$enable_dlopen
15214
15215 # Whether dlopen of programs is supported.
15216 dlopen_self=$enable_dlopen_self
15217
15218 # Whether dlopen of statically linked programs is supported.
15219 dlopen_self_static=$enable_dlopen_self_static
15220
15221 # Compiler flag to prevent dynamic linking.
15222 link_static_flag=$lt_lt_prog_compiler_static_F77
15223
15224 # Compiler flag to turn off builtin functions.
15225 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15226
15227 # Compiler flag to allow reflexive dlopens.
15228 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15229
15230 # Compiler flag to generate shared objects directly from archives.
15231 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15232
15233 # Compiler flag to generate thread-safe objects.
15234 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15235
15236 # Library versioning type.
15237 version_type=$version_type
15238
15239 # Format of library name prefix.
15240 libname_spec=$lt_libname_spec
15241
15242 # List of archive names.  First name is the real one, the rest are links.
15243 # The last name is the one that the linker finds with -lNAME.
15244 library_names_spec=$lt_library_names_spec
15245
15246 # The coded name of the library, if different from the real name.
15247 soname_spec=$lt_soname_spec
15248
15249 # Commands used to build and install an old-style archive.
15250 RANLIB=$lt_RANLIB
15251 old_archive_cmds=$lt_old_archive_cmds_F77
15252 old_postinstall_cmds=$lt_old_postinstall_cmds
15253 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15254
15255 # Create an old-style archive from a shared archive.
15256 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15257
15258 # Create a temporary old-style archive to link instead of a shared archive.
15259 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15260
15261 # Commands used to build and install a shared archive.
15262 archive_cmds=$lt_archive_cmds_F77
15263 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15264 postinstall_cmds=$lt_postinstall_cmds
15265 postuninstall_cmds=$lt_postuninstall_cmds
15266
15267 # Commands used to build a loadable module (assumed same as above if empty)
15268 module_cmds=$lt_module_cmds_F77
15269 module_expsym_cmds=$lt_module_expsym_cmds_F77
15270
15271 # Commands to strip libraries.
15272 old_striplib=$lt_old_striplib
15273 striplib=$lt_striplib
15274
15275 # Dependencies to place before the objects being linked to create a
15276 # shared library.
15277 predep_objects=$lt_predep_objects_F77
15278
15279 # Dependencies to place after the objects being linked to create a
15280 # shared library.
15281 postdep_objects=$lt_postdep_objects_F77
15282
15283 # Dependencies to place before the objects being linked to create a
15284 # shared library.
15285 predeps=$lt_predeps_F77
15286
15287 # Dependencies to place after the objects being linked to create a
15288 # shared library.
15289 postdeps=$lt_postdeps_F77
15290
15291 # The library search path used internally by the compiler when linking
15292 # a shared library.
15293 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15294
15295 # Method to check whether dependent libraries are shared objects.
15296 deplibs_check_method=$lt_deplibs_check_method
15297
15298 # Command to use when deplibs_check_method == file_magic.
15299 file_magic_cmd=$lt_file_magic_cmd
15300
15301 # Flag that allows shared libraries with undefined symbols to be built.
15302 allow_undefined_flag=$lt_allow_undefined_flag_F77
15303
15304 # Flag that forces no undefined symbols.
15305 no_undefined_flag=$lt_no_undefined_flag_F77
15306
15307 # Commands used to finish a libtool library installation in a directory.
15308 finish_cmds=$lt_finish_cmds
15309
15310 # Same as above, but a single script fragment to be evaled but not shown.
15311 finish_eval=$lt_finish_eval
15312
15313 # Take the output of nm and produce a listing of raw symbols and C names.
15314 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15315
15316 # Transform the output of nm in a proper C declaration
15317 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15318
15319 # Transform the output of nm in a C name address pair
15320 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15321
15322 # This is the shared library runtime path variable.
15323 runpath_var=$runpath_var
15324
15325 # This is the shared library path variable.
15326 shlibpath_var=$shlibpath_var
15327
15328 # Is shlibpath searched before the hard-coded library search path?
15329 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15330
15331 # How to hardcode a shared library path into an executable.
15332 hardcode_action=$hardcode_action_F77
15333
15334 # Whether we should hardcode library paths into libraries.
15335 hardcode_into_libs=$hardcode_into_libs
15336
15337 # Flag to hardcode \$libdir into a binary during linking.
15338 # This must work even if \$libdir does not exist.
15339 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15340
15341 # If ld is used when linking, flag to hardcode \$libdir into
15342 # a binary during linking. This must work even if \$libdir does
15343 # not exist.
15344 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15345
15346 # Whether we need a single -rpath flag with a separated argument.
15347 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15348
15349 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15350 # resulting binary.
15351 hardcode_direct=$hardcode_direct_F77
15352
15353 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15354 # resulting binary.
15355 hardcode_minus_L=$hardcode_minus_L_F77
15356
15357 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15358 # the resulting binary.
15359 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15360
15361 # Set to yes if building a shared library automatically hardcodes DIR into the library
15362 # and all subsequent libraries and executables linked against it.
15363 hardcode_automatic=$hardcode_automatic_F77
15364
15365 # Variables whose values should be saved in libtool wrapper scripts and
15366 # restored at relink time.
15367 variables_saved_for_relink="$variables_saved_for_relink"
15368
15369 # Whether libtool must link a program against all its dependency libraries.
15370 link_all_deplibs=$link_all_deplibs_F77
15371
15372 # Compile-time system search path for libraries
15373 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15374
15375 # Run-time system search path for libraries
15376 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15377
15378 # Fix the shell variable \$srcfile for the compiler.
15379 fix_srcfile_path="$fix_srcfile_path_F77"
15380
15381 # Set to yes if exported symbols are required.
15382 always_export_symbols=$always_export_symbols_F77
15383
15384 # The commands to list exported symbols.
15385 export_symbols_cmds=$lt_export_symbols_cmds_F77
15386
15387 # The commands to extract the exported symbol list from a shared archive.
15388 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15389
15390 # Symbols that should not be listed in the preloaded symbols.
15391 exclude_expsyms=$lt_exclude_expsyms_F77
15392
15393 # Symbols that must always be exported.
15394 include_expsyms=$lt_include_expsyms_F77
15395
15396 # ### END LIBTOOL TAG CONFIG: $tagname
15397
15398 __EOF__
15399
15400
15401 else
15402   # If there is no Makefile yet, we rely on a make rule to execute
15403   # `config.status --recheck' to rerun these tests and create the
15404   # libtool script then.
15405   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15406   if test -f "$ltmain_in"; then
15407     test -f Makefile && make "$ltmain"
15408   fi
15409 fi
15410
15411
15412 ac_ext=c
15413 ac_cpp='$CPP $CPPFLAGS'
15414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15417
15418 CC="$lt_save_CC"
15419
15420         else
15421           tagname=""
15422         fi
15423         ;;
15424
15425       GCJ)
15426         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15427
15428
15429
15430 # Source file extension for Java test sources.
15431 ac_ext=java
15432
15433 # Object file extension for compiled Java test sources.
15434 objext=o
15435 objext_GCJ=$objext
15436
15437 # Code to be used in simple compile tests
15438 lt_simple_compile_test_code="class foo {}\n"
15439
15440 # Code to be used in simple link tests
15441 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15442
15443 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15444
15445 # If no C compiler was specified, use CC.
15446 LTCC=${LTCC-"$CC"}
15447
15448 # Allow CC to be a program name with arguments.
15449 compiler=$CC
15450
15451
15452 # Allow CC to be a program name with arguments.
15453 lt_save_CC="$CC"
15454 CC=${GCJ-"gcj"}
15455 compiler=$CC
15456 compiler_GCJ=$CC
15457
15458 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15459 archive_cmds_need_lc_GCJ=no
15460
15461
15462 lt_prog_compiler_no_builtin_flag_GCJ=
15463
15464 if test "$GCC" = yes; then
15465   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15466
15467
15468 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15469 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15470 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15471   echo $ECHO_N "(cached) $ECHO_C" >&6
15472 else
15473   lt_cv_prog_compiler_rtti_exceptions=no
15474   ac_outfile=conftest.$ac_objext
15475    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15476    lt_compiler_flag="-fno-rtti -fno-exceptions"
15477    # Insert the option either (1) after the last *FLAGS variable, or
15478    # (2) before a word containing "conftest.", or (3) at the end.
15479    # Note that $ac_compile itself does not contain backslashes and begins
15480    # with a dollar sign (not a hyphen), so the echo should work correctly.
15481    # The option is referenced via a variable to avoid confusing sed.
15482    lt_compile=`echo "$ac_compile" | $SED \
15483    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15484    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15485    -e 's:$: $lt_compiler_flag:'`
15486    (eval echo "\"\$as_me:15486: $lt_compile\"" >&5)
15487    (eval "$lt_compile" 2>conftest.err)
15488    ac_status=$?
15489    cat conftest.err >&5
15490    echo "$as_me:15490: \$? = $ac_status" >&5
15491    if (exit $ac_status) && test -s "$ac_outfile"; then
15492      # The compiler can only warn and ignore the option if not recognized
15493      # So say no if there are warnings
15494      if test ! -s conftest.err; then
15495        lt_cv_prog_compiler_rtti_exceptions=yes
15496      fi
15497    fi
15498    $rm conftest*
15499
15500 fi
15501 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15502 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15503
15504 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15505     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15506 else
15507     :
15508 fi
15509
15510 fi
15511
15512 lt_prog_compiler_wl_GCJ=
15513 lt_prog_compiler_pic_GCJ=
15514 lt_prog_compiler_static_GCJ=
15515
15516 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15517 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15518
15519   if test "$GCC" = yes; then
15520     lt_prog_compiler_wl_GCJ='-Wl,'
15521     lt_prog_compiler_static_GCJ='-static'
15522
15523     case $host_os in
15524       aix*)
15525       # All AIX code is PIC.
15526       if test "$host_cpu" = ia64; then
15527         # AIX 5 now supports IA64 processor
15528         lt_prog_compiler_static_GCJ='-Bstatic'
15529       fi
15530       ;;
15531
15532     amigaos*)
15533       # FIXME: we need at least 68020 code to build shared libraries, but
15534       # adding the `-m68020' flag to GCC prevents building anything better,
15535       # like `-m68040'.
15536       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15537       ;;
15538
15539     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15540       # PIC is the default for these OSes.
15541       ;;
15542
15543     mingw* | pw32* | os2*)
15544       # This hack is so that the source file can tell whether it is being
15545       # built for inclusion in a dll (and should export symbols for example).
15546       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15547       ;;
15548
15549     darwin* | rhapsody*)
15550       # PIC is the default on this platform
15551       # Common symbols not allowed in MH_DYLIB files
15552       lt_prog_compiler_pic_GCJ='-fno-common'
15553       ;;
15554
15555     msdosdjgpp*)
15556       # Just because we use GCC doesn't mean we suddenly get shared libraries
15557       # on systems that don't support them.
15558       lt_prog_compiler_can_build_shared_GCJ=no
15559       enable_shared=no
15560       ;;
15561
15562     sysv4*MP*)
15563       if test -d /usr/nec; then
15564         lt_prog_compiler_pic_GCJ=-Kconform_pic
15565       fi
15566       ;;
15567
15568     hpux*)
15569       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15570       # not for PA HP-UX.
15571       case "$host_cpu" in
15572       hppa*64*|ia64*)
15573         # +Z the default
15574         ;;
15575       *)
15576         lt_prog_compiler_pic_GCJ='-fPIC'
15577         ;;
15578       esac
15579       ;;
15580
15581     *)
15582       lt_prog_compiler_pic_GCJ='-fPIC'
15583       ;;
15584     esac
15585   else
15586     # PORTME Check for flag to pass linker flags through the system compiler.
15587     case $host_os in
15588     aix*)
15589       lt_prog_compiler_wl_GCJ='-Wl,'
15590       if test "$host_cpu" = ia64; then
15591         # AIX 5 now supports IA64 processor
15592         lt_prog_compiler_static_GCJ='-Bstatic'
15593       else
15594         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15595       fi
15596       ;;
15597
15598     mingw* | pw32* | os2*)
15599       # This hack is so that the source file can tell whether it is being
15600       # built for inclusion in a dll (and should export symbols for example).
15601       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15602       ;;
15603
15604     hpux9* | hpux10* | hpux11*)
15605       lt_prog_compiler_wl_GCJ='-Wl,'
15606       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15607       # not for PA HP-UX.
15608       case "$host_cpu" in
15609       hppa*64*|ia64*)
15610         # +Z the default
15611         ;;
15612       *)
15613         lt_prog_compiler_pic_GCJ='+Z'
15614         ;;
15615       esac
15616       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15617       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15618       ;;
15619
15620     irix5* | irix6* | nonstopux*)
15621       lt_prog_compiler_wl_GCJ='-Wl,'
15622       # PIC (with -KPIC) is the default.
15623       lt_prog_compiler_static_GCJ='-non_shared'
15624       ;;
15625
15626     newsos6)
15627       lt_prog_compiler_pic_GCJ='-KPIC'
15628       lt_prog_compiler_static_GCJ='-Bstatic'
15629       ;;
15630
15631     linux*)
15632       case $CC in
15633       icc* | ecc*)
15634         lt_prog_compiler_wl_GCJ='-Wl,'
15635         lt_prog_compiler_pic_GCJ='-KPIC'
15636         lt_prog_compiler_static_GCJ='-static'
15637         ;;
15638       ccc*)
15639         lt_prog_compiler_wl_GCJ='-Wl,'
15640         # All Alpha code is PIC.
15641         lt_prog_compiler_static_GCJ='-non_shared'
15642         ;;
15643       esac
15644       ;;
15645
15646     osf3* | osf4* | osf5*)
15647       lt_prog_compiler_wl_GCJ='-Wl,'
15648       # All OSF/1 code is PIC.
15649       lt_prog_compiler_static_GCJ='-non_shared'
15650       ;;
15651
15652     sco3.2v5*)
15653       lt_prog_compiler_pic_GCJ='-Kpic'
15654       lt_prog_compiler_static_GCJ='-dn'
15655       ;;
15656
15657     solaris*)
15658       lt_prog_compiler_wl_GCJ='-Wl,'
15659       lt_prog_compiler_pic_GCJ='-KPIC'
15660       lt_prog_compiler_static_GCJ='-Bstatic'
15661       ;;
15662
15663     sunos4*)
15664       lt_prog_compiler_wl_GCJ='-Qoption ld '
15665       lt_prog_compiler_pic_GCJ='-PIC'
15666       lt_prog_compiler_static_GCJ='-Bstatic'
15667       ;;
15668
15669     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15670       lt_prog_compiler_wl_GCJ='-Wl,'
15671       lt_prog_compiler_pic_GCJ='-KPIC'
15672       lt_prog_compiler_static_GCJ='-Bstatic'
15673       ;;
15674
15675     sysv4*MP*)
15676       if test -d /usr/nec ;then
15677         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15678         lt_prog_compiler_static_GCJ='-Bstatic'
15679       fi
15680       ;;
15681
15682     uts4*)
15683       lt_prog_compiler_pic_GCJ='-pic'
15684       lt_prog_compiler_static_GCJ='-Bstatic'
15685       ;;
15686
15687     *)
15688       lt_prog_compiler_can_build_shared_GCJ=no
15689       ;;
15690     esac
15691   fi
15692
15693 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15694 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15695
15696 #
15697 # Check to make sure the PIC flag actually works.
15698 #
15699 if test -n "$lt_prog_compiler_pic_GCJ"; then
15700
15701 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15702 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15703 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706   lt_prog_compiler_pic_works_GCJ=no
15707   ac_outfile=conftest.$ac_objext
15708    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15709    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15710    # Insert the option either (1) after the last *FLAGS variable, or
15711    # (2) before a word containing "conftest.", or (3) at the end.
15712    # Note that $ac_compile itself does not contain backslashes and begins
15713    # with a dollar sign (not a hyphen), so the echo should work correctly.
15714    # The option is referenced via a variable to avoid confusing sed.
15715    lt_compile=`echo "$ac_compile" | $SED \
15716    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15717    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15718    -e 's:$: $lt_compiler_flag:'`
15719    (eval echo "\"\$as_me:15719: $lt_compile\"" >&5)
15720    (eval "$lt_compile" 2>conftest.err)
15721    ac_status=$?
15722    cat conftest.err >&5
15723    echo "$as_me:15723: \$? = $ac_status" >&5
15724    if (exit $ac_status) && test -s "$ac_outfile"; then
15725      # The compiler can only warn and ignore the option if not recognized
15726      # So say no if there are warnings
15727      if test ! -s conftest.err; then
15728        lt_prog_compiler_pic_works_GCJ=yes
15729      fi
15730    fi
15731    $rm conftest*
15732
15733 fi
15734 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15735 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15736
15737 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15738     case $lt_prog_compiler_pic_GCJ in
15739      "" | " "*) ;;
15740      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15741      esac
15742 else
15743     lt_prog_compiler_pic_GCJ=
15744      lt_prog_compiler_can_build_shared_GCJ=no
15745 fi
15746
15747 fi
15748 case "$host_os" in
15749   # For platforms which do not support PIC, -DPIC is meaningless:
15750   *djgpp*)
15751     lt_prog_compiler_pic_GCJ=
15752     ;;
15753   *)
15754     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15755     ;;
15756 esac
15757
15758 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15760 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15761   echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763   lt_cv_prog_compiler_c_o_GCJ=no
15764    $rm -r conftest 2>/dev/null
15765    mkdir conftest
15766    cd conftest
15767    mkdir out
15768    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15769
15770    lt_compiler_flag="-o out/conftest2.$ac_objext"
15771    # Insert the option either (1) after the last *FLAGS variable, or
15772    # (2) before a word containing "conftest.", or (3) at the end.
15773    # Note that $ac_compile itself does not contain backslashes and begins
15774    # with a dollar sign (not a hyphen), so the echo should work correctly.
15775    lt_compile=`echo "$ac_compile" | $SED \
15776    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15778    -e 's:$: $lt_compiler_flag:'`
15779    (eval echo "\"\$as_me:15779: $lt_compile\"" >&5)
15780    (eval "$lt_compile" 2>out/conftest.err)
15781    ac_status=$?
15782    cat out/conftest.err >&5
15783    echo "$as_me:15783: \$? = $ac_status" >&5
15784    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15785    then
15786      # The compiler can only warn and ignore the option if not recognized
15787      # So say no if there are warnings
15788      if test ! -s out/conftest.err; then
15789        lt_cv_prog_compiler_c_o_GCJ=yes
15790      fi
15791    fi
15792    chmod u+w .
15793    $rm conftest*
15794    # SGI C++ compiler will create directory out/ii_files/ for
15795    # template instantiation
15796    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15797    $rm out/* && rmdir out
15798    cd ..
15799    rmdir conftest
15800    $rm conftest*
15801
15802 fi
15803 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15804 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15805
15806
15807 hard_links="nottested"
15808 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15809   # do not overwrite the value of need_locks provided by the user
15810   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15811 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15812   hard_links=yes
15813   $rm conftest*
15814   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15815   touch conftest.a
15816   ln conftest.a conftest.b 2>&5 || hard_links=no
15817   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15818   echo "$as_me:$LINENO: result: $hard_links" >&5
15819 echo "${ECHO_T}$hard_links" >&6
15820   if test "$hard_links" = no; then
15821     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15822 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15823     need_locks=warn
15824   fi
15825 else
15826   need_locks=no
15827 fi
15828
15829 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15830 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15831
15832   runpath_var=
15833   allow_undefined_flag_GCJ=
15834   enable_shared_with_static_runtimes_GCJ=no
15835   archive_cmds_GCJ=
15836   archive_expsym_cmds_GCJ=
15837   old_archive_From_new_cmds_GCJ=
15838   old_archive_from_expsyms_cmds_GCJ=
15839   export_dynamic_flag_spec_GCJ=
15840   whole_archive_flag_spec_GCJ=
15841   thread_safe_flag_spec_GCJ=
15842   hardcode_libdir_flag_spec_GCJ=
15843   hardcode_libdir_flag_spec_ld_GCJ=
15844   hardcode_libdir_separator_GCJ=
15845   hardcode_direct_GCJ=no
15846   hardcode_minus_L_GCJ=no
15847   hardcode_shlibpath_var_GCJ=unsupported
15848   link_all_deplibs_GCJ=unknown
15849   hardcode_automatic_GCJ=no
15850   module_cmds_GCJ=
15851   module_expsym_cmds_GCJ=
15852   always_export_symbols_GCJ=no
15853   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15854   # include_expsyms should be a list of space-separated symbols to be *always*
15855   # included in the symbol list
15856   include_expsyms_GCJ=
15857   # exclude_expsyms can be an extended regexp of symbols to exclude
15858   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15859   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15860   # as well as any symbol that contains `d'.
15861   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15862   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15863   # platforms (ab)use it in PIC code, but their linkers get confused if
15864   # the symbol is explicitly referenced.  Since portable code cannot
15865   # rely on this symbol name, it's probably fine to never include it in
15866   # preloaded symbol tables.
15867   extract_expsyms_cmds=
15868
15869   case $host_os in
15870   cygwin* | mingw* | pw32*)
15871     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15872     # When not using gcc, we currently assume that we are using
15873     # Microsoft Visual C++.
15874     if test "$GCC" != yes; then
15875       with_gnu_ld=no
15876     fi
15877     ;;
15878   openbsd*)
15879     with_gnu_ld=no
15880     ;;
15881   esac
15882
15883   ld_shlibs_GCJ=yes
15884   if test "$with_gnu_ld" = yes; then
15885     # If archive_cmds runs LD, not CC, wlarc should be empty
15886     wlarc='${wl}'
15887
15888     # See if GNU ld supports shared libraries.
15889     case $host_os in
15890     aix3* | aix4* | aix5*)
15891       # On AIX/PPC, the GNU linker is very broken
15892       if test "$host_cpu" != ia64; then
15893         ld_shlibs_GCJ=no
15894         cat <<EOF 1>&2
15895
15896 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15897 *** to be unable to reliably create shared libraries on AIX.
15898 *** Therefore, libtool is disabling shared libraries support.  If you
15899 *** really care for shared libraries, you may want to modify your PATH
15900 *** so that a non-GNU linker is found, and then restart.
15901
15902 EOF
15903       fi
15904       ;;
15905
15906     amigaos*)
15907       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)'
15908       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15909       hardcode_minus_L_GCJ=yes
15910
15911       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15912       # that the semantics of dynamic libraries on AmigaOS, at least up
15913       # to version 4, is to share data among multiple programs linked
15914       # with the same dynamic library.  Since this doesn't match the
15915       # behavior of shared libraries on other platforms, we can't use
15916       # them.
15917       ld_shlibs_GCJ=no
15918       ;;
15919
15920     beos*)
15921       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15922         allow_undefined_flag_GCJ=unsupported
15923         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15924         # support --undefined.  This deserves some investigation.  FIXME
15925         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15926       else
15927         ld_shlibs_GCJ=no
15928       fi
15929       ;;
15930
15931     cygwin* | mingw* | pw32*)
15932       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15933       # as there is no search path for DLLs.
15934       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15935       allow_undefined_flag_GCJ=unsupported
15936       always_export_symbols_GCJ=no
15937       enable_shared_with_static_runtimes_GCJ=yes
15938       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15939
15940       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15941         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15942         # If the export-symbols file already is a .def file (1st line
15943         # is EXPORTS), use it as is; otherwise, prepend...
15944         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15945           cp $export_symbols $output_objdir/$soname.def;
15946         else
15947           echo EXPORTS > $output_objdir/$soname.def;
15948           cat $export_symbols >> $output_objdir/$soname.def;
15949         fi~
15950         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15951       else
15952         ld_shlibs=no
15953       fi
15954       ;;
15955
15956     netbsd*)
15957       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15958         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15959         wlarc=
15960       else
15961         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15962         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15963       fi
15964       ;;
15965
15966     solaris* | sysv5*)
15967       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15968         ld_shlibs_GCJ=no
15969         cat <<EOF 1>&2
15970
15971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15972 *** create shared libraries on Solaris systems.  Therefore, libtool
15973 *** is disabling shared libraries support.  We urge you to upgrade GNU
15974 *** binutils to release 2.9.1 or newer.  Another option is to modify
15975 *** your PATH or compiler configuration so that the native linker is
15976 *** used, and then restart.
15977
15978 EOF
15979       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15980         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15981         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15982       else
15983         ld_shlibs_GCJ=no
15984       fi
15985       ;;
15986
15987     sunos4*)
15988       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15989       wlarc=
15990       hardcode_direct_GCJ=yes
15991       hardcode_shlibpath_var_GCJ=no
15992       ;;
15993
15994   linux*)
15995     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15996         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15997         archive_cmds_GCJ="$tmp_archive_cmds"
15998       supports_anon_versioning=no
15999       case `$LD -v 2>/dev/null` in
16000         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16001         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16002         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16003         *\ 2.11.*) ;; # other 2.11 versions
16004         *) supports_anon_versioning=yes ;;
16005       esac
16006       if test $supports_anon_versioning = yes; then
16007         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16009 $echo "local: *; };" >> $output_objdir/$libname.ver~
16010         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16011       else
16012         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16013       fi
16014     else
16015       ld_shlibs_GCJ=no
16016     fi
16017     ;;
16018
16019     *)
16020       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16021         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16022         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16023       else
16024         ld_shlibs_GCJ=no
16025       fi
16026       ;;
16027     esac
16028
16029     if test "$ld_shlibs_GCJ" = yes; then
16030       runpath_var=LD_RUN_PATH
16031       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16032       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16033       # ancient GNU ld didn't support --whole-archive et. al.
16034       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16035         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16036       else
16037         whole_archive_flag_spec_GCJ=
16038       fi
16039     fi
16040   else
16041     # PORTME fill in a description of your system's linker (not GNU ld)
16042     case $host_os in
16043     aix3*)
16044       allow_undefined_flag_GCJ=unsupported
16045       always_export_symbols_GCJ=yes
16046       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'
16047       # Note: this linker hardcodes the directories in LIBPATH if there
16048       # are no directories specified by -L.
16049       hardcode_minus_L_GCJ=yes
16050       if test "$GCC" = yes && test -z "$link_static_flag"; then
16051         # Neither direct hardcoding nor static linking is supported with a
16052         # broken collect2.
16053         hardcode_direct_GCJ=unsupported
16054       fi
16055       ;;
16056
16057     aix4* | aix5*)
16058       if test "$host_cpu" = ia64; then
16059         # On IA64, the linker does run time linking by default, so we don't
16060         # have to do anything special.
16061         aix_use_runtimelinking=no
16062         exp_sym_flag='-Bexport'
16063         no_entry_flag=""
16064       else
16065         # If we're using GNU nm, then we don't want the "-C" option.
16066         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16067         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16068           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'
16069         else
16070           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'
16071         fi
16072         aix_use_runtimelinking=no
16073
16074         # Test if we are trying to use run time linking or normal
16075         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16076         # need to do runtime linking.
16077         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16078           for ld_flag in $LDFLAGS; do
16079           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16080             aix_use_runtimelinking=yes
16081             break
16082           fi
16083           done
16084         esac
16085
16086         exp_sym_flag='-bexport'
16087         no_entry_flag='-bnoentry'
16088       fi
16089
16090       # When large executables or shared objects are built, AIX ld can
16091       # have problems creating the table of contents.  If linking a library
16092       # or program results in "error TOC overflow" add -mminimal-toc to
16093       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16094       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16095
16096       archive_cmds_GCJ=''
16097       hardcode_direct_GCJ=yes
16098       hardcode_libdir_separator_GCJ=':'
16099       link_all_deplibs_GCJ=yes
16100
16101       if test "$GCC" = yes; then
16102         case $host_os in aix4.012|aix4.012.*)
16103         # We only want to do this on AIX 4.2 and lower, the check
16104         # below for broken collect2 doesn't work under 4.3+
16105           collect2name=`${CC} -print-prog-name=collect2`
16106           if test -f "$collect2name" && \
16107            strings "$collect2name" | grep resolve_lib_name >/dev/null
16108           then
16109           # We have reworked collect2
16110           hardcode_direct_GCJ=yes
16111           else
16112           # We have old collect2
16113           hardcode_direct_GCJ=unsupported
16114           # It fails to find uninstalled libraries when the uninstalled
16115           # path is not listed in the libpath.  Setting hardcode_minus_L
16116           # to unsupported forces relinking
16117           hardcode_minus_L_GCJ=yes
16118           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16119           hardcode_libdir_separator_GCJ=
16120           fi
16121         esac
16122         shared_flag='-shared'
16123       else
16124         # not using gcc
16125         if test "$host_cpu" = ia64; then
16126         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16127         # chokes on -Wl,-G. The following line is correct:
16128           shared_flag='-G'
16129         else
16130         if test "$aix_use_runtimelinking" = yes; then
16131             shared_flag='${wl}-G'
16132           else
16133             shared_flag='${wl}-bM:SRE'
16134         fi
16135         fi
16136       fi
16137
16138       # It seems that -bexpall does not export symbols beginning with
16139       # underscore (_), so it is better to generate a list of symbols to export.
16140       always_export_symbols_GCJ=yes
16141       if test "$aix_use_runtimelinking" = yes; then
16142         # Warning - without using the other runtime loading flags (-brtl),
16143         # -berok will link without error, but may produce a broken library.
16144         allow_undefined_flag_GCJ='-berok'
16145        # Determine the default libpath from the value encoded in an empty executable.
16146        cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h.  */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h.  */
16152
16153 int
16154 main ()
16155 {
16156
16157   ;
16158   return 0;
16159 }
16160 _ACEOF
16161 rm -f conftest.$ac_objext conftest$ac_exeext
16162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16163   (eval $ac_link) 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"                   || test ! -s conftest.err'
16171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172   (eval $ac_try) 2>&5
16173   ac_status=$?
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); }; } &&
16176          { ac_try='test -s conftest$ac_exeext'
16177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16178   (eval $ac_try) 2>&5
16179   ac_status=$?
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); }; }; then
16182
16183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16184 }'`
16185 # Check for a 64-bit object if we didn't find anything.
16186 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; }
16187 }'`; fi
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192 fi
16193 rm -f conftest.err conftest.$ac_objext \
16194       conftest$ac_exeext conftest.$ac_ext
16195 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16196
16197        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16198         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16199        else
16200         if test "$host_cpu" = ia64; then
16201           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16202           allow_undefined_flag_GCJ="-z nodefs"
16203           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16204         else
16205          # Determine the default libpath from the value encoded in an empty executable.
16206          cat >conftest.$ac_ext <<_ACEOF
16207 /* confdefs.h.  */
16208 _ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h.  */
16212
16213 int
16214 main ()
16215 {
16216
16217   ;
16218   return 0;
16219 }
16220 _ACEOF
16221 rm -f conftest.$ac_objext conftest$ac_exeext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16223   (eval $ac_link) 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } &&
16230          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232   (eval $ac_try) 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }; } &&
16236          { ac_try='test -s conftest$ac_exeext'
16237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238   (eval $ac_try) 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); }; }; then
16242
16243 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16244 }'`
16245 # Check for a 64-bit object if we didn't find anything.
16246 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; }
16247 }'`; fi
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252 fi
16253 rm -f conftest.err conftest.$ac_objext \
16254       conftest$ac_exeext conftest.$ac_ext
16255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16256
16257          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16258           # Warning - without using the other run time loading flags,
16259           # -berok will link without error, but may produce a broken library.
16260           no_undefined_flag_GCJ=' ${wl}-bernotok'
16261           allow_undefined_flag_GCJ=' ${wl}-berok'
16262           # -bexpall does not export symbols beginning with underscore (_)
16263           always_export_symbols_GCJ=yes
16264           # Exported symbols can be pulled into shared objects from archives
16265           whole_archive_flag_spec_GCJ=' '
16266           archive_cmds_need_lc_GCJ=yes
16267           # This is similar to how AIX traditionally builds it's shared libraries.
16268           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16269         fi
16270       fi
16271       ;;
16272
16273     amigaos*)
16274       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)'
16275       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16276       hardcode_minus_L_GCJ=yes
16277       # see comment about different semantics on the GNU ld section
16278       ld_shlibs_GCJ=no
16279       ;;
16280
16281     bsdi4*)
16282       export_dynamic_flag_spec_GCJ=-rdynamic
16283       ;;
16284
16285     cygwin* | mingw* | pw32*)
16286       # When not using gcc, we currently assume that we are using
16287       # Microsoft Visual C++.
16288       # hardcode_libdir_flag_spec is actually meaningless, as there is
16289       # no search path for DLLs.
16290       hardcode_libdir_flag_spec_GCJ=' '
16291       allow_undefined_flag_GCJ=unsupported
16292       # Tell ltmain to make .lib files, not .a files.
16293       libext=lib
16294       # Tell ltmain to make .dll files, not .so files.
16295       shrext_cmds=".dll"
16296       # FIXME: Setting linknames here is a bad hack.
16297       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16298       # The linker will automatically build a .lib file if we build a DLL.
16299       old_archive_From_new_cmds_GCJ='true'
16300       # FIXME: Should let the user specify the lib program.
16301       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16302       fix_srcfile_path='`cygpath -w "$srcfile"`'
16303       enable_shared_with_static_runtimes_GCJ=yes
16304       ;;
16305
16306     darwin* | rhapsody*)
16307     if test "$GXX" = yes ; then
16308       archive_cmds_need_lc_GCJ=no
16309       case "$host_os" in
16310       rhapsody* | darwin1.[012])
16311         allow_undefined_flag_GCJ='-undefined suppress'
16312         ;;
16313       *) # Darwin 1.3 on
16314       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16315         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16316       else
16317         case ${MACOSX_DEPLOYMENT_TARGET} in
16318           10.[012])
16319             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16320             ;;
16321           10.*)
16322             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16323             ;;
16324         esac
16325       fi
16326         ;;
16327       esac
16328         lt_int_apple_cc_single_mod=no
16329         output_verbose_link_cmd='echo'
16330         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16331           lt_int_apple_cc_single_mod=yes
16332         fi
16333         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16334           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16335         else
16336         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16337       fi
16338       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16339       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16340         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16341           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16342         else
16343           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16344         fi
16345           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}'
16346       hardcode_direct_GCJ=no
16347       hardcode_automatic_GCJ=yes
16348       hardcode_shlibpath_var_GCJ=unsupported
16349       whole_archive_flag_spec_GCJ='-all_load $convenience'
16350       link_all_deplibs_GCJ=yes
16351     else
16352       ld_shlibs_GCJ=no
16353     fi
16354       ;;
16355
16356     dgux*)
16357       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16358       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16359       hardcode_shlibpath_var_GCJ=no
16360       ;;
16361
16362     freebsd1*)
16363       ld_shlibs_GCJ=no
16364       ;;
16365
16366     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16367     # support.  Future versions do this automatically, but an explicit c++rt0.o
16368     # does not break anything, and helps significantly (at the cost of a little
16369     # extra space).
16370     freebsd2.2*)
16371       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16372       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16373       hardcode_direct_GCJ=yes
16374       hardcode_shlibpath_var_GCJ=no
16375       ;;
16376
16377     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16378     freebsd2*)
16379       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16380       hardcode_direct_GCJ=yes
16381       hardcode_minus_L_GCJ=yes
16382       hardcode_shlibpath_var_GCJ=no
16383       ;;
16384
16385     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16386     freebsd* | kfreebsd*-gnu)
16387       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16388       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16389       hardcode_direct_GCJ=yes
16390       hardcode_shlibpath_var_GCJ=no
16391       ;;
16392
16393     hpux9*)
16394       if test "$GCC" = yes; then
16395         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'
16396       else
16397         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'
16398       fi
16399       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16400       hardcode_libdir_separator_GCJ=:
16401       hardcode_direct_GCJ=yes
16402
16403       # hardcode_minus_L: Not really in the search PATH,
16404       # but as the default location of the library.
16405       hardcode_minus_L_GCJ=yes
16406       export_dynamic_flag_spec_GCJ='${wl}-E'
16407       ;;
16408
16409     hpux10* | hpux11*)
16410       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16411         case "$host_cpu" in
16412         hppa*64*|ia64*)
16413           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16414           ;;
16415         *)
16416           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16417           ;;
16418         esac
16419       else
16420         case "$host_cpu" in
16421         hppa*64*|ia64*)
16422           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16423           ;;
16424         *)
16425           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16426           ;;
16427         esac
16428       fi
16429       if test "$with_gnu_ld" = no; then
16430         case "$host_cpu" in
16431         hppa*64*)
16432           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16433           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16434           hardcode_libdir_separator_GCJ=:
16435           hardcode_direct_GCJ=no
16436           hardcode_shlibpath_var_GCJ=no
16437           ;;
16438         ia64*)
16439           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16440           hardcode_direct_GCJ=no
16441           hardcode_shlibpath_var_GCJ=no
16442
16443           # hardcode_minus_L: Not really in the search PATH,
16444           # but as the default location of the library.
16445           hardcode_minus_L_GCJ=yes
16446           ;;
16447         *)
16448           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16449           hardcode_libdir_separator_GCJ=:
16450           hardcode_direct_GCJ=yes
16451           export_dynamic_flag_spec_GCJ='${wl}-E'
16452
16453           # hardcode_minus_L: Not really in the search PATH,
16454           # but as the default location of the library.
16455           hardcode_minus_L_GCJ=yes
16456           ;;
16457         esac
16458       fi
16459       ;;
16460
16461     irix5* | irix6* | nonstopux*)
16462       if test "$GCC" = yes; then
16463         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'
16464       else
16465         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'
16466         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16467       fi
16468       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16469       hardcode_libdir_separator_GCJ=:
16470       link_all_deplibs_GCJ=yes
16471       ;;
16472
16473     netbsd*)
16474       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16475         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16476       else
16477         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16478       fi
16479       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16480       hardcode_direct_GCJ=yes
16481       hardcode_shlibpath_var_GCJ=no
16482       ;;
16483
16484     newsos6)
16485       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486       hardcode_direct_GCJ=yes
16487       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16488       hardcode_libdir_separator_GCJ=:
16489       hardcode_shlibpath_var_GCJ=no
16490       ;;
16491
16492     openbsd*)
16493       hardcode_direct_GCJ=yes
16494       hardcode_shlibpath_var_GCJ=no
16495       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16496         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16497         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16498         export_dynamic_flag_spec_GCJ='${wl}-E'
16499       else
16500        case $host_os in
16501          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16502            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16503            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16504            ;;
16505          *)
16506            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16507            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16508            ;;
16509        esac
16510       fi
16511       ;;
16512
16513     os2*)
16514       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16515       hardcode_minus_L_GCJ=yes
16516       allow_undefined_flag_GCJ=unsupported
16517       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'
16518       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16519       ;;
16520
16521     osf3*)
16522       if test "$GCC" = yes; then
16523         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16524         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'
16525       else
16526         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16527         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'
16528       fi
16529       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16530       hardcode_libdir_separator_GCJ=:
16531       ;;
16532
16533     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16534       if test "$GCC" = yes; then
16535         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16536         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'
16537         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16538       else
16539         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16540         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'
16541         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~
16542         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16543
16544         # Both c and cxx compiler support -rpath directly
16545         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16546       fi
16547       hardcode_libdir_separator_GCJ=:
16548       ;;
16549
16550     sco3.2v5*)
16551       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16552       hardcode_shlibpath_var_GCJ=no
16553       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16554       runpath_var=LD_RUN_PATH
16555       hardcode_runpath_var=yes
16556       ;;
16557
16558     solaris*)
16559       no_undefined_flag_GCJ=' -z text'
16560       if test "$GCC" = yes; then
16561         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16562         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16563           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16564       else
16565         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16567         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16568       fi
16569       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16570       hardcode_shlibpath_var_GCJ=no
16571       case $host_os in
16572       solaris2.[0-5] | solaris2.[0-5].*) ;;
16573       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16574         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16575       esac
16576       link_all_deplibs_GCJ=yes
16577       ;;
16578
16579     sunos4*)
16580       if test "x$host_vendor" = xsequent; then
16581         # Use $CC to link under sequent, because it throws in some extra .o
16582         # files that make .init and .fini sections work.
16583         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16584       else
16585         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16586       fi
16587       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16588       hardcode_direct_GCJ=yes
16589       hardcode_minus_L_GCJ=yes
16590       hardcode_shlibpath_var_GCJ=no
16591       ;;
16592
16593     sysv4)
16594       case $host_vendor in
16595         sni)
16596           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597           hardcode_direct_GCJ=yes # is this really true???
16598         ;;
16599         siemens)
16600           ## LD is ld it makes a PLAMLIB
16601           ## CC just makes a GrossModule.
16602           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16603           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16604           hardcode_direct_GCJ=no
16605         ;;
16606         motorola)
16607           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16608           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16609         ;;
16610       esac
16611       runpath_var='LD_RUN_PATH'
16612       hardcode_shlibpath_var_GCJ=no
16613       ;;
16614
16615     sysv4.3*)
16616       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16617       hardcode_shlibpath_var_GCJ=no
16618       export_dynamic_flag_spec_GCJ='-Bexport'
16619       ;;
16620
16621     sysv4*MP*)
16622       if test -d /usr/nec; then
16623         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16624         hardcode_shlibpath_var_GCJ=no
16625         runpath_var=LD_RUN_PATH
16626         hardcode_runpath_var=yes
16627         ld_shlibs_GCJ=yes
16628       fi
16629       ;;
16630
16631     sysv4.2uw2*)
16632       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16633       hardcode_direct_GCJ=yes
16634       hardcode_minus_L_GCJ=no
16635       hardcode_shlibpath_var_GCJ=no
16636       hardcode_runpath_var=yes
16637       runpath_var=LD_RUN_PATH
16638       ;;
16639
16640    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16641       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16642       if test "$GCC" = yes; then
16643         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16644       else
16645         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16646       fi
16647       runpath_var='LD_RUN_PATH'
16648       hardcode_shlibpath_var_GCJ=no
16649       ;;
16650
16651     sysv5*)
16652       no_undefined_flag_GCJ=' -z text'
16653       # $CC -shared without GNU ld will not create a library from C++
16654       # object files and a static libstdc++, better avoid it by now
16655       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16656       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16657                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16658       hardcode_libdir_flag_spec_GCJ=
16659       hardcode_shlibpath_var_GCJ=no
16660       runpath_var='LD_RUN_PATH'
16661       ;;
16662
16663     uts4*)
16664       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16666       hardcode_shlibpath_var_GCJ=no
16667       ;;
16668
16669     *)
16670       ld_shlibs_GCJ=no
16671       ;;
16672     esac
16673   fi
16674
16675 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16676 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16677 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16678
16679 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16680 if test "$GCC" = yes; then
16681   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16682 fi
16683
16684 #
16685 # Do we need to explicitly link libc?
16686 #
16687 case "x$archive_cmds_need_lc_GCJ" in
16688 x|xyes)
16689   # Assume -lc should be added
16690   archive_cmds_need_lc_GCJ=yes
16691
16692   if test "$enable_shared" = yes && test "$GCC" = yes; then
16693     case $archive_cmds_GCJ in
16694     *'~'*)
16695       # FIXME: we may have to deal with multi-command sequences.
16696       ;;
16697     '$CC '*)
16698       # Test whether the compiler implicitly links with -lc since on some
16699       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16700       # to ld, don't add -lc before -lgcc.
16701       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16702 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16703       $rm conftest*
16704       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16705
16706       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16707   (eval $ac_compile) 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); } 2>conftest.err; then
16711         soname=conftest
16712         lib=conftest
16713         libobjs=conftest.$ac_objext
16714         deplibs=
16715         wl=$lt_prog_compiler_wl_GCJ
16716         compiler_flags=-v
16717         linker_flags=-v
16718         verstring=
16719         output_objdir=.
16720         libname=conftest
16721         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16722         allow_undefined_flag_GCJ=
16723         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16724   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); }
16728         then
16729           archive_cmds_need_lc_GCJ=no
16730         else
16731           archive_cmds_need_lc_GCJ=yes
16732         fi
16733         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16734       else
16735         cat conftest.err 1>&5
16736       fi
16737       $rm conftest*
16738       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16739 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16740       ;;
16741     esac
16742   fi
16743   ;;
16744 esac
16745
16746 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16747 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16748 library_names_spec=
16749 libname_spec='lib$name'
16750 soname_spec=
16751 shrext_cmds=".so"
16752 postinstall_cmds=
16753 postuninstall_cmds=
16754 finish_cmds=
16755 finish_eval=
16756 shlibpath_var=
16757 shlibpath_overrides_runpath=unknown
16758 version_type=none
16759 dynamic_linker="$host_os ld.so"
16760 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16761 if test "$GCC" = yes; then
16762   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16763   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16764     # if the path contains ";" then we assume it to be the separator
16765     # otherwise default to the standard path separator (i.e. ":") - it is
16766     # assumed that no part of a normal pathname contains ";" but that should
16767     # okay in the real world where ";" in dirpaths is itself problematic.
16768     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16769   else
16770     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16771   fi
16772 else
16773   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16774 fi
16775 need_lib_prefix=unknown
16776 hardcode_into_libs=no
16777
16778 # when you set need_version to no, make sure it does not cause -set_version
16779 # flags to be left without arguments
16780 need_version=unknown
16781
16782 case $host_os in
16783 aix3*)
16784   version_type=linux
16785   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16786   shlibpath_var=LIBPATH
16787
16788   # AIX 3 has no versioning support, so we append a major version to the name.
16789   soname_spec='${libname}${release}${shared_ext}$major'
16790   ;;
16791
16792 aix4* | aix5*)
16793   version_type=linux
16794   need_lib_prefix=no
16795   need_version=no
16796   hardcode_into_libs=yes
16797   if test "$host_cpu" = ia64; then
16798     # AIX 5 supports IA64
16799     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16800     shlibpath_var=LD_LIBRARY_PATH
16801   else
16802     # With GCC up to 2.95.x, collect2 would create an import file
16803     # for dependence libraries.  The import file would start with
16804     # the line `#! .'.  This would cause the generated library to
16805     # depend on `.', always an invalid library.  This was fixed in
16806     # development snapshots of GCC prior to 3.0.
16807     case $host_os in
16808       aix4 | aix4.[01] | aix4.[01].*)
16809       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16810            echo ' yes '
16811            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16812         :
16813       else
16814         can_build_shared=no
16815       fi
16816       ;;
16817     esac
16818     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16819     # soname into executable. Probably we can add versioning support to
16820     # collect2, so additional links can be useful in future.
16821     if test "$aix_use_runtimelinking" = yes; then
16822       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16823       # instead of lib<name>.a to let people know that these are not
16824       # typical AIX shared libraries.
16825       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826     else
16827       # We preserve .a as extension for shared libraries through AIX4.2
16828       # and later when we are not doing run time linking.
16829       library_names_spec='${libname}${release}.a $libname.a'
16830       soname_spec='${libname}${release}${shared_ext}$major'
16831     fi
16832     shlibpath_var=LIBPATH
16833   fi
16834   ;;
16835
16836 amigaos*)
16837   library_names_spec='$libname.ixlibrary $libname.a'
16838   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16839   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'
16840   ;;
16841
16842 beos*)
16843   library_names_spec='${libname}${shared_ext}'
16844   dynamic_linker="$host_os ld.so"
16845   shlibpath_var=LIBRARY_PATH
16846   ;;
16847
16848 bsdi4*)
16849   version_type=linux
16850   need_version=no
16851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16852   soname_spec='${libname}${release}${shared_ext}$major'
16853   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16854   shlibpath_var=LD_LIBRARY_PATH
16855   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16856   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16857   # the default ld.so.conf also contains /usr/contrib/lib and
16858   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16859   # libtool to hard-code these into programs
16860   ;;
16861
16862 cygwin* | mingw* | pw32*)
16863   version_type=windows
16864   shrext_cmds=".dll"
16865   need_version=no
16866   need_lib_prefix=no
16867
16868   case $GCC,$host_os in
16869   yes,cygwin* | yes,mingw* | yes,pw32*)
16870     library_names_spec='$libname.dll.a'
16871     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16872     postinstall_cmds='base_file=`basename \${file}`~
16873       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16874       dldir=$destdir/`dirname \$dlpath`~
16875       test -d \$dldir || mkdir -p \$dldir~
16876       $install_prog $dir/$dlname \$dldir/$dlname'
16877     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16878       dlpath=$dir/\$dldll~
16879        $rm \$dlpath'
16880     shlibpath_overrides_runpath=yes
16881
16882     case $host_os in
16883     cygwin*)
16884       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16885       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16886       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16887       ;;
16888     mingw*)
16889       # MinGW DLLs use traditional 'lib' prefix
16890       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16891       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16892       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16893         # It is most probably a Windows format PATH printed by
16894         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16895         # path with ; separators, and with drive letters. We can handle the
16896         # drive letters (cygwin fileutils understands them), so leave them,
16897         # especially as we might pass files found there to a mingw objdump,
16898         # which wouldn't understand a cygwinified path. Ahh.
16899         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16900       else
16901         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16902       fi
16903       ;;
16904     pw32*)
16905       # pw32 DLLs use 'pw' prefix rather than 'lib'
16906       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16907       ;;
16908     esac
16909     ;;
16910
16911   *)
16912     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16913     ;;
16914   esac
16915   dynamic_linker='Win32 ld.exe'
16916   # FIXME: first we should search . and the directory the executable is in
16917   shlibpath_var=PATH
16918   ;;
16919
16920 darwin* | rhapsody*)
16921   dynamic_linker="$host_os dyld"
16922   version_type=darwin
16923   need_lib_prefix=no
16924   need_version=no
16925   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16926   soname_spec='${libname}${release}${major}$shared_ext'
16927   shlibpath_overrides_runpath=yes
16928   shlibpath_var=DYLD_LIBRARY_PATH
16929   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16930   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16931   if test "$GCC" = yes; then
16932     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"`
16933   else
16934     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16935   fi
16936   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16937   ;;
16938
16939 dgux*)
16940   version_type=linux
16941   need_lib_prefix=no
16942   need_version=no
16943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16944   soname_spec='${libname}${release}${shared_ext}$major'
16945   shlibpath_var=LD_LIBRARY_PATH
16946   ;;
16947
16948 freebsd1*)
16949   dynamic_linker=no
16950   ;;
16951
16952 kfreebsd*-gnu)
16953   version_type=linux
16954   need_lib_prefix=no
16955   need_version=no
16956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16957   soname_spec='${libname}${release}${shared_ext}$major'
16958   shlibpath_var=LD_LIBRARY_PATH
16959   shlibpath_overrides_runpath=no
16960   hardcode_into_libs=yes
16961   dynamic_linker='GNU ld.so'
16962   ;;
16963
16964 freebsd*)
16965   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16966   version_type=freebsd-$objformat
16967   case $version_type in
16968     freebsd-elf*)
16969       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16970       need_version=no
16971       need_lib_prefix=no
16972       ;;
16973     freebsd-*)
16974       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16975       need_version=yes
16976       ;;
16977   esac
16978   shlibpath_var=LD_LIBRARY_PATH
16979   case $host_os in
16980   freebsd2*)
16981     shlibpath_overrides_runpath=yes
16982     ;;
16983   freebsd3.01* | freebsdelf3.01*)
16984     shlibpath_overrides_runpath=yes
16985     hardcode_into_libs=yes
16986     ;;
16987   *) # from 3.2 on
16988     shlibpath_overrides_runpath=no
16989     hardcode_into_libs=yes
16990     ;;
16991   esac
16992   ;;
16993
16994 gnu*)
16995   version_type=linux
16996   need_lib_prefix=no
16997   need_version=no
16998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16999   soname_spec='${libname}${release}${shared_ext}$major'
17000   shlibpath_var=LD_LIBRARY_PATH
17001   hardcode_into_libs=yes
17002   ;;
17003
17004 hpux9* | hpux10* | hpux11*)
17005   # Give a soname corresponding to the major version so that dld.sl refuses to
17006   # link against other versions.
17007   version_type=sunos
17008   need_lib_prefix=no
17009   need_version=no
17010   case "$host_cpu" in
17011   ia64*)
17012     shrext_cmds='.so'
17013     hardcode_into_libs=yes
17014     dynamic_linker="$host_os dld.so"
17015     shlibpath_var=LD_LIBRARY_PATH
17016     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17017     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17018     soname_spec='${libname}${release}${shared_ext}$major'
17019     if test "X$HPUX_IA64_MODE" = X32; then
17020       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17021     else
17022       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17023     fi
17024     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17025     ;;
17026    hppa*64*)
17027      shrext_cmds='.sl'
17028      hardcode_into_libs=yes
17029      dynamic_linker="$host_os dld.sl"
17030      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17031      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17032      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033      soname_spec='${libname}${release}${shared_ext}$major'
17034      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17035      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17036      ;;
17037    *)
17038     shrext_cmds='.sl'
17039     dynamic_linker="$host_os dld.sl"
17040     shlibpath_var=SHLIB_PATH
17041     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17042     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17043     soname_spec='${libname}${release}${shared_ext}$major'
17044     ;;
17045   esac
17046   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17047   postinstall_cmds='chmod 555 $lib'
17048   ;;
17049
17050 irix5* | irix6* | nonstopux*)
17051   case $host_os in
17052     nonstopux*) version_type=nonstopux ;;
17053     *)
17054         if test "$lt_cv_prog_gnu_ld" = yes; then
17055                 version_type=linux
17056         else
17057                 version_type=irix
17058         fi ;;
17059   esac
17060   need_lib_prefix=no
17061   need_version=no
17062   soname_spec='${libname}${release}${shared_ext}$major'
17063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17064   case $host_os in
17065   irix5* | nonstopux*)
17066     libsuff= shlibsuff=
17067     ;;
17068   *)
17069     case $LD in # libtool.m4 will add one of these switches to LD
17070     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17071       libsuff= shlibsuff= libmagic=32-bit;;
17072     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17073       libsuff=32 shlibsuff=N32 libmagic=N32;;
17074     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17075       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17076     *) libsuff= shlibsuff= libmagic=never-match;;
17077     esac
17078     ;;
17079   esac
17080   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17081   shlibpath_overrides_runpath=no
17082   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17083   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17084   hardcode_into_libs=yes
17085   ;;
17086
17087 # No shared lib support for Linux oldld, aout, or coff.
17088 linux*oldld* | linux*aout* | linux*coff*)
17089   dynamic_linker=no
17090   ;;
17091
17092 # This must be Linux ELF.
17093 linux*)
17094   version_type=linux
17095   need_lib_prefix=no
17096   need_version=no
17097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098   soname_spec='${libname}${release}${shared_ext}$major'
17099   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17100   shlibpath_var=LD_LIBRARY_PATH
17101   shlibpath_overrides_runpath=no
17102   # This implies no fast_install, which is unacceptable.
17103   # Some rework will be needed to allow for fast_install
17104   # before this can be enabled.
17105   hardcode_into_libs=yes
17106
17107   # Append ld.so.conf contents to the search path
17108   if test -f /etc/ld.so.conf; then
17109     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17110     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17111   fi
17112
17113   # We used to test for /lib/ld.so.1 and disable shared libraries on
17114   # powerpc, because MkLinux only supported shared libraries with the
17115   # GNU dynamic linker.  Since this was broken with cross compilers,
17116   # most powerpc-linux boxes support dynamic linking these days and
17117   # people can always --disable-shared, the test was removed, and we
17118   # assume the GNU/Linux dynamic linker is in use.
17119   dynamic_linker='GNU/Linux ld.so'
17120   ;;
17121
17122 knetbsd*-gnu)
17123   version_type=linux
17124   need_lib_prefix=no
17125   need_version=no
17126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17127   soname_spec='${libname}${release}${shared_ext}$major'
17128   shlibpath_var=LD_LIBRARY_PATH
17129   shlibpath_overrides_runpath=no
17130   hardcode_into_libs=yes
17131   dynamic_linker='GNU ld.so'
17132   ;;
17133
17134 netbsd*)
17135   version_type=sunos
17136   need_lib_prefix=no
17137   need_version=no
17138   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17140     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17141     dynamic_linker='NetBSD (a.out) ld.so'
17142   else
17143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17144     soname_spec='${libname}${release}${shared_ext}$major'
17145     dynamic_linker='NetBSD ld.elf_so'
17146   fi
17147   shlibpath_var=LD_LIBRARY_PATH
17148   shlibpath_overrides_runpath=yes
17149   hardcode_into_libs=yes
17150   ;;
17151
17152 newsos6)
17153   version_type=linux
17154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155   shlibpath_var=LD_LIBRARY_PATH
17156   shlibpath_overrides_runpath=yes
17157   ;;
17158
17159 nto-qnx*)
17160   version_type=linux
17161   need_lib_prefix=no
17162   need_version=no
17163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17164   soname_spec='${libname}${release}${shared_ext}$major'
17165   shlibpath_var=LD_LIBRARY_PATH
17166   shlibpath_overrides_runpath=yes
17167   ;;
17168
17169 openbsd*)
17170   version_type=sunos
17171   need_lib_prefix=no
17172   need_version=yes
17173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17174   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17175   shlibpath_var=LD_LIBRARY_PATH
17176   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17177     case $host_os in
17178       openbsd2.[89] | openbsd2.[89].*)
17179         shlibpath_overrides_runpath=no
17180         ;;
17181       *)
17182         shlibpath_overrides_runpath=yes
17183         ;;
17184       esac
17185   else
17186     shlibpath_overrides_runpath=yes
17187   fi
17188   ;;
17189
17190 os2*)
17191   libname_spec='$name'
17192   shrext_cmds=".dll"
17193   need_lib_prefix=no
17194   library_names_spec='$libname${shared_ext} $libname.a'
17195   dynamic_linker='OS/2 ld.exe'
17196   shlibpath_var=LIBPATH
17197   ;;
17198
17199 osf3* | osf4* | osf5*)
17200   version_type=osf
17201   need_lib_prefix=no
17202   need_version=no
17203   soname_spec='${libname}${release}${shared_ext}$major'
17204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205   shlibpath_var=LD_LIBRARY_PATH
17206   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17207   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17208   ;;
17209
17210 sco3.2v5*)
17211   version_type=osf
17212   soname_spec='${libname}${release}${shared_ext}$major'
17213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214   shlibpath_var=LD_LIBRARY_PATH
17215   ;;
17216
17217 solaris*)
17218   version_type=linux
17219   need_lib_prefix=no
17220   need_version=no
17221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17222   soname_spec='${libname}${release}${shared_ext}$major'
17223   shlibpath_var=LD_LIBRARY_PATH
17224   shlibpath_overrides_runpath=yes
17225   hardcode_into_libs=yes
17226   # ldd complains unless libraries are executable
17227   postinstall_cmds='chmod +x $lib'
17228   ;;
17229
17230 sunos4*)
17231   version_type=sunos
17232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17233   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17234   shlibpath_var=LD_LIBRARY_PATH
17235   shlibpath_overrides_runpath=yes
17236   if test "$with_gnu_ld" = yes; then
17237     need_lib_prefix=no
17238   fi
17239   need_version=yes
17240   ;;
17241
17242 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17243   version_type=linux
17244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17245   soname_spec='${libname}${release}${shared_ext}$major'
17246   shlibpath_var=LD_LIBRARY_PATH
17247   case $host_vendor in
17248     sni)
17249       shlibpath_overrides_runpath=no
17250       need_lib_prefix=no
17251       export_dynamic_flag_spec='${wl}-Blargedynsym'
17252       runpath_var=LD_RUN_PATH
17253       ;;
17254     siemens)
17255       need_lib_prefix=no
17256       ;;
17257     motorola)
17258       need_lib_prefix=no
17259       need_version=no
17260       shlibpath_overrides_runpath=no
17261       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17262       ;;
17263   esac
17264   ;;
17265
17266 sysv4*MP*)
17267   if test -d /usr/nec ;then
17268     version_type=linux
17269     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17270     soname_spec='$libname${shared_ext}.$major'
17271     shlibpath_var=LD_LIBRARY_PATH
17272   fi
17273   ;;
17274
17275 uts4*)
17276   version_type=linux
17277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17278   soname_spec='${libname}${release}${shared_ext}$major'
17279   shlibpath_var=LD_LIBRARY_PATH
17280   ;;
17281
17282 *)
17283   dynamic_linker=no
17284   ;;
17285 esac
17286 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17287 echo "${ECHO_T}$dynamic_linker" >&6
17288 test "$dynamic_linker" = no && can_build_shared=no
17289
17290 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17291 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17292 hardcode_action_GCJ=
17293 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17294    test -n "$runpath_var GCJ" || \
17295    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17296
17297   # We can hardcode non-existant directories.
17298   if test "$hardcode_direct_GCJ" != no &&
17299      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17300      # have to relink, otherwise we might link with an installed library
17301      # when we should be linking with a yet-to-be-installed one
17302      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17303      test "$hardcode_minus_L_GCJ" != no; then
17304     # Linking always hardcodes the temporary library directory.
17305     hardcode_action_GCJ=relink
17306   else
17307     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17308     hardcode_action_GCJ=immediate
17309   fi
17310 else
17311   # We cannot hardcode anything, or else we can only hardcode existing
17312   # directories.
17313   hardcode_action_GCJ=unsupported
17314 fi
17315 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17316 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17317
17318 if test "$hardcode_action_GCJ" = relink; then
17319   # Fast installation is not supported
17320   enable_fast_install=no
17321 elif test "$shlibpath_overrides_runpath" = yes ||
17322      test "$enable_shared" = no; then
17323   # Fast installation is not necessary
17324   enable_fast_install=needless
17325 fi
17326
17327 striplib=
17328 old_striplib=
17329 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17330 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17331 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17332   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17333   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17334   echo "$as_me:$LINENO: result: yes" >&5
17335 echo "${ECHO_T}yes" >&6
17336 else
17337 # FIXME - insert some real tests, host_os isn't really good enough
17338   case $host_os in
17339    darwin*)
17340        if test -n "$STRIP" ; then
17341          striplib="$STRIP -x"
17342          echo "$as_me:$LINENO: result: yes" >&5
17343 echo "${ECHO_T}yes" >&6
17344        else
17345   echo "$as_me:$LINENO: result: no" >&5
17346 echo "${ECHO_T}no" >&6
17347 fi
17348        ;;
17349    *)
17350   echo "$as_me:$LINENO: result: no" >&5
17351 echo "${ECHO_T}no" >&6
17352     ;;
17353   esac
17354 fi
17355
17356 if test "x$enable_dlopen" != xyes; then
17357   enable_dlopen=unknown
17358   enable_dlopen_self=unknown
17359   enable_dlopen_self_static=unknown
17360 else
17361   lt_cv_dlopen=no
17362   lt_cv_dlopen_libs=
17363
17364   case $host_os in
17365   beos*)
17366     lt_cv_dlopen="load_add_on"
17367     lt_cv_dlopen_libs=
17368     lt_cv_dlopen_self=yes
17369     ;;
17370
17371   mingw* | pw32*)
17372     lt_cv_dlopen="LoadLibrary"
17373     lt_cv_dlopen_libs=
17374    ;;
17375
17376   cygwin*)
17377     lt_cv_dlopen="dlopen"
17378     lt_cv_dlopen_libs=
17379    ;;
17380
17381   darwin*)
17382   # if libdl is installed we need to link against it
17383     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17384 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17386   echo $ECHO_N "(cached) $ECHO_C" >&6
17387 else
17388   ac_check_lib_save_LIBS=$LIBS
17389 LIBS="-ldl  $LIBS"
17390 cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h.  */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h.  */
17396
17397 /* Override any gcc2 internal prototype to avoid an error.  */
17398 #ifdef __cplusplus
17399 extern "C"
17400 #endif
17401 /* We use char because int might match the return type of a gcc2
17402    builtin and then its argument prototype would still apply.  */
17403 char dlopen ();
17404 int
17405 main ()
17406 {
17407 dlopen ();
17408   ;
17409   return 0;
17410 }
17411 _ACEOF
17412 rm -f conftest.$ac_objext conftest$ac_exeext
17413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17414   (eval $ac_link) 2>conftest.er1
17415   ac_status=$?
17416   grep -v '^ *+' conftest.er1 >conftest.err
17417   rm -f conftest.er1
17418   cat conftest.err >&5
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); } &&
17421          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423   (eval $ac_try) 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; } &&
17427          { ac_try='test -s conftest$ac_exeext'
17428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429   (eval $ac_try) 2>&5
17430   ac_status=$?
17431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432   (exit $ac_status); }; }; then
17433   ac_cv_lib_dl_dlopen=yes
17434 else
17435   echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 ac_cv_lib_dl_dlopen=no
17439 fi
17440 rm -f conftest.err conftest.$ac_objext \
17441       conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17443 fi
17444 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17445 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17446 if test $ac_cv_lib_dl_dlopen = yes; then
17447   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17448 else
17449
17450     lt_cv_dlopen="dyld"
17451     lt_cv_dlopen_libs=
17452     lt_cv_dlopen_self=yes
17453
17454 fi
17455
17456    ;;
17457
17458   *)
17459     echo "$as_me:$LINENO: checking for shl_load" >&5
17460 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17461 if test "${ac_cv_func_shl_load+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464   cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h.  */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h.  */
17470 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17472 #define shl_load innocuous_shl_load
17473
17474 /* System header to define __stub macros and hopefully few prototypes,
17475     which can conflict with char shl_load (); below.
17476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17477     <limits.h> exists even on freestanding compilers.  */
17478
17479 #ifdef __STDC__
17480 # include <limits.h>
17481 #else
17482 # include <assert.h>
17483 #endif
17484
17485 #undef shl_load
17486
17487 /* Override any gcc2 internal prototype to avoid an error.  */
17488 #ifdef __cplusplus
17489 extern "C"
17490 {
17491 #endif
17492 /* We use char because int might match the return type of a gcc2
17493    builtin and then its argument prototype would still apply.  */
17494 char shl_load ();
17495 /* The GNU C library defines this for functions which it implements
17496     to always fail with ENOSYS.  Some functions are actually named
17497     something starting with __ and the normal name is an alias.  */
17498 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17499 choke me
17500 #else
17501 char (*f) () = shl_load;
17502 #endif
17503 #ifdef __cplusplus
17504 }
17505 #endif
17506
17507 int
17508 main ()
17509 {
17510 return f != shl_load;
17511   ;
17512   return 0;
17513 }
17514 _ACEOF
17515 rm -f conftest.$ac_objext conftest$ac_exeext
17516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17517   (eval $ac_link) 2>conftest.er1
17518   ac_status=$?
17519   grep -v '^ *+' conftest.er1 >conftest.err
17520   rm -f conftest.er1
17521   cat conftest.err >&5
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); } &&
17524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526   (eval $ac_try) 2>&5
17527   ac_status=$?
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); }; } &&
17530          { ac_try='test -s conftest$ac_exeext'
17531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532   (eval $ac_try) 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); }; }; then
17536   ac_cv_func_shl_load=yes
17537 else
17538   echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541 ac_cv_func_shl_load=no
17542 fi
17543 rm -f conftest.err conftest.$ac_objext \
17544       conftest$ac_exeext conftest.$ac_ext
17545 fi
17546 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17547 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17548 if test $ac_cv_func_shl_load = yes; then
17549   lt_cv_dlopen="shl_load"
17550 else
17551   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17552 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17553 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17554   echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17556   ac_check_lib_save_LIBS=$LIBS
17557 LIBS="-ldld  $LIBS"
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h.  */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h.  */
17564
17565 /* Override any gcc2 internal prototype to avoid an error.  */
17566 #ifdef __cplusplus
17567 extern "C"
17568 #endif
17569 /* We use char because int might match the return type of a gcc2
17570    builtin and then its argument prototype would still apply.  */
17571 char shl_load ();
17572 int
17573 main ()
17574 {
17575 shl_load ();
17576   ;
17577   return 0;
17578 }
17579 _ACEOF
17580 rm -f conftest.$ac_objext conftest$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582   (eval $ac_link) 2>conftest.er1
17583   ac_status=$?
17584   grep -v '^ *+' conftest.er1 >conftest.err
17585   rm -f conftest.er1
17586   cat conftest.err >&5
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); } &&
17589          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591   (eval $ac_try) 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; } &&
17595          { ac_try='test -s conftest$ac_exeext'
17596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597   (eval $ac_try) 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   ac_cv_lib_dld_shl_load=yes
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_cv_lib_dld_shl_load=no
17607 fi
17608 rm -f conftest.err conftest.$ac_objext \
17609       conftest$ac_exeext conftest.$ac_ext
17610 LIBS=$ac_check_lib_save_LIBS
17611 fi
17612 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17613 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17614 if test $ac_cv_lib_dld_shl_load = yes; then
17615   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17616 else
17617   echo "$as_me:$LINENO: checking for dlopen" >&5
17618 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17619 if test "${ac_cv_func_dlopen+set}" = set; then
17620   echo $ECHO_N "(cached) $ECHO_C" >&6
17621 else
17622   cat >conftest.$ac_ext <<_ACEOF
17623 /* confdefs.h.  */
17624 _ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h.  */
17628 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17630 #define dlopen innocuous_dlopen
17631
17632 /* System header to define __stub macros and hopefully few prototypes,
17633     which can conflict with char dlopen (); below.
17634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635     <limits.h> exists even on freestanding compilers.  */
17636
17637 #ifdef __STDC__
17638 # include <limits.h>
17639 #else
17640 # include <assert.h>
17641 #endif
17642
17643 #undef dlopen
17644
17645 /* Override any gcc2 internal prototype to avoid an error.  */
17646 #ifdef __cplusplus
17647 extern "C"
17648 {
17649 #endif
17650 /* We use char because int might match the return type of a gcc2
17651    builtin and then its argument prototype would still apply.  */
17652 char dlopen ();
17653 /* The GNU C library defines this for functions which it implements
17654     to always fail with ENOSYS.  Some functions are actually named
17655     something starting with __ and the normal name is an alias.  */
17656 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17657 choke me
17658 #else
17659 char (*f) () = dlopen;
17660 #endif
17661 #ifdef __cplusplus
17662 }
17663 #endif
17664
17665 int
17666 main ()
17667 {
17668 return f != dlopen;
17669   ;
17670   return 0;
17671 }
17672 _ACEOF
17673 rm -f conftest.$ac_objext conftest$ac_exeext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675   (eval $ac_link) 2>conftest.er1
17676   ac_status=$?
17677   grep -v '^ *+' conftest.er1 >conftest.err
17678   rm -f conftest.er1
17679   cat conftest.err >&5
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); } &&
17682          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684   (eval $ac_try) 2>&5
17685   ac_status=$?
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); }; } &&
17688          { ac_try='test -s conftest$ac_exeext'
17689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690   (eval $ac_try) 2>&5
17691   ac_status=$?
17692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693   (exit $ac_status); }; }; then
17694   ac_cv_func_dlopen=yes
17695 else
17696   echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699 ac_cv_func_dlopen=no
17700 fi
17701 rm -f conftest.err conftest.$ac_objext \
17702       conftest$ac_exeext conftest.$ac_ext
17703 fi
17704 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17705 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17706 if test $ac_cv_func_dlopen = yes; then
17707   lt_cv_dlopen="dlopen"
17708 else
17709   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17710 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17711 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17712   echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714   ac_check_lib_save_LIBS=$LIBS
17715 LIBS="-ldl  $LIBS"
17716 cat >conftest.$ac_ext <<_ACEOF
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722
17723 /* Override any gcc2 internal prototype to avoid an error.  */
17724 #ifdef __cplusplus
17725 extern "C"
17726 #endif
17727 /* We use char because int might match the return type of a gcc2
17728    builtin and then its argument prototype would still apply.  */
17729 char dlopen ();
17730 int
17731 main ()
17732 {
17733 dlopen ();
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext conftest$ac_exeext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17740   (eval $ac_link) 2>conftest.er1
17741   ac_status=$?
17742   grep -v '^ *+' conftest.er1 >conftest.err
17743   rm -f conftest.er1
17744   cat conftest.err >&5
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); } &&
17747          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749   (eval $ac_try) 2>&5
17750   ac_status=$?
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); }; } &&
17753          { ac_try='test -s conftest$ac_exeext'
17754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755   (eval $ac_try) 2>&5
17756   ac_status=$?
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); }; }; then
17759   ac_cv_lib_dl_dlopen=yes
17760 else
17761   echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764 ac_cv_lib_dl_dlopen=no
17765 fi
17766 rm -f conftest.err conftest.$ac_objext \
17767       conftest$ac_exeext conftest.$ac_ext
17768 LIBS=$ac_check_lib_save_LIBS
17769 fi
17770 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17771 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17772 if test $ac_cv_lib_dl_dlopen = yes; then
17773   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17774 else
17775   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17776 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17778   echo $ECHO_N "(cached) $ECHO_C" >&6
17779 else
17780   ac_check_lib_save_LIBS=$LIBS
17781 LIBS="-lsvld  $LIBS"
17782 cat >conftest.$ac_ext <<_ACEOF
17783 /* confdefs.h.  */
17784 _ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h.  */
17788
17789 /* Override any gcc2 internal prototype to avoid an error.  */
17790 #ifdef __cplusplus
17791 extern "C"
17792 #endif
17793 /* We use char because int might match the return type of a gcc2
17794    builtin and then its argument prototype would still apply.  */
17795 char dlopen ();
17796 int
17797 main ()
17798 {
17799 dlopen ();
17800   ;
17801   return 0;
17802 }
17803 _ACEOF
17804 rm -f conftest.$ac_objext conftest$ac_exeext
17805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17806   (eval $ac_link) 2>conftest.er1
17807   ac_status=$?
17808   grep -v '^ *+' conftest.er1 >conftest.err
17809   rm -f conftest.er1
17810   cat conftest.err >&5
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); } &&
17813          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815   (eval $ac_try) 2>&5
17816   ac_status=$?
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); }; } &&
17819          { ac_try='test -s conftest$ac_exeext'
17820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821   (eval $ac_try) 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; }; then
17825   ac_cv_lib_svld_dlopen=yes
17826 else
17827   echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830 ac_cv_lib_svld_dlopen=no
17831 fi
17832 rm -f conftest.err conftest.$ac_objext \
17833       conftest$ac_exeext conftest.$ac_ext
17834 LIBS=$ac_check_lib_save_LIBS
17835 fi
17836 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17837 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17838 if test $ac_cv_lib_svld_dlopen = yes; then
17839   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17840 else
17841   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17842 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17843 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17844   echo $ECHO_N "(cached) $ECHO_C" >&6
17845 else
17846   ac_check_lib_save_LIBS=$LIBS
17847 LIBS="-ldld  $LIBS"
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h.  */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h.  */
17854
17855 /* Override any gcc2 internal prototype to avoid an error.  */
17856 #ifdef __cplusplus
17857 extern "C"
17858 #endif
17859 /* We use char because int might match the return type of a gcc2
17860    builtin and then its argument prototype would still apply.  */
17861 char dld_link ();
17862 int
17863 main ()
17864 {
17865 dld_link ();
17866   ;
17867   return 0;
17868 }
17869 _ACEOF
17870 rm -f conftest.$ac_objext conftest$ac_exeext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17872   (eval $ac_link) 2>conftest.er1
17873   ac_status=$?
17874   grep -v '^ *+' conftest.er1 >conftest.err
17875   rm -f conftest.er1
17876   cat conftest.err >&5
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); } &&
17879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881   (eval $ac_try) 2>&5
17882   ac_status=$?
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); }; } &&
17885          { ac_try='test -s conftest$ac_exeext'
17886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17887   (eval $ac_try) 2>&5
17888   ac_status=$?
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); }; }; then
17891   ac_cv_lib_dld_dld_link=yes
17892 else
17893   echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17895
17896 ac_cv_lib_dld_dld_link=no
17897 fi
17898 rm -f conftest.err conftest.$ac_objext \
17899       conftest$ac_exeext conftest.$ac_ext
17900 LIBS=$ac_check_lib_save_LIBS
17901 fi
17902 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17903 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17904 if test $ac_cv_lib_dld_dld_link = yes; then
17905   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17906 fi
17907
17908
17909 fi
17910
17911
17912 fi
17913
17914
17915 fi
17916
17917
17918 fi
17919
17920
17921 fi
17922
17923     ;;
17924   esac
17925
17926   if test "x$lt_cv_dlopen" != xno; then
17927     enable_dlopen=yes
17928   else
17929     enable_dlopen=no
17930   fi
17931
17932   case $lt_cv_dlopen in
17933   dlopen)
17934     save_CPPFLAGS="$CPPFLAGS"
17935     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17936
17937     save_LDFLAGS="$LDFLAGS"
17938     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17939
17940     save_LIBS="$LIBS"
17941     LIBS="$lt_cv_dlopen_libs $LIBS"
17942
17943     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17944 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17945 if test "${lt_cv_dlopen_self+set}" = set; then
17946   echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948           if test "$cross_compiling" = yes; then :
17949   lt_cv_dlopen_self=cross
17950 else
17951   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17952   lt_status=$lt_dlunknown
17953   cat > conftest.$ac_ext <<EOF
17954 #line 17954 "configure"
17955 #include "confdefs.h"
17956
17957 #if HAVE_DLFCN_H
17958 #include <dlfcn.h>
17959 #endif
17960
17961 #include <stdio.h>
17962
17963 #ifdef RTLD_GLOBAL
17964 #  define LT_DLGLOBAL           RTLD_GLOBAL
17965 #else
17966 #  ifdef DL_GLOBAL
17967 #    define LT_DLGLOBAL         DL_GLOBAL
17968 #  else
17969 #    define LT_DLGLOBAL         0
17970 #  endif
17971 #endif
17972
17973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17974    find out it does not work in some platform. */
17975 #ifndef LT_DLLAZY_OR_NOW
17976 #  ifdef RTLD_LAZY
17977 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17978 #  else
17979 #    ifdef DL_LAZY
17980 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17981 #    else
17982 #      ifdef RTLD_NOW
17983 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17984 #      else
17985 #        ifdef DL_NOW
17986 #          define LT_DLLAZY_OR_NOW      DL_NOW
17987 #        else
17988 #          define LT_DLLAZY_OR_NOW      0
17989 #        endif
17990 #      endif
17991 #    endif
17992 #  endif
17993 #endif
17994
17995 #ifdef __cplusplus
17996 extern "C" void exit (int);
17997 #endif
17998
17999 void fnord() { int i=42;}
18000 int main ()
18001 {
18002   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18003   int status = $lt_dlunknown;
18004
18005   if (self)
18006     {
18007       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18008       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18009       /* dlclose (self); */
18010     }
18011
18012     exit (status);
18013 }
18014 EOF
18015   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18016   (eval $ac_link) 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18020     (./conftest; exit; ) 2>/dev/null
18021     lt_status=$?
18022     case x$lt_status in
18023       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18024       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18025       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18026     esac
18027   else :
18028     # compilation failed
18029     lt_cv_dlopen_self=no
18030   fi
18031 fi
18032 rm -fr conftest*
18033
18034
18035 fi
18036 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18037 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18038
18039     if test "x$lt_cv_dlopen_self" = xyes; then
18040       LDFLAGS="$LDFLAGS $link_static_flag"
18041       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18042 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18043 if test "${lt_cv_dlopen_self_static+set}" = set; then
18044   echo $ECHO_N "(cached) $ECHO_C" >&6
18045 else
18046           if test "$cross_compiling" = yes; then :
18047   lt_cv_dlopen_self_static=cross
18048 else
18049   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18050   lt_status=$lt_dlunknown
18051   cat > conftest.$ac_ext <<EOF
18052 #line 18052 "configure"
18053 #include "confdefs.h"
18054
18055 #if HAVE_DLFCN_H
18056 #include <dlfcn.h>
18057 #endif
18058
18059 #include <stdio.h>
18060
18061 #ifdef RTLD_GLOBAL
18062 #  define LT_DLGLOBAL           RTLD_GLOBAL
18063 #else
18064 #  ifdef DL_GLOBAL
18065 #    define LT_DLGLOBAL         DL_GLOBAL
18066 #  else
18067 #    define LT_DLGLOBAL         0
18068 #  endif
18069 #endif
18070
18071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18072    find out it does not work in some platform. */
18073 #ifndef LT_DLLAZY_OR_NOW
18074 #  ifdef RTLD_LAZY
18075 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18076 #  else
18077 #    ifdef DL_LAZY
18078 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18079 #    else
18080 #      ifdef RTLD_NOW
18081 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18082 #      else
18083 #        ifdef DL_NOW
18084 #          define LT_DLLAZY_OR_NOW      DL_NOW
18085 #        else
18086 #          define LT_DLLAZY_OR_NOW      0
18087 #        endif
18088 #      endif
18089 #    endif
18090 #  endif
18091 #endif
18092
18093 #ifdef __cplusplus
18094 extern "C" void exit (int);
18095 #endif
18096
18097 void fnord() { int i=42;}
18098 int main ()
18099 {
18100   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18101   int status = $lt_dlunknown;
18102
18103   if (self)
18104     {
18105       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18106       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18107       /* dlclose (self); */
18108     }
18109
18110     exit (status);
18111 }
18112 EOF
18113   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18114   (eval $ac_link) 2>&5
18115   ac_status=$?
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18118     (./conftest; exit; ) 2>/dev/null
18119     lt_status=$?
18120     case x$lt_status in
18121       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18122       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18123       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18124     esac
18125   else :
18126     # compilation failed
18127     lt_cv_dlopen_self_static=no
18128   fi
18129 fi
18130 rm -fr conftest*
18131
18132
18133 fi
18134 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18135 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18136     fi
18137
18138     CPPFLAGS="$save_CPPFLAGS"
18139     LDFLAGS="$save_LDFLAGS"
18140     LIBS="$save_LIBS"
18141     ;;
18142   esac
18143
18144   case $lt_cv_dlopen_self in
18145   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18146   *) enable_dlopen_self=unknown ;;
18147   esac
18148
18149   case $lt_cv_dlopen_self_static in
18150   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18151   *) enable_dlopen_self_static=unknown ;;
18152   esac
18153 fi
18154
18155
18156 # The else clause should only fire when bootstrapping the
18157 # libtool distribution, otherwise you forgot to ship ltmain.sh
18158 # with your package, and you will get complaints that there are
18159 # no rules to generate ltmain.sh.
18160 if test -f "$ltmain"; then
18161   # See if we are running on zsh, and set the options which allow our commands through
18162   # without removal of \ escapes.
18163   if test -n "${ZSH_VERSION+set}" ; then
18164     setopt NO_GLOB_SUBST
18165   fi
18166   # Now quote all the things that may contain metacharacters while being
18167   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18168   # variables and quote the copies for generation of the libtool script.
18169   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18170     SED SHELL STRIP \
18171     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18172     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18173     deplibs_check_method reload_flag reload_cmds need_locks \
18174     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18175     lt_cv_sys_global_symbol_to_c_name_address \
18176     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18177     old_postinstall_cmds old_postuninstall_cmds \
18178     compiler_GCJ \
18179     CC_GCJ \
18180     LD_GCJ \
18181     lt_prog_compiler_wl_GCJ \
18182     lt_prog_compiler_pic_GCJ \
18183     lt_prog_compiler_static_GCJ \
18184     lt_prog_compiler_no_builtin_flag_GCJ \
18185     export_dynamic_flag_spec_GCJ \
18186     thread_safe_flag_spec_GCJ \
18187     whole_archive_flag_spec_GCJ \
18188     enable_shared_with_static_runtimes_GCJ \
18189     old_archive_cmds_GCJ \
18190     old_archive_from_new_cmds_GCJ \
18191     predep_objects_GCJ \
18192     postdep_objects_GCJ \
18193     predeps_GCJ \
18194     postdeps_GCJ \
18195     compiler_lib_search_path_GCJ \
18196     archive_cmds_GCJ \
18197     archive_expsym_cmds_GCJ \
18198     postinstall_cmds_GCJ \
18199     postuninstall_cmds_GCJ \
18200     old_archive_from_expsyms_cmds_GCJ \
18201     allow_undefined_flag_GCJ \
18202     no_undefined_flag_GCJ \
18203     export_symbols_cmds_GCJ \
18204     hardcode_libdir_flag_spec_GCJ \
18205     hardcode_libdir_flag_spec_ld_GCJ \
18206     hardcode_libdir_separator_GCJ \
18207     hardcode_automatic_GCJ \
18208     module_cmds_GCJ \
18209     module_expsym_cmds_GCJ \
18210     lt_cv_prog_compiler_c_o_GCJ \
18211     exclude_expsyms_GCJ \
18212     include_expsyms_GCJ; do
18213
18214     case $var in
18215     old_archive_cmds_GCJ | \
18216     old_archive_from_new_cmds_GCJ | \
18217     archive_cmds_GCJ | \
18218     archive_expsym_cmds_GCJ | \
18219     module_cmds_GCJ | \
18220     module_expsym_cmds_GCJ | \
18221     old_archive_from_expsyms_cmds_GCJ | \
18222     export_symbols_cmds_GCJ | \
18223     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18224     postinstall_cmds | postuninstall_cmds | \
18225     old_postinstall_cmds | old_postuninstall_cmds | \
18226     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18227       # Double-quote double-evaled strings.
18228       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18229       ;;
18230     *)
18231       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18232       ;;
18233     esac
18234   done
18235
18236   case $lt_echo in
18237   *'\$0 --fallback-echo"')
18238     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18239     ;;
18240   esac
18241
18242 cfgfile="$ofile"
18243
18244   cat <<__EOF__ >> "$cfgfile"
18245 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18246
18247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18248
18249 # Shell to use when invoking shell scripts.
18250 SHELL=$lt_SHELL
18251
18252 # Whether or not to build shared libraries.
18253 build_libtool_libs=$enable_shared
18254
18255 # Whether or not to build static libraries.
18256 build_old_libs=$enable_static
18257
18258 # Whether or not to add -lc for building shared libraries.
18259 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18260
18261 # Whether or not to disallow shared libs when runtime libs are static
18262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18263
18264 # Whether or not to optimize for fast installation.
18265 fast_install=$enable_fast_install
18266
18267 # The host system.
18268 host_alias=$host_alias
18269 host=$host
18270
18271 # An echo program that does not interpret backslashes.
18272 echo=$lt_echo
18273
18274 # The archiver.
18275 AR=$lt_AR
18276 AR_FLAGS=$lt_AR_FLAGS
18277
18278 # A C compiler.
18279 LTCC=$lt_LTCC
18280
18281 # A language-specific compiler.
18282 CC=$lt_compiler_GCJ
18283
18284 # Is the compiler the GNU C compiler?
18285 with_gcc=$GCC_GCJ
18286
18287 # An ERE matcher.
18288 EGREP=$lt_EGREP
18289
18290 # The linker used to build libraries.
18291 LD=$lt_LD_GCJ
18292
18293 # Whether we need hard or soft links.
18294 LN_S=$lt_LN_S
18295
18296 # A BSD-compatible nm program.
18297 NM=$lt_NM
18298
18299 # A symbol stripping program
18300 STRIP=$lt_STRIP
18301
18302 # Used to examine libraries when file_magic_cmd begins "file"
18303 MAGIC_CMD=$MAGIC_CMD
18304
18305 # Used on cygwin: DLL creation program.
18306 DLLTOOL="$DLLTOOL"
18307
18308 # Used on cygwin: object dumper.
18309 OBJDUMP="$OBJDUMP"
18310
18311 # Used on cygwin: assembler.
18312 AS="$AS"
18313
18314 # The name of the directory that contains temporary libtool files.
18315 objdir=$objdir
18316
18317 # How to create reloadable object files.
18318 reload_flag=$lt_reload_flag
18319 reload_cmds=$lt_reload_cmds
18320
18321 # How to pass a linker flag through the compiler.
18322 wl=$lt_lt_prog_compiler_wl_GCJ
18323
18324 # Object file suffix (normally "o").
18325 objext="$ac_objext"
18326
18327 # Old archive suffix (normally "a").
18328 libext="$libext"
18329
18330 # Shared library suffix (normally ".so").
18331 shrext_cmds='$shrext_cmds'
18332
18333 # Executable file suffix (normally "").
18334 exeext="$exeext"
18335
18336 # Additional compiler flags for building library objects.
18337 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18338 pic_mode=$pic_mode
18339
18340 # What is the maximum length of a command?
18341 max_cmd_len=$lt_cv_sys_max_cmd_len
18342
18343 # Does compiler simultaneously support -c and -o options?
18344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18345
18346 # Must we lock files when doing compilation ?
18347 need_locks=$lt_need_locks
18348
18349 # Do we need the lib prefix for modules?
18350 need_lib_prefix=$need_lib_prefix
18351
18352 # Do we need a version for libraries?
18353 need_version=$need_version
18354
18355 # Whether dlopen is supported.
18356 dlopen_support=$enable_dlopen
18357
18358 # Whether dlopen of programs is supported.
18359 dlopen_self=$enable_dlopen_self
18360
18361 # Whether dlopen of statically linked programs is supported.
18362 dlopen_self_static=$enable_dlopen_self_static
18363
18364 # Compiler flag to prevent dynamic linking.
18365 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18366
18367 # Compiler flag to turn off builtin functions.
18368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18369
18370 # Compiler flag to allow reflexive dlopens.
18371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18372
18373 # Compiler flag to generate shared objects directly from archives.
18374 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18375
18376 # Compiler flag to generate thread-safe objects.
18377 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18378
18379 # Library versioning type.
18380 version_type=$version_type
18381
18382 # Format of library name prefix.
18383 libname_spec=$lt_libname_spec
18384
18385 # List of archive names.  First name is the real one, the rest are links.
18386 # The last name is the one that the linker finds with -lNAME.
18387 library_names_spec=$lt_library_names_spec
18388
18389 # The coded name of the library, if different from the real name.
18390 soname_spec=$lt_soname_spec
18391
18392 # Commands used to build and install an old-style archive.
18393 RANLIB=$lt_RANLIB
18394 old_archive_cmds=$lt_old_archive_cmds_GCJ
18395 old_postinstall_cmds=$lt_old_postinstall_cmds
18396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18397
18398 # Create an old-style archive from a shared archive.
18399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18400
18401 # Create a temporary old-style archive to link instead of a shared archive.
18402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18403
18404 # Commands used to build and install a shared archive.
18405 archive_cmds=$lt_archive_cmds_GCJ
18406 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18407 postinstall_cmds=$lt_postinstall_cmds
18408 postuninstall_cmds=$lt_postuninstall_cmds
18409
18410 # Commands used to build a loadable module (assumed same as above if empty)
18411 module_cmds=$lt_module_cmds_GCJ
18412 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18413
18414 # Commands to strip libraries.
18415 old_striplib=$lt_old_striplib
18416 striplib=$lt_striplib
18417
18418 # Dependencies to place before the objects being linked to create a
18419 # shared library.
18420 predep_objects=$lt_predep_objects_GCJ
18421
18422 # Dependencies to place after the objects being linked to create a
18423 # shared library.
18424 postdep_objects=$lt_postdep_objects_GCJ
18425
18426 # Dependencies to place before the objects being linked to create a
18427 # shared library.
18428 predeps=$lt_predeps_GCJ
18429
18430 # Dependencies to place after the objects being linked to create a
18431 # shared library.
18432 postdeps=$lt_postdeps_GCJ
18433
18434 # The library search path used internally by the compiler when linking
18435 # a shared library.
18436 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18437
18438 # Method to check whether dependent libraries are shared objects.
18439 deplibs_check_method=$lt_deplibs_check_method
18440
18441 # Command to use when deplibs_check_method == file_magic.
18442 file_magic_cmd=$lt_file_magic_cmd
18443
18444 # Flag that allows shared libraries with undefined symbols to be built.
18445 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18446
18447 # Flag that forces no undefined symbols.
18448 no_undefined_flag=$lt_no_undefined_flag_GCJ
18449
18450 # Commands used to finish a libtool library installation in a directory.
18451 finish_cmds=$lt_finish_cmds
18452
18453 # Same as above, but a single script fragment to be evaled but not shown.
18454 finish_eval=$lt_finish_eval
18455
18456 # Take the output of nm and produce a listing of raw symbols and C names.
18457 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18458
18459 # Transform the output of nm in a proper C declaration
18460 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18461
18462 # Transform the output of nm in a C name address pair
18463 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18464
18465 # This is the shared library runtime path variable.
18466 runpath_var=$runpath_var
18467
18468 # This is the shared library path variable.
18469 shlibpath_var=$shlibpath_var
18470
18471 # Is shlibpath searched before the hard-coded library search path?
18472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18473
18474 # How to hardcode a shared library path into an executable.
18475 hardcode_action=$hardcode_action_GCJ
18476
18477 # Whether we should hardcode library paths into libraries.
18478 hardcode_into_libs=$hardcode_into_libs
18479
18480 # Flag to hardcode \$libdir into a binary during linking.
18481 # This must work even if \$libdir does not exist.
18482 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18483
18484 # If ld is used when linking, flag to hardcode \$libdir into
18485 # a binary during linking. This must work even if \$libdir does
18486 # not exist.
18487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18488
18489 # Whether we need a single -rpath flag with a separated argument.
18490 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18491
18492 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18493 # resulting binary.
18494 hardcode_direct=$hardcode_direct_GCJ
18495
18496 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18497 # resulting binary.
18498 hardcode_minus_L=$hardcode_minus_L_GCJ
18499
18500 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18501 # the resulting binary.
18502 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18503
18504 # Set to yes if building a shared library automatically hardcodes DIR into the library
18505 # and all subsequent libraries and executables linked against it.
18506 hardcode_automatic=$hardcode_automatic_GCJ
18507
18508 # Variables whose values should be saved in libtool wrapper scripts and
18509 # restored at relink time.
18510 variables_saved_for_relink="$variables_saved_for_relink"
18511
18512 # Whether libtool must link a program against all its dependency libraries.
18513 link_all_deplibs=$link_all_deplibs_GCJ
18514
18515 # Compile-time system search path for libraries
18516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18517
18518 # Run-time system search path for libraries
18519 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18520
18521 # Fix the shell variable \$srcfile for the compiler.
18522 fix_srcfile_path="$fix_srcfile_path_GCJ"
18523
18524 # Set to yes if exported symbols are required.
18525 always_export_symbols=$always_export_symbols_GCJ
18526
18527 # The commands to list exported symbols.
18528 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18529
18530 # The commands to extract the exported symbol list from a shared archive.
18531 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18532
18533 # Symbols that should not be listed in the preloaded symbols.
18534 exclude_expsyms=$lt_exclude_expsyms_GCJ
18535
18536 # Symbols that must always be exported.
18537 include_expsyms=$lt_include_expsyms_GCJ
18538
18539 # ### END LIBTOOL TAG CONFIG: $tagname
18540
18541 __EOF__
18542
18543
18544 else
18545   # If there is no Makefile yet, we rely on a make rule to execute
18546   # `config.status --recheck' to rerun these tests and create the
18547   # libtool script then.
18548   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18549   if test -f "$ltmain_in"; then
18550     test -f Makefile && make "$ltmain"
18551   fi
18552 fi
18553
18554
18555 ac_ext=c
18556 ac_cpp='$CPP $CPPFLAGS'
18557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18560
18561 CC="$lt_save_CC"
18562
18563         else
18564           tagname=""
18565         fi
18566         ;;
18567
18568       RC)
18569
18570
18571
18572 # Source file extension for RC test sources.
18573 ac_ext=rc
18574
18575 # Object file extension for compiled RC test sources.
18576 objext=o
18577 objext_RC=$objext
18578
18579 # Code to be used in simple compile tests
18580 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18581
18582 # Code to be used in simple link tests
18583 lt_simple_link_test_code="$lt_simple_compile_test_code"
18584
18585 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18586
18587 # If no C compiler was specified, use CC.
18588 LTCC=${LTCC-"$CC"}
18589
18590 # Allow CC to be a program name with arguments.
18591 compiler=$CC
18592
18593
18594 # Allow CC to be a program name with arguments.
18595 lt_save_CC="$CC"
18596 CC=${RC-"windres"}
18597 compiler=$CC
18598 compiler_RC=$CC
18599 lt_cv_prog_compiler_c_o_RC=yes
18600
18601 # The else clause should only fire when bootstrapping the
18602 # libtool distribution, otherwise you forgot to ship ltmain.sh
18603 # with your package, and you will get complaints that there are
18604 # no rules to generate ltmain.sh.
18605 if test -f "$ltmain"; then
18606   # See if we are running on zsh, and set the options which allow our commands through
18607   # without removal of \ escapes.
18608   if test -n "${ZSH_VERSION+set}" ; then
18609     setopt NO_GLOB_SUBST
18610   fi
18611   # Now quote all the things that may contain metacharacters while being
18612   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18613   # variables and quote the copies for generation of the libtool script.
18614   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18615     SED SHELL STRIP \
18616     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18617     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18618     deplibs_check_method reload_flag reload_cmds need_locks \
18619     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18620     lt_cv_sys_global_symbol_to_c_name_address \
18621     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18622     old_postinstall_cmds old_postuninstall_cmds \
18623     compiler_RC \
18624     CC_RC \
18625     LD_RC \
18626     lt_prog_compiler_wl_RC \
18627     lt_prog_compiler_pic_RC \
18628     lt_prog_compiler_static_RC \
18629     lt_prog_compiler_no_builtin_flag_RC \
18630     export_dynamic_flag_spec_RC \
18631     thread_safe_flag_spec_RC \
18632     whole_archive_flag_spec_RC \
18633     enable_shared_with_static_runtimes_RC \
18634     old_archive_cmds_RC \
18635     old_archive_from_new_cmds_RC \
18636     predep_objects_RC \
18637     postdep_objects_RC \
18638     predeps_RC \
18639     postdeps_RC \
18640     compiler_lib_search_path_RC \
18641     archive_cmds_RC \
18642     archive_expsym_cmds_RC \
18643     postinstall_cmds_RC \
18644     postuninstall_cmds_RC \
18645     old_archive_from_expsyms_cmds_RC \
18646     allow_undefined_flag_RC \
18647     no_undefined_flag_RC \
18648     export_symbols_cmds_RC \
18649     hardcode_libdir_flag_spec_RC \
18650     hardcode_libdir_flag_spec_ld_RC \
18651     hardcode_libdir_separator_RC \
18652     hardcode_automatic_RC \
18653     module_cmds_RC \
18654     module_expsym_cmds_RC \
18655     lt_cv_prog_compiler_c_o_RC \
18656     exclude_expsyms_RC \
18657     include_expsyms_RC; do
18658
18659     case $var in
18660     old_archive_cmds_RC | \
18661     old_archive_from_new_cmds_RC | \
18662     archive_cmds_RC | \
18663     archive_expsym_cmds_RC | \
18664     module_cmds_RC | \
18665     module_expsym_cmds_RC | \
18666     old_archive_from_expsyms_cmds_RC | \
18667     export_symbols_cmds_RC | \
18668     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18669     postinstall_cmds | postuninstall_cmds | \
18670     old_postinstall_cmds | old_postuninstall_cmds | \
18671     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18672       # Double-quote double-evaled strings.
18673       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18674       ;;
18675     *)
18676       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18677       ;;
18678     esac
18679   done
18680
18681   case $lt_echo in
18682   *'\$0 --fallback-echo"')
18683     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18684     ;;
18685   esac
18686
18687 cfgfile="$ofile"
18688
18689   cat <<__EOF__ >> "$cfgfile"
18690 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18691
18692 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18693
18694 # Shell to use when invoking shell scripts.
18695 SHELL=$lt_SHELL
18696
18697 # Whether or not to build shared libraries.
18698 build_libtool_libs=$enable_shared
18699
18700 # Whether or not to build static libraries.
18701 build_old_libs=$enable_static
18702
18703 # Whether or not to add -lc for building shared libraries.
18704 build_libtool_need_lc=$archive_cmds_need_lc_RC
18705
18706 # Whether or not to disallow shared libs when runtime libs are static
18707 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18708
18709 # Whether or not to optimize for fast installation.
18710 fast_install=$enable_fast_install
18711
18712 # The host system.
18713 host_alias=$host_alias
18714 host=$host
18715
18716 # An echo program that does not interpret backslashes.
18717 echo=$lt_echo
18718
18719 # The archiver.
18720 AR=$lt_AR
18721 AR_FLAGS=$lt_AR_FLAGS
18722
18723 # A C compiler.
18724 LTCC=$lt_LTCC
18725
18726 # A language-specific compiler.
18727 CC=$lt_compiler_RC
18728
18729 # Is the compiler the GNU C compiler?
18730 with_gcc=$GCC_RC
18731
18732 # An ERE matcher.
18733 EGREP=$lt_EGREP
18734
18735 # The linker used to build libraries.
18736 LD=$lt_LD_RC
18737
18738 # Whether we need hard or soft links.
18739 LN_S=$lt_LN_S
18740
18741 # A BSD-compatible nm program.
18742 NM=$lt_NM
18743
18744 # A symbol stripping program
18745 STRIP=$lt_STRIP
18746
18747 # Used to examine libraries when file_magic_cmd begins "file"
18748 MAGIC_CMD=$MAGIC_CMD
18749
18750 # Used on cygwin: DLL creation program.
18751 DLLTOOL="$DLLTOOL"
18752
18753 # Used on cygwin: object dumper.
18754 OBJDUMP="$OBJDUMP"
18755
18756 # Used on cygwin: assembler.
18757 AS="$AS"
18758
18759 # The name of the directory that contains temporary libtool files.
18760 objdir=$objdir
18761
18762 # How to create reloadable object files.
18763 reload_flag=$lt_reload_flag
18764 reload_cmds=$lt_reload_cmds
18765
18766 # How to pass a linker flag through the compiler.
18767 wl=$lt_lt_prog_compiler_wl_RC
18768
18769 # Object file suffix (normally "o").
18770 objext="$ac_objext"
18771
18772 # Old archive suffix (normally "a").
18773 libext="$libext"
18774
18775 # Shared library suffix (normally ".so").
18776 shrext_cmds='$shrext_cmds'
18777
18778 # Executable file suffix (normally "").
18779 exeext="$exeext"
18780
18781 # Additional compiler flags for building library objects.
18782 pic_flag=$lt_lt_prog_compiler_pic_RC
18783 pic_mode=$pic_mode
18784
18785 # What is the maximum length of a command?
18786 max_cmd_len=$lt_cv_sys_max_cmd_len
18787
18788 # Does compiler simultaneously support -c and -o options?
18789 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18790
18791 # Must we lock files when doing compilation ?
18792 need_locks=$lt_need_locks
18793
18794 # Do we need the lib prefix for modules?
18795 need_lib_prefix=$need_lib_prefix
18796
18797 # Do we need a version for libraries?
18798 need_version=$need_version
18799
18800 # Whether dlopen is supported.
18801 dlopen_support=$enable_dlopen
18802
18803 # Whether dlopen of programs is supported.
18804 dlopen_self=$enable_dlopen_self
18805
18806 # Whether dlopen of statically linked programs is supported.
18807 dlopen_self_static=$enable_dlopen_self_static
18808
18809 # Compiler flag to prevent dynamic linking.
18810 link_static_flag=$lt_lt_prog_compiler_static_RC
18811
18812 # Compiler flag to turn off builtin functions.
18813 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18814
18815 # Compiler flag to allow reflexive dlopens.
18816 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18817
18818 # Compiler flag to generate shared objects directly from archives.
18819 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18820
18821 # Compiler flag to generate thread-safe objects.
18822 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18823
18824 # Library versioning type.
18825 version_type=$version_type
18826
18827 # Format of library name prefix.
18828 libname_spec=$lt_libname_spec
18829
18830 # List of archive names.  First name is the real one, the rest are links.
18831 # The last name is the one that the linker finds with -lNAME.
18832 library_names_spec=$lt_library_names_spec
18833
18834 # The coded name of the library, if different from the real name.
18835 soname_spec=$lt_soname_spec
18836
18837 # Commands used to build and install an old-style archive.
18838 RANLIB=$lt_RANLIB
18839 old_archive_cmds=$lt_old_archive_cmds_RC
18840 old_postinstall_cmds=$lt_old_postinstall_cmds
18841 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18842
18843 # Create an old-style archive from a shared archive.
18844 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18845
18846 # Create a temporary old-style archive to link instead of a shared archive.
18847 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18848
18849 # Commands used to build and install a shared archive.
18850 archive_cmds=$lt_archive_cmds_RC
18851 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18852 postinstall_cmds=$lt_postinstall_cmds
18853 postuninstall_cmds=$lt_postuninstall_cmds
18854
18855 # Commands used to build a loadable module (assumed same as above if empty)
18856 module_cmds=$lt_module_cmds_RC
18857 module_expsym_cmds=$lt_module_expsym_cmds_RC
18858
18859 # Commands to strip libraries.
18860 old_striplib=$lt_old_striplib
18861 striplib=$lt_striplib
18862
18863 # Dependencies to place before the objects being linked to create a
18864 # shared library.
18865 predep_objects=$lt_predep_objects_RC
18866
18867 # Dependencies to place after the objects being linked to create a
18868 # shared library.
18869 postdep_objects=$lt_postdep_objects_RC
18870
18871 # Dependencies to place before the objects being linked to create a
18872 # shared library.
18873 predeps=$lt_predeps_RC
18874
18875 # Dependencies to place after the objects being linked to create a
18876 # shared library.
18877 postdeps=$lt_postdeps_RC
18878
18879 # The library search path used internally by the compiler when linking
18880 # a shared library.
18881 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18882
18883 # Method to check whether dependent libraries are shared objects.
18884 deplibs_check_method=$lt_deplibs_check_method
18885
18886 # Command to use when deplibs_check_method == file_magic.
18887 file_magic_cmd=$lt_file_magic_cmd
18888
18889 # Flag that allows shared libraries with undefined symbols to be built.
18890 allow_undefined_flag=$lt_allow_undefined_flag_RC
18891
18892 # Flag that forces no undefined symbols.
18893 no_undefined_flag=$lt_no_undefined_flag_RC
18894
18895 # Commands used to finish a libtool library installation in a directory.
18896 finish_cmds=$lt_finish_cmds
18897
18898 # Same as above, but a single script fragment to be evaled but not shown.
18899 finish_eval=$lt_finish_eval
18900
18901 # Take the output of nm and produce a listing of raw symbols and C names.
18902 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18903
18904 # Transform the output of nm in a proper C declaration
18905 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18906
18907 # Transform the output of nm in a C name address pair
18908 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18909
18910 # This is the shared library runtime path variable.
18911 runpath_var=$runpath_var
18912
18913 # This is the shared library path variable.
18914 shlibpath_var=$shlibpath_var
18915
18916 # Is shlibpath searched before the hard-coded library search path?
18917 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18918
18919 # How to hardcode a shared library path into an executable.
18920 hardcode_action=$hardcode_action_RC
18921
18922 # Whether we should hardcode library paths into libraries.
18923 hardcode_into_libs=$hardcode_into_libs
18924
18925 # Flag to hardcode \$libdir into a binary during linking.
18926 # This must work even if \$libdir does not exist.
18927 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18928
18929 # If ld is used when linking, flag to hardcode \$libdir into
18930 # a binary during linking. This must work even if \$libdir does
18931 # not exist.
18932 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18933
18934 # Whether we need a single -rpath flag with a separated argument.
18935 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18936
18937 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18938 # resulting binary.
18939 hardcode_direct=$hardcode_direct_RC
18940
18941 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18942 # resulting binary.
18943 hardcode_minus_L=$hardcode_minus_L_RC
18944
18945 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18946 # the resulting binary.
18947 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18948
18949 # Set to yes if building a shared library automatically hardcodes DIR into the library
18950 # and all subsequent libraries and executables linked against it.
18951 hardcode_automatic=$hardcode_automatic_RC
18952
18953 # Variables whose values should be saved in libtool wrapper scripts and
18954 # restored at relink time.
18955 variables_saved_for_relink="$variables_saved_for_relink"
18956
18957 # Whether libtool must link a program against all its dependency libraries.
18958 link_all_deplibs=$link_all_deplibs_RC
18959
18960 # Compile-time system search path for libraries
18961 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18962
18963 # Run-time system search path for libraries
18964 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18965
18966 # Fix the shell variable \$srcfile for the compiler.
18967 fix_srcfile_path="$fix_srcfile_path_RC"
18968
18969 # Set to yes if exported symbols are required.
18970 always_export_symbols=$always_export_symbols_RC
18971
18972 # The commands to list exported symbols.
18973 export_symbols_cmds=$lt_export_symbols_cmds_RC
18974
18975 # The commands to extract the exported symbol list from a shared archive.
18976 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18977
18978 # Symbols that should not be listed in the preloaded symbols.
18979 exclude_expsyms=$lt_exclude_expsyms_RC
18980
18981 # Symbols that must always be exported.
18982 include_expsyms=$lt_include_expsyms_RC
18983
18984 # ### END LIBTOOL TAG CONFIG: $tagname
18985
18986 __EOF__
18987
18988
18989 else
18990   # If there is no Makefile yet, we rely on a make rule to execute
18991   # `config.status --recheck' to rerun these tests and create the
18992   # libtool script then.
18993   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18994   if test -f "$ltmain_in"; then
18995     test -f Makefile && make "$ltmain"
18996   fi
18997 fi
18998
18999
19000 ac_ext=c
19001 ac_cpp='$CPP $CPPFLAGS'
19002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19005
19006 CC="$lt_save_CC"
19007
19008         ;;
19009
19010       *)
19011         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19012 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19013    { (exit 1); exit 1; }; }
19014         ;;
19015       esac
19016
19017       # Append the new tag name to the list of available tags.
19018       if test -n "$tagname" ; then
19019       available_tags="$available_tags $tagname"
19020     fi
19021     fi
19022   done
19023   IFS="$lt_save_ifs"
19024
19025   # Now substitute the updated list of available tags.
19026   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19027     mv "${ofile}T" "$ofile"
19028     chmod +x "$ofile"
19029   else
19030     rm -f "${ofile}T"
19031     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19032 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19033    { (exit 1); exit 1; }; }
19034   fi
19035 fi
19036
19037
19038
19039 # This can be used to rebuild libtool when needed
19040 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19041
19042 # Always use our own libtool.
19043 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19044
19045 # Prevent multiple expansion
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19068 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19069 if test "${ac_cv_header_stdc+set}" = set; then
19070   echo $ECHO_N "(cached) $ECHO_C" >&6
19071 else
19072   cat >conftest.$ac_ext <<_ACEOF
19073 /* confdefs.h.  */
19074 _ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h.  */
19078 #include <stdlib.h>
19079 #include <stdarg.h>
19080 #include <string.h>
19081 #include <float.h>
19082
19083 int
19084 main ()
19085 {
19086
19087   ;
19088   return 0;
19089 }
19090 _ACEOF
19091 rm -f conftest.$ac_objext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093   (eval $ac_compile) 2>conftest.er1
19094   ac_status=$?
19095   grep -v '^ *+' conftest.er1 >conftest.err
19096   rm -f conftest.er1
19097   cat conftest.err >&5
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } &&
19100          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102   (eval $ac_try) 2>&5
19103   ac_status=$?
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); }; } &&
19106          { ac_try='test -s conftest.$ac_objext'
19107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19108   (eval $ac_try) 2>&5
19109   ac_status=$?
19110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19111   (exit $ac_status); }; }; then
19112   ac_cv_header_stdc=yes
19113 else
19114   echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19116
19117 ac_cv_header_stdc=no
19118 fi
19119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19120
19121 if test $ac_cv_header_stdc = yes; then
19122   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19123   cat >conftest.$ac_ext <<_ACEOF
19124 /* confdefs.h.  */
19125 _ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h.  */
19129 #include <string.h>
19130
19131 _ACEOF
19132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19133   $EGREP "memchr" >/dev/null 2>&1; then
19134   :
19135 else
19136   ac_cv_header_stdc=no
19137 fi
19138 rm -f conftest*
19139
19140 fi
19141
19142 if test $ac_cv_header_stdc = yes; then
19143   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19144   cat >conftest.$ac_ext <<_ACEOF
19145 /* confdefs.h.  */
19146 _ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h.  */
19150 #include <stdlib.h>
19151
19152 _ACEOF
19153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19154   $EGREP "free" >/dev/null 2>&1; then
19155   :
19156 else
19157   ac_cv_header_stdc=no
19158 fi
19159 rm -f conftest*
19160
19161 fi
19162
19163 if test $ac_cv_header_stdc = yes; then
19164   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19165   if test "$cross_compiling" = yes; then
19166   :
19167 else
19168   cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174 #include <ctype.h>
19175 #if ((' ' & 0x0FF) == 0x020)
19176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19178 #else
19179 # define ISLOWER(c) \
19180                    (('a' <= (c) && (c) <= 'i') \
19181                      || ('j' <= (c) && (c) <= 'r') \
19182                      || ('s' <= (c) && (c) <= 'z'))
19183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19184 #endif
19185
19186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19187 int
19188 main ()
19189 {
19190   int i;
19191   for (i = 0; i < 256; i++)
19192     if (XOR (islower (i), ISLOWER (i))
19193         || toupper (i) != TOUPPER (i))
19194       exit(2);
19195   exit (0);
19196 }
19197 _ACEOF
19198 rm -f conftest$ac_exeext
19199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19200   (eval $ac_link) 2>&5
19201   ac_status=$?
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205   (eval $ac_try) 2>&5
19206   ac_status=$?
19207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208   (exit $ac_status); }; }; then
19209   :
19210 else
19211   echo "$as_me: program exited with status $ac_status" >&5
19212 echo "$as_me: failed program was:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19214
19215 ( exit $ac_status )
19216 ac_cv_header_stdc=no
19217 fi
19218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19219 fi
19220 fi
19221 fi
19222 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19223 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19224 if test $ac_cv_header_stdc = yes; then
19225
19226 cat >>confdefs.h <<\_ACEOF
19227 #define STDC_HEADERS 1
19228 _ACEOF
19229
19230 fi
19231
19232
19233   succeeded=no
19234
19235   if test -z "$PKG_CONFIG"; then
19236     # Extract the first word of "pkg-config", so it can be a program name with args.
19237 set dummy pkg-config; ac_word=$2
19238 echo "$as_me:$LINENO: checking for $ac_word" >&5
19239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19240 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19241   echo $ECHO_N "(cached) $ECHO_C" >&6
19242 else
19243   case $PKG_CONFIG in
19244   [\\/]* | ?:[\\/]*)
19245   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19246   ;;
19247   *)
19248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19249 for as_dir in $PATH
19250 do
19251   IFS=$as_save_IFS
19252   test -z "$as_dir" && as_dir=.
19253   for ac_exec_ext in '' $ac_executable_extensions; do
19254   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19255     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19257     break 2
19258   fi
19259 done
19260 done
19261
19262   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19263   ;;
19264 esac
19265 fi
19266 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19267
19268 if test -n "$PKG_CONFIG"; then
19269   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19270 echo "${ECHO_T}$PKG_CONFIG" >&6
19271 else
19272   echo "$as_me:$LINENO: result: no" >&5
19273 echo "${ECHO_T}no" >&6
19274 fi
19275
19276   fi
19277
19278   if test "$PKG_CONFIG" = "no" ; then
19279      echo "*** The pkg-config script could not be found. Make sure it is"
19280      echo "*** in your path, or set the PKG_CONFIG environment variable"
19281      echo "*** to the full path to pkg-config."
19282      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19283   else
19284      PKG_CONFIG_MIN_VERSION=0.9.0
19285      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19286         echo "$as_me:$LINENO: checking for outo >= 0.1.1" >&5
19287 echo $ECHO_N "checking for outo >= 0.1.1... $ECHO_C" >&6
19288
19289         if $PKG_CONFIG --exists "outo >= 0.1.1" ; then
19290             echo "$as_me:$LINENO: result: yes" >&5
19291 echo "${ECHO_T}yes" >&6
19292             succeeded=yes
19293
19294             echo "$as_me:$LINENO: checking OUTO_CFLAGS" >&5
19295 echo $ECHO_N "checking OUTO_CFLAGS... $ECHO_C" >&6
19296             OUTO_CFLAGS=`$PKG_CONFIG --cflags "outo >= 0.1.1"`
19297             echo "$as_me:$LINENO: result: $OUTO_CFLAGS" >&5
19298 echo "${ECHO_T}$OUTO_CFLAGS" >&6
19299
19300             echo "$as_me:$LINENO: checking OUTO_LIBS" >&5
19301 echo $ECHO_N "checking OUTO_LIBS... $ECHO_C" >&6
19302             OUTO_LIBS=`$PKG_CONFIG --libs "outo >= 0.1.1"`
19303             echo "$as_me:$LINENO: result: $OUTO_LIBS" >&5
19304 echo "${ECHO_T}$OUTO_LIBS" >&6
19305         else
19306             OUTO_CFLAGS=""
19307             OUTO_LIBS=""
19308             ## If we have a custom action on failure, don't print errors, but
19309             ## do set a variable so people can do so.
19310             OUTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "outo >= 0.1.1"`
19311             echo $OUTO_PKG_ERRORS
19312         fi
19313
19314
19315
19316      else
19317         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19318         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19319      fi
19320   fi
19321
19322   if test $succeeded = yes; then
19323      :
19324   else
19325      { { echo "$as_me:$LINENO: error: Library requirements (outo >= 0.1.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19326 echo "$as_me: error: Library requirements (outo >= 0.1.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19327    { (exit 1); exit 1; }; }
19328   fi
19329
19330
19331
19332 CFLAGS="$CFLAGS -std=c99 -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations"
19333 # -Werror disabled due to the flaw in glib-2.0
19334 # See http://bugzilla.gnome.org/show_bug.cgi?id=310175 and
19335 # http://bugzilla.gnome.org/show_bug.cgi?id=310216
19336
19337 GTK_VERSION=2.6.10
19338
19339
19340   succeeded=no
19341
19342   if test -z "$PKG_CONFIG"; then
19343     # Extract the first word of "pkg-config", so it can be a program name with args.
19344 set dummy pkg-config; ac_word=$2
19345 echo "$as_me:$LINENO: checking for $ac_word" >&5
19346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19347 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350   case $PKG_CONFIG in
19351   [\\/]* | ?:[\\/]*)
19352   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19353   ;;
19354   *)
19355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19357 do
19358   IFS=$as_save_IFS
19359   test -z "$as_dir" && as_dir=.
19360   for ac_exec_ext in '' $ac_executable_extensions; do
19361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19362     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19364     break 2
19365   fi
19366 done
19367 done
19368
19369   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19370   ;;
19371 esac
19372 fi
19373 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19374
19375 if test -n "$PKG_CONFIG"; then
19376   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19377 echo "${ECHO_T}$PKG_CONFIG" >&6
19378 else
19379   echo "$as_me:$LINENO: result: no" >&5
19380 echo "${ECHO_T}no" >&6
19381 fi
19382
19383   fi
19384
19385   if test "$PKG_CONFIG" = "no" ; then
19386      echo "*** The pkg-config script could not be found. Make sure it is"
19387      echo "*** in your path, or set the PKG_CONFIG environment variable"
19388      echo "*** to the full path to pkg-config."
19389      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19390   else
19391      PKG_CONFIG_MIN_VERSION=0.9.0
19392      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19393         echo "$as_me:$LINENO: checking for gtk+-2.0" >&5
19394 echo $ECHO_N "checking for gtk+-2.0... $ECHO_C" >&6
19395
19396         if $PKG_CONFIG --exists "gtk+-2.0" ; then
19397             echo "$as_me:$LINENO: result: yes" >&5
19398 echo "${ECHO_T}yes" >&6
19399             succeeded=yes
19400
19401             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
19402 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
19403             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0"`
19404             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
19405 echo "${ECHO_T}$GTK_CFLAGS" >&6
19406
19407             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
19408 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
19409             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0"`
19410             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
19411 echo "${ECHO_T}$GTK_LIBS" >&6
19412         else
19413             GTK_CFLAGS=""
19414             GTK_LIBS=""
19415             ## If we have a custom action on failure, don't print errors, but
19416             ## do set a variable so people can do so.
19417             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
19418             echo $GTK_PKG_ERRORS
19419         fi
19420
19421
19422
19423      else
19424         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19425         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19426      fi
19427   fi
19428
19429   if test $succeeded = yes; then
19430      :
19431   else
19432      { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19433 echo "$as_me: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19434    { (exit 1); exit 1; }; }
19435   fi
19436
19437
19438
19439
19440
19441 # ESD is needed for the hildon-note sounds.
19442
19443
19444   succeeded=no
19445
19446   if test -z "$PKG_CONFIG"; then
19447     # Extract the first word of "pkg-config", so it can be a program name with args.
19448 set dummy pkg-config; ac_word=$2
19449 echo "$as_me:$LINENO: checking for $ac_word" >&5
19450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19451 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19452   echo $ECHO_N "(cached) $ECHO_C" >&6
19453 else
19454   case $PKG_CONFIG in
19455   [\\/]* | ?:[\\/]*)
19456   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19457   ;;
19458   *)
19459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19460 for as_dir in $PATH
19461 do
19462   IFS=$as_save_IFS
19463   test -z "$as_dir" && as_dir=.
19464   for ac_exec_ext in '' $ac_executable_extensions; do
19465   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19466     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19468     break 2
19469   fi
19470 done
19471 done
19472
19473   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19474   ;;
19475 esac
19476 fi
19477 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19478
19479 if test -n "$PKG_CONFIG"; then
19480   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19481 echo "${ECHO_T}$PKG_CONFIG" >&6
19482 else
19483   echo "$as_me:$LINENO: result: no" >&5
19484 echo "${ECHO_T}no" >&6
19485 fi
19486
19487   fi
19488
19489   if test "$PKG_CONFIG" = "no" ; then
19490      echo "*** The pkg-config script could not be found. Make sure it is"
19491      echo "*** in your path, or set the PKG_CONFIG environment variable"
19492      echo "*** to the full path to pkg-config."
19493      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19494   else
19495      PKG_CONFIG_MIN_VERSION=0.9.0
19496      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19497         echo "$as_me:$LINENO: checking for esound" >&5
19498 echo $ECHO_N "checking for esound... $ECHO_C" >&6
19499
19500         if $PKG_CONFIG --exists "esound" ; then
19501             echo "$as_me:$LINENO: result: yes" >&5
19502 echo "${ECHO_T}yes" >&6
19503             succeeded=yes
19504
19505             echo "$as_me:$LINENO: checking ESD_CFLAGS" >&5
19506 echo $ECHO_N "checking ESD_CFLAGS... $ECHO_C" >&6
19507             ESD_CFLAGS=`$PKG_CONFIG --cflags "esound"`
19508             echo "$as_me:$LINENO: result: $ESD_CFLAGS" >&5
19509 echo "${ECHO_T}$ESD_CFLAGS" >&6
19510
19511             echo "$as_me:$LINENO: checking ESD_LIBS" >&5
19512 echo $ECHO_N "checking ESD_LIBS... $ECHO_C" >&6
19513             ESD_LIBS=`$PKG_CONFIG --libs "esound"`
19514             echo "$as_me:$LINENO: result: $ESD_LIBS" >&5
19515 echo "${ECHO_T}$ESD_LIBS" >&6
19516         else
19517             ESD_CFLAGS=""
19518             ESD_LIBS=""
19519             ## If we have a custom action on failure, don't print errors, but
19520             ## do set a variable so people can do so.
19521             ESD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
19522             echo $ESD_PKG_ERRORS
19523         fi
19524
19525
19526
19527      else
19528         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19529         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19530      fi
19531   fi
19532
19533   if test $succeeded = yes; then
19534      :
19535   else
19536      { { echo "$as_me:$LINENO: error: Library requirements (esound) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19537 echo "$as_me: error: Library requirements (esound) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19538    { (exit 1); exit 1; }; }
19539   fi
19540
19541
19542
19543
19544 # Needed to demonstrate how mime-types can be handled with gnome-vfs
19545
19546   succeeded=no
19547
19548   if test -z "$PKG_CONFIG"; then
19549     # Extract the first word of "pkg-config", so it can be a program name with args.
19550 set dummy pkg-config; ac_word=$2
19551 echo "$as_me:$LINENO: checking for $ac_word" >&5
19552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19553 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19554   echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556   case $PKG_CONFIG in
19557   [\\/]* | ?:[\\/]*)
19558   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19559   ;;
19560   *)
19561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19562 for as_dir in $PATH
19563 do
19564   IFS=$as_save_IFS
19565   test -z "$as_dir" && as_dir=.
19566   for ac_exec_ext in '' $ac_executable_extensions; do
19567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19568     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19570     break 2
19571   fi
19572 done
19573 done
19574
19575   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19576   ;;
19577 esac
19578 fi
19579 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19580
19581 if test -n "$PKG_CONFIG"; then
19582   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19583 echo "${ECHO_T}$PKG_CONFIG" >&6
19584 else
19585   echo "$as_me:$LINENO: result: no" >&5
19586 echo "${ECHO_T}no" >&6
19587 fi
19588
19589   fi
19590
19591   if test "$PKG_CONFIG" = "no" ; then
19592      echo "*** The pkg-config script could not be found. Make sure it is"
19593      echo "*** in your path, or set the PKG_CONFIG environment variable"
19594      echo "*** to the full path to pkg-config."
19595      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19596   else
19597      PKG_CONFIG_MIN_VERSION=0.9.0
19598      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19599         echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6" >&5
19600 echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6... $ECHO_C" >&6
19601
19602         if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6" ; then
19603             echo "$as_me:$LINENO: result: yes" >&5
19604 echo "${ECHO_T}yes" >&6
19605             succeeded=yes
19606
19607             echo "$as_me:$LINENO: checking GNOME_VFS_CFLAGS" >&5
19608 echo $ECHO_N "checking GNOME_VFS_CFLAGS... $ECHO_C" >&6
19609             GNOME_VFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6"`
19610             echo "$as_me:$LINENO: result: $GNOME_VFS_CFLAGS" >&5
19611 echo "${ECHO_T}$GNOME_VFS_CFLAGS" >&6
19612
19613             echo "$as_me:$LINENO: checking GNOME_VFS_LIBS" >&5
19614 echo $ECHO_N "checking GNOME_VFS_LIBS... $ECHO_C" >&6
19615             GNOME_VFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6"`
19616             echo "$as_me:$LINENO: result: $GNOME_VFS_LIBS" >&5
19617 echo "${ECHO_T}$GNOME_VFS_LIBS" >&6
19618         else
19619             GNOME_VFS_CFLAGS=""
19620             GNOME_VFS_LIBS=""
19621             ## If we have a custom action on failure, don't print errors, but
19622             ## do set a variable so people can do so.
19623             GNOME_VFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6"`
19624             echo $GNOME_VFS_PKG_ERRORS
19625         fi
19626
19627
19628
19629      else
19630         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19631         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19632      fi
19633   fi
19634
19635   if test $succeeded = yes; then
19636      :
19637   else
19638      { { echo "$as_me:$LINENO: error: Library requirements (gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19639 echo "$as_me: error: Library requirements (gnome-vfs-2.0 >= 2.6 gnome-vfs-module-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19640    { (exit 1); exit 1; }; }
19641   fi
19642
19643
19644
19645
19646
19647   succeeded=no
19648
19649   if test -z "$PKG_CONFIG"; then
19650     # Extract the first word of "pkg-config", so it can be a program name with args.
19651 set dummy pkg-config; ac_word=$2
19652 echo "$as_me:$LINENO: checking for $ac_word" >&5
19653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19654 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19655   echo $ECHO_N "(cached) $ECHO_C" >&6
19656 else
19657   case $PKG_CONFIG in
19658   [\\/]* | ?:[\\/]*)
19659   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19660   ;;
19661   *)
19662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19663 for as_dir in $PATH
19664 do
19665   IFS=$as_save_IFS
19666   test -z "$as_dir" && as_dir=.
19667   for ac_exec_ext in '' $ac_executable_extensions; do
19668   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19669     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19671     break 2
19672   fi
19673 done
19674 done
19675
19676   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19677   ;;
19678 esac
19679 fi
19680 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19681
19682 if test -n "$PKG_CONFIG"; then
19683   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19684 echo "${ECHO_T}$PKG_CONFIG" >&6
19685 else
19686   echo "$as_me:$LINENO: result: no" >&5
19687 echo "${ECHO_T}no" >&6
19688 fi
19689
19690   fi
19691
19692   if test "$PKG_CONFIG" = "no" ; then
19693      echo "*** The pkg-config script could not be found. Make sure it is"
19694      echo "*** in your path, or set the PKG_CONFIG environment variable"
19695      echo "*** to the full path to pkg-config."
19696      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19697   else
19698      PKG_CONFIG_MIN_VERSION=0.9.0
19699      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19700         echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.6" >&5
19701 echo $ECHO_N "checking for gconf-2.0 >= 2.6... $ECHO_C" >&6
19702
19703         if $PKG_CONFIG --exists "gconf-2.0 >= 2.6" ; then
19704             echo "$as_me:$LINENO: result: yes" >&5
19705 echo "${ECHO_T}yes" >&6
19706             succeeded=yes
19707
19708             echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
19709 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
19710             GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6"`
19711             echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
19712 echo "${ECHO_T}$GCONF_CFLAGS" >&6
19713
19714             echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
19715 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
19716             GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6"`
19717             echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
19718 echo "${ECHO_T}$GCONF_LIBS" >&6
19719         else
19720             GCONF_CFLAGS=""
19721             GCONF_LIBS=""
19722             ## If we have a custom action on failure, don't print errors, but
19723             ## do set a variable so people can do so.
19724             GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6"`
19725             echo $GCONF_PKG_ERRORS
19726         fi
19727
19728
19729
19730      else
19731         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19732         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19733      fi
19734   fi
19735
19736   if test $succeeded = yes; then
19737      :
19738   else
19739      { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19740 echo "$as_me: error: Library requirements (gconf-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19741    { (exit 1); exit 1; }; }
19742   fi
19743
19744
19745
19746
19747
19748   succeeded=no
19749
19750   if test -z "$PKG_CONFIG"; then
19751     # Extract the first word of "pkg-config", so it can be a program name with args.
19752 set dummy pkg-config; ac_word=$2
19753 echo "$as_me:$LINENO: checking for $ac_word" >&5
19754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19755 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19756   echo $ECHO_N "(cached) $ECHO_C" >&6
19757 else
19758   case $PKG_CONFIG in
19759   [\\/]* | ?:[\\/]*)
19760   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19761   ;;
19762   *)
19763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19764 for as_dir in $PATH
19765 do
19766   IFS=$as_save_IFS
19767   test -z "$as_dir" && as_dir=.
19768   for ac_exec_ext in '' $ac_executable_extensions; do
19769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19770     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19772     break 2
19773   fi
19774 done
19775 done
19776
19777   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19778   ;;
19779 esac
19780 fi
19781 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19782
19783 if test -n "$PKG_CONFIG"; then
19784   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19785 echo "${ECHO_T}$PKG_CONFIG" >&6
19786 else
19787   echo "$as_me:$LINENO: result: no" >&5
19788 echo "${ECHO_T}no" >&6
19789 fi
19790
19791   fi
19792
19793   if test "$PKG_CONFIG" = "no" ; then
19794      echo "*** The pkg-config script could not be found. Make sure it is"
19795      echo "*** in your path, or set the PKG_CONFIG environment variable"
19796      echo "*** to the full path to pkg-config."
19797      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19798   else
19799      PKG_CONFIG_MIN_VERSION=0.9.0
19800      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19801         echo "$as_me:$LINENO: checking for libmb >= 1.3" >&5
19802 echo $ECHO_N "checking for libmb >= 1.3... $ECHO_C" >&6
19803
19804         if $PKG_CONFIG --exists "libmb >= 1.3" ; then
19805             echo "$as_me:$LINENO: result: yes" >&5
19806 echo "${ECHO_T}yes" >&6
19807             succeeded=yes
19808
19809             echo "$as_me:$LINENO: checking LIBMB_CFLAGS" >&5
19810 echo $ECHO_N "checking LIBMB_CFLAGS... $ECHO_C" >&6
19811             LIBMB_CFLAGS=`$PKG_CONFIG --cflags "libmb >= 1.3"`
19812             echo "$as_me:$LINENO: result: $LIBMB_CFLAGS" >&5
19813 echo "${ECHO_T}$LIBMB_CFLAGS" >&6
19814
19815             echo "$as_me:$LINENO: checking LIBMB_LIBS" >&5
19816 echo $ECHO_N "checking LIBMB_LIBS... $ECHO_C" >&6
19817             LIBMB_LIBS=`$PKG_CONFIG --libs "libmb >= 1.3"`
19818             echo "$as_me:$LINENO: result: $LIBMB_LIBS" >&5
19819 echo "${ECHO_T}$LIBMB_LIBS" >&6
19820         else
19821             LIBMB_CFLAGS=""
19822             LIBMB_LIBS=""
19823             ## If we have a custom action on failure, don't print errors, but
19824             ## do set a variable so people can do so.
19825             LIBMB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmb >= 1.3"`
19826             echo $LIBMB_PKG_ERRORS
19827         fi
19828
19829
19830
19831      else
19832         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19833         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19834      fi
19835   fi
19836
19837   if test $succeeded = yes; then
19838      :
19839   else
19840      { { echo "$as_me:$LINENO: error: Library requirements (libmb >= 1.3) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19841 echo "$as_me: error: Library requirements (libmb >= 1.3) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19842    { (exit 1); exit 1; }; }
19843   fi
19844
19845
19846
19847
19848 ALL_LINGUAS="en_GB"
19849
19850
19851
19852 for ac_header in locale.h
19853 do
19854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19856   echo "$as_me:$LINENO: checking for $ac_header" >&5
19857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19859   echo $ECHO_N "(cached) $ECHO_C" >&6
19860 fi
19861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19862 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19863 else
19864   # Is the header compilable?
19865 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873 $ac_includes_default
19874 #include <$ac_header>
19875 _ACEOF
19876 rm -f conftest.$ac_objext
19877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19878   (eval $ac_compile) 2>conftest.er1
19879   ac_status=$?
19880   grep -v '^ *+' conftest.er1 >conftest.err
19881   rm -f conftest.er1
19882   cat conftest.err >&5
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); } &&
19885          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
19886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887   (eval $ac_try) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; } &&
19891          { ac_try='test -s conftest.$ac_objext'
19892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893   (eval $ac_try) 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); }; }; then
19897   ac_header_compiler=yes
19898 else
19899   echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19901
19902 ac_header_compiler=no
19903 fi
19904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19905 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19906 echo "${ECHO_T}$ac_header_compiler" >&6
19907
19908 # Is the header present?
19909 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h.  */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h.  */
19917 #include <$ac_header>
19918 _ACEOF
19919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19921   ac_status=$?
19922   grep -v '^ *+' conftest.er1 >conftest.err
19923   rm -f conftest.er1
19924   cat conftest.err >&5
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); } >/dev/null; then
19927   if test -s conftest.err; then
19928     ac_cpp_err=$ac_c_preproc_warn_flag
19929     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19930   else
19931     ac_cpp_err=
19932   fi
19933 else
19934   ac_cpp_err=yes
19935 fi
19936 if test -z "$ac_cpp_err"; then
19937   ac_header_preproc=yes
19938 else
19939   echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942   ac_header_preproc=no
19943 fi
19944 rm -f conftest.err conftest.$ac_ext
19945 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19946 echo "${ECHO_T}$ac_header_preproc" >&6
19947
19948 # So?  What about this header?
19949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19950   yes:no: )
19951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19955     ac_header_preproc=yes
19956     ;;
19957   no:yes:* )
19958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19970     (
19971       cat <<\_ASBOX
19972 ## ------------------------------------------ ##
19973 ## Report this to the AC_PACKAGE_NAME lists.  ##
19974 ## ------------------------------------------ ##
19975 _ASBOX
19976     ) |
19977       sed "s/^/$as_me: WARNING:     /" >&2
19978     ;;
19979 esac
19980 echo "$as_me:$LINENO: checking for $ac_header" >&5
19981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19983   echo $ECHO_N "(cached) $ECHO_C" >&6
19984 else
19985   eval "$as_ac_Header=\$ac_header_preproc"
19986 fi
19987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19988 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19989
19990 fi
19991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19992   cat >>confdefs.h <<_ACEOF
19993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19994 _ACEOF
19995
19996 fi
19997
19998 done
19999
20000     if test $ac_cv_header_locale_h = yes; then
20001     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
20002 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
20003 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012 #include <locale.h>
20013 int
20014 main ()
20015 {
20016 return LC_MESSAGES
20017   ;
20018   return 0;
20019 }
20020 _ACEOF
20021 rm -f conftest.$ac_objext conftest$ac_exeext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20023   (eval $ac_link) 2>conftest.er1
20024   ac_status=$?
20025   grep -v '^ *+' conftest.er1 >conftest.err
20026   rm -f conftest.er1
20027   cat conftest.err >&5
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); } &&
20030          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; } &&
20036          { ac_try='test -s conftest$ac_exeext'
20037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038   (eval $ac_try) 2>&5
20039   ac_status=$?
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); }; }; then
20042   am_cv_val_LC_MESSAGES=yes
20043 else
20044   echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047 am_cv_val_LC_MESSAGES=no
20048 fi
20049 rm -f conftest.err conftest.$ac_objext \
20050       conftest$ac_exeext conftest.$ac_ext
20051 fi
20052 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
20053 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
20054     if test $am_cv_val_LC_MESSAGES = yes; then
20055
20056 cat >>confdefs.h <<\_ACEOF
20057 #define HAVE_LC_MESSAGES 1
20058 _ACEOF
20059
20060     fi
20061   fi
20062      USE_NLS=yes
20063
20064
20065     gt_cv_have_gettext=no
20066
20067     CATOBJEXT=NONE
20068     XGETTEXT=:
20069     INTLLIBS=
20070
20071     if test "${ac_cv_header_libintl_h+set}" = set; then
20072   echo "$as_me:$LINENO: checking for libintl.h" >&5
20073 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20074 if test "${ac_cv_header_libintl_h+set}" = set; then
20075   echo $ECHO_N "(cached) $ECHO_C" >&6
20076 fi
20077 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20078 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20079 else
20080   # Is the header compilable?
20081 echo "$as_me:$LINENO: checking libintl.h usability" >&5
20082 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h.  */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h.  */
20089 $ac_includes_default
20090 #include <libintl.h>
20091 _ACEOF
20092 rm -f conftest.$ac_objext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20094   (eval $ac_compile) 2>conftest.er1
20095   ac_status=$?
20096   grep -v '^ *+' conftest.er1 >conftest.err
20097   rm -f conftest.er1
20098   cat conftest.err >&5
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); } &&
20101          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103   (eval $ac_try) 2>&5
20104   ac_status=$?
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); }; } &&
20107          { ac_try='test -s conftest.$ac_objext'
20108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20109   (eval $ac_try) 2>&5
20110   ac_status=$?
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); }; }; then
20113   ac_header_compiler=yes
20114 else
20115   echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118 ac_header_compiler=no
20119 fi
20120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20122 echo "${ECHO_T}$ac_header_compiler" >&6
20123
20124 # Is the header present?
20125 echo "$as_me:$LINENO: checking libintl.h presence" >&5
20126 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
20127 cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h.  */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h.  */
20133 #include <libintl.h>
20134 _ACEOF
20135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20137   ac_status=$?
20138   grep -v '^ *+' conftest.er1 >conftest.err
20139   rm -f conftest.er1
20140   cat conftest.err >&5
20141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142   (exit $ac_status); } >/dev/null; then
20143   if test -s conftest.err; then
20144     ac_cpp_err=$ac_c_preproc_warn_flag
20145     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20146   else
20147     ac_cpp_err=
20148   fi
20149 else
20150   ac_cpp_err=yes
20151 fi
20152 if test -z "$ac_cpp_err"; then
20153   ac_header_preproc=yes
20154 else
20155   echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20157
20158   ac_header_preproc=no
20159 fi
20160 rm -f conftest.err conftest.$ac_ext
20161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20162 echo "${ECHO_T}$ac_header_preproc" >&6
20163
20164 # So?  What about this header?
20165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20166   yes:no: )
20167     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20168 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20169     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
20170 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
20171     ac_header_preproc=yes
20172     ;;
20173   no:yes:* )
20174     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
20175 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
20176     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
20177 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
20178     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
20179 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
20180     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
20181 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20182     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
20183 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
20184     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
20185 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
20186     (
20187       cat <<\_ASBOX
20188 ## ------------------------------------------ ##
20189 ## Report this to the AC_PACKAGE_NAME lists.  ##
20190 ## ------------------------------------------ ##
20191 _ASBOX
20192     ) |
20193       sed "s/^/$as_me: WARNING:     /" >&2
20194     ;;
20195 esac
20196 echo "$as_me:$LINENO: checking for libintl.h" >&5
20197 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
20198 if test "${ac_cv_header_libintl_h+set}" = set; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 else
20201   ac_cv_header_libintl_h=$ac_header_preproc
20202 fi
20203 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
20204 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
20205
20206 fi
20207 if test $ac_cv_header_libintl_h = yes; then
20208   gt_cv_func_dgettext_libintl="no"
20209       libintl_extra_libs=""
20210
20211       #
20212       # First check in libc
20213       #
20214       echo "$as_me:$LINENO: checking for ngettext in libc" >&5
20215 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
20216 if test "${gt_cv_func_ngettext_libc+set}" = set; then
20217   echo $ECHO_N "(cached) $ECHO_C" >&6
20218 else
20219   cat >conftest.$ac_ext <<_ACEOF
20220 /* confdefs.h.  */
20221 _ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h.  */
20225
20226 #include <libintl.h>
20227
20228 int
20229 main ()
20230 {
20231 return !ngettext ("","", 1)
20232   ;
20233   return 0;
20234 }
20235 _ACEOF
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20238   (eval $ac_link) 2>conftest.er1
20239   ac_status=$?
20240   grep -v '^ *+' conftest.er1 >conftest.err
20241   rm -f conftest.er1
20242   cat conftest.err >&5
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); } &&
20245          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247   (eval $ac_try) 2>&5
20248   ac_status=$?
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); }; } &&
20251          { ac_try='test -s conftest$ac_exeext'
20252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253   (eval $ac_try) 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); }; }; then
20257   gt_cv_func_ngettext_libc=yes
20258 else
20259   echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20261
20262 gt_cv_func_ngettext_libc=no
20263 fi
20264 rm -f conftest.err conftest.$ac_objext \
20265       conftest$ac_exeext conftest.$ac_ext
20266
20267 fi
20268 echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
20269 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
20270
20271       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20272               echo "$as_me:$LINENO: checking for dgettext in libc" >&5
20273 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
20274 if test "${gt_cv_func_dgettext_libc+set}" = set; then
20275   echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277   cat >conftest.$ac_ext <<_ACEOF
20278 /* confdefs.h.  */
20279 _ACEOF
20280 cat confdefs.h >>conftest.$ac_ext
20281 cat >>conftest.$ac_ext <<_ACEOF
20282 /* end confdefs.h.  */
20283
20284 #include <libintl.h>
20285
20286 int
20287 main ()
20288 {
20289 return !dgettext ("","")
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296   (eval $ac_link) 2>conftest.er1
20297   ac_status=$?
20298   grep -v '^ *+' conftest.er1 >conftest.err
20299   rm -f conftest.er1
20300   cat conftest.err >&5
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); } &&
20303          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305   (eval $ac_try) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; } &&
20309          { ac_try='test -s conftest$ac_exeext'
20310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311   (eval $ac_try) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; }; then
20315   gt_cv_func_dgettext_libc=yes
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 gt_cv_func_dgettext_libc=no
20321 fi
20322 rm -f conftest.err conftest.$ac_objext \
20323       conftest$ac_exeext conftest.$ac_ext
20324
20325 fi
20326 echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
20327 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
20328       fi
20329
20330       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
20331
20332 for ac_func in bind_textdomain_codeset
20333 do
20334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20335 echo "$as_me:$LINENO: checking for $ac_func" >&5
20336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20337 if eval "test \"\${$as_ac_var+set}\" = set"; then
20338   echo $ECHO_N "(cached) $ECHO_C" >&6
20339 else
20340   cat >conftest.$ac_ext <<_ACEOF
20341 /* confdefs.h.  */
20342 _ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h.  */
20346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20348 #define $ac_func innocuous_$ac_func
20349
20350 /* System header to define __stub macros and hopefully few prototypes,
20351     which can conflict with char $ac_func (); below.
20352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20353     <limits.h> exists even on freestanding compilers.  */
20354
20355 #ifdef __STDC__
20356 # include <limits.h>
20357 #else
20358 # include <assert.h>
20359 #endif
20360
20361 #undef $ac_func
20362
20363 /* Override any gcc2 internal prototype to avoid an error.  */
20364 #ifdef __cplusplus
20365 extern "C"
20366 {
20367 #endif
20368 /* We use char because int might match the return type of a gcc2
20369    builtin and then its argument prototype would still apply.  */
20370 char $ac_func ();
20371 /* The GNU C library defines this for functions which it implements
20372     to always fail with ENOSYS.  Some functions are actually named
20373     something starting with __ and the normal name is an alias.  */
20374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20375 choke me
20376 #else
20377 char (*f) () = $ac_func;
20378 #endif
20379 #ifdef __cplusplus
20380 }
20381 #endif
20382
20383 int
20384 main ()
20385 {
20386 return f != $ac_func;
20387   ;
20388   return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393   (eval $ac_link) 2>conftest.er1
20394   ac_status=$?
20395   grep -v '^ *+' conftest.er1 >conftest.err
20396   rm -f conftest.er1
20397   cat conftest.err >&5
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } &&
20400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402   (eval $ac_try) 2>&5
20403   ac_status=$?
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); }; } &&
20406          { ac_try='test -s conftest$ac_exeext'
20407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408   (eval $ac_try) 2>&5
20409   ac_status=$?
20410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411   (exit $ac_status); }; }; then
20412   eval "$as_ac_var=yes"
20413 else
20414   echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417 eval "$as_ac_var=no"
20418 fi
20419 rm -f conftest.err conftest.$ac_objext \
20420       conftest$ac_exeext conftest.$ac_ext
20421 fi
20422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20424 if test `eval echo '${'$as_ac_var'}'` = yes; then
20425   cat >>confdefs.h <<_ACEOF
20426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20427 _ACEOF
20428
20429 fi
20430 done
20431
20432       fi
20433
20434       #
20435       # If we don't have everything we want, check in libintl
20436       #
20437       if test "$gt_cv_func_dgettext_libc" != "yes" \
20438          || test "$gt_cv_func_ngettext_libc" != "yes" \
20439          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
20440
20441         echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
20442 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
20443 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
20444   echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446   ac_check_lib_save_LIBS=$LIBS
20447 LIBS="-lintl  $LIBS"
20448 cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h.  */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h.  */
20454
20455 /* Override any gcc2 internal prototype to avoid an error.  */
20456 #ifdef __cplusplus
20457 extern "C"
20458 #endif
20459 /* We use char because int might match the return type of a gcc2
20460    builtin and then its argument prototype would still apply.  */
20461 char bindtextdomain ();
20462 int
20463 main ()
20464 {
20465 bindtextdomain ();
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 rm -f conftest.$ac_objext conftest$ac_exeext
20471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20472   (eval $ac_link) 2>conftest.er1
20473   ac_status=$?
20474   grep -v '^ *+' conftest.er1 >conftest.err
20475   rm -f conftest.er1
20476   cat conftest.err >&5
20477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478   (exit $ac_status); } &&
20479          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481   (eval $ac_try) 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; } &&
20485          { ac_try='test -s conftest$ac_exeext'
20486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487   (eval $ac_try) 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; }; then
20491   ac_cv_lib_intl_bindtextdomain=yes
20492 else
20493   echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20495
20496 ac_cv_lib_intl_bindtextdomain=no
20497 fi
20498 rm -f conftest.err conftest.$ac_objext \
20499       conftest$ac_exeext conftest.$ac_ext
20500 LIBS=$ac_check_lib_save_LIBS
20501 fi
20502 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
20503 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
20504 if test $ac_cv_lib_intl_bindtextdomain = yes; then
20505   echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20506 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
20507 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20508   echo $ECHO_N "(cached) $ECHO_C" >&6
20509 else
20510   ac_check_lib_save_LIBS=$LIBS
20511 LIBS="-lintl  $LIBS"
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h.  */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h.  */
20518
20519 /* Override any gcc2 internal prototype to avoid an error.  */
20520 #ifdef __cplusplus
20521 extern "C"
20522 #endif
20523 /* We use char because int might match the return type of a gcc2
20524    builtin and then its argument prototype would still apply.  */
20525 char ngettext ();
20526 int
20527 main ()
20528 {
20529 ngettext ();
20530   ;
20531   return 0;
20532 }
20533 _ACEOF
20534 rm -f conftest.$ac_objext conftest$ac_exeext
20535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536   (eval $ac_link) 2>conftest.er1
20537   ac_status=$?
20538   grep -v '^ *+' conftest.er1 >conftest.err
20539   rm -f conftest.er1
20540   cat conftest.err >&5
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); } &&
20543          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20545   (eval $ac_try) 2>&5
20546   ac_status=$?
20547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548   (exit $ac_status); }; } &&
20549          { ac_try='test -s conftest$ac_exeext'
20550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551   (eval $ac_try) 2>&5
20552   ac_status=$?
20553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554   (exit $ac_status); }; }; then
20555   ac_cv_lib_intl_ngettext=yes
20556 else
20557   echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20559
20560 ac_cv_lib_intl_ngettext=no
20561 fi
20562 rm -f conftest.err conftest.$ac_objext \
20563       conftest$ac_exeext conftest.$ac_ext
20564 LIBS=$ac_check_lib_save_LIBS
20565 fi
20566 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
20567 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
20568 if test $ac_cv_lib_intl_ngettext = yes; then
20569   echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20570 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
20571 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20572   echo $ECHO_N "(cached) $ECHO_C" >&6
20573 else
20574   ac_check_lib_save_LIBS=$LIBS
20575 LIBS="-lintl  $LIBS"
20576 cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582
20583 /* Override any gcc2 internal prototype to avoid an error.  */
20584 #ifdef __cplusplus
20585 extern "C"
20586 #endif
20587 /* We use char because int might match the return type of a gcc2
20588    builtin and then its argument prototype would still apply.  */
20589 char dgettext ();
20590 int
20591 main ()
20592 {
20593 dgettext ();
20594   ;
20595   return 0;
20596 }
20597 _ACEOF
20598 rm -f conftest.$ac_objext conftest$ac_exeext
20599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20600   (eval $ac_link) 2>conftest.er1
20601   ac_status=$?
20602   grep -v '^ *+' conftest.er1 >conftest.err
20603   rm -f conftest.er1
20604   cat conftest.err >&5
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); } &&
20607          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20609   (eval $ac_try) 2>&5
20610   ac_status=$?
20611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612   (exit $ac_status); }; } &&
20613          { ac_try='test -s conftest$ac_exeext'
20614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20615   (eval $ac_try) 2>&5
20616   ac_status=$?
20617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618   (exit $ac_status); }; }; then
20619   ac_cv_lib_intl_dgettext=yes
20620 else
20621   echo "$as_me: failed program was:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20623
20624 ac_cv_lib_intl_dgettext=no
20625 fi
20626 rm -f conftest.err conftest.$ac_objext \
20627       conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20629 fi
20630 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20631 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
20632 if test $ac_cv_lib_intl_dgettext = yes; then
20633   gt_cv_func_dgettext_libintl=yes
20634 fi
20635
20636 fi
20637
20638 fi
20639
20640
20641         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
20642           echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
20643 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
20644           echo "$as_me:$LINENO: result: " >&5
20645 echo "${ECHO_T}" >&6
20646           echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
20647 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
20648 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
20649   echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651   ac_check_lib_save_LIBS=$LIBS
20652 LIBS="-lintl -liconv $LIBS"
20653 cat >conftest.$ac_ext <<_ACEOF
20654 /* confdefs.h.  */
20655 _ACEOF
20656 cat confdefs.h >>conftest.$ac_ext
20657 cat >>conftest.$ac_ext <<_ACEOF
20658 /* end confdefs.h.  */
20659
20660 /* Override any gcc2 internal prototype to avoid an error.  */
20661 #ifdef __cplusplus
20662 extern "C"
20663 #endif
20664 /* We use char because int might match the return type of a gcc2
20665    builtin and then its argument prototype would still apply.  */
20666 char ngettext ();
20667 int
20668 main ()
20669 {
20670 ngettext ();
20671   ;
20672   return 0;
20673 }
20674 _ACEOF
20675 rm -f conftest.$ac_objext conftest$ac_exeext
20676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20677   (eval $ac_link) 2>conftest.er1
20678   ac_status=$?
20679   grep -v '^ *+' conftest.er1 >conftest.err
20680   rm -f conftest.er1
20681   cat conftest.err >&5
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); } &&
20684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686   (eval $ac_try) 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; } &&
20690          { ac_try='test -s conftest$ac_exeext'
20691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692   (eval $ac_try) 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; }; then
20696   ac_cv_lib_intl_ngettext=yes
20697 else
20698   echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 ac_cv_lib_intl_ngettext=no
20702 fi
20703 rm -f conftest.err conftest.$ac_objext \
20704       conftest$ac_exeext conftest.$ac_ext
20705 LIBS=$ac_check_lib_save_LIBS
20706 fi
20707 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
20708 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
20709 if test $ac_cv_lib_intl_ngettext = yes; then
20710   echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
20711 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
20712 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
20713   echo $ECHO_N "(cached) $ECHO_C" >&6
20714 else
20715   ac_check_lib_save_LIBS=$LIBS
20716 LIBS="-lintl -liconv $LIBS"
20717 cat >conftest.$ac_ext <<_ACEOF
20718 /* confdefs.h.  */
20719 _ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h.  */
20723
20724 /* Override any gcc2 internal prototype to avoid an error.  */
20725 #ifdef __cplusplus
20726 extern "C"
20727 #endif
20728 /* We use char because int might match the return type of a gcc2
20729    builtin and then its argument prototype would still apply.  */
20730 char dcgettext ();
20731 int
20732 main ()
20733 {
20734 dcgettext ();
20735   ;
20736   return 0;
20737 }
20738 _ACEOF
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20741   (eval $ac_link) 2>conftest.er1
20742   ac_status=$?
20743   grep -v '^ *+' conftest.er1 >conftest.err
20744   rm -f conftest.er1
20745   cat conftest.err >&5
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } &&
20748          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750   (eval $ac_try) 2>&5
20751   ac_status=$?
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); }; } &&
20754          { ac_try='test -s conftest$ac_exeext'
20755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756   (eval $ac_try) 2>&5
20757   ac_status=$?
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); }; }; then
20760   ac_cv_lib_intl_dcgettext=yes
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 ac_cv_lib_intl_dcgettext=no
20766 fi
20767 rm -f conftest.err conftest.$ac_objext \
20768       conftest$ac_exeext conftest.$ac_ext
20769 LIBS=$ac_check_lib_save_LIBS
20770 fi
20771 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
20772 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
20773 if test $ac_cv_lib_intl_dcgettext = yes; then
20774   gt_cv_func_dgettext_libintl=yes
20775                         libintl_extra_libs=-liconv
20776 else
20777   :
20778 fi
20779
20780 else
20781   :
20782 fi
20783
20784         fi
20785
20786         #
20787         # If we found libintl, then check in it for bind_textdomain_codeset();
20788         # we'll prefer libc if neither have bind_textdomain_codeset(),
20789         # and both have dgettext and ngettext
20790         #
20791         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
20792           glib_save_LIBS="$LIBS"
20793           LIBS="$LIBS -lintl $libintl_extra_libs"
20794           unset ac_cv_func_bind_textdomain_codeset
20795
20796 for ac_func in bind_textdomain_codeset
20797 do
20798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20799 echo "$as_me:$LINENO: checking for $ac_func" >&5
20800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20801 if eval "test \"\${$as_ac_var+set}\" = set"; then
20802   echo $ECHO_N "(cached) $ECHO_C" >&6
20803 else
20804   cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h.  */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h.  */
20810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20812 #define $ac_func innocuous_$ac_func
20813
20814 /* System header to define __stub macros and hopefully few prototypes,
20815     which can conflict with char $ac_func (); below.
20816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20817     <limits.h> exists even on freestanding compilers.  */
20818
20819 #ifdef __STDC__
20820 # include <limits.h>
20821 #else
20822 # include <assert.h>
20823 #endif
20824
20825 #undef $ac_func
20826
20827 /* Override any gcc2 internal prototype to avoid an error.  */
20828 #ifdef __cplusplus
20829 extern "C"
20830 {
20831 #endif
20832 /* We use char because int might match the return type of a gcc2
20833    builtin and then its argument prototype would still apply.  */
20834 char $ac_func ();
20835 /* The GNU C library defines this for functions which it implements
20836     to always fail with ENOSYS.  Some functions are actually named
20837     something starting with __ and the normal name is an alias.  */
20838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20839 choke me
20840 #else
20841 char (*f) () = $ac_func;
20842 #endif
20843 #ifdef __cplusplus
20844 }
20845 #endif
20846
20847 int
20848 main ()
20849 {
20850 return f != $ac_func;
20851   ;
20852   return 0;
20853 }
20854 _ACEOF
20855 rm -f conftest.$ac_objext conftest$ac_exeext
20856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20857   (eval $ac_link) 2>conftest.er1
20858   ac_status=$?
20859   grep -v '^ *+' conftest.er1 >conftest.err
20860   rm -f conftest.er1
20861   cat conftest.err >&5
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); } &&
20864          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; } &&
20870          { ac_try='test -s conftest$ac_exeext'
20871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872   (eval $ac_try) 2>&5
20873   ac_status=$?
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); }; }; then
20876   eval "$as_ac_var=yes"
20877 else
20878   echo "$as_me: failed program was:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20880
20881 eval "$as_ac_var=no"
20882 fi
20883 rm -f conftest.err conftest.$ac_objext \
20884       conftest$ac_exeext conftest.$ac_ext
20885 fi
20886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20888 if test `eval echo '${'$as_ac_var'}'` = yes; then
20889   cat >>confdefs.h <<_ACEOF
20890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20891 _ACEOF
20892
20893 fi
20894 done
20895
20896           LIBS="$glib_save_LIBS"
20897
20898           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
20899             gt_cv_func_dgettext_libc=no
20900           else
20901             if test "$gt_cv_func_dgettext_libc" = "yes" \
20902                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
20903               gt_cv_func_dgettext_libintl=no
20904             fi
20905           fi
20906         fi
20907       fi
20908
20909       if test "$gt_cv_func_dgettext_libc" = "yes" \
20910         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
20911         gt_cv_have_gettext=yes
20912       fi
20913
20914       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
20915         INTLLIBS="-lintl $libintl_extra_libs"
20916       fi
20917
20918       if test "$gt_cv_have_gettext" = "yes"; then
20919
20920 cat >>confdefs.h <<\_ACEOF
20921 #define HAVE_GETTEXT 1
20922 _ACEOF
20923
20924         # Extract the first word of "msgfmt", so it can be a program name with args.
20925 set dummy msgfmt; ac_word=$2
20926 echo "$as_me:$LINENO: checking for $ac_word" >&5
20927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20928 if test "${ac_cv_path_MSGFMT+set}" = set; then
20929   echo $ECHO_N "(cached) $ECHO_C" >&6
20930 else
20931   case "$MSGFMT" in
20932   /*)
20933   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20934   ;;
20935   *)
20936   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20937   for ac_dir in $PATH; do
20938     test -z "$ac_dir" && ac_dir=.
20939     if test -f $ac_dir/$ac_word; then
20940       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
20941         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
20942         break
20943       fi
20944     fi
20945   done
20946   IFS="$ac_save_ifs"
20947   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
20948   ;;
20949 esac
20950 fi
20951 MSGFMT="$ac_cv_path_MSGFMT"
20952 if test "$MSGFMT" != "no"; then
20953   echo "$as_me:$LINENO: result: $MSGFMT" >&5
20954 echo "${ECHO_T}$MSGFMT" >&6
20955 else
20956   echo "$as_me:$LINENO: result: no" >&5
20957 echo "${ECHO_T}no" >&6
20958 fi
20959         if test "$MSGFMT" != "no"; then
20960           glib_save_LIBS="$LIBS"
20961           LIBS="$LIBS $INTLLIBS"
20962
20963 for ac_func in dcgettext
20964 do
20965 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20966 echo "$as_me:$LINENO: checking for $ac_func" >&5
20967 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20968 if eval "test \"\${$as_ac_var+set}\" = set"; then
20969   echo $ECHO_N "(cached) $ECHO_C" >&6
20970 else
20971   cat >conftest.$ac_ext <<_ACEOF
20972 /* confdefs.h.  */
20973 _ACEOF
20974 cat confdefs.h >>conftest.$ac_ext
20975 cat >>conftest.$ac_ext <<_ACEOF
20976 /* end confdefs.h.  */
20977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20979 #define $ac_func innocuous_$ac_func
20980
20981 /* System header to define __stub macros and hopefully few prototypes,
20982     which can conflict with char $ac_func (); below.
20983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20984     <limits.h> exists even on freestanding compilers.  */
20985
20986 #ifdef __STDC__
20987 # include <limits.h>
20988 #else
20989 # include <assert.h>
20990 #endif
20991
20992 #undef $ac_func
20993
20994 /* Override any gcc2 internal prototype to avoid an error.  */
20995 #ifdef __cplusplus
20996 extern "C"
20997 {
20998 #endif
20999 /* We use char because int might match the return type of a gcc2
21000    builtin and then its argument prototype would still apply.  */
21001 char $ac_func ();
21002 /* The GNU C library defines this for functions which it implements
21003     to always fail with ENOSYS.  Some functions are actually named
21004     something starting with __ and the normal name is an alias.  */
21005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21006 choke me
21007 #else
21008 char (*f) () = $ac_func;
21009 #endif
21010 #ifdef __cplusplus
21011 }
21012 #endif
21013
21014 int
21015 main ()
21016 {
21017 return f != $ac_func;
21018   ;
21019   return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext conftest$ac_exeext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21024   (eval $ac_link) 2>conftest.er1
21025   ac_status=$?
21026   grep -v '^ *+' conftest.er1 >conftest.err
21027   rm -f conftest.er1
21028   cat conftest.err >&5
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); } &&
21031          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; } &&
21037          { ac_try='test -s conftest$ac_exeext'
21038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039   (eval $ac_try) 2>&5
21040   ac_status=$?
21041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042   (exit $ac_status); }; }; then
21043   eval "$as_ac_var=yes"
21044 else
21045   echo "$as_me: failed program was:" >&5
21046 sed 's/^/| /' conftest.$ac_ext >&5
21047
21048 eval "$as_ac_var=no"
21049 fi
21050 rm -f conftest.err conftest.$ac_objext \
21051       conftest$ac_exeext conftest.$ac_ext
21052 fi
21053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21055 if test `eval echo '${'$as_ac_var'}'` = yes; then
21056   cat >>confdefs.h <<_ACEOF
21057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21058 _ACEOF
21059
21060 fi
21061 done
21062
21063           # Extract the first word of "gmsgfmt", so it can be a program name with args.
21064 set dummy gmsgfmt; ac_word=$2
21065 echo "$as_me:$LINENO: checking for $ac_word" >&5
21066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21067 if test "${ac_cv_path_GMSGFMT+set}" = set; then
21068   echo $ECHO_N "(cached) $ECHO_C" >&6
21069 else
21070   case $GMSGFMT in
21071   [\\/]* | ?:[\\/]*)
21072   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21073   ;;
21074   *)
21075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21076 for as_dir in $PATH
21077 do
21078   IFS=$as_save_IFS
21079   test -z "$as_dir" && as_dir=.
21080   for ac_exec_ext in '' $ac_executable_extensions; do
21081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21082     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21084     break 2
21085   fi
21086 done
21087 done
21088
21089   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21090   ;;
21091 esac
21092 fi
21093 GMSGFMT=$ac_cv_path_GMSGFMT
21094
21095 if test -n "$GMSGFMT"; then
21096   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21097 echo "${ECHO_T}$GMSGFMT" >&6
21098 else
21099   echo "$as_me:$LINENO: result: no" >&5
21100 echo "${ECHO_T}no" >&6
21101 fi
21102
21103           # Extract the first word of "xgettext", so it can be a program name with args.
21104 set dummy xgettext; ac_word=$2
21105 echo "$as_me:$LINENO: checking for $ac_word" >&5
21106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21107 if test "${ac_cv_path_XGETTEXT+set}" = set; then
21108   echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21110   case "$XGETTEXT" in
21111   /*)
21112   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21113   ;;
21114   *)
21115   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
21116   for ac_dir in $PATH; do
21117     test -z "$ac_dir" && ac_dir=.
21118     if test -f $ac_dir/$ac_word; then
21119       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
21120         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
21121         break
21122       fi
21123     fi
21124   done
21125   IFS="$ac_save_ifs"
21126   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21127   ;;
21128 esac
21129 fi
21130 XGETTEXT="$ac_cv_path_XGETTEXT"
21131 if test "$XGETTEXT" != ":"; then
21132   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21133 echo "${ECHO_T}$XGETTEXT" >&6
21134 else
21135   echo "$as_me:$LINENO: result: no" >&5
21136 echo "${ECHO_T}no" >&6
21137 fi
21138
21139           cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21145
21146 int
21147 main ()
21148 {
21149 extern int _nl_msg_cat_cntr;
21150                          return _nl_msg_cat_cntr
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21157   (eval $ac_link) 2>conftest.er1
21158   ac_status=$?
21159   grep -v '^ *+' conftest.er1 >conftest.err
21160   rm -f conftest.er1
21161   cat conftest.err >&5
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } &&
21164          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166   (eval $ac_try) 2>&5
21167   ac_status=$?
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); }; } &&
21170          { ac_try='test -s conftest$ac_exeext'
21171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21172   (eval $ac_try) 2>&5
21173   ac_status=$?
21174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175   (exit $ac_status); }; }; then
21176   CATOBJEXT=.gmo
21177              DATADIRNAME=share
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21181
21182 case $host in
21183             *-*-solaris*)
21184                                                                 echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
21185 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
21186 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
21187   echo $ECHO_N "(cached) $ECHO_C" >&6
21188 else
21189   cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h.  */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h.  */
21195 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
21196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21197 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
21198
21199 /* System header to define __stub macros and hopefully few prototypes,
21200     which can conflict with char bind_textdomain_codeset (); below.
21201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21202     <limits.h> exists even on freestanding compilers.  */
21203
21204 #ifdef __STDC__
21205 # include <limits.h>
21206 #else
21207 # include <assert.h>
21208 #endif
21209
21210 #undef bind_textdomain_codeset
21211
21212 /* Override any gcc2 internal prototype to avoid an error.  */
21213 #ifdef __cplusplus
21214 extern "C"
21215 {
21216 #endif
21217 /* We use char because int might match the return type of a gcc2
21218    builtin and then its argument prototype would still apply.  */
21219 char bind_textdomain_codeset ();
21220 /* The GNU C library defines this for functions which it implements
21221     to always fail with ENOSYS.  Some functions are actually named
21222     something starting with __ and the normal name is an alias.  */
21223 #if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
21224 choke me
21225 #else
21226 char (*f) () = bind_textdomain_codeset;
21227 #endif
21228 #ifdef __cplusplus
21229 }
21230 #endif
21231
21232 int
21233 main ()
21234 {
21235 return f != bind_textdomain_codeset;
21236   ;
21237   return 0;
21238 }
21239 _ACEOF
21240 rm -f conftest.$ac_objext conftest$ac_exeext
21241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21242   (eval $ac_link) 2>conftest.er1
21243   ac_status=$?
21244   grep -v '^ *+' conftest.er1 >conftest.err
21245   rm -f conftest.er1
21246   cat conftest.err >&5
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); } &&
21249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
21250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21251   (eval $ac_try) 2>&5
21252   ac_status=$?
21253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254   (exit $ac_status); }; } &&
21255          { ac_try='test -s conftest$ac_exeext'
21256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21257   (eval $ac_try) 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); }; }; then
21261   ac_cv_func_bind_textdomain_codeset=yes
21262 else
21263   echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266 ac_cv_func_bind_textdomain_codeset=no
21267 fi
21268 rm -f conftest.err conftest.$ac_objext \
21269       conftest$ac_exeext conftest.$ac_ext
21270 fi
21271 echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
21272 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
21273 if test $ac_cv_func_bind_textdomain_codeset = yes; then
21274   CATOBJEXT=.gmo
21275                DATADIRNAME=share
21276 else
21277   CATOBJEXT=.mo
21278                DATADIRNAME=lib
21279 fi
21280
21281             ;;
21282             *)
21283             CATOBJEXT=.mo
21284             DATADIRNAME=lib
21285             ;;
21286             esac
21287 fi
21288 rm -f conftest.err conftest.$ac_objext \
21289       conftest$ac_exeext conftest.$ac_ext
21290           LIBS="$glib_save_LIBS"
21291           INSTOBJEXT=.mo
21292         else
21293           gt_cv_have_gettext=no
21294         fi
21295       fi
21296
21297 fi
21298
21299
21300
21301     if test "$gt_cv_have_gettext" = "yes" ; then
21302
21303 cat >>confdefs.h <<\_ACEOF
21304 #define ENABLE_NLS 1
21305 _ACEOF
21306
21307     fi
21308
21309         if test "$XGETTEXT" != ":"; then
21310                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
21311         : ;
21312       else
21313         echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21314 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
21315         XGETTEXT=":"
21316       fi
21317     fi
21318
21319     # We need to process the po/ directory.
21320     POSUB=po
21321
21322               ac_config_commands="$ac_config_commands default-1"
21323
21324
21325                 for lang in $ALL_LINGUAS; do
21326       GMOFILES="$GMOFILES $lang.gmo"
21327       POFILES="$POFILES $lang.po"
21328     done
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342    if test "$gt_cv_have_gettext" = "yes"; then
21343      if test "x$ALL_LINGUAS" = "x"; then
21344        LINGUAS=
21345      else
21346        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
21347 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
21348        NEW_LINGUAS=
21349        for presentlang in $ALL_LINGUAS; do
21350          useit=no
21351          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
21352            desiredlanguages="$LINGUAS"
21353          else
21354            desiredlanguages="$ALL_LINGUAS"
21355          fi
21356          for desiredlang in $desiredlanguages; do
21357            # Use the presentlang catalog if desiredlang is
21358            #   a. equal to presentlang, or
21359            #   b. a variant of presentlang (because in this case,
21360            #      presentlang can be used as a fallback for messages
21361            #      which are not translated in the desiredlang catalog).
21362            case "$desiredlang" in
21363              "$presentlang"*) useit=yes;;
21364            esac
21365          done
21366          if test $useit = yes; then
21367            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
21368          fi
21369        done
21370        LINGUAS=$NEW_LINGUAS
21371        echo "$as_me:$LINENO: result: $LINGUAS" >&5
21372 echo "${ECHO_T}$LINGUAS" >&6
21373      fi
21374
21375           if test -n "$LINGUAS"; then
21376        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
21377      fi
21378    fi
21379
21380             MKINSTALLDIRS=
21381    if test -n "$ac_aux_dir"; then
21382      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
21383    fi
21384    if test -z "$MKINSTALLDIRS"; then
21385      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
21386    fi
21387
21388
21389          test -d po || mkdir po
21390    if test "x$srcdir" != "x."; then
21391      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
21392        posrcprefix="$srcdir/"
21393      else
21394        posrcprefix="../$srcdir/"
21395      fi
21396    else
21397      posrcprefix="../"
21398    fi
21399    rm -f po/POTFILES
21400    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
21401         < $srcdir/po/POTFILES.in > po/POTFILES
21402
21403
21404 ##################################################
21405 # Check for gtk-doc.
21406 ##################################################
21407
21408
21409 # Check whether --with-html-dir or --without-html-dir was given.
21410 if test "${with_html_dir+set}" = set; then
21411   withval="$with_html_dir"
21412
21413 else
21414   with_html_dir='${datadir}/gtk-doc/html'
21415 fi;
21416   HTML_DIR="$with_html_dir"
21417
21418
21419     # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
21420 if test "${enable_gtk_doc+set}" = set; then
21421   enableval="$enable_gtk_doc"
21422
21423 else
21424   enable_gtk_doc=no
21425 fi;
21426
21427   have_gtk_doc=no
21428   if test -z "$PKG_CONFIG"; then
21429     # Extract the first word of "pkg-config", so it can be a program name with args.
21430 set dummy pkg-config; ac_word=$2
21431 echo "$as_me:$LINENO: checking for $ac_word" >&5
21432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21433 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21434   echo $ECHO_N "(cached) $ECHO_C" >&6
21435 else
21436   case $PKG_CONFIG in
21437   [\\/]* | ?:[\\/]*)
21438   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21439   ;;
21440   *)
21441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21442 for as_dir in $PATH
21443 do
21444   IFS=$as_save_IFS
21445   test -z "$as_dir" && as_dir=.
21446   for ac_exec_ext in '' $ac_executable_extensions; do
21447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21448     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21450     break 2
21451   fi
21452 done
21453 done
21454
21455   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21456   ;;
21457 esac
21458 fi
21459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21460
21461 if test -n "$PKG_CONFIG"; then
21462   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21463 echo "${ECHO_T}$PKG_CONFIG" >&6
21464 else
21465   echo "$as_me:$LINENO: result: no" >&5
21466 echo "${ECHO_T}no" >&6
21467 fi
21468
21469   fi
21470   if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
21471     have_gtk_doc=yes
21472   fi
21473
21474   gtk_doc_min_version=1.0
21475   if test "$have_gtk_doc" = yes; then
21476     echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
21477 echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6
21478     if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
21479       echo "$as_me:$LINENO: result: yes" >&5
21480 echo "${ECHO_T}yes" >&6
21481     else
21482       echo "$as_me:$LINENO: result: no" >&5
21483 echo "${ECHO_T}no" >&6
21484       have_gtk_doc=no
21485     fi
21486   fi
21487
21488   if test x$enable_gtk_doc = xyes; then
21489     if test "$have_gtk_doc" != yes; then
21490       enable_gtk_doc=no
21491     fi
21492   fi
21493
21494
21495
21496 if test x$enable_gtk_doc = xyes; then
21497   ENABLE_GTK_DOC_TRUE=
21498   ENABLE_GTK_DOC_FALSE='#'
21499 else
21500   ENABLE_GTK_DOC_TRUE='#'
21501   ENABLE_GTK_DOC_FALSE=
21502 fi
21503
21504
21505
21506 if test -n "$LIBTOOL"; then
21507   GTK_DOC_USE_LIBTOOL_TRUE=
21508   GTK_DOC_USE_LIBTOOL_FALSE='#'
21509 else
21510   GTK_DOC_USE_LIBTOOL_TRUE='#'
21511   GTK_DOC_USE_LIBTOOL_FALSE=
21512 fi
21513
21514
21515
21516 # Extract the first word of "doxygen", so it can be a program name with args.
21517 set dummy doxygen; ac_word=$2
21518 echo "$as_me:$LINENO: checking for $ac_word" >&5
21519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21520 if test "${ac_cv_prog_DOXYGEN_FOUND+set}" = set; then
21521   echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523   if test -n "$DOXYGEN_FOUND"; then
21524   ac_cv_prog_DOXYGEN_FOUND="$DOXYGEN_FOUND" # Let the user override the test.
21525 else
21526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21527 for as_dir in $PATH
21528 do
21529   IFS=$as_save_IFS
21530   test -z "$as_dir" && as_dir=.
21531   for ac_exec_ext in '' $ac_executable_extensions; do
21532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21533     ac_cv_prog_DOXYGEN_FOUND="yes"
21534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21535     break 2
21536   fi
21537 done
21538 done
21539
21540   test -z "$ac_cv_prog_DOXYGEN_FOUND" && ac_cv_prog_DOXYGEN_FOUND="no"
21541 fi
21542 fi
21543 DOXYGEN_FOUND=$ac_cv_prog_DOXYGEN_FOUND
21544 if test -n "$DOXYGEN_FOUND"; then
21545   echo "$as_me:$LINENO: result: $DOXYGEN_FOUND" >&5
21546 echo "${ECHO_T}$DOXYGEN_FOUND" >&6
21547 else
21548   echo "$as_me:$LINENO: result: no" >&5
21549 echo "${ECHO_T}no" >&6
21550 fi
21551
21552
21553
21554 if test "$DOXYGEN_FOUND" = "yes"; then
21555   HAVE_DOXYGEN_TRUE=
21556   HAVE_DOXYGEN_FALSE='#'
21557 else
21558   HAVE_DOXYGEN_TRUE='#'
21559   HAVE_DOXYGEN_FALSE=
21560 fi
21561
21562
21563 localedir=${datadir}/locale
21564 outomoduledir=${libdir}/outo
21565
21566
21567
21568
21569
21570 # Disable rebuild of glib-mkenum -generated source code:
21571 # Check whether --enable-rebuilds or --disable-rebuilds was given.
21572 if test "${enable_rebuilds+set}" = set; then
21573   enableval="$enable_rebuilds"
21574
21575 else
21576   enable_rebuilds=yes
21577 fi;
21578
21579 # define a MAINT-like variable REBUILD which is set if Perl
21580 # is found, so autogenerated sources can be rebuilt
21581 for ac_prog in perl5 perl
21582 do
21583   # Extract the first word of "$ac_prog", so it can be a program name with args.
21584 set dummy $ac_prog; ac_word=$2
21585 echo "$as_me:$LINENO: checking for $ac_word" >&5
21586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21587 if test "${ac_cv_prog_PERL+set}" = set; then
21588   echo $ECHO_N "(cached) $ECHO_C" >&6
21589 else
21590   if test -n "$PERL"; then
21591   ac_cv_prog_PERL="$PERL" # Let the user override the test.
21592 else
21593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21594 for as_dir in $PATH
21595 do
21596   IFS=$as_save_IFS
21597   test -z "$as_dir" && as_dir=.
21598   for ac_exec_ext in '' $ac_executable_extensions; do
21599   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21600     ac_cv_prog_PERL="$ac_prog"
21601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21602     break 2
21603   fi
21604 done
21605 done
21606
21607 fi
21608 fi
21609 PERL=$ac_cv_prog_PERL
21610 if test -n "$PERL"; then
21611   echo "$as_me:$LINENO: result: $PERL" >&5
21612 echo "${ECHO_T}$PERL" >&6
21613 else
21614   echo "$as_me:$LINENO: result: no" >&5
21615 echo "${ECHO_T}no" >&6
21616 fi
21617
21618   test -n "$PERL" && break
21619 done
21620
21621
21622 REBUILD=\#
21623 if test "x$enable_rebuilds" = "xyes" && \
21624      test -n "$PERL" && \
21625      $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 ; then
21626   REBUILD=
21627 fi
21628
21629
21630
21631                                                                                 ac_config_files="$ac_config_files Makefile hildon-widgets/Makefile timer/Makefile ut/Makefile po/Makefile po/porules.mk doc/Makefile hildon-libs.pc"
21632 cat >confcache <<\_ACEOF
21633 # This file is a shell script that caches the results of configure
21634 # tests run on this system so they can be shared between configure
21635 # scripts and configure runs, see configure's option --config-cache.
21636 # It is not useful on other systems.  If it contains results you don't
21637 # want to keep, you may remove or edit it.
21638 #
21639 # config.status only pays attention to the cache file if you give it
21640 # the --recheck option to rerun configure.
21641 #
21642 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21643 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21644 # following values.
21645
21646 _ACEOF
21647
21648 # The following way of writing the cache mishandles newlines in values,
21649 # but we know of no workaround that is simple, portable, and efficient.
21650 # So, don't put newlines in cache variables' values.
21651 # Ultrix sh set writes to stderr and can't be redirected directly,
21652 # and sets the high bit in the cache file unless we assign to the vars.
21653 {
21654   (set) 2>&1 |
21655     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21656     *ac_space=\ *)
21657       # `set' does not quote correctly, so add quotes (double-quote
21658       # substitution turns \\\\ into \\, and sed turns \\ into \).
21659       sed -n \
21660         "s/'/'\\\\''/g;
21661           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21662       ;;
21663     *)
21664       # `set' quotes correctly as required by POSIX, so do not add quotes.
21665       sed -n \
21666         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21667       ;;
21668     esac;
21669 } |
21670   sed '
21671      t clear
21672      : clear
21673      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21674      t end
21675      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21676      : end' >>confcache
21677 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21678   if test -w $cache_file; then
21679     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21680     cat confcache >$cache_file
21681   else
21682     echo "not updating unwritable cache $cache_file"
21683   fi
21684 fi
21685 rm -f confcache
21686
21687 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21688 # Let make expand exec_prefix.
21689 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21690
21691 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21692 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21693 # trailing colons and then remove the whole line if VPATH becomes empty
21694 # (actually we leave an empty line to preserve line numbers).
21695 if test "x$srcdir" = x.; then
21696   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21697 s/:*\$(srcdir):*/:/;
21698 s/:*\${srcdir}:*/:/;
21699 s/:*@srcdir@:*/:/;
21700 s/^\([^=]*=[     ]*\):*/\1/;
21701 s/:*$//;
21702 s/^[^=]*=[       ]*$//;
21703 }'
21704 fi
21705
21706 DEFS=-DHAVE_CONFIG_H
21707
21708 ac_libobjs=
21709 ac_ltlibobjs=
21710 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21711   # 1. Remove the extension, and $U if already installed.
21712   ac_i=`echo "$ac_i" |
21713          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21714   # 2. Add them.
21715   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21716   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21717 done
21718 LIBOBJS=$ac_libobjs
21719
21720 LTLIBOBJS=$ac_ltlibobjs
21721
21722
21723 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21724   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21725 Usually this means the macro was only invoked conditionally." >&5
21726 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21727 Usually this means the macro was only invoked conditionally." >&2;}
21728    { (exit 1); exit 1; }; }
21729 fi
21730 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21731   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21732 Usually this means the macro was only invoked conditionally." >&5
21733 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21734 Usually this means the macro was only invoked conditionally." >&2;}
21735    { (exit 1); exit 1; }; }
21736 fi
21737 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21738   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21739 Usually this means the macro was only invoked conditionally." >&5
21740 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21741 Usually this means the macro was only invoked conditionally." >&2;}
21742    { (exit 1); exit 1; }; }
21743 fi
21744 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
21745   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
21746 Usually this means the macro was only invoked conditionally." >&5
21747 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
21748 Usually this means the macro was only invoked conditionally." >&2;}
21749    { (exit 1); exit 1; }; }
21750 fi
21751 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
21752   { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21753 Usually this means the macro was only invoked conditionally." >&5
21754 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
21755 Usually this means the macro was only invoked conditionally." >&2;}
21756    { (exit 1); exit 1; }; }
21757 fi
21758 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
21759   { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined.
21760 Usually this means the macro was only invoked conditionally." >&5
21761 echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined.
21762 Usually this means the macro was only invoked conditionally." >&2;}
21763    { (exit 1); exit 1; }; }
21764 fi
21765
21766 : ${CONFIG_STATUS=./config.status}
21767 ac_clean_files_save=$ac_clean_files
21768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21769 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21770 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21771 cat >$CONFIG_STATUS <<_ACEOF
21772 #! $SHELL
21773 # Generated by $as_me.
21774 # Run this file to recreate the current configuration.
21775 # Compiler output produced by configure, useful for debugging
21776 # configure, is in config.log if it exists.
21777
21778 debug=false
21779 ac_cs_recheck=false
21780 ac_cs_silent=false
21781 SHELL=\${CONFIG_SHELL-$SHELL}
21782 _ACEOF
21783
21784 cat >>$CONFIG_STATUS <<\_ACEOF
21785 ## --------------------- ##
21786 ## M4sh Initialization.  ##
21787 ## --------------------- ##
21788
21789 # Be Bourne compatible
21790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21791   emulate sh
21792   NULLCMD=:
21793   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21794   # is contrary to our usage.  Disable this feature.
21795   alias -g '${1+"$@"}'='"$@"'
21796 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21797   set -o posix
21798 fi
21799 DUALCASE=1; export DUALCASE # for MKS sh
21800
21801 # Support unset when possible.
21802 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21803   as_unset=unset
21804 else
21805   as_unset=false
21806 fi
21807
21808
21809 # Work around bugs in pre-3.0 UWIN ksh.
21810 $as_unset ENV MAIL MAILPATH
21811 PS1='$ '
21812 PS2='> '
21813 PS4='+ '
21814
21815 # NLS nuisances.
21816 for as_var in \
21817   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21818   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21819   LC_TELEPHONE LC_TIME
21820 do
21821   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21822     eval $as_var=C; export $as_var
21823   else
21824     $as_unset $as_var
21825   fi
21826 done
21827
21828 # Required to use basename.
21829 if expr a : '\(a\)' >/dev/null 2>&1; then
21830   as_expr=expr
21831 else
21832   as_expr=false
21833 fi
21834
21835 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21836   as_basename=basename
21837 else
21838   as_basename=false
21839 fi
21840
21841
21842 # Name of the executable.
21843 as_me=`$as_basename "$0" ||
21844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21845          X"$0" : 'X\(//\)$' \| \
21846          X"$0" : 'X\(/\)$' \| \
21847          .     : '\(.\)' 2>/dev/null ||
21848 echo X/"$0" |
21849     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21850           /^X\/\(\/\/\)$/{ s//\1/; q; }
21851           /^X\/\(\/\).*/{ s//\1/; q; }
21852           s/.*/./; q'`
21853
21854
21855 # PATH needs CR, and LINENO needs CR and PATH.
21856 # Avoid depending upon Character Ranges.
21857 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21858 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21859 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21860 as_cr_digits='0123456789'
21861 as_cr_alnum=$as_cr_Letters$as_cr_digits
21862
21863 # The user is always right.
21864 if test "${PATH_SEPARATOR+set}" != set; then
21865   echo "#! /bin/sh" >conf$$.sh
21866   echo  "exit 0"   >>conf$$.sh
21867   chmod +x conf$$.sh
21868   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21869     PATH_SEPARATOR=';'
21870   else
21871     PATH_SEPARATOR=:
21872   fi
21873   rm -f conf$$.sh
21874 fi
21875
21876
21877   as_lineno_1=$LINENO
21878   as_lineno_2=$LINENO
21879   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21880   test "x$as_lineno_1" != "x$as_lineno_2" &&
21881   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21882   # Find who we are.  Look in the path if we contain no path at all
21883   # relative or not.
21884   case $0 in
21885     *[\\/]* ) as_myself=$0 ;;
21886     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21887 for as_dir in $PATH
21888 do
21889   IFS=$as_save_IFS
21890   test -z "$as_dir" && as_dir=.
21891   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21892 done
21893
21894        ;;
21895   esac
21896   # We did not find ourselves, most probably we were run as `sh COMMAND'
21897   # in which case we are not to be found in the path.
21898   if test "x$as_myself" = x; then
21899     as_myself=$0
21900   fi
21901   if test ! -f "$as_myself"; then
21902     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21903 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21904    { (exit 1); exit 1; }; }
21905   fi
21906   case $CONFIG_SHELL in
21907   '')
21908     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21909 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21910 do
21911   IFS=$as_save_IFS
21912   test -z "$as_dir" && as_dir=.
21913   for as_base in sh bash ksh sh5; do
21914          case $as_dir in
21915          /*)
21916            if ("$as_dir/$as_base" -c '
21917   as_lineno_1=$LINENO
21918   as_lineno_2=$LINENO
21919   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21920   test "x$as_lineno_1" != "x$as_lineno_2" &&
21921   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21922              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21923              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21924              CONFIG_SHELL=$as_dir/$as_base
21925              export CONFIG_SHELL
21926              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21927            fi;;
21928          esac
21929        done
21930 done
21931 ;;
21932   esac
21933
21934   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21935   # uniformly replaced by the line number.  The first 'sed' inserts a
21936   # line-number line before each line; the second 'sed' does the real
21937   # work.  The second script uses 'N' to pair each line-number line
21938   # with the numbered line, and appends trailing '-' during
21939   # substitution so that $LINENO is not a special case at line end.
21940   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21941   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21942   sed '=' <$as_myself |
21943     sed '
21944       N
21945       s,$,-,
21946       : loop
21947       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21948       t loop
21949       s,-$,,
21950       s,^['$as_cr_digits']*\n,,
21951     ' >$as_me.lineno &&
21952   chmod +x $as_me.lineno ||
21953     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21954 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21955    { (exit 1); exit 1; }; }
21956
21957   # Don't try to exec as it changes $[0], causing all sort of problems
21958   # (the dirname of $[0] is not the place where we might find the
21959   # original and so on.  Autoconf is especially sensible to this).
21960   . ./$as_me.lineno
21961   # Exit status is that of the last command.
21962   exit
21963 }
21964
21965
21966 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21967   *c*,-n*) ECHO_N= ECHO_C='
21968 ' ECHO_T='      ' ;;
21969   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21970   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21971 esac
21972
21973 if expr a : '\(a\)' >/dev/null 2>&1; then
21974   as_expr=expr
21975 else
21976   as_expr=false
21977 fi
21978
21979 rm -f conf$$ conf$$.exe conf$$.file
21980 echo >conf$$.file
21981 if ln -s conf$$.file conf$$ 2>/dev/null; then
21982   # We could just check for DJGPP; but this test a) works b) is more generic
21983   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21984   if test -f conf$$.exe; then
21985     # Don't use ln at all; we don't have any links
21986     as_ln_s='cp -p'
21987   else
21988     as_ln_s='ln -s'
21989   fi
21990 elif ln conf$$.file conf$$ 2>/dev/null; then
21991   as_ln_s=ln
21992 else
21993   as_ln_s='cp -p'
21994 fi
21995 rm -f conf$$ conf$$.exe conf$$.file
21996
21997 if mkdir -p . 2>/dev/null; then
21998   as_mkdir_p=:
21999 else
22000   test -d ./-p && rmdir ./-p
22001   as_mkdir_p=false
22002 fi
22003
22004 as_executable_p="test -f"
22005
22006 # Sed expression to map a string onto a valid CPP name.
22007 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22008
22009 # Sed expression to map a string onto a valid variable name.
22010 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22011
22012
22013 # IFS
22014 # We need space, tab and new line, in precisely that order.
22015 as_nl='
22016 '
22017 IFS="   $as_nl"
22018
22019 # CDPATH.
22020 $as_unset CDPATH
22021
22022 exec 6>&1
22023
22024 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22025 # report actual input values of CONFIG_FILES etc. instead of their
22026 # values after options handling.  Logging --version etc. is OK.
22027 exec 5>>config.log
22028 {
22029   echo
22030   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22031 ## Running $as_me. ##
22032 _ASBOX
22033 } >&5
22034 cat >&5 <<_CSEOF
22035
22036 This file was extended by $as_me, which was
22037 generated by GNU Autoconf 2.59.  Invocation command line was
22038
22039   CONFIG_FILES    = $CONFIG_FILES
22040   CONFIG_HEADERS  = $CONFIG_HEADERS
22041   CONFIG_LINKS    = $CONFIG_LINKS
22042   CONFIG_COMMANDS = $CONFIG_COMMANDS
22043   $ $0 $@
22044
22045 _CSEOF
22046 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22047 echo >&5
22048 _ACEOF
22049
22050 # Files that config.status was made for.
22051 if test -n "$ac_config_files"; then
22052   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22053 fi
22054
22055 if test -n "$ac_config_headers"; then
22056   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22057 fi
22058
22059 if test -n "$ac_config_links"; then
22060   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22061 fi
22062
22063 if test -n "$ac_config_commands"; then
22064   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22065 fi
22066
22067 cat >>$CONFIG_STATUS <<\_ACEOF
22068
22069 ac_cs_usage="\
22070 \`$as_me' instantiates files from templates according to the
22071 current configuration.
22072
22073 Usage: $0 [OPTIONS] [FILE]...
22074
22075   -h, --help       print this help, then exit
22076   -V, --version    print version number, then exit
22077   -q, --quiet      do not print progress messages
22078   -d, --debug      don't remove temporary files
22079       --recheck    update $as_me by reconfiguring in the same conditions
22080   --file=FILE[:TEMPLATE]
22081                    instantiate the configuration file FILE
22082   --header=FILE[:TEMPLATE]
22083                    instantiate the configuration header FILE
22084
22085 Configuration files:
22086 $config_files
22087
22088 Configuration headers:
22089 $config_headers
22090
22091 Configuration commands:
22092 $config_commands
22093
22094 Report bugs to <bug-autoconf@gnu.org>."
22095 _ACEOF
22096
22097 cat >>$CONFIG_STATUS <<_ACEOF
22098 ac_cs_version="\\
22099 config.status
22100 configured by $0, generated by GNU Autoconf 2.59,
22101   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22102
22103 Copyright (C) 2003 Free Software Foundation, Inc.
22104 This config.status script is free software; the Free Software Foundation
22105 gives unlimited permission to copy, distribute and modify it."
22106 srcdir=$srcdir
22107 INSTALL="$INSTALL"
22108 _ACEOF
22109
22110 cat >>$CONFIG_STATUS <<\_ACEOF
22111 # If no file are specified by the user, then we need to provide default
22112 # value.  By we need to know if files were specified by the user.
22113 ac_need_defaults=:
22114 while test $# != 0
22115 do
22116   case $1 in
22117   --*=*)
22118     ac_option=`expr "x$1" : 'x\([^=]*\)='`
22119     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22120     ac_shift=:
22121     ;;
22122   -*)
22123     ac_option=$1
22124     ac_optarg=$2
22125     ac_shift=shift
22126     ;;
22127   *) # This is not an option, so the user has probably given explicit
22128      # arguments.
22129      ac_option=$1
22130      ac_need_defaults=false;;
22131   esac
22132
22133   case $ac_option in
22134   # Handling of the options.
22135 _ACEOF
22136 cat >>$CONFIG_STATUS <<\_ACEOF
22137   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22138     ac_cs_recheck=: ;;
22139   --version | --vers* | -V )
22140     echo "$ac_cs_version"; exit 0 ;;
22141   --he | --h)
22142     # Conflict between --help and --header
22143     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22144 Try \`$0 --help' for more information." >&5
22145 echo "$as_me: error: ambiguous option: $1
22146 Try \`$0 --help' for more information." >&2;}
22147    { (exit 1); exit 1; }; };;
22148   --help | --hel | -h )
22149     echo "$ac_cs_usage"; exit 0 ;;
22150   --debug | --d* | -d )
22151     debug=: ;;
22152   --file | --fil | --fi | --f )
22153     $ac_shift
22154     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22155     ac_need_defaults=false;;
22156   --header | --heade | --head | --hea )
22157     $ac_shift
22158     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22159     ac_need_defaults=false;;
22160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22161   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22162     ac_cs_silent=: ;;
22163
22164   # This is an error.
22165   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22166 Try \`$0 --help' for more information." >&5
22167 echo "$as_me: error: unrecognized option: $1
22168 Try \`$0 --help' for more information." >&2;}
22169    { (exit 1); exit 1; }; } ;;
22170
22171   *) ac_config_targets="$ac_config_targets $1" ;;
22172
22173   esac
22174   shift
22175 done
22176
22177 ac_configure_extra_args=
22178
22179 if $ac_cs_silent; then
22180   exec 6>/dev/null
22181   ac_configure_extra_args="$ac_configure_extra_args --silent"
22182 fi
22183
22184 _ACEOF
22185 cat >>$CONFIG_STATUS <<_ACEOF
22186 if \$ac_cs_recheck; then
22187   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22188   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22189 fi
22190
22191 _ACEOF
22192
22193 cat >>$CONFIG_STATUS <<_ACEOF
22194 #
22195 # INIT-COMMANDS section.
22196 #
22197
22198 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22199
22200
22201 _ACEOF
22202
22203
22204
22205 cat >>$CONFIG_STATUS <<\_ACEOF
22206 for ac_config_target in $ac_config_targets
22207 do
22208   case "$ac_config_target" in
22209   # Handling of arguments.
22210   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22211   "hildon-widgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES hildon-widgets/Makefile" ;;
22212   "timer/Makefile" ) CONFIG_FILES="$CONFIG_FILES timer/Makefile" ;;
22213   "ut/Makefile" ) CONFIG_FILES="$CONFIG_FILES ut/Makefile" ;;
22214   "po/Makefile" ) CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
22215   "po/porules.mk" ) CONFIG_FILES="$CONFIG_FILES po/porules.mk" ;;
22216   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22217   "hildon-libs.pc" ) CONFIG_FILES="$CONFIG_FILES hildon-libs.pc" ;;
22218   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22219   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
22220   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22221   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22222 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22223    { (exit 1); exit 1; }; };;
22224   esac
22225 done
22226
22227 # If the user did not use the arguments to specify the items to instantiate,
22228 # then the envvar interface is used.  Set only those that are not.
22229 # We use the long form for the default assignment because of an extremely
22230 # bizarre bug on SunOS 4.1.3.
22231 if $ac_need_defaults; then
22232   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22233   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22234   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22235 fi
22236
22237 # Have a temporary directory for convenience.  Make it in the build tree
22238 # simply because there is no reason to put it here, and in addition,
22239 # creating and moving files from /tmp can sometimes cause problems.
22240 # Create a temporary directory, and hook for its removal unless debugging.
22241 $debug ||
22242 {
22243   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22244   trap '{ (exit 1); exit 1; }' 1 2 13 15
22245 }
22246
22247 # Create a (secure) tmp directory for tmp files.
22248
22249 {
22250   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22251   test -n "$tmp" && test -d "$tmp"
22252 }  ||
22253 {
22254   tmp=./confstat$$-$RANDOM
22255   (umask 077 && mkdir $tmp)
22256 } ||
22257 {
22258    echo "$me: cannot create a temporary directory in ." >&2
22259    { (exit 1); exit 1; }
22260 }
22261
22262 _ACEOF
22263
22264 cat >>$CONFIG_STATUS <<_ACEOF
22265
22266 #
22267 # CONFIG_FILES section.
22268 #
22269
22270 # No need to generate the scripts if there are no CONFIG_FILES.
22271 # This happens for instance when ./config.status config.h
22272 if test -n "\$CONFIG_FILES"; then
22273   # Protect against being on the right side of a sed subst in config.status.
22274   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22275    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22276 s,@SHELL@,$SHELL,;t t
22277 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22278 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22279 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22280 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22281 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22282 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22283 s,@exec_prefix@,$exec_prefix,;t t
22284 s,@prefix@,$prefix,;t t
22285 s,@program_transform_name@,$program_transform_name,;t t
22286 s,@bindir@,$bindir,;t t
22287 s,@sbindir@,$sbindir,;t t
22288 s,@libexecdir@,$libexecdir,;t t
22289 s,@datadir@,$datadir,;t t
22290 s,@sysconfdir@,$sysconfdir,;t t
22291 s,@sharedstatedir@,$sharedstatedir,;t t
22292 s,@localstatedir@,$localstatedir,;t t
22293 s,@libdir@,$libdir,;t t
22294 s,@includedir@,$includedir,;t t
22295 s,@oldincludedir@,$oldincludedir,;t t
22296 s,@infodir@,$infodir,;t t
22297 s,@mandir@,$mandir,;t t
22298 s,@build_alias@,$build_alias,;t t
22299 s,@host_alias@,$host_alias,;t t
22300 s,@target_alias@,$target_alias,;t t
22301 s,@DEFS@,$DEFS,;t t
22302 s,@ECHO_C@,$ECHO_C,;t t
22303 s,@ECHO_N@,$ECHO_N,;t t
22304 s,@ECHO_T@,$ECHO_T,;t t
22305 s,@LIBS@,$LIBS,;t t
22306 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22307 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22308 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22309 s,@CYGPATH_W@,$CYGPATH_W,;t t
22310 s,@PACKAGE@,$PACKAGE,;t t
22311 s,@VERSION@,$VERSION,;t t
22312 s,@ACLOCAL@,$ACLOCAL,;t t
22313 s,@AUTOCONF@,$AUTOCONF,;t t
22314 s,@AUTOMAKE@,$AUTOMAKE,;t t
22315 s,@AUTOHEADER@,$AUTOHEADER,;t t
22316 s,@MAKEINFO@,$MAKEINFO,;t t
22317 s,@AMTAR@,$AMTAR,;t t
22318 s,@install_sh@,$install_sh,;t t
22319 s,@STRIP@,$STRIP,;t t
22320 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22321 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22322 s,@AWK@,$AWK,;t t
22323 s,@SET_MAKE@,$SET_MAKE,;t t
22324 s,@am__leading_dot@,$am__leading_dot,;t t
22325 s,@build@,$build,;t t
22326 s,@build_cpu@,$build_cpu,;t t
22327 s,@build_vendor@,$build_vendor,;t t
22328 s,@build_os@,$build_os,;t t
22329 s,@host@,$host,;t t
22330 s,@host_cpu@,$host_cpu,;t t
22331 s,@host_vendor@,$host_vendor,;t t
22332 s,@host_os@,$host_os,;t t
22333 s,@CC@,$CC,;t t
22334 s,@CFLAGS@,$CFLAGS,;t t
22335 s,@LDFLAGS@,$LDFLAGS,;t t
22336 s,@CPPFLAGS@,$CPPFLAGS,;t t
22337 s,@ac_ct_CC@,$ac_ct_CC,;t t
22338 s,@EXEEXT@,$EXEEXT,;t t
22339 s,@OBJEXT@,$OBJEXT,;t t
22340 s,@DEPDIR@,$DEPDIR,;t t
22341 s,@am__include@,$am__include,;t t
22342 s,@am__quote@,$am__quote,;t t
22343 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22344 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22345 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22346 s,@CCDEPMODE@,$CCDEPMODE,;t t
22347 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22348 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22349 s,@CPP@,$CPP,;t t
22350 s,@EGREP@,$EGREP,;t t
22351 s,@LN_S@,$LN_S,;t t
22352 s,@ECHO@,$ECHO,;t t
22353 s,@AR@,$AR,;t t
22354 s,@ac_ct_AR@,$ac_ct_AR,;t t
22355 s,@RANLIB@,$RANLIB,;t t
22356 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22357 s,@CXX@,$CXX,;t t
22358 s,@CXXFLAGS@,$CXXFLAGS,;t t
22359 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22360 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22361 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22362 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22363 s,@CXXCPP@,$CXXCPP,;t t
22364 s,@F77@,$F77,;t t
22365 s,@FFLAGS@,$FFLAGS,;t t
22366 s,@ac_ct_F77@,$ac_ct_F77,;t t
22367 s,@LIBTOOL@,$LIBTOOL,;t t
22368 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22369 s,@OUTO_CFLAGS@,$OUTO_CFLAGS,;t t
22370 s,@OUTO_LIBS@,$OUTO_LIBS,;t t
22371 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
22372 s,@GTK_LIBS@,$GTK_LIBS,;t t
22373 s,@GTK_VERSION@,$GTK_VERSION,;t t
22374 s,@ESD_CFLAGS@,$ESD_CFLAGS,;t t
22375 s,@ESD_LIBS@,$ESD_LIBS,;t t
22376 s,@GNOME_VFS_CFLAGS@,$GNOME_VFS_CFLAGS,;t t
22377 s,@GNOME_VFS_LIBS@,$GNOME_VFS_LIBS,;t t
22378 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
22379 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
22380 s,@LIBMB_CFLAGS@,$LIBMB_CFLAGS,;t t
22381 s,@LIBMB_LIBS@,$LIBMB_LIBS,;t t
22382 s,@ALL_LINGUAS@,$ALL_LINGUAS,;t t
22383 s,@USE_NLS@,$USE_NLS,;t t
22384 s,@MSGFMT@,$MSGFMT,;t t
22385 s,@GMSGFMT@,$GMSGFMT,;t t
22386 s,@XGETTEXT@,$XGETTEXT,;t t
22387 s,@CATALOGS@,$CATALOGS,;t t
22388 s,@CATOBJEXT@,$CATOBJEXT,;t t
22389 s,@DATADIRNAME@,$DATADIRNAME,;t t
22390 s,@GMOFILES@,$GMOFILES,;t t
22391 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22392 s,@INTLLIBS@,$INTLLIBS,;t t
22393 s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
22394 s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
22395 s,@POFILES@,$POFILES,;t t
22396 s,@POSUB@,$POSUB,;t t
22397 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22398 s,@HTML_DIR@,$HTML_DIR,;t t
22399 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
22400 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
22401 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
22402 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
22403 s,@DOXYGEN_FOUND@,$DOXYGEN_FOUND,;t t
22404 s,@HAVE_DOXYGEN_TRUE@,$HAVE_DOXYGEN_TRUE,;t t
22405 s,@HAVE_DOXYGEN_FALSE@,$HAVE_DOXYGEN_FALSE,;t t
22406 s,@localedir@,$localedir,;t t
22407 s,@outomoduledir@,$outomoduledir,;t t
22408 s,@PERL@,$PERL,;t t
22409 s,@REBUILD@,$REBUILD,;t t
22410 s,@LIBOBJS@,$LIBOBJS,;t t
22411 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22412 CEOF
22413
22414 _ACEOF
22415
22416   cat >>$CONFIG_STATUS <<\_ACEOF
22417   # Split the substitutions into bite-sized pieces for seds with
22418   # small command number limits, like on Digital OSF/1 and HP-UX.
22419   ac_max_sed_lines=48
22420   ac_sed_frag=1 # Number of current file.
22421   ac_beg=1 # First line for current file.
22422   ac_end=$ac_max_sed_lines # Line after last line for current file.
22423   ac_more_lines=:
22424   ac_sed_cmds=
22425   while $ac_more_lines; do
22426     if test $ac_beg -gt 1; then
22427       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22428     else
22429       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22430     fi
22431     if test ! -s $tmp/subs.frag; then
22432       ac_more_lines=false
22433     else
22434       # The purpose of the label and of the branching condition is to
22435       # speed up the sed processing (if there are no `@' at all, there
22436       # is no need to browse any of the substitutions).
22437       # These are the two extra sed commands mentioned above.
22438       (echo ':t
22439   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22440       if test -z "$ac_sed_cmds"; then
22441         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22442       else
22443         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22444       fi
22445       ac_sed_frag=`expr $ac_sed_frag + 1`
22446       ac_beg=$ac_end
22447       ac_end=`expr $ac_end + $ac_max_sed_lines`
22448     fi
22449   done
22450   if test -z "$ac_sed_cmds"; then
22451     ac_sed_cmds=cat
22452   fi
22453 fi # test -n "$CONFIG_FILES"
22454
22455 _ACEOF
22456 cat >>$CONFIG_STATUS <<\_ACEOF
22457 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22458   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22459   case $ac_file in
22460   - | *:- | *:-:* ) # input from stdin
22461         cat >$tmp/stdin
22462         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22463         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22464   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22465         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22466   * )   ac_file_in=$ac_file.in ;;
22467   esac
22468
22469   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22470   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22472          X"$ac_file" : 'X\(//\)[^/]' \| \
22473          X"$ac_file" : 'X\(//\)$' \| \
22474          X"$ac_file" : 'X\(/\)' \| \
22475          .     : '\(.\)' 2>/dev/null ||
22476 echo X"$ac_file" |
22477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22478           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22479           /^X\(\/\/\)$/{ s//\1/; q; }
22480           /^X\(\/\).*/{ s//\1/; q; }
22481           s/.*/./; q'`
22482   { if $as_mkdir_p; then
22483     mkdir -p "$ac_dir"
22484   else
22485     as_dir="$ac_dir"
22486     as_dirs=
22487     while test ! -d "$as_dir"; do
22488       as_dirs="$as_dir $as_dirs"
22489       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22490 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491          X"$as_dir" : 'X\(//\)[^/]' \| \
22492          X"$as_dir" : 'X\(//\)$' \| \
22493          X"$as_dir" : 'X\(/\)' \| \
22494          .     : '\(.\)' 2>/dev/null ||
22495 echo X"$as_dir" |
22496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22497           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22498           /^X\(\/\/\)$/{ s//\1/; q; }
22499           /^X\(\/\).*/{ s//\1/; q; }
22500           s/.*/./; q'`
22501     done
22502     test ! -n "$as_dirs" || mkdir $as_dirs
22503   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22504 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22505    { (exit 1); exit 1; }; }; }
22506
22507   ac_builddir=.
22508
22509 if test "$ac_dir" != .; then
22510   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22511   # A "../" for each directory in $ac_dir_suffix.
22512   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22513 else
22514   ac_dir_suffix= ac_top_builddir=
22515 fi
22516
22517 case $srcdir in
22518   .)  # No --srcdir option.  We are building in place.
22519     ac_srcdir=.
22520     if test -z "$ac_top_builddir"; then
22521        ac_top_srcdir=.
22522     else
22523        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22524     fi ;;
22525   [\\/]* | ?:[\\/]* )  # Absolute path.
22526     ac_srcdir=$srcdir$ac_dir_suffix;
22527     ac_top_srcdir=$srcdir ;;
22528   *) # Relative path.
22529     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22530     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22531 esac
22532
22533 # Do not use `cd foo && pwd` to compute absolute paths, because
22534 # the directories may not exist.
22535 case `pwd` in
22536 .) ac_abs_builddir="$ac_dir";;
22537 *)
22538   case "$ac_dir" in
22539   .) ac_abs_builddir=`pwd`;;
22540   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22541   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22542   esac;;
22543 esac
22544 case $ac_abs_builddir in
22545 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22546 *)
22547   case ${ac_top_builddir}. in
22548   .) ac_abs_top_builddir=$ac_abs_builddir;;
22549   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22550   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22551   esac;;
22552 esac
22553 case $ac_abs_builddir in
22554 .) ac_abs_srcdir=$ac_srcdir;;
22555 *)
22556   case $ac_srcdir in
22557   .) ac_abs_srcdir=$ac_abs_builddir;;
22558   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22559   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22560   esac;;
22561 esac
22562 case $ac_abs_builddir in
22563 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22564 *)
22565   case $ac_top_srcdir in
22566   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22567   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22568   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22569   esac;;
22570 esac
22571
22572
22573   case $INSTALL in
22574   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22575   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22576   esac
22577
22578   # Let's still pretend it is `configure' which instantiates (i.e., don't
22579   # use $as_me), people would be surprised to read:
22580   #    /* config.h.  Generated by config.status.  */
22581   if test x"$ac_file" = x-; then
22582     configure_input=
22583   else
22584     configure_input="$ac_file.  "
22585   fi
22586   configure_input=$configure_input"Generated from `echo $ac_file_in |
22587                                      sed 's,.*/,,'` by configure."
22588
22589   # First look for the input files in the build tree, otherwise in the
22590   # src tree.
22591   ac_file_inputs=`IFS=:
22592     for f in $ac_file_in; do
22593       case $f in
22594       -) echo $tmp/stdin ;;
22595       [\\/$]*)
22596          # Absolute (can't be DOS-style, as IFS=:)
22597          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22598 echo "$as_me: error: cannot find input file: $f" >&2;}
22599    { (exit 1); exit 1; }; }
22600          echo "$f";;
22601       *) # Relative
22602          if test -f "$f"; then
22603            # Build tree
22604            echo "$f"
22605          elif test -f "$srcdir/$f"; then
22606            # Source tree
22607            echo "$srcdir/$f"
22608          else
22609            # /dev/null tree
22610            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22611 echo "$as_me: error: cannot find input file: $f" >&2;}
22612    { (exit 1); exit 1; }; }
22613          fi;;
22614       esac
22615     done` || { (exit 1); exit 1; }
22616
22617   if test x"$ac_file" != x-; then
22618     { echo "$as_me:$LINENO: creating $ac_file" >&5
22619 echo "$as_me: creating $ac_file" >&6;}
22620     rm -f "$ac_file"
22621   fi
22622 _ACEOF
22623 cat >>$CONFIG_STATUS <<_ACEOF
22624   sed "$ac_vpsub
22625 $extrasub
22626 _ACEOF
22627 cat >>$CONFIG_STATUS <<\_ACEOF
22628 :t
22629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22630 s,@configure_input@,$configure_input,;t t
22631 s,@srcdir@,$ac_srcdir,;t t
22632 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22633 s,@top_srcdir@,$ac_top_srcdir,;t t
22634 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22635 s,@builddir@,$ac_builddir,;t t
22636 s,@abs_builddir@,$ac_abs_builddir,;t t
22637 s,@top_builddir@,$ac_top_builddir,;t t
22638 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22639 s,@INSTALL@,$ac_INSTALL,;t t
22640 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22641   rm -f $tmp/stdin
22642   if test x"$ac_file" != x-; then
22643     mv $tmp/out $ac_file
22644   else
22645     cat $tmp/out
22646     rm -f $tmp/out
22647   fi
22648
22649 done
22650 _ACEOF
22651 cat >>$CONFIG_STATUS <<\_ACEOF
22652
22653 #
22654 # CONFIG_HEADER section.
22655 #
22656
22657 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22658 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22659 #
22660 # ac_d sets the value in "#define NAME VALUE" lines.
22661 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22662 ac_dB='[         ].*$,\1#\2'
22663 ac_dC=' '
22664 ac_dD=',;t'
22665 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22666 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22667 ac_uB='$,\1#\2define\3'
22668 ac_uC=' '
22669 ac_uD=',;t'
22670
22671 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22672   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22673   case $ac_file in
22674   - | *:- | *:-:* ) # input from stdin
22675         cat >$tmp/stdin
22676         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22677         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22678   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22679         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22680   * )   ac_file_in=$ac_file.in ;;
22681   esac
22682
22683   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22684 echo "$as_me: creating $ac_file" >&6;}
22685
22686   # First look for the input files in the build tree, otherwise in the
22687   # src tree.
22688   ac_file_inputs=`IFS=:
22689     for f in $ac_file_in; do
22690       case $f in
22691       -) echo $tmp/stdin ;;
22692       [\\/$]*)
22693          # Absolute (can't be DOS-style, as IFS=:)
22694          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22695 echo "$as_me: error: cannot find input file: $f" >&2;}
22696    { (exit 1); exit 1; }; }
22697          # Do quote $f, to prevent DOS paths from being IFS'd.
22698          echo "$f";;
22699       *) # Relative
22700          if test -f "$f"; then
22701            # Build tree
22702            echo "$f"
22703          elif test -f "$srcdir/$f"; then
22704            # Source tree
22705            echo "$srcdir/$f"
22706          else
22707            # /dev/null tree
22708            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22709 echo "$as_me: error: cannot find input file: $f" >&2;}
22710    { (exit 1); exit 1; }; }
22711          fi;;
22712       esac
22713     done` || { (exit 1); exit 1; }
22714   # Remove the trailing spaces.
22715   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22716
22717 _ACEOF
22718
22719 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22720 # `conftest.undefs', that substitutes the proper values into
22721 # config.h.in to produce config.h.  The first handles `#define'
22722 # templates, and the second `#undef' templates.
22723 # And first: Protect against being on the right side of a sed subst in
22724 # config.status.  Protect against being in an unquoted here document
22725 # in config.status.
22726 rm -f conftest.defines conftest.undefs
22727 # Using a here document instead of a string reduces the quoting nightmare.
22728 # Putting comments in sed scripts is not portable.
22729 #
22730 # `end' is used to avoid that the second main sed command (meant for
22731 # 0-ary CPP macros) applies to n-ary macro definitions.
22732 # See the Autoconf documentation for `clear'.
22733 cat >confdef2sed.sed <<\_ACEOF
22734 s/[\\&,]/\\&/g
22735 s,[\\$`],\\&,g
22736 t clear
22737 : clear
22738 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22739 t end
22740 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22741 : end
22742 _ACEOF
22743 # If some macros were called several times there might be several times
22744 # the same #defines, which is useless.  Nevertheless, we may not want to
22745 # sort them, since we want the *last* AC-DEFINE to be honored.
22746 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22747 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22748 rm -f confdef2sed.sed
22749
22750 # This sed command replaces #undef with comments.  This is necessary, for
22751 # example, in the case of _POSIX_SOURCE, which is predefined and required
22752 # on some systems where configure will not decide to define it.
22753 cat >>conftest.undefs <<\_ACEOF
22754 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22755 _ACEOF
22756
22757 # Break up conftest.defines because some shells have a limit on the size
22758 # of here documents, and old seds have small limits too (100 cmds).
22759 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22760 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22761 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22762 echo '  :' >>$CONFIG_STATUS
22763 rm -f conftest.tail
22764 while grep . conftest.defines >/dev/null
22765 do
22766   # Write a limited-size here document to $tmp/defines.sed.
22767   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22768   # Speed up: don't consider the non `#define' lines.
22769   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22770   # Work around the forget-to-reset-the-flag bug.
22771   echo 't clr' >>$CONFIG_STATUS
22772   echo ': clr' >>$CONFIG_STATUS
22773   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22774   echo 'CEOF
22775   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22776   rm -f $tmp/in
22777   mv $tmp/out $tmp/in
22778 ' >>$CONFIG_STATUS
22779   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22780   rm -f conftest.defines
22781   mv conftest.tail conftest.defines
22782 done
22783 rm -f conftest.defines
22784 echo '  fi # grep' >>$CONFIG_STATUS
22785 echo >>$CONFIG_STATUS
22786
22787 # Break up conftest.undefs because some shells have a limit on the size
22788 # of here documents, and old seds have small limits too (100 cmds).
22789 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22790 rm -f conftest.tail
22791 while grep . conftest.undefs >/dev/null
22792 do
22793   # Write a limited-size here document to $tmp/undefs.sed.
22794   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22795   # Speed up: don't consider the non `#undef'
22796   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22797   # Work around the forget-to-reset-the-flag bug.
22798   echo 't clr' >>$CONFIG_STATUS
22799   echo ': clr' >>$CONFIG_STATUS
22800   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22801   echo 'CEOF
22802   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22803   rm -f $tmp/in
22804   mv $tmp/out $tmp/in
22805 ' >>$CONFIG_STATUS
22806   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22807   rm -f conftest.undefs
22808   mv conftest.tail conftest.undefs
22809 done
22810 rm -f conftest.undefs
22811
22812 cat >>$CONFIG_STATUS <<\_ACEOF
22813   # Let's still pretend it is `configure' which instantiates (i.e., don't
22814   # use $as_me), people would be surprised to read:
22815   #    /* config.h.  Generated by config.status.  */
22816   if test x"$ac_file" = x-; then
22817     echo "/* Generated by configure.  */" >$tmp/config.h
22818   else
22819     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22820   fi
22821   cat $tmp/in >>$tmp/config.h
22822   rm -f $tmp/in
22823   if test x"$ac_file" != x-; then
22824     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22825       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22826 echo "$as_me: $ac_file is unchanged" >&6;}
22827     else
22828       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22829 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22830          X"$ac_file" : 'X\(//\)[^/]' \| \
22831          X"$ac_file" : 'X\(//\)$' \| \
22832          X"$ac_file" : 'X\(/\)' \| \
22833          .     : '\(.\)' 2>/dev/null ||
22834 echo X"$ac_file" |
22835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22836           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22837           /^X\(\/\/\)$/{ s//\1/; q; }
22838           /^X\(\/\).*/{ s//\1/; q; }
22839           s/.*/./; q'`
22840       { if $as_mkdir_p; then
22841     mkdir -p "$ac_dir"
22842   else
22843     as_dir="$ac_dir"
22844     as_dirs=
22845     while test ! -d "$as_dir"; do
22846       as_dirs="$as_dir $as_dirs"
22847       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22849          X"$as_dir" : 'X\(//\)[^/]' \| \
22850          X"$as_dir" : 'X\(//\)$' \| \
22851          X"$as_dir" : 'X\(/\)' \| \
22852          .     : '\(.\)' 2>/dev/null ||
22853 echo X"$as_dir" |
22854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22855           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22856           /^X\(\/\/\)$/{ s//\1/; q; }
22857           /^X\(\/\).*/{ s//\1/; q; }
22858           s/.*/./; q'`
22859     done
22860     test ! -n "$as_dirs" || mkdir $as_dirs
22861   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22863    { (exit 1); exit 1; }; }; }
22864
22865       rm -f $ac_file
22866       mv $tmp/config.h $ac_file
22867     fi
22868   else
22869     cat $tmp/config.h
22870     rm -f $tmp/config.h
22871   fi
22872 # Compute $ac_file's index in $config_headers.
22873 _am_stamp_count=1
22874 for _am_header in $config_headers :; do
22875   case $_am_header in
22876     $ac_file | $ac_file:* )
22877       break ;;
22878     * )
22879       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22880   esac
22881 done
22882 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22883 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22884          X$ac_file : 'X\(//\)[^/]' \| \
22885          X$ac_file : 'X\(//\)$' \| \
22886          X$ac_file : 'X\(/\)' \| \
22887          .     : '\(.\)' 2>/dev/null ||
22888 echo X$ac_file |
22889     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22890           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22891           /^X\(\/\/\)$/{ s//\1/; q; }
22892           /^X\(\/\).*/{ s//\1/; q; }
22893           s/.*/./; q'`/stamp-h$_am_stamp_count
22894 done
22895 _ACEOF
22896 cat >>$CONFIG_STATUS <<\_ACEOF
22897
22898 #
22899 # CONFIG_COMMANDS section.
22900 #
22901 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22902   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22903   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22904   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22905 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22906          X"$ac_dest" : 'X\(//\)[^/]' \| \
22907          X"$ac_dest" : 'X\(//\)$' \| \
22908          X"$ac_dest" : 'X\(/\)' \| \
22909          .     : '\(.\)' 2>/dev/null ||
22910 echo X"$ac_dest" |
22911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22912           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22913           /^X\(\/\/\)$/{ s//\1/; q; }
22914           /^X\(\/\).*/{ s//\1/; q; }
22915           s/.*/./; q'`
22916   { if $as_mkdir_p; then
22917     mkdir -p "$ac_dir"
22918   else
22919     as_dir="$ac_dir"
22920     as_dirs=
22921     while test ! -d "$as_dir"; do
22922       as_dirs="$as_dir $as_dirs"
22923       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22925          X"$as_dir" : 'X\(//\)[^/]' \| \
22926          X"$as_dir" : 'X\(//\)$' \| \
22927          X"$as_dir" : 'X\(/\)' \| \
22928          .     : '\(.\)' 2>/dev/null ||
22929 echo X"$as_dir" |
22930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22931           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22932           /^X\(\/\/\)$/{ s//\1/; q; }
22933           /^X\(\/\).*/{ s//\1/; q; }
22934           s/.*/./; q'`
22935     done
22936     test ! -n "$as_dirs" || mkdir $as_dirs
22937   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22938 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22939    { (exit 1); exit 1; }; }; }
22940
22941   ac_builddir=.
22942
22943 if test "$ac_dir" != .; then
22944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22945   # A "../" for each directory in $ac_dir_suffix.
22946   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22947 else
22948   ac_dir_suffix= ac_top_builddir=
22949 fi
22950
22951 case $srcdir in
22952   .)  # No --srcdir option.  We are building in place.
22953     ac_srcdir=.
22954     if test -z "$ac_top_builddir"; then
22955        ac_top_srcdir=.
22956     else
22957        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22958     fi ;;
22959   [\\/]* | ?:[\\/]* )  # Absolute path.
22960     ac_srcdir=$srcdir$ac_dir_suffix;
22961     ac_top_srcdir=$srcdir ;;
22962   *) # Relative path.
22963     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22964     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22965 esac
22966
22967 # Do not use `cd foo && pwd` to compute absolute paths, because
22968 # the directories may not exist.
22969 case `pwd` in
22970 .) ac_abs_builddir="$ac_dir";;
22971 *)
22972   case "$ac_dir" in
22973   .) ac_abs_builddir=`pwd`;;
22974   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22975   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22976   esac;;
22977 esac
22978 case $ac_abs_builddir in
22979 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22980 *)
22981   case ${ac_top_builddir}. in
22982   .) ac_abs_top_builddir=$ac_abs_builddir;;
22983   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22984   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22985   esac;;
22986 esac
22987 case $ac_abs_builddir in
22988 .) ac_abs_srcdir=$ac_srcdir;;
22989 *)
22990   case $ac_srcdir in
22991   .) ac_abs_srcdir=$ac_abs_builddir;;
22992   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22993   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22994   esac;;
22995 esac
22996 case $ac_abs_builddir in
22997 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22998 *)
22999   case $ac_top_srcdir in
23000   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23001   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23002   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23003   esac;;
23004 esac
23005
23006
23007   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23008 echo "$as_me: executing $ac_dest commands" >&6;}
23009   case $ac_dest in
23010     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23011   # Strip MF so we end up with the name of the file.
23012   mf=`echo "$mf" | sed -e 's/:.*$//'`
23013   # Check whether this is an Automake generated Makefile or not.
23014   # We used to match only the files named `Makefile.in', but
23015   # some people rename them; so instead we look at the file content.
23016   # Grep'ing the first line is not enough: some people post-process
23017   # each Makefile.in and add a new line on top of each file to say so.
23018   # So let's grep whole file.
23019   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23020     dirpart=`(dirname "$mf") 2>/dev/null ||
23021 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23022          X"$mf" : 'X\(//\)[^/]' \| \
23023          X"$mf" : 'X\(//\)$' \| \
23024          X"$mf" : 'X\(/\)' \| \
23025          .     : '\(.\)' 2>/dev/null ||
23026 echo X"$mf" |
23027     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23028           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23029           /^X\(\/\/\)$/{ s//\1/; q; }
23030           /^X\(\/\).*/{ s//\1/; q; }
23031           s/.*/./; q'`
23032   else
23033     continue
23034   fi
23035   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23036   # Extract the definition of DEP_FILES from the Makefile without
23037   # running `make'.
23038   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23039   test -z "$DEPDIR" && continue
23040   # When using ansi2knr, U may be empty or an underscore; expand it
23041   U=`sed -n -e '/^U = / s///p' < "$mf"`
23042   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23043   # We invoke sed twice because it is the simplest approach to
23044   # changing $(DEPDIR) to its actual value in the expansion.
23045   for file in `sed -n -e '
23046     /^DEP_FILES = .*\\\\$/ {
23047       s/^DEP_FILES = //
23048       :loop
23049         s/\\\\$//
23050         p
23051         n
23052         /\\\\$/ b loop
23053       p
23054     }
23055     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23056        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23057     # Make sure the directory exists.
23058     test -f "$dirpart/$file" && continue
23059     fdir=`(dirname "$file") 2>/dev/null ||
23060 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23061          X"$file" : 'X\(//\)[^/]' \| \
23062          X"$file" : 'X\(//\)$' \| \
23063          X"$file" : 'X\(/\)' \| \
23064          .     : '\(.\)' 2>/dev/null ||
23065 echo X"$file" |
23066     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23067           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23068           /^X\(\/\/\)$/{ s//\1/; q; }
23069           /^X\(\/\).*/{ s//\1/; q; }
23070           s/.*/./; q'`
23071     { if $as_mkdir_p; then
23072     mkdir -p $dirpart/$fdir
23073   else
23074     as_dir=$dirpart/$fdir
23075     as_dirs=
23076     while test ! -d "$as_dir"; do
23077       as_dirs="$as_dir $as_dirs"
23078       as_dir=`(dirname "$as_dir") 2>/dev/null ||
23079 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23080          X"$as_dir" : 'X\(//\)[^/]' \| \
23081          X"$as_dir" : 'X\(//\)$' \| \
23082          X"$as_dir" : 'X\(/\)' \| \
23083          .     : '\(.\)' 2>/dev/null ||
23084 echo X"$as_dir" |
23085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23087           /^X\(\/\/\)$/{ s//\1/; q; }
23088           /^X\(\/\).*/{ s//\1/; q; }
23089           s/.*/./; q'`
23090     done
23091     test ! -n "$as_dirs" || mkdir $as_dirs
23092   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23093 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23094    { (exit 1); exit 1; }; }; }
23095
23096     # echo "creating $dirpart/$file"
23097     echo '# dummy' > "$dirpart/$file"
23098   done
23099 done
23100  ;;
23101     default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
23102         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
23103       esac ;;
23104   esac
23105 done
23106 _ACEOF
23107
23108 cat >>$CONFIG_STATUS <<\_ACEOF
23109
23110 { (exit 0); exit 0; }
23111 _ACEOF
23112 chmod +x $CONFIG_STATUS
23113 ac_clean_files=$ac_clean_files_save
23114
23115
23116 # configure is writing to config.log, and then calls config.status.
23117 # config.status does its own redirection, appending to config.log.
23118 # Unfortunately, on DOS this fails, as config.log is still kept open
23119 # by configure, so config.status won't be able to write to it; its
23120 # output is simply discarded.  So we exec the FD to /dev/null,
23121 # effectively closing config.log, so it can be properly (re)opened and
23122 # appended to by config.status.  When coming back to configure, we
23123 # need to make the FD available again.
23124 if test "$no_create" != yes; then
23125   ac_cs_success=:
23126   ac_config_status_args=
23127   test "$silent" = yes &&
23128     ac_config_status_args="$ac_config_status_args --quiet"
23129   exec 5>/dev/null
23130   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23131   exec 5>>config.log
23132   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23133   # would make configure fail if this is the last instruction.
23134   $ac_cs_success || { (exit 1); exit 1; }
23135 fi
23136