1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for cdemo 0.1.
4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='cdemo'
425PACKAGE_TARNAME='cdemo'
426PACKAGE_VERSION='0.1'
427PACKAGE_STRING='cdemo 0.1'
428PACKAGE_BUGREPORT='bug-libtool@gnu.org'
429
430ac_unique_file="main.c"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LIBM LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures cdemo 0.1 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015System types:
1016  --build=BUILD     configure for building on BUILD [guessed]
1017  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1018_ACEOF
1019fi
1020
1021if test -n "$ac_init_help"; then
1022  case $ac_init_help in
1023     short | recursive ) echo "Configuration of cdemo 0.1:";;
1024   esac
1025  cat <<\_ACEOF
1026
1027Optional Features:
1028  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030  --disable-dependency-tracking  speeds up one-time build
1031  --enable-dependency-tracking   do not reject slow dependency extractors
1032  --enable-shared[=PKGS]
1033                          build shared libraries [default=yes]
1034  --enable-static[=PKGS]
1035                          build static libraries [default=yes]
1036  --enable-fast-install[=PKGS]
1037                          optimize for fast installation [default=yes]
1038  --disable-libtool-lock  avoid locking (might break parallel builds)
1039
1040Optional Packages:
1041  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1044  --with-pic              try to use only PIC/non-PIC objects [default=use
1045                          both]
1046  --with-tags[=TAGS]
1047                          include additional configurations [automatic]
1048
1049Some influential environment variables:
1050  CC          C compiler command
1051  CFLAGS      C compiler flags
1052  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1053              nonstandard directory <lib dir>
1054  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1055              headers in a nonstandard directory <include dir>
1056  CPP         C preprocessor
1057  CXX         C++ compiler command
1058  CXXFLAGS    C++ compiler flags
1059  CXXCPP      C++ preprocessor
1060  F77         Fortran 77 compiler command
1061  FFLAGS      Fortran 77 compiler flags
1062
1063Use these variables to override the choices made by `configure' or to help
1064it to find libraries and programs with nonstandard names/locations.
1065
1066Report bugs to <bug-libtool@gnu.org>.
1067_ACEOF
1068fi
1069
1070if test "$ac_init_help" = "recursive"; then
1071  # If there are subdirs, report their specific --help.
1072  ac_popdir=`pwd`
1073  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1074    test -d $ac_dir || continue
1075    ac_builddir=.
1076
1077if test "$ac_dir" != .; then
1078  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1079  # A "../" for each directory in $ac_dir_suffix.
1080  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1081else
1082  ac_dir_suffix= ac_top_builddir=
1083fi
1084
1085case $srcdir in
1086  .)  # No --srcdir option.  We are building in place.
1087    ac_srcdir=.
1088    if test -z "$ac_top_builddir"; then
1089       ac_top_srcdir=.
1090    else
1091       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1092    fi ;;
1093  [\\/]* | ?:[\\/]* )  # Absolute path.
1094    ac_srcdir=$srcdir$ac_dir_suffix;
1095    ac_top_srcdir=$srcdir ;;
1096  *) # Relative path.
1097    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1098    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1099esac
1100
1101# Do not use `cd foo && pwd` to compute absolute paths, because
1102# the directories may not exist.
1103case `pwd` in
1104.) ac_abs_builddir="$ac_dir";;
1105*)
1106  case "$ac_dir" in
1107  .) ac_abs_builddir=`pwd`;;
1108  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1109  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1110  esac;;
1111esac
1112case $ac_abs_builddir in
1113.) ac_abs_top_builddir=${ac_top_builddir}.;;
1114*)
1115  case ${ac_top_builddir}. in
1116  .) ac_abs_top_builddir=$ac_abs_builddir;;
1117  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1118  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1119  esac;;
1120esac
1121case $ac_abs_builddir in
1122.) ac_abs_srcdir=$ac_srcdir;;
1123*)
1124  case $ac_srcdir in
1125  .) ac_abs_srcdir=$ac_abs_builddir;;
1126  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1127  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1128  esac;;
1129esac
1130case $ac_abs_builddir in
1131.) ac_abs_top_srcdir=$ac_top_srcdir;;
1132*)
1133  case $ac_top_srcdir in
1134  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1135  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1136  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1137  esac;;
1138esac
1139
1140    cd $ac_dir
1141    # Check for guested configure; otherwise get Cygnus style configure.
1142    if test -f $ac_srcdir/configure.gnu; then
1143      echo
1144      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1145    elif test -f $ac_srcdir/configure; then
1146      echo
1147      $SHELL $ac_srcdir/configure  --help=recursive
1148    elif test -f $ac_srcdir/configure.ac ||
1149	   test -f $ac_srcdir/configure.in; then
1150      echo
1151      $ac_configure --help
1152    else
1153      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1154    fi
1155    cd $ac_popdir
1156  done
1157fi
1158
1159test -n "$ac_init_help" && exit 0
1160if $ac_init_version; then
1161  cat <<\_ACEOF
1162cdemo configure 0.1
1163generated by GNU Autoconf 2.59
1164
1165Copyright (C) 2003 Free Software Foundation, Inc.
1166This configure script is free software; the Free Software Foundation
1167gives unlimited permission to copy, distribute and modify it.
1168_ACEOF
1169  exit 0
1170fi
1171exec 5>config.log
1172cat >&5 <<_ACEOF
1173This file contains any messages produced by compilers while
1174running configure, to aid debugging if configure makes a mistake.
1175
1176It was created by cdemo $as_me 0.1, which was
1177generated by GNU Autoconf 2.59.  Invocation command line was
1178
1179  $ $0 $@
1180
1181_ACEOF
1182{
1183cat <<_ASUNAME
1184## --------- ##
1185## Platform. ##
1186## --------- ##
1187
1188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1189uname -m = `(uname -m) 2>/dev/null || echo unknown`
1190uname -r = `(uname -r) 2>/dev/null || echo unknown`
1191uname -s = `(uname -s) 2>/dev/null || echo unknown`
1192uname -v = `(uname -v) 2>/dev/null || echo unknown`
1193
1194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1195/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1196
1197/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1198/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1200hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1201/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1202/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1203/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1204
1205_ASUNAME
1206
1207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1208for as_dir in $PATH
1209do
1210  IFS=$as_save_IFS
1211  test -z "$as_dir" && as_dir=.
1212  echo "PATH: $as_dir"
1213done
1214
1215} >&5
1216
1217cat >&5 <<_ACEOF
1218
1219
1220## ----------- ##
1221## Core tests. ##
1222## ----------- ##
1223
1224_ACEOF
1225
1226
1227# Keep a trace of the command line.
1228# Strip out --no-create and --no-recursion so they do not pile up.
1229# Strip out --silent because we don't want to record it for future runs.
1230# Also quote any args containing shell meta-characters.
1231# Make two passes to allow for proper duplicate-argument suppression.
1232ac_configure_args=
1233ac_configure_args0=
1234ac_configure_args1=
1235ac_sep=
1236ac_must_keep_next=false
1237for ac_pass in 1 2
1238do
1239  for ac_arg
1240  do
1241    case $ac_arg in
1242    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1243    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244    | -silent | --silent | --silen | --sile | --sil)
1245      continue ;;
1246    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1248    esac
1249    case $ac_pass in
1250    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1251    2)
1252      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1253      if test $ac_must_keep_next = true; then
1254	ac_must_keep_next=false # Got value, back to normal.
1255      else
1256	case $ac_arg in
1257	  *=* | --config-cache | -C | -disable-* | --disable-* \
1258	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1259	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1260	  | -with-* | --with-* | -without-* | --without-* | --x)
1261	    case "$ac_configure_args0 " in
1262	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1263	    esac
1264	    ;;
1265	  -* ) ac_must_keep_next=true ;;
1266	esac
1267      fi
1268      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1269      # Get rid of the leading space.
1270      ac_sep=" "
1271      ;;
1272    esac
1273  done
1274done
1275$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1276$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1277
1278# When interrupted or exit'd, cleanup temporary files, and complete
1279# config.log.  We remove comments because anyway the quotes in there
1280# would cause problems or look ugly.
1281# WARNING: Be sure not to use single quotes in there, as some shells,
1282# such as our DU 5.0 friend, will then `close' the trap.
1283trap 'exit_status=$?
1284  # Save into config.log some information that might help in debugging.
1285  {
1286    echo
1287
1288    cat <<\_ASBOX
1289## ---------------- ##
1290## Cache variables. ##
1291## ---------------- ##
1292_ASBOX
1293    echo
1294    # The following way of writing the cache mishandles newlines in values,
1295{
1296  (set) 2>&1 |
1297    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1298    *ac_space=\ *)
1299      sed -n \
1300	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1301	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1302      ;;
1303    *)
1304      sed -n \
1305	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1306      ;;
1307    esac;
1308}
1309    echo
1310
1311    cat <<\_ASBOX
1312## ----------------- ##
1313## Output variables. ##
1314## ----------------- ##
1315_ASBOX
1316    echo
1317    for ac_var in $ac_subst_vars
1318    do
1319      eval ac_val=$`echo $ac_var`
1320      echo "$ac_var='"'"'$ac_val'"'"'"
1321    done | sort
1322    echo
1323
1324    if test -n "$ac_subst_files"; then
1325      cat <<\_ASBOX
1326## ------------- ##
1327## Output files. ##
1328## ------------- ##
1329_ASBOX
1330      echo
1331      for ac_var in $ac_subst_files
1332      do
1333	eval ac_val=$`echo $ac_var`
1334	echo "$ac_var='"'"'$ac_val'"'"'"
1335      done | sort
1336      echo
1337    fi
1338
1339    if test -s confdefs.h; then
1340      cat <<\_ASBOX
1341## ----------- ##
1342## confdefs.h. ##
1343## ----------- ##
1344_ASBOX
1345      echo
1346      sed "/^$/d" confdefs.h | sort
1347      echo
1348    fi
1349    test "$ac_signal" != 0 &&
1350      echo "$as_me: caught signal $ac_signal"
1351    echo "$as_me: exit $exit_status"
1352  } >&5
1353  rm -f core *.core &&
1354  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1355    exit $exit_status
1356     ' 0
1357for ac_signal in 1 2 13 15; do
1358  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1359done
1360ac_signal=0
1361
1362# confdefs.h avoids OS command line length limits that DEFS can exceed.
1363rm -rf conftest* confdefs.h
1364# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1365echo >confdefs.h
1366
1367# Predefined preprocessor variables.
1368
1369cat >>confdefs.h <<_ACEOF
1370#define PACKAGE_NAME "$PACKAGE_NAME"
1371_ACEOF
1372
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_VERSION "$PACKAGE_VERSION"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_STRING "$PACKAGE_STRING"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1391_ACEOF
1392
1393
1394# Let the site file select an alternate cache file if it wants to.
1395# Prefer explicitly selected file to automatically selected ones.
1396if test -z "$CONFIG_SITE"; then
1397  if test "x$prefix" != xNONE; then
1398    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1399  else
1400    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1401  fi
1402fi
1403for ac_site_file in $CONFIG_SITE; do
1404  if test -r "$ac_site_file"; then
1405    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1406echo "$as_me: loading site script $ac_site_file" >&6;}
1407    sed 's/^/| /' "$ac_site_file" >&5
1408    . "$ac_site_file"
1409  fi
1410done
1411
1412if test -r "$cache_file"; then
1413  # Some versions of bash will fail to source /dev/null (special
1414  # files actually), so we avoid doing that.
1415  if test -f "$cache_file"; then
1416    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1417echo "$as_me: loading cache $cache_file" >&6;}
1418    case $cache_file in
1419      [\\/]* | ?:[\\/]* ) . $cache_file;;
1420      *)                      . ./$cache_file;;
1421    esac
1422  fi
1423else
1424  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1425echo "$as_me: creating cache $cache_file" >&6;}
1426  >$cache_file
1427fi
1428
1429# Check that the precious variables saved in the cache have kept the same
1430# value.
1431ac_cache_corrupted=false
1432for ac_var in `(set) 2>&1 |
1433	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1434  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1435  eval ac_new_set=\$ac_env_${ac_var}_set
1436  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1437  eval ac_new_val="\$ac_env_${ac_var}_value"
1438  case $ac_old_set,$ac_new_set in
1439    set,)
1440      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1441echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1442      ac_cache_corrupted=: ;;
1443    ,set)
1444      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1445echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1446      ac_cache_corrupted=: ;;
1447    ,);;
1448    *)
1449      if test "x$ac_old_val" != "x$ac_new_val"; then
1450	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1451echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1452	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1453echo "$as_me:   former value:  $ac_old_val" >&2;}
1454	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1455echo "$as_me:   current value: $ac_new_val" >&2;}
1456	ac_cache_corrupted=:
1457      fi;;
1458  esac
1459  # Pass precious variables to config.status.
1460  if test "$ac_new_set" = set; then
1461    case $ac_new_val in
1462    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1463      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1464    *) ac_arg=$ac_var=$ac_new_val ;;
1465    esac
1466    case " $ac_configure_args " in
1467      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1468      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1469    esac
1470  fi
1471done
1472if $ac_cache_corrupted; then
1473  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1474echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1475  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1476echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1477   { (exit 1); exit 1; }; }
1478fi
1479
1480ac_ext=c
1481ac_cpp='$CPP $CPPFLAGS'
1482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1484ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515## ------------------------ ##
1516## Automake Initialisation. ##
1517## ------------------------ ##
1518am__api_version="1.9"
1519ac_aux_dir=
1520for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1521  if test -f $ac_dir/install-sh; then
1522    ac_aux_dir=$ac_dir
1523    ac_install_sh="$ac_aux_dir/install-sh -c"
1524    break
1525  elif test -f $ac_dir/install.sh; then
1526    ac_aux_dir=$ac_dir
1527    ac_install_sh="$ac_aux_dir/install.sh -c"
1528    break
1529  elif test -f $ac_dir/shtool; then
1530    ac_aux_dir=$ac_dir
1531    ac_install_sh="$ac_aux_dir/shtool install -c"
1532    break
1533  fi
1534done
1535if test -z "$ac_aux_dir"; then
1536  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1538   { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
1544# Find a good install program.  We prefer a C program (faster),
1545# so one script is as good as another.  But avoid the broken or
1546# incompatible versions:
1547# SysV /etc/install, /usr/sbin/install
1548# SunOS /usr/etc/install
1549# IRIX /sbin/install
1550# AIX /bin/install
1551# AmigaOS /C/install, which installs bootblocks on floppy discs
1552# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1553# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1554# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1555# OS/2's system install, which has a completely different semantic
1556# ./install, which can be erroneously created by make from ./install.sh.
1557echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1558echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1559if test -z "$INSTALL"; then
1560if test "${ac_cv_path_install+set}" = set; then
1561  echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH
1565do
1566  IFS=$as_save_IFS
1567  test -z "$as_dir" && as_dir=.
1568  # Account for people who put trailing slashes in PATH elements.
1569case $as_dir/ in
1570  ./ | .// | /cC/* | \
1571  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1572  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1573  /usr/ucb/* ) ;;
1574  *)
1575    # OSF1 and SCO ODT 3.0 have their own names for install.
1576    # Don't use installbsd from OSF since it installs stuff as root
1577    # by default.
1578    for ac_prog in ginstall scoinst install; do
1579      for ac_exec_ext in '' $ac_executable_extensions; do
1580	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1581	  if test $ac_prog = install &&
1582	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1583	    # AIX install.  It has an incompatible calling convention.
1584	    :
1585	  elif test $ac_prog = install &&
1586	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1587	    # program-specific install script used by HP pwplus--don't use.
1588	    :
1589	  else
1590	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1591	    break 3
1592	  fi
1593	fi
1594      done
1595    done
1596    ;;
1597esac
1598done
1599
1600
1601fi
1602  if test "${ac_cv_path_install+set}" = set; then
1603    INSTALL=$ac_cv_path_install
1604  else
1605    # As a last resort, use the slow shell script.  We don't cache a
1606    # path for INSTALL within a source directory, because that will
1607    # break other packages using the cache if that directory is
1608    # removed, or if the path is relative.
1609    INSTALL=$ac_install_sh
1610  fi
1611fi
1612echo "$as_me:$LINENO: result: $INSTALL" >&5
1613echo "${ECHO_T}$INSTALL" >&6
1614
1615# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1616# It thinks the first close brace ends the variable substitution.
1617test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1618
1619test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1620
1621test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1622
1623echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1624echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1625# Just in case
1626sleep 1
1627echo timestamp > conftest.file
1628# Do `set' in a subshell so we don't clobber the current shell's
1629# arguments.  Must try -L first in case configure is actually a
1630# symlink; some systems play weird games with the mod time of symlinks
1631# (eg FreeBSD returns the mod time of the symlink's containing
1632# directory).
1633if (
1634   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1635   if test "$*" = "X"; then
1636      # -L didn't work.
1637      set X `ls -t $srcdir/configure conftest.file`
1638   fi
1639   rm -f conftest.file
1640   if test "$*" != "X $srcdir/configure conftest.file" \
1641      && test "$*" != "X conftest.file $srcdir/configure"; then
1642
1643      # If neither matched, then we have a broken ls.  This can happen
1644      # if, for instance, CONFIG_SHELL is bash and it inherits a
1645      # broken ls alias from the environment.  This has actually
1646      # happened.  Such a system could not be considered "sane".
1647      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1648alias in your environment" >&5
1649echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1650alias in your environment" >&2;}
1651   { (exit 1); exit 1; }; }
1652   fi
1653
1654   test "$2" = conftest.file
1655   )
1656then
1657   # Ok.
1658   :
1659else
1660   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1661Check your system clock" >&5
1662echo "$as_me: error: newly created file is older than distributed files!
1663Check your system clock" >&2;}
1664   { (exit 1); exit 1; }; }
1665fi
1666echo "$as_me:$LINENO: result: yes" >&5
1667echo "${ECHO_T}yes" >&6
1668test "$program_prefix" != NONE &&
1669  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1670# Use a double $ so make ignores it.
1671test "$program_suffix" != NONE &&
1672  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1673# Double any \ or $.  echo might interpret backslashes.
1674# By default was `s,x,x', remove it if useless.
1675cat <<\_ACEOF >conftest.sed
1676s/[\\$]/&&/g;s/;s,x,x,$//
1677_ACEOF
1678program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1679rm conftest.sed
1680
1681# expand $ac_aux_dir to an absolute path
1682am_aux_dir=`cd $ac_aux_dir && pwd`
1683
1684test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1685# Use eval to expand $SHELL
1686if eval "$MISSING --run true"; then
1687  am_missing_run="$MISSING --run "
1688else
1689  am_missing_run=
1690  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1691echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1692fi
1693
1694if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1695  # We used to keeping the `.' as first argument, in order to
1696  # allow $(mkdir_p) to be used without argument.  As in
1697  #   $(mkdir_p) $(somedir)
1698  # where $(somedir) is conditionally defined.  However this is wrong
1699  # for two reasons:
1700  #  1. if the package is installed by a user who cannot write `.'
1701  #     make install will fail,
1702  #  2. the above comment should most certainly read
1703  #     $(mkdir_p) $(DESTDIR)$(somedir)
1704  #     so it does not work when $(somedir) is undefined and
1705  #     $(DESTDIR) is not.
1706  #  To support the latter case, we have to write
1707  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1708  #  so the `.' trick is pointless.
1709  mkdir_p='mkdir -p --'
1710else
1711  # On NextStep and OpenStep, the `mkdir' command does not
1712  # recognize any option.  It will interpret all options as
1713  # directories to create, and then abort because `.' already
1714  # exists.
1715  for d in ./-p ./--version;
1716  do
1717    test -d $d && rmdir $d
1718  done
1719  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1720  if test -f "$ac_aux_dir/mkinstalldirs"; then
1721    mkdir_p='$(mkinstalldirs)'
1722  else
1723    mkdir_p='$(install_sh) -d'
1724  fi
1725fi
1726
1727for ac_prog in gawk mawk nawk awk
1728do
1729  # Extract the first word of "$ac_prog", so it can be a program name with args.
1730set dummy $ac_prog; ac_word=$2
1731echo "$as_me:$LINENO: checking for $ac_word" >&5
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_AWK+set}" = set; then
1734  echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736  if test -n "$AWK"; then
1737  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1738else
1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740for as_dir in $PATH
1741do
1742  IFS=$as_save_IFS
1743  test -z "$as_dir" && as_dir=.
1744  for ac_exec_ext in '' $ac_executable_extensions; do
1745  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746    ac_cv_prog_AWK="$ac_prog"
1747    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748    break 2
1749  fi
1750done
1751done
1752
1753fi
1754fi
1755AWK=$ac_cv_prog_AWK
1756if test -n "$AWK"; then
1757  echo "$as_me:$LINENO: result: $AWK" >&5
1758echo "${ECHO_T}$AWK" >&6
1759else
1760  echo "$as_me:$LINENO: result: no" >&5
1761echo "${ECHO_T}no" >&6
1762fi
1763
1764  test -n "$AWK" && break
1765done
1766
1767echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1768echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1769set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1770if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1771  echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773  cat >conftest.make <<\_ACEOF
1774all:
1775	@echo 'ac_maketemp="$(MAKE)"'
1776_ACEOF
1777# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1778eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1779if test -n "$ac_maketemp"; then
1780  eval ac_cv_prog_make_${ac_make}_set=yes
1781else
1782  eval ac_cv_prog_make_${ac_make}_set=no
1783fi
1784rm -f conftest.make
1785fi
1786if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1787  echo "$as_me:$LINENO: result: yes" >&5
1788echo "${ECHO_T}yes" >&6
1789  SET_MAKE=
1790else
1791  echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793  SET_MAKE="MAKE=${MAKE-make}"
1794fi
1795
1796rm -rf .tst 2>/dev/null
1797mkdir .tst 2>/dev/null
1798if test -d .tst; then
1799  am__leading_dot=.
1800else
1801  am__leading_dot=_
1802fi
1803rmdir .tst 2>/dev/null
1804
1805# test to see if srcdir already configured
1806if test "`cd $srcdir && pwd`" != "`pwd`" &&
1807   test -f $srcdir/config.status; then
1808  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1810   { (exit 1); exit 1; }; }
1811fi
1812
1813# test whether we have cygpath
1814if test -z "$CYGPATH_W"; then
1815  if (cygpath --version) >/dev/null 2>/dev/null; then
1816    CYGPATH_W='cygpath -w'
1817  else
1818    CYGPATH_W=echo
1819  fi
1820fi
1821
1822
1823# Define the identity of the package.
1824 PACKAGE=cdemo
1825 VERSION=0.1
1826
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE "$PACKAGE"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define VERSION "$VERSION"
1835_ACEOF
1836
1837# Some tools Automake needs.
1838
1839ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1840
1841
1842AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1843
1844
1845AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1846
1847
1848AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1849
1850
1851MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1852
1853install_sh=${install_sh-"$am_aux_dir/install-sh"}
1854
1855# Installed binaries are usually stripped using `strip' when the user
1856# run `make install-strip'.  However `strip' might not be the right
1857# tool to use in cross-compilation environments, therefore Automake
1858# will honor the `STRIP' environment variable to overrule this program.
1859if test "$cross_compiling" != no; then
1860  if test -n "$ac_tool_prefix"; then
1861  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1862set dummy ${ac_tool_prefix}strip; ac_word=$2
1863echo "$as_me:$LINENO: checking for $ac_word" >&5
1864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1865if test "${ac_cv_prog_STRIP+set}" = set; then
1866  echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868  if test -n "$STRIP"; then
1869  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1870else
1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872for as_dir in $PATH
1873do
1874  IFS=$as_save_IFS
1875  test -z "$as_dir" && as_dir=.
1876  for ac_exec_ext in '' $ac_executable_extensions; do
1877  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1878    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1879    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880    break 2
1881  fi
1882done
1883done
1884
1885fi
1886fi
1887STRIP=$ac_cv_prog_STRIP
1888if test -n "$STRIP"; then
1889  echo "$as_me:$LINENO: result: $STRIP" >&5
1890echo "${ECHO_T}$STRIP" >&6
1891else
1892  echo "$as_me:$LINENO: result: no" >&5
1893echo "${ECHO_T}no" >&6
1894fi
1895
1896fi
1897if test -z "$ac_cv_prog_STRIP"; then
1898  ac_ct_STRIP=$STRIP
1899  # Extract the first word of "strip", so it can be a program name with args.
1900set dummy strip; ac_word=$2
1901echo "$as_me:$LINENO: checking for $ac_word" >&5
1902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1904  echo $ECHO_N "(cached) $ECHO_C" >&6
1905else
1906  if test -n "$ac_ct_STRIP"; then
1907  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1908else
1909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910for as_dir in $PATH
1911do
1912  IFS=$as_save_IFS
1913  test -z "$as_dir" && as_dir=.
1914  for ac_exec_ext in '' $ac_executable_extensions; do
1915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1916    ac_cv_prog_ac_ct_STRIP="strip"
1917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918    break 2
1919  fi
1920done
1921done
1922
1923  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1924fi
1925fi
1926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1927if test -n "$ac_ct_STRIP"; then
1928  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1929echo "${ECHO_T}$ac_ct_STRIP" >&6
1930else
1931  echo "$as_me:$LINENO: result: no" >&5
1932echo "${ECHO_T}no" >&6
1933fi
1934
1935  STRIP=$ac_ct_STRIP
1936else
1937  STRIP="$ac_cv_prog_STRIP"
1938fi
1939
1940fi
1941INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1942
1943# We need awk for the "check" target.  The system "awk" is bad on
1944# some platforms.
1945# Always define AMTAR for backward compatibility.
1946
1947AMTAR=${AMTAR-"${am_missing_run}tar"}
1948
1949am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1950
1951
1952
1953
1954
1955
1956
1957## ------------------ ##
1958## C compiler checks. ##
1959## ------------------ ##
1960ac_ext=c
1961ac_cpp='$CPP $CPPFLAGS'
1962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965if test -n "$ac_tool_prefix"; then
1966  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_CC+set}" = set; then
1971  echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973  if test -n "$CC"; then
1974  ac_cv_prog_CC="$CC" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981  for ac_exec_ext in '' $ac_executable_extensions; do
1982  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985    break 2
1986  fi
1987done
1988done
1989
1990fi
1991fi
1992CC=$ac_cv_prog_CC
1993if test -n "$CC"; then
1994  echo "$as_me:$LINENO: result: $CC" >&5
1995echo "${ECHO_T}$CC" >&6
1996else
1997  echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001fi
2002if test -z "$ac_cv_prog_CC"; then
2003  ac_ct_CC=$CC
2004  # Extract the first word of "gcc", so it can be a program name with args.
2005set dummy gcc; ac_word=$2
2006echo "$as_me:$LINENO: checking for $ac_word" >&5
2007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2009  echo $ECHO_N "(cached) $ECHO_C" >&6
2010else
2011  if test -n "$ac_ct_CC"; then
2012  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2013else
2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015for as_dir in $PATH
2016do
2017  IFS=$as_save_IFS
2018  test -z "$as_dir" && as_dir=.
2019  for ac_exec_ext in '' $ac_executable_extensions; do
2020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021    ac_cv_prog_ac_ct_CC="gcc"
2022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023    break 2
2024  fi
2025done
2026done
2027
2028fi
2029fi
2030ac_ct_CC=$ac_cv_prog_ac_ct_CC
2031if test -n "$ac_ct_CC"; then
2032  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2033echo "${ECHO_T}$ac_ct_CC" >&6
2034else
2035  echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6
2037fi
2038
2039  CC=$ac_ct_CC
2040else
2041  CC="$ac_cv_prog_CC"
2042fi
2043
2044if test -z "$CC"; then
2045  if test -n "$ac_tool_prefix"; then
2046  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}cc; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_CC="${ac_tool_prefix}cc"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074  echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077  echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081fi
2082if test -z "$ac_cv_prog_CC"; then
2083  ac_ct_CC=$CC
2084  # Extract the first word of "cc", so it can be a program name with args.
2085set dummy cc; ac_word=$2
2086echo "$as_me:$LINENO: checking for $ac_word" >&5
2087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2088if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089  echo $ECHO_N "(cached) $ECHO_C" >&6
2090else
2091  if test -n "$ac_ct_CC"; then
2092  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093else
2094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095for as_dir in $PATH
2096do
2097  IFS=$as_save_IFS
2098  test -z "$as_dir" && as_dir=.
2099  for ac_exec_ext in '' $ac_executable_extensions; do
2100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2101    ac_cv_prog_ac_ct_CC="cc"
2102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103    break 2
2104  fi
2105done
2106done
2107
2108fi
2109fi
2110ac_ct_CC=$ac_cv_prog_ac_ct_CC
2111if test -n "$ac_ct_CC"; then
2112  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2113echo "${ECHO_T}$ac_ct_CC" >&6
2114else
2115  echo "$as_me:$LINENO: result: no" >&5
2116echo "${ECHO_T}no" >&6
2117fi
2118
2119  CC=$ac_ct_CC
2120else
2121  CC="$ac_cv_prog_CC"
2122fi
2123
2124fi
2125if test -z "$CC"; then
2126  # Extract the first word of "cc", so it can be a program name with args.
2127set dummy cc; ac_word=$2
2128echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_CC+set}" = set; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  if test -n "$CC"; then
2134  ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
2136  ac_prog_rejected=no
2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH
2139do
2140  IFS=$as_save_IFS
2141  test -z "$as_dir" && as_dir=.
2142  for ac_exec_ext in '' $ac_executable_extensions; do
2143  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2144    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2145       ac_prog_rejected=yes
2146       continue
2147     fi
2148    ac_cv_prog_CC="cc"
2149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150    break 2
2151  fi
2152done
2153done
2154
2155if test $ac_prog_rejected = yes; then
2156  # We found a bogon in the path, so make sure we never use it.
2157  set dummy $ac_cv_prog_CC
2158  shift
2159  if test $# != 0; then
2160    # We chose a different compiler from the bogus one.
2161    # However, it has the same basename, so the bogon will be chosen
2162    # first if we set CC to just the basename; use the full file name.
2163    shift
2164    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2165  fi
2166fi
2167fi
2168fi
2169CC=$ac_cv_prog_CC
2170if test -n "$CC"; then
2171  echo "$as_me:$LINENO: result: $CC" >&5
2172echo "${ECHO_T}$CC" >&6
2173else
2174  echo "$as_me:$LINENO: result: no" >&5
2175echo "${ECHO_T}no" >&6
2176fi
2177
2178fi
2179if test -z "$CC"; then
2180  if test -n "$ac_tool_prefix"; then
2181  for ac_prog in cl
2182  do
2183    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2184set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2185echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_CC+set}" = set; then
2188  echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190  if test -n "$CC"; then
2191  ac_cv_prog_CC="$CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196  IFS=$as_save_IFS
2197  test -z "$as_dir" && as_dir=.
2198  for ac_exec_ext in '' $ac_executable_extensions; do
2199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202    break 2
2203  fi
2204done
2205done
2206
2207fi
2208fi
2209CC=$ac_cv_prog_CC
2210if test -n "$CC"; then
2211  echo "$as_me:$LINENO: result: $CC" >&5
2212echo "${ECHO_T}$CC" >&6
2213else
2214  echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218    test -n "$CC" && break
2219  done
2220fi
2221if test -z "$CC"; then
2222  ac_ct_CC=$CC
2223  for ac_prog in cl
2224do
2225  # Extract the first word of "$ac_prog", so it can be a program name with args.
2226set dummy $ac_prog; ac_word=$2
2227echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230  echo $ECHO_N "(cached) $ECHO_C" >&6
2231else
2232  if test -n "$ac_ct_CC"; then
2233  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234else
2235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238  IFS=$as_save_IFS
2239  test -z "$as_dir" && as_dir=.
2240  for ac_exec_ext in '' $ac_executable_extensions; do
2241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242    ac_cv_prog_ac_ct_CC="$ac_prog"
2243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244    break 2
2245  fi
2246done
2247done
2248
2249fi
2250fi
2251ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252if test -n "$ac_ct_CC"; then
2253  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254echo "${ECHO_T}$ac_ct_CC" >&6
2255else
2256  echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6
2258fi
2259
2260  test -n "$ac_ct_CC" && break
2261done
2262
2263  CC=$ac_ct_CC
2264fi
2265
2266fi
2267
2268
2269test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: no acceptable C compiler found in \$PATH
2272See \`config.log' for more details." >&2;}
2273   { (exit 1); exit 1; }; }
2274
2275# Provide some information about the compiler.
2276echo "$as_me:$LINENO:" \
2277     "checking for C compiler version" >&5
2278ac_compiler=`set X $ac_compile; echo $2`
2279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2280  (eval $ac_compiler --version </dev/null >&5) 2>&5
2281  ac_status=$?
2282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283  (exit $ac_status); }
2284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2285  (eval $ac_compiler -v </dev/null >&5) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }
2289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2290  (eval $ac_compiler -V </dev/null >&5) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }
2294
2295cat >conftest.$ac_ext <<_ACEOF
2296/* confdefs.h.  */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h.  */
2301
2302int
2303main ()
2304{
2305
2306  ;
2307  return 0;
2308}
2309_ACEOF
2310ac_clean_files_save=$ac_clean_files
2311ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312# Try to create an executable without -o first, disregard a.out.
2313# It will help us diagnose broken compilers, and finding out an intuition
2314# of exeext.
2315echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2317ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2319  (eval $ac_link_default) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; then
2323  # Find the output, starting from the most likely.  This scheme is
2324# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2325# resort.
2326
2327# Be careful to initialize this variable, since it used to be cached.
2328# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2329ac_cv_exeext=
2330# b.out is created by i960 compilers.
2331for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2332do
2333  test -f "$ac_file" || continue
2334  case $ac_file in
2335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2336	;;
2337    conftest.$ac_ext )
2338	# This is the source file.
2339	;;
2340    [ab].out )
2341	# We found the default executable, but exeext='' is most
2342	# certainly right.
2343	break;;
2344    *.* )
2345	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2346	# FIXME: I believe we export ac_cv_exeext for Libtool,
2347	# but it would be cool to find out if it's true.  Does anybody
2348	# maintain Libtool? --akim.
2349	export ac_cv_exeext
2350	break;;
2351    * )
2352	break;;
2353  esac
2354done
2355else
2356  echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: C compiler cannot create executables
2362See \`config.log' for more details." >&2;}
2363   { (exit 77); exit 77; }; }
2364fi
2365
2366ac_exeext=$ac_cv_exeext
2367echo "$as_me:$LINENO: result: $ac_file" >&5
2368echo "${ECHO_T}$ac_file" >&6
2369
2370# Check the compiler produces executables we can run.  If not, either
2371# the compiler is broken, or we cross compile.
2372echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2373echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2374# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2375# If not cross compiling, check that we can run a simple program.
2376if test "$cross_compiling" != yes; then
2377  if { ac_try='./$ac_file'
2378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379  (eval $ac_try) 2>&5
2380  ac_status=$?
2381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382  (exit $ac_status); }; }; then
2383    cross_compiling=no
2384  else
2385    if test "$cross_compiling" = maybe; then
2386	cross_compiling=yes
2387    else
2388	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2389If you meant to cross compile, use \`--host'.
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: cannot run C compiled programs.
2392If you meant to cross compile, use \`--host'.
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395    fi
2396  fi
2397fi
2398echo "$as_me:$LINENO: result: yes" >&5
2399echo "${ECHO_T}yes" >&6
2400
2401rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402ac_clean_files=$ac_clean_files_save
2403# Check the compiler produces executables we can run.  If not, either
2404# the compiler is broken, or we cross compile.
2405echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2407echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408echo "${ECHO_T}$cross_compiling" >&6
2409
2410echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2413  (eval $ac_link) 2>&5
2414  ac_status=$?
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); }; then
2417  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2418# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2419# work properly (i.e., refer to `conftest.exe'), while it won't with
2420# `rm'.
2421for ac_file in conftest.exe conftest conftest.*; do
2422  test -f "$ac_file" || continue
2423  case $ac_file in
2424    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2425    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426	  export ac_cv_exeext
2427	  break;;
2428    * ) break;;
2429  esac
2430done
2431else
2432  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2433See \`config.log' for more details." >&5
2434echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2435See \`config.log' for more details." >&2;}
2436   { (exit 1); exit 1; }; }
2437fi
2438
2439rm -f conftest$ac_cv_exeext
2440echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2441echo "${ECHO_T}$ac_cv_exeext" >&6
2442
2443rm -f conftest.$ac_ext
2444EXEEXT=$ac_cv_exeext
2445ac_exeext=$EXEEXT
2446echo "$as_me:$LINENO: checking for suffix of object files" >&5
2447echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2448if test "${ac_cv_objext+set}" = set; then
2449  echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451  cat >conftest.$ac_ext <<_ACEOF
2452/* confdefs.h.  */
2453_ACEOF
2454cat confdefs.h >>conftest.$ac_ext
2455cat >>conftest.$ac_ext <<_ACEOF
2456/* end confdefs.h.  */
2457
2458int
2459main ()
2460{
2461
2462  ;
2463  return 0;
2464}
2465_ACEOF
2466rm -f conftest.o conftest.obj
2467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468  (eval $ac_compile) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; then
2472  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2473  case $ac_file in
2474    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2475    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2476       break;;
2477  esac
2478done
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2484See \`config.log' for more details." >&5
2485echo "$as_me: error: cannot compute suffix of object files: cannot compile
2486See \`config.log' for more details." >&2;}
2487   { (exit 1); exit 1; }; }
2488fi
2489
2490rm -f conftest.$ac_cv_objext conftest.$ac_ext
2491fi
2492echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2493echo "${ECHO_T}$ac_cv_objext" >&6
2494OBJEXT=$ac_cv_objext
2495ac_objext=$OBJEXT
2496echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2497echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2498if test "${ac_cv_c_compiler_gnu+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h.  */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h.  */
2507
2508int
2509main ()
2510{
2511#ifndef __GNUC__
2512       choke me
2513#endif
2514
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>conftest.er1
2522  ac_status=$?
2523  grep -v '^ *+' conftest.er1 >conftest.err
2524  rm -f conftest.er1
2525  cat conftest.err >&5
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); } &&
2528	 { ac_try='test -z "$ac_c_werror_flag"
2529			 || test ! -s conftest.err'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535	 { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  ac_compiler_gnu=yes
2542else
2543  echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546ac_compiler_gnu=no
2547fi
2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549ac_cv_c_compiler_gnu=$ac_compiler_gnu
2550
2551fi
2552echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2553echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2554GCC=`test $ac_compiler_gnu = yes && echo yes`
2555ac_test_CFLAGS=${CFLAGS+set}
2556ac_save_CFLAGS=$CFLAGS
2557CFLAGS="-g"
2558echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2559echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2560if test "${ac_cv_prog_cc_g+set}" = set; then
2561  echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
2563  cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569
2570int
2571main ()
2572{
2573
2574  ;
2575  return 0;
2576}
2577_ACEOF
2578rm -f conftest.$ac_objext
2579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580  (eval $ac_compile) 2>conftest.er1
2581  ac_status=$?
2582  grep -v '^ *+' conftest.er1 >conftest.err
2583  rm -f conftest.er1
2584  cat conftest.err >&5
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); } &&
2587	 { ac_try='test -z "$ac_c_werror_flag"
2588			 || test ! -s conftest.err'
2589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590  (eval $ac_try) 2>&5
2591  ac_status=$?
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); }; } &&
2594	 { ac_try='test -s conftest.$ac_objext'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; }; then
2600  ac_cv_prog_cc_g=yes
2601else
2602  echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605ac_cv_prog_cc_g=no
2606fi
2607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2608fi
2609echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2610echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2611if test "$ac_test_CFLAGS" = set; then
2612  CFLAGS=$ac_save_CFLAGS
2613elif test $ac_cv_prog_cc_g = yes; then
2614  if test "$GCC" = yes; then
2615    CFLAGS="-g -O2"
2616  else
2617    CFLAGS="-g"
2618  fi
2619else
2620  if test "$GCC" = yes; then
2621    CFLAGS="-O2"
2622  else
2623    CFLAGS=
2624  fi
2625fi
2626echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2627echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2628if test "${ac_cv_prog_cc_stdc+set}" = set; then
2629  echo $ECHO_N "(cached) $ECHO_C" >&6
2630else
2631  ac_cv_prog_cc_stdc=no
2632ac_save_CC=$CC
2633cat >conftest.$ac_ext <<_ACEOF
2634/* confdefs.h.  */
2635_ACEOF
2636cat confdefs.h >>conftest.$ac_ext
2637cat >>conftest.$ac_ext <<_ACEOF
2638/* end confdefs.h.  */
2639#include <stdarg.h>
2640#include <stdio.h>
2641#include <sys/types.h>
2642#include <sys/stat.h>
2643/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2644struct buf { int x; };
2645FILE * (*rcsopen) (struct buf *, struct stat *, int);
2646static char *e (p, i)
2647     char **p;
2648     int i;
2649{
2650  return p[i];
2651}
2652static char *f (char * (*g) (char **, int), char **p, ...)
2653{
2654  char *s;
2655  va_list v;
2656  va_start (v,p);
2657  s = g (p, va_arg (v,int));
2658  va_end (v);
2659  return s;
2660}
2661
2662/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2663   function prototypes and stuff, but not '\xHH' hex character constants.
2664   These don't provoke an error unfortunately, instead are silently treated
2665   as 'x'.  The following induces an error, until -std1 is added to get
2666   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2667   array size at least.  It's necessary to write '\x00'==0 to get something
2668   that's true only with -std1.  */
2669int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670
2671int test (int i, double x);
2672struct s1 {int (*f) (int a);};
2673struct s2 {int (*f) (double a);};
2674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2675int argc;
2676char **argv;
2677int
2678main ()
2679{
2680return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685# Don't try gcc -ansi; that turns off useful extensions and
2686# breaks some systems' header files.
2687# AIX			-qlanglvl=ansi
2688# Ultrix and OSF/1	-std1
2689# HP-UX 10.20 and later	-Ae
2690# HP-UX older versions	-Aa -D_HPUX_SOURCE
2691# SVR4			-Xc -D__EXTENSIONS__
2692for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2693do
2694  CC="$ac_save_CC $ac_arg"
2695  rm -f conftest.$ac_objext
2696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2697  (eval $ac_compile) 2>conftest.er1
2698  ac_status=$?
2699  grep -v '^ *+' conftest.er1 >conftest.err
2700  rm -f conftest.er1
2701  cat conftest.err >&5
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); } &&
2704	 { ac_try='test -z "$ac_c_werror_flag"
2705			 || test ! -s conftest.err'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; } &&
2711	 { ac_try='test -s conftest.$ac_objext'
2712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2713  (eval $ac_try) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; }; then
2717  ac_cv_prog_cc_stdc=$ac_arg
2718break
2719else
2720  echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723fi
2724rm -f conftest.err conftest.$ac_objext
2725done
2726rm -f conftest.$ac_ext conftest.$ac_objext
2727CC=$ac_save_CC
2728
2729fi
2730
2731case "x$ac_cv_prog_cc_stdc" in
2732  x|xno)
2733    echo "$as_me:$LINENO: result: none needed" >&5
2734echo "${ECHO_T}none needed" >&6 ;;
2735  *)
2736    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2737echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2738    CC="$CC $ac_cv_prog_cc_stdc" ;;
2739esac
2740
2741# Some people use a C++ compiler to compile C.  Since we use `exit',
2742# in C++ we need to declare it.  In case someone uses the same compiler
2743# for both compiling C and C++ we need to have the C++ compiler decide
2744# the declaration of exit, since it's the most demanding environment.
2745cat >conftest.$ac_ext <<_ACEOF
2746#ifndef __cplusplus
2747  choke me
2748#endif
2749_ACEOF
2750rm -f conftest.$ac_objext
2751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2752  (eval $ac_compile) 2>conftest.er1
2753  ac_status=$?
2754  grep -v '^ *+' conftest.er1 >conftest.err
2755  rm -f conftest.er1
2756  cat conftest.err >&5
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); } &&
2759	 { ac_try='test -z "$ac_c_werror_flag"
2760			 || test ! -s conftest.err'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; } &&
2766	 { ac_try='test -s conftest.$ac_objext'
2767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768  (eval $ac_try) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; }; then
2772  for ac_declaration in \
2773   '' \
2774   'extern "C" void std::exit (int) throw (); using std::exit;' \
2775   'extern "C" void std::exit (int); using std::exit;' \
2776   'extern "C" void exit (int) throw ();' \
2777   'extern "C" void exit (int);' \
2778   'void exit (int);'
2779do
2780  cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h.  */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h.  */
2786$ac_declaration
2787#include <stdlib.h>
2788int
2789main ()
2790{
2791exit (42);
2792  ;
2793  return 0;
2794}
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798  (eval $ac_compile) 2>conftest.er1
2799  ac_status=$?
2800  grep -v '^ *+' conftest.er1 >conftest.err
2801  rm -f conftest.er1
2802  cat conftest.err >&5
2803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804  (exit $ac_status); } &&
2805	 { ac_try='test -z "$ac_c_werror_flag"
2806			 || test ! -s conftest.err'
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); }; } &&
2812	 { ac_try='test -s conftest.$ac_objext'
2813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814  (eval $ac_try) 2>&5
2815  ac_status=$?
2816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817  (exit $ac_status); }; }; then
2818  :
2819else
2820  echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823continue
2824fi
2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826  cat >conftest.$ac_ext <<_ACEOF
2827/* confdefs.h.  */
2828_ACEOF
2829cat confdefs.h >>conftest.$ac_ext
2830cat >>conftest.$ac_ext <<_ACEOF
2831/* end confdefs.h.  */
2832$ac_declaration
2833int
2834main ()
2835{
2836exit (42);
2837  ;
2838  return 0;
2839}
2840_ACEOF
2841rm -f conftest.$ac_objext
2842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2843  (eval $ac_compile) 2>conftest.er1
2844  ac_status=$?
2845  grep -v '^ *+' conftest.er1 >conftest.err
2846  rm -f conftest.er1
2847  cat conftest.err >&5
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); } &&
2850	 { ac_try='test -z "$ac_c_werror_flag"
2851			 || test ! -s conftest.err'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; } &&
2857	 { ac_try='test -s conftest.$ac_objext'
2858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859  (eval $ac_try) 2>&5
2860  ac_status=$?
2861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862  (exit $ac_status); }; }; then
2863  break
2864else
2865  echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868fi
2869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2870done
2871rm -f conftest*
2872if test -n "$ac_declaration"; then
2873  echo '#ifdef __cplusplus' >>confdefs.h
2874  echo $ac_declaration      >>confdefs.h
2875  echo '#endif'             >>confdefs.h
2876fi
2877
2878else
2879  echo "$as_me: failed program was:" >&5
2880sed 's/^/| /' conftest.$ac_ext >&5
2881
2882fi
2883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2884ac_ext=c
2885ac_cpp='$CPP $CPPFLAGS'
2886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889DEPDIR="${am__leading_dot}deps"
2890
2891          ac_config_commands="$ac_config_commands depfiles"
2892
2893
2894am_make=${MAKE-make}
2895cat > confinc << 'END'
2896am__doit:
2897	@echo done
2898.PHONY: am__doit
2899END
2900# If we don't find an include directive, just comment out the code.
2901echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2902echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2903am__include="#"
2904am__quote=
2905_am_result=none
2906# First try GNU make style include.
2907echo "include confinc" > confmf
2908# We grep out `Entering directory' and `Leaving directory'
2909# messages which can occur if `w' ends up in MAKEFLAGS.
2910# In particular we don't look at `^make:' because GNU make might
2911# be invoked under some other name (usually "gmake"), in which
2912# case it prints its new name instead of `make'.
2913if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2914   am__include=include
2915   am__quote=
2916   _am_result=GNU
2917fi
2918# Now try BSD make style include.
2919if test "$am__include" = "#"; then
2920   echo '.include "confinc"' > confmf
2921   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2922      am__include=.include
2923      am__quote="\""
2924      _am_result=BSD
2925   fi
2926fi
2927
2928
2929echo "$as_me:$LINENO: result: $_am_result" >&5
2930echo "${ECHO_T}$_am_result" >&6
2931rm -f confinc confmf
2932
2933# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2934if test "${enable_dependency_tracking+set}" = set; then
2935  enableval="$enable_dependency_tracking"
2936
2937fi;
2938if test "x$enable_dependency_tracking" != xno; then
2939  am_depcomp="$ac_aux_dir/depcomp"
2940  AMDEPBACKSLASH='\'
2941fi
2942
2943
2944if test "x$enable_dependency_tracking" != xno; then
2945  AMDEP_TRUE=
2946  AMDEP_FALSE='#'
2947else
2948  AMDEP_TRUE='#'
2949  AMDEP_FALSE=
2950fi
2951
2952
2953
2954
2955depcc="$CC"   am_compiler_list=
2956
2957echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2958echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2959if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2960  echo $ECHO_N "(cached) $ECHO_C" >&6
2961else
2962  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2963  # We make a subdir and do the tests there.  Otherwise we can end up
2964  # making bogus files that we don't know about and never remove.  For
2965  # instance it was reported that on HP-UX the gcc test will end up
2966  # making a dummy file named `D' -- because `-MD' means `put the output
2967  # in D'.
2968  mkdir conftest.dir
2969  # Copy depcomp to subdir because otherwise we won't find it if we're
2970  # using a relative directory.
2971  cp "$am_depcomp" conftest.dir
2972  cd conftest.dir
2973  # We will build objects and dependencies in a subdirectory because
2974  # it helps to detect inapplicable dependency modes.  For instance
2975  # both Tru64's cc and ICC support -MD to output dependencies as a
2976  # side effect of compilation, but ICC will put the dependencies in
2977  # the current directory while Tru64 will put them in the object
2978  # directory.
2979  mkdir sub
2980
2981  am_cv_CC_dependencies_compiler_type=none
2982  if test "$am_compiler_list" = ""; then
2983     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2984  fi
2985  for depmode in $am_compiler_list; do
2986    # Setup a source with many dependencies, because some compilers
2987    # like to wrap large dependency lists on column 80 (with \), and
2988    # we should not choose a depcomp mode which is confused by this.
2989    #
2990    # We need to recreate these files for each test, as the compiler may
2991    # overwrite some of them when testing with obscure command lines.
2992    # This happens at least with the AIX C compiler.
2993    : > sub/conftest.c
2994    for i in 1 2 3 4 5 6; do
2995      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2996      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2997      # Solaris 8's {/usr,}/bin/sh.
2998      touch sub/conftst$i.h
2999    done
3000    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3001
3002    case $depmode in
3003    nosideeffect)
3004      # after this tag, mechanisms are not by side-effect, so they'll
3005      # only be used when explicitly requested
3006      if test "x$enable_dependency_tracking" = xyes; then
3007	continue
3008      else
3009	break
3010      fi
3011      ;;
3012    none) break ;;
3013    esac
3014    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3015    # mode.  It turns out that the SunPro C++ compiler does not properly
3016    # handle `-M -o', and we need to detect this.
3017    if depmode=$depmode \
3018       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3019       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3020       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3021         >/dev/null 2>conftest.err &&
3022       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3023       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3024       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3025      # icc doesn't choke on unknown options, it will just issue warnings
3026      # or remarks (even with -Werror).  So we grep stderr for any message
3027      # that says an option was ignored or not supported.
3028      # When given -MP, icc 7.0 and 7.1 complain thusly:
3029      #   icc: Command line warning: ignoring option '-M'; no argument required
3030      # The diagnosis changed in icc 8.0:
3031      #   icc: Command line remark: option '-MP' not supported
3032      if (grep 'ignoring option' conftest.err ||
3033          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3034        am_cv_CC_dependencies_compiler_type=$depmode
3035        break
3036      fi
3037    fi
3038  done
3039
3040  cd ..
3041  rm -rf conftest.dir
3042else
3043  am_cv_CC_dependencies_compiler_type=none
3044fi
3045
3046fi
3047echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3048echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3049CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3050
3051
3052
3053if
3054  test "x$enable_dependency_tracking" != xno \
3055  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3056  am__fastdepCC_TRUE=
3057  am__fastdepCC_FALSE='#'
3058else
3059  am__fastdepCC_TRUE='#'
3060  am__fastdepCC_FALSE=
3061fi
3062
3063
3064
3065
3066## ----------------------- ##
3067## Libtool initialisation. ##
3068## ----------------------- ##
3069# Check whether --enable-shared or --disable-shared was given.
3070if test "${enable_shared+set}" = set; then
3071  enableval="$enable_shared"
3072  p=${PACKAGE-default}
3073    case $enableval in
3074    yes) enable_shared=yes ;;
3075    no) enable_shared=no ;;
3076    *)
3077      enable_shared=no
3078      # Look at the argument we got.  We use all the common list separators.
3079      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3080      for pkg in $enableval; do
3081	IFS="$lt_save_ifs"
3082	if test "X$pkg" = "X$p"; then
3083	  enable_shared=yes
3084	fi
3085      done
3086      IFS="$lt_save_ifs"
3087      ;;
3088    esac
3089else
3090  enable_shared=yes
3091fi;
3092
3093# Check whether --enable-static or --disable-static was given.
3094if test "${enable_static+set}" = set; then
3095  enableval="$enable_static"
3096  p=${PACKAGE-default}
3097    case $enableval in
3098    yes) enable_static=yes ;;
3099    no) enable_static=no ;;
3100    *)
3101     enable_static=no
3102      # Look at the argument we got.  We use all the common list separators.
3103      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3104      for pkg in $enableval; do
3105	IFS="$lt_save_ifs"
3106	if test "X$pkg" = "X$p"; then
3107	  enable_static=yes
3108	fi
3109      done
3110      IFS="$lt_save_ifs"
3111      ;;
3112    esac
3113else
3114  enable_static=yes
3115fi;
3116
3117# Check whether --enable-fast-install or --disable-fast-install was given.
3118if test "${enable_fast_install+set}" = set; then
3119  enableval="$enable_fast_install"
3120  p=${PACKAGE-default}
3121    case $enableval in
3122    yes) enable_fast_install=yes ;;
3123    no) enable_fast_install=no ;;
3124    *)
3125      enable_fast_install=no
3126      # Look at the argument we got.  We use all the common list separators.
3127      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3128      for pkg in $enableval; do
3129	IFS="$lt_save_ifs"
3130	if test "X$pkg" = "X$p"; then
3131	  enable_fast_install=yes
3132	fi
3133      done
3134      IFS="$lt_save_ifs"
3135      ;;
3136    esac
3137else
3138  enable_fast_install=yes
3139fi;
3140
3141# Make sure we can run config.sub.
3142$ac_config_sub sun4 >/dev/null 2>&1 ||
3143  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3144echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3145   { (exit 1); exit 1; }; }
3146
3147echo "$as_me:$LINENO: checking build system type" >&5
3148echo $ECHO_N "checking build system type... $ECHO_C" >&6
3149if test "${ac_cv_build+set}" = set; then
3150  echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152  ac_cv_build_alias=$build_alias
3153test -z "$ac_cv_build_alias" &&
3154  ac_cv_build_alias=`$ac_config_guess`
3155test -z "$ac_cv_build_alias" &&
3156  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3157echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3158   { (exit 1); exit 1; }; }
3159ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3160  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3161echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3162   { (exit 1); exit 1; }; }
3163
3164fi
3165echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3166echo "${ECHO_T}$ac_cv_build" >&6
3167build=$ac_cv_build
3168build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3169build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3170build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3171
3172
3173echo "$as_me:$LINENO: checking host system type" >&5
3174echo $ECHO_N "checking host system type... $ECHO_C" >&6
3175if test "${ac_cv_host+set}" = set; then
3176  echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
3178  ac_cv_host_alias=$host_alias
3179test -z "$ac_cv_host_alias" &&
3180  ac_cv_host_alias=$ac_cv_build_alias
3181ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3182  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3183echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3184   { (exit 1); exit 1; }; }
3185
3186fi
3187echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3188echo "${ECHO_T}$ac_cv_host" >&6
3189host=$ac_cv_host
3190host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3191host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3192host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3193
3194
3195echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3196echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3197if test "${lt_cv_path_SED+set}" = set; then
3198  echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200  # Loop through the user's path and test for sed and gsed.
3201# Then use that list of sed's as ones to test for truncation.
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207  for lt_ac_prog in sed gsed; do
3208    for ac_exec_ext in '' $ac_executable_extensions; do
3209      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3210        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3211      fi
3212    done
3213  done
3214done
3215lt_ac_max=0
3216lt_ac_count=0
3217# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3218# along with /bin/sed that truncates output.
3219for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3220  test ! -f $lt_ac_sed && continue
3221  cat /dev/null > conftest.in
3222  lt_ac_count=0
3223  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3224  # Check for GNU sed and select it if it is found.
3225  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3226    lt_cv_path_SED=$lt_ac_sed
3227    break
3228  fi
3229  while true; do
3230    cat conftest.in conftest.in >conftest.tmp
3231    mv conftest.tmp conftest.in
3232    cp conftest.in conftest.nl
3233    echo >>conftest.nl
3234    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3235    cmp -s conftest.out conftest.nl || break
3236    # 10000 chars as input seems more than enough
3237    test $lt_ac_count -gt 10 && break
3238    lt_ac_count=`expr $lt_ac_count + 1`
3239    if test $lt_ac_count -gt $lt_ac_max; then
3240      lt_ac_max=$lt_ac_count
3241      lt_cv_path_SED=$lt_ac_sed
3242    fi
3243  done
3244done
3245
3246fi
3247
3248SED=$lt_cv_path_SED
3249echo "$as_me:$LINENO: result: $SED" >&5
3250echo "${ECHO_T}$SED" >&6
3251
3252echo "$as_me:$LINENO: checking for egrep" >&5
3253echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3254if test "${ac_cv_prog_egrep+set}" = set; then
3255  echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3258    then ac_cv_prog_egrep='grep -E'
3259    else ac_cv_prog_egrep='egrep'
3260    fi
3261fi
3262echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3263echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3264 EGREP=$ac_cv_prog_egrep
3265
3266
3267
3268# Check whether --with-gnu-ld or --without-gnu-ld was given.
3269if test "${with_gnu_ld+set}" = set; then
3270  withval="$with_gnu_ld"
3271  test "$withval" = no || with_gnu_ld=yes
3272else
3273  with_gnu_ld=no
3274fi;
3275ac_prog=ld
3276if test "$GCC" = yes; then
3277  # Check if gcc -print-prog-name=ld gives a path.
3278  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3279echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3280  case $host in
3281  *-*-mingw*)
3282    # gcc leaves a trailing carriage return which upsets mingw
3283    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3284  *)
3285    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3286  esac
3287  case $ac_prog in
3288    # Accept absolute paths.
3289    [\\/]* | ?:[\\/]*)
3290      re_direlt='/[^/][^/]*/\.\./'
3291      # Canonicalize the pathname of ld
3292      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3293      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3294	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3295      done
3296      test -z "$LD" && LD="$ac_prog"
3297      ;;
3298  "")
3299    # If it fails, then pretend we aren't using GCC.
3300    ac_prog=ld
3301    ;;
3302  *)
3303    # If it is relative, then search for the first ld in PATH.
3304    with_gnu_ld=unknown
3305    ;;
3306  esac
3307elif test "$with_gnu_ld" = yes; then
3308  echo "$as_me:$LINENO: checking for GNU ld" >&5
3309echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3310else
3311  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3312echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3313fi
3314if test "${lt_cv_path_LD+set}" = set; then
3315  echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
3317  if test -z "$LD"; then
3318  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3319  for ac_dir in $PATH; do
3320    IFS="$lt_save_ifs"
3321    test -z "$ac_dir" && ac_dir=.
3322    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3323      lt_cv_path_LD="$ac_dir/$ac_prog"
3324      # Check to see if the program is GNU ld.  I'd rather use --version,
3325      # but apparently some variants of GNU ld only accept -v.
3326      # Break only if it was the GNU/non-GNU ld that we prefer.
3327      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3328      *GNU* | *'with BFD'*)
3329	test "$with_gnu_ld" != no && break
3330	;;
3331      *)
3332	test "$with_gnu_ld" != yes && break
3333	;;
3334      esac
3335    fi
3336  done
3337  IFS="$lt_save_ifs"
3338else
3339  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3340fi
3341fi
3342
3343LD="$lt_cv_path_LD"
3344if test -n "$LD"; then
3345  echo "$as_me:$LINENO: result: $LD" >&5
3346echo "${ECHO_T}$LD" >&6
3347else
3348  echo "$as_me:$LINENO: result: no" >&5
3349echo "${ECHO_T}no" >&6
3350fi
3351test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3352echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3353   { (exit 1); exit 1; }; }
3354echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3355echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3356if test "${lt_cv_prog_gnu_ld+set}" = set; then
3357  echo $ECHO_N "(cached) $ECHO_C" >&6
3358else
3359  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3360case `$LD -v 2>&1 </dev/null` in
3361*GNU* | *'with BFD'*)
3362  lt_cv_prog_gnu_ld=yes
3363  ;;
3364*)
3365  lt_cv_prog_gnu_ld=no
3366  ;;
3367esac
3368fi
3369echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3370echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3371with_gnu_ld=$lt_cv_prog_gnu_ld
3372
3373
3374echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3375echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3376if test "${lt_cv_ld_reload_flag+set}" = set; then
3377  echo $ECHO_N "(cached) $ECHO_C" >&6
3378else
3379  lt_cv_ld_reload_flag='-r'
3380fi
3381echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3382echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3383reload_flag=$lt_cv_ld_reload_flag
3384case $reload_flag in
3385"" | " "*) ;;
3386*) reload_flag=" $reload_flag" ;;
3387esac
3388reload_cmds='$LD$reload_flag -o $output$reload_objs'
3389case $host_os in
3390  darwin*)
3391    if test "$GCC" = yes; then
3392      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3393    else
3394      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3395    fi
3396    ;;
3397esac
3398
3399echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3400echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3401if test "${lt_cv_path_NM+set}" = set; then
3402  echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404  if test -n "$NM"; then
3405  # Let the user override the test.
3406  lt_cv_path_NM="$NM"
3407else
3408  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3409  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3410    IFS="$lt_save_ifs"
3411    test -z "$ac_dir" && ac_dir=.
3412    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3413    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3414      # Check to see if the nm accepts a BSD-compat flag.
3415      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3416      #   nm: unknown option "B" ignored
3417      # Tru64's nm complains that /dev/null is an invalid object file
3418      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3419      */dev/null* | *'Invalid file or object type'*)
3420	lt_cv_path_NM="$tmp_nm -B"
3421	break
3422        ;;
3423      *)
3424	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3425	*/dev/null*)
3426	  lt_cv_path_NM="$tmp_nm -p"
3427	  break
3428	  ;;
3429	*)
3430	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3431	  continue # so that we can try to find one that supports BSD flags
3432	  ;;
3433	esac
3434      esac
3435    fi
3436  done
3437  IFS="$lt_save_ifs"
3438  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3439fi
3440fi
3441echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3442echo "${ECHO_T}$lt_cv_path_NM" >&6
3443NM="$lt_cv_path_NM"
3444
3445echo "$as_me:$LINENO: checking whether ln -s works" >&5
3446echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3447LN_S=$as_ln_s
3448if test "$LN_S" = "ln -s"; then
3449  echo "$as_me:$LINENO: result: yes" >&5
3450echo "${ECHO_T}yes" >&6
3451else
3452  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3453echo "${ECHO_T}no, using $LN_S" >&6
3454fi
3455
3456echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3457echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3458if test "${lt_cv_deplibs_check_method+set}" = set; then
3459  echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461  lt_cv_file_magic_cmd='$MAGIC_CMD'
3462lt_cv_file_magic_test_file=
3463lt_cv_deplibs_check_method='unknown'
3464# Need to set the preceding variable on all platforms that support
3465# interlibrary dependencies.
3466# 'none' -- dependencies not supported.
3467# `unknown' -- same as none, but documents that we really don't know.
3468# 'pass_all' -- all dependencies passed with no checks.
3469# 'test_compile' -- check by making test program.
3470# 'file_magic [[regex]]' -- check by looking for files in library path
3471# which responds to the $file_magic_cmd with a given extended regex.
3472# If you have `file' or equivalent on your system and you're not sure
3473# whether `pass_all' will *always* work, you probably want this one.
3474
3475case $host_os in
3476aix4* | aix5*)
3477  lt_cv_deplibs_check_method=pass_all
3478  ;;
3479
3480beos*)
3481  lt_cv_deplibs_check_method=pass_all
3482  ;;
3483
3484bsdi[45]*)
3485  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3486  lt_cv_file_magic_cmd='/usr/bin/file -L'
3487  lt_cv_file_magic_test_file=/shlib/libc.so
3488  ;;
3489
3490cygwin*)
3491  # func_win32_libid is a shell function defined in ltmain.sh
3492  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3493  lt_cv_file_magic_cmd='func_win32_libid'
3494  ;;
3495
3496mingw* | pw32*)
3497  # Base MSYS/MinGW do not provide the 'file' command needed by
3498  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3499  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3500  lt_cv_file_magic_cmd='$OBJDUMP -f'
3501  ;;
3502
3503darwin* | rhapsody*)
3504  lt_cv_deplibs_check_method=pass_all
3505  ;;
3506
3507freebsd* | kfreebsd*-gnu | dragonfly*)
3508  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3509    case $host_cpu in
3510    i*86 )
3511      # Not sure whether the presence of OpenBSD here was a mistake.
3512      # Let's accept both of them until this is cleared up.
3513      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3514      lt_cv_file_magic_cmd=/usr/bin/file
3515      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3516      ;;
3517    esac
3518  else
3519    lt_cv_deplibs_check_method=pass_all
3520  fi
3521  ;;
3522
3523gnu*)
3524  lt_cv_deplibs_check_method=pass_all
3525  ;;
3526
3527haiku*)
3528  lt_cv_deplibs_check_method=pass_all
3529  ;;
3530
3531hpux10.20* | hpux11*)
3532  lt_cv_file_magic_cmd=/usr/bin/file
3533  case $host_cpu in
3534  ia64*)
3535    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3536    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3537    ;;
3538  hppa*64*)
3539    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]'
3540    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3541    ;;
3542  *)
3543    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3544    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3545    ;;
3546  esac
3547  ;;
3548
3549irix5* | irix6* | nonstopux*)
3550  case $LD in
3551  *-32|*"-32 ") libmagic=32-bit;;
3552  *-n32|*"-n32 ") libmagic=N32;;
3553  *-64|*"-64 ") libmagic=64-bit;;
3554  *) libmagic=never-match;;
3555  esac
3556  lt_cv_deplibs_check_method=pass_all
3557  ;;
3558
3559# This must be Linux ELF.
3560linux*)
3561  lt_cv_deplibs_check_method=pass_all
3562  ;;
3563
3564netbsd*)
3565  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3566    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3567  else
3568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3569  fi
3570  ;;
3571
3572newos6*)
3573  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3574  lt_cv_file_magic_cmd=/usr/bin/file
3575  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3576  ;;
3577
3578nto-qnx*)
3579  lt_cv_deplibs_check_method=unknown
3580  ;;
3581
3582openbsd*)
3583  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3584    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3585  else
3586    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3587  fi
3588  ;;
3589
3590osf3* | osf4* | osf5*)
3591  lt_cv_deplibs_check_method=pass_all
3592  ;;
3593
3594sco3.2v5*)
3595  lt_cv_deplibs_check_method=pass_all
3596  ;;
3597
3598solaris*)
3599  lt_cv_deplibs_check_method=pass_all
3600  ;;
3601
3602sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3603  case $host_vendor in
3604  motorola)
3605    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]'
3606    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3607    ;;
3608  ncr)
3609    lt_cv_deplibs_check_method=pass_all
3610    ;;
3611  sequent)
3612    lt_cv_file_magic_cmd='/bin/file'
3613    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3614    ;;
3615  sni)
3616    lt_cv_file_magic_cmd='/bin/file'
3617    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3618    lt_cv_file_magic_test_file=/lib/libc.so
3619    ;;
3620  siemens)
3621    lt_cv_deplibs_check_method=pass_all
3622    ;;
3623  esac
3624  ;;
3625
3626sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3627  lt_cv_deplibs_check_method=pass_all
3628  ;;
3629esac
3630
3631fi
3632echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3633echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3634file_magic_cmd=$lt_cv_file_magic_cmd
3635deplibs_check_method=$lt_cv_deplibs_check_method
3636test -z "$deplibs_check_method" && deplibs_check_method=unknown
3637
3638
3639
3640
3641# If no C compiler was specified, use CC.
3642LTCC=${LTCC-"$CC"}
3643
3644# Allow CC to be a program name with arguments.
3645compiler=$CC
3646
3647
3648# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3649if test "${enable_libtool_lock+set}" = set; then
3650  enableval="$enable_libtool_lock"
3651
3652fi;
3653test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3654
3655# Some flags need to be propagated to the compiler or linker for good
3656# libtool support.
3657case $host in
3658ia64-*-hpux*)
3659  # Find out which ABI we are using.
3660  echo 'int i;' > conftest.$ac_ext
3661  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662  (eval $ac_compile) 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }; then
3666    case `/usr/bin/file conftest.$ac_objext` in
3667    *ELF-32*)
3668      HPUX_IA64_MODE="32"
3669      ;;
3670    *ELF-64*)
3671      HPUX_IA64_MODE="64"
3672      ;;
3673    esac
3674  fi
3675  rm -rf conftest*
3676  ;;
3677*-*-irix6*)
3678  # Find out which ABI we are using.
3679  echo '#line 3679 "configure"' > conftest.$ac_ext
3680  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681  (eval $ac_compile) 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); }; then
3685   if test "$lt_cv_prog_gnu_ld" = yes; then
3686    case `/usr/bin/file conftest.$ac_objext` in
3687    *32-bit*)
3688      LD="${LD-ld} -melf32bsmip"
3689      ;;
3690    *N32*)
3691      LD="${LD-ld} -melf32bmipn32"
3692      ;;
3693    *64-bit*)
3694      LD="${LD-ld} -melf64bmip"
3695      ;;
3696    esac
3697   else
3698    case `/usr/bin/file conftest.$ac_objext` in
3699    *32-bit*)
3700      LD="${LD-ld} -32"
3701      ;;
3702    *N32*)
3703      LD="${LD-ld} -n32"
3704      ;;
3705    *64-bit*)
3706      LD="${LD-ld} -64"
3707      ;;
3708    esac
3709   fi
3710  fi
3711  rm -rf conftest*
3712  ;;
3713
3714x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3715  # Find out which ABI we are using.
3716  echo 'int i;' > conftest.$ac_ext
3717  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718  (eval $ac_compile) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; then
3722    case `/usr/bin/file conftest.o` in
3723    *32-bit*)
3724      case $host in
3725        x86_64-*linux*)
3726          LD="${LD-ld} -m elf_i386"
3727          ;;
3728        ppc64-*linux*|powerpc64-*linux*)
3729          LD="${LD-ld} -m elf32ppclinux"
3730          ;;
3731        s390x-*linux*)
3732          LD="${LD-ld} -m elf_s390"
3733          ;;
3734        sparc64-*linux*)
3735          LD="${LD-ld} -m elf32_sparc"
3736          ;;
3737      esac
3738      ;;
3739    *64-bit*)
3740      case $host in
3741        x86_64-*linux*)
3742          LD="${LD-ld} -m elf_x86_64"
3743          ;;
3744        ppc*-*linux*|powerpc*-*linux*)
3745          LD="${LD-ld} -m elf64ppc"
3746          ;;
3747        s390*-*linux*)
3748          LD="${LD-ld} -m elf64_s390"
3749          ;;
3750        sparc*-*linux*)
3751          LD="${LD-ld} -m elf64_sparc"
3752          ;;
3753      esac
3754      ;;
3755    esac
3756  fi
3757  rm -rf conftest*
3758  ;;
3759
3760*-*-sco3.2v5*)
3761  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3762  SAVE_CFLAGS="$CFLAGS"
3763  CFLAGS="$CFLAGS -belf"
3764  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3765echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3766if test "${lt_cv_cc_needs_belf+set}" = set; then
3767  echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769  ac_ext=c
3770ac_cpp='$CPP $CPPFLAGS'
3771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
3775     cat >conftest.$ac_ext <<_ACEOF
3776/* confdefs.h.  */
3777_ACEOF
3778cat confdefs.h >>conftest.$ac_ext
3779cat >>conftest.$ac_ext <<_ACEOF
3780/* end confdefs.h.  */
3781
3782int
3783main ()
3784{
3785
3786  ;
3787  return 0;
3788}
3789_ACEOF
3790rm -f conftest.$ac_objext conftest$ac_exeext
3791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792  (eval $ac_link) 2>conftest.er1
3793  ac_status=$?
3794  grep -v '^ *+' conftest.er1 >conftest.err
3795  rm -f conftest.er1
3796  cat conftest.err >&5
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); } &&
3799	 { ac_try='test -z "$ac_c_werror_flag"
3800			 || test ! -s conftest.err'
3801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802  (eval $ac_try) 2>&5
3803  ac_status=$?
3804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805  (exit $ac_status); }; } &&
3806	 { ac_try='test -s conftest$ac_exeext'
3807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808  (eval $ac_try) 2>&5
3809  ac_status=$?
3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811  (exit $ac_status); }; }; then
3812  lt_cv_cc_needs_belf=yes
3813else
3814  echo "$as_me: failed program was:" >&5
3815sed 's/^/| /' conftest.$ac_ext >&5
3816
3817lt_cv_cc_needs_belf=no
3818fi
3819rm -f conftest.err conftest.$ac_objext \
3820      conftest$ac_exeext conftest.$ac_ext
3821     ac_ext=c
3822ac_cpp='$CPP $CPPFLAGS'
3823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
3827fi
3828echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3829echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3830  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3831    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3832    CFLAGS="$SAVE_CFLAGS"
3833  fi
3834  ;;
3835
3836esac
3837
3838need_locks="$enable_libtool_lock"
3839
3840
3841ac_ext=c
3842ac_cpp='$CPP $CPPFLAGS'
3843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3847echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3848# On Suns, sometimes $CPP names a directory.
3849if test -n "$CPP" && test -d "$CPP"; then
3850  CPP=
3851fi
3852if test -z "$CPP"; then
3853  if test "${ac_cv_prog_CPP+set}" = set; then
3854  echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856      # Double quotes because CPP needs to be expanded
3857    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3858    do
3859      ac_preproc_ok=false
3860for ac_c_preproc_warn_flag in '' yes
3861do
3862  # Use a header file that comes with gcc, so configuring glibc
3863  # with a fresh cross-compiler works.
3864  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3865  # <limits.h> exists even on freestanding compilers.
3866  # On the NeXT, cc -E runs the code through the compiler's parser,
3867  # not just through cpp. "Syntax error" is here to catch this case.
3868  cat >conftest.$ac_ext <<_ACEOF
3869/* confdefs.h.  */
3870_ACEOF
3871cat confdefs.h >>conftest.$ac_ext
3872cat >>conftest.$ac_ext <<_ACEOF
3873/* end confdefs.h.  */
3874#ifdef __STDC__
3875# include <limits.h>
3876#else
3877# include <assert.h>
3878#endif
3879		     Syntax error
3880_ACEOF
3881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3882  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3883  ac_status=$?
3884  grep -v '^ *+' conftest.er1 >conftest.err
3885  rm -f conftest.er1
3886  cat conftest.err >&5
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); } >/dev/null; then
3889  if test -s conftest.err; then
3890    ac_cpp_err=$ac_c_preproc_warn_flag
3891    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3892  else
3893    ac_cpp_err=
3894  fi
3895else
3896  ac_cpp_err=yes
3897fi
3898if test -z "$ac_cpp_err"; then
3899  :
3900else
3901  echo "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904  # Broken: fails on valid input.
3905continue
3906fi
3907rm -f conftest.err conftest.$ac_ext
3908
3909  # OK, works on sane cases.  Now check whether non-existent headers
3910  # can be detected and how.
3911  cat >conftest.$ac_ext <<_ACEOF
3912/* confdefs.h.  */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h.  */
3917#include <ac_nonexistent.h>
3918_ACEOF
3919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3920  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } >/dev/null; then
3927  if test -s conftest.err; then
3928    ac_cpp_err=$ac_c_preproc_warn_flag
3929    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3930  else
3931    ac_cpp_err=
3932  fi
3933else
3934  ac_cpp_err=yes
3935fi
3936if test -z "$ac_cpp_err"; then
3937  # Broken: success on invalid input.
3938continue
3939else
3940  echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943  # Passes both tests.
3944ac_preproc_ok=:
3945break
3946fi
3947rm -f conftest.err conftest.$ac_ext
3948
3949done
3950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951rm -f conftest.err conftest.$ac_ext
3952if $ac_preproc_ok; then
3953  break
3954fi
3955
3956    done
3957    ac_cv_prog_CPP=$CPP
3958
3959fi
3960  CPP=$ac_cv_prog_CPP
3961else
3962  ac_cv_prog_CPP=$CPP
3963fi
3964echo "$as_me:$LINENO: result: $CPP" >&5
3965echo "${ECHO_T}$CPP" >&6
3966ac_preproc_ok=false
3967for ac_c_preproc_warn_flag in '' yes
3968do
3969  # Use a header file that comes with gcc, so configuring glibc
3970  # with a fresh cross-compiler works.
3971  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3972  # <limits.h> exists even on freestanding compilers.
3973  # On the NeXT, cc -E runs the code through the compiler's parser,
3974  # not just through cpp. "Syntax error" is here to catch this case.
3975  cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h.  */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h.  */
3981#ifdef __STDC__
3982# include <limits.h>
3983#else
3984# include <assert.h>
3985#endif
3986		     Syntax error
3987_ACEOF
3988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3989  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3990  ac_status=$?
3991  grep -v '^ *+' conftest.er1 >conftest.err
3992  rm -f conftest.er1
3993  cat conftest.err >&5
3994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995  (exit $ac_status); } >/dev/null; then
3996  if test -s conftest.err; then
3997    ac_cpp_err=$ac_c_preproc_warn_flag
3998    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3999  else
4000    ac_cpp_err=
4001  fi
4002else
4003  ac_cpp_err=yes
4004fi
4005if test -z "$ac_cpp_err"; then
4006  :
4007else
4008  echo "$as_me: failed program was:" >&5
4009sed 's/^/| /' conftest.$ac_ext >&5
4010
4011  # Broken: fails on valid input.
4012continue
4013fi
4014rm -f conftest.err conftest.$ac_ext
4015
4016  # OK, works on sane cases.  Now check whether non-existent headers
4017  # can be detected and how.
4018  cat >conftest.$ac_ext <<_ACEOF
4019/* confdefs.h.  */
4020_ACEOF
4021cat confdefs.h >>conftest.$ac_ext
4022cat >>conftest.$ac_ext <<_ACEOF
4023/* end confdefs.h.  */
4024#include <ac_nonexistent.h>
4025_ACEOF
4026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4027  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4028  ac_status=$?
4029  grep -v '^ *+' conftest.er1 >conftest.err
4030  rm -f conftest.er1
4031  cat conftest.err >&5
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); } >/dev/null; then
4034  if test -s conftest.err; then
4035    ac_cpp_err=$ac_c_preproc_warn_flag
4036    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4037  else
4038    ac_cpp_err=
4039  fi
4040else
4041  ac_cpp_err=yes
4042fi
4043if test -z "$ac_cpp_err"; then
4044  # Broken: success on invalid input.
4045continue
4046else
4047  echo "$as_me: failed program was:" >&5
4048sed 's/^/| /' conftest.$ac_ext >&5
4049
4050  # Passes both tests.
4051ac_preproc_ok=:
4052break
4053fi
4054rm -f conftest.err conftest.$ac_ext
4055
4056done
4057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4058rm -f conftest.err conftest.$ac_ext
4059if $ac_preproc_ok; then
4060  :
4061else
4062  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4063See \`config.log' for more details." >&5
4064echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4065See \`config.log' for more details." >&2;}
4066   { (exit 1); exit 1; }; }
4067fi
4068
4069ac_ext=c
4070ac_cpp='$CPP $CPPFLAGS'
4071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074
4075
4076echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4077echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4078if test "${ac_cv_header_stdc+set}" = set; then
4079  echo $ECHO_N "(cached) $ECHO_C" >&6
4080else
4081  cat >conftest.$ac_ext <<_ACEOF
4082/* confdefs.h.  */
4083_ACEOF
4084cat confdefs.h >>conftest.$ac_ext
4085cat >>conftest.$ac_ext <<_ACEOF
4086/* end confdefs.h.  */
4087#include <stdlib.h>
4088#include <stdarg.h>
4089#include <string.h>
4090#include <float.h>
4091
4092int
4093main ()
4094{
4095
4096  ;
4097  return 0;
4098}
4099_ACEOF
4100rm -f conftest.$ac_objext
4101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4102  (eval $ac_compile) 2>conftest.er1
4103  ac_status=$?
4104  grep -v '^ *+' conftest.er1 >conftest.err
4105  rm -f conftest.er1
4106  cat conftest.err >&5
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); } &&
4109	 { ac_try='test -z "$ac_c_werror_flag"
4110			 || test ! -s conftest.err'
4111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112  (eval $ac_try) 2>&5
4113  ac_status=$?
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); }; } &&
4116	 { ac_try='test -s conftest.$ac_objext'
4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); }; }; then
4122  ac_cv_header_stdc=yes
4123else
4124  echo "$as_me: failed program was:" >&5
4125sed 's/^/| /' conftest.$ac_ext >&5
4126
4127ac_cv_header_stdc=no
4128fi
4129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4130
4131if test $ac_cv_header_stdc = yes; then
4132  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4133  cat >conftest.$ac_ext <<_ACEOF
4134/* confdefs.h.  */
4135_ACEOF
4136cat confdefs.h >>conftest.$ac_ext
4137cat >>conftest.$ac_ext <<_ACEOF
4138/* end confdefs.h.  */
4139#include <string.h>
4140
4141_ACEOF
4142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4143  $EGREP "memchr" >/dev/null 2>&1; then
4144  :
4145else
4146  ac_cv_header_stdc=no
4147fi
4148rm -f conftest*
4149
4150fi
4151
4152if test $ac_cv_header_stdc = yes; then
4153  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4154  cat >conftest.$ac_ext <<_ACEOF
4155/* confdefs.h.  */
4156_ACEOF
4157cat confdefs.h >>conftest.$ac_ext
4158cat >>conftest.$ac_ext <<_ACEOF
4159/* end confdefs.h.  */
4160#include <stdlib.h>
4161
4162_ACEOF
4163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4164  $EGREP "free" >/dev/null 2>&1; then
4165  :
4166else
4167  ac_cv_header_stdc=no
4168fi
4169rm -f conftest*
4170
4171fi
4172
4173if test $ac_cv_header_stdc = yes; then
4174  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4175  if test "$cross_compiling" = yes; then
4176  :
4177else
4178  cat >conftest.$ac_ext <<_ACEOF
4179/* confdefs.h.  */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
4183/* end confdefs.h.  */
4184#include <ctype.h>
4185#if ((' ' & 0x0FF) == 0x020)
4186# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4187# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4188#else
4189# define ISLOWER(c) \
4190		   (('a' <= (c) && (c) <= 'i') \
4191		     || ('j' <= (c) && (c) <= 'r') \
4192		     || ('s' <= (c) && (c) <= 'z'))
4193# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4194#endif
4195
4196#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4197int
4198main ()
4199{
4200  int i;
4201  for (i = 0; i < 256; i++)
4202    if (XOR (islower (i), ISLOWER (i))
4203	|| toupper (i) != TOUPPER (i))
4204      exit(2);
4205  exit (0);
4206}
4207_ACEOF
4208rm -f conftest$ac_exeext
4209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4210  (eval $ac_link) 2>&5
4211  ac_status=$?
4212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215  (eval $ac_try) 2>&5
4216  ac_status=$?
4217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218  (exit $ac_status); }; }; then
4219  :
4220else
4221  echo "$as_me: program exited with status $ac_status" >&5
4222echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225( exit $ac_status )
4226ac_cv_header_stdc=no
4227fi
4228rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4229fi
4230fi
4231fi
4232echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4233echo "${ECHO_T}$ac_cv_header_stdc" >&6
4234if test $ac_cv_header_stdc = yes; then
4235
4236cat >>confdefs.h <<\_ACEOF
4237#define STDC_HEADERS 1
4238_ACEOF
4239
4240fi
4241
4242# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4253		  inttypes.h stdint.h unistd.h
4254do
4255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4256echo "$as_me:$LINENO: checking for $ac_header" >&5
4257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4258if eval "test \"\${$as_ac_Header+set}\" = set"; then
4259  echo $ECHO_N "(cached) $ECHO_C" >&6
4260else
4261  cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h.  */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h.  */
4267$ac_includes_default
4268
4269#include <$ac_header>
4270_ACEOF
4271rm -f conftest.$ac_objext
4272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4273  (eval $ac_compile) 2>conftest.er1
4274  ac_status=$?
4275  grep -v '^ *+' conftest.er1 >conftest.err
4276  rm -f conftest.er1
4277  cat conftest.err >&5
4278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279  (exit $ac_status); } &&
4280	 { ac_try='test -z "$ac_c_werror_flag"
4281			 || test ! -s conftest.err'
4282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283  (eval $ac_try) 2>&5
4284  ac_status=$?
4285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286  (exit $ac_status); }; } &&
4287	 { ac_try='test -s conftest.$ac_objext'
4288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289  (eval $ac_try) 2>&5
4290  ac_status=$?
4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292  (exit $ac_status); }; }; then
4293  eval "$as_ac_Header=yes"
4294else
4295  echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298eval "$as_ac_Header=no"
4299fi
4300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4301fi
4302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4304if test `eval echo '${'$as_ac_Header'}'` = yes; then
4305  cat >>confdefs.h <<_ACEOF
4306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4307_ACEOF
4308
4309fi
4310
4311done
4312
4313
4314
4315for ac_header in dlfcn.h
4316do
4317as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4318if eval "test \"\${$as_ac_Header+set}\" = set"; then
4319  echo "$as_me:$LINENO: checking for $ac_header" >&5
4320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4321if eval "test \"\${$as_ac_Header+set}\" = set"; then
4322  echo $ECHO_N "(cached) $ECHO_C" >&6
4323fi
4324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4326else
4327  # Is the header compilable?
4328echo "$as_me:$LINENO: checking $ac_header usability" >&5
4329echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4330cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h.  */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h.  */
4336$ac_includes_default
4337#include <$ac_header>
4338_ACEOF
4339rm -f conftest.$ac_objext
4340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341  (eval $ac_compile) 2>conftest.er1
4342  ac_status=$?
4343  grep -v '^ *+' conftest.er1 >conftest.err
4344  rm -f conftest.er1
4345  cat conftest.err >&5
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); } &&
4348	 { ac_try='test -z "$ac_c_werror_flag"
4349			 || test ! -s conftest.err'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; } &&
4355	 { ac_try='test -s conftest.$ac_objext'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; }; then
4361  ac_header_compiler=yes
4362else
4363  echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366ac_header_compiler=no
4367fi
4368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4370echo "${ECHO_T}$ac_header_compiler" >&6
4371
4372# Is the header present?
4373echo "$as_me:$LINENO: checking $ac_header presence" >&5
4374echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4375cat >conftest.$ac_ext <<_ACEOF
4376/* confdefs.h.  */
4377_ACEOF
4378cat confdefs.h >>conftest.$ac_ext
4379cat >>conftest.$ac_ext <<_ACEOF
4380/* end confdefs.h.  */
4381#include <$ac_header>
4382_ACEOF
4383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4384  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4385  ac_status=$?
4386  grep -v '^ *+' conftest.er1 >conftest.err
4387  rm -f conftest.er1
4388  cat conftest.err >&5
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); } >/dev/null; then
4391  if test -s conftest.err; then
4392    ac_cpp_err=$ac_c_preproc_warn_flag
4393    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4394  else
4395    ac_cpp_err=
4396  fi
4397else
4398  ac_cpp_err=yes
4399fi
4400if test -z "$ac_cpp_err"; then
4401  ac_header_preproc=yes
4402else
4403  echo "$as_me: failed program was:" >&5
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
4406  ac_header_preproc=no
4407fi
4408rm -f conftest.err conftest.$ac_ext
4409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4410echo "${ECHO_T}$ac_header_preproc" >&6
4411
4412# So?  What about this header?
4413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4414  yes:no: )
4415    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4416echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4417    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4418echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4419    ac_header_preproc=yes
4420    ;;
4421  no:yes:* )
4422    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4423echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4424    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4425echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4426    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4427echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4428    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4429echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4430    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4431echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4432    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4433echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4434    (
4435      cat <<\_ASBOX
4436## ---------------------------------- ##
4437## Report this to bug-libtool@gnu.org ##
4438## ---------------------------------- ##
4439_ASBOX
4440    ) |
4441      sed "s/^/$as_me: WARNING:     /" >&2
4442    ;;
4443esac
4444echo "$as_me:$LINENO: checking for $ac_header" >&5
4445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4446if eval "test \"\${$as_ac_Header+set}\" = set"; then
4447  echo $ECHO_N "(cached) $ECHO_C" >&6
4448else
4449  eval "$as_ac_Header=\$ac_header_preproc"
4450fi
4451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4453
4454fi
4455if test `eval echo '${'$as_ac_Header'}'` = yes; then
4456  cat >>confdefs.h <<_ACEOF
4457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4458_ACEOF
4459
4460fi
4461
4462done
4463
4464ac_ext=cc
4465ac_cpp='$CXXCPP $CPPFLAGS'
4466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4469if test -n "$ac_tool_prefix"; then
4470  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4471  do
4472    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4473set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4474echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476if test "${ac_cv_prog_CXX+set}" = set; then
4477  echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479  if test -n "$CXX"; then
4480  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485  IFS=$as_save_IFS
4486  test -z "$as_dir" && as_dir=.
4487  for ac_exec_ext in '' $ac_executable_extensions; do
4488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491    break 2
4492  fi
4493done
4494done
4495
4496fi
4497fi
4498CXX=$ac_cv_prog_CXX
4499if test -n "$CXX"; then
4500  echo "$as_me:$LINENO: result: $CXX" >&5
4501echo "${ECHO_T}$CXX" >&6
4502else
4503  echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
4505fi
4506
4507    test -n "$CXX" && break
4508  done
4509fi
4510if test -z "$CXX"; then
4511  ac_ct_CXX=$CXX
4512  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4513do
4514  # Extract the first word of "$ac_prog", so it can be a program name with args.
4515set dummy $ac_prog; ac_word=$2
4516echo "$as_me:$LINENO: checking for $ac_word" >&5
4517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4518if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4519  echo $ECHO_N "(cached) $ECHO_C" >&6
4520else
4521  if test -n "$ac_ct_CXX"; then
4522  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4523else
4524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH
4526do
4527  IFS=$as_save_IFS
4528  test -z "$as_dir" && as_dir=.
4529  for ac_exec_ext in '' $ac_executable_extensions; do
4530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531    ac_cv_prog_ac_ct_CXX="$ac_prog"
4532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533    break 2
4534  fi
4535done
4536done
4537
4538fi
4539fi
4540ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4541if test -n "$ac_ct_CXX"; then
4542  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4543echo "${ECHO_T}$ac_ct_CXX" >&6
4544else
4545  echo "$as_me:$LINENO: result: no" >&5
4546echo "${ECHO_T}no" >&6
4547fi
4548
4549  test -n "$ac_ct_CXX" && break
4550done
4551test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4552
4553  CXX=$ac_ct_CXX
4554fi
4555
4556
4557# Provide some information about the compiler.
4558echo "$as_me:$LINENO:" \
4559     "checking for C++ compiler version" >&5
4560ac_compiler=`set X $ac_compile; echo $2`
4561{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4562  (eval $ac_compiler --version </dev/null >&5) 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); }
4566{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4567  (eval $ac_compiler -v </dev/null >&5) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); }
4571{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4572  (eval $ac_compiler -V </dev/null >&5) 2>&5
4573  ac_status=$?
4574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575  (exit $ac_status); }
4576
4577echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4578echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4579if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582  cat >conftest.$ac_ext <<_ACEOF
4583/* confdefs.h.  */
4584_ACEOF
4585cat confdefs.h >>conftest.$ac_ext
4586cat >>conftest.$ac_ext <<_ACEOF
4587/* end confdefs.h.  */
4588
4589int
4590main ()
4591{
4592#ifndef __GNUC__
4593       choke me
4594#endif
4595
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600rm -f conftest.$ac_objext
4601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4602  (eval $ac_compile) 2>conftest.er1
4603  ac_status=$?
4604  grep -v '^ *+' conftest.er1 >conftest.err
4605  rm -f conftest.er1
4606  cat conftest.err >&5
4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608  (exit $ac_status); } &&
4609	 { ac_try='test -z "$ac_cxx_werror_flag"
4610			 || test ! -s conftest.err'
4611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612  (eval $ac_try) 2>&5
4613  ac_status=$?
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); }; } &&
4616	 { ac_try='test -s conftest.$ac_objext'
4617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618  (eval $ac_try) 2>&5
4619  ac_status=$?
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); }; }; then
4622  ac_compiler_gnu=yes
4623else
4624  echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
4627ac_compiler_gnu=no
4628fi
4629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4630ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4631
4632fi
4633echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4634echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4635GXX=`test $ac_compiler_gnu = yes && echo yes`
4636ac_test_CXXFLAGS=${CXXFLAGS+set}
4637ac_save_CXXFLAGS=$CXXFLAGS
4638CXXFLAGS="-g"
4639echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4640echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4641if test "${ac_cv_prog_cxx_g+set}" = set; then
4642  echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644  cat >conftest.$ac_ext <<_ACEOF
4645/* confdefs.h.  */
4646_ACEOF
4647cat confdefs.h >>conftest.$ac_ext
4648cat >>conftest.$ac_ext <<_ACEOF
4649/* end confdefs.h.  */
4650
4651int
4652main ()
4653{
4654
4655  ;
4656  return 0;
4657}
4658_ACEOF
4659rm -f conftest.$ac_objext
4660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4661  (eval $ac_compile) 2>conftest.er1
4662  ac_status=$?
4663  grep -v '^ *+' conftest.er1 >conftest.err
4664  rm -f conftest.er1
4665  cat conftest.err >&5
4666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667  (exit $ac_status); } &&
4668	 { ac_try='test -z "$ac_cxx_werror_flag"
4669			 || test ! -s conftest.err'
4670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4671  (eval $ac_try) 2>&5
4672  ac_status=$?
4673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674  (exit $ac_status); }; } &&
4675	 { ac_try='test -s conftest.$ac_objext'
4676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677  (eval $ac_try) 2>&5
4678  ac_status=$?
4679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680  (exit $ac_status); }; }; then
4681  ac_cv_prog_cxx_g=yes
4682else
4683  echo "$as_me: failed program was:" >&5
4684sed 's/^/| /' conftest.$ac_ext >&5
4685
4686ac_cv_prog_cxx_g=no
4687fi
4688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4689fi
4690echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4691echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4692if test "$ac_test_CXXFLAGS" = set; then
4693  CXXFLAGS=$ac_save_CXXFLAGS
4694elif test $ac_cv_prog_cxx_g = yes; then
4695  if test "$GXX" = yes; then
4696    CXXFLAGS="-g -O2"
4697  else
4698    CXXFLAGS="-g"
4699  fi
4700else
4701  if test "$GXX" = yes; then
4702    CXXFLAGS="-O2"
4703  else
4704    CXXFLAGS=
4705  fi
4706fi
4707for ac_declaration in \
4708   '' \
4709   'extern "C" void std::exit (int) throw (); using std::exit;' \
4710   'extern "C" void std::exit (int); using std::exit;' \
4711   'extern "C" void exit (int) throw ();' \
4712   'extern "C" void exit (int);' \
4713   'void exit (int);'
4714do
4715  cat >conftest.$ac_ext <<_ACEOF
4716/* confdefs.h.  */
4717_ACEOF
4718cat confdefs.h >>conftest.$ac_ext
4719cat >>conftest.$ac_ext <<_ACEOF
4720/* end confdefs.h.  */
4721$ac_declaration
4722#include <stdlib.h>
4723int
4724main ()
4725{
4726exit (42);
4727  ;
4728  return 0;
4729}
4730_ACEOF
4731rm -f conftest.$ac_objext
4732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4733  (eval $ac_compile) 2>conftest.er1
4734  ac_status=$?
4735  grep -v '^ *+' conftest.er1 >conftest.err
4736  rm -f conftest.er1
4737  cat conftest.err >&5
4738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739  (exit $ac_status); } &&
4740	 { ac_try='test -z "$ac_cxx_werror_flag"
4741			 || test ! -s conftest.err'
4742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743  (eval $ac_try) 2>&5
4744  ac_status=$?
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); }; } &&
4747	 { ac_try='test -s conftest.$ac_objext'
4748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749  (eval $ac_try) 2>&5
4750  ac_status=$?
4751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752  (exit $ac_status); }; }; then
4753  :
4754else
4755  echo "$as_me: failed program was:" >&5
4756sed 's/^/| /' conftest.$ac_ext >&5
4757
4758continue
4759fi
4760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4761  cat >conftest.$ac_ext <<_ACEOF
4762/* confdefs.h.  */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h.  */
4767$ac_declaration
4768int
4769main ()
4770{
4771exit (42);
4772  ;
4773  return 0;
4774}
4775_ACEOF
4776rm -f conftest.$ac_objext
4777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4778  (eval $ac_compile) 2>conftest.er1
4779  ac_status=$?
4780  grep -v '^ *+' conftest.er1 >conftest.err
4781  rm -f conftest.er1
4782  cat conftest.err >&5
4783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784  (exit $ac_status); } &&
4785	 { ac_try='test -z "$ac_cxx_werror_flag"
4786			 || test ! -s conftest.err'
4787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4788  (eval $ac_try) 2>&5
4789  ac_status=$?
4790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791  (exit $ac_status); }; } &&
4792	 { ac_try='test -s conftest.$ac_objext'
4793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794  (eval $ac_try) 2>&5
4795  ac_status=$?
4796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797  (exit $ac_status); }; }; then
4798  break
4799else
4800  echo "$as_me: failed program was:" >&5
4801sed 's/^/| /' conftest.$ac_ext >&5
4802
4803fi
4804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4805done
4806rm -f conftest*
4807if test -n "$ac_declaration"; then
4808  echo '#ifdef __cplusplus' >>confdefs.h
4809  echo $ac_declaration      >>confdefs.h
4810  echo '#endif'             >>confdefs.h
4811fi
4812
4813ac_ext=cc
4814ac_cpp='$CXXCPP $CPPFLAGS'
4815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4818
4819depcc="$CXX"  am_compiler_list=
4820
4821echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4822echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4823if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4824  echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4827  # We make a subdir and do the tests there.  Otherwise we can end up
4828  # making bogus files that we don't know about and never remove.  For
4829  # instance it was reported that on HP-UX the gcc test will end up
4830  # making a dummy file named `D' -- because `-MD' means `put the output
4831  # in D'.
4832  mkdir conftest.dir
4833  # Copy depcomp to subdir because otherwise we won't find it if we're
4834  # using a relative directory.
4835  cp "$am_depcomp" conftest.dir
4836  cd conftest.dir
4837  # We will build objects and dependencies in a subdirectory because
4838  # it helps to detect inapplicable dependency modes.  For instance
4839  # both Tru64's cc and ICC support -MD to output dependencies as a
4840  # side effect of compilation, but ICC will put the dependencies in
4841  # the current directory while Tru64 will put them in the object
4842  # directory.
4843  mkdir sub
4844
4845  am_cv_CXX_dependencies_compiler_type=none
4846  if test "$am_compiler_list" = ""; then
4847     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4848  fi
4849  for depmode in $am_compiler_list; do
4850    # Setup a source with many dependencies, because some compilers
4851    # like to wrap large dependency lists on column 80 (with \), and
4852    # we should not choose a depcomp mode which is confused by this.
4853    #
4854    # We need to recreate these files for each test, as the compiler may
4855    # overwrite some of them when testing with obscure command lines.
4856    # This happens at least with the AIX C compiler.
4857    : > sub/conftest.c
4858    for i in 1 2 3 4 5 6; do
4859      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4860      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4861      # Solaris 8's {/usr,}/bin/sh.
4862      touch sub/conftst$i.h
4863    done
4864    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4865
4866    case $depmode in
4867    nosideeffect)
4868      # after this tag, mechanisms are not by side-effect, so they'll
4869      # only be used when explicitly requested
4870      if test "x$enable_dependency_tracking" = xyes; then
4871	continue
4872      else
4873	break
4874      fi
4875      ;;
4876    none) break ;;
4877    esac
4878    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4879    # mode.  It turns out that the SunPro C++ compiler does not properly
4880    # handle `-M -o', and we need to detect this.
4881    if depmode=$depmode \
4882       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4883       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4884       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4885         >/dev/null 2>conftest.err &&
4886       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4887       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4888       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4889      # icc doesn't choke on unknown options, it will just issue warnings
4890      # or remarks (even with -Werror).  So we grep stderr for any message
4891      # that says an option was ignored or not supported.
4892      # When given -MP, icc 7.0 and 7.1 complain thusly:
4893      #   icc: Command line warning: ignoring option '-M'; no argument required
4894      # The diagnosis changed in icc 8.0:
4895      #   icc: Command line remark: option '-MP' not supported
4896      if (grep 'ignoring option' conftest.err ||
4897          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4898        am_cv_CXX_dependencies_compiler_type=$depmode
4899        break
4900      fi
4901    fi
4902  done
4903
4904  cd ..
4905  rm -rf conftest.dir
4906else
4907  am_cv_CXX_dependencies_compiler_type=none
4908fi
4909
4910fi
4911echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4912echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4913CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4914
4915
4916
4917if
4918  test "x$enable_dependency_tracking" != xno \
4919  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4920  am__fastdepCXX_TRUE=
4921  am__fastdepCXX_FALSE='#'
4922else
4923  am__fastdepCXX_TRUE='#'
4924  am__fastdepCXX_FALSE=
4925fi
4926
4927
4928
4929
4930if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4931    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4932    (test "X$CXX" != "Xg++"))) ; then
4933  ac_ext=cc
4934ac_cpp='$CXXCPP $CPPFLAGS'
4935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4938echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4939echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4940if test -z "$CXXCPP"; then
4941  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4942  echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944      # Double quotes because CXXCPP needs to be expanded
4945    for CXXCPP in "$CXX -E" "/lib/cpp"
4946    do
4947      ac_preproc_ok=false
4948for ac_cxx_preproc_warn_flag in '' yes
4949do
4950  # Use a header file that comes with gcc, so configuring glibc
4951  # with a fresh cross-compiler works.
4952  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953  # <limits.h> exists even on freestanding compilers.
4954  # On the NeXT, cc -E runs the code through the compiler's parser,
4955  # not just through cpp. "Syntax error" is here to catch this case.
4956  cat >conftest.$ac_ext <<_ACEOF
4957/* confdefs.h.  */
4958_ACEOF
4959cat confdefs.h >>conftest.$ac_ext
4960cat >>conftest.$ac_ext <<_ACEOF
4961/* end confdefs.h.  */
4962#ifdef __STDC__
4963# include <limits.h>
4964#else
4965# include <assert.h>
4966#endif
4967		     Syntax error
4968_ACEOF
4969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4970  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4971  ac_status=$?
4972  grep -v '^ *+' conftest.er1 >conftest.err
4973  rm -f conftest.er1
4974  cat conftest.err >&5
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); } >/dev/null; then
4977  if test -s conftest.err; then
4978    ac_cpp_err=$ac_cxx_preproc_warn_flag
4979    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4980  else
4981    ac_cpp_err=
4982  fi
4983else
4984  ac_cpp_err=yes
4985fi
4986if test -z "$ac_cpp_err"; then
4987  :
4988else
4989  echo "$as_me: failed program was:" >&5
4990sed 's/^/| /' conftest.$ac_ext >&5
4991
4992  # Broken: fails on valid input.
4993continue
4994fi
4995rm -f conftest.err conftest.$ac_ext
4996
4997  # OK, works on sane cases.  Now check whether non-existent headers
4998  # can be detected and how.
4999  cat >conftest.$ac_ext <<_ACEOF
5000/* confdefs.h.  */
5001_ACEOF
5002cat confdefs.h >>conftest.$ac_ext
5003cat >>conftest.$ac_ext <<_ACEOF
5004/* end confdefs.h.  */
5005#include <ac_nonexistent.h>
5006_ACEOF
5007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009  ac_status=$?
5010  grep -v '^ *+' conftest.er1 >conftest.err
5011  rm -f conftest.er1
5012  cat conftest.err >&5
5013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014  (exit $ac_status); } >/dev/null; then
5015  if test -s conftest.err; then
5016    ac_cpp_err=$ac_cxx_preproc_warn_flag
5017    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5018  else
5019    ac_cpp_err=
5020  fi
5021else
5022  ac_cpp_err=yes
5023fi
5024if test -z "$ac_cpp_err"; then
5025  # Broken: success on invalid input.
5026continue
5027else
5028  echo "$as_me: failed program was:" >&5
5029sed 's/^/| /' conftest.$ac_ext >&5
5030
5031  # Passes both tests.
5032ac_preproc_ok=:
5033break
5034fi
5035rm -f conftest.err conftest.$ac_ext
5036
5037done
5038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5039rm -f conftest.err conftest.$ac_ext
5040if $ac_preproc_ok; then
5041  break
5042fi
5043
5044    done
5045    ac_cv_prog_CXXCPP=$CXXCPP
5046
5047fi
5048  CXXCPP=$ac_cv_prog_CXXCPP
5049else
5050  ac_cv_prog_CXXCPP=$CXXCPP
5051fi
5052echo "$as_me:$LINENO: result: $CXXCPP" >&5
5053echo "${ECHO_T}$CXXCPP" >&6
5054ac_preproc_ok=false
5055for ac_cxx_preproc_warn_flag in '' yes
5056do
5057  # Use a header file that comes with gcc, so configuring glibc
5058  # with a fresh cross-compiler works.
5059  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5060  # <limits.h> exists even on freestanding compilers.
5061  # On the NeXT, cc -E runs the code through the compiler's parser,
5062  # not just through cpp. "Syntax error" is here to catch this case.
5063  cat >conftest.$ac_ext <<_ACEOF
5064/* confdefs.h.  */
5065_ACEOF
5066cat confdefs.h >>conftest.$ac_ext
5067cat >>conftest.$ac_ext <<_ACEOF
5068/* end confdefs.h.  */
5069#ifdef __STDC__
5070# include <limits.h>
5071#else
5072# include <assert.h>
5073#endif
5074		     Syntax error
5075_ACEOF
5076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5077  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5078  ac_status=$?
5079  grep -v '^ *+' conftest.er1 >conftest.err
5080  rm -f conftest.er1
5081  cat conftest.err >&5
5082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083  (exit $ac_status); } >/dev/null; then
5084  if test -s conftest.err; then
5085    ac_cpp_err=$ac_cxx_preproc_warn_flag
5086    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5087  else
5088    ac_cpp_err=
5089  fi
5090else
5091  ac_cpp_err=yes
5092fi
5093if test -z "$ac_cpp_err"; then
5094  :
5095else
5096  echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099  # Broken: fails on valid input.
5100continue
5101fi
5102rm -f conftest.err conftest.$ac_ext
5103
5104  # OK, works on sane cases.  Now check whether non-existent headers
5105  # can be detected and how.
5106  cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h.  */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h.  */
5112#include <ac_nonexistent.h>
5113_ACEOF
5114if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116  ac_status=$?
5117  grep -v '^ *+' conftest.er1 >conftest.err
5118  rm -f conftest.er1
5119  cat conftest.err >&5
5120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121  (exit $ac_status); } >/dev/null; then
5122  if test -s conftest.err; then
5123    ac_cpp_err=$ac_cxx_preproc_warn_flag
5124    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5125  else
5126    ac_cpp_err=
5127  fi
5128else
5129  ac_cpp_err=yes
5130fi
5131if test -z "$ac_cpp_err"; then
5132  # Broken: success on invalid input.
5133continue
5134else
5135  echo "$as_me: failed program was:" >&5
5136sed 's/^/| /' conftest.$ac_ext >&5
5137
5138  # Passes both tests.
5139ac_preproc_ok=:
5140break
5141fi
5142rm -f conftest.err conftest.$ac_ext
5143
5144done
5145# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5146rm -f conftest.err conftest.$ac_ext
5147if $ac_preproc_ok; then
5148  :
5149else
5150  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5151See \`config.log' for more details." >&5
5152echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5153See \`config.log' for more details." >&2;}
5154   { (exit 1); exit 1; }; }
5155fi
5156
5157ac_ext=cc
5158ac_cpp='$CXXCPP $CPPFLAGS'
5159ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5162
5163fi
5164
5165
5166ac_ext=f
5167ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5168ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5169ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5170if test -n "$ac_tool_prefix"; then
5171  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5172  do
5173    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175echo "$as_me:$LINENO: checking for $ac_word" >&5
5176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5177if test "${ac_cv_prog_F77+set}" = set; then
5178  echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180  if test -n "$F77"; then
5181  ac_cv_prog_F77="$F77" # Let the user override the test.
5182else
5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184for as_dir in $PATH
5185do
5186  IFS=$as_save_IFS
5187  test -z "$as_dir" && as_dir=.
5188  for ac_exec_ext in '' $ac_executable_extensions; do
5189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192    break 2
5193  fi
5194done
5195done
5196
5197fi
5198fi
5199F77=$ac_cv_prog_F77
5200if test -n "$F77"; then
5201  echo "$as_me:$LINENO: result: $F77" >&5
5202echo "${ECHO_T}$F77" >&6
5203else
5204  echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
5206fi
5207
5208    test -n "$F77" && break
5209  done
5210fi
5211if test -z "$F77"; then
5212  ac_ct_F77=$F77
5213  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5214do
5215  # Extract the first word of "$ac_prog", so it can be a program name with args.
5216set dummy $ac_prog; ac_word=$2
5217echo "$as_me:$LINENO: checking for $ac_word" >&5
5218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5219if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5220  echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222  if test -n "$ac_ct_F77"; then
5223  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228  IFS=$as_save_IFS
5229  test -z "$as_dir" && as_dir=.
5230  for ac_exec_ext in '' $ac_executable_extensions; do
5231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232    ac_cv_prog_ac_ct_F77="$ac_prog"
5233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5234    break 2
5235  fi
5236done
5237done
5238
5239fi
5240fi
5241ac_ct_F77=$ac_cv_prog_ac_ct_F77
5242if test -n "$ac_ct_F77"; then
5243  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5244echo "${ECHO_T}$ac_ct_F77" >&6
5245else
5246  echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248fi
5249
5250  test -n "$ac_ct_F77" && break
5251done
5252
5253  F77=$ac_ct_F77
5254fi
5255
5256
5257# Provide some information about the compiler.
5258echo "$as_me:5258:" \
5259     "checking for Fortran 77 compiler version" >&5
5260ac_compiler=`set X $ac_compile; echo $2`
5261{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5262  (eval $ac_compiler --version </dev/null >&5) 2>&5
5263  ac_status=$?
5264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265  (exit $ac_status); }
5266{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5267  (eval $ac_compiler -v </dev/null >&5) 2>&5
5268  ac_status=$?
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); }
5271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5272  (eval $ac_compiler -V </dev/null >&5) 2>&5
5273  ac_status=$?
5274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275  (exit $ac_status); }
5276rm -f a.out
5277
5278# If we don't use `.F' as extension, the preprocessor is not run on the
5279# input file.  (Note that this only needs to work for GNU compilers.)
5280ac_save_ext=$ac_ext
5281ac_ext=F
5282echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5283echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5284if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5285  echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287  cat >conftest.$ac_ext <<_ACEOF
5288      program main
5289#ifndef __GNUC__
5290       choke me
5291#endif
5292
5293      end
5294_ACEOF
5295rm -f conftest.$ac_objext
5296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5297  (eval $ac_compile) 2>conftest.er1
5298  ac_status=$?
5299  grep -v '^ *+' conftest.er1 >conftest.err
5300  rm -f conftest.er1
5301  cat conftest.err >&5
5302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303  (exit $ac_status); } &&
5304	 { ac_try='test -z "$ac_f77_werror_flag"
5305			 || test ! -s conftest.err'
5306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307  (eval $ac_try) 2>&5
5308  ac_status=$?
5309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310  (exit $ac_status); }; } &&
5311	 { ac_try='test -s conftest.$ac_objext'
5312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313  (eval $ac_try) 2>&5
5314  ac_status=$?
5315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316  (exit $ac_status); }; }; then
5317  ac_compiler_gnu=yes
5318else
5319  echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322ac_compiler_gnu=no
5323fi
5324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5325ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5326
5327fi
5328echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5329echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5330ac_ext=$ac_save_ext
5331ac_test_FFLAGS=${FFLAGS+set}
5332ac_save_FFLAGS=$FFLAGS
5333FFLAGS=
5334echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5335echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5336if test "${ac_cv_prog_f77_g+set}" = set; then
5337  echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339  FFLAGS=-g
5340cat >conftest.$ac_ext <<_ACEOF
5341      program main
5342
5343      end
5344_ACEOF
5345rm -f conftest.$ac_objext
5346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5347  (eval $ac_compile) 2>conftest.er1
5348  ac_status=$?
5349  grep -v '^ *+' conftest.er1 >conftest.err
5350  rm -f conftest.er1
5351  cat conftest.err >&5
5352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353  (exit $ac_status); } &&
5354	 { ac_try='test -z "$ac_f77_werror_flag"
5355			 || test ! -s conftest.err'
5356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357  (eval $ac_try) 2>&5
5358  ac_status=$?
5359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360  (exit $ac_status); }; } &&
5361	 { ac_try='test -s conftest.$ac_objext'
5362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363  (eval $ac_try) 2>&5
5364  ac_status=$?
5365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366  (exit $ac_status); }; }; then
5367  ac_cv_prog_f77_g=yes
5368else
5369  echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
5372ac_cv_prog_f77_g=no
5373fi
5374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5375
5376fi
5377echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5378echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5379if test "$ac_test_FFLAGS" = set; then
5380  FFLAGS=$ac_save_FFLAGS
5381elif test $ac_cv_prog_f77_g = yes; then
5382  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5383    FFLAGS="-g -O2"
5384  else
5385    FFLAGS="-g"
5386  fi
5387else
5388  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5389    FFLAGS="-O2"
5390  else
5391    FFLAGS=
5392  fi
5393fi
5394
5395G77=`test $ac_compiler_gnu = yes && echo yes`
5396ac_ext=c
5397ac_cpp='$CPP $CPPFLAGS'
5398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401
5402
5403
5404# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5405
5406# find the maximum length of command line arguments
5407echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5408echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5409if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5410  echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412    i=0
5413  teststring="ABCD"
5414
5415  case $build_os in
5416  msdosdjgpp*)
5417    # On DJGPP, this test can blow up pretty badly due to problems in libc
5418    # (any single argument exceeding 2000 bytes causes a buffer overrun
5419    # during glob expansion).  Even if it were fixed, the result of this
5420    # check would be larger than it should be.
5421    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5422    ;;
5423
5424  gnu*)
5425    # Under GNU Hurd, this test is not required because there is
5426    # no limit to the length of command line arguments.
5427    # Libtool will interpret -1 as no limit whatsoever
5428    lt_cv_sys_max_cmd_len=-1;
5429    ;;
5430
5431  cygwin* | mingw*)
5432    # On Win9x/ME, this test blows up -- it succeeds, but takes
5433    # about 5 minutes as the teststring grows exponentially.
5434    # Worse, since 9x/ME are not pre-emptively multitasking,
5435    # you end up with a "frozen" computer, even though with patience
5436    # the test eventually succeeds (with a max line length of 256k).
5437    # Instead, let's just punt: use the minimum linelength reported by
5438    # all of the supported platforms: 8192 (on NT/2K/XP).
5439    lt_cv_sys_max_cmd_len=8192;
5440    ;;
5441
5442  amigaos*)
5443    # On AmigaOS with pdksh, this test takes hours, literally.
5444    # So we just punt and use a minimum line length of 8192.
5445    lt_cv_sys_max_cmd_len=8192;
5446    ;;
5447
5448  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5449    # This has been around since 386BSD, at least.  Likely further.
5450    if test -x /sbin/sysctl; then
5451      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5452    elif test -x /usr/sbin/sysctl; then
5453      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5454    else
5455      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5456    fi
5457    # And add a safety zone
5458    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5459    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5460    ;;
5461  osf*)
5462    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5463    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5464    # nice to cause kernel panics so lets avoid the loop below.
5465    # First set a reasonable default.
5466    lt_cv_sys_max_cmd_len=16384
5467    #
5468    if test -x /sbin/sysconfig; then
5469      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5470        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5471      esac
5472    fi
5473    ;;
5474  *)
5475    # If test is not a shell built-in, we'll probably end up computing a
5476    # maximum length that is only half of the actual maximum length, but
5477    # we can't tell.
5478    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5479    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5480	       = "XX$teststring") >/dev/null 2>&1 &&
5481	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5482	    lt_cv_sys_max_cmd_len=$new_result &&
5483	    test $i != 17 # 1/2 MB should be enough
5484    do
5485      i=`expr $i + 1`
5486      teststring=$teststring$teststring
5487    done
5488    teststring=
5489    # Add a significant safety factor because C++ compilers can tack on massive
5490    # amounts of additional arguments before passing them to the linker.
5491    # It appears as though 1/2 is a usable value.
5492    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5493    ;;
5494  esac
5495
5496fi
5497
5498if test -n $lt_cv_sys_max_cmd_len ; then
5499  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5500echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5501else
5502  echo "$as_me:$LINENO: result: none" >&5
5503echo "${ECHO_T}none" >&6
5504fi
5505
5506
5507
5508
5509# Check for command to grab the raw symbol name followed by C symbol from nm.
5510echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5511echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5512if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5513  echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515
5516# These are sane defaults that work on at least a few old systems.
5517# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5518
5519# Character class describing NM global symbol codes.
5520symcode='[BCDEGRST]'
5521
5522# Regexp to match symbols that can be accessed directly from C.
5523sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5524
5525# Transform an extracted symbol line into a proper C declaration
5526lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5527
5528# Transform an extracted symbol line into symbol name and symbol address
5529lt_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'"
5530
5531# Define system-specific variables.
5532case $host_os in
5533aix*)
5534  symcode='[BCDT]'
5535  ;;
5536cygwin* | mingw* | pw32*)
5537  symcode='[ABCDGISTW]'
5538  ;;
5539hpux*) # Its linker distinguishes data from code symbols
5540  if test "$host_cpu" = ia64; then
5541    symcode='[ABCDEGRST]'
5542  fi
5543  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5544  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'"
5545  ;;
5546linux*)
5547  if test "$host_cpu" = ia64; then
5548    symcode='[ABCDGIRSTW]'
5549    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5550    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'"
5551  fi
5552  ;;
5553irix* | nonstopux*)
5554  symcode='[BCDEGRST]'
5555  ;;
5556osf*)
5557  symcode='[BCDEGQRST]'
5558  ;;
5559solaris* | sysv5*)
5560  symcode='[BDRT]'
5561  ;;
5562sysv4)
5563  symcode='[DFNSTU]'
5564  ;;
5565esac
5566
5567# Handle CRLF in mingw tool chain
5568opt_cr=
5569case $build_os in
5570mingw*)
5571  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5572  ;;
5573esac
5574
5575# If we're using GNU nm, then use its standard symbol codes.
5576case `$NM -V 2>&1` in
5577*GNU* | *'with BFD'*)
5578  symcode='[ABCDGIRSTW]' ;;
5579esac
5580
5581# Try without a prefix undercore, then with it.
5582for ac_symprfx in "" "_"; do
5583
5584  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5585  symxfrm="\\1 $ac_symprfx\\2 \\2"
5586
5587  # Write the raw and C identifiers.
5588  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5589
5590  # Check to see that the pipe works correctly.
5591  pipe_works=no
5592
5593  rm -f conftest*
5594  cat > conftest.$ac_ext <<EOF
5595#ifdef __cplusplus
5596extern "C" {
5597#endif
5598char nm_test_var;
5599void nm_test_func(){}
5600#ifdef __cplusplus
5601}
5602#endif
5603int main(){nm_test_var='a';nm_test_func();return(0);}
5604EOF
5605
5606  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607  (eval $ac_compile) 2>&5
5608  ac_status=$?
5609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610  (exit $ac_status); }; then
5611    # Now try to grab the symbols.
5612    nlist=conftest.nm
5613    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5614  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5615  ac_status=$?
5616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617  (exit $ac_status); } && test -s "$nlist"; then
5618      # Try sorting and uniquifying the output.
5619      if sort "$nlist" | uniq > "$nlist"T; then
5620	mv -f "$nlist"T "$nlist"
5621      else
5622	rm -f "$nlist"T
5623      fi
5624
5625      # Make sure that we snagged all the symbols we need.
5626      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5627	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5628	  cat <<EOF > conftest.$ac_ext
5629#ifdef __cplusplus
5630extern "C" {
5631#endif
5632
5633EOF
5634	  # Now generate the symbol file.
5635	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5636
5637	  cat <<EOF >> conftest.$ac_ext
5638#if defined (__STDC__) && __STDC__
5639# define lt_ptr_t void *
5640#else
5641# define lt_ptr_t char *
5642# define const
5643#endif
5644
5645/* The mapping between symbol names and symbols. */
5646const struct {
5647  const char *name;
5648  lt_ptr_t address;
5649}
5650lt_preloaded_symbols[] =
5651{
5652EOF
5653	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5654	  cat <<\EOF >> conftest.$ac_ext
5655  {0, (lt_ptr_t) 0}
5656};
5657
5658#ifdef __cplusplus
5659}
5660#endif
5661EOF
5662	  # Now try linking the two files.
5663	  mv conftest.$ac_objext conftstm.$ac_objext
5664	  lt_save_LIBS="$LIBS"
5665	  lt_save_CFLAGS="$CFLAGS"
5666	  LIBS="conftstm.$ac_objext"
5667	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5668	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5669  (eval $ac_link) 2>&5
5670  ac_status=$?
5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5673	    pipe_works=yes
5674	  fi
5675	  LIBS="$lt_save_LIBS"
5676	  CFLAGS="$lt_save_CFLAGS"
5677	else
5678	  echo "cannot find nm_test_func in $nlist" >&5
5679	fi
5680      else
5681	echo "cannot find nm_test_var in $nlist" >&5
5682      fi
5683    else
5684      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5685    fi
5686  else
5687    echo "$progname: failed program was:" >&5
5688    cat conftest.$ac_ext >&5
5689  fi
5690  rm -f conftest* conftst*
5691
5692  # Do not use the global_symbol_pipe unless it works.
5693  if test "$pipe_works" = yes; then
5694    break
5695  else
5696    lt_cv_sys_global_symbol_pipe=
5697  fi
5698done
5699
5700fi
5701
5702if test -z "$lt_cv_sys_global_symbol_pipe"; then
5703  lt_cv_sys_global_symbol_to_cdecl=
5704fi
5705if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5706  echo "$as_me:$LINENO: result: failed" >&5
5707echo "${ECHO_T}failed" >&6
5708else
5709  echo "$as_me:$LINENO: result: ok" >&5
5710echo "${ECHO_T}ok" >&6
5711fi
5712
5713echo "$as_me:$LINENO: checking for objdir" >&5
5714echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5715if test "${lt_cv_objdir+set}" = set; then
5716  echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718  rm -f .libs 2>/dev/null
5719mkdir .libs 2>/dev/null
5720if test -d .libs; then
5721  lt_cv_objdir=.libs
5722else
5723  # MS-DOS does not allow filenames that begin with a dot.
5724  lt_cv_objdir=_libs
5725fi
5726rmdir .libs 2>/dev/null
5727fi
5728echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5729echo "${ECHO_T}$lt_cv_objdir" >&6
5730objdir=$lt_cv_objdir
5731
5732
5733
5734
5735
5736case $host_os in
5737aix3*)
5738  # AIX sometimes has problems with the GCC collect2 program.  For some
5739  # reason, if we set the COLLECT_NAMES environment variable, the problems
5740  # vanish in a puff of smoke.
5741  if test "X${COLLECT_NAMES+set}" != Xset; then
5742    COLLECT_NAMES=
5743    export COLLECT_NAMES
5744  fi
5745  ;;
5746esac
5747
5748# Sed substitution that helps us do robust quoting.  It backslashifies
5749# metacharacters that are still active within double-quoted strings.
5750Xsed='sed -e 1s/^X//'
5751sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5752
5753# Same as above, but do not quote variable references.
5754double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5755
5756# Sed substitution to delay expansion of an escaped shell variable in a
5757# double_quote_subst'ed string.
5758delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5759
5760# Sed substitution to avoid accidental globbing in evaled expressions
5761no_glob_subst='s/\*/\\\*/g'
5762
5763# Constants:
5764rm="rm -f"
5765
5766# Global variables:
5767default_ofile=libtool
5768can_build_shared=yes
5769
5770# All known linkers require a `.a' archive for static linking (except MSVC,
5771# which needs '.lib').
5772libext=a
5773ltmain="$ac_aux_dir/ltmain.sh"
5774ofile="$default_ofile"
5775with_gnu_ld="$lt_cv_prog_gnu_ld"
5776
5777if test -n "$ac_tool_prefix"; then
5778  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5779set dummy ${ac_tool_prefix}ar; ac_word=$2
5780echo "$as_me:$LINENO: checking for $ac_word" >&5
5781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5782if test "${ac_cv_prog_AR+set}" = set; then
5783  echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785  if test -n "$AR"; then
5786  ac_cv_prog_AR="$AR" # Let the user override the test.
5787else
5788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5789for as_dir in $PATH
5790do
5791  IFS=$as_save_IFS
5792  test -z "$as_dir" && as_dir=.
5793  for ac_exec_ext in '' $ac_executable_extensions; do
5794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795    ac_cv_prog_AR="${ac_tool_prefix}ar"
5796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797    break 2
5798  fi
5799done
5800done
5801
5802fi
5803fi
5804AR=$ac_cv_prog_AR
5805if test -n "$AR"; then
5806  echo "$as_me:$LINENO: result: $AR" >&5
5807echo "${ECHO_T}$AR" >&6
5808else
5809  echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
5812
5813fi
5814if test -z "$ac_cv_prog_AR"; then
5815  ac_ct_AR=$AR
5816  # Extract the first word of "ar", so it can be a program name with args.
5817set dummy ar; ac_word=$2
5818echo "$as_me:$LINENO: checking for $ac_word" >&5
5819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5820if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5821  echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823  if test -n "$ac_ct_AR"; then
5824  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829  IFS=$as_save_IFS
5830  test -z "$as_dir" && as_dir=.
5831  for ac_exec_ext in '' $ac_executable_extensions; do
5832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833    ac_cv_prog_ac_ct_AR="ar"
5834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835    break 2
5836  fi
5837done
5838done
5839
5840  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5841fi
5842fi
5843ac_ct_AR=$ac_cv_prog_ac_ct_AR
5844if test -n "$ac_ct_AR"; then
5845  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5846echo "${ECHO_T}$ac_ct_AR" >&6
5847else
5848  echo "$as_me:$LINENO: result: no" >&5
5849echo "${ECHO_T}no" >&6
5850fi
5851
5852  AR=$ac_ct_AR
5853else
5854  AR="$ac_cv_prog_AR"
5855fi
5856
5857if test -n "$ac_tool_prefix"; then
5858  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5859set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5860echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862if test "${ac_cv_prog_RANLIB+set}" = set; then
5863  echo $ECHO_N "(cached) $ECHO_C" >&6
5864else
5865  if test -n "$RANLIB"; then
5866  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5867else
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871  IFS=$as_save_IFS
5872  test -z "$as_dir" && as_dir=.
5873  for ac_exec_ext in '' $ac_executable_extensions; do
5874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877    break 2
5878  fi
5879done
5880done
5881
5882fi
5883fi
5884RANLIB=$ac_cv_prog_RANLIB
5885if test -n "$RANLIB"; then
5886  echo "$as_me:$LINENO: result: $RANLIB" >&5
5887echo "${ECHO_T}$RANLIB" >&6
5888else
5889  echo "$as_me:$LINENO: result: no" >&5
5890echo "${ECHO_T}no" >&6
5891fi
5892
5893fi
5894if test -z "$ac_cv_prog_RANLIB"; then
5895  ac_ct_RANLIB=$RANLIB
5896  # Extract the first word of "ranlib", so it can be a program name with args.
5897set dummy ranlib; ac_word=$2
5898echo "$as_me:$LINENO: checking for $ac_word" >&5
5899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5900if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5901  echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903  if test -n "$ac_ct_RANLIB"; then
5904  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5905else
5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907for as_dir in $PATH
5908do
5909  IFS=$as_save_IFS
5910  test -z "$as_dir" && as_dir=.
5911  for ac_exec_ext in '' $ac_executable_extensions; do
5912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913    ac_cv_prog_ac_ct_RANLIB="ranlib"
5914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5915    break 2
5916  fi
5917done
5918done
5919
5920  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5921fi
5922fi
5923ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5924if test -n "$ac_ct_RANLIB"; then
5925  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5926echo "${ECHO_T}$ac_ct_RANLIB" >&6
5927else
5928  echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6
5930fi
5931
5932  RANLIB=$ac_ct_RANLIB
5933else
5934  RANLIB="$ac_cv_prog_RANLIB"
5935fi
5936
5937if test -n "$ac_tool_prefix"; then
5938  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5939set dummy ${ac_tool_prefix}strip; ac_word=$2
5940echo "$as_me:$LINENO: checking for $ac_word" >&5
5941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5942if test "${ac_cv_prog_STRIP+set}" = set; then
5943  echo $ECHO_N "(cached) $ECHO_C" >&6
5944else
5945  if test -n "$STRIP"; then
5946  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5947else
5948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949for as_dir in $PATH
5950do
5951  IFS=$as_save_IFS
5952  test -z "$as_dir" && as_dir=.
5953  for ac_exec_ext in '' $ac_executable_extensions; do
5954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957    break 2
5958  fi
5959done
5960done
5961
5962fi
5963fi
5964STRIP=$ac_cv_prog_STRIP
5965if test -n "$STRIP"; then
5966  echo "$as_me:$LINENO: result: $STRIP" >&5
5967echo "${ECHO_T}$STRIP" >&6
5968else
5969  echo "$as_me:$LINENO: result: no" >&5
5970echo "${ECHO_T}no" >&6
5971fi
5972
5973fi
5974if test -z "$ac_cv_prog_STRIP"; then
5975  ac_ct_STRIP=$STRIP
5976  # Extract the first word of "strip", so it can be a program name with args.
5977set dummy strip; ac_word=$2
5978echo "$as_me:$LINENO: checking for $ac_word" >&5
5979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5980if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5981  echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983  if test -n "$ac_ct_STRIP"; then
5984  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989  IFS=$as_save_IFS
5990  test -z "$as_dir" && as_dir=.
5991  for ac_exec_ext in '' $ac_executable_extensions; do
5992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993    ac_cv_prog_ac_ct_STRIP="strip"
5994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995    break 2
5996  fi
5997done
5998done
5999
6000  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6001fi
6002fi
6003ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6004if test -n "$ac_ct_STRIP"; then
6005  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6006echo "${ECHO_T}$ac_ct_STRIP" >&6
6007else
6008  echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010fi
6011
6012  STRIP=$ac_ct_STRIP
6013else
6014  STRIP="$ac_cv_prog_STRIP"
6015fi
6016
6017
6018old_CC="$CC"
6019old_CFLAGS="$CFLAGS"
6020
6021# Set sane defaults for various variables
6022test -z "$AR" && AR=ar
6023test -z "$AR_FLAGS" && AR_FLAGS=cru
6024test -z "$AS" && AS=as
6025test -z "$CC" && CC=cc
6026test -z "$LTCC" && LTCC=$CC
6027test -z "$DLLTOOL" && DLLTOOL=dlltool
6028test -z "$LD" && LD=ld
6029test -z "$LN_S" && LN_S="ln -s"
6030test -z "$MAGIC_CMD" && MAGIC_CMD=file
6031test -z "$NM" && NM=nm
6032test -z "$SED" && SED=sed
6033test -z "$OBJDUMP" && OBJDUMP=objdump
6034test -z "$RANLIB" && RANLIB=:
6035test -z "$STRIP" && STRIP=:
6036test -z "$ac_objext" && ac_objext=o
6037
6038# Determine commands to create old-style static archives.
6039old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6040old_postinstall_cmds='chmod 644 $oldlib'
6041old_postuninstall_cmds=
6042
6043if test -n "$RANLIB"; then
6044  case $host_os in
6045  openbsd*)
6046    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6047    ;;
6048  *)
6049    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6050    ;;
6051  esac
6052  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6053fi
6054
6055for cc_temp in $compiler""; do
6056  case $cc_temp in
6057    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6058    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6059    \-*) ;;
6060    *) break;;
6061  esac
6062done
6063cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6064
6065
6066# Only perform the check for file, if the check method requires it
6067case $deplibs_check_method in
6068file_magic*)
6069  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6070    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6071echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6072if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075  case $MAGIC_CMD in
6076[\\/*] |  ?:[\\/]*)
6077  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6078  ;;
6079*)
6080  lt_save_MAGIC_CMD="$MAGIC_CMD"
6081  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6082  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6083  for ac_dir in $ac_dummy; do
6084    IFS="$lt_save_ifs"
6085    test -z "$ac_dir" && ac_dir=.
6086    if test -f $ac_dir/${ac_tool_prefix}file; then
6087      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6088      if test -n "$file_magic_test_file"; then
6089	case $deplibs_check_method in
6090	"file_magic "*)
6091	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6092	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6094	    $EGREP "$file_magic_regex" > /dev/null; then
6095	    :
6096	  else
6097	    cat <<EOF 1>&2
6098
6099*** Warning: the command libtool uses to detect shared libraries,
6100*** $file_magic_cmd, produces output that libtool cannot recognize.
6101*** The result is that libtool may fail to recognize shared libraries
6102*** as such.  This will affect the creation of libtool libraries that
6103*** depend on shared libraries, but programs linked with such libtool
6104*** libraries will work regardless of this problem.  Nevertheless, you
6105*** may want to report the problem to your system manager and/or to
6106*** bug-libtool@gnu.org
6107
6108EOF
6109	  fi ;;
6110	esac
6111      fi
6112      break
6113    fi
6114  done
6115  IFS="$lt_save_ifs"
6116  MAGIC_CMD="$lt_save_MAGIC_CMD"
6117  ;;
6118esac
6119fi
6120
6121MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6122if test -n "$MAGIC_CMD"; then
6123  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6124echo "${ECHO_T}$MAGIC_CMD" >&6
6125else
6126  echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128fi
6129
6130if test -z "$lt_cv_path_MAGIC_CMD"; then
6131  if test -n "$ac_tool_prefix"; then
6132    echo "$as_me:$LINENO: checking for file" >&5
6133echo $ECHO_N "checking for file... $ECHO_C" >&6
6134if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6135  echo $ECHO_N "(cached) $ECHO_C" >&6
6136else
6137  case $MAGIC_CMD in
6138[\\/*] |  ?:[\\/]*)
6139  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6140  ;;
6141*)
6142  lt_save_MAGIC_CMD="$MAGIC_CMD"
6143  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6144  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6145  for ac_dir in $ac_dummy; do
6146    IFS="$lt_save_ifs"
6147    test -z "$ac_dir" && ac_dir=.
6148    if test -f $ac_dir/file; then
6149      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6150      if test -n "$file_magic_test_file"; then
6151	case $deplibs_check_method in
6152	"file_magic "*)
6153	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6154	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6155	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6156	    $EGREP "$file_magic_regex" > /dev/null; then
6157	    :
6158	  else
6159	    cat <<EOF 1>&2
6160
6161*** Warning: the command libtool uses to detect shared libraries,
6162*** $file_magic_cmd, produces output that libtool cannot recognize.
6163*** The result is that libtool may fail to recognize shared libraries
6164*** as such.  This will affect the creation of libtool libraries that
6165*** depend on shared libraries, but programs linked with such libtool
6166*** libraries will work regardless of this problem.  Nevertheless, you
6167*** may want to report the problem to your system manager and/or to
6168*** bug-libtool@gnu.org
6169
6170EOF
6171	  fi ;;
6172	esac
6173      fi
6174      break
6175    fi
6176  done
6177  IFS="$lt_save_ifs"
6178  MAGIC_CMD="$lt_save_MAGIC_CMD"
6179  ;;
6180esac
6181fi
6182
6183MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6184if test -n "$MAGIC_CMD"; then
6185  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6186echo "${ECHO_T}$MAGIC_CMD" >&6
6187else
6188  echo "$as_me:$LINENO: result: no" >&5
6189echo "${ECHO_T}no" >&6
6190fi
6191
6192  else
6193    MAGIC_CMD=:
6194  fi
6195fi
6196
6197  fi
6198  ;;
6199esac
6200
6201enable_dlopen=no
6202enable_win32_dll=no
6203
6204# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6205if test "${enable_libtool_lock+set}" = set; then
6206  enableval="$enable_libtool_lock"
6207
6208fi;
6209test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6210
6211
6212# Check whether --with-pic or --without-pic was given.
6213if test "${with_pic+set}" = set; then
6214  withval="$with_pic"
6215  pic_mode="$withval"
6216else
6217  pic_mode=default
6218fi;
6219test -z "$pic_mode" && pic_mode=default
6220
6221# Use C for the default configuration in the libtool script
6222tagname=
6223lt_save_CC="$CC"
6224ac_ext=c
6225ac_cpp='$CPP $CPPFLAGS'
6226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6228ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229
6230
6231# Source file extension for C test sources.
6232ac_ext=c
6233
6234# Object file extension for compiled C test sources.
6235objext=o
6236objext=$objext
6237
6238# Code to be used in simple compile tests
6239lt_simple_compile_test_code="int some_variable = 0;\n"
6240
6241# Code to be used in simple link tests
6242lt_simple_link_test_code='int main(){return(0);}\n'
6243
6244
6245# If no C compiler was specified, use CC.
6246LTCC=${LTCC-"$CC"}
6247
6248# Allow CC to be a program name with arguments.
6249compiler=$CC
6250
6251
6252# save warnings/boilerplate of simple test code
6253ac_outfile=conftest.$ac_objext
6254printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6255eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6256_lt_compiler_boilerplate=`cat conftest.err`
6257$rm conftest*
6258
6259ac_outfile=conftest.$ac_objext
6260printf "$lt_simple_link_test_code" >conftest.$ac_ext
6261eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6262_lt_linker_boilerplate=`cat conftest.err`
6263$rm conftest*
6264
6265
6266#
6267# Check for any special shared library compilation flags.
6268#
6269lt_prog_cc_shlib=
6270if test "$GCC" = no; then
6271  case $host_os in
6272  sco3.2v5*)
6273    lt_prog_cc_shlib='-belf'
6274    ;;
6275  esac
6276fi
6277if test -n "$lt_prog_cc_shlib"; then
6278  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6279echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6280  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6281  else
6282    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6283echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6284    lt_cv_prog_cc_can_build_shared=no
6285  fi
6286fi
6287
6288
6289#
6290# Check to make sure the static flag actually works.
6291#
6292echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6293echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6294if test "${lt_prog_compiler_static_works+set}" = set; then
6295  echo $ECHO_N "(cached) $ECHO_C" >&6
6296else
6297  lt_prog_compiler_static_works=no
6298   save_LDFLAGS="$LDFLAGS"
6299   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6300   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6301   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6302     # The linker can only warn and ignore the option if not recognized
6303     # So say no if there are warnings
6304     if test -s conftest.err; then
6305       # Append any errors to the config.log.
6306       cat conftest.err 1>&5
6307       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6308       $SED '/^$/d' conftest.err >conftest.er2
6309       if diff conftest.exp conftest.er2 >/dev/null; then
6310         lt_prog_compiler_static_works=yes
6311       fi
6312     else
6313       lt_prog_compiler_static_works=yes
6314     fi
6315   fi
6316   $rm conftest*
6317   LDFLAGS="$save_LDFLAGS"
6318
6319fi
6320echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6321echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6322
6323if test x"$lt_prog_compiler_static_works" = xyes; then
6324    :
6325else
6326    lt_prog_compiler_static=
6327fi
6328
6329
6330
6331## CAVEAT EMPTOR:
6332## There is no encapsulation within the following macros, do not change
6333## the running order or otherwise move them around unless you know exactly
6334## what you are doing...
6335
6336lt_prog_compiler_no_builtin_flag=
6337
6338if test "$GCC" = yes; then
6339  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6340
6341
6342echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6343echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6344if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6345  echo $ECHO_N "(cached) $ECHO_C" >&6
6346else
6347  lt_cv_prog_compiler_rtti_exceptions=no
6348  ac_outfile=conftest.$ac_objext
6349   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6350   lt_compiler_flag="-fno-rtti -fno-exceptions"
6351   # Insert the option either (1) after the last *FLAGS variable, or
6352   # (2) before a word containing "conftest.", or (3) at the end.
6353   # Note that $ac_compile itself does not contain backslashes and begins
6354   # with a dollar sign (not a hyphen), so the echo should work correctly.
6355   # The option is referenced via a variable to avoid confusing sed.
6356   lt_compile=`echo "$ac_compile" | $SED \
6357   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6358   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6359   -e 's:$: $lt_compiler_flag:'`
6360   (eval echo "\"\$as_me:6360: $lt_compile\"" >&5)
6361   (eval "$lt_compile" 2>conftest.err)
6362   ac_status=$?
6363   cat conftest.err >&5
6364   echo "$as_me:6364: \$? = $ac_status" >&5
6365   if (exit $ac_status) && test -s "$ac_outfile"; then
6366     # The compiler can only warn and ignore the option if not recognized
6367     # So say no if there are warnings other than the usual output.
6368     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6369     $SED '/^$/d' conftest.err >conftest.er2
6370     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6371       lt_cv_prog_compiler_rtti_exceptions=yes
6372     fi
6373   fi
6374   $rm conftest*
6375
6376fi
6377echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6378echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6379
6380if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6381    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6382else
6383    :
6384fi
6385
6386fi
6387
6388lt_prog_compiler_wl=
6389lt_prog_compiler_pic=
6390lt_prog_compiler_static=
6391
6392echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6393echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6394
6395  if test "$GCC" = yes; then
6396    lt_prog_compiler_wl='-Wl,'
6397    lt_prog_compiler_static='-static'
6398
6399    case $host_os in
6400      aix*)
6401      # All AIX code is PIC.
6402      if test "$host_cpu" = ia64; then
6403	# AIX 5 now supports IA64 processor
6404	lt_prog_compiler_static='-Bstatic'
6405      fi
6406      ;;
6407
6408    amigaos*)
6409      # FIXME: we need at least 68020 code to build shared libraries, but
6410      # adding the `-m68020' flag to GCC prevents building anything better,
6411      # like `-m68040'.
6412      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6413      ;;
6414
6415    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
6416    | osf5*)
6417      # PIC is the default for these OSes.
6418      ;;
6419
6420    mingw* | pw32* | os2*)
6421      # This hack is so that the source file can tell whether it is being
6422      # built for inclusion in a dll (and should export symbols for example).
6423      lt_prog_compiler_pic='-DDLL_EXPORT'
6424      ;;
6425
6426    darwin* | rhapsody*)
6427      # PIC is the default on this platform
6428      # Common symbols not allowed in MH_DYLIB files
6429      lt_prog_compiler_pic='-fno-common'
6430      ;;
6431
6432    msdosdjgpp*)
6433      # Just because we use GCC doesn't mean we suddenly get shared libraries
6434      # on systems that don't support them.
6435      lt_prog_compiler_can_build_shared=no
6436      enable_shared=no
6437      ;;
6438
6439    sysv4*MP*)
6440      if test -d /usr/nec; then
6441	lt_prog_compiler_pic=-Kconform_pic
6442      fi
6443      ;;
6444
6445    hpux*)
6446      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6447      # not for PA HP-UX.
6448      case $host_cpu in
6449      hppa*64*|ia64*)
6450	# +Z the default
6451	;;
6452      *)
6453	lt_prog_compiler_pic='-fPIC'
6454	;;
6455      esac
6456      ;;
6457
6458    *)
6459      lt_prog_compiler_pic='-fPIC'
6460      ;;
6461    esac
6462  else
6463    # PORTME Check for flag to pass linker flags through the system compiler.
6464    case $host_os in
6465    aix*)
6466      lt_prog_compiler_wl='-Wl,'
6467      if test "$host_cpu" = ia64; then
6468	# AIX 5 now supports IA64 processor
6469	lt_prog_compiler_static='-Bstatic'
6470      else
6471	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6472      fi
6473      ;;
6474      darwin*)
6475        # PIC is the default on this platform
6476        # Common symbols not allowed in MH_DYLIB files
6477       case $cc_basename in
6478         xlc*)
6479         lt_prog_compiler_pic='-qnocommon'
6480         lt_prog_compiler_wl='-Wl,'
6481         ;;
6482       esac
6483       ;;
6484
6485    mingw* | pw32* | os2*)
6486      # This hack is so that the source file can tell whether it is being
6487      # built for inclusion in a dll (and should export symbols for example).
6488      lt_prog_compiler_pic='-DDLL_EXPORT'
6489      ;;
6490
6491    hpux9* | hpux10* | hpux11*)
6492      lt_prog_compiler_wl='-Wl,'
6493      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6494      # not for PA HP-UX.
6495      case $host_cpu in
6496      hppa*64*|ia64*)
6497	# +Z the default
6498	;;
6499      *)
6500	lt_prog_compiler_pic='+Z'
6501	;;
6502      esac
6503      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6504      lt_prog_compiler_static='${wl}-a ${wl}archive'
6505      ;;
6506
6507    irix5* | irix6* | nonstopux*)
6508      lt_prog_compiler_wl='-Wl,'
6509      # PIC (with -KPIC) is the default.
6510      lt_prog_compiler_static='-non_shared'
6511      ;;
6512
6513    newsos6)
6514      lt_prog_compiler_pic='-KPIC'
6515      lt_prog_compiler_static='-Bstatic'
6516      ;;
6517
6518    linux*)
6519      case $cc_basename in
6520      icc* | ecc*)
6521	lt_prog_compiler_wl='-Wl,'
6522	lt_prog_compiler_pic='-KPIC'
6523	lt_prog_compiler_static='-static'
6524        ;;
6525      pgcc* | pgf77* | pgf90* | pgf95*)
6526        # Portland Group compilers (*not* the Pentium gcc compiler,
6527	# which looks to be a dead project)
6528	lt_prog_compiler_wl='-Wl,'
6529	lt_prog_compiler_pic='-fpic'
6530	lt_prog_compiler_static='-Bstatic'
6531        ;;
6532      ccc*)
6533        lt_prog_compiler_wl='-Wl,'
6534        # All Alpha code is PIC.
6535        lt_prog_compiler_static='-non_shared'
6536        ;;
6537      esac
6538      ;;
6539
6540    osf3* | osf4* | osf5*)
6541      lt_prog_compiler_wl='-Wl,'
6542      # All OSF/1 code is PIC.
6543      lt_prog_compiler_static='-non_shared'
6544      ;;
6545
6546    sco3.2v5*)
6547      lt_prog_compiler_pic='-Kpic'
6548      lt_prog_compiler_static='-dn'
6549      ;;
6550
6551    solaris*)
6552      lt_prog_compiler_pic='-KPIC'
6553      lt_prog_compiler_static='-Bstatic'
6554      case $cc_basename in
6555      f77* | f90* | f95*)
6556	lt_prog_compiler_wl='-Qoption ld ';;
6557      *)
6558	lt_prog_compiler_wl='-Wl,';;
6559      esac
6560      ;;
6561
6562    sunos4*)
6563      lt_prog_compiler_wl='-Qoption ld '
6564      lt_prog_compiler_pic='-PIC'
6565      lt_prog_compiler_static='-Bstatic'
6566      ;;
6567
6568    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6569      lt_prog_compiler_wl='-Wl,'
6570      lt_prog_compiler_pic='-KPIC'
6571      lt_prog_compiler_static='-Bstatic'
6572      ;;
6573
6574    sysv4*MP*)
6575      if test -d /usr/nec ;then
6576	lt_prog_compiler_pic='-Kconform_pic'
6577	lt_prog_compiler_static='-Bstatic'
6578      fi
6579      ;;
6580
6581    unicos*)
6582      lt_prog_compiler_wl='-Wl,'
6583      lt_prog_compiler_can_build_shared=no
6584      ;;
6585
6586    uts4*)
6587      lt_prog_compiler_pic='-pic'
6588      lt_prog_compiler_static='-Bstatic'
6589      ;;
6590
6591    *)
6592      lt_prog_compiler_can_build_shared=no
6593      ;;
6594    esac
6595  fi
6596
6597echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6598echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6599
6600#
6601# Check to make sure the PIC flag actually works.
6602#
6603if test -n "$lt_prog_compiler_pic"; then
6604
6605echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6606echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6607if test "${lt_prog_compiler_pic_works+set}" = set; then
6608  echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610  lt_prog_compiler_pic_works=no
6611  ac_outfile=conftest.$ac_objext
6612   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6613   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6614   # Insert the option either (1) after the last *FLAGS variable, or
6615   # (2) before a word containing "conftest.", or (3) at the end.
6616   # Note that $ac_compile itself does not contain backslashes and begins
6617   # with a dollar sign (not a hyphen), so the echo should work correctly.
6618   # The option is referenced via a variable to avoid confusing sed.
6619   lt_compile=`echo "$ac_compile" | $SED \
6620   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6621   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6622   -e 's:$: $lt_compiler_flag:'`
6623   (eval echo "\"\$as_me:6623: $lt_compile\"" >&5)
6624   (eval "$lt_compile" 2>conftest.err)
6625   ac_status=$?
6626   cat conftest.err >&5
6627   echo "$as_me:6627: \$? = $ac_status" >&5
6628   if (exit $ac_status) && test -s "$ac_outfile"; then
6629     # The compiler can only warn and ignore the option if not recognized
6630     # So say no if there are warnings other than the usual output.
6631     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6632     $SED '/^$/d' conftest.err >conftest.er2
6633     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6634       lt_prog_compiler_pic_works=yes
6635     fi
6636   fi
6637   $rm conftest*
6638
6639fi
6640echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6641echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6642
6643if test x"$lt_prog_compiler_pic_works" = xyes; then
6644    case $lt_prog_compiler_pic in
6645     "" | " "*) ;;
6646     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6647     esac
6648else
6649    lt_prog_compiler_pic=
6650     lt_prog_compiler_can_build_shared=no
6651fi
6652
6653fi
6654case $host_os in
6655  # For platforms which do not support PIC, -DPIC is meaningless:
6656  *djgpp*)
6657    lt_prog_compiler_pic=
6658    ;;
6659  *)
6660    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6661    ;;
6662esac
6663
6664echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6665echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6666if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6667  echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669  lt_cv_prog_compiler_c_o=no
6670   $rm -r conftest 2>/dev/null
6671   mkdir conftest
6672   cd conftest
6673   mkdir out
6674   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6675
6676   lt_compiler_flag="-o out/conftest2.$ac_objext"
6677   # Insert the option either (1) after the last *FLAGS variable, or
6678   # (2) before a word containing "conftest.", or (3) at the end.
6679   # Note that $ac_compile itself does not contain backslashes and begins
6680   # with a dollar sign (not a hyphen), so the echo should work correctly.
6681   lt_compile=`echo "$ac_compile" | $SED \
6682   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6683   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6684   -e 's:$: $lt_compiler_flag:'`
6685   (eval echo "\"\$as_me:6685: $lt_compile\"" >&5)
6686   (eval "$lt_compile" 2>out/conftest.err)
6687   ac_status=$?
6688   cat out/conftest.err >&5
6689   echo "$as_me:6689: \$? = $ac_status" >&5
6690   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6691   then
6692     # The compiler can only warn and ignore the option if not recognized
6693     # So say no if there are warnings
6694     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6695     $SED '/^$/d' out/conftest.err >out/conftest.er2
6696     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6697       lt_cv_prog_compiler_c_o=yes
6698     fi
6699   fi
6700   chmod u+w . 2>&5
6701   $rm conftest*
6702   # SGI C++ compiler will create directory out/ii_files/ for
6703   # template instantiation
6704   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6705   $rm out/* && rmdir out
6706   cd ..
6707   rmdir conftest
6708   $rm conftest*
6709
6710fi
6711echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6712echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6713
6714
6715hard_links="nottested"
6716if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6717  # do not overwrite the value of need_locks provided by the user
6718  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6719echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6720  hard_links=yes
6721  $rm conftest*
6722  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6723  touch conftest.a
6724  ln conftest.a conftest.b 2>&5 || hard_links=no
6725  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6726  echo "$as_me:$LINENO: result: $hard_links" >&5
6727echo "${ECHO_T}$hard_links" >&6
6728  if test "$hard_links" = no; then
6729    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6730echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6731    need_locks=warn
6732  fi
6733else
6734  need_locks=no
6735fi
6736
6737echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6738echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6739
6740  runpath_var=
6741  allow_undefined_flag=
6742  enable_shared_with_static_runtimes=no
6743  archive_cmds=
6744  archive_expsym_cmds=
6745  old_archive_From_new_cmds=
6746  old_archive_from_expsyms_cmds=
6747  export_dynamic_flag_spec=
6748  whole_archive_flag_spec=
6749  thread_safe_flag_spec=
6750  hardcode_libdir_flag_spec=
6751  hardcode_libdir_flag_spec_ld=
6752  hardcode_libdir_separator=
6753  hardcode_direct=no
6754  hardcode_minus_L=no
6755  hardcode_shlibpath_var=unsupported
6756  link_all_deplibs=unknown
6757  hardcode_automatic=no
6758  module_cmds=
6759  module_expsym_cmds=
6760  always_export_symbols=no
6761  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6762  # include_expsyms should be a list of space-separated symbols to be *always*
6763  # included in the symbol list
6764  include_expsyms=
6765  # exclude_expsyms can be an extended regexp of symbols to exclude
6766  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6767  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6768  # as well as any symbol that contains `d'.
6769  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6770  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6771  # platforms (ab)use it in PIC code, but their linkers get confused if
6772  # the symbol is explicitly referenced.  Since portable code cannot
6773  # rely on this symbol name, it's probably fine to never include it in
6774  # preloaded symbol tables.
6775  extract_expsyms_cmds=
6776  # Just being paranoid about ensuring that cc_basename is set.
6777  for cc_temp in $compiler""; do
6778  case $cc_temp in
6779    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6780    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6781    \-*) ;;
6782    *) break;;
6783  esac
6784done
6785cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6786
6787  case $host_os in
6788  cygwin* | mingw* | pw32*)
6789    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6790    # When not using gcc, we currently assume that we are using
6791    # Microsoft Visual C++.
6792    if test "$GCC" != yes; then
6793      with_gnu_ld=no
6794    fi
6795    ;;
6796  openbsd*)
6797    with_gnu_ld=no
6798    ;;
6799  esac
6800
6801  ld_shlibs=yes
6802  if test "$with_gnu_ld" = yes; then
6803    # If archive_cmds runs LD, not CC, wlarc should be empty
6804    wlarc='${wl}'
6805
6806    # Set some defaults for GNU ld with shared library support. These
6807    # are reset later if shared libraries are not supported. Putting them
6808    # here allows them to be overridden if necessary.
6809    runpath_var=LD_RUN_PATH
6810    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6811    export_dynamic_flag_spec='${wl}--export-dynamic'
6812    # ancient GNU ld didn't support --whole-archive et. al.
6813    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6814	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6815      else
6816  	whole_archive_flag_spec=
6817    fi
6818    supports_anon_versioning=no
6819    case `$LD -v 2>/dev/null` in
6820      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6821      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6822      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6823      *\ 2.11.*) ;; # other 2.11 versions
6824      *) supports_anon_versioning=yes ;;
6825    esac
6826
6827    # See if GNU ld supports shared libraries.
6828    case $host_os in
6829    aix3* | aix4* | aix5*)
6830      # On AIX/PPC, the GNU linker is very broken
6831      if test "$host_cpu" != ia64; then
6832	ld_shlibs=no
6833	cat <<EOF 1>&2
6834
6835*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6836*** to be unable to reliably create shared libraries on AIX.
6837*** Therefore, libtool is disabling shared libraries support.  If you
6838*** really care for shared libraries, you may want to modify your PATH
6839*** so that a non-GNU linker is found, and then restart.
6840
6841EOF
6842      fi
6843      ;;
6844
6845    amigaos*)
6846      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)'
6847      hardcode_libdir_flag_spec='-L$libdir'
6848      hardcode_minus_L=yes
6849
6850      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6851      # that the semantics of dynamic libraries on AmigaOS, at least up
6852      # to version 4, is to share data among multiple programs linked
6853      # with the same dynamic library.  Since this doesn't match the
6854      # behavior of shared libraries on other platforms, we can't use
6855      # them.
6856      ld_shlibs=no
6857      ;;
6858
6859    beos*)
6860      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6861	allow_undefined_flag=unsupported
6862	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6863	# support --undefined.  This deserves some investigation.  FIXME
6864	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6865      else
6866	ld_shlibs=no
6867      fi
6868      ;;
6869
6870    cygwin* | mingw* | pw32*)
6871      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6872      # as there is no search path for DLLs.
6873      hardcode_libdir_flag_spec='-L$libdir'
6874      allow_undefined_flag=unsupported
6875      always_export_symbols=no
6876      enable_shared_with_static_runtimes=yes
6877      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6878
6879      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6880        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6881	# If the export-symbols file already is a .def file (1st line
6882	# is EXPORTS), use it as is; otherwise, prepend...
6883	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6884	  cp $export_symbols $output_objdir/$soname.def;
6885	else
6886	  echo EXPORTS > $output_objdir/$soname.def;
6887	  cat $export_symbols >> $output_objdir/$soname.def;
6888	fi~
6889	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6890      else
6891	ld_shlibs=no
6892      fi
6893      ;;
6894
6895    haiku*)
6896      allow_undefined_flag=unsupported
6897      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6898      ;;
6899
6900    linux*)
6901      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6902	tmp_addflag=
6903	case $cc_basename,$host_cpu in
6904	pgcc*)				# Portland Group C compiler
6905	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6906	  tmp_addflag=' $pic_flag'
6907	  ;;
6908	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6909	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6910	  tmp_addflag=' $pic_flag -Mnomain' ;;
6911	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6912	  tmp_addflag=' -i_dynamic' ;;
6913	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6914	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6915	ifc* | ifort*)			# Intel Fortran compiler
6916	  tmp_addflag=' -nofor_main' ;;
6917	esac
6918	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6919
6920	if test $supports_anon_versioning = yes; then
6921	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6922  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6923  $echo "local: *; };" >> $output_objdir/$libname.ver~
6924	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6925	fi
6926      else
6927	ld_shlibs=no
6928      fi
6929      ;;
6930
6931    netbsd*)
6932      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6933	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6934	wlarc=
6935      else
6936	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6937	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6938      fi
6939      ;;
6940
6941    solaris* | sysv5*)
6942      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6943	ld_shlibs=no
6944	cat <<EOF 1>&2
6945
6946*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6947*** create shared libraries on Solaris systems.  Therefore, libtool
6948*** is disabling shared libraries support.  We urge you to upgrade GNU
6949*** binutils to release 2.9.1 or newer.  Another option is to modify
6950*** your PATH or compiler configuration so that the native linker is
6951*** used, and then restart.
6952
6953EOF
6954      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6955	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6956	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6957      else
6958	ld_shlibs=no
6959      fi
6960      ;;
6961
6962    sunos4*)
6963      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6964      wlarc=
6965      hardcode_direct=yes
6966      hardcode_shlibpath_var=no
6967      ;;
6968
6969    *)
6970      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6971	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6972	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6973      else
6974	ld_shlibs=no
6975      fi
6976      ;;
6977    esac
6978
6979    if test "$ld_shlibs" = no; then
6980      runpath_var=
6981      hardcode_libdir_flag_spec=
6982      export_dynamic_flag_spec=
6983      whole_archive_flag_spec=
6984    fi
6985  else
6986    # PORTME fill in a description of your system's linker (not GNU ld)
6987    case $host_os in
6988    aix3*)
6989      allow_undefined_flag=unsupported
6990      always_export_symbols=yes
6991      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'
6992      # Note: this linker hardcodes the directories in LIBPATH if there
6993      # are no directories specified by -L.
6994      hardcode_minus_L=yes
6995      if test "$GCC" = yes && test -z "$link_static_flag"; then
6996	# Neither direct hardcoding nor static linking is supported with a
6997	# broken collect2.
6998	hardcode_direct=unsupported
6999      fi
7000      ;;
7001
7002    aix4* | aix5*)
7003      if test "$host_cpu" = ia64; then
7004	# On IA64, the linker does run time linking by default, so we don't
7005	# have to do anything special.
7006	aix_use_runtimelinking=no
7007	exp_sym_flag='-Bexport'
7008	no_entry_flag=""
7009      else
7010	# If we're using GNU nm, then we don't want the "-C" option.
7011	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7012	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7013	  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'
7014	else
7015	  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'
7016	fi
7017	aix_use_runtimelinking=no
7018
7019	# Test if we are trying to use run time linking or normal
7020	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7021	# need to do runtime linking.
7022	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7023	  for ld_flag in $LDFLAGS; do
7024  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7025  	    aix_use_runtimelinking=yes
7026  	    break
7027  	  fi
7028	  done
7029	esac
7030
7031	exp_sym_flag='-bexport'
7032	no_entry_flag='-bnoentry'
7033      fi
7034
7035      # When large executables or shared objects are built, AIX ld can
7036      # have problems creating the table of contents.  If linking a library
7037      # or program results in "error TOC overflow" add -mminimal-toc to
7038      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7039      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7040
7041      archive_cmds=''
7042      hardcode_direct=yes
7043      hardcode_libdir_separator=':'
7044      link_all_deplibs=yes
7045
7046      if test "$GCC" = yes; then
7047	case $host_os in aix4.[012]|aix4.[012].*)
7048	# We only want to do this on AIX 4.2 and lower, the check
7049	# below for broken collect2 doesn't work under 4.3+
7050	  collect2name=`${CC} -print-prog-name=collect2`
7051	  if test -f "$collect2name" && \
7052  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7053	  then
7054  	  # We have reworked collect2
7055  	  hardcode_direct=yes
7056	  else
7057  	  # We have old collect2
7058  	  hardcode_direct=unsupported
7059  	  # It fails to find uninstalled libraries when the uninstalled
7060  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7061  	  # to unsupported forces relinking
7062  	  hardcode_minus_L=yes
7063  	  hardcode_libdir_flag_spec='-L$libdir'
7064  	  hardcode_libdir_separator=
7065	  fi
7066	esac
7067	shared_flag='-shared'
7068	if test "$aix_use_runtimelinking" = yes; then
7069	  shared_flag="$shared_flag "'${wl}-G'
7070	fi
7071      else
7072	# not using gcc
7073	if test "$host_cpu" = ia64; then
7074  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7075  	# chokes on -Wl,-G. The following line is correct:
7076	  shared_flag='-G'
7077	else
7078  	if test "$aix_use_runtimelinking" = yes; then
7079	    shared_flag='${wl}-G'
7080	  else
7081	    shared_flag='${wl}-bM:SRE'
7082  	fi
7083	fi
7084      fi
7085
7086      # It seems that -bexpall does not export symbols beginning with
7087      # underscore (_), so it is better to generate a list of symbols to export.
7088      always_export_symbols=yes
7089      if test "$aix_use_runtimelinking" = yes; then
7090	# Warning - without using the other runtime loading flags (-brtl),
7091	# -berok will link without error, but may produce a broken library.
7092	allow_undefined_flag='-berok'
7093       # Determine the default libpath from the value encoded in an empty executable.
7094       cat >conftest.$ac_ext <<_ACEOF
7095/* confdefs.h.  */
7096_ACEOF
7097cat confdefs.h >>conftest.$ac_ext
7098cat >>conftest.$ac_ext <<_ACEOF
7099/* end confdefs.h.  */
7100
7101int
7102main ()
7103{
7104
7105  ;
7106  return 0;
7107}
7108_ACEOF
7109rm -f conftest.$ac_objext conftest$ac_exeext
7110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7111  (eval $ac_link) 2>conftest.er1
7112  ac_status=$?
7113  grep -v '^ *+' conftest.er1 >conftest.err
7114  rm -f conftest.er1
7115  cat conftest.err >&5
7116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117  (exit $ac_status); } &&
7118	 { ac_try='test -z "$ac_c_werror_flag"
7119			 || test ! -s conftest.err'
7120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121  (eval $ac_try) 2>&5
7122  ac_status=$?
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); }; } &&
7125	 { ac_try='test -s conftest$ac_exeext'
7126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127  (eval $ac_try) 2>&5
7128  ac_status=$?
7129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130  (exit $ac_status); }; }; then
7131
7132aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7133}'`
7134# Check for a 64-bit object if we didn't find anything.
7135if 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; }
7136}'`; fi
7137else
7138  echo "$as_me: failed program was:" >&5
7139sed 's/^/| /' conftest.$ac_ext >&5
7140
7141fi
7142rm -f conftest.err conftest.$ac_objext \
7143      conftest$ac_exeext conftest.$ac_ext
7144if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7145
7146       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7147	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"
7148       else
7149	if test "$host_cpu" = ia64; then
7150	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7151	  allow_undefined_flag="-z nodefs"
7152	  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"
7153	else
7154	 # Determine the default libpath from the value encoded in an empty executable.
7155	 cat >conftest.$ac_ext <<_ACEOF
7156/* confdefs.h.  */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h.  */
7161
7162int
7163main ()
7164{
7165
7166  ;
7167  return 0;
7168}
7169_ACEOF
7170rm -f conftest.$ac_objext conftest$ac_exeext
7171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172  (eval $ac_link) 2>conftest.er1
7173  ac_status=$?
7174  grep -v '^ *+' conftest.er1 >conftest.err
7175  rm -f conftest.er1
7176  cat conftest.err >&5
7177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178  (exit $ac_status); } &&
7179	 { ac_try='test -z "$ac_c_werror_flag"
7180			 || test ! -s conftest.err'
7181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182  (eval $ac_try) 2>&5
7183  ac_status=$?
7184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185  (exit $ac_status); }; } &&
7186	 { ac_try='test -s conftest$ac_exeext'
7187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188  (eval $ac_try) 2>&5
7189  ac_status=$?
7190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191  (exit $ac_status); }; }; then
7192
7193aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7194}'`
7195# Check for a 64-bit object if we didn't find anything.
7196if 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; }
7197}'`; fi
7198else
7199  echo "$as_me: failed program was:" >&5
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
7202fi
7203rm -f conftest.err conftest.$ac_objext \
7204      conftest$ac_exeext conftest.$ac_ext
7205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7206
7207	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7208	  # Warning - without using the other run time loading flags,
7209	  # -berok will link without error, but may produce a broken library.
7210	  no_undefined_flag=' ${wl}-bernotok'
7211	  allow_undefined_flag=' ${wl}-berok'
7212	  # -bexpall does not export symbols beginning with underscore (_)
7213	  always_export_symbols=yes
7214	  # Exported symbols can be pulled into shared objects from archives
7215	  whole_archive_flag_spec=' '
7216	  archive_cmds_need_lc=yes
7217	  # This is similar to how AIX traditionally builds its shared libraries.
7218	  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'
7219	fi
7220      fi
7221      ;;
7222
7223    amigaos*)
7224      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)'
7225      hardcode_libdir_flag_spec='-L$libdir'
7226      hardcode_minus_L=yes
7227      # see comment about different semantics on the GNU ld section
7228      ld_shlibs=no
7229      ;;
7230
7231    bsdi[45]*)
7232      export_dynamic_flag_spec=-rdynamic
7233      ;;
7234
7235    cygwin* | mingw* | pw32*)
7236      # When not using gcc, we currently assume that we are using
7237      # Microsoft Visual C++.
7238      # hardcode_libdir_flag_spec is actually meaningless, as there is
7239      # no search path for DLLs.
7240      hardcode_libdir_flag_spec=' '
7241      allow_undefined_flag=unsupported
7242      # Tell ltmain to make .lib files, not .a files.
7243      libext=lib
7244      # Tell ltmain to make .dll files, not .so files.
7245      shrext_cmds=".dll"
7246      # FIXME: Setting linknames here is a bad hack.
7247      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7248      # The linker will automatically build a .lib file if we build a DLL.
7249      old_archive_From_new_cmds='true'
7250      # FIXME: Should let the user specify the lib program.
7251      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7252      fix_srcfile_path='`cygpath -w "$srcfile"`'
7253      enable_shared_with_static_runtimes=yes
7254      ;;
7255
7256    darwin* | rhapsody*)
7257      case $host_os in
7258        rhapsody* | darwin1.[012])
7259         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7260         ;;
7261       *) # Darwin 1.3 on
7262         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7263           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7264         else
7265           case ${MACOSX_DEPLOYMENT_TARGET} in
7266             10.[012])
7267               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7268               ;;
7269             10.*)
7270               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7271               ;;
7272           esac
7273         fi
7274         ;;
7275      esac
7276      archive_cmds_need_lc=no
7277      hardcode_direct=no
7278      hardcode_automatic=yes
7279      hardcode_shlibpath_var=unsupported
7280      whole_archive_flag_spec=''
7281      link_all_deplibs=yes
7282    if test "$GCC" = yes ; then
7283    	output_verbose_link_cmd='echo'
7284        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7285      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7286      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7287      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}'
7288      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}'
7289    else
7290      case $cc_basename in
7291        xlc*)
7292         output_verbose_link_cmd='echo'
7293         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7294         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7295          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7296         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7297          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}'
7298          ;;
7299       *)
7300         ld_shlibs=no
7301          ;;
7302      esac
7303    fi
7304      ;;
7305
7306    dgux*)
7307      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7308      hardcode_libdir_flag_spec='-L$libdir'
7309      hardcode_shlibpath_var=no
7310      ;;
7311
7312    freebsd1*)
7313      ld_shlibs=no
7314      ;;
7315
7316    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7317    # support.  Future versions do this automatically, but an explicit c++rt0.o
7318    # does not break anything, and helps significantly (at the cost of a little
7319    # extra space).
7320    freebsd2.2*)
7321      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7322      hardcode_libdir_flag_spec='-R$libdir'
7323      hardcode_direct=yes
7324      hardcode_shlibpath_var=no
7325      ;;
7326
7327    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7328    freebsd2*)
7329      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7330      hardcode_direct=yes
7331      hardcode_minus_L=yes
7332      hardcode_shlibpath_var=no
7333      ;;
7334
7335    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7336    freebsd* | kfreebsd*-gnu | dragonfly*)
7337      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7338      hardcode_libdir_flag_spec='-R$libdir'
7339      hardcode_direct=yes
7340      hardcode_shlibpath_var=no
7341      ;;
7342
7343    hpux9*)
7344      if test "$GCC" = yes; then
7345	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'
7346      else
7347	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'
7348      fi
7349      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7350      hardcode_libdir_separator=:
7351      hardcode_direct=yes
7352
7353      # hardcode_minus_L: Not really in the search PATH,
7354      # but as the default location of the library.
7355      hardcode_minus_L=yes
7356      export_dynamic_flag_spec='${wl}-E'
7357      ;;
7358
7359    hpux10* | hpux11*)
7360      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7361	case $host_cpu in
7362	hppa*64*|ia64*)
7363	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7364	  ;;
7365	*)
7366	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7367	  ;;
7368	esac
7369      else
7370	case $host_cpu in
7371	hppa*64*|ia64*)
7372	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7373	  ;;
7374	*)
7375	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7376	  ;;
7377	esac
7378      fi
7379      if test "$with_gnu_ld" = no; then
7380	case $host_cpu in
7381	hppa*64*)
7382	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7383	  hardcode_libdir_flag_spec_ld='+b $libdir'
7384	  hardcode_libdir_separator=:
7385	  hardcode_direct=no
7386	  hardcode_shlibpath_var=no
7387	  ;;
7388	ia64*)
7389	  hardcode_libdir_flag_spec='-L$libdir'
7390	  hardcode_direct=no
7391	  hardcode_shlibpath_var=no
7392
7393	  # hardcode_minus_L: Not really in the search PATH,
7394	  # but as the default location of the library.
7395	  hardcode_minus_L=yes
7396	  ;;
7397	*)
7398	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7399	  hardcode_libdir_separator=:
7400	  hardcode_direct=yes
7401	  export_dynamic_flag_spec='${wl}-E'
7402
7403	  # hardcode_minus_L: Not really in the search PATH,
7404	  # but as the default location of the library.
7405	  hardcode_minus_L=yes
7406	  ;;
7407	esac
7408      fi
7409      ;;
7410
7411    irix5* | irix6* | nonstopux*)
7412      if test "$GCC" = yes; then
7413	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'
7414      else
7415	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'
7416	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7417      fi
7418      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7419      hardcode_libdir_separator=:
7420      link_all_deplibs=yes
7421      ;;
7422
7423    netbsd*)
7424      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7425	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7426      else
7427	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7428      fi
7429      hardcode_libdir_flag_spec='-R$libdir'
7430      hardcode_direct=yes
7431      hardcode_shlibpath_var=no
7432      ;;
7433
7434    newsos6)
7435      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7436      hardcode_direct=yes
7437      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7438      hardcode_libdir_separator=:
7439      hardcode_shlibpath_var=no
7440      ;;
7441
7442    openbsd*)
7443      hardcode_direct=yes
7444      hardcode_shlibpath_var=no
7445      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7446	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7447	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7448	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7449	export_dynamic_flag_spec='${wl}-E'
7450      else
7451       case $host_os in
7452	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7453	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7454	   hardcode_libdir_flag_spec='-R$libdir'
7455	   ;;
7456	 *)
7457	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7458	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7459	   ;;
7460       esac
7461      fi
7462      ;;
7463
7464    os2*)
7465      hardcode_libdir_flag_spec='-L$libdir'
7466      hardcode_minus_L=yes
7467      allow_undefined_flag=unsupported
7468      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'
7469      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7470      ;;
7471
7472    osf3*)
7473      if test "$GCC" = yes; then
7474	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7475	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'
7476      else
7477	allow_undefined_flag=' -expect_unresolved \*'
7478	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'
7479      fi
7480      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7481      hardcode_libdir_separator=:
7482      ;;
7483
7484    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7485      if test "$GCC" = yes; then
7486	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7487	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'
7488	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7489      else
7490	allow_undefined_flag=' -expect_unresolved \*'
7491	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'
7492	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7493	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7494
7495	# Both c and cxx compiler support -rpath directly
7496	hardcode_libdir_flag_spec='-rpath $libdir'
7497      fi
7498      hardcode_libdir_separator=:
7499      ;;
7500
7501    sco3.2v5*)
7502      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7503      hardcode_shlibpath_var=no
7504      export_dynamic_flag_spec='${wl}-Bexport'
7505      runpath_var=LD_RUN_PATH
7506      hardcode_runpath_var=yes
7507      ;;
7508
7509    solaris*)
7510      no_undefined_flag=' -z text'
7511      if test "$GCC" = yes; then
7512	wlarc='${wl}'
7513	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7514	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7515	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7516      else
7517	wlarc=''
7518	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7520  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7521      fi
7522      hardcode_libdir_flag_spec='-R$libdir'
7523      hardcode_shlibpath_var=no
7524      case $host_os in
7525      solaris2.[0-5] | solaris2.[0-5].*) ;;
7526      *)
7527 	# The compiler driver will combine linker options so we
7528 	# cannot just pass the convience library names through
7529 	# without $wl, iff we do not link with $LD.
7530 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7531 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7532 	case $wlarc in
7533 	'')
7534 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7535 	*)
7536 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7537 	esac ;;
7538      esac
7539      link_all_deplibs=yes
7540      ;;
7541
7542    sunos4*)
7543      if test "x$host_vendor" = xsequent; then
7544	# Use $CC to link under sequent, because it throws in some extra .o
7545	# files that make .init and .fini sections work.
7546	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7547      else
7548	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7549      fi
7550      hardcode_libdir_flag_spec='-L$libdir'
7551      hardcode_direct=yes
7552      hardcode_minus_L=yes
7553      hardcode_shlibpath_var=no
7554      ;;
7555
7556    sysv4)
7557      case $host_vendor in
7558	sni)
7559	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7560	  hardcode_direct=yes # is this really true???
7561	;;
7562	siemens)
7563	  ## LD is ld it makes a PLAMLIB
7564	  ## CC just makes a GrossModule.
7565	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7566	  reload_cmds='$CC -r -o $output$reload_objs'
7567	  hardcode_direct=no
7568        ;;
7569	motorola)
7570	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7571	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7572	;;
7573      esac
7574      runpath_var='LD_RUN_PATH'
7575      hardcode_shlibpath_var=no
7576      ;;
7577
7578    sysv4.3*)
7579      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7580      hardcode_shlibpath_var=no
7581      export_dynamic_flag_spec='-Bexport'
7582      ;;
7583
7584    sysv4*MP*)
7585      if test -d /usr/nec; then
7586	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587	hardcode_shlibpath_var=no
7588	runpath_var=LD_RUN_PATH
7589	hardcode_runpath_var=yes
7590	ld_shlibs=yes
7591      fi
7592      ;;
7593
7594    sysv4.2uw2*)
7595      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7596      hardcode_direct=yes
7597      hardcode_minus_L=no
7598      hardcode_shlibpath_var=no
7599      hardcode_runpath_var=yes
7600      runpath_var=LD_RUN_PATH
7601      ;;
7602
7603   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7604      no_undefined_flag='${wl}-z ${wl}text'
7605      if test "$GCC" = yes; then
7606	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7607      else
7608	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7609      fi
7610      runpath_var='LD_RUN_PATH'
7611      hardcode_shlibpath_var=no
7612      ;;
7613
7614    sysv5*)
7615      no_undefined_flag=' -z text'
7616      # $CC -shared without GNU ld will not create a library from C++
7617      # object files and a static libstdc++, better avoid it by now
7618      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7619      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7620  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7621      hardcode_libdir_flag_spec=
7622      hardcode_shlibpath_var=no
7623      runpath_var='LD_RUN_PATH'
7624      ;;
7625
7626    uts4*)
7627      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7628      hardcode_libdir_flag_spec='-L$libdir'
7629      hardcode_shlibpath_var=no
7630      ;;
7631
7632    *)
7633      ld_shlibs=no
7634      ;;
7635    esac
7636  fi
7637
7638echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7639echo "${ECHO_T}$ld_shlibs" >&6
7640test "$ld_shlibs" = no && can_build_shared=no
7641
7642variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7643if test "$GCC" = yes; then
7644  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7645fi
7646
7647#
7648# Do we need to explicitly link libc?
7649#
7650case "x$archive_cmds_need_lc" in
7651x|xyes)
7652  # Assume -lc should be added
7653  archive_cmds_need_lc=yes
7654
7655  if test "$enable_shared" = yes && test "$GCC" = yes; then
7656    case $archive_cmds in
7657    *'~'*)
7658      # FIXME: we may have to deal with multi-command sequences.
7659      ;;
7660    '$CC '*)
7661      # Test whether the compiler implicitly links with -lc since on some
7662      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7663      # to ld, don't add -lc before -lgcc.
7664      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7665echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7666      $rm conftest*
7667      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7668
7669      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7670  (eval $ac_compile) 2>&5
7671  ac_status=$?
7672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673  (exit $ac_status); } 2>conftest.err; then
7674        soname=conftest
7675        lib=conftest
7676        libobjs=conftest.$ac_objext
7677        deplibs=
7678        wl=$lt_prog_compiler_wl
7679        compiler_flags=-v
7680        linker_flags=-v
7681        verstring=
7682        output_objdir=.
7683        libname=conftest
7684        lt_save_allow_undefined_flag=$allow_undefined_flag
7685        allow_undefined_flag=
7686        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7687  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7688  ac_status=$?
7689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690  (exit $ac_status); }
7691        then
7692	  archive_cmds_need_lc=no
7693        else
7694	  archive_cmds_need_lc=yes
7695        fi
7696        allow_undefined_flag=$lt_save_allow_undefined_flag
7697      else
7698        cat conftest.err 1>&5
7699      fi
7700      $rm conftest*
7701      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7702echo "${ECHO_T}$archive_cmds_need_lc" >&6
7703      ;;
7704    esac
7705  fi
7706  ;;
7707esac
7708
7709echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7710echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7711library_names_spec=
7712libname_spec='lib$name'
7713soname_spec=
7714shrext_cmds=".so"
7715postinstall_cmds=
7716postuninstall_cmds=
7717finish_cmds=
7718finish_eval=
7719shlibpath_var=
7720shlibpath_overrides_runpath=unknown
7721version_type=none
7722dynamic_linker="$host_os ld.so"
7723sys_lib_dlsearch_path_spec="/lib /usr/lib"
7724if test "$GCC" = yes; then
7725  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7726  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7727    # if the path contains ";" then we assume it to be the separator
7728    # otherwise default to the standard path separator (i.e. ":") - it is
7729    # assumed that no part of a normal pathname contains ";" but that should
7730    # okay in the real world where ";" in dirpaths is itself problematic.
7731    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7732  else
7733    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7734  fi
7735else
7736  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7737fi
7738need_lib_prefix=unknown
7739hardcode_into_libs=no
7740
7741# when you set need_version to no, make sure it does not cause -set_version
7742# flags to be left without arguments
7743need_version=unknown
7744
7745case $host_os in
7746aix3*)
7747  version_type=linux
7748  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7749  shlibpath_var=LIBPATH
7750
7751  # AIX 3 has no versioning support, so we append a major version to the name.
7752  soname_spec='${libname}${release}${shared_ext}$major'
7753  ;;
7754
7755aix4* | aix5*)
7756  version_type=linux
7757  need_lib_prefix=no
7758  need_version=no
7759  hardcode_into_libs=yes
7760  if test "$host_cpu" = ia64; then
7761    # AIX 5 supports IA64
7762    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7763    shlibpath_var=LD_LIBRARY_PATH
7764  else
7765    # With GCC up to 2.95.x, collect2 would create an import file
7766    # for dependence libraries.  The import file would start with
7767    # the line `#! .'.  This would cause the generated library to
7768    # depend on `.', always an invalid library.  This was fixed in
7769    # development snapshots of GCC prior to 3.0.
7770    case $host_os in
7771      aix4 | aix4.[01] | aix4.[01].*)
7772      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7773	   echo ' yes '
7774	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7775	:
7776      else
7777	can_build_shared=no
7778      fi
7779      ;;
7780    esac
7781    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7782    # soname into executable. Probably we can add versioning support to
7783    # collect2, so additional links can be useful in future.
7784    if test "$aix_use_runtimelinking" = yes; then
7785      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7786      # instead of lib<name>.a to let people know that these are not
7787      # typical AIX shared libraries.
7788      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7789    else
7790      # We preserve .a as extension for shared libraries through AIX4.2
7791      # and later when we are not doing run time linking.
7792      library_names_spec='${libname}${release}.a $libname.a'
7793      soname_spec='${libname}${release}${shared_ext}$major'
7794    fi
7795    shlibpath_var=LIBPATH
7796  fi
7797  ;;
7798
7799amigaos*)
7800  library_names_spec='$libname.ixlibrary $libname.a'
7801  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7802  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'
7803  ;;
7804
7805beos*)
7806  library_names_spec='${libname}${shared_ext}'
7807  dynamic_linker="$host_os ld.so"
7808  shlibpath_var=LIBRARY_PATH
7809  ;;
7810
7811bsdi[45]*)
7812  version_type=linux
7813  need_version=no
7814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7815  soname_spec='${libname}${release}${shared_ext}$major'
7816  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7817  shlibpath_var=LD_LIBRARY_PATH
7818  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7819  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7820  # the default ld.so.conf also contains /usr/contrib/lib and
7821  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7822  # libtool to hard-code these into programs
7823  ;;
7824
7825cygwin* | mingw* | pw32*)
7826  version_type=windows
7827  shrext_cmds=".dll"
7828  need_version=no
7829  need_lib_prefix=no
7830
7831  case $GCC,$host_os in
7832  yes,cygwin* | yes,mingw* | yes,pw32*)
7833    library_names_spec='$libname.dll.a'
7834    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7835    postinstall_cmds='base_file=`basename \${file}`~
7836      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7837      dldir=$destdir/`dirname \$dlpath`~
7838      test -d \$dldir || mkdir -p \$dldir~
7839      $install_prog $dir/$dlname \$dldir/$dlname~
7840      chmod a+x \$dldir/$dlname'
7841    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7842      dlpath=$dir/\$dldll~
7843       $rm \$dlpath'
7844    shlibpath_overrides_runpath=yes
7845
7846    case $host_os in
7847    cygwin*)
7848      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7849      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7850      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7851      ;;
7852    mingw*)
7853      # MinGW DLLs use traditional 'lib' prefix
7854      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7855      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7856      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7857        # It is most probably a Windows format PATH printed by
7858        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7859        # path with ; separators, and with drive letters. We can handle the
7860        # drive letters (cygwin fileutils understands them), so leave them,
7861        # especially as we might pass files found there to a mingw objdump,
7862        # which wouldn't understand a cygwinified path. Ahh.
7863        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7864      else
7865        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7866      fi
7867      ;;
7868    pw32*)
7869      # pw32 DLLs use 'pw' prefix rather than 'lib'
7870      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7871      ;;
7872    esac
7873    ;;
7874
7875  *)
7876    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7877    ;;
7878  esac
7879  dynamic_linker='Win32 ld.exe'
7880  # FIXME: first we should search . and the directory the executable is in
7881  shlibpath_var=PATH
7882  ;;
7883
7884darwin* | rhapsody*)
7885  dynamic_linker="$host_os dyld"
7886  version_type=darwin
7887  need_lib_prefix=no
7888  need_version=no
7889  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7890  soname_spec='${libname}${release}${major}$shared_ext'
7891  shlibpath_overrides_runpath=yes
7892  shlibpath_var=DYLD_LIBRARY_PATH
7893  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7894  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7895  if test "$GCC" = yes; then
7896    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"`
7897  else
7898    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7899  fi
7900  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7901  ;;
7902
7903dgux*)
7904  version_type=linux
7905  need_lib_prefix=no
7906  need_version=no
7907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7908  soname_spec='${libname}${release}${shared_ext}$major'
7909  shlibpath_var=LD_LIBRARY_PATH
7910  ;;
7911
7912freebsd1*)
7913  dynamic_linker=no
7914  ;;
7915
7916haiku*)
7917  library_names_spec='${libname}${shared_ext}'
7918  dynamic_linker="$host_os ld.so"
7919  shlibpath_var=LIBRARY_PATH
7920  ;;
7921
7922kfreebsd*-gnu)
7923  version_type=linux
7924  need_lib_prefix=no
7925  need_version=no
7926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7927  soname_spec='${libname}${release}${shared_ext}$major'
7928  shlibpath_var=LD_LIBRARY_PATH
7929  shlibpath_overrides_runpath=no
7930  hardcode_into_libs=yes
7931  dynamic_linker='GNU ld.so'
7932  ;;
7933
7934freebsd* | dragonfly*)
7935  # DragonFly does not have aout.  When/if they implement a new
7936  # versioning mechanism, adjust this.
7937  if test -x /usr/bin/objformat; then
7938    objformat=`/usr/bin/objformat`
7939  else
7940    case $host_os in
7941    freebsd[123]*) objformat=aout ;;
7942    *) objformat=elf ;;
7943    esac
7944  fi
7945  version_type=freebsd-$objformat
7946  case $version_type in
7947    freebsd-elf*)
7948      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7949      need_version=no
7950      need_lib_prefix=no
7951      ;;
7952    freebsd-*)
7953      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7954      need_version=yes
7955      ;;
7956  esac
7957  shlibpath_var=LD_LIBRARY_PATH
7958  case $host_os in
7959  freebsd2*)
7960    shlibpath_overrides_runpath=yes
7961    ;;
7962  freebsd3.[01]* | freebsdelf3.[01]*)
7963    shlibpath_overrides_runpath=yes
7964    hardcode_into_libs=yes
7965    ;;
7966  *) # from 3.2 on
7967    shlibpath_overrides_runpath=no
7968    hardcode_into_libs=yes
7969    ;;
7970  esac
7971  ;;
7972
7973gnu*)
7974  version_type=linux
7975  need_lib_prefix=no
7976  need_version=no
7977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7978  soname_spec='${libname}${release}${shared_ext}$major'
7979  shlibpath_var=LD_LIBRARY_PATH
7980  hardcode_into_libs=yes
7981  ;;
7982
7983hpux9* | hpux10* | hpux11*)
7984  # Give a soname corresponding to the major version so that dld.sl refuses to
7985  # link against other versions.
7986  version_type=sunos
7987  need_lib_prefix=no
7988  need_version=no
7989  case $host_cpu in
7990  ia64*)
7991    shrext_cmds='.so'
7992    hardcode_into_libs=yes
7993    dynamic_linker="$host_os dld.so"
7994    shlibpath_var=LD_LIBRARY_PATH
7995    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7996    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997    soname_spec='${libname}${release}${shared_ext}$major'
7998    if test "X$HPUX_IA64_MODE" = X32; then
7999      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8000    else
8001      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8002    fi
8003    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8004    ;;
8005   hppa*64*)
8006     shrext_cmds='.sl'
8007     hardcode_into_libs=yes
8008     dynamic_linker="$host_os dld.sl"
8009     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8010     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8011     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8012     soname_spec='${libname}${release}${shared_ext}$major'
8013     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8014     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8015     ;;
8016   *)
8017    shrext_cmds='.sl'
8018    dynamic_linker="$host_os dld.sl"
8019    shlibpath_var=SHLIB_PATH
8020    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8021    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8022    soname_spec='${libname}${release}${shared_ext}$major'
8023    ;;
8024  esac
8025  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8026  postinstall_cmds='chmod 555 $lib'
8027  ;;
8028
8029irix5* | irix6* | nonstopux*)
8030  case $host_os in
8031    nonstopux*) version_type=nonstopux ;;
8032    *)
8033	if test "$lt_cv_prog_gnu_ld" = yes; then
8034		version_type=linux
8035	else
8036		version_type=irix
8037	fi ;;
8038  esac
8039  need_lib_prefix=no
8040  need_version=no
8041  soname_spec='${libname}${release}${shared_ext}$major'
8042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8043  case $host_os in
8044  irix5* | nonstopux*)
8045    libsuff= shlibsuff=
8046    ;;
8047  *)
8048    case $LD in # libtool.m4 will add one of these switches to LD
8049    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8050      libsuff= shlibsuff= libmagic=32-bit;;
8051    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8052      libsuff=32 shlibsuff=N32 libmagic=N32;;
8053    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8054      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8055    *) libsuff= shlibsuff= libmagic=never-match;;
8056    esac
8057    ;;
8058  esac
8059  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8060  shlibpath_overrides_runpath=no
8061  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8062  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8063  hardcode_into_libs=yes
8064  ;;
8065
8066# No shared lib support for Linux oldld, aout, or coff.
8067linux*oldld* | linux*aout* | linux*coff*)
8068  dynamic_linker=no
8069  ;;
8070
8071# This must be Linux ELF.
8072linux*)
8073  version_type=linux
8074  need_lib_prefix=no
8075  need_version=no
8076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8077  soname_spec='${libname}${release}${shared_ext}$major'
8078  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8079  shlibpath_var=LD_LIBRARY_PATH
8080  shlibpath_overrides_runpath=no
8081  # This implies no fast_install, which is unacceptable.
8082  # Some rework will be needed to allow for fast_install
8083  # before this can be enabled.
8084  hardcode_into_libs=yes
8085
8086  # Append ld.so.conf contents to the search path
8087  if test -f /etc/ld.so.conf; then
8088    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8089    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8090  fi
8091
8092  # We used to test for /lib/ld.so.1 and disable shared libraries on
8093  # powerpc, because MkLinux only supported shared libraries with the
8094  # GNU dynamic linker.  Since this was broken with cross compilers,
8095  # most powerpc-linux boxes support dynamic linking these days and
8096  # people can always --disable-shared, the test was removed, and we
8097  # assume the GNU/Linux dynamic linker is in use.
8098  dynamic_linker='GNU/Linux ld.so'
8099  ;;
8100
8101knetbsd*-gnu)
8102  version_type=linux
8103  need_lib_prefix=no
8104  need_version=no
8105  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8106  soname_spec='${libname}${release}${shared_ext}$major'
8107  shlibpath_var=LD_LIBRARY_PATH
8108  shlibpath_overrides_runpath=no
8109  hardcode_into_libs=yes
8110  dynamic_linker='GNU ld.so'
8111  ;;
8112
8113netbsd*)
8114  version_type=sunos
8115  need_lib_prefix=no
8116  need_version=no
8117  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8118    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8119    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8120    dynamic_linker='NetBSD (a.out) ld.so'
8121  else
8122    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8123    soname_spec='${libname}${release}${shared_ext}$major'
8124    dynamic_linker='NetBSD ld.elf_so'
8125  fi
8126  shlibpath_var=LD_LIBRARY_PATH
8127  shlibpath_overrides_runpath=yes
8128  hardcode_into_libs=yes
8129  ;;
8130
8131newsos6)
8132  version_type=linux
8133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8134  shlibpath_var=LD_LIBRARY_PATH
8135  shlibpath_overrides_runpath=yes
8136  ;;
8137
8138nto-qnx*)
8139  version_type=linux
8140  need_lib_prefix=no
8141  need_version=no
8142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8143  soname_spec='${libname}${release}${shared_ext}$major'
8144  shlibpath_var=LD_LIBRARY_PATH
8145  shlibpath_overrides_runpath=yes
8146  ;;
8147
8148openbsd*)
8149  version_type=sunos
8150  need_lib_prefix=no
8151  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8152  case $host_os in
8153    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8154    *)                         need_version=no  ;;
8155  esac
8156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8157  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8158  shlibpath_var=LD_LIBRARY_PATH
8159  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8160    case $host_os in
8161      openbsd2.[89] | openbsd2.[89].*)
8162	shlibpath_overrides_runpath=no
8163	;;
8164      *)
8165	shlibpath_overrides_runpath=yes
8166	;;
8167      esac
8168  else
8169    shlibpath_overrides_runpath=yes
8170  fi
8171  ;;
8172
8173os2*)
8174  libname_spec='$name'
8175  shrext_cmds=".dll"
8176  need_lib_prefix=no
8177  library_names_spec='$libname${shared_ext} $libname.a'
8178  dynamic_linker='OS/2 ld.exe'
8179  shlibpath_var=LIBPATH
8180  ;;
8181
8182osf3* | osf4* | osf5*)
8183  version_type=osf
8184  need_lib_prefix=no
8185  need_version=no
8186  soname_spec='${libname}${release}${shared_ext}$major'
8187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8188  shlibpath_var=LD_LIBRARY_PATH
8189  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8190  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8191  ;;
8192
8193sco3.2v5*)
8194  version_type=osf
8195  soname_spec='${libname}${release}${shared_ext}$major'
8196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8197  shlibpath_var=LD_LIBRARY_PATH
8198  ;;
8199
8200solaris*)
8201  version_type=linux
8202  need_lib_prefix=no
8203  need_version=no
8204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8205  soname_spec='${libname}${release}${shared_ext}$major'
8206  shlibpath_var=LD_LIBRARY_PATH
8207  shlibpath_overrides_runpath=yes
8208  hardcode_into_libs=yes
8209  # ldd complains unless libraries are executable
8210  postinstall_cmds='chmod +x $lib'
8211  ;;
8212
8213sunos4*)
8214  version_type=sunos
8215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8216  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8217  shlibpath_var=LD_LIBRARY_PATH
8218  shlibpath_overrides_runpath=yes
8219  if test "$with_gnu_ld" = yes; then
8220    need_lib_prefix=no
8221  fi
8222  need_version=yes
8223  ;;
8224
8225sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8226  version_type=linux
8227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8228  soname_spec='${libname}${release}${shared_ext}$major'
8229  shlibpath_var=LD_LIBRARY_PATH
8230  case $host_vendor in
8231    sni)
8232      shlibpath_overrides_runpath=no
8233      need_lib_prefix=no
8234      export_dynamic_flag_spec='${wl}-Blargedynsym'
8235      runpath_var=LD_RUN_PATH
8236      ;;
8237    siemens)
8238      need_lib_prefix=no
8239      ;;
8240    motorola)
8241      need_lib_prefix=no
8242      need_version=no
8243      shlibpath_overrides_runpath=no
8244      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8245      ;;
8246  esac
8247  ;;
8248
8249sysv4*MP*)
8250  if test -d /usr/nec ;then
8251    version_type=linux
8252    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8253    soname_spec='$libname${shared_ext}.$major'
8254    shlibpath_var=LD_LIBRARY_PATH
8255  fi
8256  ;;
8257
8258uts4*)
8259  version_type=linux
8260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8261  soname_spec='${libname}${release}${shared_ext}$major'
8262  shlibpath_var=LD_LIBRARY_PATH
8263  ;;
8264
8265*)
8266  dynamic_linker=no
8267  ;;
8268esac
8269echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8270echo "${ECHO_T}$dynamic_linker" >&6
8271test "$dynamic_linker" = no && can_build_shared=no
8272
8273echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8274echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8275hardcode_action=
8276if test -n "$hardcode_libdir_flag_spec" || \
8277   test -n "$runpath_var" || \
8278   test "X$hardcode_automatic" = "Xyes" ; then
8279
8280  # We can hardcode non-existant directories.
8281  if test "$hardcode_direct" != no &&
8282     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8283     # have to relink, otherwise we might link with an installed library
8284     # when we should be linking with a yet-to-be-installed one
8285     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8286     test "$hardcode_minus_L" != no; then
8287    # Linking always hardcodes the temporary library directory.
8288    hardcode_action=relink
8289  else
8290    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8291    hardcode_action=immediate
8292  fi
8293else
8294  # We cannot hardcode anything, or else we can only hardcode existing
8295  # directories.
8296  hardcode_action=unsupported
8297fi
8298echo "$as_me:$LINENO: result: $hardcode_action" >&5
8299echo "${ECHO_T}$hardcode_action" >&6
8300
8301if test "$hardcode_action" = relink; then
8302  # Fast installation is not supported
8303  enable_fast_install=no
8304elif test "$shlibpath_overrides_runpath" = yes ||
8305     test "$enable_shared" = no; then
8306  # Fast installation is not necessary
8307  enable_fast_install=needless
8308fi
8309
8310striplib=
8311old_striplib=
8312echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8313echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8314if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8315  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8316  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8317  echo "$as_me:$LINENO: result: yes" >&5
8318echo "${ECHO_T}yes" >&6
8319else
8320# FIXME - insert some real tests, host_os isn't really good enough
8321  case $host_os in
8322   darwin*)
8323       if test -n "$STRIP" ; then
8324         striplib="$STRIP -x"
8325         echo "$as_me:$LINENO: result: yes" >&5
8326echo "${ECHO_T}yes" >&6
8327       else
8328  echo "$as_me:$LINENO: result: no" >&5
8329echo "${ECHO_T}no" >&6
8330fi
8331       ;;
8332   *)
8333  echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
8335    ;;
8336  esac
8337fi
8338
8339if test "x$enable_dlopen" != xyes; then
8340  enable_dlopen=unknown
8341  enable_dlopen_self=unknown
8342  enable_dlopen_self_static=unknown
8343else
8344  lt_cv_dlopen=no
8345  lt_cv_dlopen_libs=
8346
8347  case $host_os in
8348  beos*)
8349    lt_cv_dlopen="load_add_on"
8350    lt_cv_dlopen_libs=
8351    lt_cv_dlopen_self=yes
8352    ;;
8353
8354  mingw* | pw32*)
8355    lt_cv_dlopen="LoadLibrary"
8356    lt_cv_dlopen_libs=
8357   ;;
8358
8359  cygwin*)
8360    lt_cv_dlopen="dlopen"
8361    lt_cv_dlopen_libs=
8362   ;;
8363
8364  darwin*)
8365  # if libdl is installed we need to link against it
8366    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8367echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8368if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8369  echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371  ac_check_lib_save_LIBS=$LIBS
8372LIBS="-ldl  $LIBS"
8373cat >conftest.$ac_ext <<_ACEOF
8374/* confdefs.h.  */
8375_ACEOF
8376cat confdefs.h >>conftest.$ac_ext
8377cat >>conftest.$ac_ext <<_ACEOF
8378/* end confdefs.h.  */
8379
8380/* Override any gcc2 internal prototype to avoid an error.  */
8381#ifdef __cplusplus
8382extern "C"
8383#endif
8384/* We use char because int might match the return type of a gcc2
8385   builtin and then its argument prototype would still apply.  */
8386char dlopen ();
8387int
8388main ()
8389{
8390dlopen ();
8391  ;
8392  return 0;
8393}
8394_ACEOF
8395rm -f conftest.$ac_objext conftest$ac_exeext
8396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397  (eval $ac_link) 2>conftest.er1
8398  ac_status=$?
8399  grep -v '^ *+' conftest.er1 >conftest.err
8400  rm -f conftest.er1
8401  cat conftest.err >&5
8402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403  (exit $ac_status); } &&
8404	 { ac_try='test -z "$ac_c_werror_flag"
8405			 || test ! -s conftest.err'
8406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407  (eval $ac_try) 2>&5
8408  ac_status=$?
8409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410  (exit $ac_status); }; } &&
8411	 { ac_try='test -s conftest$ac_exeext'
8412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413  (eval $ac_try) 2>&5
8414  ac_status=$?
8415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416  (exit $ac_status); }; }; then
8417  ac_cv_lib_dl_dlopen=yes
8418else
8419  echo "$as_me: failed program was:" >&5
8420sed 's/^/| /' conftest.$ac_ext >&5
8421
8422ac_cv_lib_dl_dlopen=no
8423fi
8424rm -f conftest.err conftest.$ac_objext \
8425      conftest$ac_exeext conftest.$ac_ext
8426LIBS=$ac_check_lib_save_LIBS
8427fi
8428echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8429echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8430if test $ac_cv_lib_dl_dlopen = yes; then
8431  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8432else
8433
8434    lt_cv_dlopen="dyld"
8435    lt_cv_dlopen_libs=
8436    lt_cv_dlopen_self=yes
8437
8438fi
8439
8440   ;;
8441
8442  haiku*)
8443    lt_cv_dlopen="load_add_on"
8444    lt_cv_dlopen_libs=
8445    lt_cv_dlopen_self=yes
8446    ;;
8447
8448  *)
8449    echo "$as_me:$LINENO: checking for shl_load" >&5
8450echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8451if test "${ac_cv_func_shl_load+set}" = set; then
8452  echo $ECHO_N "(cached) $ECHO_C" >&6
8453else
8454  cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h.  */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h.  */
8460/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8461   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8462#define shl_load innocuous_shl_load
8463
8464/* System header to define __stub macros and hopefully few prototypes,
8465    which can conflict with char shl_load (); below.
8466    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8467    <limits.h> exists even on freestanding compilers.  */
8468
8469#ifdef __STDC__
8470# include <limits.h>
8471#else
8472# include <assert.h>
8473#endif
8474
8475#undef shl_load
8476
8477/* Override any gcc2 internal prototype to avoid an error.  */
8478#ifdef __cplusplus
8479extern "C"
8480{
8481#endif
8482/* We use char because int might match the return type of a gcc2
8483   builtin and then its argument prototype would still apply.  */
8484char shl_load ();
8485/* The GNU C library defines this for functions which it implements
8486    to always fail with ENOSYS.  Some functions are actually named
8487    something starting with __ and the normal name is an alias.  */
8488#if defined (__stub_shl_load) || defined (__stub___shl_load)
8489choke me
8490#else
8491char (*f) () = shl_load;
8492#endif
8493#ifdef __cplusplus
8494}
8495#endif
8496
8497int
8498main ()
8499{
8500return f != shl_load;
8501  ;
8502  return 0;
8503}
8504_ACEOF
8505rm -f conftest.$ac_objext conftest$ac_exeext
8506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507  (eval $ac_link) 2>conftest.er1
8508  ac_status=$?
8509  grep -v '^ *+' conftest.er1 >conftest.err
8510  rm -f conftest.er1
8511  cat conftest.err >&5
8512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513  (exit $ac_status); } &&
8514	 { ac_try='test -z "$ac_c_werror_flag"
8515			 || test ! -s conftest.err'
8516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517  (eval $ac_try) 2>&5
8518  ac_status=$?
8519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520  (exit $ac_status); }; } &&
8521	 { ac_try='test -s conftest$ac_exeext'
8522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523  (eval $ac_try) 2>&5
8524  ac_status=$?
8525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526  (exit $ac_status); }; }; then
8527  ac_cv_func_shl_load=yes
8528else
8529  echo "$as_me: failed program was:" >&5
8530sed 's/^/| /' conftest.$ac_ext >&5
8531
8532ac_cv_func_shl_load=no
8533fi
8534rm -f conftest.err conftest.$ac_objext \
8535      conftest$ac_exeext conftest.$ac_ext
8536fi
8537echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8538echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8539if test $ac_cv_func_shl_load = yes; then
8540  lt_cv_dlopen="shl_load"
8541else
8542  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8543echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8544if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8545  echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
8547  ac_check_lib_save_LIBS=$LIBS
8548LIBS="-ldld  $LIBS"
8549cat >conftest.$ac_ext <<_ACEOF
8550/* confdefs.h.  */
8551_ACEOF
8552cat confdefs.h >>conftest.$ac_ext
8553cat >>conftest.$ac_ext <<_ACEOF
8554/* end confdefs.h.  */
8555
8556/* Override any gcc2 internal prototype to avoid an error.  */
8557#ifdef __cplusplus
8558extern "C"
8559#endif
8560/* We use char because int might match the return type of a gcc2
8561   builtin and then its argument prototype would still apply.  */
8562char shl_load ();
8563int
8564main ()
8565{
8566shl_load ();
8567  ;
8568  return 0;
8569}
8570_ACEOF
8571rm -f conftest.$ac_objext conftest$ac_exeext
8572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8573  (eval $ac_link) 2>conftest.er1
8574  ac_status=$?
8575  grep -v '^ *+' conftest.er1 >conftest.err
8576  rm -f conftest.er1
8577  cat conftest.err >&5
8578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579  (exit $ac_status); } &&
8580	 { ac_try='test -z "$ac_c_werror_flag"
8581			 || test ! -s conftest.err'
8582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8583  (eval $ac_try) 2>&5
8584  ac_status=$?
8585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586  (exit $ac_status); }; } &&
8587	 { ac_try='test -s conftest$ac_exeext'
8588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589  (eval $ac_try) 2>&5
8590  ac_status=$?
8591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592  (exit $ac_status); }; }; then
8593  ac_cv_lib_dld_shl_load=yes
8594else
8595  echo "$as_me: failed program was:" >&5
8596sed 's/^/| /' conftest.$ac_ext >&5
8597
8598ac_cv_lib_dld_shl_load=no
8599fi
8600rm -f conftest.err conftest.$ac_objext \
8601      conftest$ac_exeext conftest.$ac_ext
8602LIBS=$ac_check_lib_save_LIBS
8603fi
8604echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8605echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8606if test $ac_cv_lib_dld_shl_load = yes; then
8607  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8608else
8609  echo "$as_me:$LINENO: checking for dlopen" >&5
8610echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8611if test "${ac_cv_func_dlopen+set}" = set; then
8612  echo $ECHO_N "(cached) $ECHO_C" >&6
8613else
8614  cat >conftest.$ac_ext <<_ACEOF
8615/* confdefs.h.  */
8616_ACEOF
8617cat confdefs.h >>conftest.$ac_ext
8618cat >>conftest.$ac_ext <<_ACEOF
8619/* end confdefs.h.  */
8620/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8621   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8622#define dlopen innocuous_dlopen
8623
8624/* System header to define __stub macros and hopefully few prototypes,
8625    which can conflict with char dlopen (); below.
8626    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8627    <limits.h> exists even on freestanding compilers.  */
8628
8629#ifdef __STDC__
8630# include <limits.h>
8631#else
8632# include <assert.h>
8633#endif
8634
8635#undef dlopen
8636
8637/* Override any gcc2 internal prototype to avoid an error.  */
8638#ifdef __cplusplus
8639extern "C"
8640{
8641#endif
8642/* We use char because int might match the return type of a gcc2
8643   builtin and then its argument prototype would still apply.  */
8644char dlopen ();
8645/* The GNU C library defines this for functions which it implements
8646    to always fail with ENOSYS.  Some functions are actually named
8647    something starting with __ and the normal name is an alias.  */
8648#if defined (__stub_dlopen) || defined (__stub___dlopen)
8649choke me
8650#else
8651char (*f) () = dlopen;
8652#endif
8653#ifdef __cplusplus
8654}
8655#endif
8656
8657int
8658main ()
8659{
8660return f != dlopen;
8661  ;
8662  return 0;
8663}
8664_ACEOF
8665rm -f conftest.$ac_objext conftest$ac_exeext
8666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667  (eval $ac_link) 2>conftest.er1
8668  ac_status=$?
8669  grep -v '^ *+' conftest.er1 >conftest.err
8670  rm -f conftest.er1
8671  cat conftest.err >&5
8672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673  (exit $ac_status); } &&
8674	 { ac_try='test -z "$ac_c_werror_flag"
8675			 || test ! -s conftest.err'
8676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677  (eval $ac_try) 2>&5
8678  ac_status=$?
8679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680  (exit $ac_status); }; } &&
8681	 { ac_try='test -s conftest$ac_exeext'
8682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683  (eval $ac_try) 2>&5
8684  ac_status=$?
8685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686  (exit $ac_status); }; }; then
8687  ac_cv_func_dlopen=yes
8688else
8689  echo "$as_me: failed program was:" >&5
8690sed 's/^/| /' conftest.$ac_ext >&5
8691
8692ac_cv_func_dlopen=no
8693fi
8694rm -f conftest.err conftest.$ac_objext \
8695      conftest$ac_exeext conftest.$ac_ext
8696fi
8697echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8698echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8699if test $ac_cv_func_dlopen = yes; then
8700  lt_cv_dlopen="dlopen"
8701else
8702  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8703echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8704if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8705  echo $ECHO_N "(cached) $ECHO_C" >&6
8706else
8707  ac_check_lib_save_LIBS=$LIBS
8708LIBS="-ldl  $LIBS"
8709cat >conftest.$ac_ext <<_ACEOF
8710/* confdefs.h.  */
8711_ACEOF
8712cat confdefs.h >>conftest.$ac_ext
8713cat >>conftest.$ac_ext <<_ACEOF
8714/* end confdefs.h.  */
8715
8716/* Override any gcc2 internal prototype to avoid an error.  */
8717#ifdef __cplusplus
8718extern "C"
8719#endif
8720/* We use char because int might match the return type of a gcc2
8721   builtin and then its argument prototype would still apply.  */
8722char dlopen ();
8723int
8724main ()
8725{
8726dlopen ();
8727  ;
8728  return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext conftest$ac_exeext
8732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8733  (eval $ac_link) 2>conftest.er1
8734  ac_status=$?
8735  grep -v '^ *+' conftest.er1 >conftest.err
8736  rm -f conftest.er1
8737  cat conftest.err >&5
8738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739  (exit $ac_status); } &&
8740	 { ac_try='test -z "$ac_c_werror_flag"
8741			 || test ! -s conftest.err'
8742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743  (eval $ac_try) 2>&5
8744  ac_status=$?
8745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746  (exit $ac_status); }; } &&
8747	 { ac_try='test -s conftest$ac_exeext'
8748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8749  (eval $ac_try) 2>&5
8750  ac_status=$?
8751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752  (exit $ac_status); }; }; then
8753  ac_cv_lib_dl_dlopen=yes
8754else
8755  echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
8758ac_cv_lib_dl_dlopen=no
8759fi
8760rm -f conftest.err conftest.$ac_objext \
8761      conftest$ac_exeext conftest.$ac_ext
8762LIBS=$ac_check_lib_save_LIBS
8763fi
8764echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8765echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8766if test $ac_cv_lib_dl_dlopen = yes; then
8767  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8768else
8769  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8770echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8771if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8772  echo $ECHO_N "(cached) $ECHO_C" >&6
8773else
8774  ac_check_lib_save_LIBS=$LIBS
8775LIBS="-lsvld  $LIBS"
8776cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h.  */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h.  */
8782
8783/* Override any gcc2 internal prototype to avoid an error.  */
8784#ifdef __cplusplus
8785extern "C"
8786#endif
8787/* We use char because int might match the return type of a gcc2
8788   builtin and then its argument prototype would still apply.  */
8789char dlopen ();
8790int
8791main ()
8792{
8793dlopen ();
8794  ;
8795  return 0;
8796}
8797_ACEOF
8798rm -f conftest.$ac_objext conftest$ac_exeext
8799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8800  (eval $ac_link) 2>conftest.er1
8801  ac_status=$?
8802  grep -v '^ *+' conftest.er1 >conftest.err
8803  rm -f conftest.er1
8804  cat conftest.err >&5
8805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806  (exit $ac_status); } &&
8807	 { ac_try='test -z "$ac_c_werror_flag"
8808			 || test ! -s conftest.err'
8809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8810  (eval $ac_try) 2>&5
8811  ac_status=$?
8812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813  (exit $ac_status); }; } &&
8814	 { ac_try='test -s conftest$ac_exeext'
8815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816  (eval $ac_try) 2>&5
8817  ac_status=$?
8818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819  (exit $ac_status); }; }; then
8820  ac_cv_lib_svld_dlopen=yes
8821else
8822  echo "$as_me: failed program was:" >&5
8823sed 's/^/| /' conftest.$ac_ext >&5
8824
8825ac_cv_lib_svld_dlopen=no
8826fi
8827rm -f conftest.err conftest.$ac_objext \
8828      conftest$ac_exeext conftest.$ac_ext
8829LIBS=$ac_check_lib_save_LIBS
8830fi
8831echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8832echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8833if test $ac_cv_lib_svld_dlopen = yes; then
8834  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8835else
8836  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8837echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8838if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8839  echo $ECHO_N "(cached) $ECHO_C" >&6
8840else
8841  ac_check_lib_save_LIBS=$LIBS
8842LIBS="-ldld  $LIBS"
8843cat >conftest.$ac_ext <<_ACEOF
8844/* confdefs.h.  */
8845_ACEOF
8846cat confdefs.h >>conftest.$ac_ext
8847cat >>conftest.$ac_ext <<_ACEOF
8848/* end confdefs.h.  */
8849
8850/* Override any gcc2 internal prototype to avoid an error.  */
8851#ifdef __cplusplus
8852extern "C"
8853#endif
8854/* We use char because int might match the return type of a gcc2
8855   builtin and then its argument prototype would still apply.  */
8856char dld_link ();
8857int
8858main ()
8859{
8860dld_link ();
8861  ;
8862  return 0;
8863}
8864_ACEOF
8865rm -f conftest.$ac_objext conftest$ac_exeext
8866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867  (eval $ac_link) 2>conftest.er1
8868  ac_status=$?
8869  grep -v '^ *+' conftest.er1 >conftest.err
8870  rm -f conftest.er1
8871  cat conftest.err >&5
8872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873  (exit $ac_status); } &&
8874	 { ac_try='test -z "$ac_c_werror_flag"
8875			 || test ! -s conftest.err'
8876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8877  (eval $ac_try) 2>&5
8878  ac_status=$?
8879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880  (exit $ac_status); }; } &&
8881	 { ac_try='test -s conftest$ac_exeext'
8882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8883  (eval $ac_try) 2>&5
8884  ac_status=$?
8885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886  (exit $ac_status); }; }; then
8887  ac_cv_lib_dld_dld_link=yes
8888else
8889  echo "$as_me: failed program was:" >&5
8890sed 's/^/| /' conftest.$ac_ext >&5
8891
8892ac_cv_lib_dld_dld_link=no
8893fi
8894rm -f conftest.err conftest.$ac_objext \
8895      conftest$ac_exeext conftest.$ac_ext
8896LIBS=$ac_check_lib_save_LIBS
8897fi
8898echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8899echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8900if test $ac_cv_lib_dld_dld_link = yes; then
8901  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8902fi
8903
8904
8905fi
8906
8907
8908fi
8909
8910
8911fi
8912
8913
8914fi
8915
8916
8917fi
8918
8919    ;;
8920  esac
8921
8922  if test "x$lt_cv_dlopen" != xno; then
8923    enable_dlopen=yes
8924  else
8925    enable_dlopen=no
8926  fi
8927
8928  case $lt_cv_dlopen in
8929  dlopen)
8930    save_CPPFLAGS="$CPPFLAGS"
8931    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8932
8933    save_LDFLAGS="$LDFLAGS"
8934    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8935
8936    save_LIBS="$LIBS"
8937    LIBS="$lt_cv_dlopen_libs $LIBS"
8938
8939    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8940echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8941if test "${lt_cv_dlopen_self+set}" = set; then
8942  echo $ECHO_N "(cached) $ECHO_C" >&6
8943else
8944  	  if test "$cross_compiling" = yes; then :
8945  lt_cv_dlopen_self=cross
8946else
8947  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8948  lt_status=$lt_dlunknown
8949  cat > conftest.$ac_ext <<EOF
8950#line 8950 "configure"
8951#include "confdefs.h"
8952
8953#if HAVE_DLFCN_H
8954#include <dlfcn.h>
8955#endif
8956
8957#include <stdio.h>
8958
8959#ifdef RTLD_GLOBAL
8960#  define LT_DLGLOBAL		RTLD_GLOBAL
8961#else
8962#  ifdef DL_GLOBAL
8963#    define LT_DLGLOBAL		DL_GLOBAL
8964#  else
8965#    define LT_DLGLOBAL		0
8966#  endif
8967#endif
8968
8969/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8970   find out it does not work in some platform. */
8971#ifndef LT_DLLAZY_OR_NOW
8972#  ifdef RTLD_LAZY
8973#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8974#  else
8975#    ifdef DL_LAZY
8976#      define LT_DLLAZY_OR_NOW		DL_LAZY
8977#    else
8978#      ifdef RTLD_NOW
8979#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8980#      else
8981#        ifdef DL_NOW
8982#          define LT_DLLAZY_OR_NOW	DL_NOW
8983#        else
8984#          define LT_DLLAZY_OR_NOW	0
8985#        endif
8986#      endif
8987#    endif
8988#  endif
8989#endif
8990
8991#ifdef __cplusplus
8992extern "C" void exit (int);
8993#endif
8994
8995void fnord() { int i=42;}
8996int main ()
8997{
8998  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8999  int status = $lt_dlunknown;
9000
9001  if (self)
9002    {
9003      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9004      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9005      /* dlclose (self); */
9006    }
9007
9008    exit (status);
9009}
9010EOF
9011  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9012  (eval $ac_link) 2>&5
9013  ac_status=$?
9014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9016    (./conftest; exit; ) >&5 2>/dev/null
9017    lt_status=$?
9018    case x$lt_status in
9019      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9020      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9021      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9022    esac
9023  else :
9024    # compilation failed
9025    lt_cv_dlopen_self=no
9026  fi
9027fi
9028rm -fr conftest*
9029
9030
9031fi
9032echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9033echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9034
9035    if test "x$lt_cv_dlopen_self" = xyes; then
9036      LDFLAGS="$LDFLAGS $link_static_flag"
9037      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9038echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9039if test "${lt_cv_dlopen_self_static+set}" = set; then
9040  echo $ECHO_N "(cached) $ECHO_C" >&6
9041else
9042  	  if test "$cross_compiling" = yes; then :
9043  lt_cv_dlopen_self_static=cross
9044else
9045  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9046  lt_status=$lt_dlunknown
9047  cat > conftest.$ac_ext <<EOF
9048#line 9048 "configure"
9049#include "confdefs.h"
9050
9051#if HAVE_DLFCN_H
9052#include <dlfcn.h>
9053#endif
9054
9055#include <stdio.h>
9056
9057#ifdef RTLD_GLOBAL
9058#  define LT_DLGLOBAL		RTLD_GLOBAL
9059#else
9060#  ifdef DL_GLOBAL
9061#    define LT_DLGLOBAL		DL_GLOBAL
9062#  else
9063#    define LT_DLGLOBAL		0
9064#  endif
9065#endif
9066
9067/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9068   find out it does not work in some platform. */
9069#ifndef LT_DLLAZY_OR_NOW
9070#  ifdef RTLD_LAZY
9071#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9072#  else
9073#    ifdef DL_LAZY
9074#      define LT_DLLAZY_OR_NOW		DL_LAZY
9075#    else
9076#      ifdef RTLD_NOW
9077#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9078#      else
9079#        ifdef DL_NOW
9080#          define LT_DLLAZY_OR_NOW	DL_NOW
9081#        else
9082#          define LT_DLLAZY_OR_NOW	0
9083#        endif
9084#      endif
9085#    endif
9086#  endif
9087#endif
9088
9089#ifdef __cplusplus
9090extern "C" void exit (int);
9091#endif
9092
9093void fnord() { int i=42;}
9094int main ()
9095{
9096  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9097  int status = $lt_dlunknown;
9098
9099  if (self)
9100    {
9101      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9102      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9103      /* dlclose (self); */
9104    }
9105
9106    exit (status);
9107}
9108EOF
9109  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9110  (eval $ac_link) 2>&5
9111  ac_status=$?
9112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9114    (./conftest; exit; ) >&5 2>/dev/null
9115    lt_status=$?
9116    case x$lt_status in
9117      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9118      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9119      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9120    esac
9121  else :
9122    # compilation failed
9123    lt_cv_dlopen_self_static=no
9124  fi
9125fi
9126rm -fr conftest*
9127
9128
9129fi
9130echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9131echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9132    fi
9133
9134    CPPFLAGS="$save_CPPFLAGS"
9135    LDFLAGS="$save_LDFLAGS"
9136    LIBS="$save_LIBS"
9137    ;;
9138  esac
9139
9140  case $lt_cv_dlopen_self in
9141  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9142  *) enable_dlopen_self=unknown ;;
9143  esac
9144
9145  case $lt_cv_dlopen_self_static in
9146  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9147  *) enable_dlopen_self_static=unknown ;;
9148  esac
9149fi
9150
9151
9152# Report which librarie types wil actually be built
9153echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9154echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9155echo "$as_me:$LINENO: result: $can_build_shared" >&5
9156echo "${ECHO_T}$can_build_shared" >&6
9157
9158echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9159echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9160test "$can_build_shared" = "no" && enable_shared=no
9161
9162# On AIX, shared libraries and static libraries use the same namespace, and
9163# are all built from PIC.
9164case $host_os in
9165aix3*)
9166  test "$enable_shared" = yes && enable_static=no
9167  if test -n "$RANLIB"; then
9168    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9169    postinstall_cmds='$RANLIB $lib'
9170  fi
9171  ;;
9172
9173aix4* | aix5*)
9174  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9175    test "$enable_shared" = yes && enable_static=no
9176  fi
9177    ;;
9178esac
9179echo "$as_me:$LINENO: result: $enable_shared" >&5
9180echo "${ECHO_T}$enable_shared" >&6
9181
9182echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9183echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9184# Make sure either enable_shared or enable_static is yes.
9185test "$enable_shared" = yes || enable_static=yes
9186echo "$as_me:$LINENO: result: $enable_static" >&5
9187echo "${ECHO_T}$enable_static" >&6
9188
9189# The else clause should only fire when bootstrapping the
9190# libtool distribution, otherwise you forgot to ship ltmain.sh
9191# with your package, and you will get complaints that there are
9192# no rules to generate ltmain.sh.
9193if test -f "$ltmain"; then
9194  # See if we are running on zsh, and set the options which allow our commands through
9195  # without removal of \ escapes.
9196  if test -n "${ZSH_VERSION+set}" ; then
9197    setopt NO_GLOB_SUBST
9198  fi
9199  # Now quote all the things that may contain metacharacters while being
9200  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9201  # variables and quote the copies for generation of the libtool script.
9202  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9203    SED SHELL STRIP \
9204    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9205    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9206    deplibs_check_method reload_flag reload_cmds need_locks \
9207    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9208    lt_cv_sys_global_symbol_to_c_name_address \
9209    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9210    old_postinstall_cmds old_postuninstall_cmds \
9211    compiler \
9212    CC \
9213    LD \
9214    lt_prog_compiler_wl \
9215    lt_prog_compiler_pic \
9216    lt_prog_compiler_static \
9217    lt_prog_compiler_no_builtin_flag \
9218    export_dynamic_flag_spec \
9219    thread_safe_flag_spec \
9220    whole_archive_flag_spec \
9221    enable_shared_with_static_runtimes \
9222    old_archive_cmds \
9223    old_archive_from_new_cmds \
9224    predep_objects \
9225    postdep_objects \
9226    predeps \
9227    postdeps \
9228    compiler_lib_search_path \
9229    archive_cmds \
9230    archive_expsym_cmds \
9231    postinstall_cmds \
9232    postuninstall_cmds \
9233    old_archive_from_expsyms_cmds \
9234    allow_undefined_flag \
9235    no_undefined_flag \
9236    export_symbols_cmds \
9237    hardcode_libdir_flag_spec \
9238    hardcode_libdir_flag_spec_ld \
9239    hardcode_libdir_separator \
9240    hardcode_automatic \
9241    module_cmds \
9242    module_expsym_cmds \
9243    lt_cv_prog_compiler_c_o \
9244    exclude_expsyms \
9245    include_expsyms; do
9246
9247    case $var in
9248    old_archive_cmds | \
9249    old_archive_from_new_cmds | \
9250    archive_cmds | \
9251    archive_expsym_cmds | \
9252    module_cmds | \
9253    module_expsym_cmds | \
9254    old_archive_from_expsyms_cmds | \
9255    export_symbols_cmds | \
9256    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9257    postinstall_cmds | postuninstall_cmds | \
9258    old_postinstall_cmds | old_postuninstall_cmds | \
9259    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9260      # Double-quote double-evaled strings.
9261      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9262      ;;
9263    *)
9264      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9265      ;;
9266    esac
9267  done
9268
9269  case $lt_echo in
9270  *'\$0 --fallback-echo"')
9271    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9272    ;;
9273  esac
9274
9275cfgfile="${ofile}T"
9276  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9277  $rm -f "$cfgfile"
9278  { echo "$as_me:$LINENO: creating $ofile" >&5
9279echo "$as_me: creating $ofile" >&6;}
9280
9281  cat <<__EOF__ >> "$cfgfile"
9282#! $SHELL
9283
9284# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9285# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9286# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9287#
9288# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9289# Free Software Foundation, Inc.
9290#
9291# This file is part of GNU Libtool:
9292# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9293#
9294# This program is free software; you can redistribute it and/or modify
9295# it under the terms of the GNU General Public License as published by
9296# the Free Software Foundation; either version 2 of the License, or
9297# (at your option) any later version.
9298#
9299# This program is distributed in the hope that it will be useful, but
9300# WITHOUT ANY WARRANTY; without even the implied warranty of
9301# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9302# General Public License for more details.
9303#
9304# You should have received a copy of the GNU General Public License
9305# along with this program; if not, write to the Free Software
9306# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9307#
9308# As a special exception to the GNU General Public License, if you
9309# distribute this file as part of a program that contains a
9310# configuration script generated by Autoconf, you may include it under
9311# the same distribution terms that you use for the rest of that program.
9312
9313# A sed program that does not truncate output.
9314SED=$lt_SED
9315
9316# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9317Xsed="$SED -e 1s/^X//"
9318
9319# The HP-UX ksh and POSIX shell print the target directory to stdout
9320# if CDPATH is set.
9321(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9322
9323# The names of the tagged configurations supported by this script.
9324available_tags=
9325
9326# ### BEGIN LIBTOOL CONFIG
9327
9328# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9329
9330# Shell to use when invoking shell scripts.
9331SHELL=$lt_SHELL
9332
9333# Whether or not to build shared libraries.
9334build_libtool_libs=$enable_shared
9335
9336# Whether or not to build static libraries.
9337build_old_libs=$enable_static
9338
9339# Whether or not to add -lc for building shared libraries.
9340build_libtool_need_lc=$archive_cmds_need_lc
9341
9342# Whether or not to disallow shared libs when runtime libs are static
9343allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9344
9345# Whether or not to optimize for fast installation.
9346fast_install=$enable_fast_install
9347
9348# The host system.
9349host_alias=$host_alias
9350host=$host
9351host_os=$host_os
9352
9353# The build system.
9354build_alias=$build_alias
9355build=$build
9356build_os=$build_os
9357
9358# An echo program that does not interpret backslashes.
9359echo=$lt_echo
9360
9361# The archiver.
9362AR=$lt_AR
9363AR_FLAGS=$lt_AR_FLAGS
9364
9365# A C compiler.
9366LTCC=$lt_LTCC
9367
9368# A language-specific compiler.
9369CC=$lt_compiler
9370
9371# Is the compiler the GNU C compiler?
9372with_gcc=$GCC
9373
9374# An ERE matcher.
9375EGREP=$lt_EGREP
9376
9377# The linker used to build libraries.
9378LD=$lt_LD
9379
9380# Whether we need hard or soft links.
9381LN_S=$lt_LN_S
9382
9383# A BSD-compatible nm program.
9384NM=$lt_NM
9385
9386# A symbol stripping program
9387STRIP=$lt_STRIP
9388
9389# Used to examine libraries when file_magic_cmd begins "file"
9390MAGIC_CMD=$MAGIC_CMD
9391
9392# Used on cygwin: DLL creation program.
9393DLLTOOL="$DLLTOOL"
9394
9395# Used on cygwin: object dumper.
9396OBJDUMP="$OBJDUMP"
9397
9398# Used on cygwin: assembler.
9399AS="$AS"
9400
9401# The name of the directory that contains temporary libtool files.
9402objdir=$objdir
9403
9404# How to create reloadable object files.
9405reload_flag=$lt_reload_flag
9406reload_cmds=$lt_reload_cmds
9407
9408# How to pass a linker flag through the compiler.
9409wl=$lt_lt_prog_compiler_wl
9410
9411# Object file suffix (normally "o").
9412objext="$ac_objext"
9413
9414# Old archive suffix (normally "a").
9415libext="$libext"
9416
9417# Shared library suffix (normally ".so").
9418shrext_cmds='$shrext_cmds'
9419
9420# Executable file suffix (normally "").
9421exeext="$exeext"
9422
9423# Additional compiler flags for building library objects.
9424pic_flag=$lt_lt_prog_compiler_pic
9425pic_mode=$pic_mode
9426
9427# What is the maximum length of a command?
9428max_cmd_len=$lt_cv_sys_max_cmd_len
9429
9430# Does compiler simultaneously support -c and -o options?
9431compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9432
9433# Must we lock files when doing compilation?
9434need_locks=$lt_need_locks
9435
9436# Do we need the lib prefix for modules?
9437need_lib_prefix=$need_lib_prefix
9438
9439# Do we need a version for libraries?
9440need_version=$need_version
9441
9442# Whether dlopen is supported.
9443dlopen_support=$enable_dlopen
9444
9445# Whether dlopen of programs is supported.
9446dlopen_self=$enable_dlopen_self
9447
9448# Whether dlopen of statically linked programs is supported.
9449dlopen_self_static=$enable_dlopen_self_static
9450
9451# Compiler flag to prevent dynamic linking.
9452link_static_flag=$lt_lt_prog_compiler_static
9453
9454# Compiler flag to turn off builtin functions.
9455no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9456
9457# Compiler flag to allow reflexive dlopens.
9458export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9459
9460# Compiler flag to generate shared objects directly from archives.
9461whole_archive_flag_spec=$lt_whole_archive_flag_spec
9462
9463# Compiler flag to generate thread-safe objects.
9464thread_safe_flag_spec=$lt_thread_safe_flag_spec
9465
9466# Library versioning type.
9467version_type=$version_type
9468
9469# Format of library name prefix.
9470libname_spec=$lt_libname_spec
9471
9472# List of archive names.  First name is the real one, the rest are links.
9473# The last name is the one that the linker finds with -lNAME.
9474library_names_spec=$lt_library_names_spec
9475
9476# The coded name of the library, if different from the real name.
9477soname_spec=$lt_soname_spec
9478
9479# Commands used to build and install an old-style archive.
9480RANLIB=$lt_RANLIB
9481old_archive_cmds=$lt_old_archive_cmds
9482old_postinstall_cmds=$lt_old_postinstall_cmds
9483old_postuninstall_cmds=$lt_old_postuninstall_cmds
9484
9485# Create an old-style archive from a shared archive.
9486old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9487
9488# Create a temporary old-style archive to link instead of a shared archive.
9489old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9490
9491# Commands used to build and install a shared archive.
9492archive_cmds=$lt_archive_cmds
9493archive_expsym_cmds=$lt_archive_expsym_cmds
9494postinstall_cmds=$lt_postinstall_cmds
9495postuninstall_cmds=$lt_postuninstall_cmds
9496
9497# Commands used to build a loadable module (assumed same as above if empty)
9498module_cmds=$lt_module_cmds
9499module_expsym_cmds=$lt_module_expsym_cmds
9500
9501# Commands to strip libraries.
9502old_striplib=$lt_old_striplib
9503striplib=$lt_striplib
9504
9505# Dependencies to place before the objects being linked to create a
9506# shared library.
9507predep_objects=$lt_predep_objects
9508
9509# Dependencies to place after the objects being linked to create a
9510# shared library.
9511postdep_objects=$lt_postdep_objects
9512
9513# Dependencies to place before the objects being linked to create a
9514# shared library.
9515predeps=$lt_predeps
9516
9517# Dependencies to place after the objects being linked to create a
9518# shared library.
9519postdeps=$lt_postdeps
9520
9521# The library search path used internally by the compiler when linking
9522# a shared library.
9523compiler_lib_search_path=$lt_compiler_lib_search_path
9524
9525# Method to check whether dependent libraries are shared objects.
9526deplibs_check_method=$lt_deplibs_check_method
9527
9528# Command to use when deplibs_check_method == file_magic.
9529file_magic_cmd=$lt_file_magic_cmd
9530
9531# Flag that allows shared libraries with undefined symbols to be built.
9532allow_undefined_flag=$lt_allow_undefined_flag
9533
9534# Flag that forces no undefined symbols.
9535no_undefined_flag=$lt_no_undefined_flag
9536
9537# Commands used to finish a libtool library installation in a directory.
9538finish_cmds=$lt_finish_cmds
9539
9540# Same as above, but a single script fragment to be evaled but not shown.
9541finish_eval=$lt_finish_eval
9542
9543# Take the output of nm and produce a listing of raw symbols and C names.
9544global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9545
9546# Transform the output of nm in a proper C declaration
9547global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9548
9549# Transform the output of nm in a C name address pair
9550global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9551
9552# This is the shared library runtime path variable.
9553runpath_var=$runpath_var
9554
9555# This is the shared library path variable.
9556shlibpath_var=$shlibpath_var
9557
9558# Is shlibpath searched before the hard-coded library search path?
9559shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9560
9561# How to hardcode a shared library path into an executable.
9562hardcode_action=$hardcode_action
9563
9564# Whether we should hardcode library paths into libraries.
9565hardcode_into_libs=$hardcode_into_libs
9566
9567# Flag to hardcode \$libdir into a binary during linking.
9568# This must work even if \$libdir does not exist.
9569hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9570
9571# If ld is used when linking, flag to hardcode \$libdir into
9572# a binary during linking. This must work even if \$libdir does
9573# not exist.
9574hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9575
9576# Whether we need a single -rpath flag with a separated argument.
9577hardcode_libdir_separator=$lt_hardcode_libdir_separator
9578
9579# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9580# resulting binary.
9581hardcode_direct=$hardcode_direct
9582
9583# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9584# resulting binary.
9585hardcode_minus_L=$hardcode_minus_L
9586
9587# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9588# the resulting binary.
9589hardcode_shlibpath_var=$hardcode_shlibpath_var
9590
9591# Set to yes if building a shared library automatically hardcodes DIR into the library
9592# and all subsequent libraries and executables linked against it.
9593hardcode_automatic=$hardcode_automatic
9594
9595# Variables whose values should be saved in libtool wrapper scripts and
9596# restored at relink time.
9597variables_saved_for_relink="$variables_saved_for_relink"
9598
9599# Whether libtool must link a program against all its dependency libraries.
9600link_all_deplibs=$link_all_deplibs
9601
9602# Compile-time system search path for libraries
9603sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9604
9605# Run-time system search path for libraries
9606sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9607
9608# Fix the shell variable \$srcfile for the compiler.
9609fix_srcfile_path="$fix_srcfile_path"
9610
9611# Set to yes if exported symbols are required.
9612always_export_symbols=$always_export_symbols
9613
9614# The commands to list exported symbols.
9615export_symbols_cmds=$lt_export_symbols_cmds
9616
9617# The commands to extract the exported symbol list from a shared archive.
9618extract_expsyms_cmds=$lt_extract_expsyms_cmds
9619
9620# Symbols that should not be listed in the preloaded symbols.
9621exclude_expsyms=$lt_exclude_expsyms
9622
9623# Symbols that must always be exported.
9624include_expsyms=$lt_include_expsyms
9625
9626# ### END LIBTOOL CONFIG
9627
9628__EOF__
9629
9630
9631  case $host_os in
9632  aix3*)
9633    cat <<\EOF >> "$cfgfile"
9634
9635# AIX sometimes has problems with the GCC collect2 program.  For some
9636# reason, if we set the COLLECT_NAMES environment variable, the problems
9637# vanish in a puff of smoke.
9638if test "X${COLLECT_NAMES+set}" != Xset; then
9639  COLLECT_NAMES=
9640  export COLLECT_NAMES
9641fi
9642EOF
9643    ;;
9644  esac
9645
9646  # We use sed instead of cat because bash on DJGPP gets confused if
9647  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9648  # text mode, it properly converts lines to CR/LF.  This bash problem
9649  # is reportedly fixed, but why not run on old versions too?
9650  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9651
9652  mv -f "$cfgfile" "$ofile" || \
9653    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9654  chmod +x "$ofile"
9655
9656else
9657  # If there is no Makefile yet, we rely on a make rule to execute
9658  # `config.status --recheck' to rerun these tests and create the
9659  # libtool script then.
9660  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9661  if test -f "$ltmain_in"; then
9662    test -f Makefile && make "$ltmain"
9663  fi
9664fi
9665
9666
9667ac_ext=c
9668ac_cpp='$CPP $CPPFLAGS'
9669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672
9673CC="$lt_save_CC"
9674
9675
9676# Check whether --with-tags or --without-tags was given.
9677if test "${with_tags+set}" = set; then
9678  withval="$with_tags"
9679  tagnames="$withval"
9680fi;
9681
9682if test -f "$ltmain" && test -n "$tagnames"; then
9683  if test ! -f "${ofile}"; then
9684    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9685echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9686  fi
9687
9688  if test -z "$LTCC"; then
9689    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9690    if test -z "$LTCC"; then
9691      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9692echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9693    else
9694      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9695echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9696    fi
9697  fi
9698
9699  # Extract list of available tagged configurations in $ofile.
9700  # Note that this assumes the entire list is on one line.
9701  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9702
9703  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9704  for tagname in $tagnames; do
9705    IFS="$lt_save_ifs"
9706    # Check whether tagname contains only valid characters
9707    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9708    "") ;;
9709    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9710echo "$as_me: error: invalid tag name: $tagname" >&2;}
9711   { (exit 1); exit 1; }; }
9712	;;
9713    esac
9714
9715    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9716    then
9717      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9718echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9719   { (exit 1); exit 1; }; }
9720    fi
9721
9722    # Update the list of available tags.
9723    if test -n "$tagname"; then
9724      echo appending configuration tag \"$tagname\" to $ofile
9725
9726      case $tagname in
9727      CXX)
9728	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9729	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9730	    (test "X$CXX" != "Xg++"))) ; then
9731	  ac_ext=cc
9732ac_cpp='$CXXCPP $CPPFLAGS'
9733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9736
9737
9738
9739
9740archive_cmds_need_lc_CXX=no
9741allow_undefined_flag_CXX=
9742always_export_symbols_CXX=no
9743archive_expsym_cmds_CXX=
9744export_dynamic_flag_spec_CXX=
9745hardcode_direct_CXX=no
9746hardcode_libdir_flag_spec_CXX=
9747hardcode_libdir_flag_spec_ld_CXX=
9748hardcode_libdir_separator_CXX=
9749hardcode_minus_L_CXX=no
9750hardcode_automatic_CXX=no
9751module_cmds_CXX=
9752module_expsym_cmds_CXX=
9753link_all_deplibs_CXX=unknown
9754old_archive_cmds_CXX=$old_archive_cmds
9755no_undefined_flag_CXX=
9756whole_archive_flag_spec_CXX=
9757enable_shared_with_static_runtimes_CXX=no
9758
9759# Dependencies to place before and after the object being linked:
9760predep_objects_CXX=
9761postdep_objects_CXX=
9762predeps_CXX=
9763postdeps_CXX=
9764compiler_lib_search_path_CXX=
9765
9766# Source file extension for C++ test sources.
9767ac_ext=cpp
9768
9769# Object file extension for compiled C++ test sources.
9770objext=o
9771objext_CXX=$objext
9772
9773# Code to be used in simple compile tests
9774lt_simple_compile_test_code="int some_variable = 0;\n"
9775
9776# Code to be used in simple link tests
9777lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9778
9779# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9780
9781# If no C compiler was specified, use CC.
9782LTCC=${LTCC-"$CC"}
9783
9784# Allow CC to be a program name with arguments.
9785compiler=$CC
9786
9787
9788# save warnings/boilerplate of simple test code
9789ac_outfile=conftest.$ac_objext
9790printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9791eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9792_lt_compiler_boilerplate=`cat conftest.err`
9793$rm conftest*
9794
9795ac_outfile=conftest.$ac_objext
9796printf "$lt_simple_link_test_code" >conftest.$ac_ext
9797eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9798_lt_linker_boilerplate=`cat conftest.err`
9799$rm conftest*
9800
9801
9802# Allow CC to be a program name with arguments.
9803lt_save_CC=$CC
9804lt_save_LD=$LD
9805lt_save_GCC=$GCC
9806GCC=$GXX
9807lt_save_with_gnu_ld=$with_gnu_ld
9808lt_save_path_LD=$lt_cv_path_LD
9809if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9810  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9811else
9812  unset lt_cv_prog_gnu_ld
9813fi
9814if test -n "${lt_cv_path_LDCXX+set}"; then
9815  lt_cv_path_LD=$lt_cv_path_LDCXX
9816else
9817  unset lt_cv_path_LD
9818fi
9819test -z "${LDCXX+set}" || LD=$LDCXX
9820CC=${CXX-"c++"}
9821compiler=$CC
9822compiler_CXX=$CC
9823for cc_temp in $compiler""; do
9824  case $cc_temp in
9825    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9826    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9827    \-*) ;;
9828    *) break;;
9829  esac
9830done
9831cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9832
9833
9834# We don't want -fno-exception wen compiling C++ code, so set the
9835# no_builtin_flag separately
9836if test "$GXX" = yes; then
9837  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9838else
9839  lt_prog_compiler_no_builtin_flag_CXX=
9840fi
9841
9842if test "$GXX" = yes; then
9843  # Set up default GNU C++ configuration
9844
9845
9846# Check whether --with-gnu-ld or --without-gnu-ld was given.
9847if test "${with_gnu_ld+set}" = set; then
9848  withval="$with_gnu_ld"
9849  test "$withval" = no || with_gnu_ld=yes
9850else
9851  with_gnu_ld=no
9852fi;
9853ac_prog=ld
9854if test "$GCC" = yes; then
9855  # Check if gcc -print-prog-name=ld gives a path.
9856  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9857echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9858  case $host in
9859  *-*-mingw*)
9860    # gcc leaves a trailing carriage return which upsets mingw
9861    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9862  *)
9863    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9864  esac
9865  case $ac_prog in
9866    # Accept absolute paths.
9867    [\\/]* | ?:[\\/]*)
9868      re_direlt='/[^/][^/]*/\.\./'
9869      # Canonicalize the pathname of ld
9870      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9871      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9872	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9873      done
9874      test -z "$LD" && LD="$ac_prog"
9875      ;;
9876  "")
9877    # If it fails, then pretend we aren't using GCC.
9878    ac_prog=ld
9879    ;;
9880  *)
9881    # If it is relative, then search for the first ld in PATH.
9882    with_gnu_ld=unknown
9883    ;;
9884  esac
9885elif test "$with_gnu_ld" = yes; then
9886  echo "$as_me:$LINENO: checking for GNU ld" >&5
9887echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9888else
9889  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9890echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9891fi
9892if test "${lt_cv_path_LD+set}" = set; then
9893  echo $ECHO_N "(cached) $ECHO_C" >&6
9894else
9895  if test -z "$LD"; then
9896  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9897  for ac_dir in $PATH; do
9898    IFS="$lt_save_ifs"
9899    test -z "$ac_dir" && ac_dir=.
9900    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9901      lt_cv_path_LD="$ac_dir/$ac_prog"
9902      # Check to see if the program is GNU ld.  I'd rather use --version,
9903      # but apparently some variants of GNU ld only accept -v.
9904      # Break only if it was the GNU/non-GNU ld that we prefer.
9905      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9906      *GNU* | *'with BFD'*)
9907	test "$with_gnu_ld" != no && break
9908	;;
9909      *)
9910	test "$with_gnu_ld" != yes && break
9911	;;
9912      esac
9913    fi
9914  done
9915  IFS="$lt_save_ifs"
9916else
9917  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9918fi
9919fi
9920
9921LD="$lt_cv_path_LD"
9922if test -n "$LD"; then
9923  echo "$as_me:$LINENO: result: $LD" >&5
9924echo "${ECHO_T}$LD" >&6
9925else
9926  echo "$as_me:$LINENO: result: no" >&5
9927echo "${ECHO_T}no" >&6
9928fi
9929test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9930echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9931   { (exit 1); exit 1; }; }
9932echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9933echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9934if test "${lt_cv_prog_gnu_ld+set}" = set; then
9935  echo $ECHO_N "(cached) $ECHO_C" >&6
9936else
9937  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9938case `$LD -v 2>&1 </dev/null` in
9939*GNU* | *'with BFD'*)
9940  lt_cv_prog_gnu_ld=yes
9941  ;;
9942*)
9943  lt_cv_prog_gnu_ld=no
9944  ;;
9945esac
9946fi
9947echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9948echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9949with_gnu_ld=$lt_cv_prog_gnu_ld
9950
9951
9952
9953  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9954  # archiving commands below assume that GNU ld is being used.
9955  if test "$with_gnu_ld" = yes; then
9956    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9957    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'
9958
9959    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9960    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9961
9962    # If archive_cmds runs LD, not CC, wlarc should be empty
9963    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9964    #     investigate it a little bit more. (MM)
9965    wlarc='${wl}'
9966
9967    # ancient GNU ld didn't support --whole-archive et. al.
9968    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9969	grep 'no-whole-archive' > /dev/null; then
9970      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9971    else
9972      whole_archive_flag_spec_CXX=
9973    fi
9974  else
9975    with_gnu_ld=no
9976    wlarc=
9977
9978    # A generic and very simple default shared library creation
9979    # command for GNU C++ for the case where it uses the native
9980    # linker, instead of GNU ld.  If possible, this setting should
9981    # overridden to take advantage of the native linker features on
9982    # the platform it is being used on.
9983    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9984  fi
9985
9986  # Commands to make compiler produce verbose output that lists
9987  # what "hidden" libraries, object files and flags are used when
9988  # linking a shared library.
9989  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9990
9991else
9992  GXX=no
9993  with_gnu_ld=no
9994  wlarc=
9995fi
9996
9997# PORTME: fill in a description of your system's C++ link characteristics
9998echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9999echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10000ld_shlibs_CXX=yes
10001case $host_os in
10002  aix3*)
10003    # FIXME: insert proper C++ library support
10004    ld_shlibs_CXX=no
10005    ;;
10006  aix4* | aix5*)
10007    if test "$host_cpu" = ia64; then
10008      # On IA64, the linker does run time linking by default, so we don't
10009      # have to do anything special.
10010      aix_use_runtimelinking=no
10011      exp_sym_flag='-Bexport'
10012      no_entry_flag=""
10013    else
10014      aix_use_runtimelinking=no
10015
10016      # Test if we are trying to use run time linking or normal
10017      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10018      # need to do runtime linking.
10019      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10020	for ld_flag in $LDFLAGS; do
10021	  case $ld_flag in
10022	  *-brtl*)
10023	    aix_use_runtimelinking=yes
10024	    break
10025	    ;;
10026	  esac
10027	done
10028      esac
10029
10030      exp_sym_flag='-bexport'
10031      no_entry_flag='-bnoentry'
10032    fi
10033
10034    # When large executables or shared objects are built, AIX ld can
10035    # have problems creating the table of contents.  If linking a library
10036    # or program results in "error TOC overflow" add -mminimal-toc to
10037    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10038    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10039
10040    archive_cmds_CXX=''
10041    hardcode_direct_CXX=yes
10042    hardcode_libdir_separator_CXX=':'
10043    link_all_deplibs_CXX=yes
10044
10045    if test "$GXX" = yes; then
10046      case $host_os in aix4.[012]|aix4.[012].*)
10047      # We only want to do this on AIX 4.2 and lower, the check
10048      # below for broken collect2 doesn't work under 4.3+
10049	collect2name=`${CC} -print-prog-name=collect2`
10050	if test -f "$collect2name" && \
10051	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10052	then
10053	  # We have reworked collect2
10054	  hardcode_direct_CXX=yes
10055	else
10056	  # We have old collect2
10057	  hardcode_direct_CXX=unsupported
10058	  # It fails to find uninstalled libraries when the uninstalled
10059	  # path is not listed in the libpath.  Setting hardcode_minus_L
10060	  # to unsupported forces relinking
10061	  hardcode_minus_L_CXX=yes
10062	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10063	  hardcode_libdir_separator_CXX=
10064	fi
10065      esac
10066      shared_flag='-shared'
10067      if test "$aix_use_runtimelinking" = yes; then
10068	shared_flag="$shared_flag "'${wl}-G'
10069      fi
10070    else
10071      # not using gcc
10072      if test "$host_cpu" = ia64; then
10073	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10074	# chokes on -Wl,-G. The following line is correct:
10075	shared_flag='-G'
10076      else
10077	if test "$aix_use_runtimelinking" = yes; then
10078	  shared_flag='${wl}-G'
10079	else
10080	  shared_flag='${wl}-bM:SRE'
10081	fi
10082      fi
10083    fi
10084
10085    # It seems that -bexpall does not export symbols beginning with
10086    # underscore (_), so it is better to generate a list of symbols to export.
10087    always_export_symbols_CXX=yes
10088    if test "$aix_use_runtimelinking" = yes; then
10089      # Warning - without using the other runtime loading flags (-brtl),
10090      # -berok will link without error, but may produce a broken library.
10091      allow_undefined_flag_CXX='-berok'
10092      # Determine the default libpath from the value encoded in an empty executable.
10093      cat >conftest.$ac_ext <<_ACEOF
10094/* confdefs.h.  */
10095_ACEOF
10096cat confdefs.h >>conftest.$ac_ext
10097cat >>conftest.$ac_ext <<_ACEOF
10098/* end confdefs.h.  */
10099
10100int
10101main ()
10102{
10103
10104  ;
10105  return 0;
10106}
10107_ACEOF
10108rm -f conftest.$ac_objext conftest$ac_exeext
10109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10110  (eval $ac_link) 2>conftest.er1
10111  ac_status=$?
10112  grep -v '^ *+' conftest.er1 >conftest.err
10113  rm -f conftest.er1
10114  cat conftest.err >&5
10115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116  (exit $ac_status); } &&
10117	 { ac_try='test -z "$ac_cxx_werror_flag"
10118			 || test ! -s conftest.err'
10119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10120  (eval $ac_try) 2>&5
10121  ac_status=$?
10122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123  (exit $ac_status); }; } &&
10124	 { ac_try='test -s conftest$ac_exeext'
10125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126  (eval $ac_try) 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; }; then
10130
10131aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10132}'`
10133# Check for a 64-bit object if we didn't find anything.
10134if 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; }
10135}'`; fi
10136else
10137  echo "$as_me: failed program was:" >&5
10138sed 's/^/| /' conftest.$ac_ext >&5
10139
10140fi
10141rm -f conftest.err conftest.$ac_objext \
10142      conftest$ac_exeext conftest.$ac_ext
10143if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10144
10145      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10146
10147      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"
10148     else
10149      if test "$host_cpu" = ia64; then
10150	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10151	allow_undefined_flag_CXX="-z nodefs"
10152	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"
10153      else
10154	# Determine the default libpath from the value encoded in an empty executable.
10155	cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h.  */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h.  */
10161
10162int
10163main ()
10164{
10165
10166  ;
10167  return 0;
10168}
10169_ACEOF
10170rm -f conftest.$ac_objext conftest$ac_exeext
10171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172  (eval $ac_link) 2>conftest.er1
10173  ac_status=$?
10174  grep -v '^ *+' conftest.er1 >conftest.err
10175  rm -f conftest.er1
10176  cat conftest.err >&5
10177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178  (exit $ac_status); } &&
10179	 { ac_try='test -z "$ac_cxx_werror_flag"
10180			 || test ! -s conftest.err'
10181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182  (eval $ac_try) 2>&5
10183  ac_status=$?
10184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185  (exit $ac_status); }; } &&
10186	 { ac_try='test -s conftest$ac_exeext'
10187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188  (eval $ac_try) 2>&5
10189  ac_status=$?
10190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191  (exit $ac_status); }; }; then
10192
10193aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10194}'`
10195# Check for a 64-bit object if we didn't find anything.
10196if 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; }
10197}'`; fi
10198else
10199  echo "$as_me: failed program was:" >&5
10200sed 's/^/| /' conftest.$ac_ext >&5
10201
10202fi
10203rm -f conftest.err conftest.$ac_objext \
10204      conftest$ac_exeext conftest.$ac_ext
10205if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10206
10207	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10208	# Warning - without using the other run time loading flags,
10209	# -berok will link without error, but may produce a broken library.
10210	no_undefined_flag_CXX=' ${wl}-bernotok'
10211	allow_undefined_flag_CXX=' ${wl}-berok'
10212	# -bexpall does not export symbols beginning with underscore (_)
10213	always_export_symbols_CXX=yes
10214	# Exported symbols can be pulled into shared objects from archives
10215	whole_archive_flag_spec_CXX=' '
10216	archive_cmds_need_lc_CXX=yes
10217	# This is similar to how AIX traditionally builds its shared libraries.
10218	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'
10219      fi
10220    fi
10221    ;;
10222  chorus*)
10223    case $cc_basename in
10224      *)
10225	# FIXME: insert proper C++ library support
10226	ld_shlibs_CXX=no
10227	;;
10228    esac
10229    ;;
10230
10231
10232  cygwin* | mingw* | pw32*)
10233    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10234    # as there is no search path for DLLs.
10235    hardcode_libdir_flag_spec_CXX='-L$libdir'
10236    allow_undefined_flag_CXX=unsupported
10237    always_export_symbols_CXX=no
10238    enable_shared_with_static_runtimes_CXX=yes
10239
10240    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10241      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'
10242      # If the export-symbols file already is a .def file (1st line
10243      # is EXPORTS), use it as is; otherwise, prepend...
10244      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10245	cp $export_symbols $output_objdir/$soname.def;
10246      else
10247	echo EXPORTS > $output_objdir/$soname.def;
10248	cat $export_symbols >> $output_objdir/$soname.def;
10249      fi~
10250      $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'
10251    else
10252      ld_shlibs_CXX=no
10253    fi
10254  ;;
10255      darwin* | rhapsody*)
10256        case $host_os in
10257        rhapsody* | darwin1.[012])
10258         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10259         ;;
10260       *) # Darwin 1.3 on
10261         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10262           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10263         else
10264           case ${MACOSX_DEPLOYMENT_TARGET} in
10265             10.[012])
10266               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10267               ;;
10268             10.*)
10269               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10270               ;;
10271           esac
10272         fi
10273         ;;
10274        esac
10275      archive_cmds_need_lc_CXX=no
10276      hardcode_direct_CXX=no
10277      hardcode_automatic_CXX=yes
10278      hardcode_shlibpath_var_CXX=unsupported
10279      whole_archive_flag_spec_CXX=''
10280      link_all_deplibs_CXX=yes
10281
10282    if test "$GXX" = yes ; then
10283      lt_int_apple_cc_single_mod=no
10284      output_verbose_link_cmd='echo'
10285      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10286       lt_int_apple_cc_single_mod=yes
10287      fi
10288      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10289       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10290      else
10291          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10292        fi
10293        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10294        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10295          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10296            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}'
10297          else
10298            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10299          fi
10300            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}'
10301      else
10302      case $cc_basename in
10303        xlc*)
10304         output_verbose_link_cmd='echo'
10305          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10306          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10307          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10308          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10309          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}'
10310          ;;
10311       *)
10312         ld_shlibs_CXX=no
10313          ;;
10314      esac
10315      fi
10316        ;;
10317
10318  dgux*)
10319    case $cc_basename in
10320      ec++*)
10321	# FIXME: insert proper C++ library support
10322	ld_shlibs_CXX=no
10323	;;
10324      ghcx*)
10325	# Green Hills C++ Compiler
10326	# FIXME: insert proper C++ library support
10327	ld_shlibs_CXX=no
10328	;;
10329      *)
10330	# FIXME: insert proper C++ library support
10331	ld_shlibs_CXX=no
10332	;;
10333    esac
10334    ;;
10335  freebsd[12]*)
10336    # C++ shared libraries reported to be fairly broken before switch to ELF
10337    ld_shlibs_CXX=no
10338    ;;
10339  freebsd-elf*)
10340    archive_cmds_need_lc_CXX=no
10341    ;;
10342  freebsd* | kfreebsd*-gnu | dragonfly*)
10343    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10344    # conventions
10345    ld_shlibs_CXX=yes
10346    ;;
10347  gnu*)
10348    ;;
10349  hpux9*)
10350    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10351    hardcode_libdir_separator_CXX=:
10352    export_dynamic_flag_spec_CXX='${wl}-E'
10353    hardcode_direct_CXX=yes
10354    hardcode_minus_L_CXX=yes # Not in the search PATH,
10355				# but as the default
10356				# location of the library.
10357
10358    case $cc_basename in
10359    CC*)
10360      # FIXME: insert proper C++ library support
10361      ld_shlibs_CXX=no
10362      ;;
10363    aCC*)
10364      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'
10365      # Commands to make compiler produce verbose output that lists
10366      # what "hidden" libraries, object files and flags are used when
10367      # linking a shared library.
10368      #
10369      # There doesn't appear to be a way to prevent this compiler from
10370      # explicitly linking system object files so we need to strip them
10371      # from the output so that they don't get included in the library
10372      # dependencies.
10373      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'
10374      ;;
10375    *)
10376      if test "$GXX" = yes; then
10377        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'
10378      else
10379        # FIXME: insert proper C++ library support
10380        ld_shlibs_CXX=no
10381      fi
10382      ;;
10383    esac
10384    ;;
10385  hpux10*|hpux11*)
10386    if test $with_gnu_ld = no; then
10387      case $host_cpu in
10388      hppa*64*)
10389	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10390	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10391	hardcode_libdir_separator_CXX=:
10392        ;;
10393      ia64*)
10394	hardcode_libdir_flag_spec_CXX='-L$libdir'
10395        ;;
10396      *)
10397	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10398	hardcode_libdir_separator_CXX=:
10399	export_dynamic_flag_spec_CXX='${wl}-E'
10400        ;;
10401      esac
10402    fi
10403    case $host_cpu in
10404    hppa*64*)
10405      hardcode_direct_CXX=no
10406      hardcode_shlibpath_var_CXX=no
10407      ;;
10408    ia64*)
10409      hardcode_direct_CXX=no
10410      hardcode_shlibpath_var_CXX=no
10411      hardcode_minus_L_CXX=yes # Not in the search PATH,
10412					      # but as the default
10413					      # location of the library.
10414      ;;
10415    *)
10416      hardcode_direct_CXX=yes
10417      hardcode_minus_L_CXX=yes # Not in the search PATH,
10418					      # but as the default
10419					      # location of the library.
10420      ;;
10421    esac
10422
10423    case $cc_basename in
10424      CC*)
10425	# FIXME: insert proper C++ library support
10426	ld_shlibs_CXX=no
10427	;;
10428      aCC*)
10429	case $host_cpu in
10430	hppa*64*|ia64*)
10431	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10432	  ;;
10433	*)
10434	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10435	  ;;
10436	esac
10437	# Commands to make compiler produce verbose output that lists
10438	# what "hidden" libraries, object files and flags are used when
10439	# linking a shared library.
10440	#
10441	# There doesn't appear to be a way to prevent this compiler from
10442	# explicitly linking system object files so we need to strip them
10443	# from the output so that they don't get included in the library
10444	# dependencies.
10445	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'
10446	;;
10447      *)
10448	if test "$GXX" = yes; then
10449	  if test $with_gnu_ld = no; then
10450	    case $host_cpu in
10451	    ia64*|hppa*64*)
10452	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10453	      ;;
10454	    *)
10455	      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'
10456	      ;;
10457	    esac
10458	  fi
10459	else
10460	  # FIXME: insert proper C++ library support
10461	  ld_shlibs_CXX=no
10462	fi
10463	;;
10464    esac
10465    ;;
10466  irix5* | irix6*)
10467    case $cc_basename in
10468      CC*)
10469	# SGI C++
10470	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10471
10472	# Archives containing C++ object files must be created using
10473	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10474	# necessary to make sure instantiated templates are included
10475	# in the archive.
10476	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10477	;;
10478      *)
10479	if test "$GXX" = yes; then
10480	  if test "$with_gnu_ld" = no; then
10481	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10482	  else
10483	    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'
10484	  fi
10485	fi
10486	link_all_deplibs_CXX=yes
10487	;;
10488    esac
10489    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10490    hardcode_libdir_separator_CXX=:
10491    ;;
10492  linux*)
10493    case $cc_basename in
10494      KCC*)
10495	# Kuck and Associates, Inc. (KAI) C++ Compiler
10496
10497	# KCC will only create a shared library if the output file
10498	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10499	# to its proper name (with version) after linking.
10500	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'
10501	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'
10502	# Commands to make compiler produce verbose output that lists
10503	# what "hidden" libraries, object files and flags are used when
10504	# linking a shared library.
10505	#
10506	# There doesn't appear to be a way to prevent this compiler from
10507	# explicitly linking system object files so we need to strip them
10508	# from the output so that they don't get included in the library
10509	# dependencies.
10510	output_verbose_link_cmd='templist=`$CC $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'
10511
10512	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10513	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10514
10515	# Archives containing C++ object files must be created using
10516	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10517	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10518	;;
10519      icpc*)
10520	# Intel C++
10521	with_gnu_ld=yes
10522	# version 8.0 and above of icpc choke on multiply defined symbols
10523	# if we add $predep_objects and $postdep_objects, however 7.1 and
10524	# earlier do not add the objects themselves.
10525	case `$CC -V 2>&1` in
10526	*"Version 7."*)
10527  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528  	  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'
10529	  ;;
10530	*)  # Version 8.0 or newer
10531	  tmp_idyn=
10532	  case $host_cpu in
10533	    ia64*) tmp_idyn=' -i_dynamic';;
10534	  esac
10535  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10536	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10537	  ;;
10538	esac
10539	archive_cmds_need_lc_CXX=no
10540	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10541	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10542	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10543	;;
10544      pgCC*)
10545        # Portland Group C++ compiler
10546	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10547  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10548
10549	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10550	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10551	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10552        ;;
10553      cxx*)
10554	# Compaq C++
10555	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10556	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'
10557
10558	runpath_var=LD_RUN_PATH
10559	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10560	hardcode_libdir_separator_CXX=:
10561
10562	# Commands to make compiler produce verbose output that lists
10563	# what "hidden" libraries, object files and flags are used when
10564	# linking a shared library.
10565	#
10566	# There doesn't appear to be a way to prevent this compiler from
10567	# explicitly linking system object files so we need to strip them
10568	# from the output so that they don't get included in the library
10569	# dependencies.
10570	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'
10571	;;
10572    esac
10573    ;;
10574  lynxos*)
10575    # FIXME: insert proper C++ library support
10576    ld_shlibs_CXX=no
10577    ;;
10578  m88k*)
10579    # FIXME: insert proper C++ library support
10580    ld_shlibs_CXX=no
10581    ;;
10582  mvs*)
10583    case $cc_basename in
10584      cxx*)
10585	# FIXME: insert proper C++ library support
10586	ld_shlibs_CXX=no
10587	;;
10588      *)
10589	# FIXME: insert proper C++ library support
10590	ld_shlibs_CXX=no
10591	;;
10592    esac
10593    ;;
10594  netbsd*)
10595    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10596      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10597      wlarc=
10598      hardcode_libdir_flag_spec_CXX='-R$libdir'
10599      hardcode_direct_CXX=yes
10600      hardcode_shlibpath_var_CXX=no
10601    fi
10602    # Workaround some broken pre-1.5 toolchains
10603    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10604    ;;
10605  openbsd2*)
10606    # C++ shared libraries are fairly broken
10607    ld_shlibs_CXX=no
10608    ;;
10609  openbsd*)
10610    hardcode_direct_CXX=yes
10611    hardcode_shlibpath_var_CXX=no
10612    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10613    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10614    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10615      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10616      export_dynamic_flag_spec_CXX='${wl}-E'
10617      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10618    fi
10619    output_verbose_link_cmd='echo'
10620    ;;
10621  osf3*)
10622    case $cc_basename in
10623      KCC*)
10624	# Kuck and Associates, Inc. (KAI) C++ Compiler
10625
10626	# KCC will only create a shared library if the output file
10627	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10628	# to its proper name (with version) after linking.
10629	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10630
10631	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10632	hardcode_libdir_separator_CXX=:
10633
10634	# Archives containing C++ object files must be created using
10635	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10636	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10637
10638	;;
10639      RCC*)
10640	# Rational C++ 2.4.1
10641	# FIXME: insert proper C++ library support
10642	ld_shlibs_CXX=no
10643	;;
10644      cxx*)
10645	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10646	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10647
10648	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10649	hardcode_libdir_separator_CXX=:
10650
10651	# Commands to make compiler produce verbose output that lists
10652	# what "hidden" libraries, object files and flags are used when
10653	# linking a shared library.
10654	#
10655	# There doesn't appear to be a way to prevent this compiler from
10656	# explicitly linking system object files so we need to strip them
10657	# from the output so that they don't get included in the library
10658	# dependencies.
10659	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'
10660	;;
10661      *)
10662	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10663	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10664	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10665
10666	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10667	  hardcode_libdir_separator_CXX=:
10668
10669	  # Commands to make compiler produce verbose output that lists
10670	  # what "hidden" libraries, object files and flags are used when
10671	  # linking a shared library.
10672	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10673
10674	else
10675	  # FIXME: insert proper C++ library support
10676	  ld_shlibs_CXX=no
10677	fi
10678	;;
10679    esac
10680    ;;
10681  osf4* | osf5*)
10682    case $cc_basename in
10683      KCC*)
10684	# Kuck and Associates, Inc. (KAI) C++ Compiler
10685
10686	# KCC will only create a shared library if the output file
10687	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10688	# to its proper name (with version) after linking.
10689	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'
10690
10691	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10692	hardcode_libdir_separator_CXX=:
10693
10694	# Archives containing C++ object files must be created using
10695	# the KAI C++ compiler.
10696	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10697	;;
10698      RCC*)
10699	# Rational C++ 2.4.1
10700	# FIXME: insert proper C++ library support
10701	ld_shlibs_CXX=no
10702	;;
10703      cxx*)
10704	allow_undefined_flag_CXX=' -expect_unresolved \*'
10705	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10706	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10707	  echo "-hidden">> $lib.exp~
10708	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10709	  $rm $lib.exp'
10710
10711	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10712	hardcode_libdir_separator_CXX=:
10713
10714	# Commands to make compiler produce verbose output that lists
10715	# what "hidden" libraries, object files and flags are used when
10716	# linking a shared library.
10717	#
10718	# There doesn't appear to be a way to prevent this compiler from
10719	# explicitly linking system object files so we need to strip them
10720	# from the output so that they don't get included in the library
10721	# dependencies.
10722	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'
10723	;;
10724      *)
10725	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10726	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10727	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10728
10729	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10730	  hardcode_libdir_separator_CXX=:
10731
10732	  # Commands to make compiler produce verbose output that lists
10733	  # what "hidden" libraries, object files and flags are used when
10734	  # linking a shared library.
10735	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10736
10737	else
10738	  # FIXME: insert proper C++ library support
10739	  ld_shlibs_CXX=no
10740	fi
10741	;;
10742    esac
10743    ;;
10744  psos*)
10745    # FIXME: insert proper C++ library support
10746    ld_shlibs_CXX=no
10747    ;;
10748  sco*)
10749    archive_cmds_need_lc_CXX=no
10750    case $cc_basename in
10751      CC*)
10752	# FIXME: insert proper C++ library support
10753	ld_shlibs_CXX=no
10754	;;
10755      *)
10756	# FIXME: insert proper C++ library support
10757	ld_shlibs_CXX=no
10758	;;
10759    esac
10760    ;;
10761  sunos4*)
10762    case $cc_basename in
10763      CC*)
10764	# Sun C++ 4.x
10765	# FIXME: insert proper C++ library support
10766	ld_shlibs_CXX=no
10767	;;
10768      lcc*)
10769	# Lucid
10770	# FIXME: insert proper C++ library support
10771	ld_shlibs_CXX=no
10772	;;
10773      *)
10774	# FIXME: insert proper C++ library support
10775	ld_shlibs_CXX=no
10776	;;
10777    esac
10778    ;;
10779  solaris*)
10780    case $cc_basename in
10781      CC*)
10782	# Sun C++ 4.2, 5.x and Centerline C++
10783        archive_cmds_need_lc_CXX=yes
10784	no_undefined_flag_CXX=' -zdefs'
10785	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10786	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10787	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10788
10789	hardcode_libdir_flag_spec_CXX='-R$libdir'
10790	hardcode_shlibpath_var_CXX=no
10791	case $host_os in
10792	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10793	  *)
10794	    # The C++ compiler is used as linker so we must use $wl
10795	    # flag to pass the commands to the underlying system
10796	    # linker. We must also pass each convience library through
10797	    # to the system linker between allextract/defaultextract.
10798	    # The C++ compiler will combine linker options so we
10799	    # cannot just pass the convience library names through
10800	    # without $wl.
10801	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10802	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10803	    ;;
10804	esac
10805	link_all_deplibs_CXX=yes
10806
10807	output_verbose_link_cmd='echo'
10808
10809	# Archives containing C++ object files must be created using
10810	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10811	# necessary to make sure instantiated templates are included
10812	# in the archive.
10813	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10814	;;
10815      gcx*)
10816	# Green Hills C++ Compiler
10817	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10818
10819	# The C++ compiler must be used to create the archive.
10820	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10821	;;
10822      *)
10823	# GNU C++ compiler with Solaris linker
10824	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10825	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10826	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10827	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10828	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10829		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10830
10831	    # Commands to make compiler produce verbose output that lists
10832	    # what "hidden" libraries, object files and flags are used when
10833	    # linking a shared library.
10834	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10835	  else
10836	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10837	    # platform.
10838	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10839	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10840		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10841
10842	    # Commands to make compiler produce verbose output that lists
10843	    # what "hidden" libraries, object files and flags are used when
10844	    # linking a shared library.
10845	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10846	  fi
10847
10848	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10849	fi
10850	;;
10851    esac
10852    ;;
10853  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10854    archive_cmds_need_lc_CXX=no
10855    ;;
10856  tandem*)
10857    case $cc_basename in
10858      NCC*)
10859	# NonStop-UX NCC 3.20
10860	# FIXME: insert proper C++ library support
10861	ld_shlibs_CXX=no
10862	;;
10863      *)
10864	# FIXME: insert proper C++ library support
10865	ld_shlibs_CXX=no
10866	;;
10867    esac
10868    ;;
10869  vxworks*)
10870    # FIXME: insert proper C++ library support
10871    ld_shlibs_CXX=no
10872    ;;
10873  *)
10874    # FIXME: insert proper C++ library support
10875    ld_shlibs_CXX=no
10876    ;;
10877esac
10878echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10879echo "${ECHO_T}$ld_shlibs_CXX" >&6
10880test "$ld_shlibs_CXX" = no && can_build_shared=no
10881
10882GCC_CXX="$GXX"
10883LD_CXX="$LD"
10884
10885## CAVEAT EMPTOR:
10886## There is no encapsulation within the following macros, do not change
10887## the running order or otherwise move them around unless you know exactly
10888## what you are doing...
10889
10890cat > conftest.$ac_ext <<EOF
10891class Foo
10892{
10893public:
10894  Foo (void) { a = 0; }
10895private:
10896  int a;
10897};
10898EOF
10899
10900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901  (eval $ac_compile) 2>&5
10902  ac_status=$?
10903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904  (exit $ac_status); }; then
10905  # Parse the compiler output and extract the necessary
10906  # objects, libraries and library flags.
10907
10908  # Sentinel used to keep track of whether or not we are before
10909  # the conftest object file.
10910  pre_test_object_deps_done=no
10911
10912  # The `*' in the case matches for architectures that use `case' in
10913  # $output_verbose_cmd can trigger glob expansion during the loop
10914  # eval without this substitution.
10915  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10916
10917  for p in `eval $output_verbose_link_cmd`; do
10918    case $p in
10919
10920    -L* | -R* | -l*)
10921       # Some compilers place space between "-{L,R}" and the path.
10922       # Remove the space.
10923       if test $p = "-L" \
10924	  || test $p = "-R"; then
10925	 prev=$p
10926	 continue
10927       else
10928	 prev=
10929       fi
10930
10931       if test "$pre_test_object_deps_done" = no; then
10932	 case $p in
10933	 -L* | -R*)
10934	   # Internal compiler library paths should come after those
10935	   # provided the user.  The postdeps already come after the
10936	   # user supplied libs so there is no need to process them.
10937	   if test -z "$compiler_lib_search_path_CXX"; then
10938	     compiler_lib_search_path_CXX="${prev}${p}"
10939	   else
10940	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10941	   fi
10942	   ;;
10943	 # The "-l" case would never come before the object being
10944	 # linked, so don't bother handling this case.
10945	 esac
10946       else
10947	 if test -z "$postdeps_CXX"; then
10948	   postdeps_CXX="${prev}${p}"
10949	 else
10950	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10951	 fi
10952       fi
10953       ;;
10954
10955    *.$objext)
10956       # This assumes that the test object file only shows up
10957       # once in the compiler output.
10958       if test "$p" = "conftest.$objext"; then
10959	 pre_test_object_deps_done=yes
10960	 continue
10961       fi
10962
10963       if test "$pre_test_object_deps_done" = no; then
10964	 if test -z "$predep_objects_CXX"; then
10965	   predep_objects_CXX="$p"
10966	 else
10967	   predep_objects_CXX="$predep_objects_CXX $p"
10968	 fi
10969       else
10970	 if test -z "$postdep_objects_CXX"; then
10971	   postdep_objects_CXX="$p"
10972	 else
10973	   postdep_objects_CXX="$postdep_objects_CXX $p"
10974	 fi
10975       fi
10976       ;;
10977
10978    *) ;; # Ignore the rest.
10979
10980    esac
10981  done
10982
10983  # Clean up.
10984  rm -f a.out a.exe
10985else
10986  echo "libtool.m4: error: problem compiling CXX test program"
10987fi
10988
10989$rm -f confest.$objext
10990
10991# PORTME: override above test on systems where it is broken
10992case $host_os in
10993solaris*)
10994  case $cc_basename in
10995  CC*)
10996    # Adding this requires a known-good setup of shared libraries for
10997    # Sun compiler versions before 5.6, else PIC objects from an old
10998    # archive will be linked into the output, leading to subtle bugs.
10999    postdeps_CXX='-lCstd -lCrun'
11000    ;;
11001  esac
11002esac
11003
11004
11005case " $postdeps_CXX " in
11006*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11007esac
11008
11009lt_prog_compiler_wl_CXX=
11010lt_prog_compiler_pic_CXX=
11011lt_prog_compiler_static_CXX=
11012
11013echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11014echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11015
11016  # C++ specific cases for pic, static, wl, etc.
11017  if test "$GXX" = yes; then
11018    lt_prog_compiler_wl_CXX='-Wl,'
11019    lt_prog_compiler_static_CXX='-static'
11020
11021    case $host_os in
11022    aix*)
11023      # All AIX code is PIC.
11024      if test "$host_cpu" = ia64; then
11025	# AIX 5 now supports IA64 processor
11026	lt_prog_compiler_static_CXX='-Bstatic'
11027      fi
11028      ;;
11029    amigaos*)
11030      # FIXME: we need at least 68020 code to build shared libraries, but
11031      # adding the `-m68020' flag to GCC prevents building anything better,
11032      # like `-m68040'.
11033      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11034      ;;
11035    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
11036    | osf5*)
11037      # PIC is the default for these OSes.
11038      ;;
11039    mingw* | os2* | pw32*)
11040      # This hack is so that the source file can tell whether it is being
11041      # built for inclusion in a dll (and should export symbols for example).
11042      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11043      ;;
11044    darwin* | rhapsody*)
11045      # PIC is the default on this platform
11046      # Common symbols not allowed in MH_DYLIB files
11047      lt_prog_compiler_pic_CXX='-fno-common'
11048      ;;
11049    *djgpp*)
11050      # DJGPP does not support shared libraries at all
11051      lt_prog_compiler_pic_CXX=
11052      ;;
11053    sysv4*MP*)
11054      if test -d /usr/nec; then
11055	lt_prog_compiler_pic_CXX=-Kconform_pic
11056      fi
11057      ;;
11058    hpux*)
11059      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11060      # not for PA HP-UX.
11061      case $host_cpu in
11062      hppa*64*|ia64*)
11063	;;
11064      *)
11065	lt_prog_compiler_pic_CXX='-fPIC'
11066	;;
11067      esac
11068      ;;
11069    *)
11070      lt_prog_compiler_pic_CXX='-fPIC'
11071      ;;
11072    esac
11073  else
11074    case $host_os in
11075      aix4* | aix5*)
11076	# All AIX code is PIC.
11077	if test "$host_cpu" = ia64; then
11078	  # AIX 5 now supports IA64 processor
11079	  lt_prog_compiler_static_CXX='-Bstatic'
11080	else
11081	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11082	fi
11083	;;
11084      chorus*)
11085	case $cc_basename in
11086	cxch68*)
11087	  # Green Hills C++ Compiler
11088	  # _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"
11089	  ;;
11090	esac
11091	;;
11092       darwin*)
11093         # PIC is the default on this platform
11094         # Common symbols not allowed in MH_DYLIB files
11095         case $cc_basename in
11096           xlc*)
11097           lt_prog_compiler_pic_CXX='-qnocommon'
11098           lt_prog_compiler_wl_CXX='-Wl,'
11099           ;;
11100         esac
11101       ;;
11102      dgux*)
11103	case $cc_basename in
11104	  ec++*)
11105	    lt_prog_compiler_pic_CXX='-KPIC'
11106	    ;;
11107	  ghcx*)
11108	    # Green Hills C++ Compiler
11109	    lt_prog_compiler_pic_CXX='-pic'
11110	    ;;
11111	  *)
11112	    ;;
11113	esac
11114	;;
11115      freebsd* | kfreebsd*-gnu | dragonfly*)
11116	# FreeBSD uses GNU C++
11117	;;
11118      hpux9* | hpux10* | hpux11*)
11119	case $cc_basename in
11120	  CC*)
11121	    lt_prog_compiler_wl_CXX='-Wl,'
11122	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11123	    if test "$host_cpu" != ia64; then
11124	      lt_prog_compiler_pic_CXX='+Z'
11125	    fi
11126	    ;;
11127	  aCC*)
11128	    lt_prog_compiler_wl_CXX='-Wl,'
11129	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11130	    case $host_cpu in
11131	    hppa*64*|ia64*)
11132	      # +Z the default
11133	      ;;
11134	    *)
11135	      lt_prog_compiler_pic_CXX='+Z'
11136	      ;;
11137	    esac
11138	    ;;
11139	  *)
11140	    ;;
11141	esac
11142	;;
11143      irix5* | irix6* | nonstopux*)
11144	case $cc_basename in
11145	  CC*)
11146	    lt_prog_compiler_wl_CXX='-Wl,'
11147	    lt_prog_compiler_static_CXX='-non_shared'
11148	    # CC pic flag -KPIC is the default.
11149	    ;;
11150	  *)
11151	    ;;
11152	esac
11153	;;
11154      linux*)
11155	case $cc_basename in
11156	  KCC*)
11157	    # KAI C++ Compiler
11158	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11159	    lt_prog_compiler_pic_CXX='-fPIC'
11160	    ;;
11161	  icpc* | ecpc*)
11162	    # Intel C++
11163	    lt_prog_compiler_wl_CXX='-Wl,'
11164	    lt_prog_compiler_pic_CXX='-KPIC'
11165	    lt_prog_compiler_static_CXX='-static'
11166	    ;;
11167	  pgCC*)
11168	    # Portland Group C++ compiler.
11169	    lt_prog_compiler_wl_CXX='-Wl,'
11170	    lt_prog_compiler_pic_CXX='-fpic'
11171	    lt_prog_compiler_static_CXX='-Bstatic'
11172	    ;;
11173	  cxx*)
11174	    # Compaq C++
11175	    # Make sure the PIC flag is empty.  It appears that all Alpha
11176	    # Linux and Compaq Tru64 Unix objects are PIC.
11177	    lt_prog_compiler_pic_CXX=
11178	    lt_prog_compiler_static_CXX='-non_shared'
11179	    ;;
11180	  *)
11181	    ;;
11182	esac
11183	;;
11184      lynxos*)
11185	;;
11186      m88k*)
11187	;;
11188      mvs*)
11189	case $cc_basename in
11190	  cxx*)
11191	    lt_prog_compiler_pic_CXX='-W c,exportall'
11192	    ;;
11193	  *)
11194	    ;;
11195	esac
11196	;;
11197      netbsd*)
11198	;;
11199      osf3* | osf4* | osf5*)
11200	case $cc_basename in
11201	  KCC*)
11202	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11203	    ;;
11204	  RCC*)
11205	    # Rational C++ 2.4.1
11206	    lt_prog_compiler_pic_CXX='-pic'
11207	    ;;
11208	  cxx*)
11209	    # Digital/Compaq C++
11210	    lt_prog_compiler_wl_CXX='-Wl,'
11211	    # Make sure the PIC flag is empty.  It appears that all Alpha
11212	    # Linux and Compaq Tru64 Unix objects are PIC.
11213	    lt_prog_compiler_pic_CXX=
11214	    lt_prog_compiler_static_CXX='-non_shared'
11215	    ;;
11216	  *)
11217	    ;;
11218	esac
11219	;;
11220      psos*)
11221	;;
11222      sco*)
11223	case $cc_basename in
11224	  CC*)
11225	    lt_prog_compiler_pic_CXX='-fPIC'
11226	    ;;
11227	  *)
11228	    ;;
11229	esac
11230	;;
11231      solaris*)
11232	case $cc_basename in
11233	  CC*)
11234	    # Sun C++ 4.2, 5.x and Centerline C++
11235	    lt_prog_compiler_pic_CXX='-KPIC'
11236	    lt_prog_compiler_static_CXX='-Bstatic'
11237	    lt_prog_compiler_wl_CXX='-Qoption ld '
11238	    ;;
11239	  gcx*)
11240	    # Green Hills C++ Compiler
11241	    lt_prog_compiler_pic_CXX='-PIC'
11242	    ;;
11243	  *)
11244	    ;;
11245	esac
11246	;;
11247      sunos4*)
11248	case $cc_basename in
11249	  CC*)
11250	    # Sun C++ 4.x
11251	    lt_prog_compiler_pic_CXX='-pic'
11252	    lt_prog_compiler_static_CXX='-Bstatic'
11253	    ;;
11254	  lcc*)
11255	    # Lucid
11256	    lt_prog_compiler_pic_CXX='-pic'
11257	    ;;
11258	  *)
11259	    ;;
11260	esac
11261	;;
11262      tandem*)
11263	case $cc_basename in
11264	  NCC*)
11265	    # NonStop-UX NCC 3.20
11266	    lt_prog_compiler_pic_CXX='-KPIC'
11267	    ;;
11268	  *)
11269	    ;;
11270	esac
11271	;;
11272      unixware*)
11273	;;
11274      vxworks*)
11275	;;
11276      *)
11277	lt_prog_compiler_can_build_shared_CXX=no
11278	;;
11279    esac
11280  fi
11281
11282echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11283echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11284
11285#
11286# Check to make sure the PIC flag actually works.
11287#
11288if test -n "$lt_prog_compiler_pic_CXX"; then
11289
11290echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11291echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11292if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11293  echo $ECHO_N "(cached) $ECHO_C" >&6
11294else
11295  lt_prog_compiler_pic_works_CXX=no
11296  ac_outfile=conftest.$ac_objext
11297   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11298   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11299   # Insert the option either (1) after the last *FLAGS variable, or
11300   # (2) before a word containing "conftest.", or (3) at the end.
11301   # Note that $ac_compile itself does not contain backslashes and begins
11302   # with a dollar sign (not a hyphen), so the echo should work correctly.
11303   # The option is referenced via a variable to avoid confusing sed.
11304   lt_compile=`echo "$ac_compile" | $SED \
11305   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11306   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11307   -e 's:$: $lt_compiler_flag:'`
11308   (eval echo "\"\$as_me:11308: $lt_compile\"" >&5)
11309   (eval "$lt_compile" 2>conftest.err)
11310   ac_status=$?
11311   cat conftest.err >&5
11312   echo "$as_me:11312: \$? = $ac_status" >&5
11313   if (exit $ac_status) && test -s "$ac_outfile"; then
11314     # The compiler can only warn and ignore the option if not recognized
11315     # So say no if there are warnings other than the usual output.
11316     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11317     $SED '/^$/d' conftest.err >conftest.er2
11318     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11319       lt_prog_compiler_pic_works_CXX=yes
11320     fi
11321   fi
11322   $rm conftest*
11323
11324fi
11325echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11326echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11327
11328if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11329    case $lt_prog_compiler_pic_CXX in
11330     "" | " "*) ;;
11331     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11332     esac
11333else
11334    lt_prog_compiler_pic_CXX=
11335     lt_prog_compiler_can_build_shared_CXX=no
11336fi
11337
11338fi
11339case $host_os in
11340  # For platforms which do not support PIC, -DPIC is meaningless:
11341  *djgpp*)
11342    lt_prog_compiler_pic_CXX=
11343    ;;
11344  *)
11345    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11346    ;;
11347esac
11348
11349echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11350echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11351if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11352  echo $ECHO_N "(cached) $ECHO_C" >&6
11353else
11354  lt_cv_prog_compiler_c_o_CXX=no
11355   $rm -r conftest 2>/dev/null
11356   mkdir conftest
11357   cd conftest
11358   mkdir out
11359   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11360
11361   lt_compiler_flag="-o out/conftest2.$ac_objext"
11362   # Insert the option either (1) after the last *FLAGS variable, or
11363   # (2) before a word containing "conftest.", or (3) at the end.
11364   # Note that $ac_compile itself does not contain backslashes and begins
11365   # with a dollar sign (not a hyphen), so the echo should work correctly.
11366   lt_compile=`echo "$ac_compile" | $SED \
11367   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11368   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11369   -e 's:$: $lt_compiler_flag:'`
11370   (eval echo "\"\$as_me:11370: $lt_compile\"" >&5)
11371   (eval "$lt_compile" 2>out/conftest.err)
11372   ac_status=$?
11373   cat out/conftest.err >&5
11374   echo "$as_me:11374: \$? = $ac_status" >&5
11375   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11376   then
11377     # The compiler can only warn and ignore the option if not recognized
11378     # So say no if there are warnings
11379     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11380     $SED '/^$/d' out/conftest.err >out/conftest.er2
11381     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11382       lt_cv_prog_compiler_c_o_CXX=yes
11383     fi
11384   fi
11385   chmod u+w . 2>&5
11386   $rm conftest*
11387   # SGI C++ compiler will create directory out/ii_files/ for
11388   # template instantiation
11389   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11390   $rm out/* && rmdir out
11391   cd ..
11392   rmdir conftest
11393   $rm conftest*
11394
11395fi
11396echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11397echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11398
11399
11400hard_links="nottested"
11401if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11402  # do not overwrite the value of need_locks provided by the user
11403  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11404echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11405  hard_links=yes
11406  $rm conftest*
11407  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11408  touch conftest.a
11409  ln conftest.a conftest.b 2>&5 || hard_links=no
11410  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11411  echo "$as_me:$LINENO: result: $hard_links" >&5
11412echo "${ECHO_T}$hard_links" >&6
11413  if test "$hard_links" = no; then
11414    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11415echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11416    need_locks=warn
11417  fi
11418else
11419  need_locks=no
11420fi
11421
11422echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11423echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11424
11425  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11426  case $host_os in
11427  aix4* | aix5*)
11428    # If we're using GNU nm, then we don't want the "-C" option.
11429    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11430    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11431      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'
11432    else
11433      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'
11434    fi
11435    ;;
11436  pw32*)
11437    export_symbols_cmds_CXX="$ltdll_cmds"
11438  ;;
11439  cygwin* | mingw*)
11440    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11441  ;;
11442  *)
11443    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11444  ;;
11445  esac
11446
11447echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11448echo "${ECHO_T}$ld_shlibs_CXX" >&6
11449test "$ld_shlibs_CXX" = no && can_build_shared=no
11450
11451variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11452if test "$GCC" = yes; then
11453  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11454fi
11455
11456#
11457# Do we need to explicitly link libc?
11458#
11459case "x$archive_cmds_need_lc_CXX" in
11460x|xyes)
11461  # Assume -lc should be added
11462  archive_cmds_need_lc_CXX=yes
11463
11464  if test "$enable_shared" = yes && test "$GCC" = yes; then
11465    case $archive_cmds_CXX in
11466    *'~'*)
11467      # FIXME: we may have to deal with multi-command sequences.
11468      ;;
11469    '$CC '*)
11470      # Test whether the compiler implicitly links with -lc since on some
11471      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11472      # to ld, don't add -lc before -lgcc.
11473      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11474echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11475      $rm conftest*
11476      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11477
11478      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479  (eval $ac_compile) 2>&5
11480  ac_status=$?
11481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482  (exit $ac_status); } 2>conftest.err; then
11483        soname=conftest
11484        lib=conftest
11485        libobjs=conftest.$ac_objext
11486        deplibs=
11487        wl=$lt_prog_compiler_wl_CXX
11488        compiler_flags=-v
11489        linker_flags=-v
11490        verstring=
11491        output_objdir=.
11492        libname=conftest
11493        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11494        allow_undefined_flag_CXX=
11495        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11496  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11497  ac_status=$?
11498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499  (exit $ac_status); }
11500        then
11501	  archive_cmds_need_lc_CXX=no
11502        else
11503	  archive_cmds_need_lc_CXX=yes
11504        fi
11505        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11506      else
11507        cat conftest.err 1>&5
11508      fi
11509      $rm conftest*
11510      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11511echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11512      ;;
11513    esac
11514  fi
11515  ;;
11516esac
11517
11518echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11519echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11520library_names_spec=
11521libname_spec='lib$name'
11522soname_spec=
11523shrext_cmds=".so"
11524postinstall_cmds=
11525postuninstall_cmds=
11526finish_cmds=
11527finish_eval=
11528shlibpath_var=
11529shlibpath_overrides_runpath=unknown
11530version_type=none
11531dynamic_linker="$host_os ld.so"
11532sys_lib_dlsearch_path_spec="/lib /usr/lib"
11533if test "$GCC" = yes; then
11534  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11535  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11536    # if the path contains ";" then we assume it to be the separator
11537    # otherwise default to the standard path separator (i.e. ":") - it is
11538    # assumed that no part of a normal pathname contains ";" but that should
11539    # okay in the real world where ";" in dirpaths is itself problematic.
11540    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11541  else
11542    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11543  fi
11544else
11545  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11546fi
11547need_lib_prefix=unknown
11548hardcode_into_libs=no
11549
11550# when you set need_version to no, make sure it does not cause -set_version
11551# flags to be left without arguments
11552need_version=unknown
11553
11554case $host_os in
11555aix3*)
11556  version_type=linux
11557  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11558  shlibpath_var=LIBPATH
11559
11560  # AIX 3 has no versioning support, so we append a major version to the name.
11561  soname_spec='${libname}${release}${shared_ext}$major'
11562  ;;
11563
11564aix4* | aix5*)
11565  version_type=linux
11566  need_lib_prefix=no
11567  need_version=no
11568  hardcode_into_libs=yes
11569  if test "$host_cpu" = ia64; then
11570    # AIX 5 supports IA64
11571    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11572    shlibpath_var=LD_LIBRARY_PATH
11573  else
11574    # With GCC up to 2.95.x, collect2 would create an import file
11575    # for dependence libraries.  The import file would start with
11576    # the line `#! .'.  This would cause the generated library to
11577    # depend on `.', always an invalid library.  This was fixed in
11578    # development snapshots of GCC prior to 3.0.
11579    case $host_os in
11580      aix4 | aix4.[01] | aix4.[01].*)
11581      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11582	   echo ' yes '
11583	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11584	:
11585      else
11586	can_build_shared=no
11587      fi
11588      ;;
11589    esac
11590    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11591    # soname into executable. Probably we can add versioning support to
11592    # collect2, so additional links can be useful in future.
11593    if test "$aix_use_runtimelinking" = yes; then
11594      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11595      # instead of lib<name>.a to let people know that these are not
11596      # typical AIX shared libraries.
11597      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11598    else
11599      # We preserve .a as extension for shared libraries through AIX4.2
11600      # and later when we are not doing run time linking.
11601      library_names_spec='${libname}${release}.a $libname.a'
11602      soname_spec='${libname}${release}${shared_ext}$major'
11603    fi
11604    shlibpath_var=LIBPATH
11605  fi
11606  ;;
11607
11608amigaos*)
11609  library_names_spec='$libname.ixlibrary $libname.a'
11610  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11611  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'
11612  ;;
11613
11614beos*)
11615  library_names_spec='${libname}${shared_ext}'
11616  dynamic_linker="$host_os ld.so"
11617  shlibpath_var=LIBRARY_PATH
11618  ;;
11619
11620bsdi[45]*)
11621  version_type=linux
11622  need_version=no
11623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624  soname_spec='${libname}${release}${shared_ext}$major'
11625  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11626  shlibpath_var=LD_LIBRARY_PATH
11627  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11628  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11629  # the default ld.so.conf also contains /usr/contrib/lib and
11630  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11631  # libtool to hard-code these into programs
11632  ;;
11633
11634cygwin* | mingw* | pw32*)
11635  version_type=windows
11636  shrext_cmds=".dll"
11637  need_version=no
11638  need_lib_prefix=no
11639
11640  case $GCC,$host_os in
11641  yes,cygwin* | yes,mingw* | yes,pw32*)
11642    library_names_spec='$libname.dll.a'
11643    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11644    postinstall_cmds='base_file=`basename \${file}`~
11645      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11646      dldir=$destdir/`dirname \$dlpath`~
11647      test -d \$dldir || mkdir -p \$dldir~
11648      $install_prog $dir/$dlname \$dldir/$dlname~
11649      chmod a+x \$dldir/$dlname'
11650    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11651      dlpath=$dir/\$dldll~
11652       $rm \$dlpath'
11653    shlibpath_overrides_runpath=yes
11654
11655    case $host_os in
11656    cygwin*)
11657      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11658      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11659      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11660      ;;
11661    mingw*)
11662      # MinGW DLLs use traditional 'lib' prefix
11663      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11664      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11665      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11666        # It is most probably a Windows format PATH printed by
11667        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11668        # path with ; separators, and with drive letters. We can handle the
11669        # drive letters (cygwin fileutils understands them), so leave them,
11670        # especially as we might pass files found there to a mingw objdump,
11671        # which wouldn't understand a cygwinified path. Ahh.
11672        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11673      else
11674        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11675      fi
11676      ;;
11677    pw32*)
11678      # pw32 DLLs use 'pw' prefix rather than 'lib'
11679      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11680      ;;
11681    esac
11682    ;;
11683
11684  *)
11685    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11686    ;;
11687  esac
11688  dynamic_linker='Win32 ld.exe'
11689  # FIXME: first we should search . and the directory the executable is in
11690  shlibpath_var=PATH
11691  ;;
11692
11693darwin* | rhapsody*)
11694  dynamic_linker="$host_os dyld"
11695  version_type=darwin
11696  need_lib_prefix=no
11697  need_version=no
11698  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11699  soname_spec='${libname}${release}${major}$shared_ext'
11700  shlibpath_overrides_runpath=yes
11701  shlibpath_var=DYLD_LIBRARY_PATH
11702  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11703  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11704  if test "$GCC" = yes; then
11705    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"`
11706  else
11707    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11708  fi
11709  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11710  ;;
11711
11712dgux*)
11713  version_type=linux
11714  need_lib_prefix=no
11715  need_version=no
11716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11717  soname_spec='${libname}${release}${shared_ext}$major'
11718  shlibpath_var=LD_LIBRARY_PATH
11719  ;;
11720
11721freebsd1*)
11722  dynamic_linker=no
11723  ;;
11724
11725haiku*)
11726  library_names_spec='${libname}${shared_ext}'
11727  dynamic_linker="$host_os ld.so"
11728  shlibpath_var=LIBRARY_PATH
11729  ;;
11730
11731kfreebsd*-gnu)
11732  version_type=linux
11733  need_lib_prefix=no
11734  need_version=no
11735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11736  soname_spec='${libname}${release}${shared_ext}$major'
11737  shlibpath_var=LD_LIBRARY_PATH
11738  shlibpath_overrides_runpath=no
11739  hardcode_into_libs=yes
11740  dynamic_linker='GNU ld.so'
11741  ;;
11742
11743freebsd* | dragonfly*)
11744  # DragonFly does not have aout.  When/if they implement a new
11745  # versioning mechanism, adjust this.
11746  if test -x /usr/bin/objformat; then
11747    objformat=`/usr/bin/objformat`
11748  else
11749    case $host_os in
11750    freebsd[123]*) objformat=aout ;;
11751    *) objformat=elf ;;
11752    esac
11753  fi
11754  version_type=freebsd-$objformat
11755  case $version_type in
11756    freebsd-elf*)
11757      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11758      need_version=no
11759      need_lib_prefix=no
11760      ;;
11761    freebsd-*)
11762      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11763      need_version=yes
11764      ;;
11765  esac
11766  shlibpath_var=LD_LIBRARY_PATH
11767  case $host_os in
11768  freebsd2*)
11769    shlibpath_overrides_runpath=yes
11770    ;;
11771  freebsd3.[01]* | freebsdelf3.[01]*)
11772    shlibpath_overrides_runpath=yes
11773    hardcode_into_libs=yes
11774    ;;
11775  *) # from 3.2 on
11776    shlibpath_overrides_runpath=no
11777    hardcode_into_libs=yes
11778    ;;
11779  esac
11780  ;;
11781
11782gnu*)
11783  version_type=linux
11784  need_lib_prefix=no
11785  need_version=no
11786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11787  soname_spec='${libname}${release}${shared_ext}$major'
11788  shlibpath_var=LD_LIBRARY_PATH
11789  hardcode_into_libs=yes
11790  ;;
11791
11792hpux9* | hpux10* | hpux11*)
11793  # Give a soname corresponding to the major version so that dld.sl refuses to
11794  # link against other versions.
11795  version_type=sunos
11796  need_lib_prefix=no
11797  need_version=no
11798  case $host_cpu in
11799  ia64*)
11800    shrext_cmds='.so'
11801    hardcode_into_libs=yes
11802    dynamic_linker="$host_os dld.so"
11803    shlibpath_var=LD_LIBRARY_PATH
11804    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11805    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11806    soname_spec='${libname}${release}${shared_ext}$major'
11807    if test "X$HPUX_IA64_MODE" = X32; then
11808      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11809    else
11810      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11811    fi
11812    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11813    ;;
11814   hppa*64*)
11815     shrext_cmds='.sl'
11816     hardcode_into_libs=yes
11817     dynamic_linker="$host_os dld.sl"
11818     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11819     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11820     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821     soname_spec='${libname}${release}${shared_ext}$major'
11822     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11823     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11824     ;;
11825   *)
11826    shrext_cmds='.sl'
11827    dynamic_linker="$host_os dld.sl"
11828    shlibpath_var=SHLIB_PATH
11829    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11830    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831    soname_spec='${libname}${release}${shared_ext}$major'
11832    ;;
11833  esac
11834  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11835  postinstall_cmds='chmod 555 $lib'
11836  ;;
11837
11838irix5* | irix6* | nonstopux*)
11839  case $host_os in
11840    nonstopux*) version_type=nonstopux ;;
11841    *)
11842	if test "$lt_cv_prog_gnu_ld" = yes; then
11843		version_type=linux
11844	else
11845		version_type=irix
11846	fi ;;
11847  esac
11848  need_lib_prefix=no
11849  need_version=no
11850  soname_spec='${libname}${release}${shared_ext}$major'
11851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11852  case $host_os in
11853  irix5* | nonstopux*)
11854    libsuff= shlibsuff=
11855    ;;
11856  *)
11857    case $LD in # libtool.m4 will add one of these switches to LD
11858    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11859      libsuff= shlibsuff= libmagic=32-bit;;
11860    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11861      libsuff=32 shlibsuff=N32 libmagic=N32;;
11862    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11863      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11864    *) libsuff= shlibsuff= libmagic=never-match;;
11865    esac
11866    ;;
11867  esac
11868  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11869  shlibpath_overrides_runpath=no
11870  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11871  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11872  hardcode_into_libs=yes
11873  ;;
11874
11875# No shared lib support for Linux oldld, aout, or coff.
11876linux*oldld* | linux*aout* | linux*coff*)
11877  dynamic_linker=no
11878  ;;
11879
11880# This must be Linux ELF.
11881linux*)
11882  version_type=linux
11883  need_lib_prefix=no
11884  need_version=no
11885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886  soname_spec='${libname}${release}${shared_ext}$major'
11887  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11888  shlibpath_var=LD_LIBRARY_PATH
11889  shlibpath_overrides_runpath=no
11890  # This implies no fast_install, which is unacceptable.
11891  # Some rework will be needed to allow for fast_install
11892  # before this can be enabled.
11893  hardcode_into_libs=yes
11894
11895  # Append ld.so.conf contents to the search path
11896  if test -f /etc/ld.so.conf; then
11897    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11898    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11899  fi
11900
11901  # We used to test for /lib/ld.so.1 and disable shared libraries on
11902  # powerpc, because MkLinux only supported shared libraries with the
11903  # GNU dynamic linker.  Since this was broken with cross compilers,
11904  # most powerpc-linux boxes support dynamic linking these days and
11905  # people can always --disable-shared, the test was removed, and we
11906  # assume the GNU/Linux dynamic linker is in use.
11907  dynamic_linker='GNU/Linux ld.so'
11908  ;;
11909
11910knetbsd*-gnu)
11911  version_type=linux
11912  need_lib_prefix=no
11913  need_version=no
11914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11915  soname_spec='${libname}${release}${shared_ext}$major'
11916  shlibpath_var=LD_LIBRARY_PATH
11917  shlibpath_overrides_runpath=no
11918  hardcode_into_libs=yes
11919  dynamic_linker='GNU ld.so'
11920  ;;
11921
11922netbsd*)
11923  version_type=sunos
11924  need_lib_prefix=no
11925  need_version=no
11926  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11927    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11928    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11929    dynamic_linker='NetBSD (a.out) ld.so'
11930  else
11931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11932    soname_spec='${libname}${release}${shared_ext}$major'
11933    dynamic_linker='NetBSD ld.elf_so'
11934  fi
11935  shlibpath_var=LD_LIBRARY_PATH
11936  shlibpath_overrides_runpath=yes
11937  hardcode_into_libs=yes
11938  ;;
11939
11940newsos6)
11941  version_type=linux
11942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943  shlibpath_var=LD_LIBRARY_PATH
11944  shlibpath_overrides_runpath=yes
11945  ;;
11946
11947nto-qnx*)
11948  version_type=linux
11949  need_lib_prefix=no
11950  need_version=no
11951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952  soname_spec='${libname}${release}${shared_ext}$major'
11953  shlibpath_var=LD_LIBRARY_PATH
11954  shlibpath_overrides_runpath=yes
11955  ;;
11956
11957openbsd*)
11958  version_type=sunos
11959  need_lib_prefix=no
11960  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11961  case $host_os in
11962    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11963    *)                         need_version=no  ;;
11964  esac
11965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11966  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11967  shlibpath_var=LD_LIBRARY_PATH
11968  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11969    case $host_os in
11970      openbsd2.[89] | openbsd2.[89].*)
11971	shlibpath_overrides_runpath=no
11972	;;
11973      *)
11974	shlibpath_overrides_runpath=yes
11975	;;
11976      esac
11977  else
11978    shlibpath_overrides_runpath=yes
11979  fi
11980  ;;
11981
11982os2*)
11983  libname_spec='$name'
11984  shrext_cmds=".dll"
11985  need_lib_prefix=no
11986  library_names_spec='$libname${shared_ext} $libname.a'
11987  dynamic_linker='OS/2 ld.exe'
11988  shlibpath_var=LIBPATH
11989  ;;
11990
11991osf3* | osf4* | osf5*)
11992  version_type=osf
11993  need_lib_prefix=no
11994  need_version=no
11995  soname_spec='${libname}${release}${shared_ext}$major'
11996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997  shlibpath_var=LD_LIBRARY_PATH
11998  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11999  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12000  ;;
12001
12002sco3.2v5*)
12003  version_type=osf
12004  soname_spec='${libname}${release}${shared_ext}$major'
12005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006  shlibpath_var=LD_LIBRARY_PATH
12007  ;;
12008
12009solaris*)
12010  version_type=linux
12011  need_lib_prefix=no
12012  need_version=no
12013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12014  soname_spec='${libname}${release}${shared_ext}$major'
12015  shlibpath_var=LD_LIBRARY_PATH
12016  shlibpath_overrides_runpath=yes
12017  hardcode_into_libs=yes
12018  # ldd complains unless libraries are executable
12019  postinstall_cmds='chmod +x $lib'
12020  ;;
12021
12022sunos4*)
12023  version_type=sunos
12024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12025  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12026  shlibpath_var=LD_LIBRARY_PATH
12027  shlibpath_overrides_runpath=yes
12028  if test "$with_gnu_ld" = yes; then
12029    need_lib_prefix=no
12030  fi
12031  need_version=yes
12032  ;;
12033
12034sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12035  version_type=linux
12036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12037  soname_spec='${libname}${release}${shared_ext}$major'
12038  shlibpath_var=LD_LIBRARY_PATH
12039  case $host_vendor in
12040    sni)
12041      shlibpath_overrides_runpath=no
12042      need_lib_prefix=no
12043      export_dynamic_flag_spec='${wl}-Blargedynsym'
12044      runpath_var=LD_RUN_PATH
12045      ;;
12046    siemens)
12047      need_lib_prefix=no
12048      ;;
12049    motorola)
12050      need_lib_prefix=no
12051      need_version=no
12052      shlibpath_overrides_runpath=no
12053      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12054      ;;
12055  esac
12056  ;;
12057
12058sysv4*MP*)
12059  if test -d /usr/nec ;then
12060    version_type=linux
12061    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12062    soname_spec='$libname${shared_ext}.$major'
12063    shlibpath_var=LD_LIBRARY_PATH
12064  fi
12065  ;;
12066
12067uts4*)
12068  version_type=linux
12069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070  soname_spec='${libname}${release}${shared_ext}$major'
12071  shlibpath_var=LD_LIBRARY_PATH
12072  ;;
12073
12074*)
12075  dynamic_linker=no
12076  ;;
12077esac
12078echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12079echo "${ECHO_T}$dynamic_linker" >&6
12080test "$dynamic_linker" = no && can_build_shared=no
12081
12082echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12083echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12084hardcode_action_CXX=
12085if test -n "$hardcode_libdir_flag_spec_CXX" || \
12086   test -n "$runpath_var_CXX" || \
12087   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12088
12089  # We can hardcode non-existant directories.
12090  if test "$hardcode_direct_CXX" != no &&
12091     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12092     # have to relink, otherwise we might link with an installed library
12093     # when we should be linking with a yet-to-be-installed one
12094     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12095     test "$hardcode_minus_L_CXX" != no; then
12096    # Linking always hardcodes the temporary library directory.
12097    hardcode_action_CXX=relink
12098  else
12099    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12100    hardcode_action_CXX=immediate
12101  fi
12102else
12103  # We cannot hardcode anything, or else we can only hardcode existing
12104  # directories.
12105  hardcode_action_CXX=unsupported
12106fi
12107echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12108echo "${ECHO_T}$hardcode_action_CXX" >&6
12109
12110if test "$hardcode_action_CXX" = relink; then
12111  # Fast installation is not supported
12112  enable_fast_install=no
12113elif test "$shlibpath_overrides_runpath" = yes ||
12114     test "$enable_shared" = no; then
12115  # Fast installation is not necessary
12116  enable_fast_install=needless
12117fi
12118
12119striplib=
12120old_striplib=
12121echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12122echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12123if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12124  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12125  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12126  echo "$as_me:$LINENO: result: yes" >&5
12127echo "${ECHO_T}yes" >&6
12128else
12129# FIXME - insert some real tests, host_os isn't really good enough
12130  case $host_os in
12131   darwin*)
12132       if test -n "$STRIP" ; then
12133         striplib="$STRIP -x"
12134         echo "$as_me:$LINENO: result: yes" >&5
12135echo "${ECHO_T}yes" >&6
12136       else
12137  echo "$as_me:$LINENO: result: no" >&5
12138echo "${ECHO_T}no" >&6
12139fi
12140       ;;
12141   *)
12142  echo "$as_me:$LINENO: result: no" >&5
12143echo "${ECHO_T}no" >&6
12144    ;;
12145  esac
12146fi
12147
12148if test "x$enable_dlopen" != xyes; then
12149  enable_dlopen=unknown
12150  enable_dlopen_self=unknown
12151  enable_dlopen_self_static=unknown
12152else
12153  lt_cv_dlopen=no
12154  lt_cv_dlopen_libs=
12155
12156  case $host_os in
12157  beos*)
12158    lt_cv_dlopen="load_add_on"
12159    lt_cv_dlopen_libs=
12160    lt_cv_dlopen_self=yes
12161    ;;
12162
12163  mingw* | pw32*)
12164    lt_cv_dlopen="LoadLibrary"
12165    lt_cv_dlopen_libs=
12166   ;;
12167
12168  cygwin*)
12169    lt_cv_dlopen="dlopen"
12170    lt_cv_dlopen_libs=
12171   ;;
12172
12173  darwin*)
12174  # if libdl is installed we need to link against it
12175    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12176echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12177if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12178  echo $ECHO_N "(cached) $ECHO_C" >&6
12179else
12180  ac_check_lib_save_LIBS=$LIBS
12181LIBS="-ldl  $LIBS"
12182cat >conftest.$ac_ext <<_ACEOF
12183/* confdefs.h.  */
12184_ACEOF
12185cat confdefs.h >>conftest.$ac_ext
12186cat >>conftest.$ac_ext <<_ACEOF
12187/* end confdefs.h.  */
12188
12189/* Override any gcc2 internal prototype to avoid an error.  */
12190#ifdef __cplusplus
12191extern "C"
12192#endif
12193/* We use char because int might match the return type of a gcc2
12194   builtin and then its argument prototype would still apply.  */
12195char dlopen ();
12196int
12197main ()
12198{
12199dlopen ();
12200  ;
12201  return 0;
12202}
12203_ACEOF
12204rm -f conftest.$ac_objext conftest$ac_exeext
12205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12206  (eval $ac_link) 2>conftest.er1
12207  ac_status=$?
12208  grep -v '^ *+' conftest.er1 >conftest.err
12209  rm -f conftest.er1
12210  cat conftest.err >&5
12211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212  (exit $ac_status); } &&
12213	 { ac_try='test -z "$ac_cxx_werror_flag"
12214			 || test ! -s conftest.err'
12215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216  (eval $ac_try) 2>&5
12217  ac_status=$?
12218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219  (exit $ac_status); }; } &&
12220	 { ac_try='test -s conftest$ac_exeext'
12221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222  (eval $ac_try) 2>&5
12223  ac_status=$?
12224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225  (exit $ac_status); }; }; then
12226  ac_cv_lib_dl_dlopen=yes
12227else
12228  echo "$as_me: failed program was:" >&5
12229sed 's/^/| /' conftest.$ac_ext >&5
12230
12231ac_cv_lib_dl_dlopen=no
12232fi
12233rm -f conftest.err conftest.$ac_objext \
12234      conftest$ac_exeext conftest.$ac_ext
12235LIBS=$ac_check_lib_save_LIBS
12236fi
12237echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12238echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12239if test $ac_cv_lib_dl_dlopen = yes; then
12240  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12241else
12242
12243    lt_cv_dlopen="dyld"
12244    lt_cv_dlopen_libs=
12245    lt_cv_dlopen_self=yes
12246
12247fi
12248
12249   ;;
12250
12251  haiku*)
12252    lt_cv_dlopen="load_add_on"
12253    lt_cv_dlopen_libs=
12254    lt_cv_dlopen_self=yes
12255    ;;
12256
12257  *)
12258    echo "$as_me:$LINENO: checking for shl_load" >&5
12259echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12260if test "${ac_cv_func_shl_load+set}" = set; then
12261  echo $ECHO_N "(cached) $ECHO_C" >&6
12262else
12263  cat >conftest.$ac_ext <<_ACEOF
12264/* confdefs.h.  */
12265_ACEOF
12266cat confdefs.h >>conftest.$ac_ext
12267cat >>conftest.$ac_ext <<_ACEOF
12268/* end confdefs.h.  */
12269/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12270   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12271#define shl_load innocuous_shl_load
12272
12273/* System header to define __stub macros and hopefully few prototypes,
12274    which can conflict with char shl_load (); below.
12275    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12276    <limits.h> exists even on freestanding compilers.  */
12277
12278#ifdef __STDC__
12279# include <limits.h>
12280#else
12281# include <assert.h>
12282#endif
12283
12284#undef shl_load
12285
12286/* Override any gcc2 internal prototype to avoid an error.  */
12287#ifdef __cplusplus
12288extern "C"
12289{
12290#endif
12291/* We use char because int might match the return type of a gcc2
12292   builtin and then its argument prototype would still apply.  */
12293char shl_load ();
12294/* The GNU C library defines this for functions which it implements
12295    to always fail with ENOSYS.  Some functions are actually named
12296    something starting with __ and the normal name is an alias.  */
12297#if defined (__stub_shl_load) || defined (__stub___shl_load)
12298choke me
12299#else
12300char (*f) () = shl_load;
12301#endif
12302#ifdef __cplusplus
12303}
12304#endif
12305
12306int
12307main ()
12308{
12309return f != shl_load;
12310  ;
12311  return 0;
12312}
12313_ACEOF
12314rm -f conftest.$ac_objext conftest$ac_exeext
12315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12316  (eval $ac_link) 2>conftest.er1
12317  ac_status=$?
12318  grep -v '^ *+' conftest.er1 >conftest.err
12319  rm -f conftest.er1
12320  cat conftest.err >&5
12321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322  (exit $ac_status); } &&
12323	 { ac_try='test -z "$ac_cxx_werror_flag"
12324			 || test ! -s conftest.err'
12325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326  (eval $ac_try) 2>&5
12327  ac_status=$?
12328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329  (exit $ac_status); }; } &&
12330	 { ac_try='test -s conftest$ac_exeext'
12331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332  (eval $ac_try) 2>&5
12333  ac_status=$?
12334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335  (exit $ac_status); }; }; then
12336  ac_cv_func_shl_load=yes
12337else
12338  echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
12341ac_cv_func_shl_load=no
12342fi
12343rm -f conftest.err conftest.$ac_objext \
12344      conftest$ac_exeext conftest.$ac_ext
12345fi
12346echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12347echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12348if test $ac_cv_func_shl_load = yes; then
12349  lt_cv_dlopen="shl_load"
12350else
12351  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12352echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12353if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12354  echo $ECHO_N "(cached) $ECHO_C" >&6
12355else
12356  ac_check_lib_save_LIBS=$LIBS
12357LIBS="-ldld  $LIBS"
12358cat >conftest.$ac_ext <<_ACEOF
12359/* confdefs.h.  */
12360_ACEOF
12361cat confdefs.h >>conftest.$ac_ext
12362cat >>conftest.$ac_ext <<_ACEOF
12363/* end confdefs.h.  */
12364
12365/* Override any gcc2 internal prototype to avoid an error.  */
12366#ifdef __cplusplus
12367extern "C"
12368#endif
12369/* We use char because int might match the return type of a gcc2
12370   builtin and then its argument prototype would still apply.  */
12371char shl_load ();
12372int
12373main ()
12374{
12375shl_load ();
12376  ;
12377  return 0;
12378}
12379_ACEOF
12380rm -f conftest.$ac_objext conftest$ac_exeext
12381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12382  (eval $ac_link) 2>conftest.er1
12383  ac_status=$?
12384  grep -v '^ *+' conftest.er1 >conftest.err
12385  rm -f conftest.er1
12386  cat conftest.err >&5
12387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388  (exit $ac_status); } &&
12389	 { ac_try='test -z "$ac_cxx_werror_flag"
12390			 || test ! -s conftest.err'
12391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392  (eval $ac_try) 2>&5
12393  ac_status=$?
12394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395  (exit $ac_status); }; } &&
12396	 { ac_try='test -s conftest$ac_exeext'
12397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398  (eval $ac_try) 2>&5
12399  ac_status=$?
12400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401  (exit $ac_status); }; }; then
12402  ac_cv_lib_dld_shl_load=yes
12403else
12404  echo "$as_me: failed program was:" >&5
12405sed 's/^/| /' conftest.$ac_ext >&5
12406
12407ac_cv_lib_dld_shl_load=no
12408fi
12409rm -f conftest.err conftest.$ac_objext \
12410      conftest$ac_exeext conftest.$ac_ext
12411LIBS=$ac_check_lib_save_LIBS
12412fi
12413echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12414echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12415if test $ac_cv_lib_dld_shl_load = yes; then
12416  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12417else
12418  echo "$as_me:$LINENO: checking for dlopen" >&5
12419echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12420if test "${ac_cv_func_dlopen+set}" = set; then
12421  echo $ECHO_N "(cached) $ECHO_C" >&6
12422else
12423  cat >conftest.$ac_ext <<_ACEOF
12424/* confdefs.h.  */
12425_ACEOF
12426cat confdefs.h >>conftest.$ac_ext
12427cat >>conftest.$ac_ext <<_ACEOF
12428/* end confdefs.h.  */
12429/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12430   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12431#define dlopen innocuous_dlopen
12432
12433/* System header to define __stub macros and hopefully few prototypes,
12434    which can conflict with char dlopen (); below.
12435    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12436    <limits.h> exists even on freestanding compilers.  */
12437
12438#ifdef __STDC__
12439# include <limits.h>
12440#else
12441# include <assert.h>
12442#endif
12443
12444#undef dlopen
12445
12446/* Override any gcc2 internal prototype to avoid an error.  */
12447#ifdef __cplusplus
12448extern "C"
12449{
12450#endif
12451/* We use char because int might match the return type of a gcc2
12452   builtin and then its argument prototype would still apply.  */
12453char dlopen ();
12454/* The GNU C library defines this for functions which it implements
12455    to always fail with ENOSYS.  Some functions are actually named
12456    something starting with __ and the normal name is an alias.  */
12457#if defined (__stub_dlopen) || defined (__stub___dlopen)
12458choke me
12459#else
12460char (*f) () = dlopen;
12461#endif
12462#ifdef __cplusplus
12463}
12464#endif
12465
12466int
12467main ()
12468{
12469return f != dlopen;
12470  ;
12471  return 0;
12472}
12473_ACEOF
12474rm -f conftest.$ac_objext conftest$ac_exeext
12475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476  (eval $ac_link) 2>conftest.er1
12477  ac_status=$?
12478  grep -v '^ *+' conftest.er1 >conftest.err
12479  rm -f conftest.er1
12480  cat conftest.err >&5
12481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482  (exit $ac_status); } &&
12483	 { ac_try='test -z "$ac_cxx_werror_flag"
12484			 || test ! -s conftest.err'
12485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486  (eval $ac_try) 2>&5
12487  ac_status=$?
12488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489  (exit $ac_status); }; } &&
12490	 { ac_try='test -s conftest$ac_exeext'
12491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12492  (eval $ac_try) 2>&5
12493  ac_status=$?
12494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495  (exit $ac_status); }; }; then
12496  ac_cv_func_dlopen=yes
12497else
12498  echo "$as_me: failed program was:" >&5
12499sed 's/^/| /' conftest.$ac_ext >&5
12500
12501ac_cv_func_dlopen=no
12502fi
12503rm -f conftest.err conftest.$ac_objext \
12504      conftest$ac_exeext conftest.$ac_ext
12505fi
12506echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12507echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12508if test $ac_cv_func_dlopen = yes; then
12509  lt_cv_dlopen="dlopen"
12510else
12511  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12512echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12513if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12514  echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516  ac_check_lib_save_LIBS=$LIBS
12517LIBS="-ldl  $LIBS"
12518cat >conftest.$ac_ext <<_ACEOF
12519/* confdefs.h.  */
12520_ACEOF
12521cat confdefs.h >>conftest.$ac_ext
12522cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h.  */
12524
12525/* Override any gcc2 internal prototype to avoid an error.  */
12526#ifdef __cplusplus
12527extern "C"
12528#endif
12529/* We use char because int might match the return type of a gcc2
12530   builtin and then its argument prototype would still apply.  */
12531char dlopen ();
12532int
12533main ()
12534{
12535dlopen ();
12536  ;
12537  return 0;
12538}
12539_ACEOF
12540rm -f conftest.$ac_objext conftest$ac_exeext
12541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542  (eval $ac_link) 2>conftest.er1
12543  ac_status=$?
12544  grep -v '^ *+' conftest.er1 >conftest.err
12545  rm -f conftest.er1
12546  cat conftest.err >&5
12547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548  (exit $ac_status); } &&
12549	 { ac_try='test -z "$ac_cxx_werror_flag"
12550			 || test ! -s conftest.err'
12551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552  (eval $ac_try) 2>&5
12553  ac_status=$?
12554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555  (exit $ac_status); }; } &&
12556	 { ac_try='test -s conftest$ac_exeext'
12557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558  (eval $ac_try) 2>&5
12559  ac_status=$?
12560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561  (exit $ac_status); }; }; then
12562  ac_cv_lib_dl_dlopen=yes
12563else
12564  echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567ac_cv_lib_dl_dlopen=no
12568fi
12569rm -f conftest.err conftest.$ac_objext \
12570      conftest$ac_exeext conftest.$ac_ext
12571LIBS=$ac_check_lib_save_LIBS
12572fi
12573echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12574echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12575if test $ac_cv_lib_dl_dlopen = yes; then
12576  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12577else
12578  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12579echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12580if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12581  echo $ECHO_N "(cached) $ECHO_C" >&6
12582else
12583  ac_check_lib_save_LIBS=$LIBS
12584LIBS="-lsvld  $LIBS"
12585cat >conftest.$ac_ext <<_ACEOF
12586/* confdefs.h.  */
12587_ACEOF
12588cat confdefs.h >>conftest.$ac_ext
12589cat >>conftest.$ac_ext <<_ACEOF
12590/* end confdefs.h.  */
12591
12592/* Override any gcc2 internal prototype to avoid an error.  */
12593#ifdef __cplusplus
12594extern "C"
12595#endif
12596/* We use char because int might match the return type of a gcc2
12597   builtin and then its argument prototype would still apply.  */
12598char dlopen ();
12599int
12600main ()
12601{
12602dlopen ();
12603  ;
12604  return 0;
12605}
12606_ACEOF
12607rm -f conftest.$ac_objext conftest$ac_exeext
12608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12609  (eval $ac_link) 2>conftest.er1
12610  ac_status=$?
12611  grep -v '^ *+' conftest.er1 >conftest.err
12612  rm -f conftest.er1
12613  cat conftest.err >&5
12614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615  (exit $ac_status); } &&
12616	 { ac_try='test -z "$ac_cxx_werror_flag"
12617			 || test ! -s conftest.err'
12618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619  (eval $ac_try) 2>&5
12620  ac_status=$?
12621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622  (exit $ac_status); }; } &&
12623	 { ac_try='test -s conftest$ac_exeext'
12624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12625  (eval $ac_try) 2>&5
12626  ac_status=$?
12627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628  (exit $ac_status); }; }; then
12629  ac_cv_lib_svld_dlopen=yes
12630else
12631  echo "$as_me: failed program was:" >&5
12632sed 's/^/| /' conftest.$ac_ext >&5
12633
12634ac_cv_lib_svld_dlopen=no
12635fi
12636rm -f conftest.err conftest.$ac_objext \
12637      conftest$ac_exeext conftest.$ac_ext
12638LIBS=$ac_check_lib_save_LIBS
12639fi
12640echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12641echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12642if test $ac_cv_lib_svld_dlopen = yes; then
12643  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12644else
12645  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12646echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12647if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12648  echo $ECHO_N "(cached) $ECHO_C" >&6
12649else
12650  ac_check_lib_save_LIBS=$LIBS
12651LIBS="-ldld  $LIBS"
12652cat >conftest.$ac_ext <<_ACEOF
12653/* confdefs.h.  */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h.  */
12658
12659/* Override any gcc2 internal prototype to avoid an error.  */
12660#ifdef __cplusplus
12661extern "C"
12662#endif
12663/* We use char because int might match the return type of a gcc2
12664   builtin and then its argument prototype would still apply.  */
12665char dld_link ();
12666int
12667main ()
12668{
12669dld_link ();
12670  ;
12671  return 0;
12672}
12673_ACEOF
12674rm -f conftest.$ac_objext conftest$ac_exeext
12675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12676  (eval $ac_link) 2>conftest.er1
12677  ac_status=$?
12678  grep -v '^ *+' conftest.er1 >conftest.err
12679  rm -f conftest.er1
12680  cat conftest.err >&5
12681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682  (exit $ac_status); } &&
12683	 { ac_try='test -z "$ac_cxx_werror_flag"
12684			 || test ! -s conftest.err'
12685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12686  (eval $ac_try) 2>&5
12687  ac_status=$?
12688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689  (exit $ac_status); }; } &&
12690	 { ac_try='test -s conftest$ac_exeext'
12691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692  (eval $ac_try) 2>&5
12693  ac_status=$?
12694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695  (exit $ac_status); }; }; then
12696  ac_cv_lib_dld_dld_link=yes
12697else
12698  echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701ac_cv_lib_dld_dld_link=no
12702fi
12703rm -f conftest.err conftest.$ac_objext \
12704      conftest$ac_exeext conftest.$ac_ext
12705LIBS=$ac_check_lib_save_LIBS
12706fi
12707echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12708echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12709if test $ac_cv_lib_dld_dld_link = yes; then
12710  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12711fi
12712
12713
12714fi
12715
12716
12717fi
12718
12719
12720fi
12721
12722
12723fi
12724
12725
12726fi
12727
12728    ;;
12729  esac
12730
12731  if test "x$lt_cv_dlopen" != xno; then
12732    enable_dlopen=yes
12733  else
12734    enable_dlopen=no
12735  fi
12736
12737  case $lt_cv_dlopen in
12738  dlopen)
12739    save_CPPFLAGS="$CPPFLAGS"
12740    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12741
12742    save_LDFLAGS="$LDFLAGS"
12743    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12744
12745    save_LIBS="$LIBS"
12746    LIBS="$lt_cv_dlopen_libs $LIBS"
12747
12748    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12749echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12750if test "${lt_cv_dlopen_self+set}" = set; then
12751  echo $ECHO_N "(cached) $ECHO_C" >&6
12752else
12753  	  if test "$cross_compiling" = yes; then :
12754  lt_cv_dlopen_self=cross
12755else
12756  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12757  lt_status=$lt_dlunknown
12758  cat > conftest.$ac_ext <<EOF
12759#line 12759 "configure"
12760#include "confdefs.h"
12761
12762#if HAVE_DLFCN_H
12763#include <dlfcn.h>
12764#endif
12765
12766#include <stdio.h>
12767
12768#ifdef RTLD_GLOBAL
12769#  define LT_DLGLOBAL		RTLD_GLOBAL
12770#else
12771#  ifdef DL_GLOBAL
12772#    define LT_DLGLOBAL		DL_GLOBAL
12773#  else
12774#    define LT_DLGLOBAL		0
12775#  endif
12776#endif
12777
12778/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12779   find out it does not work in some platform. */
12780#ifndef LT_DLLAZY_OR_NOW
12781#  ifdef RTLD_LAZY
12782#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12783#  else
12784#    ifdef DL_LAZY
12785#      define LT_DLLAZY_OR_NOW		DL_LAZY
12786#    else
12787#      ifdef RTLD_NOW
12788#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12789#      else
12790#        ifdef DL_NOW
12791#          define LT_DLLAZY_OR_NOW	DL_NOW
12792#        else
12793#          define LT_DLLAZY_OR_NOW	0
12794#        endif
12795#      endif
12796#    endif
12797#  endif
12798#endif
12799
12800#ifdef __cplusplus
12801extern "C" void exit (int);
12802#endif
12803
12804void fnord() { int i=42;}
12805int main ()
12806{
12807  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12808  int status = $lt_dlunknown;
12809
12810  if (self)
12811    {
12812      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12813      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12814      /* dlclose (self); */
12815    }
12816
12817    exit (status);
12818}
12819EOF
12820  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12821  (eval $ac_link) 2>&5
12822  ac_status=$?
12823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12825    (./conftest; exit; ) >&5 2>/dev/null
12826    lt_status=$?
12827    case x$lt_status in
12828      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12829      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12830      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12831    esac
12832  else :
12833    # compilation failed
12834    lt_cv_dlopen_self=no
12835  fi
12836fi
12837rm -fr conftest*
12838
12839
12840fi
12841echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12842echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12843
12844    if test "x$lt_cv_dlopen_self" = xyes; then
12845      LDFLAGS="$LDFLAGS $link_static_flag"
12846      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12847echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12848if test "${lt_cv_dlopen_self_static+set}" = set; then
12849  echo $ECHO_N "(cached) $ECHO_C" >&6
12850else
12851  	  if test "$cross_compiling" = yes; then :
12852  lt_cv_dlopen_self_static=cross
12853else
12854  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12855  lt_status=$lt_dlunknown
12856  cat > conftest.$ac_ext <<EOF
12857#line 12857 "configure"
12858#include "confdefs.h"
12859
12860#if HAVE_DLFCN_H
12861#include <dlfcn.h>
12862#endif
12863
12864#include <stdio.h>
12865
12866#ifdef RTLD_GLOBAL
12867#  define LT_DLGLOBAL		RTLD_GLOBAL
12868#else
12869#  ifdef DL_GLOBAL
12870#    define LT_DLGLOBAL		DL_GLOBAL
12871#  else
12872#    define LT_DLGLOBAL		0
12873#  endif
12874#endif
12875
12876/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12877   find out it does not work in some platform. */
12878#ifndef LT_DLLAZY_OR_NOW
12879#  ifdef RTLD_LAZY
12880#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12881#  else
12882#    ifdef DL_LAZY
12883#      define LT_DLLAZY_OR_NOW		DL_LAZY
12884#    else
12885#      ifdef RTLD_NOW
12886#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12887#      else
12888#        ifdef DL_NOW
12889#          define LT_DLLAZY_OR_NOW	DL_NOW
12890#        else
12891#          define LT_DLLAZY_OR_NOW	0
12892#        endif
12893#      endif
12894#    endif
12895#  endif
12896#endif
12897
12898#ifdef __cplusplus
12899extern "C" void exit (int);
12900#endif
12901
12902void fnord() { int i=42;}
12903int main ()
12904{
12905  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12906  int status = $lt_dlunknown;
12907
12908  if (self)
12909    {
12910      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12911      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12912      /* dlclose (self); */
12913    }
12914
12915    exit (status);
12916}
12917EOF
12918  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12919  (eval $ac_link) 2>&5
12920  ac_status=$?
12921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12923    (./conftest; exit; ) >&5 2>/dev/null
12924    lt_status=$?
12925    case x$lt_status in
12926      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12927      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12928      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12929    esac
12930  else :
12931    # compilation failed
12932    lt_cv_dlopen_self_static=no
12933  fi
12934fi
12935rm -fr conftest*
12936
12937
12938fi
12939echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12940echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12941    fi
12942
12943    CPPFLAGS="$save_CPPFLAGS"
12944    LDFLAGS="$save_LDFLAGS"
12945    LIBS="$save_LIBS"
12946    ;;
12947  esac
12948
12949  case $lt_cv_dlopen_self in
12950  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12951  *) enable_dlopen_self=unknown ;;
12952  esac
12953
12954  case $lt_cv_dlopen_self_static in
12955  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12956  *) enable_dlopen_self_static=unknown ;;
12957  esac
12958fi
12959
12960
12961# The else clause should only fire when bootstrapping the
12962# libtool distribution, otherwise you forgot to ship ltmain.sh
12963# with your package, and you will get complaints that there are
12964# no rules to generate ltmain.sh.
12965if test -f "$ltmain"; then
12966  # See if we are running on zsh, and set the options which allow our commands through
12967  # without removal of \ escapes.
12968  if test -n "${ZSH_VERSION+set}" ; then
12969    setopt NO_GLOB_SUBST
12970  fi
12971  # Now quote all the things that may contain metacharacters while being
12972  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12973  # variables and quote the copies for generation of the libtool script.
12974  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12975    SED SHELL STRIP \
12976    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12977    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12978    deplibs_check_method reload_flag reload_cmds need_locks \
12979    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12980    lt_cv_sys_global_symbol_to_c_name_address \
12981    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12982    old_postinstall_cmds old_postuninstall_cmds \
12983    compiler_CXX \
12984    CC_CXX \
12985    LD_CXX \
12986    lt_prog_compiler_wl_CXX \
12987    lt_prog_compiler_pic_CXX \
12988    lt_prog_compiler_static_CXX \
12989    lt_prog_compiler_no_builtin_flag_CXX \
12990    export_dynamic_flag_spec_CXX \
12991    thread_safe_flag_spec_CXX \
12992    whole_archive_flag_spec_CXX \
12993    enable_shared_with_static_runtimes_CXX \
12994    old_archive_cmds_CXX \
12995    old_archive_from_new_cmds_CXX \
12996    predep_objects_CXX \
12997    postdep_objects_CXX \
12998    predeps_CXX \
12999    postdeps_CXX \
13000    compiler_lib_search_path_CXX \
13001    archive_cmds_CXX \
13002    archive_expsym_cmds_CXX \
13003    postinstall_cmds_CXX \
13004    postuninstall_cmds_CXX \
13005    old_archive_from_expsyms_cmds_CXX \
13006    allow_undefined_flag_CXX \
13007    no_undefined_flag_CXX \
13008    export_symbols_cmds_CXX \
13009    hardcode_libdir_flag_spec_CXX \
13010    hardcode_libdir_flag_spec_ld_CXX \
13011    hardcode_libdir_separator_CXX \
13012    hardcode_automatic_CXX \
13013    module_cmds_CXX \
13014    module_expsym_cmds_CXX \
13015    lt_cv_prog_compiler_c_o_CXX \
13016    exclude_expsyms_CXX \
13017    include_expsyms_CXX; do
13018
13019    case $var in
13020    old_archive_cmds_CXX | \
13021    old_archive_from_new_cmds_CXX | \
13022    archive_cmds_CXX | \
13023    archive_expsym_cmds_CXX | \
13024    module_cmds_CXX | \
13025    module_expsym_cmds_CXX | \
13026    old_archive_from_expsyms_cmds_CXX | \
13027    export_symbols_cmds_CXX | \
13028    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13029    postinstall_cmds | postuninstall_cmds | \
13030    old_postinstall_cmds | old_postuninstall_cmds | \
13031    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13032      # Double-quote double-evaled strings.
13033      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13034      ;;
13035    *)
13036      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13037      ;;
13038    esac
13039  done
13040
13041  case $lt_echo in
13042  *'\$0 --fallback-echo"')
13043    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13044    ;;
13045  esac
13046
13047cfgfile="$ofile"
13048
13049  cat <<__EOF__ >> "$cfgfile"
13050# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13051
13052# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13053
13054# Shell to use when invoking shell scripts.
13055SHELL=$lt_SHELL
13056
13057# Whether or not to build shared libraries.
13058build_libtool_libs=$enable_shared
13059
13060# Whether or not to build static libraries.
13061build_old_libs=$enable_static
13062
13063# Whether or not to add -lc for building shared libraries.
13064build_libtool_need_lc=$archive_cmds_need_lc_CXX
13065
13066# Whether or not to disallow shared libs when runtime libs are static
13067allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13068
13069# Whether or not to optimize for fast installation.
13070fast_install=$enable_fast_install
13071
13072# The host system.
13073host_alias=$host_alias
13074host=$host
13075host_os=$host_os
13076
13077# The build system.
13078build_alias=$build_alias
13079build=$build
13080build_os=$build_os
13081
13082# An echo program that does not interpret backslashes.
13083echo=$lt_echo
13084
13085# The archiver.
13086AR=$lt_AR
13087AR_FLAGS=$lt_AR_FLAGS
13088
13089# A C compiler.
13090LTCC=$lt_LTCC
13091
13092# A language-specific compiler.
13093CC=$lt_compiler_CXX
13094
13095# Is the compiler the GNU C compiler?
13096with_gcc=$GCC_CXX
13097
13098# An ERE matcher.
13099EGREP=$lt_EGREP
13100
13101# The linker used to build libraries.
13102LD=$lt_LD_CXX
13103
13104# Whether we need hard or soft links.
13105LN_S=$lt_LN_S
13106
13107# A BSD-compatible nm program.
13108NM=$lt_NM
13109
13110# A symbol stripping program
13111STRIP=$lt_STRIP
13112
13113# Used to examine libraries when file_magic_cmd begins "file"
13114MAGIC_CMD=$MAGIC_CMD
13115
13116# Used on cygwin: DLL creation program.
13117DLLTOOL="$DLLTOOL"
13118
13119# Used on cygwin: object dumper.
13120OBJDUMP="$OBJDUMP"
13121
13122# Used on cygwin: assembler.
13123AS="$AS"
13124
13125# The name of the directory that contains temporary libtool files.
13126objdir=$objdir
13127
13128# How to create reloadable object files.
13129reload_flag=$lt_reload_flag
13130reload_cmds=$lt_reload_cmds
13131
13132# How to pass a linker flag through the compiler.
13133wl=$lt_lt_prog_compiler_wl_CXX
13134
13135# Object file suffix (normally "o").
13136objext="$ac_objext"
13137
13138# Old archive suffix (normally "a").
13139libext="$libext"
13140
13141# Shared library suffix (normally ".so").
13142shrext_cmds='$shrext_cmds'
13143
13144# Executable file suffix (normally "").
13145exeext="$exeext"
13146
13147# Additional compiler flags for building library objects.
13148pic_flag=$lt_lt_prog_compiler_pic_CXX
13149pic_mode=$pic_mode
13150
13151# What is the maximum length of a command?
13152max_cmd_len=$lt_cv_sys_max_cmd_len
13153
13154# Does compiler simultaneously support -c and -o options?
13155compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13156
13157# Must we lock files when doing compilation?
13158need_locks=$lt_need_locks
13159
13160# Do we need the lib prefix for modules?
13161need_lib_prefix=$need_lib_prefix
13162
13163# Do we need a version for libraries?
13164need_version=$need_version
13165
13166# Whether dlopen is supported.
13167dlopen_support=$enable_dlopen
13168
13169# Whether dlopen of programs is supported.
13170dlopen_self=$enable_dlopen_self
13171
13172# Whether dlopen of statically linked programs is supported.
13173dlopen_self_static=$enable_dlopen_self_static
13174
13175# Compiler flag to prevent dynamic linking.
13176link_static_flag=$lt_lt_prog_compiler_static_CXX
13177
13178# Compiler flag to turn off builtin functions.
13179no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13180
13181# Compiler flag to allow reflexive dlopens.
13182export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13183
13184# Compiler flag to generate shared objects directly from archives.
13185whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13186
13187# Compiler flag to generate thread-safe objects.
13188thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13189
13190# Library versioning type.
13191version_type=$version_type
13192
13193# Format of library name prefix.
13194libname_spec=$lt_libname_spec
13195
13196# List of archive names.  First name is the real one, the rest are links.
13197# The last name is the one that the linker finds with -lNAME.
13198library_names_spec=$lt_library_names_spec
13199
13200# The coded name of the library, if different from the real name.
13201soname_spec=$lt_soname_spec
13202
13203# Commands used to build and install an old-style archive.
13204RANLIB=$lt_RANLIB
13205old_archive_cmds=$lt_old_archive_cmds_CXX
13206old_postinstall_cmds=$lt_old_postinstall_cmds
13207old_postuninstall_cmds=$lt_old_postuninstall_cmds
13208
13209# Create an old-style archive from a shared archive.
13210old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13211
13212# Create a temporary old-style archive to link instead of a shared archive.
13213old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13214
13215# Commands used to build and install a shared archive.
13216archive_cmds=$lt_archive_cmds_CXX
13217archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13218postinstall_cmds=$lt_postinstall_cmds
13219postuninstall_cmds=$lt_postuninstall_cmds
13220
13221# Commands used to build a loadable module (assumed same as above if empty)
13222module_cmds=$lt_module_cmds_CXX
13223module_expsym_cmds=$lt_module_expsym_cmds_CXX
13224
13225# Commands to strip libraries.
13226old_striplib=$lt_old_striplib
13227striplib=$lt_striplib
13228
13229# Dependencies to place before the objects being linked to create a
13230# shared library.
13231predep_objects=$lt_predep_objects_CXX
13232
13233# Dependencies to place after the objects being linked to create a
13234# shared library.
13235postdep_objects=$lt_postdep_objects_CXX
13236
13237# Dependencies to place before the objects being linked to create a
13238# shared library.
13239predeps=$lt_predeps_CXX
13240
13241# Dependencies to place after the objects being linked to create a
13242# shared library.
13243postdeps=$lt_postdeps_CXX
13244
13245# The library search path used internally by the compiler when linking
13246# a shared library.
13247compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13248
13249# Method to check whether dependent libraries are shared objects.
13250deplibs_check_method=$lt_deplibs_check_method
13251
13252# Command to use when deplibs_check_method == file_magic.
13253file_magic_cmd=$lt_file_magic_cmd
13254
13255# Flag that allows shared libraries with undefined symbols to be built.
13256allow_undefined_flag=$lt_allow_undefined_flag_CXX
13257
13258# Flag that forces no undefined symbols.
13259no_undefined_flag=$lt_no_undefined_flag_CXX
13260
13261# Commands used to finish a libtool library installation in a directory.
13262finish_cmds=$lt_finish_cmds
13263
13264# Same as above, but a single script fragment to be evaled but not shown.
13265finish_eval=$lt_finish_eval
13266
13267# Take the output of nm and produce a listing of raw symbols and C names.
13268global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13269
13270# Transform the output of nm in a proper C declaration
13271global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13272
13273# Transform the output of nm in a C name address pair
13274global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13275
13276# This is the shared library runtime path variable.
13277runpath_var=$runpath_var
13278
13279# This is the shared library path variable.
13280shlibpath_var=$shlibpath_var
13281
13282# Is shlibpath searched before the hard-coded library search path?
13283shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13284
13285# How to hardcode a shared library path into an executable.
13286hardcode_action=$hardcode_action_CXX
13287
13288# Whether we should hardcode library paths into libraries.
13289hardcode_into_libs=$hardcode_into_libs
13290
13291# Flag to hardcode \$libdir into a binary during linking.
13292# This must work even if \$libdir does not exist.
13293hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13294
13295# If ld is used when linking, flag to hardcode \$libdir into
13296# a binary during linking. This must work even if \$libdir does
13297# not exist.
13298hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13299
13300# Whether we need a single -rpath flag with a separated argument.
13301hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13302
13303# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13304# resulting binary.
13305hardcode_direct=$hardcode_direct_CXX
13306
13307# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13308# resulting binary.
13309hardcode_minus_L=$hardcode_minus_L_CXX
13310
13311# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13312# the resulting binary.
13313hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13314
13315# Set to yes if building a shared library automatically hardcodes DIR into the library
13316# and all subsequent libraries and executables linked against it.
13317hardcode_automatic=$hardcode_automatic_CXX
13318
13319# Variables whose values should be saved in libtool wrapper scripts and
13320# restored at relink time.
13321variables_saved_for_relink="$variables_saved_for_relink"
13322
13323# Whether libtool must link a program against all its dependency libraries.
13324link_all_deplibs=$link_all_deplibs_CXX
13325
13326# Compile-time system search path for libraries
13327sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13328
13329# Run-time system search path for libraries
13330sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13331
13332# Fix the shell variable \$srcfile for the compiler.
13333fix_srcfile_path="$fix_srcfile_path_CXX"
13334
13335# Set to yes if exported symbols are required.
13336always_export_symbols=$always_export_symbols_CXX
13337
13338# The commands to list exported symbols.
13339export_symbols_cmds=$lt_export_symbols_cmds_CXX
13340
13341# The commands to extract the exported symbol list from a shared archive.
13342extract_expsyms_cmds=$lt_extract_expsyms_cmds
13343
13344# Symbols that should not be listed in the preloaded symbols.
13345exclude_expsyms=$lt_exclude_expsyms_CXX
13346
13347# Symbols that must always be exported.
13348include_expsyms=$lt_include_expsyms_CXX
13349
13350# ### END LIBTOOL TAG CONFIG: $tagname
13351
13352__EOF__
13353
13354
13355else
13356  # If there is no Makefile yet, we rely on a make rule to execute
13357  # `config.status --recheck' to rerun these tests and create the
13358  # libtool script then.
13359  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13360  if test -f "$ltmain_in"; then
13361    test -f Makefile && make "$ltmain"
13362  fi
13363fi
13364
13365
13366ac_ext=c
13367ac_cpp='$CPP $CPPFLAGS'
13368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13370ac_compiler_gnu=$ac_cv_c_compiler_gnu
13371
13372CC=$lt_save_CC
13373LDCXX=$LD
13374LD=$lt_save_LD
13375GCC=$lt_save_GCC
13376with_gnu_ldcxx=$with_gnu_ld
13377with_gnu_ld=$lt_save_with_gnu_ld
13378lt_cv_path_LDCXX=$lt_cv_path_LD
13379lt_cv_path_LD=$lt_save_path_LD
13380lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13381lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13382
13383	else
13384	  tagname=""
13385	fi
13386	;;
13387
13388      F77)
13389	if test -n "$F77" && test "X$F77" != "Xno"; then
13390
13391ac_ext=f
13392ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13393ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13394ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13395
13396
13397archive_cmds_need_lc_F77=no
13398allow_undefined_flag_F77=
13399always_export_symbols_F77=no
13400archive_expsym_cmds_F77=
13401export_dynamic_flag_spec_F77=
13402hardcode_direct_F77=no
13403hardcode_libdir_flag_spec_F77=
13404hardcode_libdir_flag_spec_ld_F77=
13405hardcode_libdir_separator_F77=
13406hardcode_minus_L_F77=no
13407hardcode_automatic_F77=no
13408module_cmds_F77=
13409module_expsym_cmds_F77=
13410link_all_deplibs_F77=unknown
13411old_archive_cmds_F77=$old_archive_cmds
13412no_undefined_flag_F77=
13413whole_archive_flag_spec_F77=
13414enable_shared_with_static_runtimes_F77=no
13415
13416# Source file extension for f77 test sources.
13417ac_ext=f
13418
13419# Object file extension for compiled f77 test sources.
13420objext=o
13421objext_F77=$objext
13422
13423# Code to be used in simple compile tests
13424lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13425
13426# Code to be used in simple link tests
13427lt_simple_link_test_code="      program t\n      end\n"
13428
13429# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13430
13431# If no C compiler was specified, use CC.
13432LTCC=${LTCC-"$CC"}
13433
13434# Allow CC to be a program name with arguments.
13435compiler=$CC
13436
13437
13438# save warnings/boilerplate of simple test code
13439ac_outfile=conftest.$ac_objext
13440printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13441eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13442_lt_compiler_boilerplate=`cat conftest.err`
13443$rm conftest*
13444
13445ac_outfile=conftest.$ac_objext
13446printf "$lt_simple_link_test_code" >conftest.$ac_ext
13447eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13448_lt_linker_boilerplate=`cat conftest.err`
13449$rm conftest*
13450
13451
13452# Allow CC to be a program name with arguments.
13453lt_save_CC="$CC"
13454CC=${F77-"f77"}
13455compiler=$CC
13456compiler_F77=$CC
13457for cc_temp in $compiler""; do
13458  case $cc_temp in
13459    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13460    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13461    \-*) ;;
13462    *) break;;
13463  esac
13464done
13465cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13466
13467
13468echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13469echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13470echo "$as_me:$LINENO: result: $can_build_shared" >&5
13471echo "${ECHO_T}$can_build_shared" >&6
13472
13473echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13474echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13475test "$can_build_shared" = "no" && enable_shared=no
13476
13477# On AIX, shared libraries and static libraries use the same namespace, and
13478# are all built from PIC.
13479case $host_os in
13480aix3*)
13481  test "$enable_shared" = yes && enable_static=no
13482  if test -n "$RANLIB"; then
13483    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13484    postinstall_cmds='$RANLIB $lib'
13485  fi
13486  ;;
13487aix4* | aix5*)
13488  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13489    test "$enable_shared" = yes && enable_static=no
13490  fi
13491  ;;
13492esac
13493echo "$as_me:$LINENO: result: $enable_shared" >&5
13494echo "${ECHO_T}$enable_shared" >&6
13495
13496echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13497echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13498# Make sure either enable_shared or enable_static is yes.
13499test "$enable_shared" = yes || enable_static=yes
13500echo "$as_me:$LINENO: result: $enable_static" >&5
13501echo "${ECHO_T}$enable_static" >&6
13502
13503test "$ld_shlibs_F77" = no && can_build_shared=no
13504
13505GCC_F77="$G77"
13506LD_F77="$LD"
13507
13508lt_prog_compiler_wl_F77=
13509lt_prog_compiler_pic_F77=
13510lt_prog_compiler_static_F77=
13511
13512echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13513echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13514
13515  if test "$GCC" = yes; then
13516    lt_prog_compiler_wl_F77='-Wl,'
13517    lt_prog_compiler_static_F77='-static'
13518
13519    case $host_os in
13520      aix*)
13521      # All AIX code is PIC.
13522      if test "$host_cpu" = ia64; then
13523	# AIX 5 now supports IA64 processor
13524	lt_prog_compiler_static_F77='-Bstatic'
13525      fi
13526      ;;
13527
13528    amigaos*)
13529      # FIXME: we need at least 68020 code to build shared libraries, but
13530      # adding the `-m68020' flag to GCC prevents building anything better,
13531      # like `-m68040'.
13532      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13533      ;;
13534
13535    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
13536    | osf5*)
13537      # PIC is the default for these OSes.
13538      ;;
13539
13540    mingw* | pw32* | os2*)
13541      # This hack is so that the source file can tell whether it is being
13542      # built for inclusion in a dll (and should export symbols for example).
13543      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13544      ;;
13545
13546    darwin* | rhapsody*)
13547      # PIC is the default on this platform
13548      # Common symbols not allowed in MH_DYLIB files
13549      lt_prog_compiler_pic_F77='-fno-common'
13550      ;;
13551
13552    msdosdjgpp*)
13553      # Just because we use GCC doesn't mean we suddenly get shared libraries
13554      # on systems that don't support them.
13555      lt_prog_compiler_can_build_shared_F77=no
13556      enable_shared=no
13557      ;;
13558
13559    sysv4*MP*)
13560      if test -d /usr/nec; then
13561	lt_prog_compiler_pic_F77=-Kconform_pic
13562      fi
13563      ;;
13564
13565    hpux*)
13566      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13567      # not for PA HP-UX.
13568      case $host_cpu in
13569      hppa*64*|ia64*)
13570	# +Z the default
13571	;;
13572      *)
13573	lt_prog_compiler_pic_F77='-fPIC'
13574	;;
13575      esac
13576      ;;
13577
13578    *)
13579      lt_prog_compiler_pic_F77='-fPIC'
13580      ;;
13581    esac
13582  else
13583    # PORTME Check for flag to pass linker flags through the system compiler.
13584    case $host_os in
13585    aix*)
13586      lt_prog_compiler_wl_F77='-Wl,'
13587      if test "$host_cpu" = ia64; then
13588	# AIX 5 now supports IA64 processor
13589	lt_prog_compiler_static_F77='-Bstatic'
13590      else
13591	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13592      fi
13593      ;;
13594      darwin*)
13595        # PIC is the default on this platform
13596        # Common symbols not allowed in MH_DYLIB files
13597       case $cc_basename in
13598         xlc*)
13599         lt_prog_compiler_pic_F77='-qnocommon'
13600         lt_prog_compiler_wl_F77='-Wl,'
13601         ;;
13602       esac
13603       ;;
13604
13605    mingw* | pw32* | os2*)
13606      # This hack is so that the source file can tell whether it is being
13607      # built for inclusion in a dll (and should export symbols for example).
13608      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13609      ;;
13610
13611    hpux9* | hpux10* | hpux11*)
13612      lt_prog_compiler_wl_F77='-Wl,'
13613      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13614      # not for PA HP-UX.
13615      case $host_cpu in
13616      hppa*64*|ia64*)
13617	# +Z the default
13618	;;
13619      *)
13620	lt_prog_compiler_pic_F77='+Z'
13621	;;
13622      esac
13623      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13624      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13625      ;;
13626
13627    irix5* | irix6* | nonstopux*)
13628      lt_prog_compiler_wl_F77='-Wl,'
13629      # PIC (with -KPIC) is the default.
13630      lt_prog_compiler_static_F77='-non_shared'
13631      ;;
13632
13633    newsos6)
13634      lt_prog_compiler_pic_F77='-KPIC'
13635      lt_prog_compiler_static_F77='-Bstatic'
13636      ;;
13637
13638    linux*)
13639      case $cc_basename in
13640      icc* | ecc*)
13641	lt_prog_compiler_wl_F77='-Wl,'
13642	lt_prog_compiler_pic_F77='-KPIC'
13643	lt_prog_compiler_static_F77='-static'
13644        ;;
13645      pgcc* | pgf77* | pgf90* | pgf95*)
13646        # Portland Group compilers (*not* the Pentium gcc compiler,
13647	# which looks to be a dead project)
13648	lt_prog_compiler_wl_F77='-Wl,'
13649	lt_prog_compiler_pic_F77='-fpic'
13650	lt_prog_compiler_static_F77='-Bstatic'
13651        ;;
13652      ccc*)
13653        lt_prog_compiler_wl_F77='-Wl,'
13654        # All Alpha code is PIC.
13655        lt_prog_compiler_static_F77='-non_shared'
13656        ;;
13657      esac
13658      ;;
13659
13660    osf3* | osf4* | osf5*)
13661      lt_prog_compiler_wl_F77='-Wl,'
13662      # All OSF/1 code is PIC.
13663      lt_prog_compiler_static_F77='-non_shared'
13664      ;;
13665
13666    sco3.2v5*)
13667      lt_prog_compiler_pic_F77='-Kpic'
13668      lt_prog_compiler_static_F77='-dn'
13669      ;;
13670
13671    solaris*)
13672      lt_prog_compiler_pic_F77='-KPIC'
13673      lt_prog_compiler_static_F77='-Bstatic'
13674      case $cc_basename in
13675      f77* | f90* | f95*)
13676	lt_prog_compiler_wl_F77='-Qoption ld ';;
13677      *)
13678	lt_prog_compiler_wl_F77='-Wl,';;
13679      esac
13680      ;;
13681
13682    sunos4*)
13683      lt_prog_compiler_wl_F77='-Qoption ld '
13684      lt_prog_compiler_pic_F77='-PIC'
13685      lt_prog_compiler_static_F77='-Bstatic'
13686      ;;
13687
13688    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13689      lt_prog_compiler_wl_F77='-Wl,'
13690      lt_prog_compiler_pic_F77='-KPIC'
13691      lt_prog_compiler_static_F77='-Bstatic'
13692      ;;
13693
13694    sysv4*MP*)
13695      if test -d /usr/nec ;then
13696	lt_prog_compiler_pic_F77='-Kconform_pic'
13697	lt_prog_compiler_static_F77='-Bstatic'
13698      fi
13699      ;;
13700
13701    unicos*)
13702      lt_prog_compiler_wl_F77='-Wl,'
13703      lt_prog_compiler_can_build_shared_F77=no
13704      ;;
13705
13706    uts4*)
13707      lt_prog_compiler_pic_F77='-pic'
13708      lt_prog_compiler_static_F77='-Bstatic'
13709      ;;
13710
13711    *)
13712      lt_prog_compiler_can_build_shared_F77=no
13713      ;;
13714    esac
13715  fi
13716
13717echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13718echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13719
13720#
13721# Check to make sure the PIC flag actually works.
13722#
13723if test -n "$lt_prog_compiler_pic_F77"; then
13724
13725echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13726echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13727if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13728  echo $ECHO_N "(cached) $ECHO_C" >&6
13729else
13730  lt_prog_compiler_pic_works_F77=no
13731  ac_outfile=conftest.$ac_objext
13732   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13733   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13734   # Insert the option either (1) after the last *FLAGS variable, or
13735   # (2) before a word containing "conftest.", or (3) at the end.
13736   # Note that $ac_compile itself does not contain backslashes and begins
13737   # with a dollar sign (not a hyphen), so the echo should work correctly.
13738   # The option is referenced via a variable to avoid confusing sed.
13739   lt_compile=`echo "$ac_compile" | $SED \
13740   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13741   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13742   -e 's:$: $lt_compiler_flag:'`
13743   (eval echo "\"\$as_me:13743: $lt_compile\"" >&5)
13744   (eval "$lt_compile" 2>conftest.err)
13745   ac_status=$?
13746   cat conftest.err >&5
13747   echo "$as_me:13747: \$? = $ac_status" >&5
13748   if (exit $ac_status) && test -s "$ac_outfile"; then
13749     # The compiler can only warn and ignore the option if not recognized
13750     # So say no if there are warnings other than the usual output.
13751     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13752     $SED '/^$/d' conftest.err >conftest.er2
13753     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13754       lt_prog_compiler_pic_works_F77=yes
13755     fi
13756   fi
13757   $rm conftest*
13758
13759fi
13760echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13761echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13762
13763if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13764    case $lt_prog_compiler_pic_F77 in
13765     "" | " "*) ;;
13766     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13767     esac
13768else
13769    lt_prog_compiler_pic_F77=
13770     lt_prog_compiler_can_build_shared_F77=no
13771fi
13772
13773fi
13774case $host_os in
13775  # For platforms which do not support PIC, -DPIC is meaningless:
13776  *djgpp*)
13777    lt_prog_compiler_pic_F77=
13778    ;;
13779  *)
13780    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13781    ;;
13782esac
13783
13784echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13785echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13786if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13787  echo $ECHO_N "(cached) $ECHO_C" >&6
13788else
13789  lt_cv_prog_compiler_c_o_F77=no
13790   $rm -r conftest 2>/dev/null
13791   mkdir conftest
13792   cd conftest
13793   mkdir out
13794   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13795
13796   lt_compiler_flag="-o out/conftest2.$ac_objext"
13797   # Insert the option either (1) after the last *FLAGS variable, or
13798   # (2) before a word containing "conftest.", or (3) at the end.
13799   # Note that $ac_compile itself does not contain backslashes and begins
13800   # with a dollar sign (not a hyphen), so the echo should work correctly.
13801   lt_compile=`echo "$ac_compile" | $SED \
13802   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13803   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13804   -e 's:$: $lt_compiler_flag:'`
13805   (eval echo "\"\$as_me:13805: $lt_compile\"" >&5)
13806   (eval "$lt_compile" 2>out/conftest.err)
13807   ac_status=$?
13808   cat out/conftest.err >&5
13809   echo "$as_me:13809: \$? = $ac_status" >&5
13810   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13811   then
13812     # The compiler can only warn and ignore the option if not recognized
13813     # So say no if there are warnings
13814     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13815     $SED '/^$/d' out/conftest.err >out/conftest.er2
13816     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13817       lt_cv_prog_compiler_c_o_F77=yes
13818     fi
13819   fi
13820   chmod u+w . 2>&5
13821   $rm conftest*
13822   # SGI C++ compiler will create directory out/ii_files/ for
13823   # template instantiation
13824   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13825   $rm out/* && rmdir out
13826   cd ..
13827   rmdir conftest
13828   $rm conftest*
13829
13830fi
13831echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13832echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13833
13834
13835hard_links="nottested"
13836if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13837  # do not overwrite the value of need_locks provided by the user
13838  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13839echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13840  hard_links=yes
13841  $rm conftest*
13842  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13843  touch conftest.a
13844  ln conftest.a conftest.b 2>&5 || hard_links=no
13845  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13846  echo "$as_me:$LINENO: result: $hard_links" >&5
13847echo "${ECHO_T}$hard_links" >&6
13848  if test "$hard_links" = no; then
13849    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13850echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13851    need_locks=warn
13852  fi
13853else
13854  need_locks=no
13855fi
13856
13857echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13858echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13859
13860  runpath_var=
13861  allow_undefined_flag_F77=
13862  enable_shared_with_static_runtimes_F77=no
13863  archive_cmds_F77=
13864  archive_expsym_cmds_F77=
13865  old_archive_From_new_cmds_F77=
13866  old_archive_from_expsyms_cmds_F77=
13867  export_dynamic_flag_spec_F77=
13868  whole_archive_flag_spec_F77=
13869  thread_safe_flag_spec_F77=
13870  hardcode_libdir_flag_spec_F77=
13871  hardcode_libdir_flag_spec_ld_F77=
13872  hardcode_libdir_separator_F77=
13873  hardcode_direct_F77=no
13874  hardcode_minus_L_F77=no
13875  hardcode_shlibpath_var_F77=unsupported
13876  link_all_deplibs_F77=unknown
13877  hardcode_automatic_F77=no
13878  module_cmds_F77=
13879  module_expsym_cmds_F77=
13880  always_export_symbols_F77=no
13881  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13882  # include_expsyms should be a list of space-separated symbols to be *always*
13883  # included in the symbol list
13884  include_expsyms_F77=
13885  # exclude_expsyms can be an extended regexp of symbols to exclude
13886  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13887  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13888  # as well as any symbol that contains `d'.
13889  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13890  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13891  # platforms (ab)use it in PIC code, but their linkers get confused if
13892  # the symbol is explicitly referenced.  Since portable code cannot
13893  # rely on this symbol name, it's probably fine to never include it in
13894  # preloaded symbol tables.
13895  extract_expsyms_cmds=
13896  # Just being paranoid about ensuring that cc_basename is set.
13897  for cc_temp in $compiler""; do
13898  case $cc_temp in
13899    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13900    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13901    \-*) ;;
13902    *) break;;
13903  esac
13904done
13905cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13906
13907  case $host_os in
13908  cygwin* | mingw* | pw32*)
13909    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13910    # When not using gcc, we currently assume that we are using
13911    # Microsoft Visual C++.
13912    if test "$GCC" != yes; then
13913      with_gnu_ld=no
13914    fi
13915    ;;
13916  openbsd*)
13917    with_gnu_ld=no
13918    ;;
13919  esac
13920
13921  ld_shlibs_F77=yes
13922  if test "$with_gnu_ld" = yes; then
13923    # If archive_cmds runs LD, not CC, wlarc should be empty
13924    wlarc='${wl}'
13925
13926    # Set some defaults for GNU ld with shared library support. These
13927    # are reset later if shared libraries are not supported. Putting them
13928    # here allows them to be overridden if necessary.
13929    runpath_var=LD_RUN_PATH
13930    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13931    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13932    # ancient GNU ld didn't support --whole-archive et. al.
13933    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13934	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13935      else
13936  	whole_archive_flag_spec_F77=
13937    fi
13938    supports_anon_versioning=no
13939    case `$LD -v 2>/dev/null` in
13940      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13941      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13942      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13943      *\ 2.11.*) ;; # other 2.11 versions
13944      *) supports_anon_versioning=yes ;;
13945    esac
13946
13947    # See if GNU ld supports shared libraries.
13948    case $host_os in
13949    aix3* | aix4* | aix5*)
13950      # On AIX/PPC, the GNU linker is very broken
13951      if test "$host_cpu" != ia64; then
13952	ld_shlibs_F77=no
13953	cat <<EOF 1>&2
13954
13955*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13956*** to be unable to reliably create shared libraries on AIX.
13957*** Therefore, libtool is disabling shared libraries support.  If you
13958*** really care for shared libraries, you may want to modify your PATH
13959*** so that a non-GNU linker is found, and then restart.
13960
13961EOF
13962      fi
13963      ;;
13964
13965    amigaos*)
13966      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)'
13967      hardcode_libdir_flag_spec_F77='-L$libdir'
13968      hardcode_minus_L_F77=yes
13969
13970      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13971      # that the semantics of dynamic libraries on AmigaOS, at least up
13972      # to version 4, is to share data among multiple programs linked
13973      # with the same dynamic library.  Since this doesn't match the
13974      # behavior of shared libraries on other platforms, we can't use
13975      # them.
13976      ld_shlibs_F77=no
13977      ;;
13978
13979    beos*)
13980      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13981	allow_undefined_flag_F77=unsupported
13982	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13983	# support --undefined.  This deserves some investigation.  FIXME
13984	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13985      else
13986	ld_shlibs_F77=no
13987      fi
13988      ;;
13989
13990    cygwin* | mingw* | pw32*)
13991      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13992      # as there is no search path for DLLs.
13993      hardcode_libdir_flag_spec_F77='-L$libdir'
13994      allow_undefined_flag_F77=unsupported
13995      always_export_symbols_F77=no
13996      enable_shared_with_static_runtimes_F77=yes
13997      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13998
13999      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14000        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14001	# If the export-symbols file already is a .def file (1st line
14002	# is EXPORTS), use it as is; otherwise, prepend...
14003	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14004	  cp $export_symbols $output_objdir/$soname.def;
14005	else
14006	  echo EXPORTS > $output_objdir/$soname.def;
14007	  cat $export_symbols >> $output_objdir/$soname.def;
14008	fi~
14009	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14010      else
14011	ld_shlibs_F77=no
14012      fi
14013      ;;
14014
14015    haiku*)
14016      allow_undefined_flag_F77=unsupported
14017      archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14018      ;;
14019
14020    linux*)
14021      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14022	tmp_addflag=
14023	case $cc_basename,$host_cpu in
14024	pgcc*)				# Portland Group C compiler
14025	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14026	  tmp_addflag=' $pic_flag'
14027	  ;;
14028	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14029	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14030	  tmp_addflag=' $pic_flag -Mnomain' ;;
14031	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14032	  tmp_addflag=' -i_dynamic' ;;
14033	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14034	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14035	ifc* | ifort*)			# Intel Fortran compiler
14036	  tmp_addflag=' -nofor_main' ;;
14037	esac
14038	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039
14040	if test $supports_anon_versioning = yes; then
14041	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14042  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14043  $echo "local: *; };" >> $output_objdir/$libname.ver~
14044	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14045	fi
14046      else
14047	ld_shlibs_F77=no
14048      fi
14049      ;;
14050
14051    netbsd*)
14052      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14053	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14054	wlarc=
14055      else
14056	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14057	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14058      fi
14059      ;;
14060
14061    solaris* | sysv5*)
14062      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14063	ld_shlibs_F77=no
14064	cat <<EOF 1>&2
14065
14066*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14067*** create shared libraries on Solaris systems.  Therefore, libtool
14068*** is disabling shared libraries support.  We urge you to upgrade GNU
14069*** binutils to release 2.9.1 or newer.  Another option is to modify
14070*** your PATH or compiler configuration so that the native linker is
14071*** used, and then restart.
14072
14073EOF
14074      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14075	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14076	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14077      else
14078	ld_shlibs_F77=no
14079      fi
14080      ;;
14081
14082    sunos4*)
14083      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14084      wlarc=
14085      hardcode_direct_F77=yes
14086      hardcode_shlibpath_var_F77=no
14087      ;;
14088
14089    *)
14090      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14091	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14092	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14093      else
14094	ld_shlibs_F77=no
14095      fi
14096      ;;
14097    esac
14098
14099    if test "$ld_shlibs_F77" = no; then
14100      runpath_var=
14101      hardcode_libdir_flag_spec_F77=
14102      export_dynamic_flag_spec_F77=
14103      whole_archive_flag_spec_F77=
14104    fi
14105  else
14106    # PORTME fill in a description of your system's linker (not GNU ld)
14107    case $host_os in
14108    aix3*)
14109      allow_undefined_flag_F77=unsupported
14110      always_export_symbols_F77=yes
14111      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'
14112      # Note: this linker hardcodes the directories in LIBPATH if there
14113      # are no directories specified by -L.
14114      hardcode_minus_L_F77=yes
14115      if test "$GCC" = yes && test -z "$link_static_flag"; then
14116	# Neither direct hardcoding nor static linking is supported with a
14117	# broken collect2.
14118	hardcode_direct_F77=unsupported
14119      fi
14120      ;;
14121
14122    aix4* | aix5*)
14123      if test "$host_cpu" = ia64; then
14124	# On IA64, the linker does run time linking by default, so we don't
14125	# have to do anything special.
14126	aix_use_runtimelinking=no
14127	exp_sym_flag='-Bexport'
14128	no_entry_flag=""
14129      else
14130	# If we're using GNU nm, then we don't want the "-C" option.
14131	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14132	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14133	  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'
14134	else
14135	  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'
14136	fi
14137	aix_use_runtimelinking=no
14138
14139	# Test if we are trying to use run time linking or normal
14140	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14141	# need to do runtime linking.
14142	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14143	  for ld_flag in $LDFLAGS; do
14144  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14145  	    aix_use_runtimelinking=yes
14146  	    break
14147  	  fi
14148	  done
14149	esac
14150
14151	exp_sym_flag='-bexport'
14152	no_entry_flag='-bnoentry'
14153      fi
14154
14155      # When large executables or shared objects are built, AIX ld can
14156      # have problems creating the table of contents.  If linking a library
14157      # or program results in "error TOC overflow" add -mminimal-toc to
14158      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14159      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14160
14161      archive_cmds_F77=''
14162      hardcode_direct_F77=yes
14163      hardcode_libdir_separator_F77=':'
14164      link_all_deplibs_F77=yes
14165
14166      if test "$GCC" = yes; then
14167	case $host_os in aix4.[012]|aix4.[012].*)
14168	# We only want to do this on AIX 4.2 and lower, the check
14169	# below for broken collect2 doesn't work under 4.3+
14170	  collect2name=`${CC} -print-prog-name=collect2`
14171	  if test -f "$collect2name" && \
14172  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14173	  then
14174  	  # We have reworked collect2
14175  	  hardcode_direct_F77=yes
14176	  else
14177  	  # We have old collect2
14178  	  hardcode_direct_F77=unsupported
14179  	  # It fails to find uninstalled libraries when the uninstalled
14180  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14181  	  # to unsupported forces relinking
14182  	  hardcode_minus_L_F77=yes
14183  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14184  	  hardcode_libdir_separator_F77=
14185	  fi
14186	esac
14187	shared_flag='-shared'
14188	if test "$aix_use_runtimelinking" = yes; then
14189	  shared_flag="$shared_flag "'${wl}-G'
14190	fi
14191      else
14192	# not using gcc
14193	if test "$host_cpu" = ia64; then
14194  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14195  	# chokes on -Wl,-G. The following line is correct:
14196	  shared_flag='-G'
14197	else
14198  	if test "$aix_use_runtimelinking" = yes; then
14199	    shared_flag='${wl}-G'
14200	  else
14201	    shared_flag='${wl}-bM:SRE'
14202  	fi
14203	fi
14204      fi
14205
14206      # It seems that -bexpall does not export symbols beginning with
14207      # underscore (_), so it is better to generate a list of symbols to export.
14208      always_export_symbols_F77=yes
14209      if test "$aix_use_runtimelinking" = yes; then
14210	# Warning - without using the other runtime loading flags (-brtl),
14211	# -berok will link without error, but may produce a broken library.
14212	allow_undefined_flag_F77='-berok'
14213       # Determine the default libpath from the value encoded in an empty executable.
14214       cat >conftest.$ac_ext <<_ACEOF
14215      program main
14216
14217      end
14218_ACEOF
14219rm -f conftest.$ac_objext conftest$ac_exeext
14220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221  (eval $ac_link) 2>conftest.er1
14222  ac_status=$?
14223  grep -v '^ *+' conftest.er1 >conftest.err
14224  rm -f conftest.er1
14225  cat conftest.err >&5
14226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227  (exit $ac_status); } &&
14228	 { ac_try='test -z "$ac_f77_werror_flag"
14229			 || test ! -s conftest.err'
14230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231  (eval $ac_try) 2>&5
14232  ac_status=$?
14233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234  (exit $ac_status); }; } &&
14235	 { ac_try='test -s conftest$ac_exeext'
14236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237  (eval $ac_try) 2>&5
14238  ac_status=$?
14239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240  (exit $ac_status); }; }; then
14241
14242aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14243}'`
14244# Check for a 64-bit object if we didn't find anything.
14245if 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; }
14246}'`; fi
14247else
14248  echo "$as_me: failed program was:" >&5
14249sed 's/^/| /' conftest.$ac_ext >&5
14250
14251fi
14252rm -f conftest.err conftest.$ac_objext \
14253      conftest$ac_exeext conftest.$ac_ext
14254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14255
14256       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14257	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"
14258       else
14259	if test "$host_cpu" = ia64; then
14260	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14261	  allow_undefined_flag_F77="-z nodefs"
14262	  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"
14263	else
14264	 # Determine the default libpath from the value encoded in an empty executable.
14265	 cat >conftest.$ac_ext <<_ACEOF
14266      program main
14267
14268      end
14269_ACEOF
14270rm -f conftest.$ac_objext conftest$ac_exeext
14271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272  (eval $ac_link) 2>conftest.er1
14273  ac_status=$?
14274  grep -v '^ *+' conftest.er1 >conftest.err
14275  rm -f conftest.er1
14276  cat conftest.err >&5
14277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278  (exit $ac_status); } &&
14279	 { ac_try='test -z "$ac_f77_werror_flag"
14280			 || test ! -s conftest.err'
14281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282  (eval $ac_try) 2>&5
14283  ac_status=$?
14284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285  (exit $ac_status); }; } &&
14286	 { ac_try='test -s conftest$ac_exeext'
14287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288  (eval $ac_try) 2>&5
14289  ac_status=$?
14290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291  (exit $ac_status); }; }; then
14292
14293aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14294}'`
14295# Check for a 64-bit object if we didn't find anything.
14296if 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; }
14297}'`; fi
14298else
14299  echo "$as_me: failed program was:" >&5
14300sed 's/^/| /' conftest.$ac_ext >&5
14301
14302fi
14303rm -f conftest.err conftest.$ac_objext \
14304      conftest$ac_exeext conftest.$ac_ext
14305if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14306
14307	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14308	  # Warning - without using the other run time loading flags,
14309	  # -berok will link without error, but may produce a broken library.
14310	  no_undefined_flag_F77=' ${wl}-bernotok'
14311	  allow_undefined_flag_F77=' ${wl}-berok'
14312	  # -bexpall does not export symbols beginning with underscore (_)
14313	  always_export_symbols_F77=yes
14314	  # Exported symbols can be pulled into shared objects from archives
14315	  whole_archive_flag_spec_F77=' '
14316	  archive_cmds_need_lc_F77=yes
14317	  # This is similar to how AIX traditionally builds its shared libraries.
14318	  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'
14319	fi
14320      fi
14321      ;;
14322
14323    amigaos*)
14324      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)'
14325      hardcode_libdir_flag_spec_F77='-L$libdir'
14326      hardcode_minus_L_F77=yes
14327      # see comment about different semantics on the GNU ld section
14328      ld_shlibs_F77=no
14329      ;;
14330
14331    bsdi[45]*)
14332      export_dynamic_flag_spec_F77=-rdynamic
14333      ;;
14334
14335    cygwin* | mingw* | pw32*)
14336      # When not using gcc, we currently assume that we are using
14337      # Microsoft Visual C++.
14338      # hardcode_libdir_flag_spec is actually meaningless, as there is
14339      # no search path for DLLs.
14340      hardcode_libdir_flag_spec_F77=' '
14341      allow_undefined_flag_F77=unsupported
14342      # Tell ltmain to make .lib files, not .a files.
14343      libext=lib
14344      # Tell ltmain to make .dll files, not .so files.
14345      shrext_cmds=".dll"
14346      # FIXME: Setting linknames here is a bad hack.
14347      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14348      # The linker will automatically build a .lib file if we build a DLL.
14349      old_archive_From_new_cmds_F77='true'
14350      # FIXME: Should let the user specify the lib program.
14351      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14352      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14353      enable_shared_with_static_runtimes_F77=yes
14354      ;;
14355
14356    darwin* | rhapsody*)
14357      case $host_os in
14358        rhapsody* | darwin1.[012])
14359         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14360         ;;
14361       *) # Darwin 1.3 on
14362         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14363           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14364         else
14365           case ${MACOSX_DEPLOYMENT_TARGET} in
14366             10.[012])
14367               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14368               ;;
14369             10.*)
14370               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14371               ;;
14372           esac
14373         fi
14374         ;;
14375      esac
14376      archive_cmds_need_lc_F77=no
14377      hardcode_direct_F77=no
14378      hardcode_automatic_F77=yes
14379      hardcode_shlibpath_var_F77=unsupported
14380      whole_archive_flag_spec_F77=''
14381      link_all_deplibs_F77=yes
14382    if test "$GCC" = yes ; then
14383    	output_verbose_link_cmd='echo'
14384        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14385      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14386      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14387      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14388      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}'
14389    else
14390      case $cc_basename in
14391        xlc*)
14392         output_verbose_link_cmd='echo'
14393         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14394         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14395          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14396         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14397          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}'
14398          ;;
14399       *)
14400         ld_shlibs_F77=no
14401          ;;
14402      esac
14403    fi
14404      ;;
14405
14406    dgux*)
14407      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14408      hardcode_libdir_flag_spec_F77='-L$libdir'
14409      hardcode_shlibpath_var_F77=no
14410      ;;
14411
14412    freebsd1*)
14413      ld_shlibs_F77=no
14414      ;;
14415
14416    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14417    # support.  Future versions do this automatically, but an explicit c++rt0.o
14418    # does not break anything, and helps significantly (at the cost of a little
14419    # extra space).
14420    freebsd2.2*)
14421      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14422      hardcode_libdir_flag_spec_F77='-R$libdir'
14423      hardcode_direct_F77=yes
14424      hardcode_shlibpath_var_F77=no
14425      ;;
14426
14427    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14428    freebsd2*)
14429      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14430      hardcode_direct_F77=yes
14431      hardcode_minus_L_F77=yes
14432      hardcode_shlibpath_var_F77=no
14433      ;;
14434
14435    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14436    freebsd* | kfreebsd*-gnu | dragonfly*)
14437      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14438      hardcode_libdir_flag_spec_F77='-R$libdir'
14439      hardcode_direct_F77=yes
14440      hardcode_shlibpath_var_F77=no
14441      ;;
14442
14443    hpux9*)
14444      if test "$GCC" = yes; then
14445	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'
14446      else
14447	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'
14448      fi
14449      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14450      hardcode_libdir_separator_F77=:
14451      hardcode_direct_F77=yes
14452
14453      # hardcode_minus_L: Not really in the search PATH,
14454      # but as the default location of the library.
14455      hardcode_minus_L_F77=yes
14456      export_dynamic_flag_spec_F77='${wl}-E'
14457      ;;
14458
14459    hpux10* | hpux11*)
14460      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14461	case $host_cpu in
14462	hppa*64*|ia64*)
14463	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14464	  ;;
14465	*)
14466	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14467	  ;;
14468	esac
14469      else
14470	case $host_cpu in
14471	hppa*64*|ia64*)
14472	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14473	  ;;
14474	*)
14475	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14476	  ;;
14477	esac
14478      fi
14479      if test "$with_gnu_ld" = no; then
14480	case $host_cpu in
14481	hppa*64*)
14482	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14483	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14484	  hardcode_libdir_separator_F77=:
14485	  hardcode_direct_F77=no
14486	  hardcode_shlibpath_var_F77=no
14487	  ;;
14488	ia64*)
14489	  hardcode_libdir_flag_spec_F77='-L$libdir'
14490	  hardcode_direct_F77=no
14491	  hardcode_shlibpath_var_F77=no
14492
14493	  # hardcode_minus_L: Not really in the search PATH,
14494	  # but as the default location of the library.
14495	  hardcode_minus_L_F77=yes
14496	  ;;
14497	*)
14498	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14499	  hardcode_libdir_separator_F77=:
14500	  hardcode_direct_F77=yes
14501	  export_dynamic_flag_spec_F77='${wl}-E'
14502
14503	  # hardcode_minus_L: Not really in the search PATH,
14504	  # but as the default location of the library.
14505	  hardcode_minus_L_F77=yes
14506	  ;;
14507	esac
14508      fi
14509      ;;
14510
14511    irix5* | irix6* | nonstopux*)
14512      if test "$GCC" = yes; then
14513	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'
14514      else
14515	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'
14516	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14517      fi
14518      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14519      hardcode_libdir_separator_F77=:
14520      link_all_deplibs_F77=yes
14521      ;;
14522
14523    netbsd*)
14524      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14525	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14526      else
14527	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14528      fi
14529      hardcode_libdir_flag_spec_F77='-R$libdir'
14530      hardcode_direct_F77=yes
14531      hardcode_shlibpath_var_F77=no
14532      ;;
14533
14534    newsos6)
14535      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14536      hardcode_direct_F77=yes
14537      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14538      hardcode_libdir_separator_F77=:
14539      hardcode_shlibpath_var_F77=no
14540      ;;
14541
14542    openbsd*)
14543      hardcode_direct_F77=yes
14544      hardcode_shlibpath_var_F77=no
14545      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14546	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14547	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14548	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14549	export_dynamic_flag_spec_F77='${wl}-E'
14550      else
14551       case $host_os in
14552	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14553	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14554	   hardcode_libdir_flag_spec_F77='-R$libdir'
14555	   ;;
14556	 *)
14557	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14558	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14559	   ;;
14560       esac
14561      fi
14562      ;;
14563
14564    os2*)
14565      hardcode_libdir_flag_spec_F77='-L$libdir'
14566      hardcode_minus_L_F77=yes
14567      allow_undefined_flag_F77=unsupported
14568      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'
14569      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14570      ;;
14571
14572    osf3*)
14573      if test "$GCC" = yes; then
14574	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14575	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'
14576      else
14577	allow_undefined_flag_F77=' -expect_unresolved \*'
14578	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'
14579      fi
14580      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14581      hardcode_libdir_separator_F77=:
14582      ;;
14583
14584    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14585      if test "$GCC" = yes; then
14586	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14587	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'
14588	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14589      else
14590	allow_undefined_flag_F77=' -expect_unresolved \*'
14591	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'
14592	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~
14593	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14594
14595	# Both c and cxx compiler support -rpath directly
14596	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14597      fi
14598      hardcode_libdir_separator_F77=:
14599      ;;
14600
14601    sco3.2v5*)
14602      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14603      hardcode_shlibpath_var_F77=no
14604      export_dynamic_flag_spec_F77='${wl}-Bexport'
14605      runpath_var=LD_RUN_PATH
14606      hardcode_runpath_var=yes
14607      ;;
14608
14609    solaris*)
14610      no_undefined_flag_F77=' -z text'
14611      if test "$GCC" = yes; then
14612	wlarc='${wl}'
14613	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14614	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14615	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14616      else
14617	wlarc=''
14618	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14619	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14620  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14621      fi
14622      hardcode_libdir_flag_spec_F77='-R$libdir'
14623      hardcode_shlibpath_var_F77=no
14624      case $host_os in
14625      solaris2.[0-5] | solaris2.[0-5].*) ;;
14626      *)
14627 	# The compiler driver will combine linker options so we
14628 	# cannot just pass the convience library names through
14629 	# without $wl, iff we do not link with $LD.
14630 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14631 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14632 	case $wlarc in
14633 	'')
14634 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14635 	*)
14636 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14637 	esac ;;
14638      esac
14639      link_all_deplibs_F77=yes
14640      ;;
14641
14642    sunos4*)
14643      if test "x$host_vendor" = xsequent; then
14644	# Use $CC to link under sequent, because it throws in some extra .o
14645	# files that make .init and .fini sections work.
14646	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14647      else
14648	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14649      fi
14650      hardcode_libdir_flag_spec_F77='-L$libdir'
14651      hardcode_direct_F77=yes
14652      hardcode_minus_L_F77=yes
14653      hardcode_shlibpath_var_F77=no
14654      ;;
14655
14656    sysv4)
14657      case $host_vendor in
14658	sni)
14659	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14660	  hardcode_direct_F77=yes # is this really true???
14661	;;
14662	siemens)
14663	  ## LD is ld it makes a PLAMLIB
14664	  ## CC just makes a GrossModule.
14665	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14666	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14667	  hardcode_direct_F77=no
14668        ;;
14669	motorola)
14670	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14671	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14672	;;
14673      esac
14674      runpath_var='LD_RUN_PATH'
14675      hardcode_shlibpath_var_F77=no
14676      ;;
14677
14678    sysv4.3*)
14679      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14680      hardcode_shlibpath_var_F77=no
14681      export_dynamic_flag_spec_F77='-Bexport'
14682      ;;
14683
14684    sysv4*MP*)
14685      if test -d /usr/nec; then
14686	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14687	hardcode_shlibpath_var_F77=no
14688	runpath_var=LD_RUN_PATH
14689	hardcode_runpath_var=yes
14690	ld_shlibs_F77=yes
14691      fi
14692      ;;
14693
14694    sysv4.2uw2*)
14695      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14696      hardcode_direct_F77=yes
14697      hardcode_minus_L_F77=no
14698      hardcode_shlibpath_var_F77=no
14699      hardcode_runpath_var=yes
14700      runpath_var=LD_RUN_PATH
14701      ;;
14702
14703   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14704      no_undefined_flag_F77='${wl}-z ${wl}text'
14705      if test "$GCC" = yes; then
14706	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14707      else
14708	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14709      fi
14710      runpath_var='LD_RUN_PATH'
14711      hardcode_shlibpath_var_F77=no
14712      ;;
14713
14714    sysv5*)
14715      no_undefined_flag_F77=' -z text'
14716      # $CC -shared without GNU ld will not create a library from C++
14717      # object files and a static libstdc++, better avoid it by now
14718      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14719      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14720  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14721      hardcode_libdir_flag_spec_F77=
14722      hardcode_shlibpath_var_F77=no
14723      runpath_var='LD_RUN_PATH'
14724      ;;
14725
14726    uts4*)
14727      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728      hardcode_libdir_flag_spec_F77='-L$libdir'
14729      hardcode_shlibpath_var_F77=no
14730      ;;
14731
14732    *)
14733      ld_shlibs_F77=no
14734      ;;
14735    esac
14736  fi
14737
14738echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14739echo "${ECHO_T}$ld_shlibs_F77" >&6
14740test "$ld_shlibs_F77" = no && can_build_shared=no
14741
14742variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14743if test "$GCC" = yes; then
14744  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14745fi
14746
14747#
14748# Do we need to explicitly link libc?
14749#
14750case "x$archive_cmds_need_lc_F77" in
14751x|xyes)
14752  # Assume -lc should be added
14753  archive_cmds_need_lc_F77=yes
14754
14755  if test "$enable_shared" = yes && test "$GCC" = yes; then
14756    case $archive_cmds_F77 in
14757    *'~'*)
14758      # FIXME: we may have to deal with multi-command sequences.
14759      ;;
14760    '$CC '*)
14761      # Test whether the compiler implicitly links with -lc since on some
14762      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14763      # to ld, don't add -lc before -lgcc.
14764      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14765echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14766      $rm conftest*
14767      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14768
14769      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14770  (eval $ac_compile) 2>&5
14771  ac_status=$?
14772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773  (exit $ac_status); } 2>conftest.err; then
14774        soname=conftest
14775        lib=conftest
14776        libobjs=conftest.$ac_objext
14777        deplibs=
14778        wl=$lt_prog_compiler_wl_F77
14779        compiler_flags=-v
14780        linker_flags=-v
14781        verstring=
14782        output_objdir=.
14783        libname=conftest
14784        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14785        allow_undefined_flag_F77=
14786        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14787  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14788  ac_status=$?
14789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790  (exit $ac_status); }
14791        then
14792	  archive_cmds_need_lc_F77=no
14793        else
14794	  archive_cmds_need_lc_F77=yes
14795        fi
14796        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14797      else
14798        cat conftest.err 1>&5
14799      fi
14800      $rm conftest*
14801      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14802echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14803      ;;
14804    esac
14805  fi
14806  ;;
14807esac
14808
14809echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14810echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14811library_names_spec=
14812libname_spec='lib$name'
14813soname_spec=
14814shrext_cmds=".so"
14815postinstall_cmds=
14816postuninstall_cmds=
14817finish_cmds=
14818finish_eval=
14819shlibpath_var=
14820shlibpath_overrides_runpath=unknown
14821version_type=none
14822dynamic_linker="$host_os ld.so"
14823sys_lib_dlsearch_path_spec="/lib /usr/lib"
14824if test "$GCC" = yes; then
14825  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14826  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14827    # if the path contains ";" then we assume it to be the separator
14828    # otherwise default to the standard path separator (i.e. ":") - it is
14829    # assumed that no part of a normal pathname contains ";" but that should
14830    # okay in the real world where ";" in dirpaths is itself problematic.
14831    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14832  else
14833    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14834  fi
14835else
14836  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14837fi
14838need_lib_prefix=unknown
14839hardcode_into_libs=no
14840
14841# when you set need_version to no, make sure it does not cause -set_version
14842# flags to be left without arguments
14843need_version=unknown
14844
14845case $host_os in
14846aix3*)
14847  version_type=linux
14848  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14849  shlibpath_var=LIBPATH
14850
14851  # AIX 3 has no versioning support, so we append a major version to the name.
14852  soname_spec='${libname}${release}${shared_ext}$major'
14853  ;;
14854
14855aix4* | aix5*)
14856  version_type=linux
14857  need_lib_prefix=no
14858  need_version=no
14859  hardcode_into_libs=yes
14860  if test "$host_cpu" = ia64; then
14861    # AIX 5 supports IA64
14862    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14863    shlibpath_var=LD_LIBRARY_PATH
14864  else
14865    # With GCC up to 2.95.x, collect2 would create an import file
14866    # for dependence libraries.  The import file would start with
14867    # the line `#! .'.  This would cause the generated library to
14868    # depend on `.', always an invalid library.  This was fixed in
14869    # development snapshots of GCC prior to 3.0.
14870    case $host_os in
14871      aix4 | aix4.[01] | aix4.[01].*)
14872      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14873	   echo ' yes '
14874	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14875	:
14876      else
14877	can_build_shared=no
14878      fi
14879      ;;
14880    esac
14881    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14882    # soname into executable. Probably we can add versioning support to
14883    # collect2, so additional links can be useful in future.
14884    if test "$aix_use_runtimelinking" = yes; then
14885      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14886      # instead of lib<name>.a to let people know that these are not
14887      # typical AIX shared libraries.
14888      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889    else
14890      # We preserve .a as extension for shared libraries through AIX4.2
14891      # and later when we are not doing run time linking.
14892      library_names_spec='${libname}${release}.a $libname.a'
14893      soname_spec='${libname}${release}${shared_ext}$major'
14894    fi
14895    shlibpath_var=LIBPATH
14896  fi
14897  ;;
14898
14899amigaos*)
14900  library_names_spec='$libname.ixlibrary $libname.a'
14901  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14902  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'
14903  ;;
14904
14905beos*)
14906  library_names_spec='${libname}${shared_ext}'
14907  dynamic_linker="$host_os ld.so"
14908  shlibpath_var=LIBRARY_PATH
14909  ;;
14910
14911bsdi[45]*)
14912  version_type=linux
14913  need_version=no
14914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915  soname_spec='${libname}${release}${shared_ext}$major'
14916  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14917  shlibpath_var=LD_LIBRARY_PATH
14918  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14919  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14920  # the default ld.so.conf also contains /usr/contrib/lib and
14921  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14922  # libtool to hard-code these into programs
14923  ;;
14924
14925cygwin* | mingw* | pw32*)
14926  version_type=windows
14927  shrext_cmds=".dll"
14928  need_version=no
14929  need_lib_prefix=no
14930
14931  case $GCC,$host_os in
14932  yes,cygwin* | yes,mingw* | yes,pw32*)
14933    library_names_spec='$libname.dll.a'
14934    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14935    postinstall_cmds='base_file=`basename \${file}`~
14936      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14937      dldir=$destdir/`dirname \$dlpath`~
14938      test -d \$dldir || mkdir -p \$dldir~
14939      $install_prog $dir/$dlname \$dldir/$dlname~
14940      chmod a+x \$dldir/$dlname'
14941    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14942      dlpath=$dir/\$dldll~
14943       $rm \$dlpath'
14944    shlibpath_overrides_runpath=yes
14945
14946    case $host_os in
14947    cygwin*)
14948      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14949      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14950      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14951      ;;
14952    mingw*)
14953      # MinGW DLLs use traditional 'lib' prefix
14954      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14955      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14956      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14957        # It is most probably a Windows format PATH printed by
14958        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14959        # path with ; separators, and with drive letters. We can handle the
14960        # drive letters (cygwin fileutils understands them), so leave them,
14961        # especially as we might pass files found there to a mingw objdump,
14962        # which wouldn't understand a cygwinified path. Ahh.
14963        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14964      else
14965        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14966      fi
14967      ;;
14968    pw32*)
14969      # pw32 DLLs use 'pw' prefix rather than 'lib'
14970      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14971      ;;
14972    esac
14973    ;;
14974
14975  *)
14976    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14977    ;;
14978  esac
14979  dynamic_linker='Win32 ld.exe'
14980  # FIXME: first we should search . and the directory the executable is in
14981  shlibpath_var=PATH
14982  ;;
14983
14984darwin* | rhapsody*)
14985  dynamic_linker="$host_os dyld"
14986  version_type=darwin
14987  need_lib_prefix=no
14988  need_version=no
14989  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14990  soname_spec='${libname}${release}${major}$shared_ext'
14991  shlibpath_overrides_runpath=yes
14992  shlibpath_var=DYLD_LIBRARY_PATH
14993  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14994  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14995  if test "$GCC" = yes; then
14996    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"`
14997  else
14998    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14999  fi
15000  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15001  ;;
15002
15003dgux*)
15004  version_type=linux
15005  need_lib_prefix=no
15006  need_version=no
15007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15008  soname_spec='${libname}${release}${shared_ext}$major'
15009  shlibpath_var=LD_LIBRARY_PATH
15010  ;;
15011
15012freebsd1*)
15013  dynamic_linker=no
15014  ;;
15015
15016haiku*)
15017  library_names_spec='${libname}${shared_ext}'
15018  dynamic_linker="$host_os ld.so"
15019  shlibpath_var=LIBRARY_PATH
15020  ;;
15021
15022kfreebsd*-gnu)
15023  version_type=linux
15024  need_lib_prefix=no
15025  need_version=no
15026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15027  soname_spec='${libname}${release}${shared_ext}$major'
15028  shlibpath_var=LD_LIBRARY_PATH
15029  shlibpath_overrides_runpath=no
15030  hardcode_into_libs=yes
15031  dynamic_linker='GNU ld.so'
15032  ;;
15033
15034freebsd* | dragonfly*)
15035  # DragonFly does not have aout.  When/if they implement a new
15036  # versioning mechanism, adjust this.
15037  if test -x /usr/bin/objformat; then
15038    objformat=`/usr/bin/objformat`
15039  else
15040    case $host_os in
15041    freebsd[123]*) objformat=aout ;;
15042    *) objformat=elf ;;
15043    esac
15044  fi
15045  version_type=freebsd-$objformat
15046  case $version_type in
15047    freebsd-elf*)
15048      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15049      need_version=no
15050      need_lib_prefix=no
15051      ;;
15052    freebsd-*)
15053      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15054      need_version=yes
15055      ;;
15056  esac
15057  shlibpath_var=LD_LIBRARY_PATH
15058  case $host_os in
15059  freebsd2*)
15060    shlibpath_overrides_runpath=yes
15061    ;;
15062  freebsd3.[01]* | freebsdelf3.[01]*)
15063    shlibpath_overrides_runpath=yes
15064    hardcode_into_libs=yes
15065    ;;
15066  *) # from 3.2 on
15067    shlibpath_overrides_runpath=no
15068    hardcode_into_libs=yes
15069    ;;
15070  esac
15071  ;;
15072
15073gnu*)
15074  version_type=linux
15075  need_lib_prefix=no
15076  need_version=no
15077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15078  soname_spec='${libname}${release}${shared_ext}$major'
15079  shlibpath_var=LD_LIBRARY_PATH
15080  hardcode_into_libs=yes
15081  ;;
15082
15083hpux9* | hpux10* | hpux11*)
15084  # Give a soname corresponding to the major version so that dld.sl refuses to
15085  # link against other versions.
15086  version_type=sunos
15087  need_lib_prefix=no
15088  need_version=no
15089  case $host_cpu in
15090  ia64*)
15091    shrext_cmds='.so'
15092    hardcode_into_libs=yes
15093    dynamic_linker="$host_os dld.so"
15094    shlibpath_var=LD_LIBRARY_PATH
15095    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15096    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097    soname_spec='${libname}${release}${shared_ext}$major'
15098    if test "X$HPUX_IA64_MODE" = X32; then
15099      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15100    else
15101      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15102    fi
15103    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15104    ;;
15105   hppa*64*)
15106     shrext_cmds='.sl'
15107     hardcode_into_libs=yes
15108     dynamic_linker="$host_os dld.sl"
15109     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15110     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112     soname_spec='${libname}${release}${shared_ext}$major'
15113     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15114     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15115     ;;
15116   *)
15117    shrext_cmds='.sl'
15118    dynamic_linker="$host_os dld.sl"
15119    shlibpath_var=SHLIB_PATH
15120    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15121    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15122    soname_spec='${libname}${release}${shared_ext}$major'
15123    ;;
15124  esac
15125  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15126  postinstall_cmds='chmod 555 $lib'
15127  ;;
15128
15129irix5* | irix6* | nonstopux*)
15130  case $host_os in
15131    nonstopux*) version_type=nonstopux ;;
15132    *)
15133	if test "$lt_cv_prog_gnu_ld" = yes; then
15134		version_type=linux
15135	else
15136		version_type=irix
15137	fi ;;
15138  esac
15139  need_lib_prefix=no
15140  need_version=no
15141  soname_spec='${libname}${release}${shared_ext}$major'
15142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15143  case $host_os in
15144  irix5* | nonstopux*)
15145    libsuff= shlibsuff=
15146    ;;
15147  *)
15148    case $LD in # libtool.m4 will add one of these switches to LD
15149    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15150      libsuff= shlibsuff= libmagic=32-bit;;
15151    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15152      libsuff=32 shlibsuff=N32 libmagic=N32;;
15153    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15154      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15155    *) libsuff= shlibsuff= libmagic=never-match;;
15156    esac
15157    ;;
15158  esac
15159  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15160  shlibpath_overrides_runpath=no
15161  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15162  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15163  hardcode_into_libs=yes
15164  ;;
15165
15166# No shared lib support for Linux oldld, aout, or coff.
15167linux*oldld* | linux*aout* | linux*coff*)
15168  dynamic_linker=no
15169  ;;
15170
15171# This must be Linux ELF.
15172linux*)
15173  version_type=linux
15174  need_lib_prefix=no
15175  need_version=no
15176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177  soname_spec='${libname}${release}${shared_ext}$major'
15178  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15179  shlibpath_var=LD_LIBRARY_PATH
15180  shlibpath_overrides_runpath=no
15181  # This implies no fast_install, which is unacceptable.
15182  # Some rework will be needed to allow for fast_install
15183  # before this can be enabled.
15184  hardcode_into_libs=yes
15185
15186  # Append ld.so.conf contents to the search path
15187  if test -f /etc/ld.so.conf; then
15188    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15189    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15190  fi
15191
15192  # We used to test for /lib/ld.so.1 and disable shared libraries on
15193  # powerpc, because MkLinux only supported shared libraries with the
15194  # GNU dynamic linker.  Since this was broken with cross compilers,
15195  # most powerpc-linux boxes support dynamic linking these days and
15196  # people can always --disable-shared, the test was removed, and we
15197  # assume the GNU/Linux dynamic linker is in use.
15198  dynamic_linker='GNU/Linux ld.so'
15199  ;;
15200
15201knetbsd*-gnu)
15202  version_type=linux
15203  need_lib_prefix=no
15204  need_version=no
15205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15206  soname_spec='${libname}${release}${shared_ext}$major'
15207  shlibpath_var=LD_LIBRARY_PATH
15208  shlibpath_overrides_runpath=no
15209  hardcode_into_libs=yes
15210  dynamic_linker='GNU ld.so'
15211  ;;
15212
15213netbsd*)
15214  version_type=sunos
15215  need_lib_prefix=no
15216  need_version=no
15217  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15218    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15219    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15220    dynamic_linker='NetBSD (a.out) ld.so'
15221  else
15222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15223    soname_spec='${libname}${release}${shared_ext}$major'
15224    dynamic_linker='NetBSD ld.elf_so'
15225  fi
15226  shlibpath_var=LD_LIBRARY_PATH
15227  shlibpath_overrides_runpath=yes
15228  hardcode_into_libs=yes
15229  ;;
15230
15231newsos6)
15232  version_type=linux
15233  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234  shlibpath_var=LD_LIBRARY_PATH
15235  shlibpath_overrides_runpath=yes
15236  ;;
15237
15238nto-qnx*)
15239  version_type=linux
15240  need_lib_prefix=no
15241  need_version=no
15242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15243  soname_spec='${libname}${release}${shared_ext}$major'
15244  shlibpath_var=LD_LIBRARY_PATH
15245  shlibpath_overrides_runpath=yes
15246  ;;
15247
15248openbsd*)
15249  version_type=sunos
15250  need_lib_prefix=no
15251  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15252  case $host_os in
15253    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15254    *)                         need_version=no  ;;
15255  esac
15256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15257  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15258  shlibpath_var=LD_LIBRARY_PATH
15259  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15260    case $host_os in
15261      openbsd2.[89] | openbsd2.[89].*)
15262	shlibpath_overrides_runpath=no
15263	;;
15264      *)
15265	shlibpath_overrides_runpath=yes
15266	;;
15267      esac
15268  else
15269    shlibpath_overrides_runpath=yes
15270  fi
15271  ;;
15272
15273os2*)
15274  libname_spec='$name'
15275  shrext_cmds=".dll"
15276  need_lib_prefix=no
15277  library_names_spec='$libname${shared_ext} $libname.a'
15278  dynamic_linker='OS/2 ld.exe'
15279  shlibpath_var=LIBPATH
15280  ;;
15281
15282osf3* | osf4* | osf5*)
15283  version_type=osf
15284  need_lib_prefix=no
15285  need_version=no
15286  soname_spec='${libname}${release}${shared_ext}$major'
15287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288  shlibpath_var=LD_LIBRARY_PATH
15289  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15290  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15291  ;;
15292
15293sco3.2v5*)
15294  version_type=osf
15295  soname_spec='${libname}${release}${shared_ext}$major'
15296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15297  shlibpath_var=LD_LIBRARY_PATH
15298  ;;
15299
15300solaris*)
15301  version_type=linux
15302  need_lib_prefix=no
15303  need_version=no
15304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305  soname_spec='${libname}${release}${shared_ext}$major'
15306  shlibpath_var=LD_LIBRARY_PATH
15307  shlibpath_overrides_runpath=yes
15308  hardcode_into_libs=yes
15309  # ldd complains unless libraries are executable
15310  postinstall_cmds='chmod +x $lib'
15311  ;;
15312
15313sunos4*)
15314  version_type=sunos
15315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15316  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15317  shlibpath_var=LD_LIBRARY_PATH
15318  shlibpath_overrides_runpath=yes
15319  if test "$with_gnu_ld" = yes; then
15320    need_lib_prefix=no
15321  fi
15322  need_version=yes
15323  ;;
15324
15325sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15326  version_type=linux
15327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328  soname_spec='${libname}${release}${shared_ext}$major'
15329  shlibpath_var=LD_LIBRARY_PATH
15330  case $host_vendor in
15331    sni)
15332      shlibpath_overrides_runpath=no
15333      need_lib_prefix=no
15334      export_dynamic_flag_spec='${wl}-Blargedynsym'
15335      runpath_var=LD_RUN_PATH
15336      ;;
15337    siemens)
15338      need_lib_prefix=no
15339      ;;
15340    motorola)
15341      need_lib_prefix=no
15342      need_version=no
15343      shlibpath_overrides_runpath=no
15344      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15345      ;;
15346  esac
15347  ;;
15348
15349sysv4*MP*)
15350  if test -d /usr/nec ;then
15351    version_type=linux
15352    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15353    soname_spec='$libname${shared_ext}.$major'
15354    shlibpath_var=LD_LIBRARY_PATH
15355  fi
15356  ;;
15357
15358uts4*)
15359  version_type=linux
15360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361  soname_spec='${libname}${release}${shared_ext}$major'
15362  shlibpath_var=LD_LIBRARY_PATH
15363  ;;
15364
15365*)
15366  dynamic_linker=no
15367  ;;
15368esac
15369echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15370echo "${ECHO_T}$dynamic_linker" >&6
15371test "$dynamic_linker" = no && can_build_shared=no
15372
15373echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15374echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15375hardcode_action_F77=
15376if test -n "$hardcode_libdir_flag_spec_F77" || \
15377   test -n "$runpath_var_F77" || \
15378   test "X$hardcode_automatic_F77" = "Xyes" ; then
15379
15380  # We can hardcode non-existant directories.
15381  if test "$hardcode_direct_F77" != no &&
15382     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15383     # have to relink, otherwise we might link with an installed library
15384     # when we should be linking with a yet-to-be-installed one
15385     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15386     test "$hardcode_minus_L_F77" != no; then
15387    # Linking always hardcodes the temporary library directory.
15388    hardcode_action_F77=relink
15389  else
15390    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15391    hardcode_action_F77=immediate
15392  fi
15393else
15394  # We cannot hardcode anything, or else we can only hardcode existing
15395  # directories.
15396  hardcode_action_F77=unsupported
15397fi
15398echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15399echo "${ECHO_T}$hardcode_action_F77" >&6
15400
15401if test "$hardcode_action_F77" = relink; then
15402  # Fast installation is not supported
15403  enable_fast_install=no
15404elif test "$shlibpath_overrides_runpath" = yes ||
15405     test "$enable_shared" = no; then
15406  # Fast installation is not necessary
15407  enable_fast_install=needless
15408fi
15409
15410striplib=
15411old_striplib=
15412echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15413echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15414if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15415  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15416  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15417  echo "$as_me:$LINENO: result: yes" >&5
15418echo "${ECHO_T}yes" >&6
15419else
15420# FIXME - insert some real tests, host_os isn't really good enough
15421  case $host_os in
15422   darwin*)
15423       if test -n "$STRIP" ; then
15424         striplib="$STRIP -x"
15425         echo "$as_me:$LINENO: result: yes" >&5
15426echo "${ECHO_T}yes" >&6
15427       else
15428  echo "$as_me:$LINENO: result: no" >&5
15429echo "${ECHO_T}no" >&6
15430fi
15431       ;;
15432   *)
15433  echo "$as_me:$LINENO: result: no" >&5
15434echo "${ECHO_T}no" >&6
15435    ;;
15436  esac
15437fi
15438
15439
15440
15441# The else clause should only fire when bootstrapping the
15442# libtool distribution, otherwise you forgot to ship ltmain.sh
15443# with your package, and you will get complaints that there are
15444# no rules to generate ltmain.sh.
15445if test -f "$ltmain"; then
15446  # See if we are running on zsh, and set the options which allow our commands through
15447  # without removal of \ escapes.
15448  if test -n "${ZSH_VERSION+set}" ; then
15449    setopt NO_GLOB_SUBST
15450  fi
15451  # Now quote all the things that may contain metacharacters while being
15452  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15453  # variables and quote the copies for generation of the libtool script.
15454  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15455    SED SHELL STRIP \
15456    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15457    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15458    deplibs_check_method reload_flag reload_cmds need_locks \
15459    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15460    lt_cv_sys_global_symbol_to_c_name_address \
15461    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15462    old_postinstall_cmds old_postuninstall_cmds \
15463    compiler_F77 \
15464    CC_F77 \
15465    LD_F77 \
15466    lt_prog_compiler_wl_F77 \
15467    lt_prog_compiler_pic_F77 \
15468    lt_prog_compiler_static_F77 \
15469    lt_prog_compiler_no_builtin_flag_F77 \
15470    export_dynamic_flag_spec_F77 \
15471    thread_safe_flag_spec_F77 \
15472    whole_archive_flag_spec_F77 \
15473    enable_shared_with_static_runtimes_F77 \
15474    old_archive_cmds_F77 \
15475    old_archive_from_new_cmds_F77 \
15476    predep_objects_F77 \
15477    postdep_objects_F77 \
15478    predeps_F77 \
15479    postdeps_F77 \
15480    compiler_lib_search_path_F77 \
15481    archive_cmds_F77 \
15482    archive_expsym_cmds_F77 \
15483    postinstall_cmds_F77 \
15484    postuninstall_cmds_F77 \
15485    old_archive_from_expsyms_cmds_F77 \
15486    allow_undefined_flag_F77 \
15487    no_undefined_flag_F77 \
15488    export_symbols_cmds_F77 \
15489    hardcode_libdir_flag_spec_F77 \
15490    hardcode_libdir_flag_spec_ld_F77 \
15491    hardcode_libdir_separator_F77 \
15492    hardcode_automatic_F77 \
15493    module_cmds_F77 \
15494    module_expsym_cmds_F77 \
15495    lt_cv_prog_compiler_c_o_F77 \
15496    exclude_expsyms_F77 \
15497    include_expsyms_F77; do
15498
15499    case $var in
15500    old_archive_cmds_F77 | \
15501    old_archive_from_new_cmds_F77 | \
15502    archive_cmds_F77 | \
15503    archive_expsym_cmds_F77 | \
15504    module_cmds_F77 | \
15505    module_expsym_cmds_F77 | \
15506    old_archive_from_expsyms_cmds_F77 | \
15507    export_symbols_cmds_F77 | \
15508    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15509    postinstall_cmds | postuninstall_cmds | \
15510    old_postinstall_cmds | old_postuninstall_cmds | \
15511    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15512      # Double-quote double-evaled strings.
15513      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15514      ;;
15515    *)
15516      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15517      ;;
15518    esac
15519  done
15520
15521  case $lt_echo in
15522  *'\$0 --fallback-echo"')
15523    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15524    ;;
15525  esac
15526
15527cfgfile="$ofile"
15528
15529  cat <<__EOF__ >> "$cfgfile"
15530# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15531
15532# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15533
15534# Shell to use when invoking shell scripts.
15535SHELL=$lt_SHELL
15536
15537# Whether or not to build shared libraries.
15538build_libtool_libs=$enable_shared
15539
15540# Whether or not to build static libraries.
15541build_old_libs=$enable_static
15542
15543# Whether or not to add -lc for building shared libraries.
15544build_libtool_need_lc=$archive_cmds_need_lc_F77
15545
15546# Whether or not to disallow shared libs when runtime libs are static
15547allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15548
15549# Whether or not to optimize for fast installation.
15550fast_install=$enable_fast_install
15551
15552# The host system.
15553host_alias=$host_alias
15554host=$host
15555host_os=$host_os
15556
15557# The build system.
15558build_alias=$build_alias
15559build=$build
15560build_os=$build_os
15561
15562# An echo program that does not interpret backslashes.
15563echo=$lt_echo
15564
15565# The archiver.
15566AR=$lt_AR
15567AR_FLAGS=$lt_AR_FLAGS
15568
15569# A C compiler.
15570LTCC=$lt_LTCC
15571
15572# A language-specific compiler.
15573CC=$lt_compiler_F77
15574
15575# Is the compiler the GNU C compiler?
15576with_gcc=$GCC_F77
15577
15578# An ERE matcher.
15579EGREP=$lt_EGREP
15580
15581# The linker used to build libraries.
15582LD=$lt_LD_F77
15583
15584# Whether we need hard or soft links.
15585LN_S=$lt_LN_S
15586
15587# A BSD-compatible nm program.
15588NM=$lt_NM
15589
15590# A symbol stripping program
15591STRIP=$lt_STRIP
15592
15593# Used to examine libraries when file_magic_cmd begins "file"
15594MAGIC_CMD=$MAGIC_CMD
15595
15596# Used on cygwin: DLL creation program.
15597DLLTOOL="$DLLTOOL"
15598
15599# Used on cygwin: object dumper.
15600OBJDUMP="$OBJDUMP"
15601
15602# Used on cygwin: assembler.
15603AS="$AS"
15604
15605# The name of the directory that contains temporary libtool files.
15606objdir=$objdir
15607
15608# How to create reloadable object files.
15609reload_flag=$lt_reload_flag
15610reload_cmds=$lt_reload_cmds
15611
15612# How to pass a linker flag through the compiler.
15613wl=$lt_lt_prog_compiler_wl_F77
15614
15615# Object file suffix (normally "o").
15616objext="$ac_objext"
15617
15618# Old archive suffix (normally "a").
15619libext="$libext"
15620
15621# Shared library suffix (normally ".so").
15622shrext_cmds='$shrext_cmds'
15623
15624# Executable file suffix (normally "").
15625exeext="$exeext"
15626
15627# Additional compiler flags for building library objects.
15628pic_flag=$lt_lt_prog_compiler_pic_F77
15629pic_mode=$pic_mode
15630
15631# What is the maximum length of a command?
15632max_cmd_len=$lt_cv_sys_max_cmd_len
15633
15634# Does compiler simultaneously support -c and -o options?
15635compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15636
15637# Must we lock files when doing compilation?
15638need_locks=$lt_need_locks
15639
15640# Do we need the lib prefix for modules?
15641need_lib_prefix=$need_lib_prefix
15642
15643# Do we need a version for libraries?
15644need_version=$need_version
15645
15646# Whether dlopen is supported.
15647dlopen_support=$enable_dlopen
15648
15649# Whether dlopen of programs is supported.
15650dlopen_self=$enable_dlopen_self
15651
15652# Whether dlopen of statically linked programs is supported.
15653dlopen_self_static=$enable_dlopen_self_static
15654
15655# Compiler flag to prevent dynamic linking.
15656link_static_flag=$lt_lt_prog_compiler_static_F77
15657
15658# Compiler flag to turn off builtin functions.
15659no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15660
15661# Compiler flag to allow reflexive dlopens.
15662export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15663
15664# Compiler flag to generate shared objects directly from archives.
15665whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15666
15667# Compiler flag to generate thread-safe objects.
15668thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15669
15670# Library versioning type.
15671version_type=$version_type
15672
15673# Format of library name prefix.
15674libname_spec=$lt_libname_spec
15675
15676# List of archive names.  First name is the real one, the rest are links.
15677# The last name is the one that the linker finds with -lNAME.
15678library_names_spec=$lt_library_names_spec
15679
15680# The coded name of the library, if different from the real name.
15681soname_spec=$lt_soname_spec
15682
15683# Commands used to build and install an old-style archive.
15684RANLIB=$lt_RANLIB
15685old_archive_cmds=$lt_old_archive_cmds_F77
15686old_postinstall_cmds=$lt_old_postinstall_cmds
15687old_postuninstall_cmds=$lt_old_postuninstall_cmds
15688
15689# Create an old-style archive from a shared archive.
15690old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15691
15692# Create a temporary old-style archive to link instead of a shared archive.
15693old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15694
15695# Commands used to build and install a shared archive.
15696archive_cmds=$lt_archive_cmds_F77
15697archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15698postinstall_cmds=$lt_postinstall_cmds
15699postuninstall_cmds=$lt_postuninstall_cmds
15700
15701# Commands used to build a loadable module (assumed same as above if empty)
15702module_cmds=$lt_module_cmds_F77
15703module_expsym_cmds=$lt_module_expsym_cmds_F77
15704
15705# Commands to strip libraries.
15706old_striplib=$lt_old_striplib
15707striplib=$lt_striplib
15708
15709# Dependencies to place before the objects being linked to create a
15710# shared library.
15711predep_objects=$lt_predep_objects_F77
15712
15713# Dependencies to place after the objects being linked to create a
15714# shared library.
15715postdep_objects=$lt_postdep_objects_F77
15716
15717# Dependencies to place before the objects being linked to create a
15718# shared library.
15719predeps=$lt_predeps_F77
15720
15721# Dependencies to place after the objects being linked to create a
15722# shared library.
15723postdeps=$lt_postdeps_F77
15724
15725# The library search path used internally by the compiler when linking
15726# a shared library.
15727compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15728
15729# Method to check whether dependent libraries are shared objects.
15730deplibs_check_method=$lt_deplibs_check_method
15731
15732# Command to use when deplibs_check_method == file_magic.
15733file_magic_cmd=$lt_file_magic_cmd
15734
15735# Flag that allows shared libraries with undefined symbols to be built.
15736allow_undefined_flag=$lt_allow_undefined_flag_F77
15737
15738# Flag that forces no undefined symbols.
15739no_undefined_flag=$lt_no_undefined_flag_F77
15740
15741# Commands used to finish a libtool library installation in a directory.
15742finish_cmds=$lt_finish_cmds
15743
15744# Same as above, but a single script fragment to be evaled but not shown.
15745finish_eval=$lt_finish_eval
15746
15747# Take the output of nm and produce a listing of raw symbols and C names.
15748global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15749
15750# Transform the output of nm in a proper C declaration
15751global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15752
15753# Transform the output of nm in a C name address pair
15754global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15755
15756# This is the shared library runtime path variable.
15757runpath_var=$runpath_var
15758
15759# This is the shared library path variable.
15760shlibpath_var=$shlibpath_var
15761
15762# Is shlibpath searched before the hard-coded library search path?
15763shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15764
15765# How to hardcode a shared library path into an executable.
15766hardcode_action=$hardcode_action_F77
15767
15768# Whether we should hardcode library paths into libraries.
15769hardcode_into_libs=$hardcode_into_libs
15770
15771# Flag to hardcode \$libdir into a binary during linking.
15772# This must work even if \$libdir does not exist.
15773hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15774
15775# If ld is used when linking, flag to hardcode \$libdir into
15776# a binary during linking. This must work even if \$libdir does
15777# not exist.
15778hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15779
15780# Whether we need a single -rpath flag with a separated argument.
15781hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15782
15783# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15784# resulting binary.
15785hardcode_direct=$hardcode_direct_F77
15786
15787# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15788# resulting binary.
15789hardcode_minus_L=$hardcode_minus_L_F77
15790
15791# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15792# the resulting binary.
15793hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15794
15795# Set to yes if building a shared library automatically hardcodes DIR into the library
15796# and all subsequent libraries and executables linked against it.
15797hardcode_automatic=$hardcode_automatic_F77
15798
15799# Variables whose values should be saved in libtool wrapper scripts and
15800# restored at relink time.
15801variables_saved_for_relink="$variables_saved_for_relink"
15802
15803# Whether libtool must link a program against all its dependency libraries.
15804link_all_deplibs=$link_all_deplibs_F77
15805
15806# Compile-time system search path for libraries
15807sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15808
15809# Run-time system search path for libraries
15810sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15811
15812# Fix the shell variable \$srcfile for the compiler.
15813fix_srcfile_path="$fix_srcfile_path_F77"
15814
15815# Set to yes if exported symbols are required.
15816always_export_symbols=$always_export_symbols_F77
15817
15818# The commands to list exported symbols.
15819export_symbols_cmds=$lt_export_symbols_cmds_F77
15820
15821# The commands to extract the exported symbol list from a shared archive.
15822extract_expsyms_cmds=$lt_extract_expsyms_cmds
15823
15824# Symbols that should not be listed in the preloaded symbols.
15825exclude_expsyms=$lt_exclude_expsyms_F77
15826
15827# Symbols that must always be exported.
15828include_expsyms=$lt_include_expsyms_F77
15829
15830# ### END LIBTOOL TAG CONFIG: $tagname
15831
15832__EOF__
15833
15834
15835else
15836  # If there is no Makefile yet, we rely on a make rule to execute
15837  # `config.status --recheck' to rerun these tests and create the
15838  # libtool script then.
15839  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15840  if test -f "$ltmain_in"; then
15841    test -f Makefile && make "$ltmain"
15842  fi
15843fi
15844
15845
15846ac_ext=c
15847ac_cpp='$CPP $CPPFLAGS'
15848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15850ac_compiler_gnu=$ac_cv_c_compiler_gnu
15851
15852CC="$lt_save_CC"
15853
15854	else
15855	  tagname=""
15856	fi
15857	;;
15858
15859      GCJ)
15860	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15861
15862
15863
15864# Source file extension for Java test sources.
15865ac_ext=java
15866
15867# Object file extension for compiled Java test sources.
15868objext=o
15869objext_GCJ=$objext
15870
15871# Code to be used in simple compile tests
15872lt_simple_compile_test_code="class foo {}\n"
15873
15874# Code to be used in simple link tests
15875lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15876
15877# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15878
15879# If no C compiler was specified, use CC.
15880LTCC=${LTCC-"$CC"}
15881
15882# Allow CC to be a program name with arguments.
15883compiler=$CC
15884
15885
15886# save warnings/boilerplate of simple test code
15887ac_outfile=conftest.$ac_objext
15888printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15889eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15890_lt_compiler_boilerplate=`cat conftest.err`
15891$rm conftest*
15892
15893ac_outfile=conftest.$ac_objext
15894printf "$lt_simple_link_test_code" >conftest.$ac_ext
15895eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15896_lt_linker_boilerplate=`cat conftest.err`
15897$rm conftest*
15898
15899
15900# Allow CC to be a program name with arguments.
15901lt_save_CC="$CC"
15902CC=${GCJ-"gcj"}
15903compiler=$CC
15904compiler_GCJ=$CC
15905for cc_temp in $compiler""; do
15906  case $cc_temp in
15907    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15908    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15909    \-*) ;;
15910    *) break;;
15911  esac
15912done
15913cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15914
15915
15916# GCJ did not exist at the time GCC didn't implicitly link libc in.
15917archive_cmds_need_lc_GCJ=no
15918
15919old_archive_cmds_GCJ=$old_archive_cmds
15920
15921## CAVEAT EMPTOR:
15922## There is no encapsulation within the following macros, do not change
15923## the running order or otherwise move them around unless you know exactly
15924## what you are doing...
15925
15926lt_prog_compiler_no_builtin_flag_GCJ=
15927
15928if test "$GCC" = yes; then
15929  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15930
15931
15932echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15933echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15934if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15935  echo $ECHO_N "(cached) $ECHO_C" >&6
15936else
15937  lt_cv_prog_compiler_rtti_exceptions=no
15938  ac_outfile=conftest.$ac_objext
15939   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15940   lt_compiler_flag="-fno-rtti -fno-exceptions"
15941   # Insert the option either (1) after the last *FLAGS variable, or
15942   # (2) before a word containing "conftest.", or (3) at the end.
15943   # Note that $ac_compile itself does not contain backslashes and begins
15944   # with a dollar sign (not a hyphen), so the echo should work correctly.
15945   # The option is referenced via a variable to avoid confusing sed.
15946   lt_compile=`echo "$ac_compile" | $SED \
15947   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15948   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15949   -e 's:$: $lt_compiler_flag:'`
15950   (eval echo "\"\$as_me:15950: $lt_compile\"" >&5)
15951   (eval "$lt_compile" 2>conftest.err)
15952   ac_status=$?
15953   cat conftest.err >&5
15954   echo "$as_me:15954: \$? = $ac_status" >&5
15955   if (exit $ac_status) && test -s "$ac_outfile"; then
15956     # The compiler can only warn and ignore the option if not recognized
15957     # So say no if there are warnings other than the usual output.
15958     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15959     $SED '/^$/d' conftest.err >conftest.er2
15960     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15961       lt_cv_prog_compiler_rtti_exceptions=yes
15962     fi
15963   fi
15964   $rm conftest*
15965
15966fi
15967echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15968echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15969
15970if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15971    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15972else
15973    :
15974fi
15975
15976fi
15977
15978lt_prog_compiler_wl_GCJ=
15979lt_prog_compiler_pic_GCJ=
15980lt_prog_compiler_static_GCJ=
15981
15982echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15983echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15984
15985  if test "$GCC" = yes; then
15986    lt_prog_compiler_wl_GCJ='-Wl,'
15987    lt_prog_compiler_static_GCJ='-static'
15988
15989    case $host_os in
15990      aix*)
15991      # All AIX code is PIC.
15992      if test "$host_cpu" = ia64; then
15993	# AIX 5 now supports IA64 processor
15994	lt_prog_compiler_static_GCJ='-Bstatic'
15995      fi
15996      ;;
15997
15998    amigaos*)
15999      # FIXME: we need at least 68020 code to build shared libraries, but
16000      # adding the `-m68020' flag to GCC prevents building anything better,
16001      # like `-m68040'.
16002      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16003      ;;
16004
16005    beos* | cygwin* | haiku* | irix5* | irix6* | nonstopux* | osf3* | osf4* \
16006    | osf5*)
16007      # PIC is the default for these OSes.
16008      ;;
16009
16010    mingw* | pw32* | os2*)
16011      # This hack is so that the source file can tell whether it is being
16012      # built for inclusion in a dll (and should export symbols for example).
16013      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16014      ;;
16015
16016    darwin* | rhapsody*)
16017      # PIC is the default on this platform
16018      # Common symbols not allowed in MH_DYLIB files
16019      lt_prog_compiler_pic_GCJ='-fno-common'
16020      ;;
16021
16022    msdosdjgpp*)
16023      # Just because we use GCC doesn't mean we suddenly get shared libraries
16024      # on systems that don't support them.
16025      lt_prog_compiler_can_build_shared_GCJ=no
16026      enable_shared=no
16027      ;;
16028
16029    sysv4*MP*)
16030      if test -d /usr/nec; then
16031	lt_prog_compiler_pic_GCJ=-Kconform_pic
16032      fi
16033      ;;
16034
16035    hpux*)
16036      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16037      # not for PA HP-UX.
16038      case $host_cpu in
16039      hppa*64*|ia64*)
16040	# +Z the default
16041	;;
16042      *)
16043	lt_prog_compiler_pic_GCJ='-fPIC'
16044	;;
16045      esac
16046      ;;
16047
16048    *)
16049      lt_prog_compiler_pic_GCJ='-fPIC'
16050      ;;
16051    esac
16052  else
16053    # PORTME Check for flag to pass linker flags through the system compiler.
16054    case $host_os in
16055    aix*)
16056      lt_prog_compiler_wl_GCJ='-Wl,'
16057      if test "$host_cpu" = ia64; then
16058	# AIX 5 now supports IA64 processor
16059	lt_prog_compiler_static_GCJ='-Bstatic'
16060      else
16061	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16062      fi
16063      ;;
16064      darwin*)
16065        # PIC is the default on this platform
16066        # Common symbols not allowed in MH_DYLIB files
16067       case $cc_basename in
16068         xlc*)
16069         lt_prog_compiler_pic_GCJ='-qnocommon'
16070         lt_prog_compiler_wl_GCJ='-Wl,'
16071         ;;
16072       esac
16073       ;;
16074
16075    mingw* | pw32* | os2*)
16076      # This hack is so that the source file can tell whether it is being
16077      # built for inclusion in a dll (and should export symbols for example).
16078      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16079      ;;
16080
16081    hpux9* | hpux10* | hpux11*)
16082      lt_prog_compiler_wl_GCJ='-Wl,'
16083      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16084      # not for PA HP-UX.
16085      case $host_cpu in
16086      hppa*64*|ia64*)
16087	# +Z the default
16088	;;
16089      *)
16090	lt_prog_compiler_pic_GCJ='+Z'
16091	;;
16092      esac
16093      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16094      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16095      ;;
16096
16097    irix5* | irix6* | nonstopux*)
16098      lt_prog_compiler_wl_GCJ='-Wl,'
16099      # PIC (with -KPIC) is the default.
16100      lt_prog_compiler_static_GCJ='-non_shared'
16101      ;;
16102
16103    newsos6)
16104      lt_prog_compiler_pic_GCJ='-KPIC'
16105      lt_prog_compiler_static_GCJ='-Bstatic'
16106      ;;
16107
16108    linux*)
16109      case $cc_basename in
16110      icc* | ecc*)
16111	lt_prog_compiler_wl_GCJ='-Wl,'
16112	lt_prog_compiler_pic_GCJ='-KPIC'
16113	lt_prog_compiler_static_GCJ='-static'
16114        ;;
16115      pgcc* | pgf77* | pgf90* | pgf95*)
16116        # Portland Group compilers (*not* the Pentium gcc compiler,
16117	# which looks to be a dead project)
16118	lt_prog_compiler_wl_GCJ='-Wl,'
16119	lt_prog_compiler_pic_GCJ='-fpic'
16120	lt_prog_compiler_static_GCJ='-Bstatic'
16121        ;;
16122      ccc*)
16123        lt_prog_compiler_wl_GCJ='-Wl,'
16124        # All Alpha code is PIC.
16125        lt_prog_compiler_static_GCJ='-non_shared'
16126        ;;
16127      esac
16128      ;;
16129
16130    osf3* | osf4* | osf5*)
16131      lt_prog_compiler_wl_GCJ='-Wl,'
16132      # All OSF/1 code is PIC.
16133      lt_prog_compiler_static_GCJ='-non_shared'
16134      ;;
16135
16136    sco3.2v5*)
16137      lt_prog_compiler_pic_GCJ='-Kpic'
16138      lt_prog_compiler_static_GCJ='-dn'
16139      ;;
16140
16141    solaris*)
16142      lt_prog_compiler_pic_GCJ='-KPIC'
16143      lt_prog_compiler_static_GCJ='-Bstatic'
16144      case $cc_basename in
16145      f77* | f90* | f95*)
16146	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16147      *)
16148	lt_prog_compiler_wl_GCJ='-Wl,';;
16149      esac
16150      ;;
16151
16152    sunos4*)
16153      lt_prog_compiler_wl_GCJ='-Qoption ld '
16154      lt_prog_compiler_pic_GCJ='-PIC'
16155      lt_prog_compiler_static_GCJ='-Bstatic'
16156      ;;
16157
16158    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16159      lt_prog_compiler_wl_GCJ='-Wl,'
16160      lt_prog_compiler_pic_GCJ='-KPIC'
16161      lt_prog_compiler_static_GCJ='-Bstatic'
16162      ;;
16163
16164    sysv4*MP*)
16165      if test -d /usr/nec ;then
16166	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16167	lt_prog_compiler_static_GCJ='-Bstatic'
16168      fi
16169      ;;
16170
16171    unicos*)
16172      lt_prog_compiler_wl_GCJ='-Wl,'
16173      lt_prog_compiler_can_build_shared_GCJ=no
16174      ;;
16175
16176    uts4*)
16177      lt_prog_compiler_pic_GCJ='-pic'
16178      lt_prog_compiler_static_GCJ='-Bstatic'
16179      ;;
16180
16181    *)
16182      lt_prog_compiler_can_build_shared_GCJ=no
16183      ;;
16184    esac
16185  fi
16186
16187echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16188echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16189
16190#
16191# Check to make sure the PIC flag actually works.
16192#
16193if test -n "$lt_prog_compiler_pic_GCJ"; then
16194
16195echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16196echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16197if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16198  echo $ECHO_N "(cached) $ECHO_C" >&6
16199else
16200  lt_prog_compiler_pic_works_GCJ=no
16201  ac_outfile=conftest.$ac_objext
16202   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16203   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16204   # Insert the option either (1) after the last *FLAGS variable, or
16205   # (2) before a word containing "conftest.", or (3) at the end.
16206   # Note that $ac_compile itself does not contain backslashes and begins
16207   # with a dollar sign (not a hyphen), so the echo should work correctly.
16208   # The option is referenced via a variable to avoid confusing sed.
16209   lt_compile=`echo "$ac_compile" | $SED \
16210   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16211   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16212   -e 's:$: $lt_compiler_flag:'`
16213   (eval echo "\"\$as_me:16213: $lt_compile\"" >&5)
16214   (eval "$lt_compile" 2>conftest.err)
16215   ac_status=$?
16216   cat conftest.err >&5
16217   echo "$as_me:16217: \$? = $ac_status" >&5
16218   if (exit $ac_status) && test -s "$ac_outfile"; then
16219     # The compiler can only warn and ignore the option if not recognized
16220     # So say no if there are warnings other than the usual output.
16221     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16222     $SED '/^$/d' conftest.err >conftest.er2
16223     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16224       lt_prog_compiler_pic_works_GCJ=yes
16225     fi
16226   fi
16227   $rm conftest*
16228
16229fi
16230echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16231echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16232
16233if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16234    case $lt_prog_compiler_pic_GCJ in
16235     "" | " "*) ;;
16236     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16237     esac
16238else
16239    lt_prog_compiler_pic_GCJ=
16240     lt_prog_compiler_can_build_shared_GCJ=no
16241fi
16242
16243fi
16244case $host_os in
16245  # For platforms which do not support PIC, -DPIC is meaningless:
16246  *djgpp*)
16247    lt_prog_compiler_pic_GCJ=
16248    ;;
16249  *)
16250    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16251    ;;
16252esac
16253
16254echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16255echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16256if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16257  echo $ECHO_N "(cached) $ECHO_C" >&6
16258else
16259  lt_cv_prog_compiler_c_o_GCJ=no
16260   $rm -r conftest 2>/dev/null
16261   mkdir conftest
16262   cd conftest
16263   mkdir out
16264   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16265
16266   lt_compiler_flag="-o out/conftest2.$ac_objext"
16267   # Insert the option either (1) after the last *FLAGS variable, or
16268   # (2) before a word containing "conftest.", or (3) at the end.
16269   # Note that $ac_compile itself does not contain backslashes and begins
16270   # with a dollar sign (not a hyphen), so the echo should work correctly.
16271   lt_compile=`echo "$ac_compile" | $SED \
16272   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16273   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16274   -e 's:$: $lt_compiler_flag:'`
16275   (eval echo "\"\$as_me:16275: $lt_compile\"" >&5)
16276   (eval "$lt_compile" 2>out/conftest.err)
16277   ac_status=$?
16278   cat out/conftest.err >&5
16279   echo "$as_me:16279: \$? = $ac_status" >&5
16280   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16281   then
16282     # The compiler can only warn and ignore the option if not recognized
16283     # So say no if there are warnings
16284     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16285     $SED '/^$/d' out/conftest.err >out/conftest.er2
16286     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16287       lt_cv_prog_compiler_c_o_GCJ=yes
16288     fi
16289   fi
16290   chmod u+w . 2>&5
16291   $rm conftest*
16292   # SGI C++ compiler will create directory out/ii_files/ for
16293   # template instantiation
16294   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16295   $rm out/* && rmdir out
16296   cd ..
16297   rmdir conftest
16298   $rm conftest*
16299
16300fi
16301echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16302echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16303
16304
16305hard_links="nottested"
16306if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16307  # do not overwrite the value of need_locks provided by the user
16308  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16309echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16310  hard_links=yes
16311  $rm conftest*
16312  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16313  touch conftest.a
16314  ln conftest.a conftest.b 2>&5 || hard_links=no
16315  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16316  echo "$as_me:$LINENO: result: $hard_links" >&5
16317echo "${ECHO_T}$hard_links" >&6
16318  if test "$hard_links" = no; then
16319    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16320echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16321    need_locks=warn
16322  fi
16323else
16324  need_locks=no
16325fi
16326
16327echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16328echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16329
16330  runpath_var=
16331  allow_undefined_flag_GCJ=
16332  enable_shared_with_static_runtimes_GCJ=no
16333  archive_cmds_GCJ=
16334  archive_expsym_cmds_GCJ=
16335  old_archive_From_new_cmds_GCJ=
16336  old_archive_from_expsyms_cmds_GCJ=
16337  export_dynamic_flag_spec_GCJ=
16338  whole_archive_flag_spec_GCJ=
16339  thread_safe_flag_spec_GCJ=
16340  hardcode_libdir_flag_spec_GCJ=
16341  hardcode_libdir_flag_spec_ld_GCJ=
16342  hardcode_libdir_separator_GCJ=
16343  hardcode_direct_GCJ=no
16344  hardcode_minus_L_GCJ=no
16345  hardcode_shlibpath_var_GCJ=unsupported
16346  link_all_deplibs_GCJ=unknown
16347  hardcode_automatic_GCJ=no
16348  module_cmds_GCJ=
16349  module_expsym_cmds_GCJ=
16350  always_export_symbols_GCJ=no
16351  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16352  # include_expsyms should be a list of space-separated symbols to be *always*
16353  # included in the symbol list
16354  include_expsyms_GCJ=
16355  # exclude_expsyms can be an extended regexp of symbols to exclude
16356  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16357  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16358  # as well as any symbol that contains `d'.
16359  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16360  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16361  # platforms (ab)use it in PIC code, but their linkers get confused if
16362  # the symbol is explicitly referenced.  Since portable code cannot
16363  # rely on this symbol name, it's probably fine to never include it in
16364  # preloaded symbol tables.
16365  extract_expsyms_cmds=
16366  # Just being paranoid about ensuring that cc_basename is set.
16367  for cc_temp in $compiler""; do
16368  case $cc_temp in
16369    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16370    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16371    \-*) ;;
16372    *) break;;
16373  esac
16374done
16375cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16376
16377  case $host_os in
16378  cygwin* | mingw* | pw32*)
16379    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16380    # When not using gcc, we currently assume that we are using
16381    # Microsoft Visual C++.
16382    if test "$GCC" != yes; then
16383      with_gnu_ld=no
16384    fi
16385    ;;
16386  openbsd*)
16387    with_gnu_ld=no
16388    ;;
16389  esac
16390
16391  ld_shlibs_GCJ=yes
16392  if test "$with_gnu_ld" = yes; then
16393    # If archive_cmds runs LD, not CC, wlarc should be empty
16394    wlarc='${wl}'
16395
16396    # Set some defaults for GNU ld with shared library support. These
16397    # are reset later if shared libraries are not supported. Putting them
16398    # here allows them to be overridden if necessary.
16399    runpath_var=LD_RUN_PATH
16400    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16401    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16402    # ancient GNU ld didn't support --whole-archive et. al.
16403    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16404	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16405      else
16406  	whole_archive_flag_spec_GCJ=
16407    fi
16408    supports_anon_versioning=no
16409    case `$LD -v 2>/dev/null` in
16410      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16411      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16412      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16413      *\ 2.11.*) ;; # other 2.11 versions
16414      *) supports_anon_versioning=yes ;;
16415    esac
16416
16417    # See if GNU ld supports shared libraries.
16418    case $host_os in
16419    aix3* | aix4* | aix5*)
16420      # On AIX/PPC, the GNU linker is very broken
16421      if test "$host_cpu" != ia64; then
16422	ld_shlibs_GCJ=no
16423	cat <<EOF 1>&2
16424
16425*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16426*** to be unable to reliably create shared libraries on AIX.
16427*** Therefore, libtool is disabling shared libraries support.  If you
16428*** really care for shared libraries, you may want to modify your PATH
16429*** so that a non-GNU linker is found, and then restart.
16430
16431EOF
16432      fi
16433      ;;
16434
16435    amigaos*)
16436      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)'
16437      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16438      hardcode_minus_L_GCJ=yes
16439
16440      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16441      # that the semantics of dynamic libraries on AmigaOS, at least up
16442      # to version 4, is to share data among multiple programs linked
16443      # with the same dynamic library.  Since this doesn't match the
16444      # behavior of shared libraries on other platforms, we can't use
16445      # them.
16446      ld_shlibs_GCJ=no
16447      ;;
16448
16449    beos*)
16450      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16451	allow_undefined_flag_GCJ=unsupported
16452	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16453	# support --undefined.  This deserves some investigation.  FIXME
16454	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16455      else
16456	ld_shlibs_GCJ=no
16457      fi
16458      ;;
16459
16460    cygwin* | mingw* | pw32*)
16461      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16462      # as there is no search path for DLLs.
16463      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16464      allow_undefined_flag_GCJ=unsupported
16465      always_export_symbols_GCJ=no
16466      enable_shared_with_static_runtimes_GCJ=yes
16467      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16468
16469      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16470        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16471	# If the export-symbols file already is a .def file (1st line
16472	# is EXPORTS), use it as is; otherwise, prepend...
16473	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16474	  cp $export_symbols $output_objdir/$soname.def;
16475	else
16476	  echo EXPORTS > $output_objdir/$soname.def;
16477	  cat $export_symbols >> $output_objdir/$soname.def;
16478	fi~
16479	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16480      else
16481	ld_shlibs_GCJ=no
16482      fi
16483      ;;
16484
16485    haiku*)
16486      allow_undefined_flag_GCJ=unsupported
16487      archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16488      ;;
16489
16490    linux*)
16491      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16492	tmp_addflag=
16493	case $cc_basename,$host_cpu in
16494	pgcc*)				# Portland Group C compiler
16495	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16496	  tmp_addflag=' $pic_flag'
16497	  ;;
16498	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16499	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16500	  tmp_addflag=' $pic_flag -Mnomain' ;;
16501	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16502	  tmp_addflag=' -i_dynamic' ;;
16503	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16504	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16505	ifc* | ifort*)			# Intel Fortran compiler
16506	  tmp_addflag=' -nofor_main' ;;
16507	esac
16508	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16509
16510	if test $supports_anon_versioning = yes; then
16511	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16512  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16513  $echo "local: *; };" >> $output_objdir/$libname.ver~
16514	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16515	fi
16516      else
16517	ld_shlibs_GCJ=no
16518      fi
16519      ;;
16520
16521    netbsd*)
16522      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16523	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16524	wlarc=
16525      else
16526	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16527	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16528      fi
16529      ;;
16530
16531    solaris* | sysv5*)
16532      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16533	ld_shlibs_GCJ=no
16534	cat <<EOF 1>&2
16535
16536*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16537*** create shared libraries on Solaris systems.  Therefore, libtool
16538*** is disabling shared libraries support.  We urge you to upgrade GNU
16539*** binutils to release 2.9.1 or newer.  Another option is to modify
16540*** your PATH or compiler configuration so that the native linker is
16541*** used, and then restart.
16542
16543EOF
16544      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16545	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16546	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16547      else
16548	ld_shlibs_GCJ=no
16549      fi
16550      ;;
16551
16552    sunos4*)
16553      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16554      wlarc=
16555      hardcode_direct_GCJ=yes
16556      hardcode_shlibpath_var_GCJ=no
16557      ;;
16558
16559    *)
16560      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16561	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16562	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16563      else
16564	ld_shlibs_GCJ=no
16565      fi
16566      ;;
16567    esac
16568
16569    if test "$ld_shlibs_GCJ" = no; then
16570      runpath_var=
16571      hardcode_libdir_flag_spec_GCJ=
16572      export_dynamic_flag_spec_GCJ=
16573      whole_archive_flag_spec_GCJ=
16574    fi
16575  else
16576    # PORTME fill in a description of your system's linker (not GNU ld)
16577    case $host_os in
16578    aix3*)
16579      allow_undefined_flag_GCJ=unsupported
16580      always_export_symbols_GCJ=yes
16581      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'
16582      # Note: this linker hardcodes the directories in LIBPATH if there
16583      # are no directories specified by -L.
16584      hardcode_minus_L_GCJ=yes
16585      if test "$GCC" = yes && test -z "$link_static_flag"; then
16586	# Neither direct hardcoding nor static linking is supported with a
16587	# broken collect2.
16588	hardcode_direct_GCJ=unsupported
16589      fi
16590      ;;
16591
16592    aix4* | aix5*)
16593      if test "$host_cpu" = ia64; then
16594	# On IA64, the linker does run time linking by default, so we don't
16595	# have to do anything special.
16596	aix_use_runtimelinking=no
16597	exp_sym_flag='-Bexport'
16598	no_entry_flag=""
16599      else
16600	# If we're using GNU nm, then we don't want the "-C" option.
16601	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16602	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16603	  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'
16604	else
16605	  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'
16606	fi
16607	aix_use_runtimelinking=no
16608
16609	# Test if we are trying to use run time linking or normal
16610	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16611	# need to do runtime linking.
16612	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16613	  for ld_flag in $LDFLAGS; do
16614  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16615  	    aix_use_runtimelinking=yes
16616  	    break
16617  	  fi
16618	  done
16619	esac
16620
16621	exp_sym_flag='-bexport'
16622	no_entry_flag='-bnoentry'
16623      fi
16624
16625      # When large executables or shared objects are built, AIX ld can
16626      # have problems creating the table of contents.  If linking a library
16627      # or program results in "error TOC overflow" add -mminimal-toc to
16628      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16629      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16630
16631      archive_cmds_GCJ=''
16632      hardcode_direct_GCJ=yes
16633      hardcode_libdir_separator_GCJ=':'
16634      link_all_deplibs_GCJ=yes
16635
16636      if test "$GCC" = yes; then
16637	case $host_os in aix4.[012]|aix4.[012].*)
16638	# We only want to do this on AIX 4.2 and lower, the check
16639	# below for broken collect2 doesn't work under 4.3+
16640	  collect2name=`${CC} -print-prog-name=collect2`
16641	  if test -f "$collect2name" && \
16642  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16643	  then
16644  	  # We have reworked collect2
16645  	  hardcode_direct_GCJ=yes
16646	  else
16647  	  # We have old collect2
16648  	  hardcode_direct_GCJ=unsupported
16649  	  # It fails to find uninstalled libraries when the uninstalled
16650  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16651  	  # to unsupported forces relinking
16652  	  hardcode_minus_L_GCJ=yes
16653  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16654  	  hardcode_libdir_separator_GCJ=
16655	  fi
16656	esac
16657	shared_flag='-shared'
16658	if test "$aix_use_runtimelinking" = yes; then
16659	  shared_flag="$shared_flag "'${wl}-G'
16660	fi
16661      else
16662	# not using gcc
16663	if test "$host_cpu" = ia64; then
16664  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16665  	# chokes on -Wl,-G. The following line is correct:
16666	  shared_flag='-G'
16667	else
16668  	if test "$aix_use_runtimelinking" = yes; then
16669	    shared_flag='${wl}-G'
16670	  else
16671	    shared_flag='${wl}-bM:SRE'
16672  	fi
16673	fi
16674      fi
16675
16676      # It seems that -bexpall does not export symbols beginning with
16677      # underscore (_), so it is better to generate a list of symbols to export.
16678      always_export_symbols_GCJ=yes
16679      if test "$aix_use_runtimelinking" = yes; then
16680	# Warning - without using the other runtime loading flags (-brtl),
16681	# -berok will link without error, but may produce a broken library.
16682	allow_undefined_flag_GCJ='-berok'
16683       # Determine the default libpath from the value encoded in an empty executable.
16684       cat >conftest.$ac_ext <<_ACEOF
16685/* confdefs.h.  */
16686_ACEOF
16687cat confdefs.h >>conftest.$ac_ext
16688cat >>conftest.$ac_ext <<_ACEOF
16689/* end confdefs.h.  */
16690
16691int
16692main ()
16693{
16694
16695  ;
16696  return 0;
16697}
16698_ACEOF
16699rm -f conftest.$ac_objext conftest$ac_exeext
16700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16701  (eval $ac_link) 2>conftest.er1
16702  ac_status=$?
16703  grep -v '^ *+' conftest.er1 >conftest.err
16704  rm -f conftest.er1
16705  cat conftest.err >&5
16706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707  (exit $ac_status); } &&
16708	 { ac_try='test -z "$ac_c_werror_flag"
16709			 || test ! -s conftest.err'
16710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711  (eval $ac_try) 2>&5
16712  ac_status=$?
16713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714  (exit $ac_status); }; } &&
16715	 { ac_try='test -s conftest$ac_exeext'
16716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717  (eval $ac_try) 2>&5
16718  ac_status=$?
16719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720  (exit $ac_status); }; }; then
16721
16722aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16723}'`
16724# Check for a 64-bit object if we didn't find anything.
16725if 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; }
16726}'`; fi
16727else
16728  echo "$as_me: failed program was:" >&5
16729sed 's/^/| /' conftest.$ac_ext >&5
16730
16731fi
16732rm -f conftest.err conftest.$ac_objext \
16733      conftest$ac_exeext conftest.$ac_ext
16734if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16735
16736       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16737	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"
16738       else
16739	if test "$host_cpu" = ia64; then
16740	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16741	  allow_undefined_flag_GCJ="-z nodefs"
16742	  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"
16743	else
16744	 # Determine the default libpath from the value encoded in an empty executable.
16745	 cat >conftest.$ac_ext <<_ACEOF
16746/* confdefs.h.  */
16747_ACEOF
16748cat confdefs.h >>conftest.$ac_ext
16749cat >>conftest.$ac_ext <<_ACEOF
16750/* end confdefs.h.  */
16751
16752int
16753main ()
16754{
16755
16756  ;
16757  return 0;
16758}
16759_ACEOF
16760rm -f conftest.$ac_objext conftest$ac_exeext
16761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16762  (eval $ac_link) 2>conftest.er1
16763  ac_status=$?
16764  grep -v '^ *+' conftest.er1 >conftest.err
16765  rm -f conftest.er1
16766  cat conftest.err >&5
16767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768  (exit $ac_status); } &&
16769	 { ac_try='test -z "$ac_c_werror_flag"
16770			 || test ! -s conftest.err'
16771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772  (eval $ac_try) 2>&5
16773  ac_status=$?
16774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775  (exit $ac_status); }; } &&
16776	 { ac_try='test -s conftest$ac_exeext'
16777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778  (eval $ac_try) 2>&5
16779  ac_status=$?
16780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781  (exit $ac_status); }; }; then
16782
16783aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16784}'`
16785# Check for a 64-bit object if we didn't find anything.
16786if 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; }
16787}'`; fi
16788else
16789  echo "$as_me: failed program was:" >&5
16790sed 's/^/| /' conftest.$ac_ext >&5
16791
16792fi
16793rm -f conftest.err conftest.$ac_objext \
16794      conftest$ac_exeext conftest.$ac_ext
16795if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16796
16797	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16798	  # Warning - without using the other run time loading flags,
16799	  # -berok will link without error, but may produce a broken library.
16800	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16801	  allow_undefined_flag_GCJ=' ${wl}-berok'
16802	  # -bexpall does not export symbols beginning with underscore (_)
16803	  always_export_symbols_GCJ=yes
16804	  # Exported symbols can be pulled into shared objects from archives
16805	  whole_archive_flag_spec_GCJ=' '
16806	  archive_cmds_need_lc_GCJ=yes
16807	  # This is similar to how AIX traditionally builds its shared libraries.
16808	  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'
16809	fi
16810      fi
16811      ;;
16812
16813    amigaos*)
16814      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)'
16815      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16816      hardcode_minus_L_GCJ=yes
16817      # see comment about different semantics on the GNU ld section
16818      ld_shlibs_GCJ=no
16819      ;;
16820
16821    bsdi[45]*)
16822      export_dynamic_flag_spec_GCJ=-rdynamic
16823      ;;
16824
16825    cygwin* | mingw* | pw32*)
16826      # When not using gcc, we currently assume that we are using
16827      # Microsoft Visual C++.
16828      # hardcode_libdir_flag_spec is actually meaningless, as there is
16829      # no search path for DLLs.
16830      hardcode_libdir_flag_spec_GCJ=' '
16831      allow_undefined_flag_GCJ=unsupported
16832      # Tell ltmain to make .lib files, not .a files.
16833      libext=lib
16834      # Tell ltmain to make .dll files, not .so files.
16835      shrext_cmds=".dll"
16836      # FIXME: Setting linknames here is a bad hack.
16837      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16838      # The linker will automatically build a .lib file if we build a DLL.
16839      old_archive_From_new_cmds_GCJ='true'
16840      # FIXME: Should let the user specify the lib program.
16841      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16842      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16843      enable_shared_with_static_runtimes_GCJ=yes
16844      ;;
16845
16846    darwin* | rhapsody*)
16847      case $host_os in
16848        rhapsody* | darwin1.[012])
16849         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16850         ;;
16851       *) # Darwin 1.3 on
16852         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16853           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16854         else
16855           case ${MACOSX_DEPLOYMENT_TARGET} in
16856             10.[012])
16857               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16858               ;;
16859             10.*)
16860               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16861               ;;
16862           esac
16863         fi
16864         ;;
16865      esac
16866      archive_cmds_need_lc_GCJ=no
16867      hardcode_direct_GCJ=no
16868      hardcode_automatic_GCJ=yes
16869      hardcode_shlibpath_var_GCJ=unsupported
16870      whole_archive_flag_spec_GCJ=''
16871      link_all_deplibs_GCJ=yes
16872    if test "$GCC" = yes ; then
16873    	output_verbose_link_cmd='echo'
16874        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16875      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16876      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16877      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16878      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}'
16879    else
16880      case $cc_basename in
16881        xlc*)
16882         output_verbose_link_cmd='echo'
16883         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16884         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16885          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16886         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16887          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}'
16888          ;;
16889       *)
16890         ld_shlibs_GCJ=no
16891          ;;
16892      esac
16893    fi
16894      ;;
16895
16896    dgux*)
16897      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16898      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16899      hardcode_shlibpath_var_GCJ=no
16900      ;;
16901
16902    freebsd1*)
16903      ld_shlibs_GCJ=no
16904      ;;
16905
16906    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16907    # support.  Future versions do this automatically, but an explicit c++rt0.o
16908    # does not break anything, and helps significantly (at the cost of a little
16909    # extra space).
16910    freebsd2.2*)
16911      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16912      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16913      hardcode_direct_GCJ=yes
16914      hardcode_shlibpath_var_GCJ=no
16915      ;;
16916
16917    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16918    freebsd2*)
16919      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16920      hardcode_direct_GCJ=yes
16921      hardcode_minus_L_GCJ=yes
16922      hardcode_shlibpath_var_GCJ=no
16923      ;;
16924
16925    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16926    freebsd* | kfreebsd*-gnu | dragonfly*)
16927      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16928      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16929      hardcode_direct_GCJ=yes
16930      hardcode_shlibpath_var_GCJ=no
16931      ;;
16932
16933    hpux9*)
16934      if test "$GCC" = yes; then
16935	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'
16936      else
16937	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'
16938      fi
16939      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16940      hardcode_libdir_separator_GCJ=:
16941      hardcode_direct_GCJ=yes
16942
16943      # hardcode_minus_L: Not really in the search PATH,
16944      # but as the default location of the library.
16945      hardcode_minus_L_GCJ=yes
16946      export_dynamic_flag_spec_GCJ='${wl}-E'
16947      ;;
16948
16949    hpux10* | hpux11*)
16950      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16951	case $host_cpu in
16952	hppa*64*|ia64*)
16953	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16954	  ;;
16955	*)
16956	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16957	  ;;
16958	esac
16959      else
16960	case $host_cpu in
16961	hppa*64*|ia64*)
16962	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16963	  ;;
16964	*)
16965	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16966	  ;;
16967	esac
16968      fi
16969      if test "$with_gnu_ld" = no; then
16970	case $host_cpu in
16971	hppa*64*)
16972	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16973	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16974	  hardcode_libdir_separator_GCJ=:
16975	  hardcode_direct_GCJ=no
16976	  hardcode_shlibpath_var_GCJ=no
16977	  ;;
16978	ia64*)
16979	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16980	  hardcode_direct_GCJ=no
16981	  hardcode_shlibpath_var_GCJ=no
16982
16983	  # hardcode_minus_L: Not really in the search PATH,
16984	  # but as the default location of the library.
16985	  hardcode_minus_L_GCJ=yes
16986	  ;;
16987	*)
16988	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16989	  hardcode_libdir_separator_GCJ=:
16990	  hardcode_direct_GCJ=yes
16991	  export_dynamic_flag_spec_GCJ='${wl}-E'
16992
16993	  # hardcode_minus_L: Not really in the search PATH,
16994	  # but as the default location of the library.
16995	  hardcode_minus_L_GCJ=yes
16996	  ;;
16997	esac
16998      fi
16999      ;;
17000
17001    irix5* | irix6* | nonstopux*)
17002      if test "$GCC" = yes; then
17003	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'
17004      else
17005	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'
17006	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17007      fi
17008      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17009      hardcode_libdir_separator_GCJ=:
17010      link_all_deplibs_GCJ=yes
17011      ;;
17012
17013    netbsd*)
17014      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17015	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17016      else
17017	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17018      fi
17019      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17020      hardcode_direct_GCJ=yes
17021      hardcode_shlibpath_var_GCJ=no
17022      ;;
17023
17024    newsos6)
17025      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17026      hardcode_direct_GCJ=yes
17027      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17028      hardcode_libdir_separator_GCJ=:
17029      hardcode_shlibpath_var_GCJ=no
17030      ;;
17031
17032    openbsd*)
17033      hardcode_direct_GCJ=yes
17034      hardcode_shlibpath_var_GCJ=no
17035      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17036	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17037	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17038	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17039	export_dynamic_flag_spec_GCJ='${wl}-E'
17040      else
17041       case $host_os in
17042	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17043	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17044	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17045	   ;;
17046	 *)
17047	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17048	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17049	   ;;
17050       esac
17051      fi
17052      ;;
17053
17054    os2*)
17055      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17056      hardcode_minus_L_GCJ=yes
17057      allow_undefined_flag_GCJ=unsupported
17058      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'
17059      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17060      ;;
17061
17062    osf3*)
17063      if test "$GCC" = yes; then
17064	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17065	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'
17066      else
17067	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17068	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'
17069      fi
17070      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17071      hardcode_libdir_separator_GCJ=:
17072      ;;
17073
17074    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17075      if test "$GCC" = yes; then
17076	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17077	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'
17078	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17079      else
17080	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17081	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'
17082	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~
17083	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17084
17085	# Both c and cxx compiler support -rpath directly
17086	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17087      fi
17088      hardcode_libdir_separator_GCJ=:
17089      ;;
17090
17091    sco3.2v5*)
17092      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17093      hardcode_shlibpath_var_GCJ=no
17094      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17095      runpath_var=LD_RUN_PATH
17096      hardcode_runpath_var=yes
17097      ;;
17098
17099    solaris*)
17100      no_undefined_flag_GCJ=' -z text'
17101      if test "$GCC" = yes; then
17102	wlarc='${wl}'
17103	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17104	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17105	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17106      else
17107	wlarc=''
17108	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17110  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17111      fi
17112      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17113      hardcode_shlibpath_var_GCJ=no
17114      case $host_os in
17115      solaris2.[0-5] | solaris2.[0-5].*) ;;
17116      *)
17117 	# The compiler driver will combine linker options so we
17118 	# cannot just pass the convience library names through
17119 	# without $wl, iff we do not link with $LD.
17120 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17121 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17122 	case $wlarc in
17123 	'')
17124 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17125 	*)
17126 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17127 	esac ;;
17128      esac
17129      link_all_deplibs_GCJ=yes
17130      ;;
17131
17132    sunos4*)
17133      if test "x$host_vendor" = xsequent; then
17134	# Use $CC to link under sequent, because it throws in some extra .o
17135	# files that make .init and .fini sections work.
17136	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17137      else
17138	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17139      fi
17140      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17141      hardcode_direct_GCJ=yes
17142      hardcode_minus_L_GCJ=yes
17143      hardcode_shlibpath_var_GCJ=no
17144      ;;
17145
17146    sysv4)
17147      case $host_vendor in
17148	sni)
17149	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17150	  hardcode_direct_GCJ=yes # is this really true???
17151	;;
17152	siemens)
17153	  ## LD is ld it makes a PLAMLIB
17154	  ## CC just makes a GrossModule.
17155	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17156	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17157	  hardcode_direct_GCJ=no
17158        ;;
17159	motorola)
17160	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17161	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17162	;;
17163      esac
17164      runpath_var='LD_RUN_PATH'
17165      hardcode_shlibpath_var_GCJ=no
17166      ;;
17167
17168    sysv4.3*)
17169      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17170      hardcode_shlibpath_var_GCJ=no
17171      export_dynamic_flag_spec_GCJ='-Bexport'
17172      ;;
17173
17174    sysv4*MP*)
17175      if test -d /usr/nec; then
17176	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17177	hardcode_shlibpath_var_GCJ=no
17178	runpath_var=LD_RUN_PATH
17179	hardcode_runpath_var=yes
17180	ld_shlibs_GCJ=yes
17181      fi
17182      ;;
17183
17184    sysv4.2uw2*)
17185      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17186      hardcode_direct_GCJ=yes
17187      hardcode_minus_L_GCJ=no
17188      hardcode_shlibpath_var_GCJ=no
17189      hardcode_runpath_var=yes
17190      runpath_var=LD_RUN_PATH
17191      ;;
17192
17193   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17194      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17195      if test "$GCC" = yes; then
17196	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17197      else
17198	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17199      fi
17200      runpath_var='LD_RUN_PATH'
17201      hardcode_shlibpath_var_GCJ=no
17202      ;;
17203
17204    sysv5*)
17205      no_undefined_flag_GCJ=' -z text'
17206      # $CC -shared without GNU ld will not create a library from C++
17207      # object files and a static libstdc++, better avoid it by now
17208      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17209      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17210  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17211      hardcode_libdir_flag_spec_GCJ=
17212      hardcode_shlibpath_var_GCJ=no
17213      runpath_var='LD_RUN_PATH'
17214      ;;
17215
17216    uts4*)
17217      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17218      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17219      hardcode_shlibpath_var_GCJ=no
17220      ;;
17221
17222    *)
17223      ld_shlibs_GCJ=no
17224      ;;
17225    esac
17226  fi
17227
17228echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17229echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17230test "$ld_shlibs_GCJ" = no && can_build_shared=no
17231
17232variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17233if test "$GCC" = yes; then
17234  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17235fi
17236
17237#
17238# Do we need to explicitly link libc?
17239#
17240case "x$archive_cmds_need_lc_GCJ" in
17241x|xyes)
17242  # Assume -lc should be added
17243  archive_cmds_need_lc_GCJ=yes
17244
17245  if test "$enable_shared" = yes && test "$GCC" = yes; then
17246    case $archive_cmds_GCJ in
17247    *'~'*)
17248      # FIXME: we may have to deal with multi-command sequences.
17249      ;;
17250    '$CC '*)
17251      # Test whether the compiler implicitly links with -lc since on some
17252      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17253      # to ld, don't add -lc before -lgcc.
17254      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17255echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17256      $rm conftest*
17257      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17258
17259      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17260  (eval $ac_compile) 2>&5
17261  ac_status=$?
17262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263  (exit $ac_status); } 2>conftest.err; then
17264        soname=conftest
17265        lib=conftest
17266        libobjs=conftest.$ac_objext
17267        deplibs=
17268        wl=$lt_prog_compiler_wl_GCJ
17269        compiler_flags=-v
17270        linker_flags=-v
17271        verstring=
17272        output_objdir=.
17273        libname=conftest
17274        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17275        allow_undefined_flag_GCJ=
17276        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17277  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17278  ac_status=$?
17279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280  (exit $ac_status); }
17281        then
17282	  archive_cmds_need_lc_GCJ=no
17283        else
17284	  archive_cmds_need_lc_GCJ=yes
17285        fi
17286        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17287      else
17288        cat conftest.err 1>&5
17289      fi
17290      $rm conftest*
17291      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17292echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17293      ;;
17294    esac
17295  fi
17296  ;;
17297esac
17298
17299echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17300echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17301library_names_spec=
17302libname_spec='lib$name'
17303soname_spec=
17304shrext_cmds=".so"
17305postinstall_cmds=
17306postuninstall_cmds=
17307finish_cmds=
17308finish_eval=
17309shlibpath_var=
17310shlibpath_overrides_runpath=unknown
17311version_type=none
17312dynamic_linker="$host_os ld.so"
17313sys_lib_dlsearch_path_spec="/lib /usr/lib"
17314if test "$GCC" = yes; then
17315  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17316  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17317    # if the path contains ";" then we assume it to be the separator
17318    # otherwise default to the standard path separator (i.e. ":") - it is
17319    # assumed that no part of a normal pathname contains ";" but that should
17320    # okay in the real world where ";" in dirpaths is itself problematic.
17321    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17322  else
17323    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17324  fi
17325else
17326  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17327fi
17328need_lib_prefix=unknown
17329hardcode_into_libs=no
17330
17331# when you set need_version to no, make sure it does not cause -set_version
17332# flags to be left without arguments
17333need_version=unknown
17334
17335case $host_os in
17336aix3*)
17337  version_type=linux
17338  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17339  shlibpath_var=LIBPATH
17340
17341  # AIX 3 has no versioning support, so we append a major version to the name.
17342  soname_spec='${libname}${release}${shared_ext}$major'
17343  ;;
17344
17345aix4* | aix5*)
17346  version_type=linux
17347  need_lib_prefix=no
17348  need_version=no
17349  hardcode_into_libs=yes
17350  if test "$host_cpu" = ia64; then
17351    # AIX 5 supports IA64
17352    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17353    shlibpath_var=LD_LIBRARY_PATH
17354  else
17355    # With GCC up to 2.95.x, collect2 would create an import file
17356    # for dependence libraries.  The import file would start with
17357    # the line `#! .'.  This would cause the generated library to
17358    # depend on `.', always an invalid library.  This was fixed in
17359    # development snapshots of GCC prior to 3.0.
17360    case $host_os in
17361      aix4 | aix4.[01] | aix4.[01].*)
17362      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17363	   echo ' yes '
17364	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17365	:
17366      else
17367	can_build_shared=no
17368      fi
17369      ;;
17370    esac
17371    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17372    # soname into executable. Probably we can add versioning support to
17373    # collect2, so additional links can be useful in future.
17374    if test "$aix_use_runtimelinking" = yes; then
17375      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17376      # instead of lib<name>.a to let people know that these are not
17377      # typical AIX shared libraries.
17378      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379    else
17380      # We preserve .a as extension for shared libraries through AIX4.2
17381      # and later when we are not doing run time linking.
17382      library_names_spec='${libname}${release}.a $libname.a'
17383      soname_spec='${libname}${release}${shared_ext}$major'
17384    fi
17385    shlibpath_var=LIBPATH
17386  fi
17387  ;;
17388
17389amigaos*)
17390  library_names_spec='$libname.ixlibrary $libname.a'
17391  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17392  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'
17393  ;;
17394
17395beos*)
17396  library_names_spec='${libname}${shared_ext}'
17397  dynamic_linker="$host_os ld.so"
17398  shlibpath_var=LIBRARY_PATH
17399  ;;
17400
17401bsdi[45]*)
17402  version_type=linux
17403  need_version=no
17404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17405  soname_spec='${libname}${release}${shared_ext}$major'
17406  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17407  shlibpath_var=LD_LIBRARY_PATH
17408  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17409  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17410  # the default ld.so.conf also contains /usr/contrib/lib and
17411  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17412  # libtool to hard-code these into programs
17413  ;;
17414
17415cygwin* | mingw* | pw32*)
17416  version_type=windows
17417  shrext_cmds=".dll"
17418  need_version=no
17419  need_lib_prefix=no
17420
17421  case $GCC,$host_os in
17422  yes,cygwin* | yes,mingw* | yes,pw32*)
17423    library_names_spec='$libname.dll.a'
17424    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17425    postinstall_cmds='base_file=`basename \${file}`~
17426      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17427      dldir=$destdir/`dirname \$dlpath`~
17428      test -d \$dldir || mkdir -p \$dldir~
17429      $install_prog $dir/$dlname \$dldir/$dlname~
17430      chmod a+x \$dldir/$dlname'
17431    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17432      dlpath=$dir/\$dldll~
17433       $rm \$dlpath'
17434    shlibpath_overrides_runpath=yes
17435
17436    case $host_os in
17437    cygwin*)
17438      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17439      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17440      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17441      ;;
17442    mingw*)
17443      # MinGW DLLs use traditional 'lib' prefix
17444      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17445      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17446      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17447        # It is most probably a Windows format PATH printed by
17448        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17449        # path with ; separators, and with drive letters. We can handle the
17450        # drive letters (cygwin fileutils understands them), so leave them,
17451        # especially as we might pass files found there to a mingw objdump,
17452        # which wouldn't understand a cygwinified path. Ahh.
17453        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17454      else
17455        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17456      fi
17457      ;;
17458    pw32*)
17459      # pw32 DLLs use 'pw' prefix rather than 'lib'
17460      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17461      ;;
17462    esac
17463    ;;
17464
17465  *)
17466    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17467    ;;
17468  esac
17469  dynamic_linker='Win32 ld.exe'
17470  # FIXME: first we should search . and the directory the executable is in
17471  shlibpath_var=PATH
17472  ;;
17473
17474darwin* | rhapsody*)
17475  dynamic_linker="$host_os dyld"
17476  version_type=darwin
17477  need_lib_prefix=no
17478  need_version=no
17479  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17480  soname_spec='${libname}${release}${major}$shared_ext'
17481  shlibpath_overrides_runpath=yes
17482  shlibpath_var=DYLD_LIBRARY_PATH
17483  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17484  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17485  if test "$GCC" = yes; then
17486    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"`
17487  else
17488    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17489  fi
17490  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17491  ;;
17492
17493dgux*)
17494  version_type=linux
17495  need_lib_prefix=no
17496  need_version=no
17497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17498  soname_spec='${libname}${release}${shared_ext}$major'
17499  shlibpath_var=LD_LIBRARY_PATH
17500  ;;
17501
17502freebsd1*)
17503  dynamic_linker=no
17504  ;;
17505
17506haiku*)
17507  library_names_spec='${libname}${shared_ext}'
17508  dynamic_linker="$host_os ld.so"
17509  shlibpath_var=LIBRARY_PATH
17510  ;;
17511
17512kfreebsd*-gnu)
17513  version_type=linux
17514  need_lib_prefix=no
17515  need_version=no
17516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17517  soname_spec='${libname}${release}${shared_ext}$major'
17518  shlibpath_var=LD_LIBRARY_PATH
17519  shlibpath_overrides_runpath=no
17520  hardcode_into_libs=yes
17521  dynamic_linker='GNU ld.so'
17522  ;;
17523
17524freebsd* | dragonfly*)
17525  # DragonFly does not have aout.  When/if they implement a new
17526  # versioning mechanism, adjust this.
17527  if test -x /usr/bin/objformat; then
17528    objformat=`/usr/bin/objformat`
17529  else
17530    case $host_os in
17531    freebsd[123]*) objformat=aout ;;
17532    *) objformat=elf ;;
17533    esac
17534  fi
17535  version_type=freebsd-$objformat
17536  case $version_type in
17537    freebsd-elf*)
17538      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17539      need_version=no
17540      need_lib_prefix=no
17541      ;;
17542    freebsd-*)
17543      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17544      need_version=yes
17545      ;;
17546  esac
17547  shlibpath_var=LD_LIBRARY_PATH
17548  case $host_os in
17549  freebsd2*)
17550    shlibpath_overrides_runpath=yes
17551    ;;
17552  freebsd3.[01]* | freebsdelf3.[01]*)
17553    shlibpath_overrides_runpath=yes
17554    hardcode_into_libs=yes
17555    ;;
17556  *) # from 3.2 on
17557    shlibpath_overrides_runpath=no
17558    hardcode_into_libs=yes
17559    ;;
17560  esac
17561  ;;
17562
17563gnu*)
17564  version_type=linux
17565  need_lib_prefix=no
17566  need_version=no
17567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17568  soname_spec='${libname}${release}${shared_ext}$major'
17569  shlibpath_var=LD_LIBRARY_PATH
17570  hardcode_into_libs=yes
17571  ;;
17572
17573hpux9* | hpux10* | hpux11*)
17574  # Give a soname corresponding to the major version so that dld.sl refuses to
17575  # link against other versions.
17576  version_type=sunos
17577  need_lib_prefix=no
17578  need_version=no
17579  case $host_cpu in
17580  ia64*)
17581    shrext_cmds='.so'
17582    hardcode_into_libs=yes
17583    dynamic_linker="$host_os dld.so"
17584    shlibpath_var=LD_LIBRARY_PATH
17585    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17587    soname_spec='${libname}${release}${shared_ext}$major'
17588    if test "X$HPUX_IA64_MODE" = X32; then
17589      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17590    else
17591      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17592    fi
17593    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17594    ;;
17595   hppa*64*)
17596     shrext_cmds='.sl'
17597     hardcode_into_libs=yes
17598     dynamic_linker="$host_os dld.sl"
17599     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17600     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17602     soname_spec='${libname}${release}${shared_ext}$major'
17603     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17604     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17605     ;;
17606   *)
17607    shrext_cmds='.sl'
17608    dynamic_linker="$host_os dld.sl"
17609    shlibpath_var=SHLIB_PATH
17610    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17611    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612    soname_spec='${libname}${release}${shared_ext}$major'
17613    ;;
17614  esac
17615  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17616  postinstall_cmds='chmod 555 $lib'
17617  ;;
17618
17619irix5* | irix6* | nonstopux*)
17620  case $host_os in
17621    nonstopux*) version_type=nonstopux ;;
17622    *)
17623	if test "$lt_cv_prog_gnu_ld" = yes; then
17624		version_type=linux
17625	else
17626		version_type=irix
17627	fi ;;
17628  esac
17629  need_lib_prefix=no
17630  need_version=no
17631  soname_spec='${libname}${release}${shared_ext}$major'
17632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17633  case $host_os in
17634  irix5* | nonstopux*)
17635    libsuff= shlibsuff=
17636    ;;
17637  *)
17638    case $LD in # libtool.m4 will add one of these switches to LD
17639    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17640      libsuff= shlibsuff= libmagic=32-bit;;
17641    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17642      libsuff=32 shlibsuff=N32 libmagic=N32;;
17643    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17644      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17645    *) libsuff= shlibsuff= libmagic=never-match;;
17646    esac
17647    ;;
17648  esac
17649  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17650  shlibpath_overrides_runpath=no
17651  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17652  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17653  hardcode_into_libs=yes
17654  ;;
17655
17656# No shared lib support for Linux oldld, aout, or coff.
17657linux*oldld* | linux*aout* | linux*coff*)
17658  dynamic_linker=no
17659  ;;
17660
17661# This must be Linux ELF.
17662linux*)
17663  version_type=linux
17664  need_lib_prefix=no
17665  need_version=no
17666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17667  soname_spec='${libname}${release}${shared_ext}$major'
17668  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17669  shlibpath_var=LD_LIBRARY_PATH
17670  shlibpath_overrides_runpath=no
17671  # This implies no fast_install, which is unacceptable.
17672  # Some rework will be needed to allow for fast_install
17673  # before this can be enabled.
17674  hardcode_into_libs=yes
17675
17676  # Append ld.so.conf contents to the search path
17677  if test -f /etc/ld.so.conf; then
17678    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17679    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17680  fi
17681
17682  # We used to test for /lib/ld.so.1 and disable shared libraries on
17683  # powerpc, because MkLinux only supported shared libraries with the
17684  # GNU dynamic linker.  Since this was broken with cross compilers,
17685  # most powerpc-linux boxes support dynamic linking these days and
17686  # people can always --disable-shared, the test was removed, and we
17687  # assume the GNU/Linux dynamic linker is in use.
17688  dynamic_linker='GNU/Linux ld.so'
17689  ;;
17690
17691knetbsd*-gnu)
17692  version_type=linux
17693  need_lib_prefix=no
17694  need_version=no
17695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17696  soname_spec='${libname}${release}${shared_ext}$major'
17697  shlibpath_var=LD_LIBRARY_PATH
17698  shlibpath_overrides_runpath=no
17699  hardcode_into_libs=yes
17700  dynamic_linker='GNU ld.so'
17701  ;;
17702
17703netbsd*)
17704  version_type=sunos
17705  need_lib_prefix=no
17706  need_version=no
17707  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17708    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17709    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17710    dynamic_linker='NetBSD (a.out) ld.so'
17711  else
17712    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17713    soname_spec='${libname}${release}${shared_ext}$major'
17714    dynamic_linker='NetBSD ld.elf_so'
17715  fi
17716  shlibpath_var=LD_LIBRARY_PATH
17717  shlibpath_overrides_runpath=yes
17718  hardcode_into_libs=yes
17719  ;;
17720
17721newsos6)
17722  version_type=linux
17723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17724  shlibpath_var=LD_LIBRARY_PATH
17725  shlibpath_overrides_runpath=yes
17726  ;;
17727
17728nto-qnx*)
17729  version_type=linux
17730  need_lib_prefix=no
17731  need_version=no
17732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17733  soname_spec='${libname}${release}${shared_ext}$major'
17734  shlibpath_var=LD_LIBRARY_PATH
17735  shlibpath_overrides_runpath=yes
17736  ;;
17737
17738openbsd*)
17739  version_type=sunos
17740  need_lib_prefix=no
17741  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17742  case $host_os in
17743    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17744    *)                         need_version=no  ;;
17745  esac
17746  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17747  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17748  shlibpath_var=LD_LIBRARY_PATH
17749  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17750    case $host_os in
17751      openbsd2.[89] | openbsd2.[89].*)
17752	shlibpath_overrides_runpath=no
17753	;;
17754      *)
17755	shlibpath_overrides_runpath=yes
17756	;;
17757      esac
17758  else
17759    shlibpath_overrides_runpath=yes
17760  fi
17761  ;;
17762
17763os2*)
17764  libname_spec='$name'
17765  shrext_cmds=".dll"
17766  need_lib_prefix=no
17767  library_names_spec='$libname${shared_ext} $libname.a'
17768  dynamic_linker='OS/2 ld.exe'
17769  shlibpath_var=LIBPATH
17770  ;;
17771
17772osf3* | osf4* | osf5*)
17773  version_type=osf
17774  need_lib_prefix=no
17775  need_version=no
17776  soname_spec='${libname}${release}${shared_ext}$major'
17777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17778  shlibpath_var=LD_LIBRARY_PATH
17779  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17780  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17781  ;;
17782
17783sco3.2v5*)
17784  version_type=osf
17785  soname_spec='${libname}${release}${shared_ext}$major'
17786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787  shlibpath_var=LD_LIBRARY_PATH
17788  ;;
17789
17790solaris*)
17791  version_type=linux
17792  need_lib_prefix=no
17793  need_version=no
17794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795  soname_spec='${libname}${release}${shared_ext}$major'
17796  shlibpath_var=LD_LIBRARY_PATH
17797  shlibpath_overrides_runpath=yes
17798  hardcode_into_libs=yes
17799  # ldd complains unless libraries are executable
17800  postinstall_cmds='chmod +x $lib'
17801  ;;
17802
17803sunos4*)
17804  version_type=sunos
17805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17806  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17807  shlibpath_var=LD_LIBRARY_PATH
17808  shlibpath_overrides_runpath=yes
17809  if test "$with_gnu_ld" = yes; then
17810    need_lib_prefix=no
17811  fi
17812  need_version=yes
17813  ;;
17814
17815sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17816  version_type=linux
17817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818  soname_spec='${libname}${release}${shared_ext}$major'
17819  shlibpath_var=LD_LIBRARY_PATH
17820  case $host_vendor in
17821    sni)
17822      shlibpath_overrides_runpath=no
17823      need_lib_prefix=no
17824      export_dynamic_flag_spec='${wl}-Blargedynsym'
17825      runpath_var=LD_RUN_PATH
17826      ;;
17827    siemens)
17828      need_lib_prefix=no
17829      ;;
17830    motorola)
17831      need_lib_prefix=no
17832      need_version=no
17833      shlibpath_overrides_runpath=no
17834      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17835      ;;
17836  esac
17837  ;;
17838
17839sysv4*MP*)
17840  if test -d /usr/nec ;then
17841    version_type=linux
17842    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17843    soname_spec='$libname${shared_ext}.$major'
17844    shlibpath_var=LD_LIBRARY_PATH
17845  fi
17846  ;;
17847
17848uts4*)
17849  version_type=linux
17850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851  soname_spec='${libname}${release}${shared_ext}$major'
17852  shlibpath_var=LD_LIBRARY_PATH
17853  ;;
17854
17855*)
17856  dynamic_linker=no
17857  ;;
17858esac
17859echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17860echo "${ECHO_T}$dynamic_linker" >&6
17861test "$dynamic_linker" = no && can_build_shared=no
17862
17863echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17864echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17865hardcode_action_GCJ=
17866if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17867   test -n "$runpath_var_GCJ" || \
17868   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17869
17870  # We can hardcode non-existant directories.
17871  if test "$hardcode_direct_GCJ" != no &&
17872     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17873     # have to relink, otherwise we might link with an installed library
17874     # when we should be linking with a yet-to-be-installed one
17875     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17876     test "$hardcode_minus_L_GCJ" != no; then
17877    # Linking always hardcodes the temporary library directory.
17878    hardcode_action_GCJ=relink
17879  else
17880    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17881    hardcode_action_GCJ=immediate
17882  fi
17883else
17884  # We cannot hardcode anything, or else we can only hardcode existing
17885  # directories.
17886  hardcode_action_GCJ=unsupported
17887fi
17888echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17889echo "${ECHO_T}$hardcode_action_GCJ" >&6
17890
17891if test "$hardcode_action_GCJ" = relink; then
17892  # Fast installation is not supported
17893  enable_fast_install=no
17894elif test "$shlibpath_overrides_runpath" = yes ||
17895     test "$enable_shared" = no; then
17896  # Fast installation is not necessary
17897  enable_fast_install=needless
17898fi
17899
17900striplib=
17901old_striplib=
17902echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17903echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17904if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17905  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17906  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17907  echo "$as_me:$LINENO: result: yes" >&5
17908echo "${ECHO_T}yes" >&6
17909else
17910# FIXME - insert some real tests, host_os isn't really good enough
17911  case $host_os in
17912   darwin*)
17913       if test -n "$STRIP" ; then
17914         striplib="$STRIP -x"
17915         echo "$as_me:$LINENO: result: yes" >&5
17916echo "${ECHO_T}yes" >&6
17917       else
17918  echo "$as_me:$LINENO: result: no" >&5
17919echo "${ECHO_T}no" >&6
17920fi
17921       ;;
17922   *)
17923  echo "$as_me:$LINENO: result: no" >&5
17924echo "${ECHO_T}no" >&6
17925    ;;
17926  esac
17927fi
17928
17929if test "x$enable_dlopen" != xyes; then
17930  enable_dlopen=unknown
17931  enable_dlopen_self=unknown
17932  enable_dlopen_self_static=unknown
17933else
17934  lt_cv_dlopen=no
17935  lt_cv_dlopen_libs=
17936
17937  case $host_os in
17938  beos*)
17939    lt_cv_dlopen="load_add_on"
17940    lt_cv_dlopen_libs=
17941    lt_cv_dlopen_self=yes
17942    ;;
17943
17944  mingw* | pw32*)
17945    lt_cv_dlopen="LoadLibrary"
17946    lt_cv_dlopen_libs=
17947   ;;
17948
17949  cygwin*)
17950    lt_cv_dlopen="dlopen"
17951    lt_cv_dlopen_libs=
17952   ;;
17953
17954  darwin*)
17955  # if libdl is installed we need to link against it
17956    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17957echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17958if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17959  echo $ECHO_N "(cached) $ECHO_C" >&6
17960else
17961  ac_check_lib_save_LIBS=$LIBS
17962LIBS="-ldl  $LIBS"
17963cat >conftest.$ac_ext <<_ACEOF
17964/* confdefs.h.  */
17965_ACEOF
17966cat confdefs.h >>conftest.$ac_ext
17967cat >>conftest.$ac_ext <<_ACEOF
17968/* end confdefs.h.  */
17969
17970/* Override any gcc2 internal prototype to avoid an error.  */
17971#ifdef __cplusplus
17972extern "C"
17973#endif
17974/* We use char because int might match the return type of a gcc2
17975   builtin and then its argument prototype would still apply.  */
17976char dlopen ();
17977int
17978main ()
17979{
17980dlopen ();
17981  ;
17982  return 0;
17983}
17984_ACEOF
17985rm -f conftest.$ac_objext conftest$ac_exeext
17986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17987  (eval $ac_link) 2>conftest.er1
17988  ac_status=$?
17989  grep -v '^ *+' conftest.er1 >conftest.err
17990  rm -f conftest.er1
17991  cat conftest.err >&5
17992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993  (exit $ac_status); } &&
17994	 { ac_try='test -z "$ac_c_werror_flag"
17995			 || test ! -s conftest.err'
17996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997  (eval $ac_try) 2>&5
17998  ac_status=$?
17999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000  (exit $ac_status); }; } &&
18001	 { ac_try='test -s conftest$ac_exeext'
18002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18003  (eval $ac_try) 2>&5
18004  ac_status=$?
18005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006  (exit $ac_status); }; }; then
18007  ac_cv_lib_dl_dlopen=yes
18008else
18009  echo "$as_me: failed program was:" >&5
18010sed 's/^/| /' conftest.$ac_ext >&5
18011
18012ac_cv_lib_dl_dlopen=no
18013fi
18014rm -f conftest.err conftest.$ac_objext \
18015      conftest$ac_exeext conftest.$ac_ext
18016LIBS=$ac_check_lib_save_LIBS
18017fi
18018echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18019echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18020if test $ac_cv_lib_dl_dlopen = yes; then
18021  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18022else
18023
18024    lt_cv_dlopen="dyld"
18025    lt_cv_dlopen_libs=
18026    lt_cv_dlopen_self=yes
18027
18028fi
18029
18030   ;;
18031
18032  haiku*)
18033    lt_cv_dlopen="load_add_on"
18034    lt_cv_dlopen_libs=
18035    lt_cv_dlopen_self=yes
18036    ;;
18037
18038  *)
18039    echo "$as_me:$LINENO: checking for shl_load" >&5
18040echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18041if test "${ac_cv_func_shl_load+set}" = set; then
18042  echo $ECHO_N "(cached) $ECHO_C" >&6
18043else
18044  cat >conftest.$ac_ext <<_ACEOF
18045/* confdefs.h.  */
18046_ACEOF
18047cat confdefs.h >>conftest.$ac_ext
18048cat >>conftest.$ac_ext <<_ACEOF
18049/* end confdefs.h.  */
18050/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18051   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18052#define shl_load innocuous_shl_load
18053
18054/* System header to define __stub macros and hopefully few prototypes,
18055    which can conflict with char shl_load (); below.
18056    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18057    <limits.h> exists even on freestanding compilers.  */
18058
18059#ifdef __STDC__
18060# include <limits.h>
18061#else
18062# include <assert.h>
18063#endif
18064
18065#undef shl_load
18066
18067/* Override any gcc2 internal prototype to avoid an error.  */
18068#ifdef __cplusplus
18069extern "C"
18070{
18071#endif
18072/* We use char because int might match the return type of a gcc2
18073   builtin and then its argument prototype would still apply.  */
18074char shl_load ();
18075/* The GNU C library defines this for functions which it implements
18076    to always fail with ENOSYS.  Some functions are actually named
18077    something starting with __ and the normal name is an alias.  */
18078#if defined (__stub_shl_load) || defined (__stub___shl_load)
18079choke me
18080#else
18081char (*f) () = shl_load;
18082#endif
18083#ifdef __cplusplus
18084}
18085#endif
18086
18087int
18088main ()
18089{
18090return f != shl_load;
18091  ;
18092  return 0;
18093}
18094_ACEOF
18095rm -f conftest.$ac_objext conftest$ac_exeext
18096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18097  (eval $ac_link) 2>conftest.er1
18098  ac_status=$?
18099  grep -v '^ *+' conftest.er1 >conftest.err
18100  rm -f conftest.er1
18101  cat conftest.err >&5
18102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103  (exit $ac_status); } &&
18104	 { ac_try='test -z "$ac_c_werror_flag"
18105			 || test ! -s conftest.err'
18106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107  (eval $ac_try) 2>&5
18108  ac_status=$?
18109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110  (exit $ac_status); }; } &&
18111	 { ac_try='test -s conftest$ac_exeext'
18112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113  (eval $ac_try) 2>&5
18114  ac_status=$?
18115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116  (exit $ac_status); }; }; then
18117  ac_cv_func_shl_load=yes
18118else
18119  echo "$as_me: failed program was:" >&5
18120sed 's/^/| /' conftest.$ac_ext >&5
18121
18122ac_cv_func_shl_load=no
18123fi
18124rm -f conftest.err conftest.$ac_objext \
18125      conftest$ac_exeext conftest.$ac_ext
18126fi
18127echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18128echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18129if test $ac_cv_func_shl_load = yes; then
18130  lt_cv_dlopen="shl_load"
18131else
18132  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18133echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18134if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18135  echo $ECHO_N "(cached) $ECHO_C" >&6
18136else
18137  ac_check_lib_save_LIBS=$LIBS
18138LIBS="-ldld  $LIBS"
18139cat >conftest.$ac_ext <<_ACEOF
18140/* confdefs.h.  */
18141_ACEOF
18142cat confdefs.h >>conftest.$ac_ext
18143cat >>conftest.$ac_ext <<_ACEOF
18144/* end confdefs.h.  */
18145
18146/* Override any gcc2 internal prototype to avoid an error.  */
18147#ifdef __cplusplus
18148extern "C"
18149#endif
18150/* We use char because int might match the return type of a gcc2
18151   builtin and then its argument prototype would still apply.  */
18152char shl_load ();
18153int
18154main ()
18155{
18156shl_load ();
18157  ;
18158  return 0;
18159}
18160_ACEOF
18161rm -f conftest.$ac_objext conftest$ac_exeext
18162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18163  (eval $ac_link) 2>conftest.er1
18164  ac_status=$?
18165  grep -v '^ *+' conftest.er1 >conftest.err
18166  rm -f conftest.er1
18167  cat conftest.err >&5
18168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169  (exit $ac_status); } &&
18170	 { ac_try='test -z "$ac_c_werror_flag"
18171			 || test ! -s conftest.err'
18172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173  (eval $ac_try) 2>&5
18174  ac_status=$?
18175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176  (exit $ac_status); }; } &&
18177	 { ac_try='test -s conftest$ac_exeext'
18178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179  (eval $ac_try) 2>&5
18180  ac_status=$?
18181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182  (exit $ac_status); }; }; then
18183  ac_cv_lib_dld_shl_load=yes
18184else
18185  echo "$as_me: failed program was:" >&5
18186sed 's/^/| /' conftest.$ac_ext >&5
18187
18188ac_cv_lib_dld_shl_load=no
18189fi
18190rm -f conftest.err conftest.$ac_objext \
18191      conftest$ac_exeext conftest.$ac_ext
18192LIBS=$ac_check_lib_save_LIBS
18193fi
18194echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18195echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18196if test $ac_cv_lib_dld_shl_load = yes; then
18197  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18198else
18199  echo "$as_me:$LINENO: checking for dlopen" >&5
18200echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18201if test "${ac_cv_func_dlopen+set}" = set; then
18202  echo $ECHO_N "(cached) $ECHO_C" >&6
18203else
18204  cat >conftest.$ac_ext <<_ACEOF
18205/* confdefs.h.  */
18206_ACEOF
18207cat confdefs.h >>conftest.$ac_ext
18208cat >>conftest.$ac_ext <<_ACEOF
18209/* end confdefs.h.  */
18210/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18211   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18212#define dlopen innocuous_dlopen
18213
18214/* System header to define __stub macros and hopefully few prototypes,
18215    which can conflict with char dlopen (); below.
18216    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18217    <limits.h> exists even on freestanding compilers.  */
18218
18219#ifdef __STDC__
18220# include <limits.h>
18221#else
18222# include <assert.h>
18223#endif
18224
18225#undef dlopen
18226
18227/* Override any gcc2 internal prototype to avoid an error.  */
18228#ifdef __cplusplus
18229extern "C"
18230{
18231#endif
18232/* We use char because int might match the return type of a gcc2
18233   builtin and then its argument prototype would still apply.  */
18234char dlopen ();
18235/* The GNU C library defines this for functions which it implements
18236    to always fail with ENOSYS.  Some functions are actually named
18237    something starting with __ and the normal name is an alias.  */
18238#if defined (__stub_dlopen) || defined (__stub___dlopen)
18239choke me
18240#else
18241char (*f) () = dlopen;
18242#endif
18243#ifdef __cplusplus
18244}
18245#endif
18246
18247int
18248main ()
18249{
18250return f != dlopen;
18251  ;
18252  return 0;
18253}
18254_ACEOF
18255rm -f conftest.$ac_objext conftest$ac_exeext
18256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18257  (eval $ac_link) 2>conftest.er1
18258  ac_status=$?
18259  grep -v '^ *+' conftest.er1 >conftest.err
18260  rm -f conftest.er1
18261  cat conftest.err >&5
18262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263  (exit $ac_status); } &&
18264	 { ac_try='test -z "$ac_c_werror_flag"
18265			 || test ! -s conftest.err'
18266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267  (eval $ac_try) 2>&5
18268  ac_status=$?
18269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270  (exit $ac_status); }; } &&
18271	 { ac_try='test -s conftest$ac_exeext'
18272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273  (eval $ac_try) 2>&5
18274  ac_status=$?
18275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276  (exit $ac_status); }; }; then
18277  ac_cv_func_dlopen=yes
18278else
18279  echo "$as_me: failed program was:" >&5
18280sed 's/^/| /' conftest.$ac_ext >&5
18281
18282ac_cv_func_dlopen=no
18283fi
18284rm -f conftest.err conftest.$ac_objext \
18285      conftest$ac_exeext conftest.$ac_ext
18286fi
18287echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18288echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18289if test $ac_cv_func_dlopen = yes; then
18290  lt_cv_dlopen="dlopen"
18291else
18292  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18293echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18294if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18295  echo $ECHO_N "(cached) $ECHO_C" >&6
18296else
18297  ac_check_lib_save_LIBS=$LIBS
18298LIBS="-ldl  $LIBS"
18299cat >conftest.$ac_ext <<_ACEOF
18300/* confdefs.h.  */
18301_ACEOF
18302cat confdefs.h >>conftest.$ac_ext
18303cat >>conftest.$ac_ext <<_ACEOF
18304/* end confdefs.h.  */
18305
18306/* Override any gcc2 internal prototype to avoid an error.  */
18307#ifdef __cplusplus
18308extern "C"
18309#endif
18310/* We use char because int might match the return type of a gcc2
18311   builtin and then its argument prototype would still apply.  */
18312char dlopen ();
18313int
18314main ()
18315{
18316dlopen ();
18317  ;
18318  return 0;
18319}
18320_ACEOF
18321rm -f conftest.$ac_objext conftest$ac_exeext
18322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18323  (eval $ac_link) 2>conftest.er1
18324  ac_status=$?
18325  grep -v '^ *+' conftest.er1 >conftest.err
18326  rm -f conftest.er1
18327  cat conftest.err >&5
18328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329  (exit $ac_status); } &&
18330	 { ac_try='test -z "$ac_c_werror_flag"
18331			 || test ! -s conftest.err'
18332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18333  (eval $ac_try) 2>&5
18334  ac_status=$?
18335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336  (exit $ac_status); }; } &&
18337	 { ac_try='test -s conftest$ac_exeext'
18338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339  (eval $ac_try) 2>&5
18340  ac_status=$?
18341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342  (exit $ac_status); }; }; then
18343  ac_cv_lib_dl_dlopen=yes
18344else
18345  echo "$as_me: failed program was:" >&5
18346sed 's/^/| /' conftest.$ac_ext >&5
18347
18348ac_cv_lib_dl_dlopen=no
18349fi
18350rm -f conftest.err conftest.$ac_objext \
18351      conftest$ac_exeext conftest.$ac_ext
18352LIBS=$ac_check_lib_save_LIBS
18353fi
18354echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18355echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18356if test $ac_cv_lib_dl_dlopen = yes; then
18357  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18358else
18359  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18360echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18361if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18362  echo $ECHO_N "(cached) $ECHO_C" >&6
18363else
18364  ac_check_lib_save_LIBS=$LIBS
18365LIBS="-lsvld  $LIBS"
18366cat >conftest.$ac_ext <<_ACEOF
18367/* confdefs.h.  */
18368_ACEOF
18369cat confdefs.h >>conftest.$ac_ext
18370cat >>conftest.$ac_ext <<_ACEOF
18371/* end confdefs.h.  */
18372
18373/* Override any gcc2 internal prototype to avoid an error.  */
18374#ifdef __cplusplus
18375extern "C"
18376#endif
18377/* We use char because int might match the return type of a gcc2
18378   builtin and then its argument prototype would still apply.  */
18379char dlopen ();
18380int
18381main ()
18382{
18383dlopen ();
18384  ;
18385  return 0;
18386}
18387_ACEOF
18388rm -f conftest.$ac_objext conftest$ac_exeext
18389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18390  (eval $ac_link) 2>conftest.er1
18391  ac_status=$?
18392  grep -v '^ *+' conftest.er1 >conftest.err
18393  rm -f conftest.er1
18394  cat conftest.err >&5
18395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396  (exit $ac_status); } &&
18397	 { ac_try='test -z "$ac_c_werror_flag"
18398			 || test ! -s conftest.err'
18399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400  (eval $ac_try) 2>&5
18401  ac_status=$?
18402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403  (exit $ac_status); }; } &&
18404	 { ac_try='test -s conftest$ac_exeext'
18405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406  (eval $ac_try) 2>&5
18407  ac_status=$?
18408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409  (exit $ac_status); }; }; then
18410  ac_cv_lib_svld_dlopen=yes
18411else
18412  echo "$as_me: failed program was:" >&5
18413sed 's/^/| /' conftest.$ac_ext >&5
18414
18415ac_cv_lib_svld_dlopen=no
18416fi
18417rm -f conftest.err conftest.$ac_objext \
18418      conftest$ac_exeext conftest.$ac_ext
18419LIBS=$ac_check_lib_save_LIBS
18420fi
18421echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18422echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18423if test $ac_cv_lib_svld_dlopen = yes; then
18424  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18425else
18426  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18427echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18428if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18429  echo $ECHO_N "(cached) $ECHO_C" >&6
18430else
18431  ac_check_lib_save_LIBS=$LIBS
18432LIBS="-ldld  $LIBS"
18433cat >conftest.$ac_ext <<_ACEOF
18434/* confdefs.h.  */
18435_ACEOF
18436cat confdefs.h >>conftest.$ac_ext
18437cat >>conftest.$ac_ext <<_ACEOF
18438/* end confdefs.h.  */
18439
18440/* Override any gcc2 internal prototype to avoid an error.  */
18441#ifdef __cplusplus
18442extern "C"
18443#endif
18444/* We use char because int might match the return type of a gcc2
18445   builtin and then its argument prototype would still apply.  */
18446char dld_link ();
18447int
18448main ()
18449{
18450dld_link ();
18451  ;
18452  return 0;
18453}
18454_ACEOF
18455rm -f conftest.$ac_objext conftest$ac_exeext
18456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18457  (eval $ac_link) 2>conftest.er1
18458  ac_status=$?
18459  grep -v '^ *+' conftest.er1 >conftest.err
18460  rm -f conftest.er1
18461  cat conftest.err >&5
18462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463  (exit $ac_status); } &&
18464	 { ac_try='test -z "$ac_c_werror_flag"
18465			 || test ! -s conftest.err'
18466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467  (eval $ac_try) 2>&5
18468  ac_status=$?
18469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470  (exit $ac_status); }; } &&
18471	 { ac_try='test -s conftest$ac_exeext'
18472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473  (eval $ac_try) 2>&5
18474  ac_status=$?
18475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476  (exit $ac_status); }; }; then
18477  ac_cv_lib_dld_dld_link=yes
18478else
18479  echo "$as_me: failed program was:" >&5
18480sed 's/^/| /' conftest.$ac_ext >&5
18481
18482ac_cv_lib_dld_dld_link=no
18483fi
18484rm -f conftest.err conftest.$ac_objext \
18485      conftest$ac_exeext conftest.$ac_ext
18486LIBS=$ac_check_lib_save_LIBS
18487fi
18488echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18489echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18490if test $ac_cv_lib_dld_dld_link = yes; then
18491  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18492fi
18493
18494
18495fi
18496
18497
18498fi
18499
18500
18501fi
18502
18503
18504fi
18505
18506
18507fi
18508
18509    ;;
18510  esac
18511
18512  if test "x$lt_cv_dlopen" != xno; then
18513    enable_dlopen=yes
18514  else
18515    enable_dlopen=no
18516  fi
18517
18518  case $lt_cv_dlopen in
18519  dlopen)
18520    save_CPPFLAGS="$CPPFLAGS"
18521    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18522
18523    save_LDFLAGS="$LDFLAGS"
18524    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18525
18526    save_LIBS="$LIBS"
18527    LIBS="$lt_cv_dlopen_libs $LIBS"
18528
18529    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18530echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18531if test "${lt_cv_dlopen_self+set}" = set; then
18532  echo $ECHO_N "(cached) $ECHO_C" >&6
18533else
18534  	  if test "$cross_compiling" = yes; then :
18535  lt_cv_dlopen_self=cross
18536else
18537  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18538  lt_status=$lt_dlunknown
18539  cat > conftest.$ac_ext <<EOF
18540#line 18540 "configure"
18541#include "confdefs.h"
18542
18543#if HAVE_DLFCN_H
18544#include <dlfcn.h>
18545#endif
18546
18547#include <stdio.h>
18548
18549#ifdef RTLD_GLOBAL
18550#  define LT_DLGLOBAL		RTLD_GLOBAL
18551#else
18552#  ifdef DL_GLOBAL
18553#    define LT_DLGLOBAL		DL_GLOBAL
18554#  else
18555#    define LT_DLGLOBAL		0
18556#  endif
18557#endif
18558
18559/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18560   find out it does not work in some platform. */
18561#ifndef LT_DLLAZY_OR_NOW
18562#  ifdef RTLD_LAZY
18563#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18564#  else
18565#    ifdef DL_LAZY
18566#      define LT_DLLAZY_OR_NOW		DL_LAZY
18567#    else
18568#      ifdef RTLD_NOW
18569#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18570#      else
18571#        ifdef DL_NOW
18572#          define LT_DLLAZY_OR_NOW	DL_NOW
18573#        else
18574#          define LT_DLLAZY_OR_NOW	0
18575#        endif
18576#      endif
18577#    endif
18578#  endif
18579#endif
18580
18581#ifdef __cplusplus
18582extern "C" void exit (int);
18583#endif
18584
18585void fnord() { int i=42;}
18586int main ()
18587{
18588  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18589  int status = $lt_dlunknown;
18590
18591  if (self)
18592    {
18593      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18594      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18595      /* dlclose (self); */
18596    }
18597
18598    exit (status);
18599}
18600EOF
18601  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18602  (eval $ac_link) 2>&5
18603  ac_status=$?
18604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18606    (./conftest; exit; ) >&5 2>/dev/null
18607    lt_status=$?
18608    case x$lt_status in
18609      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18610      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18611      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18612    esac
18613  else :
18614    # compilation failed
18615    lt_cv_dlopen_self=no
18616  fi
18617fi
18618rm -fr conftest*
18619
18620
18621fi
18622echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18623echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18624
18625    if test "x$lt_cv_dlopen_self" = xyes; then
18626      LDFLAGS="$LDFLAGS $link_static_flag"
18627      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18628echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18629if test "${lt_cv_dlopen_self_static+set}" = set; then
18630  echo $ECHO_N "(cached) $ECHO_C" >&6
18631else
18632  	  if test "$cross_compiling" = yes; then :
18633  lt_cv_dlopen_self_static=cross
18634else
18635  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18636  lt_status=$lt_dlunknown
18637  cat > conftest.$ac_ext <<EOF
18638#line 18638 "configure"
18639#include "confdefs.h"
18640
18641#if HAVE_DLFCN_H
18642#include <dlfcn.h>
18643#endif
18644
18645#include <stdio.h>
18646
18647#ifdef RTLD_GLOBAL
18648#  define LT_DLGLOBAL		RTLD_GLOBAL
18649#else
18650#  ifdef DL_GLOBAL
18651#    define LT_DLGLOBAL		DL_GLOBAL
18652#  else
18653#    define LT_DLGLOBAL		0
18654#  endif
18655#endif
18656
18657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18658   find out it does not work in some platform. */
18659#ifndef LT_DLLAZY_OR_NOW
18660#  ifdef RTLD_LAZY
18661#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18662#  else
18663#    ifdef DL_LAZY
18664#      define LT_DLLAZY_OR_NOW		DL_LAZY
18665#    else
18666#      ifdef RTLD_NOW
18667#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18668#      else
18669#        ifdef DL_NOW
18670#          define LT_DLLAZY_OR_NOW	DL_NOW
18671#        else
18672#          define LT_DLLAZY_OR_NOW	0
18673#        endif
18674#      endif
18675#    endif
18676#  endif
18677#endif
18678
18679#ifdef __cplusplus
18680extern "C" void exit (int);
18681#endif
18682
18683void fnord() { int i=42;}
18684int main ()
18685{
18686  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18687  int status = $lt_dlunknown;
18688
18689  if (self)
18690    {
18691      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18692      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18693      /* dlclose (self); */
18694    }
18695
18696    exit (status);
18697}
18698EOF
18699  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18700  (eval $ac_link) 2>&5
18701  ac_status=$?
18702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18704    (./conftest; exit; ) >&5 2>/dev/null
18705    lt_status=$?
18706    case x$lt_status in
18707      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18708      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18709      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18710    esac
18711  else :
18712    # compilation failed
18713    lt_cv_dlopen_self_static=no
18714  fi
18715fi
18716rm -fr conftest*
18717
18718
18719fi
18720echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18721echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18722    fi
18723
18724    CPPFLAGS="$save_CPPFLAGS"
18725    LDFLAGS="$save_LDFLAGS"
18726    LIBS="$save_LIBS"
18727    ;;
18728  esac
18729
18730  case $lt_cv_dlopen_self in
18731  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18732  *) enable_dlopen_self=unknown ;;
18733  esac
18734
18735  case $lt_cv_dlopen_self_static in
18736  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18737  *) enable_dlopen_self_static=unknown ;;
18738  esac
18739fi
18740
18741
18742# The else clause should only fire when bootstrapping the
18743# libtool distribution, otherwise you forgot to ship ltmain.sh
18744# with your package, and you will get complaints that there are
18745# no rules to generate ltmain.sh.
18746if test -f "$ltmain"; then
18747  # See if we are running on zsh, and set the options which allow our commands through
18748  # without removal of \ escapes.
18749  if test -n "${ZSH_VERSION+set}" ; then
18750    setopt NO_GLOB_SUBST
18751  fi
18752  # Now quote all the things that may contain metacharacters while being
18753  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18754  # variables and quote the copies for generation of the libtool script.
18755  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18756    SED SHELL STRIP \
18757    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18758    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18759    deplibs_check_method reload_flag reload_cmds need_locks \
18760    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18761    lt_cv_sys_global_symbol_to_c_name_address \
18762    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18763    old_postinstall_cmds old_postuninstall_cmds \
18764    compiler_GCJ \
18765    CC_GCJ \
18766    LD_GCJ \
18767    lt_prog_compiler_wl_GCJ \
18768    lt_prog_compiler_pic_GCJ \
18769    lt_prog_compiler_static_GCJ \
18770    lt_prog_compiler_no_builtin_flag_GCJ \
18771    export_dynamic_flag_spec_GCJ \
18772    thread_safe_flag_spec_GCJ \
18773    whole_archive_flag_spec_GCJ \
18774    enable_shared_with_static_runtimes_GCJ \
18775    old_archive_cmds_GCJ \
18776    old_archive_from_new_cmds_GCJ \
18777    predep_objects_GCJ \
18778    postdep_objects_GCJ \
18779    predeps_GCJ \
18780    postdeps_GCJ \
18781    compiler_lib_search_path_GCJ \
18782    archive_cmds_GCJ \
18783    archive_expsym_cmds_GCJ \
18784    postinstall_cmds_GCJ \
18785    postuninstall_cmds_GCJ \
18786    old_archive_from_expsyms_cmds_GCJ \
18787    allow_undefined_flag_GCJ \
18788    no_undefined_flag_GCJ \
18789    export_symbols_cmds_GCJ \
18790    hardcode_libdir_flag_spec_GCJ \
18791    hardcode_libdir_flag_spec_ld_GCJ \
18792    hardcode_libdir_separator_GCJ \
18793    hardcode_automatic_GCJ \
18794    module_cmds_GCJ \
18795    module_expsym_cmds_GCJ \
18796    lt_cv_prog_compiler_c_o_GCJ \
18797    exclude_expsyms_GCJ \
18798    include_expsyms_GCJ; do
18799
18800    case $var in
18801    old_archive_cmds_GCJ | \
18802    old_archive_from_new_cmds_GCJ | \
18803    archive_cmds_GCJ | \
18804    archive_expsym_cmds_GCJ | \
18805    module_cmds_GCJ | \
18806    module_expsym_cmds_GCJ | \
18807    old_archive_from_expsyms_cmds_GCJ | \
18808    export_symbols_cmds_GCJ | \
18809    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18810    postinstall_cmds | postuninstall_cmds | \
18811    old_postinstall_cmds | old_postuninstall_cmds | \
18812    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18813      # Double-quote double-evaled strings.
18814      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18815      ;;
18816    *)
18817      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18818      ;;
18819    esac
18820  done
18821
18822  case $lt_echo in
18823  *'\$0 --fallback-echo"')
18824    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18825    ;;
18826  esac
18827
18828cfgfile="$ofile"
18829
18830  cat <<__EOF__ >> "$cfgfile"
18831# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18832
18833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18834
18835# Shell to use when invoking shell scripts.
18836SHELL=$lt_SHELL
18837
18838# Whether or not to build shared libraries.
18839build_libtool_libs=$enable_shared
18840
18841# Whether or not to build static libraries.
18842build_old_libs=$enable_static
18843
18844# Whether or not to add -lc for building shared libraries.
18845build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18846
18847# Whether or not to disallow shared libs when runtime libs are static
18848allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18849
18850# Whether or not to optimize for fast installation.
18851fast_install=$enable_fast_install
18852
18853# The host system.
18854host_alias=$host_alias
18855host=$host
18856host_os=$host_os
18857
18858# The build system.
18859build_alias=$build_alias
18860build=$build
18861build_os=$build_os
18862
18863# An echo program that does not interpret backslashes.
18864echo=$lt_echo
18865
18866# The archiver.
18867AR=$lt_AR
18868AR_FLAGS=$lt_AR_FLAGS
18869
18870# A C compiler.
18871LTCC=$lt_LTCC
18872
18873# A language-specific compiler.
18874CC=$lt_compiler_GCJ
18875
18876# Is the compiler the GNU C compiler?
18877with_gcc=$GCC_GCJ
18878
18879# An ERE matcher.
18880EGREP=$lt_EGREP
18881
18882# The linker used to build libraries.
18883LD=$lt_LD_GCJ
18884
18885# Whether we need hard or soft links.
18886LN_S=$lt_LN_S
18887
18888# A BSD-compatible nm program.
18889NM=$lt_NM
18890
18891# A symbol stripping program
18892STRIP=$lt_STRIP
18893
18894# Used to examine libraries when file_magic_cmd begins "file"
18895MAGIC_CMD=$MAGIC_CMD
18896
18897# Used on cygwin: DLL creation program.
18898DLLTOOL="$DLLTOOL"
18899
18900# Used on cygwin: object dumper.
18901OBJDUMP="$OBJDUMP"
18902
18903# Used on cygwin: assembler.
18904AS="$AS"
18905
18906# The name of the directory that contains temporary libtool files.
18907objdir=$objdir
18908
18909# How to create reloadable object files.
18910reload_flag=$lt_reload_flag
18911reload_cmds=$lt_reload_cmds
18912
18913# How to pass a linker flag through the compiler.
18914wl=$lt_lt_prog_compiler_wl_GCJ
18915
18916# Object file suffix (normally "o").
18917objext="$ac_objext"
18918
18919# Old archive suffix (normally "a").
18920libext="$libext"
18921
18922# Shared library suffix (normally ".so").
18923shrext_cmds='$shrext_cmds'
18924
18925# Executable file suffix (normally "").
18926exeext="$exeext"
18927
18928# Additional compiler flags for building library objects.
18929pic_flag=$lt_lt_prog_compiler_pic_GCJ
18930pic_mode=$pic_mode
18931
18932# What is the maximum length of a command?
18933max_cmd_len=$lt_cv_sys_max_cmd_len
18934
18935# Does compiler simultaneously support -c and -o options?
18936compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18937
18938# Must we lock files when doing compilation?
18939need_locks=$lt_need_locks
18940
18941# Do we need the lib prefix for modules?
18942need_lib_prefix=$need_lib_prefix
18943
18944# Do we need a version for libraries?
18945need_version=$need_version
18946
18947# Whether dlopen is supported.
18948dlopen_support=$enable_dlopen
18949
18950# Whether dlopen of programs is supported.
18951dlopen_self=$enable_dlopen_self
18952
18953# Whether dlopen of statically linked programs is supported.
18954dlopen_self_static=$enable_dlopen_self_static
18955
18956# Compiler flag to prevent dynamic linking.
18957link_static_flag=$lt_lt_prog_compiler_static_GCJ
18958
18959# Compiler flag to turn off builtin functions.
18960no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18961
18962# Compiler flag to allow reflexive dlopens.
18963export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18964
18965# Compiler flag to generate shared objects directly from archives.
18966whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18967
18968# Compiler flag to generate thread-safe objects.
18969thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18970
18971# Library versioning type.
18972version_type=$version_type
18973
18974# Format of library name prefix.
18975libname_spec=$lt_libname_spec
18976
18977# List of archive names.  First name is the real one, the rest are links.
18978# The last name is the one that the linker finds with -lNAME.
18979library_names_spec=$lt_library_names_spec
18980
18981# The coded name of the library, if different from the real name.
18982soname_spec=$lt_soname_spec
18983
18984# Commands used to build and install an old-style archive.
18985RANLIB=$lt_RANLIB
18986old_archive_cmds=$lt_old_archive_cmds_GCJ
18987old_postinstall_cmds=$lt_old_postinstall_cmds
18988old_postuninstall_cmds=$lt_old_postuninstall_cmds
18989
18990# Create an old-style archive from a shared archive.
18991old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18992
18993# Create a temporary old-style archive to link instead of a shared archive.
18994old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18995
18996# Commands used to build and install a shared archive.
18997archive_cmds=$lt_archive_cmds_GCJ
18998archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18999postinstall_cmds=$lt_postinstall_cmds
19000postuninstall_cmds=$lt_postuninstall_cmds
19001
19002# Commands used to build a loadable module (assumed same as above if empty)
19003module_cmds=$lt_module_cmds_GCJ
19004module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19005
19006# Commands to strip libraries.
19007old_striplib=$lt_old_striplib
19008striplib=$lt_striplib
19009
19010# Dependencies to place before the objects being linked to create a
19011# shared library.
19012predep_objects=$lt_predep_objects_GCJ
19013
19014# Dependencies to place after the objects being linked to create a
19015# shared library.
19016postdep_objects=$lt_postdep_objects_GCJ
19017
19018# Dependencies to place before the objects being linked to create a
19019# shared library.
19020predeps=$lt_predeps_GCJ
19021
19022# Dependencies to place after the objects being linked to create a
19023# shared library.
19024postdeps=$lt_postdeps_GCJ
19025
19026# The library search path used internally by the compiler when linking
19027# a shared library.
19028compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19029
19030# Method to check whether dependent libraries are shared objects.
19031deplibs_check_method=$lt_deplibs_check_method
19032
19033# Command to use when deplibs_check_method == file_magic.
19034file_magic_cmd=$lt_file_magic_cmd
19035
19036# Flag that allows shared libraries with undefined symbols to be built.
19037allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19038
19039# Flag that forces no undefined symbols.
19040no_undefined_flag=$lt_no_undefined_flag_GCJ
19041
19042# Commands used to finish a libtool library installation in a directory.
19043finish_cmds=$lt_finish_cmds
19044
19045# Same as above, but a single script fragment to be evaled but not shown.
19046finish_eval=$lt_finish_eval
19047
19048# Take the output of nm and produce a listing of raw symbols and C names.
19049global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19050
19051# Transform the output of nm in a proper C declaration
19052global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19053
19054# Transform the output of nm in a C name address pair
19055global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19056
19057# This is the shared library runtime path variable.
19058runpath_var=$runpath_var
19059
19060# This is the shared library path variable.
19061shlibpath_var=$shlibpath_var
19062
19063# Is shlibpath searched before the hard-coded library search path?
19064shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19065
19066# How to hardcode a shared library path into an executable.
19067hardcode_action=$hardcode_action_GCJ
19068
19069# Whether we should hardcode library paths into libraries.
19070hardcode_into_libs=$hardcode_into_libs
19071
19072# Flag to hardcode \$libdir into a binary during linking.
19073# This must work even if \$libdir does not exist.
19074hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19075
19076# If ld is used when linking, flag to hardcode \$libdir into
19077# a binary during linking. This must work even if \$libdir does
19078# not exist.
19079hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19080
19081# Whether we need a single -rpath flag with a separated argument.
19082hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19083
19084# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19085# resulting binary.
19086hardcode_direct=$hardcode_direct_GCJ
19087
19088# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19089# resulting binary.
19090hardcode_minus_L=$hardcode_minus_L_GCJ
19091
19092# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19093# the resulting binary.
19094hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19095
19096# Set to yes if building a shared library automatically hardcodes DIR into the library
19097# and all subsequent libraries and executables linked against it.
19098hardcode_automatic=$hardcode_automatic_GCJ
19099
19100# Variables whose values should be saved in libtool wrapper scripts and
19101# restored at relink time.
19102variables_saved_for_relink="$variables_saved_for_relink"
19103
19104# Whether libtool must link a program against all its dependency libraries.
19105link_all_deplibs=$link_all_deplibs_GCJ
19106
19107# Compile-time system search path for libraries
19108sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19109
19110# Run-time system search path for libraries
19111sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19112
19113# Fix the shell variable \$srcfile for the compiler.
19114fix_srcfile_path="$fix_srcfile_path_GCJ"
19115
19116# Set to yes if exported symbols are required.
19117always_export_symbols=$always_export_symbols_GCJ
19118
19119# The commands to list exported symbols.
19120export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19121
19122# The commands to extract the exported symbol list from a shared archive.
19123extract_expsyms_cmds=$lt_extract_expsyms_cmds
19124
19125# Symbols that should not be listed in the preloaded symbols.
19126exclude_expsyms=$lt_exclude_expsyms_GCJ
19127
19128# Symbols that must always be exported.
19129include_expsyms=$lt_include_expsyms_GCJ
19130
19131# ### END LIBTOOL TAG CONFIG: $tagname
19132
19133__EOF__
19134
19135
19136else
19137  # If there is no Makefile yet, we rely on a make rule to execute
19138  # `config.status --recheck' to rerun these tests and create the
19139  # libtool script then.
19140  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19141  if test -f "$ltmain_in"; then
19142    test -f Makefile && make "$ltmain"
19143  fi
19144fi
19145
19146
19147ac_ext=c
19148ac_cpp='$CPP $CPPFLAGS'
19149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19151ac_compiler_gnu=$ac_cv_c_compiler_gnu
19152
19153CC="$lt_save_CC"
19154
19155	else
19156	  tagname=""
19157	fi
19158	;;
19159
19160      RC)
19161
19162
19163
19164# Source file extension for RC test sources.
19165ac_ext=rc
19166
19167# Object file extension for compiled RC test sources.
19168objext=o
19169objext_RC=$objext
19170
19171# Code to be used in simple compile tests
19172lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19173
19174# Code to be used in simple link tests
19175lt_simple_link_test_code="$lt_simple_compile_test_code"
19176
19177# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19178
19179# If no C compiler was specified, use CC.
19180LTCC=${LTCC-"$CC"}
19181
19182# Allow CC to be a program name with arguments.
19183compiler=$CC
19184
19185
19186# save warnings/boilerplate of simple test code
19187ac_outfile=conftest.$ac_objext
19188printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19189eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19190_lt_compiler_boilerplate=`cat conftest.err`
19191$rm conftest*
19192
19193ac_outfile=conftest.$ac_objext
19194printf "$lt_simple_link_test_code" >conftest.$ac_ext
19195eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19196_lt_linker_boilerplate=`cat conftest.err`
19197$rm conftest*
19198
19199
19200# Allow CC to be a program name with arguments.
19201lt_save_CC="$CC"
19202CC=${RC-"windres"}
19203compiler=$CC
19204compiler_RC=$CC
19205for cc_temp in $compiler""; do
19206  case $cc_temp in
19207    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19208    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19209    \-*) ;;
19210    *) break;;
19211  esac
19212done
19213cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19214
19215lt_cv_prog_compiler_c_o_RC=yes
19216
19217# The else clause should only fire when bootstrapping the
19218# libtool distribution, otherwise you forgot to ship ltmain.sh
19219# with your package, and you will get complaints that there are
19220# no rules to generate ltmain.sh.
19221if test -f "$ltmain"; then
19222  # See if we are running on zsh, and set the options which allow our commands through
19223  # without removal of \ escapes.
19224  if test -n "${ZSH_VERSION+set}" ; then
19225    setopt NO_GLOB_SUBST
19226  fi
19227  # Now quote all the things that may contain metacharacters while being
19228  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19229  # variables and quote the copies for generation of the libtool script.
19230  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19231    SED SHELL STRIP \
19232    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19233    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19234    deplibs_check_method reload_flag reload_cmds need_locks \
19235    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19236    lt_cv_sys_global_symbol_to_c_name_address \
19237    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19238    old_postinstall_cmds old_postuninstall_cmds \
19239    compiler_RC \
19240    CC_RC \
19241    LD_RC \
19242    lt_prog_compiler_wl_RC \
19243    lt_prog_compiler_pic_RC \
19244    lt_prog_compiler_static_RC \
19245    lt_prog_compiler_no_builtin_flag_RC \
19246    export_dynamic_flag_spec_RC \
19247    thread_safe_flag_spec_RC \
19248    whole_archive_flag_spec_RC \
19249    enable_shared_with_static_runtimes_RC \
19250    old_archive_cmds_RC \
19251    old_archive_from_new_cmds_RC \
19252    predep_objects_RC \
19253    postdep_objects_RC \
19254    predeps_RC \
19255    postdeps_RC \
19256    compiler_lib_search_path_RC \
19257    archive_cmds_RC \
19258    archive_expsym_cmds_RC \
19259    postinstall_cmds_RC \
19260    postuninstall_cmds_RC \
19261    old_archive_from_expsyms_cmds_RC \
19262    allow_undefined_flag_RC \
19263    no_undefined_flag_RC \
19264    export_symbols_cmds_RC \
19265    hardcode_libdir_flag_spec_RC \
19266    hardcode_libdir_flag_spec_ld_RC \
19267    hardcode_libdir_separator_RC \
19268    hardcode_automatic_RC \
19269    module_cmds_RC \
19270    module_expsym_cmds_RC \
19271    lt_cv_prog_compiler_c_o_RC \
19272    exclude_expsyms_RC \
19273    include_expsyms_RC; do
19274
19275    case $var in
19276    old_archive_cmds_RC | \
19277    old_archive_from_new_cmds_RC | \
19278    archive_cmds_RC | \
19279    archive_expsym_cmds_RC | \
19280    module_cmds_RC | \
19281    module_expsym_cmds_RC | \
19282    old_archive_from_expsyms_cmds_RC | \
19283    export_symbols_cmds_RC | \
19284    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19285    postinstall_cmds | postuninstall_cmds | \
19286    old_postinstall_cmds | old_postuninstall_cmds | \
19287    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19288      # Double-quote double-evaled strings.
19289      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19290      ;;
19291    *)
19292      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19293      ;;
19294    esac
19295  done
19296
19297  case $lt_echo in
19298  *'\$0 --fallback-echo"')
19299    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19300    ;;
19301  esac
19302
19303cfgfile="$ofile"
19304
19305  cat <<__EOF__ >> "$cfgfile"
19306# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19307
19308# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19309
19310# Shell to use when invoking shell scripts.
19311SHELL=$lt_SHELL
19312
19313# Whether or not to build shared libraries.
19314build_libtool_libs=$enable_shared
19315
19316# Whether or not to build static libraries.
19317build_old_libs=$enable_static
19318
19319# Whether or not to add -lc for building shared libraries.
19320build_libtool_need_lc=$archive_cmds_need_lc_RC
19321
19322# Whether or not to disallow shared libs when runtime libs are static
19323allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19324
19325# Whether or not to optimize for fast installation.
19326fast_install=$enable_fast_install
19327
19328# The host system.
19329host_alias=$host_alias
19330host=$host
19331host_os=$host_os
19332
19333# The build system.
19334build_alias=$build_alias
19335build=$build
19336build_os=$build_os
19337
19338# An echo program that does not interpret backslashes.
19339echo=$lt_echo
19340
19341# The archiver.
19342AR=$lt_AR
19343AR_FLAGS=$lt_AR_FLAGS
19344
19345# A C compiler.
19346LTCC=$lt_LTCC
19347
19348# A language-specific compiler.
19349CC=$lt_compiler_RC
19350
19351# Is the compiler the GNU C compiler?
19352with_gcc=$GCC_RC
19353
19354# An ERE matcher.
19355EGREP=$lt_EGREP
19356
19357# The linker used to build libraries.
19358LD=$lt_LD_RC
19359
19360# Whether we need hard or soft links.
19361LN_S=$lt_LN_S
19362
19363# A BSD-compatible nm program.
19364NM=$lt_NM
19365
19366# A symbol stripping program
19367STRIP=$lt_STRIP
19368
19369# Used to examine libraries when file_magic_cmd begins "file"
19370MAGIC_CMD=$MAGIC_CMD
19371
19372# Used on cygwin: DLL creation program.
19373DLLTOOL="$DLLTOOL"
19374
19375# Used on cygwin: object dumper.
19376OBJDUMP="$OBJDUMP"
19377
19378# Used on cygwin: assembler.
19379AS="$AS"
19380
19381# The name of the directory that contains temporary libtool files.
19382objdir=$objdir
19383
19384# How to create reloadable object files.
19385reload_flag=$lt_reload_flag
19386reload_cmds=$lt_reload_cmds
19387
19388# How to pass a linker flag through the compiler.
19389wl=$lt_lt_prog_compiler_wl_RC
19390
19391# Object file suffix (normally "o").
19392objext="$ac_objext"
19393
19394# Old archive suffix (normally "a").
19395libext="$libext"
19396
19397# Shared library suffix (normally ".so").
19398shrext_cmds='$shrext_cmds'
19399
19400# Executable file suffix (normally "").
19401exeext="$exeext"
19402
19403# Additional compiler flags for building library objects.
19404pic_flag=$lt_lt_prog_compiler_pic_RC
19405pic_mode=$pic_mode
19406
19407# What is the maximum length of a command?
19408max_cmd_len=$lt_cv_sys_max_cmd_len
19409
19410# Does compiler simultaneously support -c and -o options?
19411compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19412
19413# Must we lock files when doing compilation?
19414need_locks=$lt_need_locks
19415
19416# Do we need the lib prefix for modules?
19417need_lib_prefix=$need_lib_prefix
19418
19419# Do we need a version for libraries?
19420need_version=$need_version
19421
19422# Whether dlopen is supported.
19423dlopen_support=$enable_dlopen
19424
19425# Whether dlopen of programs is supported.
19426dlopen_self=$enable_dlopen_self
19427
19428# Whether dlopen of statically linked programs is supported.
19429dlopen_self_static=$enable_dlopen_self_static
19430
19431# Compiler flag to prevent dynamic linking.
19432link_static_flag=$lt_lt_prog_compiler_static_RC
19433
19434# Compiler flag to turn off builtin functions.
19435no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19436
19437# Compiler flag to allow reflexive dlopens.
19438export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19439
19440# Compiler flag to generate shared objects directly from archives.
19441whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19442
19443# Compiler flag to generate thread-safe objects.
19444thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19445
19446# Library versioning type.
19447version_type=$version_type
19448
19449# Format of library name prefix.
19450libname_spec=$lt_libname_spec
19451
19452# List of archive names.  First name is the real one, the rest are links.
19453# The last name is the one that the linker finds with -lNAME.
19454library_names_spec=$lt_library_names_spec
19455
19456# The coded name of the library, if different from the real name.
19457soname_spec=$lt_soname_spec
19458
19459# Commands used to build and install an old-style archive.
19460RANLIB=$lt_RANLIB
19461old_archive_cmds=$lt_old_archive_cmds_RC
19462old_postinstall_cmds=$lt_old_postinstall_cmds
19463old_postuninstall_cmds=$lt_old_postuninstall_cmds
19464
19465# Create an old-style archive from a shared archive.
19466old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19467
19468# Create a temporary old-style archive to link instead of a shared archive.
19469old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19470
19471# Commands used to build and install a shared archive.
19472archive_cmds=$lt_archive_cmds_RC
19473archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19474postinstall_cmds=$lt_postinstall_cmds
19475postuninstall_cmds=$lt_postuninstall_cmds
19476
19477# Commands used to build a loadable module (assumed same as above if empty)
19478module_cmds=$lt_module_cmds_RC
19479module_expsym_cmds=$lt_module_expsym_cmds_RC
19480
19481# Commands to strip libraries.
19482old_striplib=$lt_old_striplib
19483striplib=$lt_striplib
19484
19485# Dependencies to place before the objects being linked to create a
19486# shared library.
19487predep_objects=$lt_predep_objects_RC
19488
19489# Dependencies to place after the objects being linked to create a
19490# shared library.
19491postdep_objects=$lt_postdep_objects_RC
19492
19493# Dependencies to place before the objects being linked to create a
19494# shared library.
19495predeps=$lt_predeps_RC
19496
19497# Dependencies to place after the objects being linked to create a
19498# shared library.
19499postdeps=$lt_postdeps_RC
19500
19501# The library search path used internally by the compiler when linking
19502# a shared library.
19503compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19504
19505# Method to check whether dependent libraries are shared objects.
19506deplibs_check_method=$lt_deplibs_check_method
19507
19508# Command to use when deplibs_check_method == file_magic.
19509file_magic_cmd=$lt_file_magic_cmd
19510
19511# Flag that allows shared libraries with undefined symbols to be built.
19512allow_undefined_flag=$lt_allow_undefined_flag_RC
19513
19514# Flag that forces no undefined symbols.
19515no_undefined_flag=$lt_no_undefined_flag_RC
19516
19517# Commands used to finish a libtool library installation in a directory.
19518finish_cmds=$lt_finish_cmds
19519
19520# Same as above, but a single script fragment to be evaled but not shown.
19521finish_eval=$lt_finish_eval
19522
19523# Take the output of nm and produce a listing of raw symbols and C names.
19524global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19525
19526# Transform the output of nm in a proper C declaration
19527global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19528
19529# Transform the output of nm in a C name address pair
19530global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19531
19532# This is the shared library runtime path variable.
19533runpath_var=$runpath_var
19534
19535# This is the shared library path variable.
19536shlibpath_var=$shlibpath_var
19537
19538# Is shlibpath searched before the hard-coded library search path?
19539shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19540
19541# How to hardcode a shared library path into an executable.
19542hardcode_action=$hardcode_action_RC
19543
19544# Whether we should hardcode library paths into libraries.
19545hardcode_into_libs=$hardcode_into_libs
19546
19547# Flag to hardcode \$libdir into a binary during linking.
19548# This must work even if \$libdir does not exist.
19549hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19550
19551# If ld is used when linking, flag to hardcode \$libdir into
19552# a binary during linking. This must work even if \$libdir does
19553# not exist.
19554hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19555
19556# Whether we need a single -rpath flag with a separated argument.
19557hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19558
19559# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19560# resulting binary.
19561hardcode_direct=$hardcode_direct_RC
19562
19563# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19564# resulting binary.
19565hardcode_minus_L=$hardcode_minus_L_RC
19566
19567# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19568# the resulting binary.
19569hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19570
19571# Set to yes if building a shared library automatically hardcodes DIR into the library
19572# and all subsequent libraries and executables linked against it.
19573hardcode_automatic=$hardcode_automatic_RC
19574
19575# Variables whose values should be saved in libtool wrapper scripts and
19576# restored at relink time.
19577variables_saved_for_relink="$variables_saved_for_relink"
19578
19579# Whether libtool must link a program against all its dependency libraries.
19580link_all_deplibs=$link_all_deplibs_RC
19581
19582# Compile-time system search path for libraries
19583sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19584
19585# Run-time system search path for libraries
19586sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19587
19588# Fix the shell variable \$srcfile for the compiler.
19589fix_srcfile_path="$fix_srcfile_path_RC"
19590
19591# Set to yes if exported symbols are required.
19592always_export_symbols=$always_export_symbols_RC
19593
19594# The commands to list exported symbols.
19595export_symbols_cmds=$lt_export_symbols_cmds_RC
19596
19597# The commands to extract the exported symbol list from a shared archive.
19598extract_expsyms_cmds=$lt_extract_expsyms_cmds
19599
19600# Symbols that should not be listed in the preloaded symbols.
19601exclude_expsyms=$lt_exclude_expsyms_RC
19602
19603# Symbols that must always be exported.
19604include_expsyms=$lt_include_expsyms_RC
19605
19606# ### END LIBTOOL TAG CONFIG: $tagname
19607
19608__EOF__
19609
19610
19611else
19612  # If there is no Makefile yet, we rely on a make rule to execute
19613  # `config.status --recheck' to rerun these tests and create the
19614  # libtool script then.
19615  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19616  if test -f "$ltmain_in"; then
19617    test -f Makefile && make "$ltmain"
19618  fi
19619fi
19620
19621
19622ac_ext=c
19623ac_cpp='$CPP $CPPFLAGS'
19624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626ac_compiler_gnu=$ac_cv_c_compiler_gnu
19627
19628CC="$lt_save_CC"
19629
19630	;;
19631
19632      *)
19633	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19634echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19635   { (exit 1); exit 1; }; }
19636	;;
19637      esac
19638
19639      # Append the new tag name to the list of available tags.
19640      if test -n "$tagname" ; then
19641      available_tags="$available_tags $tagname"
19642    fi
19643    fi
19644  done
19645  IFS="$lt_save_ifs"
19646
19647  # Now substitute the updated list of available tags.
19648  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19649    mv "${ofile}T" "$ofile"
19650    chmod +x "$ofile"
19651  else
19652    rm -f "${ofile}T"
19653    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19654echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19655   { (exit 1); exit 1; }; }
19656  fi
19657fi
19658
19659
19660
19661# This can be used to rebuild libtool when needed
19662LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19663
19664# Always use our own libtool.
19665LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19666
19667# Prevent multiple expansion
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691## ---------------------------- ##
19692## C headers required by cdemo. ##
19693## ---------------------------- ##
19694
19695for ac_header in math.h
19696do
19697as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19698if eval "test \"\${$as_ac_Header+set}\" = set"; then
19699  echo "$as_me:$LINENO: checking for $ac_header" >&5
19700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19701if eval "test \"\${$as_ac_Header+set}\" = set"; then
19702  echo $ECHO_N "(cached) $ECHO_C" >&6
19703fi
19704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19706else
19707  # Is the header compilable?
19708echo "$as_me:$LINENO: checking $ac_header usability" >&5
19709echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19710cat >conftest.$ac_ext <<_ACEOF
19711/* confdefs.h.  */
19712_ACEOF
19713cat confdefs.h >>conftest.$ac_ext
19714cat >>conftest.$ac_ext <<_ACEOF
19715/* end confdefs.h.  */
19716$ac_includes_default
19717#include <$ac_header>
19718_ACEOF
19719rm -f conftest.$ac_objext
19720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19721  (eval $ac_compile) 2>conftest.er1
19722  ac_status=$?
19723  grep -v '^ *+' conftest.er1 >conftest.err
19724  rm -f conftest.er1
19725  cat conftest.err >&5
19726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727  (exit $ac_status); } &&
19728	 { ac_try='test -z "$ac_c_werror_flag"
19729			 || test ! -s conftest.err'
19730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731  (eval $ac_try) 2>&5
19732  ac_status=$?
19733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734  (exit $ac_status); }; } &&
19735	 { ac_try='test -s conftest.$ac_objext'
19736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737  (eval $ac_try) 2>&5
19738  ac_status=$?
19739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740  (exit $ac_status); }; }; then
19741  ac_header_compiler=yes
19742else
19743  echo "$as_me: failed program was:" >&5
19744sed 's/^/| /' conftest.$ac_ext >&5
19745
19746ac_header_compiler=no
19747fi
19748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19749echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19750echo "${ECHO_T}$ac_header_compiler" >&6
19751
19752# Is the header present?
19753echo "$as_me:$LINENO: checking $ac_header presence" >&5
19754echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19755cat >conftest.$ac_ext <<_ACEOF
19756/* confdefs.h.  */
19757_ACEOF
19758cat confdefs.h >>conftest.$ac_ext
19759cat >>conftest.$ac_ext <<_ACEOF
19760/* end confdefs.h.  */
19761#include <$ac_header>
19762_ACEOF
19763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19764  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19765  ac_status=$?
19766  grep -v '^ *+' conftest.er1 >conftest.err
19767  rm -f conftest.er1
19768  cat conftest.err >&5
19769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770  (exit $ac_status); } >/dev/null; then
19771  if test -s conftest.err; then
19772    ac_cpp_err=$ac_c_preproc_warn_flag
19773    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19774  else
19775    ac_cpp_err=
19776  fi
19777else
19778  ac_cpp_err=yes
19779fi
19780if test -z "$ac_cpp_err"; then
19781  ac_header_preproc=yes
19782else
19783  echo "$as_me: failed program was:" >&5
19784sed 's/^/| /' conftest.$ac_ext >&5
19785
19786  ac_header_preproc=no
19787fi
19788rm -f conftest.err conftest.$ac_ext
19789echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19790echo "${ECHO_T}$ac_header_preproc" >&6
19791
19792# So?  What about this header?
19793case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19794  yes:no: )
19795    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19796echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19797    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19798echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19799    ac_header_preproc=yes
19800    ;;
19801  no:yes:* )
19802    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19803echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19804    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19805echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19806    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19807echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19808    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19809echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19810    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19812    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19813echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19814    (
19815      cat <<\_ASBOX
19816## ---------------------------------- ##
19817## Report this to bug-libtool@gnu.org ##
19818## ---------------------------------- ##
19819_ASBOX
19820    ) |
19821      sed "s/^/$as_me: WARNING:     /" >&2
19822    ;;
19823esac
19824echo "$as_me:$LINENO: checking for $ac_header" >&5
19825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19826if eval "test \"\${$as_ac_Header+set}\" = set"; then
19827  echo $ECHO_N "(cached) $ECHO_C" >&6
19828else
19829  eval "$as_ac_Header=\$ac_header_preproc"
19830fi
19831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19833
19834fi
19835if test `eval echo '${'$as_ac_Header'}'` = yes; then
19836  cat >>confdefs.h <<_ACEOF
19837#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19838_ACEOF
19839
19840fi
19841
19842done
19843
19844
19845
19846## ---------------------------- ##
19847## Libraries required by cdemo. ##
19848## ---------------------------- ##
19849LIBM=
19850case $host in
19851*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin* | *-*-haiku*)
19852  # These system don't have libm, or don't need it
19853  ;;
19854*-ncr-sysv4.3*)
19855  echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
19856echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
19857if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
19858  echo $ECHO_N "(cached) $ECHO_C" >&6
19859else
19860  ac_check_lib_save_LIBS=$LIBS
19861LIBS="-lmw  $LIBS"
19862cat >conftest.$ac_ext <<_ACEOF
19863/* confdefs.h.  */
19864_ACEOF
19865cat confdefs.h >>conftest.$ac_ext
19866cat >>conftest.$ac_ext <<_ACEOF
19867/* end confdefs.h.  */
19868
19869/* Override any gcc2 internal prototype to avoid an error.  */
19870#ifdef __cplusplus
19871extern "C"
19872#endif
19873/* We use char because int might match the return type of a gcc2
19874   builtin and then its argument prototype would still apply.  */
19875char _mwvalidcheckl ();
19876int
19877main ()
19878{
19879_mwvalidcheckl ();
19880  ;
19881  return 0;
19882}
19883_ACEOF
19884rm -f conftest.$ac_objext conftest$ac_exeext
19885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19886  (eval $ac_link) 2>conftest.er1
19887  ac_status=$?
19888  grep -v '^ *+' conftest.er1 >conftest.err
19889  rm -f conftest.er1
19890  cat conftest.err >&5
19891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892  (exit $ac_status); } &&
19893	 { ac_try='test -z "$ac_c_werror_flag"
19894			 || test ! -s conftest.err'
19895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896  (eval $ac_try) 2>&5
19897  ac_status=$?
19898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899  (exit $ac_status); }; } &&
19900	 { ac_try='test -s conftest$ac_exeext'
19901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19902  (eval $ac_try) 2>&5
19903  ac_status=$?
19904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905  (exit $ac_status); }; }; then
19906  ac_cv_lib_mw__mwvalidcheckl=yes
19907else
19908  echo "$as_me: failed program was:" >&5
19909sed 's/^/| /' conftest.$ac_ext >&5
19910
19911ac_cv_lib_mw__mwvalidcheckl=no
19912fi
19913rm -f conftest.err conftest.$ac_objext \
19914      conftest$ac_exeext conftest.$ac_ext
19915LIBS=$ac_check_lib_save_LIBS
19916fi
19917echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
19918echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
19919if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
19920  LIBM="-lmw"
19921fi
19922
19923  echo "$as_me:$LINENO: checking for cos in -lm" >&5
19924echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
19925if test "${ac_cv_lib_m_cos+set}" = set; then
19926  echo $ECHO_N "(cached) $ECHO_C" >&6
19927else
19928  ac_check_lib_save_LIBS=$LIBS
19929LIBS="-lm  $LIBS"
19930cat >conftest.$ac_ext <<_ACEOF
19931/* confdefs.h.  */
19932_ACEOF
19933cat confdefs.h >>conftest.$ac_ext
19934cat >>conftest.$ac_ext <<_ACEOF
19935/* end confdefs.h.  */
19936
19937/* Override any gcc2 internal prototype to avoid an error.  */
19938#ifdef __cplusplus
19939extern "C"
19940#endif
19941/* We use char because int might match the return type of a gcc2
19942   builtin and then its argument prototype would still apply.  */
19943char cos ();
19944int
19945main ()
19946{
19947cos ();
19948  ;
19949  return 0;
19950}
19951_ACEOF
19952rm -f conftest.$ac_objext conftest$ac_exeext
19953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19954  (eval $ac_link) 2>conftest.er1
19955  ac_status=$?
19956  grep -v '^ *+' conftest.er1 >conftest.err
19957  rm -f conftest.er1
19958  cat conftest.err >&5
19959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960  (exit $ac_status); } &&
19961	 { ac_try='test -z "$ac_c_werror_flag"
19962			 || test ! -s conftest.err'
19963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964  (eval $ac_try) 2>&5
19965  ac_status=$?
19966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967  (exit $ac_status); }; } &&
19968	 { ac_try='test -s conftest$ac_exeext'
19969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19970  (eval $ac_try) 2>&5
19971  ac_status=$?
19972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973  (exit $ac_status); }; }; then
19974  ac_cv_lib_m_cos=yes
19975else
19976  echo "$as_me: failed program was:" >&5
19977sed 's/^/| /' conftest.$ac_ext >&5
19978
19979ac_cv_lib_m_cos=no
19980fi
19981rm -f conftest.err conftest.$ac_objext \
19982      conftest$ac_exeext conftest.$ac_ext
19983LIBS=$ac_check_lib_save_LIBS
19984fi
19985echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
19986echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
19987if test $ac_cv_lib_m_cos = yes; then
19988  LIBM="$LIBM -lm"
19989fi
19990
19991  ;;
19992*)
19993  echo "$as_me:$LINENO: checking for cos in -lm" >&5
19994echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
19995if test "${ac_cv_lib_m_cos+set}" = set; then
19996  echo $ECHO_N "(cached) $ECHO_C" >&6
19997else
19998  ac_check_lib_save_LIBS=$LIBS
19999LIBS="-lm  $LIBS"
20000cat >conftest.$ac_ext <<_ACEOF
20001/* confdefs.h.  */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h.  */
20006
20007/* Override any gcc2 internal prototype to avoid an error.  */
20008#ifdef __cplusplus
20009extern "C"
20010#endif
20011/* We use char because int might match the return type of a gcc2
20012   builtin and then its argument prototype would still apply.  */
20013char cos ();
20014int
20015main ()
20016{
20017cos ();
20018  ;
20019  return 0;
20020}
20021_ACEOF
20022rm -f conftest.$ac_objext conftest$ac_exeext
20023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20024  (eval $ac_link) 2>conftest.er1
20025  ac_status=$?
20026  grep -v '^ *+' conftest.er1 >conftest.err
20027  rm -f conftest.er1
20028  cat conftest.err >&5
20029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030  (exit $ac_status); } &&
20031	 { ac_try='test -z "$ac_c_werror_flag"
20032			 || test ! -s conftest.err'
20033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034  (eval $ac_try) 2>&5
20035  ac_status=$?
20036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037  (exit $ac_status); }; } &&
20038	 { ac_try='test -s conftest$ac_exeext'
20039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040  (eval $ac_try) 2>&5
20041  ac_status=$?
20042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043  (exit $ac_status); }; }; then
20044  ac_cv_lib_m_cos=yes
20045else
20046  echo "$as_me: failed program was:" >&5
20047sed 's/^/| /' conftest.$ac_ext >&5
20048
20049ac_cv_lib_m_cos=no
20050fi
20051rm -f conftest.err conftest.$ac_objext \
20052      conftest$ac_exeext conftest.$ac_ext
20053LIBS=$ac_check_lib_save_LIBS
20054fi
20055echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20056echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20057if test $ac_cv_lib_m_cos = yes; then
20058  LIBM="-lm"
20059fi
20060
20061  ;;
20062esac
20063
20064
20065
20066
20067## -------- ##
20068## Outputs. ##
20069## -------- ##
20070          ac_config_files="$ac_config_files Makefile"
20071
20072cat >confcache <<\_ACEOF
20073# This file is a shell script that caches the results of configure
20074# tests run on this system so they can be shared between configure
20075# scripts and configure runs, see configure's option --config-cache.
20076# It is not useful on other systems.  If it contains results you don't
20077# want to keep, you may remove or edit it.
20078#
20079# config.status only pays attention to the cache file if you give it
20080# the --recheck option to rerun configure.
20081#
20082# `ac_cv_env_foo' variables (set or unset) will be overridden when
20083# loading this file, other *unset* `ac_cv_foo' will be assigned the
20084# following values.
20085
20086_ACEOF
20087
20088# The following way of writing the cache mishandles newlines in values,
20089# but we know of no workaround that is simple, portable, and efficient.
20090# So, don't put newlines in cache variables' values.
20091# Ultrix sh set writes to stderr and can't be redirected directly,
20092# and sets the high bit in the cache file unless we assign to the vars.
20093{
20094  (set) 2>&1 |
20095    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20096    *ac_space=\ *)
20097      # `set' does not quote correctly, so add quotes (double-quote
20098      # substitution turns \\\\ into \\, and sed turns \\ into \).
20099      sed -n \
20100	"s/'/'\\\\''/g;
20101	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20102      ;;
20103    *)
20104      # `set' quotes correctly as required by POSIX, so do not add quotes.
20105      sed -n \
20106	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20107      ;;
20108    esac;
20109} |
20110  sed '
20111     t clear
20112     : clear
20113     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20114     t end
20115     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20116     : end' >>confcache
20117if diff $cache_file confcache >/dev/null 2>&1; then :; else
20118  if test -w $cache_file; then
20119    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20120    cat confcache >$cache_file
20121  else
20122    echo "not updating unwritable cache $cache_file"
20123  fi
20124fi
20125rm -f confcache
20126
20127test "x$prefix" = xNONE && prefix=$ac_default_prefix
20128# Let make expand exec_prefix.
20129test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20130
20131# VPATH may cause trouble with some makes, so we remove $(srcdir),
20132# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20133# trailing colons and then remove the whole line if VPATH becomes empty
20134# (actually we leave an empty line to preserve line numbers).
20135if test "x$srcdir" = x.; then
20136  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20137s/:*\$(srcdir):*/:/;
20138s/:*\${srcdir}:*/:/;
20139s/:*@srcdir@:*/:/;
20140s/^\([^=]*=[	 ]*\):*/\1/;
20141s/:*$//;
20142s/^[^=]*=[	 ]*$//;
20143}'
20144fi
20145
20146# Transform confdefs.h into DEFS.
20147# Protect against shell expansion while executing Makefile rules.
20148# Protect against Makefile macro expansion.
20149#
20150# If the first sed substitution is executed (which looks for macros that
20151# take arguments), then we branch to the quote section.  Otherwise,
20152# look for a macro that doesn't take arguments.
20153cat >confdef2opt.sed <<\_ACEOF
20154t clear
20155: clear
20156s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
20157t quote
20158s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
20159t quote
20160d
20161: quote
20162s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
20163s,\[,\\&,g
20164s,\],\\&,g
20165s,\$,$$,g
20166p
20167_ACEOF
20168# We use echo to avoid assuming a particular line-breaking character.
20169# The extra dot is to prevent the shell from consuming trailing
20170# line-breaks from the sub-command output.  A line-break within
20171# single-quotes doesn't work because, if this script is created in a
20172# platform that uses two characters for line-breaks (e.g., DOS), tr
20173# would break.
20174ac_LF_and_DOT=`echo; echo .`
20175DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20176rm -f confdef2opt.sed
20177
20178
20179ac_libobjs=
20180ac_ltlibobjs=
20181for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20182  # 1. Remove the extension, and $U if already installed.
20183  ac_i=`echo "$ac_i" |
20184	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20185  # 2. Add them.
20186  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20187  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20188done
20189LIBOBJS=$ac_libobjs
20190
20191LTLIBOBJS=$ac_ltlibobjs
20192
20193
20194if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20195  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20196Usually this means the macro was only invoked conditionally." >&5
20197echo "$as_me: error: conditional \"AMDEP\" was never defined.
20198Usually this means the macro was only invoked conditionally." >&2;}
20199   { (exit 1); exit 1; }; }
20200fi
20201if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20202  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20203Usually this means the macro was only invoked conditionally." >&5
20204echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20205Usually this means the macro was only invoked conditionally." >&2;}
20206   { (exit 1); exit 1; }; }
20207fi
20208if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20209  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20210Usually this means the macro was only invoked conditionally." >&5
20211echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20212Usually this means the macro was only invoked conditionally." >&2;}
20213   { (exit 1); exit 1; }; }
20214fi
20215
20216: ${CONFIG_STATUS=./config.status}
20217ac_clean_files_save=$ac_clean_files
20218ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20219{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20220echo "$as_me: creating $CONFIG_STATUS" >&6;}
20221cat >$CONFIG_STATUS <<_ACEOF
20222#! $SHELL
20223# Generated by $as_me.
20224# Run this file to recreate the current configuration.
20225# Compiler output produced by configure, useful for debugging
20226# configure, is in config.log if it exists.
20227
20228debug=false
20229ac_cs_recheck=false
20230ac_cs_silent=false
20231SHELL=\${CONFIG_SHELL-$SHELL}
20232_ACEOF
20233
20234cat >>$CONFIG_STATUS <<\_ACEOF
20235## --------------------- ##
20236## M4sh Initialization.  ##
20237## --------------------- ##
20238
20239# Be Bourne compatible
20240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20241  emulate sh
20242  NULLCMD=:
20243  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20244  # is contrary to our usage.  Disable this feature.
20245  alias -g '${1+"$@"}'='"$@"'
20246elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20247  set -o posix
20248fi
20249DUALCASE=1; export DUALCASE # for MKS sh
20250
20251# Support unset when possible.
20252if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20253  as_unset=unset
20254else
20255  as_unset=false
20256fi
20257
20258
20259# Work around bugs in pre-3.0 UWIN ksh.
20260$as_unset ENV MAIL MAILPATH
20261PS1='$ '
20262PS2='> '
20263PS4='+ '
20264
20265# NLS nuisances.
20266for as_var in \
20267  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20268  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20269  LC_TELEPHONE LC_TIME
20270do
20271  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20272    eval $as_var=C; export $as_var
20273  else
20274    $as_unset $as_var
20275  fi
20276done
20277
20278# Required to use basename.
20279if expr a : '\(a\)' >/dev/null 2>&1; then
20280  as_expr=expr
20281else
20282  as_expr=false
20283fi
20284
20285if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20286  as_basename=basename
20287else
20288  as_basename=false
20289fi
20290
20291
20292# Name of the executable.
20293as_me=`$as_basename "$0" ||
20294$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20295	 X"$0" : 'X\(//\)$' \| \
20296	 X"$0" : 'X\(/\)$' \| \
20297	 .     : '\(.\)' 2>/dev/null ||
20298echo X/"$0" |
20299    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20300  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20301  	  /^X\/\(\/\).*/{ s//\1/; q; }
20302  	  s/.*/./; q'`
20303
20304
20305# PATH needs CR, and LINENO needs CR and PATH.
20306# Avoid depending upon Character Ranges.
20307as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20308as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20309as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20310as_cr_digits='0123456789'
20311as_cr_alnum=$as_cr_Letters$as_cr_digits
20312
20313# The user is always right.
20314if test "${PATH_SEPARATOR+set}" != set; then
20315  echo "#! /bin/sh" >conf$$.sh
20316  echo  "exit 0"   >>conf$$.sh
20317  chmod +x conf$$.sh
20318  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20319    PATH_SEPARATOR=';'
20320  else
20321    PATH_SEPARATOR=:
20322  fi
20323  rm -f conf$$.sh
20324fi
20325
20326
20327  as_lineno_1=$LINENO
20328  as_lineno_2=$LINENO
20329  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20330  test "x$as_lineno_1" != "x$as_lineno_2" &&
20331  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20332  # Find who we are.  Look in the path if we contain no path at all
20333  # relative or not.
20334  case $0 in
20335    *[\\/]* ) as_myself=$0 ;;
20336    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20337for as_dir in $PATH
20338do
20339  IFS=$as_save_IFS
20340  test -z "$as_dir" && as_dir=.
20341  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20342done
20343
20344       ;;
20345  esac
20346  # We did not find ourselves, most probably we were run as `sh COMMAND'
20347  # in which case we are not to be found in the path.
20348  if test "x$as_myself" = x; then
20349    as_myself=$0
20350  fi
20351  if test ! -f "$as_myself"; then
20352    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20353echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20354   { (exit 1); exit 1; }; }
20355  fi
20356  case $CONFIG_SHELL in
20357  '')
20358    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20359for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20360do
20361  IFS=$as_save_IFS
20362  test -z "$as_dir" && as_dir=.
20363  for as_base in sh bash ksh sh5; do
20364	 case $as_dir in
20365	 /*)
20366	   if ("$as_dir/$as_base" -c '
20367  as_lineno_1=$LINENO
20368  as_lineno_2=$LINENO
20369  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20370  test "x$as_lineno_1" != "x$as_lineno_2" &&
20371  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20372	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20373	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20374	     CONFIG_SHELL=$as_dir/$as_base
20375	     export CONFIG_SHELL
20376	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20377	   fi;;
20378	 esac
20379       done
20380done
20381;;
20382  esac
20383
20384  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20385  # uniformly replaced by the line number.  The first 'sed' inserts a
20386  # line-number line before each line; the second 'sed' does the real
20387  # work.  The second script uses 'N' to pair each line-number line
20388  # with the numbered line, and appends trailing '-' during
20389  # substitution so that $LINENO is not a special case at line end.
20390  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20391  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20392  sed '=' <$as_myself |
20393    sed '
20394      N
20395      s,$,-,
20396      : loop
20397      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20398      t loop
20399      s,-$,,
20400      s,^['$as_cr_digits']*\n,,
20401    ' >$as_me.lineno &&
20402  chmod +x $as_me.lineno ||
20403    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20404echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20405   { (exit 1); exit 1; }; }
20406
20407  # Don't try to exec as it changes $[0], causing all sort of problems
20408  # (the dirname of $[0] is not the place where we might find the
20409  # original and so on.  Autoconf is especially sensible to this).
20410  . ./$as_me.lineno
20411  # Exit status is that of the last command.
20412  exit
20413}
20414
20415
20416case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20417  *c*,-n*) ECHO_N= ECHO_C='
20418' ECHO_T='	' ;;
20419  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20420  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20421esac
20422
20423if expr a : '\(a\)' >/dev/null 2>&1; then
20424  as_expr=expr
20425else
20426  as_expr=false
20427fi
20428
20429rm -f conf$$ conf$$.exe conf$$.file
20430echo >conf$$.file
20431if ln -s conf$$.file conf$$ 2>/dev/null; then
20432  # We could just check for DJGPP; but this test a) works b) is more generic
20433  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20434  if test -f conf$$.exe; then
20435    # Don't use ln at all; we don't have any links
20436    as_ln_s='cp -p'
20437  else
20438    as_ln_s='ln -s'
20439  fi
20440elif ln conf$$.file conf$$ 2>/dev/null; then
20441  as_ln_s=ln
20442else
20443  as_ln_s='cp -p'
20444fi
20445rm -f conf$$ conf$$.exe conf$$.file
20446
20447if mkdir -p . 2>/dev/null; then
20448  as_mkdir_p=:
20449else
20450  test -d ./-p && rmdir ./-p
20451  as_mkdir_p=false
20452fi
20453
20454as_executable_p="test -f"
20455
20456# Sed expression to map a string onto a valid CPP name.
20457as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20458
20459# Sed expression to map a string onto a valid variable name.
20460as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20461
20462
20463# IFS
20464# We need space, tab and new line, in precisely that order.
20465as_nl='
20466'
20467IFS=" 	$as_nl"
20468
20469# CDPATH.
20470$as_unset CDPATH
20471
20472exec 6>&1
20473
20474# Open the log real soon, to keep \$[0] and so on meaningful, and to
20475# report actual input values of CONFIG_FILES etc. instead of their
20476# values after options handling.  Logging --version etc. is OK.
20477exec 5>>config.log
20478{
20479  echo
20480  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20481## Running $as_me. ##
20482_ASBOX
20483} >&5
20484cat >&5 <<_CSEOF
20485
20486This file was extended by cdemo $as_me 0.1, which was
20487generated by GNU Autoconf 2.59.  Invocation command line was
20488
20489  CONFIG_FILES    = $CONFIG_FILES
20490  CONFIG_HEADERS  = $CONFIG_HEADERS
20491  CONFIG_LINKS    = $CONFIG_LINKS
20492  CONFIG_COMMANDS = $CONFIG_COMMANDS
20493  $ $0 $@
20494
20495_CSEOF
20496echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20497echo >&5
20498_ACEOF
20499
20500# Files that config.status was made for.
20501if test -n "$ac_config_files"; then
20502  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20503fi
20504
20505if test -n "$ac_config_headers"; then
20506  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20507fi
20508
20509if test -n "$ac_config_links"; then
20510  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20511fi
20512
20513if test -n "$ac_config_commands"; then
20514  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20515fi
20516
20517cat >>$CONFIG_STATUS <<\_ACEOF
20518
20519ac_cs_usage="\
20520\`$as_me' instantiates files from templates according to the
20521current configuration.
20522
20523Usage: $0 [OPTIONS] [FILE]...
20524
20525  -h, --help       print this help, then exit
20526  -V, --version    print version number, then exit
20527  -q, --quiet      do not print progress messages
20528  -d, --debug      don't remove temporary files
20529      --recheck    update $as_me by reconfiguring in the same conditions
20530  --file=FILE[:TEMPLATE]
20531		   instantiate the configuration file FILE
20532
20533Configuration files:
20534$config_files
20535
20536Configuration commands:
20537$config_commands
20538
20539Report bugs to <bug-autoconf@gnu.org>."
20540_ACEOF
20541
20542cat >>$CONFIG_STATUS <<_ACEOF
20543ac_cs_version="\\
20544cdemo config.status 0.1
20545configured by $0, generated by GNU Autoconf 2.59,
20546  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20547
20548Copyright (C) 2003 Free Software Foundation, Inc.
20549This config.status script is free software; the Free Software Foundation
20550gives unlimited permission to copy, distribute and modify it."
20551srcdir=$srcdir
20552INSTALL="$INSTALL"
20553_ACEOF
20554
20555cat >>$CONFIG_STATUS <<\_ACEOF
20556# If no file are specified by the user, then we need to provide default
20557# value.  By we need to know if files were specified by the user.
20558ac_need_defaults=:
20559while test $# != 0
20560do
20561  case $1 in
20562  --*=*)
20563    ac_option=`expr "x$1" : 'x\([^=]*\)='`
20564    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20565    ac_shift=:
20566    ;;
20567  -*)
20568    ac_option=$1
20569    ac_optarg=$2
20570    ac_shift=shift
20571    ;;
20572  *) # This is not an option, so the user has probably given explicit
20573     # arguments.
20574     ac_option=$1
20575     ac_need_defaults=false;;
20576  esac
20577
20578  case $ac_option in
20579  # Handling of the options.
20580_ACEOF
20581cat >>$CONFIG_STATUS <<\_ACEOF
20582  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20583    ac_cs_recheck=: ;;
20584  --version | --vers* | -V )
20585    echo "$ac_cs_version"; exit 0 ;;
20586  --he | --h)
20587    # Conflict between --help and --header
20588    { { echo "$as_me:$LINENO: error: ambiguous option: $1
20589Try \`$0 --help' for more information." >&5
20590echo "$as_me: error: ambiguous option: $1
20591Try \`$0 --help' for more information." >&2;}
20592   { (exit 1); exit 1; }; };;
20593  --help | --hel | -h )
20594    echo "$ac_cs_usage"; exit 0 ;;
20595  --debug | --d* | -d )
20596    debug=: ;;
20597  --file | --fil | --fi | --f )
20598    $ac_shift
20599    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20600    ac_need_defaults=false;;
20601  --header | --heade | --head | --hea )
20602    $ac_shift
20603    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20604    ac_need_defaults=false;;
20605  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20606  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20607    ac_cs_silent=: ;;
20608
20609  # This is an error.
20610  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20611Try \`$0 --help' for more information." >&5
20612echo "$as_me: error: unrecognized option: $1
20613Try \`$0 --help' for more information." >&2;}
20614   { (exit 1); exit 1; }; } ;;
20615
20616  *) ac_config_targets="$ac_config_targets $1" ;;
20617
20618  esac
20619  shift
20620done
20621
20622ac_configure_extra_args=
20623
20624if $ac_cs_silent; then
20625  exec 6>/dev/null
20626  ac_configure_extra_args="$ac_configure_extra_args --silent"
20627fi
20628
20629_ACEOF
20630cat >>$CONFIG_STATUS <<_ACEOF
20631if \$ac_cs_recheck; then
20632  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20633  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20634fi
20635
20636_ACEOF
20637
20638cat >>$CONFIG_STATUS <<_ACEOF
20639#
20640# INIT-COMMANDS section.
20641#
20642
20643AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20644
20645_ACEOF
20646
20647
20648
20649cat >>$CONFIG_STATUS <<\_ACEOF
20650for ac_config_target in $ac_config_targets
20651do
20652  case "$ac_config_target" in
20653  # Handling of arguments.
20654  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20655  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20656  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20657echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20658   { (exit 1); exit 1; }; };;
20659  esac
20660done
20661
20662# If the user did not use the arguments to specify the items to instantiate,
20663# then the envvar interface is used.  Set only those that are not.
20664# We use the long form for the default assignment because of an extremely
20665# bizarre bug on SunOS 4.1.3.
20666if $ac_need_defaults; then
20667  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20668  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20669fi
20670
20671# Have a temporary directory for convenience.  Make it in the build tree
20672# simply because there is no reason to put it here, and in addition,
20673# creating and moving files from /tmp can sometimes cause problems.
20674# Create a temporary directory, and hook for its removal unless debugging.
20675$debug ||
20676{
20677  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20678  trap '{ (exit 1); exit 1; }' 1 2 13 15
20679}
20680
20681# Create a (secure) tmp directory for tmp files.
20682
20683{
20684  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20685  test -n "$tmp" && test -d "$tmp"
20686}  ||
20687{
20688  tmp=./confstat$$-$RANDOM
20689  (umask 077 && mkdir $tmp)
20690} ||
20691{
20692   echo "$me: cannot create a temporary directory in ." >&2
20693   { (exit 1); exit 1; }
20694}
20695
20696_ACEOF
20697
20698cat >>$CONFIG_STATUS <<_ACEOF
20699
20700#
20701# CONFIG_FILES section.
20702#
20703
20704# No need to generate the scripts if there are no CONFIG_FILES.
20705# This happens for instance when ./config.status config.h
20706if test -n "\$CONFIG_FILES"; then
20707  # Protect against being on the right side of a sed subst in config.status.
20708  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20709   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20710s,@SHELL@,$SHELL,;t t
20711s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20712s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20713s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20714s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20715s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20716s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20717s,@exec_prefix@,$exec_prefix,;t t
20718s,@prefix@,$prefix,;t t
20719s,@program_transform_name@,$program_transform_name,;t t
20720s,@bindir@,$bindir,;t t
20721s,@sbindir@,$sbindir,;t t
20722s,@libexecdir@,$libexecdir,;t t
20723s,@datadir@,$datadir,;t t
20724s,@sysconfdir@,$sysconfdir,;t t
20725s,@sharedstatedir@,$sharedstatedir,;t t
20726s,@localstatedir@,$localstatedir,;t t
20727s,@libdir@,$libdir,;t t
20728s,@includedir@,$includedir,;t t
20729s,@oldincludedir@,$oldincludedir,;t t
20730s,@infodir@,$infodir,;t t
20731s,@mandir@,$mandir,;t t
20732s,@build_alias@,$build_alias,;t t
20733s,@host_alias@,$host_alias,;t t
20734s,@target_alias@,$target_alias,;t t
20735s,@DEFS@,$DEFS,;t t
20736s,@ECHO_C@,$ECHO_C,;t t
20737s,@ECHO_N@,$ECHO_N,;t t
20738s,@ECHO_T@,$ECHO_T,;t t
20739s,@LIBS@,$LIBS,;t t
20740s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20741s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20742s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20743s,@CYGPATH_W@,$CYGPATH_W,;t t
20744s,@PACKAGE@,$PACKAGE,;t t
20745s,@VERSION@,$VERSION,;t t
20746s,@ACLOCAL@,$ACLOCAL,;t t
20747s,@AUTOCONF@,$AUTOCONF,;t t
20748s,@AUTOMAKE@,$AUTOMAKE,;t t
20749s,@AUTOHEADER@,$AUTOHEADER,;t t
20750s,@MAKEINFO@,$MAKEINFO,;t t
20751s,@install_sh@,$install_sh,;t t
20752s,@STRIP@,$STRIP,;t t
20753s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20754s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20755s,@mkdir_p@,$mkdir_p,;t t
20756s,@AWK@,$AWK,;t t
20757s,@SET_MAKE@,$SET_MAKE,;t t
20758s,@am__leading_dot@,$am__leading_dot,;t t
20759s,@AMTAR@,$AMTAR,;t t
20760s,@am__tar@,$am__tar,;t t
20761s,@am__untar@,$am__untar,;t t
20762s,@CC@,$CC,;t t
20763s,@CFLAGS@,$CFLAGS,;t t
20764s,@LDFLAGS@,$LDFLAGS,;t t
20765s,@CPPFLAGS@,$CPPFLAGS,;t t
20766s,@ac_ct_CC@,$ac_ct_CC,;t t
20767s,@EXEEXT@,$EXEEXT,;t t
20768s,@OBJEXT@,$OBJEXT,;t t
20769s,@DEPDIR@,$DEPDIR,;t t
20770s,@am__include@,$am__include,;t t
20771s,@am__quote@,$am__quote,;t t
20772s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20773s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20774s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20775s,@CCDEPMODE@,$CCDEPMODE,;t t
20776s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20777s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20778s,@build@,$build,;t t
20779s,@build_cpu@,$build_cpu,;t t
20780s,@build_vendor@,$build_vendor,;t t
20781s,@build_os@,$build_os,;t t
20782s,@host@,$host,;t t
20783s,@host_cpu@,$host_cpu,;t t
20784s,@host_vendor@,$host_vendor,;t t
20785s,@host_os@,$host_os,;t t
20786s,@EGREP@,$EGREP,;t t
20787s,@LN_S@,$LN_S,;t t
20788s,@ECHO@,$ECHO,;t t
20789s,@AR@,$AR,;t t
20790s,@ac_ct_AR@,$ac_ct_AR,;t t
20791s,@RANLIB@,$RANLIB,;t t
20792s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20793s,@CPP@,$CPP,;t t
20794s,@CXX@,$CXX,;t t
20795s,@CXXFLAGS@,$CXXFLAGS,;t t
20796s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20797s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20798s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20799s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20800s,@CXXCPP@,$CXXCPP,;t t
20801s,@F77@,$F77,;t t
20802s,@FFLAGS@,$FFLAGS,;t t
20803s,@ac_ct_F77@,$ac_ct_F77,;t t
20804s,@LIBTOOL@,$LIBTOOL,;t t
20805s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
20806s,@LIBM@,$LIBM,;t t
20807s,@LIBOBJS@,$LIBOBJS,;t t
20808s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20809CEOF
20810
20811_ACEOF
20812
20813  cat >>$CONFIG_STATUS <<\_ACEOF
20814  # Split the substitutions into bite-sized pieces for seds with
20815  # small command number limits, like on Digital OSF/1 and HP-UX.
20816  ac_max_sed_lines=48
20817  ac_sed_frag=1 # Number of current file.
20818  ac_beg=1 # First line for current file.
20819  ac_end=$ac_max_sed_lines # Line after last line for current file.
20820  ac_more_lines=:
20821  ac_sed_cmds=
20822  while $ac_more_lines; do
20823    if test $ac_beg -gt 1; then
20824      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20825    else
20826      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20827    fi
20828    if test ! -s $tmp/subs.frag; then
20829      ac_more_lines=false
20830    else
20831      # The purpose of the label and of the branching condition is to
20832      # speed up the sed processing (if there are no `@' at all, there
20833      # is no need to browse any of the substitutions).
20834      # These are the two extra sed commands mentioned above.
20835      (echo ':t
20836  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20837      if test -z "$ac_sed_cmds"; then
20838	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20839      else
20840	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20841      fi
20842      ac_sed_frag=`expr $ac_sed_frag + 1`
20843      ac_beg=$ac_end
20844      ac_end=`expr $ac_end + $ac_max_sed_lines`
20845    fi
20846  done
20847  if test -z "$ac_sed_cmds"; then
20848    ac_sed_cmds=cat
20849  fi
20850fi # test -n "$CONFIG_FILES"
20851
20852_ACEOF
20853cat >>$CONFIG_STATUS <<\_ACEOF
20854for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20855  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20856  case $ac_file in
20857  - | *:- | *:-:* ) # input from stdin
20858	cat >$tmp/stdin
20859	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20860	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20861  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20862	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20863  * )   ac_file_in=$ac_file.in ;;
20864  esac
20865
20866  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20867  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20868$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20869	 X"$ac_file" : 'X\(//\)[^/]' \| \
20870	 X"$ac_file" : 'X\(//\)$' \| \
20871	 X"$ac_file" : 'X\(/\)' \| \
20872	 .     : '\(.\)' 2>/dev/null ||
20873echo X"$ac_file" |
20874    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20875  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20876  	  /^X\(\/\/\)$/{ s//\1/; q; }
20877  	  /^X\(\/\).*/{ s//\1/; q; }
20878  	  s/.*/./; q'`
20879  { if $as_mkdir_p; then
20880    mkdir -p "$ac_dir"
20881  else
20882    as_dir="$ac_dir"
20883    as_dirs=
20884    while test ! -d "$as_dir"; do
20885      as_dirs="$as_dir $as_dirs"
20886      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20887$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20888	 X"$as_dir" : 'X\(//\)[^/]' \| \
20889	 X"$as_dir" : 'X\(//\)$' \| \
20890	 X"$as_dir" : 'X\(/\)' \| \
20891	 .     : '\(.\)' 2>/dev/null ||
20892echo X"$as_dir" |
20893    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20894  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20895  	  /^X\(\/\/\)$/{ s//\1/; q; }
20896  	  /^X\(\/\).*/{ s//\1/; q; }
20897  	  s/.*/./; q'`
20898    done
20899    test ! -n "$as_dirs" || mkdir $as_dirs
20900  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20901echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20902   { (exit 1); exit 1; }; }; }
20903
20904  ac_builddir=.
20905
20906if test "$ac_dir" != .; then
20907  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20908  # A "../" for each directory in $ac_dir_suffix.
20909  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20910else
20911  ac_dir_suffix= ac_top_builddir=
20912fi
20913
20914case $srcdir in
20915  .)  # No --srcdir option.  We are building in place.
20916    ac_srcdir=.
20917    if test -z "$ac_top_builddir"; then
20918       ac_top_srcdir=.
20919    else
20920       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20921    fi ;;
20922  [\\/]* | ?:[\\/]* )  # Absolute path.
20923    ac_srcdir=$srcdir$ac_dir_suffix;
20924    ac_top_srcdir=$srcdir ;;
20925  *) # Relative path.
20926    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20927    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20928esac
20929
20930# Do not use `cd foo && pwd` to compute absolute paths, because
20931# the directories may not exist.
20932case `pwd` in
20933.) ac_abs_builddir="$ac_dir";;
20934*)
20935  case "$ac_dir" in
20936  .) ac_abs_builddir=`pwd`;;
20937  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20938  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20939  esac;;
20940esac
20941case $ac_abs_builddir in
20942.) ac_abs_top_builddir=${ac_top_builddir}.;;
20943*)
20944  case ${ac_top_builddir}. in
20945  .) ac_abs_top_builddir=$ac_abs_builddir;;
20946  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20947  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20948  esac;;
20949esac
20950case $ac_abs_builddir in
20951.) ac_abs_srcdir=$ac_srcdir;;
20952*)
20953  case $ac_srcdir in
20954  .) ac_abs_srcdir=$ac_abs_builddir;;
20955  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20956  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20957  esac;;
20958esac
20959case $ac_abs_builddir in
20960.) ac_abs_top_srcdir=$ac_top_srcdir;;
20961*)
20962  case $ac_top_srcdir in
20963  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20964  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20965  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20966  esac;;
20967esac
20968
20969
20970  case $INSTALL in
20971  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20972  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20973  esac
20974
20975  if test x"$ac_file" != x-; then
20976    { echo "$as_me:$LINENO: creating $ac_file" >&5
20977echo "$as_me: creating $ac_file" >&6;}
20978    rm -f "$ac_file"
20979  fi
20980  # Let's still pretend it is `configure' which instantiates (i.e., don't
20981  # use $as_me), people would be surprised to read:
20982  #    /* config.h.  Generated by config.status.  */
20983  if test x"$ac_file" = x-; then
20984    configure_input=
20985  else
20986    configure_input="$ac_file.  "
20987  fi
20988  configure_input=$configure_input"Generated from `echo $ac_file_in |
20989				     sed 's,.*/,,'` by configure."
20990
20991  # First look for the input files in the build tree, otherwise in the
20992  # src tree.
20993  ac_file_inputs=`IFS=:
20994    for f in $ac_file_in; do
20995      case $f in
20996      -) echo $tmp/stdin ;;
20997      [\\/$]*)
20998	 # Absolute (can't be DOS-style, as IFS=:)
20999	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21000echo "$as_me: error: cannot find input file: $f" >&2;}
21001   { (exit 1); exit 1; }; }
21002	 echo "$f";;
21003      *) # Relative
21004	 if test -f "$f"; then
21005	   # Build tree
21006	   echo "$f"
21007	 elif test -f "$srcdir/$f"; then
21008	   # Source tree
21009	   echo "$srcdir/$f"
21010	 else
21011	   # /dev/null tree
21012	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21013echo "$as_me: error: cannot find input file: $f" >&2;}
21014   { (exit 1); exit 1; }; }
21015	 fi;;
21016      esac
21017    done` || { (exit 1); exit 1; }
21018_ACEOF
21019cat >>$CONFIG_STATUS <<_ACEOF
21020  sed "$ac_vpsub
21021$extrasub
21022_ACEOF
21023cat >>$CONFIG_STATUS <<\_ACEOF
21024:t
21025/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21026s,@configure_input@,$configure_input,;t t
21027s,@srcdir@,$ac_srcdir,;t t
21028s,@abs_srcdir@,$ac_abs_srcdir,;t t
21029s,@top_srcdir@,$ac_top_srcdir,;t t
21030s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21031s,@builddir@,$ac_builddir,;t t
21032s,@abs_builddir@,$ac_abs_builddir,;t t
21033s,@top_builddir@,$ac_top_builddir,;t t
21034s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21035s,@INSTALL@,$ac_INSTALL,;t t
21036" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21037  rm -f $tmp/stdin
21038  if test x"$ac_file" != x-; then
21039    mv $tmp/out $ac_file
21040  else
21041    cat $tmp/out
21042    rm -f $tmp/out
21043  fi
21044
21045done
21046_ACEOF
21047cat >>$CONFIG_STATUS <<\_ACEOF
21048
21049#
21050# CONFIG_COMMANDS section.
21051#
21052for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21053  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21054  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21055  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21056$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21057	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21058	 X"$ac_dest" : 'X\(//\)$' \| \
21059	 X"$ac_dest" : 'X\(/\)' \| \
21060	 .     : '\(.\)' 2>/dev/null ||
21061echo X"$ac_dest" |
21062    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21063  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21064  	  /^X\(\/\/\)$/{ s//\1/; q; }
21065  	  /^X\(\/\).*/{ s//\1/; q; }
21066  	  s/.*/./; q'`
21067  { if $as_mkdir_p; then
21068    mkdir -p "$ac_dir"
21069  else
21070    as_dir="$ac_dir"
21071    as_dirs=
21072    while test ! -d "$as_dir"; do
21073      as_dirs="$as_dir $as_dirs"
21074      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21076	 X"$as_dir" : 'X\(//\)[^/]' \| \
21077	 X"$as_dir" : 'X\(//\)$' \| \
21078	 X"$as_dir" : 'X\(/\)' \| \
21079	 .     : '\(.\)' 2>/dev/null ||
21080echo X"$as_dir" |
21081    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21082  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21083  	  /^X\(\/\/\)$/{ s//\1/; q; }
21084  	  /^X\(\/\).*/{ s//\1/; q; }
21085  	  s/.*/./; q'`
21086    done
21087    test ! -n "$as_dirs" || mkdir $as_dirs
21088  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21089echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21090   { (exit 1); exit 1; }; }; }
21091
21092  ac_builddir=.
21093
21094if test "$ac_dir" != .; then
21095  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21096  # A "../" for each directory in $ac_dir_suffix.
21097  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21098else
21099  ac_dir_suffix= ac_top_builddir=
21100fi
21101
21102case $srcdir in
21103  .)  # No --srcdir option.  We are building in place.
21104    ac_srcdir=.
21105    if test -z "$ac_top_builddir"; then
21106       ac_top_srcdir=.
21107    else
21108       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21109    fi ;;
21110  [\\/]* | ?:[\\/]* )  # Absolute path.
21111    ac_srcdir=$srcdir$ac_dir_suffix;
21112    ac_top_srcdir=$srcdir ;;
21113  *) # Relative path.
21114    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21115    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21116esac
21117
21118# Do not use `cd foo && pwd` to compute absolute paths, because
21119# the directories may not exist.
21120case `pwd` in
21121.) ac_abs_builddir="$ac_dir";;
21122*)
21123  case "$ac_dir" in
21124  .) ac_abs_builddir=`pwd`;;
21125  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21126  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21127  esac;;
21128esac
21129case $ac_abs_builddir in
21130.) ac_abs_top_builddir=${ac_top_builddir}.;;
21131*)
21132  case ${ac_top_builddir}. in
21133  .) ac_abs_top_builddir=$ac_abs_builddir;;
21134  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21135  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21136  esac;;
21137esac
21138case $ac_abs_builddir in
21139.) ac_abs_srcdir=$ac_srcdir;;
21140*)
21141  case $ac_srcdir in
21142  .) ac_abs_srcdir=$ac_abs_builddir;;
21143  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21144  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21145  esac;;
21146esac
21147case $ac_abs_builddir in
21148.) ac_abs_top_srcdir=$ac_top_srcdir;;
21149*)
21150  case $ac_top_srcdir in
21151  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21152  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21153  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21154  esac;;
21155esac
21156
21157
21158  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21159echo "$as_me: executing $ac_dest commands" >&6;}
21160  case $ac_dest in
21161    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21162  # Strip MF so we end up with the name of the file.
21163  mf=`echo "$mf" | sed -e 's/:.*$//'`
21164  # Check whether this is an Automake generated Makefile or not.
21165  # We used to match only the files named `Makefile.in', but
21166  # some people rename them; so instead we look at the file content.
21167  # Grep'ing the first line is not enough: some people post-process
21168  # each Makefile.in and add a new line on top of each file to say so.
21169  # So let's grep whole file.
21170  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21171    dirpart=`(dirname "$mf") 2>/dev/null ||
21172$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21173	 X"$mf" : 'X\(//\)[^/]' \| \
21174	 X"$mf" : 'X\(//\)$' \| \
21175	 X"$mf" : 'X\(/\)' \| \
21176	 .     : '\(.\)' 2>/dev/null ||
21177echo X"$mf" |
21178    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21179  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21180  	  /^X\(\/\/\)$/{ s//\1/; q; }
21181  	  /^X\(\/\).*/{ s//\1/; q; }
21182  	  s/.*/./; q'`
21183  else
21184    continue
21185  fi
21186  # Extract the definition of DEPDIR, am__include, and am__quote
21187  # from the Makefile without running `make'.
21188  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21189  test -z "$DEPDIR" && continue
21190  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21191  test -z "am__include" && continue
21192  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21193  # When using ansi2knr, U may be empty or an underscore; expand it
21194  U=`sed -n 's/^U = //p' < "$mf"`
21195  # Find all dependency output files, they are included files with
21196  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21197  # simplest approach to changing $(DEPDIR) to its actual value in the
21198  # expansion.
21199  for file in `sed -n "
21200    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21201       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21202    # Make sure the directory exists.
21203    test -f "$dirpart/$file" && continue
21204    fdir=`(dirname "$file") 2>/dev/null ||
21205$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21206	 X"$file" : 'X\(//\)[^/]' \| \
21207	 X"$file" : 'X\(//\)$' \| \
21208	 X"$file" : 'X\(/\)' \| \
21209	 .     : '\(.\)' 2>/dev/null ||
21210echo X"$file" |
21211    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21212  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21213  	  /^X\(\/\/\)$/{ s//\1/; q; }
21214  	  /^X\(\/\).*/{ s//\1/; q; }
21215  	  s/.*/./; q'`
21216    { if $as_mkdir_p; then
21217    mkdir -p $dirpart/$fdir
21218  else
21219    as_dir=$dirpart/$fdir
21220    as_dirs=
21221    while test ! -d "$as_dir"; do
21222      as_dirs="$as_dir $as_dirs"
21223      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21224$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21225	 X"$as_dir" : 'X\(//\)[^/]' \| \
21226	 X"$as_dir" : 'X\(//\)$' \| \
21227	 X"$as_dir" : 'X\(/\)' \| \
21228	 .     : '\(.\)' 2>/dev/null ||
21229echo X"$as_dir" |
21230    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21231  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21232  	  /^X\(\/\/\)$/{ s//\1/; q; }
21233  	  /^X\(\/\).*/{ s//\1/; q; }
21234  	  s/.*/./; q'`
21235    done
21236    test ! -n "$as_dirs" || mkdir $as_dirs
21237  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21238echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21239   { (exit 1); exit 1; }; }; }
21240
21241    # echo "creating $dirpart/$file"
21242    echo '# dummy' > "$dirpart/$file"
21243  done
21244done
21245 ;;
21246  esac
21247done
21248_ACEOF
21249
21250cat >>$CONFIG_STATUS <<\_ACEOF
21251
21252{ (exit 0); exit 0; }
21253_ACEOF
21254chmod +x $CONFIG_STATUS
21255ac_clean_files=$ac_clean_files_save
21256
21257
21258# configure is writing to config.log, and then calls config.status.
21259# config.status does its own redirection, appending to config.log.
21260# Unfortunately, on DOS this fails, as config.log is still kept open
21261# by configure, so config.status won't be able to write to it; its
21262# output is simply discarded.  So we exec the FD to /dev/null,
21263# effectively closing config.log, so it can be properly (re)opened and
21264# appended to by config.status.  When coming back to configure, we
21265# need to make the FD available again.
21266if test "$no_create" != yes; then
21267  ac_cs_success=:
21268  ac_config_status_args=
21269  test "$silent" = yes &&
21270    ac_config_status_args="$ac_config_status_args --quiet"
21271  exec 5>/dev/null
21272  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21273  exec 5>>config.log
21274  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21275  # would make configure fail if this is the last instruction.
21276  $ac_cs_success || { (exit 1); exit 1; }
21277fi
21278
21279