1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for freealut library 1.1.0.
4#
5# Report bugs to <openal-devel@opensource.creative.com>.
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='freealut library'
425PACKAGE_TARNAME='freealut'
426PACKAGE_VERSION='1.1.0'
427PACKAGE_STRING='freealut library 1.1.0'
428PACKAGE_BUGREPORT='openal-devel@opensource.creative.com'
429
430ac_unique_file="AUTHORS"
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 VERSIONINFO 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 WNO_DEPRECATED_DECLARATIONS_TRUE WNO_DEPRECATED_DECLARATIONS_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 DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LIBM AM_CFLAGS 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 freealut library 1.1.0 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 freealut library 1.1.0:";;
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  --enable-warnings       enable pedantic compiler warnings
1040                          [default=yes]
1041  --enable-more-warnings  enable even more compiler warnings
1042                          [default=no]
1043  --enable-werror         enable failure on all warnings [default=no]
1044  --enable-efence         enable Electric Fence support [default=no]
1045
1046Optional Packages:
1047  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1048  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1049  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1050  --with-pic              try to use only PIC/non-PIC objects [default=use
1051                          both]
1052  --with-tags[=TAGS]
1053                          include additional configurations [automatic]
1054
1055Some influential environment variables:
1056  CC          C compiler command
1057  CFLAGS      C compiler flags
1058  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1059              nonstandard directory <lib dir>
1060  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061              headers in a nonstandard directory <include dir>
1062  CPP         C preprocessor
1063  CXX         C++ compiler command
1064  CXXFLAGS    C++ compiler flags
1065  CXXCPP      C++ preprocessor
1066  F77         Fortran 77 compiler command
1067  FFLAGS      Fortran 77 compiler flags
1068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <openal-devel@opensource.creative.com>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077  # If there are subdirs, report their specific --help.
1078  ac_popdir=`pwd`
1079  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080    test -d $ac_dir || continue
1081    ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085  # A "../" for each directory in $ac_dir_suffix.
1086  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088  ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092  .)  # No --srcdir option.  We are building in place.
1093    ac_srcdir=.
1094    if test -z "$ac_top_builddir"; then
1095       ac_top_srcdir=.
1096    else
1097       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098    fi ;;
1099  [\\/]* | ?:[\\/]* )  # Absolute path.
1100    ac_srcdir=$srcdir$ac_dir_suffix;
1101    ac_top_srcdir=$srcdir ;;
1102  *) # Relative path.
1103    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
1106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112  case "$ac_dir" in
1113  .) ac_abs_builddir=`pwd`;;
1114  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116  esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121  case ${ac_top_builddir}. in
1122  .) ac_abs_top_builddir=$ac_abs_builddir;;
1123  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125  esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130  case $ac_srcdir in
1131  .) ac_abs_srcdir=$ac_abs_builddir;;
1132  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134  esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139  case $ac_top_srcdir in
1140  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143  esac;;
1144esac
1145
1146    cd $ac_dir
1147    # Check for guested configure; otherwise get Cygnus style configure.
1148    if test -f $ac_srcdir/configure.gnu; then
1149      echo
1150      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1151    elif test -f $ac_srcdir/configure; then
1152      echo
1153      $SHELL $ac_srcdir/configure  --help=recursive
1154    elif test -f $ac_srcdir/configure.ac ||
1155	   test -f $ac_srcdir/configure.in; then
1156      echo
1157      $ac_configure --help
1158    else
1159      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160    fi
1161    cd $ac_popdir
1162  done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167  cat <<\_ACEOF
1168freealut library configure 1.1.0
1169generated by GNU Autoconf 2.59
1170
1171Copyright (C) 2003 Free Software Foundation, Inc.
1172This configure script is free software; the Free Software Foundation
1173gives unlimited permission to copy, distribute and modify it.
1174_ACEOF
1175  exit 0
1176fi
1177exec 5>config.log
1178cat >&5 <<_ACEOF
1179This file contains any messages produced by compilers while
1180running configure, to aid debugging if configure makes a mistake.
1181
1182It was created by freealut library $as_me 1.1.0, which was
1183generated by GNU Autoconf 2.59.  Invocation command line was
1184
1185  $ $0 $@
1186
1187_ACEOF
1188{
1189cat <<_ASUNAME
1190## --------- ##
1191## Platform. ##
1192## --------- ##
1193
1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1202
1203/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1204/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1207/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1208/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1209/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1210
1211_ASUNAME
1212
1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214for as_dir in $PATH
1215do
1216  IFS=$as_save_IFS
1217  test -z "$as_dir" && as_dir=.
1218  echo "PATH: $as_dir"
1219done
1220
1221} >&5
1222
1223cat >&5 <<_ACEOF
1224
1225
1226## ----------- ##
1227## Core tests. ##
1228## ----------- ##
1229
1230_ACEOF
1231
1232
1233# Keep a trace of the command line.
1234# Strip out --no-create and --no-recursion so they do not pile up.
1235# Strip out --silent because we don't want to record it for future runs.
1236# Also quote any args containing shell meta-characters.
1237# Make two passes to allow for proper duplicate-argument suppression.
1238ac_configure_args=
1239ac_configure_args0=
1240ac_configure_args1=
1241ac_sep=
1242ac_must_keep_next=false
1243for ac_pass in 1 2
1244do
1245  for ac_arg
1246  do
1247    case $ac_arg in
1248    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250    | -silent | --silent | --silen | --sile | --sil)
1251      continue ;;
1252    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254    esac
1255    case $ac_pass in
1256    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257    2)
1258      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259      if test $ac_must_keep_next = true; then
1260	ac_must_keep_next=false # Got value, back to normal.
1261      else
1262	case $ac_arg in
1263	  *=* | --config-cache | -C | -disable-* | --disable-* \
1264	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266	  | -with-* | --with-* | -without-* | --without-* | --x)
1267	    case "$ac_configure_args0 " in
1268	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269	    esac
1270	    ;;
1271	  -* ) ac_must_keep_next=true ;;
1272	esac
1273      fi
1274      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275      # Get rid of the leading space.
1276      ac_sep=" "
1277      ;;
1278    esac
1279  done
1280done
1281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1283
1284# When interrupted or exit'd, cleanup temporary files, and complete
1285# config.log.  We remove comments because anyway the quotes in there
1286# would cause problems or look ugly.
1287# WARNING: Be sure not to use single quotes in there, as some shells,
1288# such as our DU 5.0 friend, will then `close' the trap.
1289trap 'exit_status=$?
1290  # Save into config.log some information that might help in debugging.
1291  {
1292    echo
1293
1294    cat <<\_ASBOX
1295## ---------------- ##
1296## Cache variables. ##
1297## ---------------- ##
1298_ASBOX
1299    echo
1300    # The following way of writing the cache mishandles newlines in values,
1301{
1302  (set) 2>&1 |
1303    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304    *ac_space=\ *)
1305      sed -n \
1306	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1308      ;;
1309    *)
1310      sed -n \
1311	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1312      ;;
1313    esac;
1314}
1315    echo
1316
1317    cat <<\_ASBOX
1318## ----------------- ##
1319## Output variables. ##
1320## ----------------- ##
1321_ASBOX
1322    echo
1323    for ac_var in $ac_subst_vars
1324    do
1325      eval ac_val=$`echo $ac_var`
1326      echo "$ac_var='"'"'$ac_val'"'"'"
1327    done | sort
1328    echo
1329
1330    if test -n "$ac_subst_files"; then
1331      cat <<\_ASBOX
1332## ------------- ##
1333## Output files. ##
1334## ------------- ##
1335_ASBOX
1336      echo
1337      for ac_var in $ac_subst_files
1338      do
1339	eval ac_val=$`echo $ac_var`
1340	echo "$ac_var='"'"'$ac_val'"'"'"
1341      done | sort
1342      echo
1343    fi
1344
1345    if test -s confdefs.h; then
1346      cat <<\_ASBOX
1347## ----------- ##
1348## confdefs.h. ##
1349## ----------- ##
1350_ASBOX
1351      echo
1352      sed "/^$/d" confdefs.h | sort
1353      echo
1354    fi
1355    test "$ac_signal" != 0 &&
1356      echo "$as_me: caught signal $ac_signal"
1357    echo "$as_me: exit $exit_status"
1358  } >&5
1359  rm -f core *.core &&
1360  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361    exit $exit_status
1362     ' 0
1363for ac_signal in 1 2 13 15; do
1364  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365done
1366ac_signal=0
1367
1368# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369rm -rf conftest* confdefs.h
1370# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371echo >confdefs.h
1372
1373# Predefined preprocessor variables.
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_NAME "$PACKAGE_NAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_VERSION "$PACKAGE_VERSION"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_STRING "$PACKAGE_STRING"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397_ACEOF
1398
1399
1400# Let the site file select an alternate cache file if it wants to.
1401# Prefer explicitly selected file to automatically selected ones.
1402if test -z "$CONFIG_SITE"; then
1403  if test "x$prefix" != xNONE; then
1404    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405  else
1406    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407  fi
1408fi
1409for ac_site_file in $CONFIG_SITE; do
1410  if test -r "$ac_site_file"; then
1411    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412echo "$as_me: loading site script $ac_site_file" >&6;}
1413    sed 's/^/| /' "$ac_site_file" >&5
1414    . "$ac_site_file"
1415  fi
1416done
1417
1418if test -r "$cache_file"; then
1419  # Some versions of bash will fail to source /dev/null (special
1420  # files actually), so we avoid doing that.
1421  if test -f "$cache_file"; then
1422    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423echo "$as_me: loading cache $cache_file" >&6;}
1424    case $cache_file in
1425      [\\/]* | ?:[\\/]* ) . $cache_file;;
1426      *)                      . ./$cache_file;;
1427    esac
1428  fi
1429else
1430  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431echo "$as_me: creating cache $cache_file" >&6;}
1432  >$cache_file
1433fi
1434
1435# Check that the precious variables saved in the cache have kept the same
1436# value.
1437ac_cache_corrupted=false
1438for ac_var in `(set) 2>&1 |
1439	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441  eval ac_new_set=\$ac_env_${ac_var}_set
1442  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443  eval ac_new_val="\$ac_env_${ac_var}_value"
1444  case $ac_old_set,$ac_new_set in
1445    set,)
1446      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448      ac_cache_corrupted=: ;;
1449    ,set)
1450      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452      ac_cache_corrupted=: ;;
1453    ,);;
1454    *)
1455      if test "x$ac_old_val" != "x$ac_new_val"; then
1456	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1459echo "$as_me:   former value:  $ac_old_val" >&2;}
1460	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1461echo "$as_me:   current value: $ac_new_val" >&2;}
1462	ac_cache_corrupted=:
1463      fi;;
1464  esac
1465  # Pass precious variables to config.status.
1466  if test "$ac_new_set" = set; then
1467    case $ac_new_val in
1468    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470    *) ac_arg=$ac_var=$ac_new_val ;;
1471    esac
1472    case " $ac_configure_args " in
1473      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1474      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475    esac
1476  fi
1477done
1478if $ac_cache_corrupted; then
1479  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483   { (exit 1); exit 1; }; }
1484fi
1485
1486ac_ext=c
1487ac_cpp='$CPP $CPPFLAGS'
1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1517
1518ac_aux_dir=
1519for ac_dir in admin/autotools $srcdir/admin/autotools; do
1520  if test -f $ac_dir/install-sh; then
1521    ac_aux_dir=$ac_dir
1522    ac_install_sh="$ac_aux_dir/install-sh -c"
1523    break
1524  elif test -f $ac_dir/install.sh; then
1525    ac_aux_dir=$ac_dir
1526    ac_install_sh="$ac_aux_dir/install.sh -c"
1527    break
1528  elif test -f $ac_dir/shtool; then
1529    ac_aux_dir=$ac_dir
1530    ac_install_sh="$ac_aux_dir/shtool install -c"
1531    break
1532  fi
1533done
1534if test -z "$ac_aux_dir"; then
1535  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin/autotools $srcdir/admin/autotools" >&5
1536echo "$as_me: error: cannot find install-sh or install.sh in admin/autotools $srcdir/admin/autotools" >&2;}
1537   { (exit 1); exit 1; }; }
1538fi
1539ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
1543am__api_version="1.9"
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='freealut'
1825 VERSION='1.1.0'
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          ac_config_headers="$ac_config_headers config.h"
1958
1959
1960# Compatibility hack for older autoconf versions
1961
1962
1963################################################################################
1964## libtool shared library version.
1965################################################################################
1966
1967# Some information from the libtool info pages and the autobook regarding how to
1968# handle the library version info:
1969#
1970# 1. Start with version information of `0:0:0' for each libtool library.
1971#
1972# 2. Update the version information only immediately before a public release of
1973#    your software. More frequent updates are unnecessary, and only guarantee
1974#    that the current interface number gets larger faster.
1975#
1976# 3. If the library source code has changed at all since the last update, then
1977#    increment REVISION (`C:R:A' becomes `C:r+1:A'). This is a new revision of
1978#    the current interface.
1979#
1980# 4. If any interfaces have been added, removed, or changed since the last
1981#    update, increment CURRENT, and set REVISION to 0. This is the first
1982#    revision of a new interface.
1983#
1984# 5. If any interfaces have been added since the last public release, then
1985#    increment AGE. This release is backwards compatible with the previous
1986#    release.
1987#
1988# 6. If any interfaces have been removed since the last public release, then set
1989#    AGE to 0. This release has a new, but backwards incompatible interface.
1990#
1991# NEVER try to set the interface numbers so that they correspond to the release
1992# number of your package. This is an abuse that only fosters misunderstanding of
1993# the purpose of library versions. Furthermore, do not confuse those versions
1994# with the version of the specification which is implemented.
1995
1996CURRENT=1
1997REVISION=0
1998AGE=1
1999
2000VERSIONINFO="$CURRENT:$REVISION:$AGE"
2001
2002
2003################################################################################
2004# Checks for programs.
2005################################################################################
2006
2007ac_ext=c
2008ac_cpp='$CPP $CPPFLAGS'
2009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012if test -n "$ac_tool_prefix"; then
2013  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2014set dummy ${ac_tool_prefix}gcc; ac_word=$2
2015echo "$as_me:$LINENO: checking for $ac_word" >&5
2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017if test "${ac_cv_prog_CC+set}" = set; then
2018  echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020  if test -n "$CC"; then
2021  ac_cv_prog_CC="$CC" # Let the user override the test.
2022else
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026  IFS=$as_save_IFS
2027  test -z "$as_dir" && as_dir=.
2028  for ac_exec_ext in '' $ac_executable_extensions; do
2029  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032    break 2
2033  fi
2034done
2035done
2036
2037fi
2038fi
2039CC=$ac_cv_prog_CC
2040if test -n "$CC"; then
2041  echo "$as_me:$LINENO: result: $CC" >&5
2042echo "${ECHO_T}$CC" >&6
2043else
2044  echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6
2046fi
2047
2048fi
2049if test -z "$ac_cv_prog_CC"; then
2050  ac_ct_CC=$CC
2051  # Extract the first word of "gcc", so it can be a program name with args.
2052set dummy gcc; ac_word=$2
2053echo "$as_me:$LINENO: checking for $ac_word" >&5
2054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056  echo $ECHO_N "(cached) $ECHO_C" >&6
2057else
2058  if test -n "$ac_ct_CC"; then
2059  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060else
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064  IFS=$as_save_IFS
2065  test -z "$as_dir" && as_dir=.
2066  for ac_exec_ext in '' $ac_executable_extensions; do
2067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068    ac_cv_prog_ac_ct_CC="gcc"
2069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070    break 2
2071  fi
2072done
2073done
2074
2075fi
2076fi
2077ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078if test -n "$ac_ct_CC"; then
2079  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080echo "${ECHO_T}$ac_ct_CC" >&6
2081else
2082  echo "$as_me:$LINENO: result: no" >&5
2083echo "${ECHO_T}no" >&6
2084fi
2085
2086  CC=$ac_ct_CC
2087else
2088  CC="$ac_cv_prog_CC"
2089fi
2090
2091if test -z "$CC"; then
2092  if test -n "$ac_tool_prefix"; then
2093  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2094set dummy ${ac_tool_prefix}cc; ac_word=$2
2095echo "$as_me:$LINENO: checking for $ac_word" >&5
2096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097if test "${ac_cv_prog_CC+set}" = set; then
2098  echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
2100  if test -n "$CC"; then
2101  ac_cv_prog_CC="$CC" # Let the user override the test.
2102else
2103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104for as_dir in $PATH
2105do
2106  IFS=$as_save_IFS
2107  test -z "$as_dir" && as_dir=.
2108  for ac_exec_ext in '' $ac_executable_extensions; do
2109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110    ac_cv_prog_CC="${ac_tool_prefix}cc"
2111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112    break 2
2113  fi
2114done
2115done
2116
2117fi
2118fi
2119CC=$ac_cv_prog_CC
2120if test -n "$CC"; then
2121  echo "$as_me:$LINENO: result: $CC" >&5
2122echo "${ECHO_T}$CC" >&6
2123else
2124  echo "$as_me:$LINENO: result: no" >&5
2125echo "${ECHO_T}no" >&6
2126fi
2127
2128fi
2129if test -z "$ac_cv_prog_CC"; then
2130  ac_ct_CC=$CC
2131  # Extract the first word of "cc", so it can be a program name with args.
2132set dummy cc; ac_word=$2
2133echo "$as_me:$LINENO: checking for $ac_word" >&5
2134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2135if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2136  echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138  if test -n "$ac_ct_CC"; then
2139  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2140else
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144  IFS=$as_save_IFS
2145  test -z "$as_dir" && as_dir=.
2146  for ac_exec_ext in '' $ac_executable_extensions; do
2147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2148    ac_cv_prog_ac_ct_CC="cc"
2149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150    break 2
2151  fi
2152done
2153done
2154
2155fi
2156fi
2157ac_ct_CC=$ac_cv_prog_ac_ct_CC
2158if test -n "$ac_ct_CC"; then
2159  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2160echo "${ECHO_T}$ac_ct_CC" >&6
2161else
2162  echo "$as_me:$LINENO: result: no" >&5
2163echo "${ECHO_T}no" >&6
2164fi
2165
2166  CC=$ac_ct_CC
2167else
2168  CC="$ac_cv_prog_CC"
2169fi
2170
2171fi
2172if test -z "$CC"; then
2173  # Extract the first word of "cc", so it can be a program name with args.
2174set dummy cc; ac_word=$2
2175echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177if test "${ac_cv_prog_CC+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  if test -n "$CC"; then
2181  ac_cv_prog_CC="$CC" # Let the user override the test.
2182else
2183  ac_prog_rejected=no
2184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185for as_dir in $PATH
2186do
2187  IFS=$as_save_IFS
2188  test -z "$as_dir" && as_dir=.
2189  for ac_exec_ext in '' $ac_executable_extensions; do
2190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2191    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192       ac_prog_rejected=yes
2193       continue
2194     fi
2195    ac_cv_prog_CC="cc"
2196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197    break 2
2198  fi
2199done
2200done
2201
2202if test $ac_prog_rejected = yes; then
2203  # We found a bogon in the path, so make sure we never use it.
2204  set dummy $ac_cv_prog_CC
2205  shift
2206  if test $# != 0; then
2207    # We chose a different compiler from the bogus one.
2208    # However, it has the same basename, so the bogon will be chosen
2209    # first if we set CC to just the basename; use the full file name.
2210    shift
2211    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2212  fi
2213fi
2214fi
2215fi
2216CC=$ac_cv_prog_CC
2217if test -n "$CC"; then
2218  echo "$as_me:$LINENO: result: $CC" >&5
2219echo "${ECHO_T}$CC" >&6
2220else
2221  echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6
2223fi
2224
2225fi
2226if test -z "$CC"; then
2227  if test -n "$ac_tool_prefix"; then
2228  for ac_prog in cl
2229  do
2230    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232echo "$as_me:$LINENO: checking for $ac_word" >&5
2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234if test "${ac_cv_prog_CC+set}" = set; then
2235  echo $ECHO_N "(cached) $ECHO_C" >&6
2236else
2237  if test -n "$CC"; then
2238  ac_cv_prog_CC="$CC" # Let the user override the test.
2239else
2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243  IFS=$as_save_IFS
2244  test -z "$as_dir" && as_dir=.
2245  for ac_exec_ext in '' $ac_executable_extensions; do
2246  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249    break 2
2250  fi
2251done
2252done
2253
2254fi
2255fi
2256CC=$ac_cv_prog_CC
2257if test -n "$CC"; then
2258  echo "$as_me:$LINENO: result: $CC" >&5
2259echo "${ECHO_T}$CC" >&6
2260else
2261  echo "$as_me:$LINENO: result: no" >&5
2262echo "${ECHO_T}no" >&6
2263fi
2264
2265    test -n "$CC" && break
2266  done
2267fi
2268if test -z "$CC"; then
2269  ac_ct_CC=$CC
2270  for ac_prog in cl
2271do
2272  # Extract the first word of "$ac_prog", so it can be a program name with args.
2273set dummy $ac_prog; ac_word=$2
2274echo "$as_me:$LINENO: checking for $ac_word" >&5
2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2277  echo $ECHO_N "(cached) $ECHO_C" >&6
2278else
2279  if test -n "$ac_ct_CC"; then
2280  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2281else
2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283for as_dir in $PATH
2284do
2285  IFS=$as_save_IFS
2286  test -z "$as_dir" && as_dir=.
2287  for ac_exec_ext in '' $ac_executable_extensions; do
2288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289    ac_cv_prog_ac_ct_CC="$ac_prog"
2290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291    break 2
2292  fi
2293done
2294done
2295
2296fi
2297fi
2298ac_ct_CC=$ac_cv_prog_ac_ct_CC
2299if test -n "$ac_ct_CC"; then
2300  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2301echo "${ECHO_T}$ac_ct_CC" >&6
2302else
2303  echo "$as_me:$LINENO: result: no" >&5
2304echo "${ECHO_T}no" >&6
2305fi
2306
2307  test -n "$ac_ct_CC" && break
2308done
2309
2310  CC=$ac_ct_CC
2311fi
2312
2313fi
2314
2315
2316test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2317See \`config.log' for more details." >&5
2318echo "$as_me: error: no acceptable C compiler found in \$PATH
2319See \`config.log' for more details." >&2;}
2320   { (exit 1); exit 1; }; }
2321
2322# Provide some information about the compiler.
2323echo "$as_me:$LINENO:" \
2324     "checking for C compiler version" >&5
2325ac_compiler=`set X $ac_compile; echo $2`
2326{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2327  (eval $ac_compiler --version </dev/null >&5) 2>&5
2328  ac_status=$?
2329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330  (exit $ac_status); }
2331{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2332  (eval $ac_compiler -v </dev/null >&5) 2>&5
2333  ac_status=$?
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); }
2336{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2337  (eval $ac_compiler -V </dev/null >&5) 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }
2341
2342cat >conftest.$ac_ext <<_ACEOF
2343/* confdefs.h.  */
2344_ACEOF
2345cat confdefs.h >>conftest.$ac_ext
2346cat >>conftest.$ac_ext <<_ACEOF
2347/* end confdefs.h.  */
2348
2349int
2350main ()
2351{
2352
2353  ;
2354  return 0;
2355}
2356_ACEOF
2357ac_clean_files_save=$ac_clean_files
2358ac_clean_files="$ac_clean_files a.out a.exe b.out"
2359# Try to create an executable without -o first, disregard a.out.
2360# It will help us diagnose broken compilers, and finding out an intuition
2361# of exeext.
2362echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2363echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2364ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2365if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2366  (eval $ac_link_default) 2>&5
2367  ac_status=$?
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); }; then
2370  # Find the output, starting from the most likely.  This scheme is
2371# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2372# resort.
2373
2374# Be careful to initialize this variable, since it used to be cached.
2375# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2376ac_cv_exeext=
2377# b.out is created by i960 compilers.
2378for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2379do
2380  test -f "$ac_file" || continue
2381  case $ac_file in
2382    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2383	;;
2384    conftest.$ac_ext )
2385	# This is the source file.
2386	;;
2387    [ab].out )
2388	# We found the default executable, but exeext='' is most
2389	# certainly right.
2390	break;;
2391    *.* )
2392	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2393	# FIXME: I believe we export ac_cv_exeext for Libtool,
2394	# but it would be cool to find out if it's true.  Does anybody
2395	# maintain Libtool? --akim.
2396	export ac_cv_exeext
2397	break;;
2398    * )
2399	break;;
2400  esac
2401done
2402else
2403  echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2407See \`config.log' for more details." >&5
2408echo "$as_me: error: C compiler cannot create executables
2409See \`config.log' for more details." >&2;}
2410   { (exit 77); exit 77; }; }
2411fi
2412
2413ac_exeext=$ac_cv_exeext
2414echo "$as_me:$LINENO: result: $ac_file" >&5
2415echo "${ECHO_T}$ac_file" >&6
2416
2417# Check the compiler produces executables we can run.  If not, either
2418# the compiler is broken, or we cross compile.
2419echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2420echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2421# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2422# If not cross compiling, check that we can run a simple program.
2423if test "$cross_compiling" != yes; then
2424  if { ac_try='./$ac_file'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430    cross_compiling=no
2431  else
2432    if test "$cross_compiling" = maybe; then
2433	cross_compiling=yes
2434    else
2435	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2436If you meant to cross compile, use \`--host'.
2437See \`config.log' for more details." >&5
2438echo "$as_me: error: cannot run C compiled programs.
2439If you meant to cross compile, use \`--host'.
2440See \`config.log' for more details." >&2;}
2441   { (exit 1); exit 1; }; }
2442    fi
2443  fi
2444fi
2445echo "$as_me:$LINENO: result: yes" >&5
2446echo "${ECHO_T}yes" >&6
2447
2448rm -f a.out a.exe conftest$ac_cv_exeext b.out
2449ac_clean_files=$ac_clean_files_save
2450# Check the compiler produces executables we can run.  If not, either
2451# the compiler is broken, or we cross compile.
2452echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2453echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2454echo "$as_me:$LINENO: result: $cross_compiling" >&5
2455echo "${ECHO_T}$cross_compiling" >&6
2456
2457echo "$as_me:$LINENO: checking for suffix of executables" >&5
2458echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2460  (eval $ac_link) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; then
2464  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2465# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2466# work properly (i.e., refer to `conftest.exe'), while it won't with
2467# `rm'.
2468for ac_file in conftest.exe conftest conftest.*; do
2469  test -f "$ac_file" || continue
2470  case $ac_file in
2471    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2472    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2473	  export ac_cv_exeext
2474	  break;;
2475    * ) break;;
2476  esac
2477done
2478else
2479  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480See \`config.log' for more details." >&5
2481echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482See \`config.log' for more details." >&2;}
2483   { (exit 1); exit 1; }; }
2484fi
2485
2486rm -f conftest$ac_cv_exeext
2487echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488echo "${ECHO_T}$ac_cv_exeext" >&6
2489
2490rm -f conftest.$ac_ext
2491EXEEXT=$ac_cv_exeext
2492ac_exeext=$EXEEXT
2493echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2495if test "${ac_cv_objext+set}" = set; then
2496  echo $ECHO_N "(cached) $ECHO_C" >&6
2497else
2498  cat >conftest.$ac_ext <<_ACEOF
2499/* confdefs.h.  */
2500_ACEOF
2501cat confdefs.h >>conftest.$ac_ext
2502cat >>conftest.$ac_ext <<_ACEOF
2503/* end confdefs.h.  */
2504
2505int
2506main ()
2507{
2508
2509  ;
2510  return 0;
2511}
2512_ACEOF
2513rm -f conftest.o conftest.obj
2514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515  (eval $ac_compile) 2>&5
2516  ac_status=$?
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); }; then
2519  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2520  case $ac_file in
2521    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2522    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2523       break;;
2524  esac
2525done
2526else
2527  echo "$as_me: failed program was:" >&5
2528sed 's/^/| /' conftest.$ac_ext >&5
2529
2530{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: cannot compute suffix of object files: cannot compile
2533See \`config.log' for more details." >&2;}
2534   { (exit 1); exit 1; }; }
2535fi
2536
2537rm -f conftest.$ac_cv_objext conftest.$ac_ext
2538fi
2539echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2540echo "${ECHO_T}$ac_cv_objext" >&6
2541OBJEXT=$ac_cv_objext
2542ac_objext=$OBJEXT
2543echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2544echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2545if test "${ac_cv_c_compiler_gnu+set}" = set; then
2546  echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548  cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h.  */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
2553/* end confdefs.h.  */
2554
2555int
2556main ()
2557{
2558#ifndef __GNUC__
2559       choke me
2560#endif
2561
2562  ;
2563  return 0;
2564}
2565_ACEOF
2566rm -f conftest.$ac_objext
2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568  (eval $ac_compile) 2>conftest.er1
2569  ac_status=$?
2570  grep -v '^ *+' conftest.er1 >conftest.err
2571  rm -f conftest.er1
2572  cat conftest.err >&5
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); } &&
2575	 { ac_try='test -z "$ac_c_werror_flag"
2576			 || test ! -s conftest.err'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582	 { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  ac_compiler_gnu=yes
2589else
2590  echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
2592
2593ac_compiler_gnu=no
2594fi
2595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596ac_cv_c_compiler_gnu=$ac_compiler_gnu
2597
2598fi
2599echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2600echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2601GCC=`test $ac_compiler_gnu = yes && echo yes`
2602ac_test_CFLAGS=${CFLAGS+set}
2603ac_save_CFLAGS=$CFLAGS
2604CFLAGS="-g"
2605echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2606echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2607if test "${ac_cv_prog_cc_g+set}" = set; then
2608  echo $ECHO_N "(cached) $ECHO_C" >&6
2609else
2610  cat >conftest.$ac_ext <<_ACEOF
2611/* confdefs.h.  */
2612_ACEOF
2613cat confdefs.h >>conftest.$ac_ext
2614cat >>conftest.$ac_ext <<_ACEOF
2615/* end confdefs.h.  */
2616
2617int
2618main ()
2619{
2620
2621  ;
2622  return 0;
2623}
2624_ACEOF
2625rm -f conftest.$ac_objext
2626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627  (eval $ac_compile) 2>conftest.er1
2628  ac_status=$?
2629  grep -v '^ *+' conftest.er1 >conftest.err
2630  rm -f conftest.er1
2631  cat conftest.err >&5
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); } &&
2634	 { ac_try='test -z "$ac_c_werror_flag"
2635			 || test ! -s conftest.err'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; } &&
2641	 { ac_try='test -s conftest.$ac_objext'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; }; then
2647  ac_cv_prog_cc_g=yes
2648else
2649  echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652ac_cv_prog_cc_g=no
2653fi
2654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2655fi
2656echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2657echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2658if test "$ac_test_CFLAGS" = set; then
2659  CFLAGS=$ac_save_CFLAGS
2660elif test $ac_cv_prog_cc_g = yes; then
2661  if test "$GCC" = yes; then
2662    CFLAGS="-g -O2"
2663  else
2664    CFLAGS="-g"
2665  fi
2666else
2667  if test "$GCC" = yes; then
2668    CFLAGS="-O2"
2669  else
2670    CFLAGS=
2671  fi
2672fi
2673echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2674echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2675if test "${ac_cv_prog_cc_stdc+set}" = set; then
2676  echo $ECHO_N "(cached) $ECHO_C" >&6
2677else
2678  ac_cv_prog_cc_stdc=no
2679ac_save_CC=$CC
2680cat >conftest.$ac_ext <<_ACEOF
2681/* confdefs.h.  */
2682_ACEOF
2683cat confdefs.h >>conftest.$ac_ext
2684cat >>conftest.$ac_ext <<_ACEOF
2685/* end confdefs.h.  */
2686#include <stdarg.h>
2687#include <stdio.h>
2688#include <sys/types.h>
2689#include <sys/stat.h>
2690/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2691struct buf { int x; };
2692FILE * (*rcsopen) (struct buf *, struct stat *, int);
2693static char *e (p, i)
2694     char **p;
2695     int i;
2696{
2697  return p[i];
2698}
2699static char *f (char * (*g) (char **, int), char **p, ...)
2700{
2701  char *s;
2702  va_list v;
2703  va_start (v,p);
2704  s = g (p, va_arg (v,int));
2705  va_end (v);
2706  return s;
2707}
2708
2709/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2710   function prototypes and stuff, but not '\xHH' hex character constants.
2711   These don't provoke an error unfortunately, instead are silently treated
2712   as 'x'.  The following induces an error, until -std1 is added to get
2713   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2714   array size at least.  It's necessary to write '\x00'==0 to get something
2715   that's true only with -std1.  */
2716int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2717
2718int test (int i, double x);
2719struct s1 {int (*f) (int a);};
2720struct s2 {int (*f) (double a);};
2721int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722int argc;
2723char **argv;
2724int
2725main ()
2726{
2727return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2728  ;
2729  return 0;
2730}
2731_ACEOF
2732# Don't try gcc -ansi; that turns off useful extensions and
2733# breaks some systems' header files.
2734# AIX			-qlanglvl=ansi
2735# Ultrix and OSF/1	-std1
2736# HP-UX 10.20 and later	-Ae
2737# HP-UX older versions	-Aa -D_HPUX_SOURCE
2738# SVR4			-Xc -D__EXTENSIONS__
2739for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2740do
2741  CC="$ac_save_CC $ac_arg"
2742  rm -f conftest.$ac_objext
2743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744  (eval $ac_compile) 2>conftest.er1
2745  ac_status=$?
2746  grep -v '^ *+' conftest.er1 >conftest.err
2747  rm -f conftest.er1
2748  cat conftest.err >&5
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); } &&
2751	 { ac_try='test -z "$ac_c_werror_flag"
2752			 || test ! -s conftest.err'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; } &&
2758	 { ac_try='test -s conftest.$ac_objext'
2759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760  (eval $ac_try) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; }; then
2764  ac_cv_prog_cc_stdc=$ac_arg
2765break
2766else
2767  echo "$as_me: failed program was:" >&5
2768sed 's/^/| /' conftest.$ac_ext >&5
2769
2770fi
2771rm -f conftest.err conftest.$ac_objext
2772done
2773rm -f conftest.$ac_ext conftest.$ac_objext
2774CC=$ac_save_CC
2775
2776fi
2777
2778case "x$ac_cv_prog_cc_stdc" in
2779  x|xno)
2780    echo "$as_me:$LINENO: result: none needed" >&5
2781echo "${ECHO_T}none needed" >&6 ;;
2782  *)
2783    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2784echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2785    CC="$CC $ac_cv_prog_cc_stdc" ;;
2786esac
2787
2788# Some people use a C++ compiler to compile C.  Since we use `exit',
2789# in C++ we need to declare it.  In case someone uses the same compiler
2790# for both compiling C and C++ we need to have the C++ compiler decide
2791# the declaration of exit, since it's the most demanding environment.
2792cat >conftest.$ac_ext <<_ACEOF
2793#ifndef __cplusplus
2794  choke me
2795#endif
2796_ACEOF
2797rm -f conftest.$ac_objext
2798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799  (eval $ac_compile) 2>conftest.er1
2800  ac_status=$?
2801  grep -v '^ *+' conftest.er1 >conftest.err
2802  rm -f conftest.er1
2803  cat conftest.err >&5
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); } &&
2806	 { ac_try='test -z "$ac_c_werror_flag"
2807			 || test ! -s conftest.err'
2808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809  (eval $ac_try) 2>&5
2810  ac_status=$?
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); }; } &&
2813	 { ac_try='test -s conftest.$ac_objext'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; }; then
2819  for ac_declaration in \
2820   '' \
2821   'extern "C" void std::exit (int) throw (); using std::exit;' \
2822   'extern "C" void std::exit (int); using std::exit;' \
2823   'extern "C" void exit (int) throw ();' \
2824   'extern "C" void exit (int);' \
2825   'void exit (int);'
2826do
2827  cat >conftest.$ac_ext <<_ACEOF
2828/* confdefs.h.  */
2829_ACEOF
2830cat confdefs.h >>conftest.$ac_ext
2831cat >>conftest.$ac_ext <<_ACEOF
2832/* end confdefs.h.  */
2833$ac_declaration
2834#include <stdlib.h>
2835int
2836main ()
2837{
2838exit (42);
2839  ;
2840  return 0;
2841}
2842_ACEOF
2843rm -f conftest.$ac_objext
2844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845  (eval $ac_compile) 2>conftest.er1
2846  ac_status=$?
2847  grep -v '^ *+' conftest.er1 >conftest.err
2848  rm -f conftest.er1
2849  cat conftest.err >&5
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); } &&
2852	 { ac_try='test -z "$ac_c_werror_flag"
2853			 || test ! -s conftest.err'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; } &&
2859	 { ac_try='test -s conftest.$ac_objext'
2860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861  (eval $ac_try) 2>&5
2862  ac_status=$?
2863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864  (exit $ac_status); }; }; then
2865  :
2866else
2867  echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870continue
2871fi
2872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2873  cat >conftest.$ac_ext <<_ACEOF
2874/* confdefs.h.  */
2875_ACEOF
2876cat confdefs.h >>conftest.$ac_ext
2877cat >>conftest.$ac_ext <<_ACEOF
2878/* end confdefs.h.  */
2879$ac_declaration
2880int
2881main ()
2882{
2883exit (42);
2884  ;
2885  return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2890  (eval $ac_compile) 2>conftest.er1
2891  ac_status=$?
2892  grep -v '^ *+' conftest.er1 >conftest.err
2893  rm -f conftest.er1
2894  cat conftest.err >&5
2895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896  (exit $ac_status); } &&
2897	 { ac_try='test -z "$ac_c_werror_flag"
2898			 || test ! -s conftest.err'
2899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900  (eval $ac_try) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }; } &&
2904	 { ac_try='test -s conftest.$ac_objext'
2905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906  (eval $ac_try) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }; }; then
2910  break
2911else
2912  echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
2915fi
2916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2917done
2918rm -f conftest*
2919if test -n "$ac_declaration"; then
2920  echo '#ifdef __cplusplus' >>confdefs.h
2921  echo $ac_declaration      >>confdefs.h
2922  echo '#endif'             >>confdefs.h
2923fi
2924
2925else
2926  echo "$as_me: failed program was:" >&5
2927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929fi
2930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931ac_ext=c
2932ac_cpp='$CPP $CPPFLAGS'
2933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2935ac_compiler_gnu=$ac_cv_c_compiler_gnu
2936DEPDIR="${am__leading_dot}deps"
2937
2938          ac_config_commands="$ac_config_commands depfiles"
2939
2940
2941am_make=${MAKE-make}
2942cat > confinc << 'END'
2943am__doit:
2944	@echo done
2945.PHONY: am__doit
2946END
2947# If we don't find an include directive, just comment out the code.
2948echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2949echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2950am__include="#"
2951am__quote=
2952_am_result=none
2953# First try GNU make style include.
2954echo "include confinc" > confmf
2955# We grep out `Entering directory' and `Leaving directory'
2956# messages which can occur if `w' ends up in MAKEFLAGS.
2957# In particular we don't look at `^make:' because GNU make might
2958# be invoked under some other name (usually "gmake"), in which
2959# case it prints its new name instead of `make'.
2960if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2961   am__include=include
2962   am__quote=
2963   _am_result=GNU
2964fi
2965# Now try BSD make style include.
2966if test "$am__include" = "#"; then
2967   echo '.include "confinc"' > confmf
2968   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2969      am__include=.include
2970      am__quote="\""
2971      _am_result=BSD
2972   fi
2973fi
2974
2975
2976echo "$as_me:$LINENO: result: $_am_result" >&5
2977echo "${ECHO_T}$_am_result" >&6
2978rm -f confinc confmf
2979
2980# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2981if test "${enable_dependency_tracking+set}" = set; then
2982  enableval="$enable_dependency_tracking"
2983
2984fi;
2985if test "x$enable_dependency_tracking" != xno; then
2986  am_depcomp="$ac_aux_dir/depcomp"
2987  AMDEPBACKSLASH='\'
2988fi
2989
2990
2991if test "x$enable_dependency_tracking" != xno; then
2992  AMDEP_TRUE=
2993  AMDEP_FALSE='#'
2994else
2995  AMDEP_TRUE='#'
2996  AMDEP_FALSE=
2997fi
2998
2999
3000
3001
3002depcc="$CC"   am_compiler_list=
3003
3004echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3005echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3006if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3007  echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3010  # We make a subdir and do the tests there.  Otherwise we can end up
3011  # making bogus files that we don't know about and never remove.  For
3012  # instance it was reported that on HP-UX the gcc test will end up
3013  # making a dummy file named `D' -- because `-MD' means `put the output
3014  # in D'.
3015  mkdir conftest.dir
3016  # Copy depcomp to subdir because otherwise we won't find it if we're
3017  # using a relative directory.
3018  cp "$am_depcomp" conftest.dir
3019  cd conftest.dir
3020  # We will build objects and dependencies in a subdirectory because
3021  # it helps to detect inapplicable dependency modes.  For instance
3022  # both Tru64's cc and ICC support -MD to output dependencies as a
3023  # side effect of compilation, but ICC will put the dependencies in
3024  # the current directory while Tru64 will put them in the object
3025  # directory.
3026  mkdir sub
3027
3028  am_cv_CC_dependencies_compiler_type=none
3029  if test "$am_compiler_list" = ""; then
3030     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3031  fi
3032  for depmode in $am_compiler_list; do
3033    # Setup a source with many dependencies, because some compilers
3034    # like to wrap large dependency lists on column 80 (with \), and
3035    # we should not choose a depcomp mode which is confused by this.
3036    #
3037    # We need to recreate these files for each test, as the compiler may
3038    # overwrite some of them when testing with obscure command lines.
3039    # This happens at least with the AIX C compiler.
3040    : > sub/conftest.c
3041    for i in 1 2 3 4 5 6; do
3042      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3043      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3044      # Solaris 8's {/usr,}/bin/sh.
3045      touch sub/conftst$i.h
3046    done
3047    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3048
3049    case $depmode in
3050    nosideeffect)
3051      # after this tag, mechanisms are not by side-effect, so they'll
3052      # only be used when explicitly requested
3053      if test "x$enable_dependency_tracking" = xyes; then
3054	continue
3055      else
3056	break
3057      fi
3058      ;;
3059    none) break ;;
3060    esac
3061    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3062    # mode.  It turns out that the SunPro C++ compiler does not properly
3063    # handle `-M -o', and we need to detect this.
3064    if depmode=$depmode \
3065       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3066       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3067       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3068         >/dev/null 2>conftest.err &&
3069       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3070       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3071       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3072      # icc doesn't choke on unknown options, it will just issue warnings
3073      # or remarks (even with -Werror).  So we grep stderr for any message
3074      # that says an option was ignored or not supported.
3075      # When given -MP, icc 7.0 and 7.1 complain thusly:
3076      #   icc: Command line warning: ignoring option '-M'; no argument required
3077      # The diagnosis changed in icc 8.0:
3078      #   icc: Command line remark: option '-MP' not supported
3079      if (grep 'ignoring option' conftest.err ||
3080          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3081        am_cv_CC_dependencies_compiler_type=$depmode
3082        break
3083      fi
3084    fi
3085  done
3086
3087  cd ..
3088  rm -rf conftest.dir
3089else
3090  am_cv_CC_dependencies_compiler_type=none
3091fi
3092
3093fi
3094echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3095echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3096CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3097
3098
3099
3100if
3101  test "x$enable_dependency_tracking" != xno \
3102  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3103  am__fastdepCC_TRUE=
3104  am__fastdepCC_FALSE='#'
3105else
3106  am__fastdepCC_TRUE='#'
3107  am__fastdepCC_FALSE=
3108fi
3109
3110
3111
3112echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3113echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3114if test "${ac_cv_c_const+set}" = set; then
3115  echo $ECHO_N "(cached) $ECHO_C" >&6
3116else
3117  cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h.  */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h.  */
3123
3124int
3125main ()
3126{
3127/* FIXME: Include the comments suggested by Paul. */
3128#ifndef __cplusplus
3129  /* Ultrix mips cc rejects this.  */
3130  typedef int charset[2];
3131  const charset x;
3132  /* SunOS 4.1.1 cc rejects this.  */
3133  char const *const *ccp;
3134  char **p;
3135  /* NEC SVR4.0.2 mips cc rejects this.  */
3136  struct point {int x, y;};
3137  static struct point const zero = {0,0};
3138  /* AIX XL C 1.02.0.0 rejects this.
3139     It does not let you subtract one const X* pointer from another in
3140     an arm of an if-expression whose if-part is not a constant
3141     expression */
3142  const char *g = "string";
3143  ccp = &g + (g ? g-g : 0);
3144  /* HPUX 7.0 cc rejects these. */
3145  ++ccp;
3146  p = (char**) ccp;
3147  ccp = (char const *const *) p;
3148  { /* SCO 3.2v4 cc rejects this.  */
3149    char *t;
3150    char const *s = 0 ? (char *) 0 : (char const *) 0;
3151
3152    *t++ = 0;
3153  }
3154  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3155    int x[] = {25, 17};
3156    const int *foo = &x[0];
3157    ++foo;
3158  }
3159  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3160    typedef const int *iptr;
3161    iptr p = 0;
3162    ++p;
3163  }
3164  { /* AIX XL C 1.02.0.0 rejects this saying
3165       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3166    struct s { int j; const int *ap[3]; };
3167    struct s *b; b->j = 5;
3168  }
3169  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3170    const int foo = 10;
3171  }
3172#endif
3173
3174  ;
3175  return 0;
3176}
3177_ACEOF
3178rm -f conftest.$ac_objext
3179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180  (eval $ac_compile) 2>conftest.er1
3181  ac_status=$?
3182  grep -v '^ *+' conftest.er1 >conftest.err
3183  rm -f conftest.er1
3184  cat conftest.err >&5
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); } &&
3187	 { ac_try='test -z "$ac_c_werror_flag"
3188			 || test ! -s conftest.err'
3189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190  (eval $ac_try) 2>&5
3191  ac_status=$?
3192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193  (exit $ac_status); }; } &&
3194	 { ac_try='test -s conftest.$ac_objext'
3195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3196  (eval $ac_try) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }; }; then
3200  ac_cv_c_const=yes
3201else
3202  echo "$as_me: failed program was:" >&5
3203sed 's/^/| /' conftest.$ac_ext >&5
3204
3205ac_cv_c_const=no
3206fi
3207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3208fi
3209echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3210echo "${ECHO_T}$ac_cv_c_const" >&6
3211if test $ac_cv_c_const = no; then
3212
3213cat >>confdefs.h <<\_ACEOF
3214#define const
3215_ACEOF
3216
3217fi
3218
3219echo "$as_me:$LINENO: checking whether the C compiler supports __attribute__" >&5
3220echo $ECHO_N "checking whether the C compiler supports __attribute__... $ECHO_C" >&6
3221if test "${alut_cv___attribute__+set}" = set; then
3222  echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224  cat >conftest.$ac_ext <<_ACEOF
3225/* confdefs.h.  */
3226_ACEOF
3227cat confdefs.h >>conftest.$ac_ext
3228cat >>conftest.$ac_ext <<_ACEOF
3229/* end confdefs.h.  */
3230
3231    void  foo (int bar __attribute__((unused)) ) { }
3232    static void baz (void) __attribute__((unused));
3233    static void baz (void) { }
3234_ACEOF
3235rm -f conftest.$ac_objext
3236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237  (eval $ac_compile) 2>conftest.er1
3238  ac_status=$?
3239  grep -v '^ *+' conftest.er1 >conftest.err
3240  rm -f conftest.er1
3241  cat conftest.err >&5
3242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243  (exit $ac_status); } &&
3244	 { ac_try='test -z "$ac_c_werror_flag"
3245			 || test ! -s conftest.err'
3246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3247  (eval $ac_try) 2>&5
3248  ac_status=$?
3249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250  (exit $ac_status); }; } &&
3251	 { ac_try='test -s conftest.$ac_objext'
3252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253  (eval $ac_try) 2>&5
3254  ac_status=$?
3255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256  (exit $ac_status); }; }; then
3257  alut_cv___attribute__=yes
3258else
3259  echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
3262alut_cv___attribute__=no
3263fi
3264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3265fi
3266echo "$as_me:$LINENO: result: $alut_cv___attribute__" >&5
3267echo "${ECHO_T}$alut_cv___attribute__" >&6
3268if test "$alut_cv___attribute__" = yes; then
3269
3270cat >>confdefs.h <<\_ACEOF
3271#define HAVE___ATTRIBUTE__ 1
3272_ACEOF
3273
3274fi
3275
3276
3277# Note that -fvisibility=... support implies __attribute__((visibility(...)))
3278# support.
3279alut_compiler="$CC"
3280echo "$as_me:$LINENO: checking whether $alut_compiler accepts -fvisibility=hidden" >&5
3281echo $ECHO_N "checking whether $alut_compiler accepts -fvisibility=hidden... $ECHO_C" >&6
3282if test "${alut_cv_CFLAGS_fvisibility_hidden+set}" = set; then
3283  echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285  cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h.  */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h.  */
3291
3292int
3293main ()
3294{
3295
3296  ;
3297  return 0;
3298}
3299_ACEOF
3300alut_save_flags="$CFLAGS"
3301CFLAGS="$CFLAGS -fvisibility=hidden"
3302alut_cv_CFLAGS_fvisibility_hidden=no
3303if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1
3304  alut_status=$?
3305  grep -v '^ *+' conftest.er1 >conftest.err
3306  rm -f conftest.er1
3307  (exit $alut_status); } >/dev/null; then
3308  test -s conftest.err || alut_cv_CFLAGS_fvisibility_hidden=yes
3309fi
3310CFLAGS="$alut_save_flags"
3311rm -f conftest.err conftest.$ac_ext
3312fi
3313echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_fvisibility_hidden" >&5
3314echo "${ECHO_T}$alut_cv_CFLAGS_fvisibility_hidden" >&6
3315if test $alut_cv_CFLAGS_fvisibility_hidden = yes; then
3316  AM_CFLAGS="$AM_CFLAGS -fvisibility=hidden"
3317
3318cat >>confdefs.h <<\_ACEOF
3319#define HAVE_GCC_VISIBILITY 1
3320_ACEOF
3321
3322fi
3323
3324
3325# test_suite/test_retrostuff tests deprecated functions, but we don't want to
3326# get compiler warnings because of that.
3327alut_compiler="$CC"
3328echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Wno-deprecated-declarations" >&5
3329echo $ECHO_N "checking whether $alut_compiler accepts -Wno-deprecated-declarations... $ECHO_C" >&6
3330if test "${alut_cv_CFLAGS_Wno_deprecated_declarations+set}" = set; then
3331  echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
3333  cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h.  */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h.  */
3339
3340int
3341main ()
3342{
3343
3344  ;
3345  return 0;
3346}
3347_ACEOF
3348alut_save_flags="$CFLAGS"
3349CFLAGS="$CFLAGS -Wno-deprecated-declarations"
3350alut_cv_CFLAGS_Wno_deprecated_declarations=no
3351if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1
3352  alut_status=$?
3353  grep -v '^ *+' conftest.er1 >conftest.err
3354  rm -f conftest.er1
3355  (exit $alut_status); } >/dev/null; then
3356  test -s conftest.err || alut_cv_CFLAGS_Wno_deprecated_declarations=yes
3357fi
3358CFLAGS="$alut_save_flags"
3359rm -f conftest.err conftest.$ac_ext
3360fi
3361echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Wno_deprecated_declarations" >&5
3362echo "${ECHO_T}$alut_cv_CFLAGS_Wno_deprecated_declarations" >&6
3363if test $alut_cv_CFLAGS_Wno_deprecated_declarations = yes; then
3364  alut_wno_deprecated_declarations=yes
3365else
3366  alut_wno_deprecated_declarations=no
3367fi
3368
3369
3370
3371if test x"$alut_wno_deprecated_declarations" = xyes; then
3372  WNO_DEPRECATED_DECLARATIONS_TRUE=
3373  WNO_DEPRECATED_DECLARATIONS_FALSE='#'
3374else
3375  WNO_DEPRECATED_DECLARATIONS_TRUE='#'
3376  WNO_DEPRECATED_DECLARATIONS_FALSE=
3377fi
3378
3379
3380
3381
3382
3383# Check whether --enable-shared or --disable-shared was given.
3384if test "${enable_shared+set}" = set; then
3385  enableval="$enable_shared"
3386  p=${PACKAGE-default}
3387    case $enableval in
3388    yes) enable_shared=yes ;;
3389    no) enable_shared=no ;;
3390    *)
3391      enable_shared=no
3392      # Look at the argument we got.  We use all the common list separators.
3393      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3394      for pkg in $enableval; do
3395	IFS="$lt_save_ifs"
3396	if test "X$pkg" = "X$p"; then
3397	  enable_shared=yes
3398	fi
3399      done
3400      IFS="$lt_save_ifs"
3401      ;;
3402    esac
3403else
3404  enable_shared=yes
3405fi;
3406
3407# Check whether --enable-static or --disable-static was given.
3408if test "${enable_static+set}" = set; then
3409  enableval="$enable_static"
3410  p=${PACKAGE-default}
3411    case $enableval in
3412    yes) enable_static=yes ;;
3413    no) enable_static=no ;;
3414    *)
3415     enable_static=no
3416      # Look at the argument we got.  We use all the common list separators.
3417      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3418      for pkg in $enableval; do
3419	IFS="$lt_save_ifs"
3420	if test "X$pkg" = "X$p"; then
3421	  enable_static=yes
3422	fi
3423      done
3424      IFS="$lt_save_ifs"
3425      ;;
3426    esac
3427else
3428  enable_static=yes
3429fi;
3430
3431# Check whether --enable-fast-install or --disable-fast-install was given.
3432if test "${enable_fast_install+set}" = set; then
3433  enableval="$enable_fast_install"
3434  p=${PACKAGE-default}
3435    case $enableval in
3436    yes) enable_fast_install=yes ;;
3437    no) enable_fast_install=no ;;
3438    *)
3439      enable_fast_install=no
3440      # Look at the argument we got.  We use all the common list separators.
3441      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3442      for pkg in $enableval; do
3443	IFS="$lt_save_ifs"
3444	if test "X$pkg" = "X$p"; then
3445	  enable_fast_install=yes
3446	fi
3447      done
3448      IFS="$lt_save_ifs"
3449      ;;
3450    esac
3451else
3452  enable_fast_install=yes
3453fi;
3454
3455# Make sure we can run config.sub.
3456$ac_config_sub sun4 >/dev/null 2>&1 ||
3457  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3458echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3459   { (exit 1); exit 1; }; }
3460
3461echo "$as_me:$LINENO: checking build system type" >&5
3462echo $ECHO_N "checking build system type... $ECHO_C" >&6
3463if test "${ac_cv_build+set}" = set; then
3464  echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466  ac_cv_build_alias=$build_alias
3467test -z "$ac_cv_build_alias" &&
3468  ac_cv_build_alias=`$ac_config_guess`
3469test -z "$ac_cv_build_alias" &&
3470  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3471echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3472   { (exit 1); exit 1; }; }
3473ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3474  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3475echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3476   { (exit 1); exit 1; }; }
3477
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3480echo "${ECHO_T}$ac_cv_build" >&6
3481build=$ac_cv_build
3482build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3483build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3484build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3485
3486
3487echo "$as_me:$LINENO: checking host system type" >&5
3488echo $ECHO_N "checking host system type... $ECHO_C" >&6
3489if test "${ac_cv_host+set}" = set; then
3490  echo $ECHO_N "(cached) $ECHO_C" >&6
3491else
3492  ac_cv_host_alias=$host_alias
3493test -z "$ac_cv_host_alias" &&
3494  ac_cv_host_alias=$ac_cv_build_alias
3495ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3496  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3497echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3498   { (exit 1); exit 1; }; }
3499
3500fi
3501echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3502echo "${ECHO_T}$ac_cv_host" >&6
3503host=$ac_cv_host
3504host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3505host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3506host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3507
3508
3509echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3510echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3511if test "${lt_cv_path_SED+set}" = set; then
3512  echo $ECHO_N "(cached) $ECHO_C" >&6
3513else
3514  # Loop through the user's path and test for sed and gsed.
3515# Then use that list of sed's as ones to test for truncation.
3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517for as_dir in $PATH
3518do
3519  IFS=$as_save_IFS
3520  test -z "$as_dir" && as_dir=.
3521  for lt_ac_prog in sed gsed; do
3522    for ac_exec_ext in '' $ac_executable_extensions; do
3523      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3524        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3525      fi
3526    done
3527  done
3528done
3529lt_ac_max=0
3530lt_ac_count=0
3531# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3532# along with /bin/sed that truncates output.
3533for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3534  test ! -f $lt_ac_sed && continue
3535  cat /dev/null > conftest.in
3536  lt_ac_count=0
3537  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3538  # Check for GNU sed and select it if it is found.
3539  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3540    lt_cv_path_SED=$lt_ac_sed
3541    break
3542  fi
3543  while true; do
3544    cat conftest.in conftest.in >conftest.tmp
3545    mv conftest.tmp conftest.in
3546    cp conftest.in conftest.nl
3547    echo >>conftest.nl
3548    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3549    cmp -s conftest.out conftest.nl || break
3550    # 10000 chars as input seems more than enough
3551    test $lt_ac_count -gt 10 && break
3552    lt_ac_count=`expr $lt_ac_count + 1`
3553    if test $lt_ac_count -gt $lt_ac_max; then
3554      lt_ac_max=$lt_ac_count
3555      lt_cv_path_SED=$lt_ac_sed
3556    fi
3557  done
3558done
3559
3560fi
3561
3562SED=$lt_cv_path_SED
3563echo "$as_me:$LINENO: result: $SED" >&5
3564echo "${ECHO_T}$SED" >&6
3565
3566echo "$as_me:$LINENO: checking for egrep" >&5
3567echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3568if test "${ac_cv_prog_egrep+set}" = set; then
3569  echo $ECHO_N "(cached) $ECHO_C" >&6
3570else
3571  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3572    then ac_cv_prog_egrep='grep -E'
3573    else ac_cv_prog_egrep='egrep'
3574    fi
3575fi
3576echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3577echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3578 EGREP=$ac_cv_prog_egrep
3579
3580
3581
3582# Check whether --with-gnu-ld or --without-gnu-ld was given.
3583if test "${with_gnu_ld+set}" = set; then
3584  withval="$with_gnu_ld"
3585  test "$withval" = no || with_gnu_ld=yes
3586else
3587  with_gnu_ld=no
3588fi;
3589ac_prog=ld
3590if test "$GCC" = yes; then
3591  # Check if gcc -print-prog-name=ld gives a path.
3592  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3593echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3594  case $host in
3595  *-*-mingw*)
3596    # gcc leaves a trailing carriage return which upsets mingw
3597    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3598  *)
3599    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3600  esac
3601  case $ac_prog in
3602    # Accept absolute paths.
3603    [\\/]* | ?:[\\/]*)
3604      re_direlt='/[^/][^/]*/\.\./'
3605      # Canonicalize the pathname of ld
3606      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3607      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3608	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3609      done
3610      test -z "$LD" && LD="$ac_prog"
3611      ;;
3612  "")
3613    # If it fails, then pretend we aren't using GCC.
3614    ac_prog=ld
3615    ;;
3616  *)
3617    # If it is relative, then search for the first ld in PATH.
3618    with_gnu_ld=unknown
3619    ;;
3620  esac
3621elif test "$with_gnu_ld" = yes; then
3622  echo "$as_me:$LINENO: checking for GNU ld" >&5
3623echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3624else
3625  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3626echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3627fi
3628if test "${lt_cv_path_LD+set}" = set; then
3629  echo $ECHO_N "(cached) $ECHO_C" >&6
3630else
3631  if test -z "$LD"; then
3632  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3633  for ac_dir in $PATH; do
3634    IFS="$lt_save_ifs"
3635    test -z "$ac_dir" && ac_dir=.
3636    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3637      lt_cv_path_LD="$ac_dir/$ac_prog"
3638      # Check to see if the program is GNU ld.  I'd rather use --version,
3639      # but apparently some GNU ld's only accept -v.
3640      # Break only if it was the GNU/non-GNU ld that we prefer.
3641      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3642      *GNU* | *'with BFD'*)
3643	test "$with_gnu_ld" != no && break
3644	;;
3645      *)
3646	test "$with_gnu_ld" != yes && break
3647	;;
3648      esac
3649    fi
3650  done
3651  IFS="$lt_save_ifs"
3652else
3653  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3654fi
3655fi
3656
3657LD="$lt_cv_path_LD"
3658if test -n "$LD"; then
3659  echo "$as_me:$LINENO: result: $LD" >&5
3660echo "${ECHO_T}$LD" >&6
3661else
3662  echo "$as_me:$LINENO: result: no" >&5
3663echo "${ECHO_T}no" >&6
3664fi
3665test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3666echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3667   { (exit 1); exit 1; }; }
3668echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3669echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3670if test "${lt_cv_prog_gnu_ld+set}" = set; then
3671  echo $ECHO_N "(cached) $ECHO_C" >&6
3672else
3673  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3674case `$LD -v 2>&1 </dev/null` in
3675*GNU* | *'with BFD'*)
3676  lt_cv_prog_gnu_ld=yes
3677  ;;
3678*)
3679  lt_cv_prog_gnu_ld=no
3680  ;;
3681esac
3682fi
3683echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3684echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3685with_gnu_ld=$lt_cv_prog_gnu_ld
3686
3687
3688echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3689echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3690if test "${lt_cv_ld_reload_flag+set}" = set; then
3691  echo $ECHO_N "(cached) $ECHO_C" >&6
3692else
3693  lt_cv_ld_reload_flag='-r'
3694fi
3695echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3696echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3697reload_flag=$lt_cv_ld_reload_flag
3698case $reload_flag in
3699"" | " "*) ;;
3700*) reload_flag=" $reload_flag" ;;
3701esac
3702reload_cmds='$LD$reload_flag -o $output$reload_objs'
3703case $host_os in
3704  darwin*)
3705    if test "$GCC" = yes; then
3706      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3707    else
3708      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3709    fi
3710    ;;
3711esac
3712
3713echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3714echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3715if test "${lt_cv_path_NM+set}" = set; then
3716  echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718  if test -n "$NM"; then
3719  # Let the user override the test.
3720  lt_cv_path_NM="$NM"
3721else
3722  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3723  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3724    IFS="$lt_save_ifs"
3725    test -z "$ac_dir" && ac_dir=.
3726    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3727    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3728      # Check to see if the nm accepts a BSD-compat flag.
3729      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3730      #   nm: unknown option "B" ignored
3731      # Tru64's nm complains that /dev/null is an invalid object file
3732      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3733      */dev/null* | *'Invalid file or object type'*)
3734	lt_cv_path_NM="$tmp_nm -B"
3735	break
3736        ;;
3737      *)
3738	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3739	*/dev/null*)
3740	  lt_cv_path_NM="$tmp_nm -p"
3741	  break
3742	  ;;
3743	*)
3744	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3745	  continue # so that we can try to find one that supports BSD flags
3746	  ;;
3747	esac
3748      esac
3749    fi
3750  done
3751  IFS="$lt_save_ifs"
3752  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3753fi
3754fi
3755echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3756echo "${ECHO_T}$lt_cv_path_NM" >&6
3757NM="$lt_cv_path_NM"
3758
3759echo "$as_me:$LINENO: checking whether ln -s works" >&5
3760echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3761LN_S=$as_ln_s
3762if test "$LN_S" = "ln -s"; then
3763  echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
3765else
3766  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3767echo "${ECHO_T}no, using $LN_S" >&6
3768fi
3769
3770echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3771echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3772if test "${lt_cv_deplibs_check_method+set}" = set; then
3773  echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775  lt_cv_file_magic_cmd='$MAGIC_CMD'
3776lt_cv_file_magic_test_file=
3777lt_cv_deplibs_check_method='unknown'
3778# Need to set the preceding variable on all platforms that support
3779# interlibrary dependencies.
3780# 'none' -- dependencies not supported.
3781# `unknown' -- same as none, but documents that we really don't know.
3782# 'pass_all' -- all dependencies passed with no checks.
3783# 'test_compile' -- check by making test program.
3784# 'file_magic [[regex]]' -- check by looking for files in library path
3785# which responds to the $file_magic_cmd with a given extended regex.
3786# If you have `file' or equivalent on your system and you're not sure
3787# whether `pass_all' will *always* work, you probably want this one.
3788
3789case $host_os in
3790aix4* | aix5*)
3791  lt_cv_deplibs_check_method=pass_all
3792  ;;
3793
3794beos*)
3795  lt_cv_deplibs_check_method=pass_all
3796  ;;
3797
3798bsdi[45]*)
3799  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3800  lt_cv_file_magic_cmd='/usr/bin/file -L'
3801  lt_cv_file_magic_test_file=/shlib/libc.so
3802  ;;
3803
3804cygwin*)
3805  # func_win32_libid is a shell function defined in ltmain.sh
3806  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3807  lt_cv_file_magic_cmd='func_win32_libid'
3808  ;;
3809
3810mingw* | pw32*)
3811  # Base MSYS/MinGW do not provide the 'file' command needed by
3812  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3813  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3814  lt_cv_file_magic_cmd='$OBJDUMP -f'
3815  ;;
3816
3817darwin* | rhapsody*)
3818  lt_cv_deplibs_check_method=pass_all
3819  ;;
3820
3821freebsd* | kfreebsd*-gnu | dragonfly*)
3822  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3823    case $host_cpu in
3824    i*86 )
3825      # Not sure whether the presence of OpenBSD here was a mistake.
3826      # Let's accept both of them until this is cleared up.
3827      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3828      lt_cv_file_magic_cmd=/usr/bin/file
3829      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3830      ;;
3831    esac
3832  else
3833    lt_cv_deplibs_check_method=pass_all
3834  fi
3835  ;;
3836
3837gnu*)
3838  lt_cv_deplibs_check_method=pass_all
3839  ;;
3840
3841hpux10.20* | hpux11*)
3842  lt_cv_file_magic_cmd=/usr/bin/file
3843  case "$host_cpu" in
3844  ia64*)
3845    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3846    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3847    ;;
3848  hppa*64*)
3849    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]'
3850    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3851    ;;
3852  *)
3853    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3854    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3855    ;;
3856  esac
3857  ;;
3858
3859irix5* | irix6* | nonstopux*)
3860  case $LD in
3861  *-32|*"-32 ") libmagic=32-bit;;
3862  *-n32|*"-n32 ") libmagic=N32;;
3863  *-64|*"-64 ") libmagic=64-bit;;
3864  *) libmagic=never-match;;
3865  esac
3866  lt_cv_deplibs_check_method=pass_all
3867  ;;
3868
3869# This must be Linux ELF.
3870linux*)
3871  lt_cv_deplibs_check_method=pass_all
3872  ;;
3873
3874netbsd*)
3875  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3876    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3877  else
3878    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3879  fi
3880  ;;
3881
3882newos6*)
3883  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3884  lt_cv_file_magic_cmd=/usr/bin/file
3885  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3886  ;;
3887
3888nto-qnx*)
3889  lt_cv_deplibs_check_method=unknown
3890  ;;
3891
3892openbsd*)
3893  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3894    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3895  else
3896    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3897  fi
3898  ;;
3899
3900osf3* | osf4* | osf5*)
3901  lt_cv_deplibs_check_method=pass_all
3902  ;;
3903
3904sco3.2v5*)
3905  lt_cv_deplibs_check_method=pass_all
3906  ;;
3907
3908solaris*)
3909  lt_cv_deplibs_check_method=pass_all
3910  ;;
3911
3912sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3913  case $host_vendor in
3914  motorola)
3915    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]'
3916    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3917    ;;
3918  ncr)
3919    lt_cv_deplibs_check_method=pass_all
3920    ;;
3921  sequent)
3922    lt_cv_file_magic_cmd='/bin/file'
3923    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3924    ;;
3925  sni)
3926    lt_cv_file_magic_cmd='/bin/file'
3927    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3928    lt_cv_file_magic_test_file=/lib/libc.so
3929    ;;
3930  siemens)
3931    lt_cv_deplibs_check_method=pass_all
3932    ;;
3933  esac
3934  ;;
3935
3936sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3937  lt_cv_deplibs_check_method=pass_all
3938  ;;
3939esac
3940
3941fi
3942echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3943echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3944file_magic_cmd=$lt_cv_file_magic_cmd
3945deplibs_check_method=$lt_cv_deplibs_check_method
3946test -z "$deplibs_check_method" && deplibs_check_method=unknown
3947
3948
3949
3950# If no C compiler was specified, use CC.
3951LTCC=${LTCC-"$CC"}
3952
3953# Allow CC to be a program name with arguments.
3954compiler=$CC
3955
3956# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3957if test "${enable_libtool_lock+set}" = set; then
3958  enableval="$enable_libtool_lock"
3959
3960fi;
3961test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3962
3963# Some flags need to be propagated to the compiler or linker for good
3964# libtool support.
3965case $host in
3966ia64-*-hpux*)
3967  # Find out which ABI we are using.
3968  echo 'int i;' > conftest.$ac_ext
3969  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3970  (eval $ac_compile) 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; then
3974    case `/usr/bin/file conftest.$ac_objext` in
3975    *ELF-32*)
3976      HPUX_IA64_MODE="32"
3977      ;;
3978    *ELF-64*)
3979      HPUX_IA64_MODE="64"
3980      ;;
3981    esac
3982  fi
3983  rm -rf conftest*
3984  ;;
3985*-*-irix6*)
3986  # Find out which ABI we are using.
3987  echo '#line 3987 "configure"' > conftest.$ac_ext
3988  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989  (eval $ac_compile) 2>&5
3990  ac_status=$?
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); }; then
3993   if test "$lt_cv_prog_gnu_ld" = yes; then
3994    case `/usr/bin/file conftest.$ac_objext` in
3995    *32-bit*)
3996      LD="${LD-ld} -melf32bsmip"
3997      ;;
3998    *N32*)
3999      LD="${LD-ld} -melf32bmipn32"
4000      ;;
4001    *64-bit*)
4002      LD="${LD-ld} -melf64bmip"
4003      ;;
4004    esac
4005   else
4006    case `/usr/bin/file conftest.$ac_objext` in
4007    *32-bit*)
4008      LD="${LD-ld} -32"
4009      ;;
4010    *N32*)
4011      LD="${LD-ld} -n32"
4012      ;;
4013    *64-bit*)
4014      LD="${LD-ld} -64"
4015      ;;
4016    esac
4017   fi
4018  fi
4019  rm -rf conftest*
4020  ;;
4021
4022x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4023  # Find out which ABI we are using.
4024  echo 'int i;' > conftest.$ac_ext
4025  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026  (eval $ac_compile) 2>&5
4027  ac_status=$?
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); }; then
4030    case "`/usr/bin/file conftest.o`" in
4031    *32-bit*)
4032      case $host in
4033        x86_64-*linux*)
4034          LD="${LD-ld} -m elf_i386"
4035          ;;
4036        ppc64-*linux*|powerpc64-*linux*)
4037          LD="${LD-ld} -m elf32ppclinux"
4038          ;;
4039        s390x-*linux*)
4040          LD="${LD-ld} -m elf_s390"
4041          ;;
4042        sparc64-*linux*)
4043          LD="${LD-ld} -m elf32_sparc"
4044          ;;
4045      esac
4046      ;;
4047    *64-bit*)
4048      case $host in
4049        x86_64-*linux*)
4050          LD="${LD-ld} -m elf_x86_64"
4051          ;;
4052        ppc*-*linux*|powerpc*-*linux*)
4053          LD="${LD-ld} -m elf64ppc"
4054          ;;
4055        s390*-*linux*)
4056          LD="${LD-ld} -m elf64_s390"
4057          ;;
4058        sparc*-*linux*)
4059          LD="${LD-ld} -m elf64_sparc"
4060          ;;
4061      esac
4062      ;;
4063    esac
4064  fi
4065  rm -rf conftest*
4066  ;;
4067
4068*-*-sco3.2v5*)
4069  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4070  SAVE_CFLAGS="$CFLAGS"
4071  CFLAGS="$CFLAGS -belf"
4072  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4073echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4074if test "${lt_cv_cc_needs_belf+set}" = set; then
4075  echo $ECHO_N "(cached) $ECHO_C" >&6
4076else
4077  ac_ext=c
4078ac_cpp='$CPP $CPPFLAGS'
4079ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083     cat >conftest.$ac_ext <<_ACEOF
4084/* confdefs.h.  */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h.  */
4089
4090int
4091main ()
4092{
4093
4094  ;
4095  return 0;
4096}
4097_ACEOF
4098rm -f conftest.$ac_objext conftest$ac_exeext
4099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4100  (eval $ac_link) 2>conftest.er1
4101  ac_status=$?
4102  grep -v '^ *+' conftest.er1 >conftest.err
4103  rm -f conftest.er1
4104  cat conftest.err >&5
4105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106  (exit $ac_status); } &&
4107	 { ac_try='test -z "$ac_c_werror_flag"
4108			 || test ! -s conftest.err'
4109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110  (eval $ac_try) 2>&5
4111  ac_status=$?
4112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113  (exit $ac_status); }; } &&
4114	 { ac_try='test -s conftest$ac_exeext'
4115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116  (eval $ac_try) 2>&5
4117  ac_status=$?
4118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119  (exit $ac_status); }; }; then
4120  lt_cv_cc_needs_belf=yes
4121else
4122  echo "$as_me: failed program was:" >&5
4123sed 's/^/| /' conftest.$ac_ext >&5
4124
4125lt_cv_cc_needs_belf=no
4126fi
4127rm -f conftest.err conftest.$ac_objext \
4128      conftest$ac_exeext conftest.$ac_ext
4129     ac_ext=c
4130ac_cpp='$CPP $CPPFLAGS'
4131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134
4135fi
4136echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4137echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4138  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4139    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4140    CFLAGS="$SAVE_CFLAGS"
4141  fi
4142  ;;
4143*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4144  if test -n "$ac_tool_prefix"; then
4145  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4146set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4147echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4150  echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152  if test -n "$DLLTOOL"; then
4153  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4154else
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158  IFS=$as_save_IFS
4159  test -z "$as_dir" && as_dir=.
4160  for ac_exec_ext in '' $ac_executable_extensions; do
4161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164    break 2
4165  fi
4166done
4167done
4168
4169fi
4170fi
4171DLLTOOL=$ac_cv_prog_DLLTOOL
4172if test -n "$DLLTOOL"; then
4173  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4174echo "${ECHO_T}$DLLTOOL" >&6
4175else
4176  echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
4178fi
4179
4180fi
4181if test -z "$ac_cv_prog_DLLTOOL"; then
4182  ac_ct_DLLTOOL=$DLLTOOL
4183  # Extract the first word of "dlltool", so it can be a program name with args.
4184set dummy dlltool; ac_word=$2
4185echo "$as_me:$LINENO: checking for $ac_word" >&5
4186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4188  echo $ECHO_N "(cached) $ECHO_C" >&6
4189else
4190  if test -n "$ac_ct_DLLTOOL"; then
4191  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4192else
4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194for as_dir in $PATH
4195do
4196  IFS=$as_save_IFS
4197  test -z "$as_dir" && as_dir=.
4198  for ac_exec_ext in '' $ac_executable_extensions; do
4199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202    break 2
4203  fi
4204done
4205done
4206
4207  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4208fi
4209fi
4210ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4211if test -n "$ac_ct_DLLTOOL"; then
4212  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4213echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4214else
4215  echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
4217fi
4218
4219  DLLTOOL=$ac_ct_DLLTOOL
4220else
4221  DLLTOOL="$ac_cv_prog_DLLTOOL"
4222fi
4223
4224  if test -n "$ac_tool_prefix"; then
4225  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4226set dummy ${ac_tool_prefix}as; ac_word=$2
4227echo "$as_me:$LINENO: checking for $ac_word" >&5
4228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229if test "${ac_cv_prog_AS+set}" = set; then
4230  echo $ECHO_N "(cached) $ECHO_C" >&6
4231else
4232  if test -n "$AS"; then
4233  ac_cv_prog_AS="$AS" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240  for ac_exec_ext in '' $ac_executable_extensions; do
4241  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242    ac_cv_prog_AS="${ac_tool_prefix}as"
4243    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244    break 2
4245  fi
4246done
4247done
4248
4249fi
4250fi
4251AS=$ac_cv_prog_AS
4252if test -n "$AS"; then
4253  echo "$as_me:$LINENO: result: $AS" >&5
4254echo "${ECHO_T}$AS" >&6
4255else
4256  echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
4258fi
4259
4260fi
4261if test -z "$ac_cv_prog_AS"; then
4262  ac_ct_AS=$AS
4263  # Extract the first word of "as", so it can be a program name with args.
4264set dummy as; ac_word=$2
4265echo "$as_me:$LINENO: checking for $ac_word" >&5
4266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4268  echo $ECHO_N "(cached) $ECHO_C" >&6
4269else
4270  if test -n "$ac_ct_AS"; then
4271  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4272else
4273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274for as_dir in $PATH
4275do
4276  IFS=$as_save_IFS
4277  test -z "$as_dir" && as_dir=.
4278  for ac_exec_ext in '' $ac_executable_extensions; do
4279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4280    ac_cv_prog_ac_ct_AS="as"
4281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282    break 2
4283  fi
4284done
4285done
4286
4287  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4288fi
4289fi
4290ac_ct_AS=$ac_cv_prog_ac_ct_AS
4291if test -n "$ac_ct_AS"; then
4292  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4293echo "${ECHO_T}$ac_ct_AS" >&6
4294else
4295  echo "$as_me:$LINENO: result: no" >&5
4296echo "${ECHO_T}no" >&6
4297fi
4298
4299  AS=$ac_ct_AS
4300else
4301  AS="$ac_cv_prog_AS"
4302fi
4303
4304  if test -n "$ac_tool_prefix"; then
4305  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4306set dummy ${ac_tool_prefix}objdump; ac_word=$2
4307echo "$as_me:$LINENO: checking for $ac_word" >&5
4308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  if test -n "$OBJDUMP"; then
4313  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4314else
4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318  IFS=$as_save_IFS
4319  test -z "$as_dir" && as_dir=.
4320  for ac_exec_ext in '' $ac_executable_extensions; do
4321  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4323    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324    break 2
4325  fi
4326done
4327done
4328
4329fi
4330fi
4331OBJDUMP=$ac_cv_prog_OBJDUMP
4332if test -n "$OBJDUMP"; then
4333  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4334echo "${ECHO_T}$OBJDUMP" >&6
4335else
4336  echo "$as_me:$LINENO: result: no" >&5
4337echo "${ECHO_T}no" >&6
4338fi
4339
4340fi
4341if test -z "$ac_cv_prog_OBJDUMP"; then
4342  ac_ct_OBJDUMP=$OBJDUMP
4343  # Extract the first word of "objdump", so it can be a program name with args.
4344set dummy objdump; ac_word=$2
4345echo "$as_me:$LINENO: checking for $ac_word" >&5
4346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4347if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4348  echo $ECHO_N "(cached) $ECHO_C" >&6
4349else
4350  if test -n "$ac_ct_OBJDUMP"; then
4351  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4352else
4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354for as_dir in $PATH
4355do
4356  IFS=$as_save_IFS
4357  test -z "$as_dir" && as_dir=.
4358  for ac_exec_ext in '' $ac_executable_extensions; do
4359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4360    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4362    break 2
4363  fi
4364done
4365done
4366
4367  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4368fi
4369fi
4370ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4371if test -n "$ac_ct_OBJDUMP"; then
4372  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4373echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4374else
4375  echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
4377fi
4378
4379  OBJDUMP=$ac_ct_OBJDUMP
4380else
4381  OBJDUMP="$ac_cv_prog_OBJDUMP"
4382fi
4383
4384  ;;
4385
4386esac
4387
4388need_locks="$enable_libtool_lock"
4389
4390
4391ac_ext=c
4392ac_cpp='$CPP $CPPFLAGS'
4393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4397echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4398# On Suns, sometimes $CPP names a directory.
4399if test -n "$CPP" && test -d "$CPP"; then
4400  CPP=
4401fi
4402if test -z "$CPP"; then
4403  if test "${ac_cv_prog_CPP+set}" = set; then
4404  echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406      # Double quotes because CPP needs to be expanded
4407    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4408    do
4409      ac_preproc_ok=false
4410for ac_c_preproc_warn_flag in '' yes
4411do
4412  # Use a header file that comes with gcc, so configuring glibc
4413  # with a fresh cross-compiler works.
4414  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415  # <limits.h> exists even on freestanding compilers.
4416  # On the NeXT, cc -E runs the code through the compiler's parser,
4417  # not just through cpp. "Syntax error" is here to catch this case.
4418  cat >conftest.$ac_ext <<_ACEOF
4419/* confdefs.h.  */
4420_ACEOF
4421cat confdefs.h >>conftest.$ac_ext
4422cat >>conftest.$ac_ext <<_ACEOF
4423/* end confdefs.h.  */
4424#ifdef __STDC__
4425# include <limits.h>
4426#else
4427# include <assert.h>
4428#endif
4429		     Syntax error
4430_ACEOF
4431if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4432  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4433  ac_status=$?
4434  grep -v '^ *+' conftest.er1 >conftest.err
4435  rm -f conftest.er1
4436  cat conftest.err >&5
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); } >/dev/null; then
4439  if test -s conftest.err; then
4440    ac_cpp_err=$ac_c_preproc_warn_flag
4441    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4442  else
4443    ac_cpp_err=
4444  fi
4445else
4446  ac_cpp_err=yes
4447fi
4448if test -z "$ac_cpp_err"; then
4449  :
4450else
4451  echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454  # Broken: fails on valid input.
4455continue
4456fi
4457rm -f conftest.err conftest.$ac_ext
4458
4459  # OK, works on sane cases.  Now check whether non-existent headers
4460  # can be detected and how.
4461  cat >conftest.$ac_ext <<_ACEOF
4462/* confdefs.h.  */
4463_ACEOF
4464cat confdefs.h >>conftest.$ac_ext
4465cat >>conftest.$ac_ext <<_ACEOF
4466/* end confdefs.h.  */
4467#include <ac_nonexistent.h>
4468_ACEOF
4469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4470  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4471  ac_status=$?
4472  grep -v '^ *+' conftest.er1 >conftest.err
4473  rm -f conftest.er1
4474  cat conftest.err >&5
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); } >/dev/null; then
4477  if test -s conftest.err; then
4478    ac_cpp_err=$ac_c_preproc_warn_flag
4479    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4480  else
4481    ac_cpp_err=
4482  fi
4483else
4484  ac_cpp_err=yes
4485fi
4486if test -z "$ac_cpp_err"; then
4487  # Broken: success on invalid input.
4488continue
4489else
4490  echo "$as_me: failed program was:" >&5
4491sed 's/^/| /' conftest.$ac_ext >&5
4492
4493  # Passes both tests.
4494ac_preproc_ok=:
4495break
4496fi
4497rm -f conftest.err conftest.$ac_ext
4498
4499done
4500# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4501rm -f conftest.err conftest.$ac_ext
4502if $ac_preproc_ok; then
4503  break
4504fi
4505
4506    done
4507    ac_cv_prog_CPP=$CPP
4508
4509fi
4510  CPP=$ac_cv_prog_CPP
4511else
4512  ac_cv_prog_CPP=$CPP
4513fi
4514echo "$as_me:$LINENO: result: $CPP" >&5
4515echo "${ECHO_T}$CPP" >&6
4516ac_preproc_ok=false
4517for ac_c_preproc_warn_flag in '' yes
4518do
4519  # Use a header file that comes with gcc, so configuring glibc
4520  # with a fresh cross-compiler works.
4521  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522  # <limits.h> exists even on freestanding compilers.
4523  # On the NeXT, cc -E runs the code through the compiler's parser,
4524  # not just through cpp. "Syntax error" is here to catch this case.
4525  cat >conftest.$ac_ext <<_ACEOF
4526/* confdefs.h.  */
4527_ACEOF
4528cat confdefs.h >>conftest.$ac_ext
4529cat >>conftest.$ac_ext <<_ACEOF
4530/* end confdefs.h.  */
4531#ifdef __STDC__
4532# include <limits.h>
4533#else
4534# include <assert.h>
4535#endif
4536		     Syntax error
4537_ACEOF
4538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4539  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4540  ac_status=$?
4541  grep -v '^ *+' conftest.er1 >conftest.err
4542  rm -f conftest.er1
4543  cat conftest.err >&5
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); } >/dev/null; then
4546  if test -s conftest.err; then
4547    ac_cpp_err=$ac_c_preproc_warn_flag
4548    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4549  else
4550    ac_cpp_err=
4551  fi
4552else
4553  ac_cpp_err=yes
4554fi
4555if test -z "$ac_cpp_err"; then
4556  :
4557else
4558  echo "$as_me: failed program was:" >&5
4559sed 's/^/| /' conftest.$ac_ext >&5
4560
4561  # Broken: fails on valid input.
4562continue
4563fi
4564rm -f conftest.err conftest.$ac_ext
4565
4566  # OK, works on sane cases.  Now check whether non-existent headers
4567  # can be detected and how.
4568  cat >conftest.$ac_ext <<_ACEOF
4569/* confdefs.h.  */
4570_ACEOF
4571cat confdefs.h >>conftest.$ac_ext
4572cat >>conftest.$ac_ext <<_ACEOF
4573/* end confdefs.h.  */
4574#include <ac_nonexistent.h>
4575_ACEOF
4576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4577  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4578  ac_status=$?
4579  grep -v '^ *+' conftest.er1 >conftest.err
4580  rm -f conftest.er1
4581  cat conftest.err >&5
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); } >/dev/null; then
4584  if test -s conftest.err; then
4585    ac_cpp_err=$ac_c_preproc_warn_flag
4586    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4587  else
4588    ac_cpp_err=
4589  fi
4590else
4591  ac_cpp_err=yes
4592fi
4593if test -z "$ac_cpp_err"; then
4594  # Broken: success on invalid input.
4595continue
4596else
4597  echo "$as_me: failed program was:" >&5
4598sed 's/^/| /' conftest.$ac_ext >&5
4599
4600  # Passes both tests.
4601ac_preproc_ok=:
4602break
4603fi
4604rm -f conftest.err conftest.$ac_ext
4605
4606done
4607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4608rm -f conftest.err conftest.$ac_ext
4609if $ac_preproc_ok; then
4610  :
4611else
4612  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4613See \`config.log' for more details." >&5
4614echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4615See \`config.log' for more details." >&2;}
4616   { (exit 1); exit 1; }; }
4617fi
4618
4619ac_ext=c
4620ac_cpp='$CPP $CPPFLAGS'
4621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624
4625
4626echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4627echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4628if test "${ac_cv_header_stdc+set}" = set; then
4629  echo $ECHO_N "(cached) $ECHO_C" >&6
4630else
4631  cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h.  */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h.  */
4637#include <stdlib.h>
4638#include <stdarg.h>
4639#include <string.h>
4640#include <float.h>
4641
4642int
4643main ()
4644{
4645
4646  ;
4647  return 0;
4648}
4649_ACEOF
4650rm -f conftest.$ac_objext
4651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4652  (eval $ac_compile) 2>conftest.er1
4653  ac_status=$?
4654  grep -v '^ *+' conftest.er1 >conftest.err
4655  rm -f conftest.er1
4656  cat conftest.err >&5
4657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658  (exit $ac_status); } &&
4659	 { ac_try='test -z "$ac_c_werror_flag"
4660			 || test ! -s conftest.err'
4661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4662  (eval $ac_try) 2>&5
4663  ac_status=$?
4664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665  (exit $ac_status); }; } &&
4666	 { ac_try='test -s conftest.$ac_objext'
4667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668  (eval $ac_try) 2>&5
4669  ac_status=$?
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); }; }; then
4672  ac_cv_header_stdc=yes
4673else
4674  echo "$as_me: failed program was:" >&5
4675sed 's/^/| /' conftest.$ac_ext >&5
4676
4677ac_cv_header_stdc=no
4678fi
4679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4680
4681if test $ac_cv_header_stdc = yes; then
4682  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4683  cat >conftest.$ac_ext <<_ACEOF
4684/* confdefs.h.  */
4685_ACEOF
4686cat confdefs.h >>conftest.$ac_ext
4687cat >>conftest.$ac_ext <<_ACEOF
4688/* end confdefs.h.  */
4689#include <string.h>
4690
4691_ACEOF
4692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4693  $EGREP "memchr" >/dev/null 2>&1; then
4694  :
4695else
4696  ac_cv_header_stdc=no
4697fi
4698rm -f conftest*
4699
4700fi
4701
4702if test $ac_cv_header_stdc = yes; then
4703  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4704  cat >conftest.$ac_ext <<_ACEOF
4705/* confdefs.h.  */
4706_ACEOF
4707cat confdefs.h >>conftest.$ac_ext
4708cat >>conftest.$ac_ext <<_ACEOF
4709/* end confdefs.h.  */
4710#include <stdlib.h>
4711
4712_ACEOF
4713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4714  $EGREP "free" >/dev/null 2>&1; then
4715  :
4716else
4717  ac_cv_header_stdc=no
4718fi
4719rm -f conftest*
4720
4721fi
4722
4723if test $ac_cv_header_stdc = yes; then
4724  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4725  if test "$cross_compiling" = yes; then
4726  :
4727else
4728  cat >conftest.$ac_ext <<_ACEOF
4729/* confdefs.h.  */
4730_ACEOF
4731cat confdefs.h >>conftest.$ac_ext
4732cat >>conftest.$ac_ext <<_ACEOF
4733/* end confdefs.h.  */
4734#include <ctype.h>
4735#if ((' ' & 0x0FF) == 0x020)
4736# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4737# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4738#else
4739# define ISLOWER(c) \
4740		   (('a' <= (c) && (c) <= 'i') \
4741		     || ('j' <= (c) && (c) <= 'r') \
4742		     || ('s' <= (c) && (c) <= 'z'))
4743# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4744#endif
4745
4746#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4747int
4748main ()
4749{
4750  int i;
4751  for (i = 0; i < 256; i++)
4752    if (XOR (islower (i), ISLOWER (i))
4753	|| toupper (i) != TOUPPER (i))
4754      exit(2);
4755  exit (0);
4756}
4757_ACEOF
4758rm -f conftest$ac_exeext
4759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4760  (eval $ac_link) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765  (eval $ac_try) 2>&5
4766  ac_status=$?
4767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768  (exit $ac_status); }; }; then
4769  :
4770else
4771  echo "$as_me: program exited with status $ac_status" >&5
4772echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775( exit $ac_status )
4776ac_cv_header_stdc=no
4777fi
4778rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4779fi
4780fi
4781fi
4782echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4783echo "${ECHO_T}$ac_cv_header_stdc" >&6
4784if test $ac_cv_header_stdc = yes; then
4785
4786cat >>confdefs.h <<\_ACEOF
4787#define STDC_HEADERS 1
4788_ACEOF
4789
4790fi
4791
4792# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4803		  inttypes.h stdint.h unistd.h
4804do
4805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4806echo "$as_me:$LINENO: checking for $ac_header" >&5
4807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4808if eval "test \"\${$as_ac_Header+set}\" = set"; then
4809  echo $ECHO_N "(cached) $ECHO_C" >&6
4810else
4811  cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h.  */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h.  */
4817$ac_includes_default
4818
4819#include <$ac_header>
4820_ACEOF
4821rm -f conftest.$ac_objext
4822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823  (eval $ac_compile) 2>conftest.er1
4824  ac_status=$?
4825  grep -v '^ *+' conftest.er1 >conftest.err
4826  rm -f conftest.er1
4827  cat conftest.err >&5
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); } &&
4830	 { ac_try='test -z "$ac_c_werror_flag"
4831			 || test ! -s conftest.err'
4832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833  (eval $ac_try) 2>&5
4834  ac_status=$?
4835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); }; } &&
4837	 { ac_try='test -s conftest.$ac_objext'
4838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839  (eval $ac_try) 2>&5
4840  ac_status=$?
4841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842  (exit $ac_status); }; }; then
4843  eval "$as_ac_Header=yes"
4844else
4845  echo "$as_me: failed program was:" >&5
4846sed 's/^/| /' conftest.$ac_ext >&5
4847
4848eval "$as_ac_Header=no"
4849fi
4850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4851fi
4852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4854if test `eval echo '${'$as_ac_Header'}'` = yes; then
4855  cat >>confdefs.h <<_ACEOF
4856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4857_ACEOF
4858
4859fi
4860
4861done
4862
4863
4864
4865for ac_header in dlfcn.h
4866do
4867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4868if eval "test \"\${$as_ac_Header+set}\" = set"; then
4869  echo "$as_me:$LINENO: checking for $ac_header" >&5
4870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4871if eval "test \"\${$as_ac_Header+set}\" = set"; then
4872  echo $ECHO_N "(cached) $ECHO_C" >&6
4873fi
4874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4876else
4877  # Is the header compilable?
4878echo "$as_me:$LINENO: checking $ac_header usability" >&5
4879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4880cat >conftest.$ac_ext <<_ACEOF
4881/* confdefs.h.  */
4882_ACEOF
4883cat confdefs.h >>conftest.$ac_ext
4884cat >>conftest.$ac_ext <<_ACEOF
4885/* end confdefs.h.  */
4886$ac_includes_default
4887#include <$ac_header>
4888_ACEOF
4889rm -f conftest.$ac_objext
4890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891  (eval $ac_compile) 2>conftest.er1
4892  ac_status=$?
4893  grep -v '^ *+' conftest.er1 >conftest.err
4894  rm -f conftest.er1
4895  cat conftest.err >&5
4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); } &&
4898	 { ac_try='test -z "$ac_c_werror_flag"
4899			 || test ! -s conftest.err'
4900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901  (eval $ac_try) 2>&5
4902  ac_status=$?
4903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904  (exit $ac_status); }; } &&
4905	 { ac_try='test -s conftest.$ac_objext'
4906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907  (eval $ac_try) 2>&5
4908  ac_status=$?
4909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910  (exit $ac_status); }; }; then
4911  ac_header_compiler=yes
4912else
4913  echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
4916ac_header_compiler=no
4917fi
4918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4920echo "${ECHO_T}$ac_header_compiler" >&6
4921
4922# Is the header present?
4923echo "$as_me:$LINENO: checking $ac_header presence" >&5
4924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4925cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h.  */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h.  */
4931#include <$ac_header>
4932_ACEOF
4933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4934  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4935  ac_status=$?
4936  grep -v '^ *+' conftest.er1 >conftest.err
4937  rm -f conftest.er1
4938  cat conftest.err >&5
4939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940  (exit $ac_status); } >/dev/null; then
4941  if test -s conftest.err; then
4942    ac_cpp_err=$ac_c_preproc_warn_flag
4943    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4944  else
4945    ac_cpp_err=
4946  fi
4947else
4948  ac_cpp_err=yes
4949fi
4950if test -z "$ac_cpp_err"; then
4951  ac_header_preproc=yes
4952else
4953  echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956  ac_header_preproc=no
4957fi
4958rm -f conftest.err conftest.$ac_ext
4959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4960echo "${ECHO_T}$ac_header_preproc" >&6
4961
4962# So?  What about this header?
4963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4964  yes:no: )
4965    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4967    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4969    ac_header_preproc=yes
4970    ;;
4971  no:yes:* )
4972    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4974    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4975echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4976    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4978    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4979echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4980    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4982    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4984    (
4985      cat <<\_ASBOX
4986## --------------------------------------------------- ##
4987## Report this to openal-devel@opensource.creative.com ##
4988## --------------------------------------------------- ##
4989_ASBOX
4990    ) |
4991      sed "s/^/$as_me: WARNING:     /" >&2
4992    ;;
4993esac
4994echo "$as_me:$LINENO: checking for $ac_header" >&5
4995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4996if eval "test \"\${$as_ac_Header+set}\" = set"; then
4997  echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999  eval "$as_ac_Header=\$ac_header_preproc"
5000fi
5001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5003
5004fi
5005if test `eval echo '${'$as_ac_Header'}'` = yes; then
5006  cat >>confdefs.h <<_ACEOF
5007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5008_ACEOF
5009
5010fi
5011
5012done
5013
5014ac_ext=cc
5015ac_cpp='$CXXCPP $CPPFLAGS'
5016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5019if test -n "$ac_tool_prefix"; then
5020  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5021  do
5022    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5024echo "$as_me:$LINENO: checking for $ac_word" >&5
5025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026if test "${ac_cv_prog_CXX+set}" = set; then
5027  echo $ECHO_N "(cached) $ECHO_C" >&6
5028else
5029  if test -n "$CXX"; then
5030  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5031else
5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035  IFS=$as_save_IFS
5036  test -z "$as_dir" && as_dir=.
5037  for ac_exec_ext in '' $ac_executable_extensions; do
5038  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041    break 2
5042  fi
5043done
5044done
5045
5046fi
5047fi
5048CXX=$ac_cv_prog_CXX
5049if test -n "$CXX"; then
5050  echo "$as_me:$LINENO: result: $CXX" >&5
5051echo "${ECHO_T}$CXX" >&6
5052else
5053  echo "$as_me:$LINENO: result: no" >&5
5054echo "${ECHO_T}no" >&6
5055fi
5056
5057    test -n "$CXX" && break
5058  done
5059fi
5060if test -z "$CXX"; then
5061  ac_ct_CXX=$CXX
5062  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5063do
5064  # Extract the first word of "$ac_prog", so it can be a program name with args.
5065set dummy $ac_prog; ac_word=$2
5066echo "$as_me:$LINENO: checking for $ac_word" >&5
5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5069  echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071  if test -n "$ac_ct_CXX"; then
5072  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079  for ac_exec_ext in '' $ac_executable_extensions; do
5080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081    ac_cv_prog_ac_ct_CXX="$ac_prog"
5082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083    break 2
5084  fi
5085done
5086done
5087
5088fi
5089fi
5090ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5091if test -n "$ac_ct_CXX"; then
5092  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5093echo "${ECHO_T}$ac_ct_CXX" >&6
5094else
5095  echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097fi
5098
5099  test -n "$ac_ct_CXX" && break
5100done
5101test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5102
5103  CXX=$ac_ct_CXX
5104fi
5105
5106
5107# Provide some information about the compiler.
5108echo "$as_me:$LINENO:" \
5109     "checking for C++ compiler version" >&5
5110ac_compiler=`set X $ac_compile; echo $2`
5111{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5112  (eval $ac_compiler --version </dev/null >&5) 2>&5
5113  ac_status=$?
5114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115  (exit $ac_status); }
5116{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5117  (eval $ac_compiler -v </dev/null >&5) 2>&5
5118  ac_status=$?
5119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120  (exit $ac_status); }
5121{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5122  (eval $ac_compiler -V </dev/null >&5) 2>&5
5123  ac_status=$?
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); }
5126
5127echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5128echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5129if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5130  echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132  cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h.  */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h.  */
5138
5139int
5140main ()
5141{
5142#ifndef __GNUC__
5143       choke me
5144#endif
5145
5146  ;
5147  return 0;
5148}
5149_ACEOF
5150rm -f conftest.$ac_objext
5151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5152  (eval $ac_compile) 2>conftest.er1
5153  ac_status=$?
5154  grep -v '^ *+' conftest.er1 >conftest.err
5155  rm -f conftest.er1
5156  cat conftest.err >&5
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); } &&
5159	 { ac_try='test -z "$ac_cxx_werror_flag"
5160			 || test ! -s conftest.err'
5161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162  (eval $ac_try) 2>&5
5163  ac_status=$?
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); }; } &&
5166	 { ac_try='test -s conftest.$ac_objext'
5167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168  (eval $ac_try) 2>&5
5169  ac_status=$?
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); }; }; then
5172  ac_compiler_gnu=yes
5173else
5174  echo "$as_me: failed program was:" >&5
5175sed 's/^/| /' conftest.$ac_ext >&5
5176
5177ac_compiler_gnu=no
5178fi
5179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5181
5182fi
5183echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5184echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5185GXX=`test $ac_compiler_gnu = yes && echo yes`
5186ac_test_CXXFLAGS=${CXXFLAGS+set}
5187ac_save_CXXFLAGS=$CXXFLAGS
5188CXXFLAGS="-g"
5189echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5190echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5191if test "${ac_cv_prog_cxx_g+set}" = set; then
5192  echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194  cat >conftest.$ac_ext <<_ACEOF
5195/* confdefs.h.  */
5196_ACEOF
5197cat confdefs.h >>conftest.$ac_ext
5198cat >>conftest.$ac_ext <<_ACEOF
5199/* end confdefs.h.  */
5200
5201int
5202main ()
5203{
5204
5205  ;
5206  return 0;
5207}
5208_ACEOF
5209rm -f conftest.$ac_objext
5210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5211  (eval $ac_compile) 2>conftest.er1
5212  ac_status=$?
5213  grep -v '^ *+' conftest.er1 >conftest.err
5214  rm -f conftest.er1
5215  cat conftest.err >&5
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); } &&
5218	 { ac_try='test -z "$ac_cxx_werror_flag"
5219			 || test ! -s conftest.err'
5220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221  (eval $ac_try) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); }; } &&
5225	 { ac_try='test -s conftest.$ac_objext'
5226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227  (eval $ac_try) 2>&5
5228  ac_status=$?
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); }; }; then
5231  ac_cv_prog_cxx_g=yes
5232else
5233  echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236ac_cv_prog_cxx_g=no
5237fi
5238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5239fi
5240echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5241echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5242if test "$ac_test_CXXFLAGS" = set; then
5243  CXXFLAGS=$ac_save_CXXFLAGS
5244elif test $ac_cv_prog_cxx_g = yes; then
5245  if test "$GXX" = yes; then
5246    CXXFLAGS="-g -O2"
5247  else
5248    CXXFLAGS="-g"
5249  fi
5250else
5251  if test "$GXX" = yes; then
5252    CXXFLAGS="-O2"
5253  else
5254    CXXFLAGS=
5255  fi
5256fi
5257for ac_declaration in \
5258   '' \
5259   'extern "C" void std::exit (int) throw (); using std::exit;' \
5260   'extern "C" void std::exit (int); using std::exit;' \
5261   'extern "C" void exit (int) throw ();' \
5262   'extern "C" void exit (int);' \
5263   'void exit (int);'
5264do
5265  cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h.  */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h.  */
5271$ac_declaration
5272#include <stdlib.h>
5273int
5274main ()
5275{
5276exit (42);
5277  ;
5278  return 0;
5279}
5280_ACEOF
5281rm -f conftest.$ac_objext
5282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283  (eval $ac_compile) 2>conftest.er1
5284  ac_status=$?
5285  grep -v '^ *+' conftest.er1 >conftest.err
5286  rm -f conftest.er1
5287  cat conftest.err >&5
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); } &&
5290	 { ac_try='test -z "$ac_cxx_werror_flag"
5291			 || test ! -s conftest.err'
5292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293  (eval $ac_try) 2>&5
5294  ac_status=$?
5295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296  (exit $ac_status); }; } &&
5297	 { ac_try='test -s conftest.$ac_objext'
5298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299  (eval $ac_try) 2>&5
5300  ac_status=$?
5301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302  (exit $ac_status); }; }; then
5303  :
5304else
5305  echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308continue
5309fi
5310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5311  cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h.  */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h.  */
5317$ac_declaration
5318int
5319main ()
5320{
5321exit (42);
5322  ;
5323  return 0;
5324}
5325_ACEOF
5326rm -f conftest.$ac_objext
5327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328  (eval $ac_compile) 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } &&
5335	 { ac_try='test -z "$ac_cxx_werror_flag"
5336			 || test ! -s conftest.err'
5337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338  (eval $ac_try) 2>&5
5339  ac_status=$?
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); }; } &&
5342	 { ac_try='test -s conftest.$ac_objext'
5343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344  (eval $ac_try) 2>&5
5345  ac_status=$?
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); }; }; then
5348  break
5349else
5350  echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353fi
5354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355done
5356rm -f conftest*
5357if test -n "$ac_declaration"; then
5358  echo '#ifdef __cplusplus' >>confdefs.h
5359  echo $ac_declaration      >>confdefs.h
5360  echo '#endif'             >>confdefs.h
5361fi
5362
5363ac_ext=cc
5364ac_cpp='$CXXCPP $CPPFLAGS'
5365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5368
5369depcc="$CXX"  am_compiler_list=
5370
5371echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5372echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5373if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5374  echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5377  # We make a subdir and do the tests there.  Otherwise we can end up
5378  # making bogus files that we don't know about and never remove.  For
5379  # instance it was reported that on HP-UX the gcc test will end up
5380  # making a dummy file named `D' -- because `-MD' means `put the output
5381  # in D'.
5382  mkdir conftest.dir
5383  # Copy depcomp to subdir because otherwise we won't find it if we're
5384  # using a relative directory.
5385  cp "$am_depcomp" conftest.dir
5386  cd conftest.dir
5387  # We will build objects and dependencies in a subdirectory because
5388  # it helps to detect inapplicable dependency modes.  For instance
5389  # both Tru64's cc and ICC support -MD to output dependencies as a
5390  # side effect of compilation, but ICC will put the dependencies in
5391  # the current directory while Tru64 will put them in the object
5392  # directory.
5393  mkdir sub
5394
5395  am_cv_CXX_dependencies_compiler_type=none
5396  if test "$am_compiler_list" = ""; then
5397     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5398  fi
5399  for depmode in $am_compiler_list; do
5400    # Setup a source with many dependencies, because some compilers
5401    # like to wrap large dependency lists on column 80 (with \), and
5402    # we should not choose a depcomp mode which is confused by this.
5403    #
5404    # We need to recreate these files for each test, as the compiler may
5405    # overwrite some of them when testing with obscure command lines.
5406    # This happens at least with the AIX C compiler.
5407    : > sub/conftest.c
5408    for i in 1 2 3 4 5 6; do
5409      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5410      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5411      # Solaris 8's {/usr,}/bin/sh.
5412      touch sub/conftst$i.h
5413    done
5414    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5415
5416    case $depmode in
5417    nosideeffect)
5418      # after this tag, mechanisms are not by side-effect, so they'll
5419      # only be used when explicitly requested
5420      if test "x$enable_dependency_tracking" = xyes; then
5421	continue
5422      else
5423	break
5424      fi
5425      ;;
5426    none) break ;;
5427    esac
5428    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5429    # mode.  It turns out that the SunPro C++ compiler does not properly
5430    # handle `-M -o', and we need to detect this.
5431    if depmode=$depmode \
5432       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5433       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5434       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5435         >/dev/null 2>conftest.err &&
5436       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5437       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5438       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5439      # icc doesn't choke on unknown options, it will just issue warnings
5440      # or remarks (even with -Werror).  So we grep stderr for any message
5441      # that says an option was ignored or not supported.
5442      # When given -MP, icc 7.0 and 7.1 complain thusly:
5443      #   icc: Command line warning: ignoring option '-M'; no argument required
5444      # The diagnosis changed in icc 8.0:
5445      #   icc: Command line remark: option '-MP' not supported
5446      if (grep 'ignoring option' conftest.err ||
5447          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5448        am_cv_CXX_dependencies_compiler_type=$depmode
5449        break
5450      fi
5451    fi
5452  done
5453
5454  cd ..
5455  rm -rf conftest.dir
5456else
5457  am_cv_CXX_dependencies_compiler_type=none
5458fi
5459
5460fi
5461echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5462echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5463CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5464
5465
5466
5467if
5468  test "x$enable_dependency_tracking" != xno \
5469  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5470  am__fastdepCXX_TRUE=
5471  am__fastdepCXX_FALSE='#'
5472else
5473  am__fastdepCXX_TRUE='#'
5474  am__fastdepCXX_FALSE=
5475fi
5476
5477
5478
5479
5480if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5481    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5482    (test "X$CXX" != "Xg++"))) ; then
5483  ac_ext=cc
5484ac_cpp='$CXXCPP $CPPFLAGS'
5485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5488echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5489echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5490if test -z "$CXXCPP"; then
5491  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5492  echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494      # Double quotes because CXXCPP needs to be expanded
5495    for CXXCPP in "$CXX -E" "/lib/cpp"
5496    do
5497      ac_preproc_ok=false
5498for ac_cxx_preproc_warn_flag in '' yes
5499do
5500  # Use a header file that comes with gcc, so configuring glibc
5501  # with a fresh cross-compiler works.
5502  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503  # <limits.h> exists even on freestanding compilers.
5504  # On the NeXT, cc -E runs the code through the compiler's parser,
5505  # not just through cpp. "Syntax error" is here to catch this case.
5506  cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h.  */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h.  */
5512#ifdef __STDC__
5513# include <limits.h>
5514#else
5515# include <assert.h>
5516#endif
5517		     Syntax error
5518_ACEOF
5519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5521  ac_status=$?
5522  grep -v '^ *+' conftest.er1 >conftest.err
5523  rm -f conftest.er1
5524  cat conftest.err >&5
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); } >/dev/null; then
5527  if test -s conftest.err; then
5528    ac_cpp_err=$ac_cxx_preproc_warn_flag
5529    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5530  else
5531    ac_cpp_err=
5532  fi
5533else
5534  ac_cpp_err=yes
5535fi
5536if test -z "$ac_cpp_err"; then
5537  :
5538else
5539  echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542  # Broken: fails on valid input.
5543continue
5544fi
5545rm -f conftest.err conftest.$ac_ext
5546
5547  # OK, works on sane cases.  Now check whether non-existent headers
5548  # can be detected and how.
5549  cat >conftest.$ac_ext <<_ACEOF
5550/* confdefs.h.  */
5551_ACEOF
5552cat confdefs.h >>conftest.$ac_ext
5553cat >>conftest.$ac_ext <<_ACEOF
5554/* end confdefs.h.  */
5555#include <ac_nonexistent.h>
5556_ACEOF
5557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5558  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5559  ac_status=$?
5560  grep -v '^ *+' conftest.er1 >conftest.err
5561  rm -f conftest.er1
5562  cat conftest.err >&5
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); } >/dev/null; then
5565  if test -s conftest.err; then
5566    ac_cpp_err=$ac_cxx_preproc_warn_flag
5567    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5568  else
5569    ac_cpp_err=
5570  fi
5571else
5572  ac_cpp_err=yes
5573fi
5574if test -z "$ac_cpp_err"; then
5575  # Broken: success on invalid input.
5576continue
5577else
5578  echo "$as_me: failed program was:" >&5
5579sed 's/^/| /' conftest.$ac_ext >&5
5580
5581  # Passes both tests.
5582ac_preproc_ok=:
5583break
5584fi
5585rm -f conftest.err conftest.$ac_ext
5586
5587done
5588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5589rm -f conftest.err conftest.$ac_ext
5590if $ac_preproc_ok; then
5591  break
5592fi
5593
5594    done
5595    ac_cv_prog_CXXCPP=$CXXCPP
5596
5597fi
5598  CXXCPP=$ac_cv_prog_CXXCPP
5599else
5600  ac_cv_prog_CXXCPP=$CXXCPP
5601fi
5602echo "$as_me:$LINENO: result: $CXXCPP" >&5
5603echo "${ECHO_T}$CXXCPP" >&6
5604ac_preproc_ok=false
5605for ac_cxx_preproc_warn_flag in '' yes
5606do
5607  # Use a header file that comes with gcc, so configuring glibc
5608  # with a fresh cross-compiler works.
5609  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5610  # <limits.h> exists even on freestanding compilers.
5611  # On the NeXT, cc -E runs the code through the compiler's parser,
5612  # not just through cpp. "Syntax error" is here to catch this case.
5613  cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h.  */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h.  */
5619#ifdef __STDC__
5620# include <limits.h>
5621#else
5622# include <assert.h>
5623#endif
5624		     Syntax error
5625_ACEOF
5626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5627  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5628  ac_status=$?
5629  grep -v '^ *+' conftest.er1 >conftest.err
5630  rm -f conftest.er1
5631  cat conftest.err >&5
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); } >/dev/null; then
5634  if test -s conftest.err; then
5635    ac_cpp_err=$ac_cxx_preproc_warn_flag
5636    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5637  else
5638    ac_cpp_err=
5639  fi
5640else
5641  ac_cpp_err=yes
5642fi
5643if test -z "$ac_cpp_err"; then
5644  :
5645else
5646  echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649  # Broken: fails on valid input.
5650continue
5651fi
5652rm -f conftest.err conftest.$ac_ext
5653
5654  # OK, works on sane cases.  Now check whether non-existent headers
5655  # can be detected and how.
5656  cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h.  */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h.  */
5662#include <ac_nonexistent.h>
5663_ACEOF
5664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5665  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5666  ac_status=$?
5667  grep -v '^ *+' conftest.er1 >conftest.err
5668  rm -f conftest.er1
5669  cat conftest.err >&5
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); } >/dev/null; then
5672  if test -s conftest.err; then
5673    ac_cpp_err=$ac_cxx_preproc_warn_flag
5674    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5675  else
5676    ac_cpp_err=
5677  fi
5678else
5679  ac_cpp_err=yes
5680fi
5681if test -z "$ac_cpp_err"; then
5682  # Broken: success on invalid input.
5683continue
5684else
5685  echo "$as_me: failed program was:" >&5
5686sed 's/^/| /' conftest.$ac_ext >&5
5687
5688  # Passes both tests.
5689ac_preproc_ok=:
5690break
5691fi
5692rm -f conftest.err conftest.$ac_ext
5693
5694done
5695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5696rm -f conftest.err conftest.$ac_ext
5697if $ac_preproc_ok; then
5698  :
5699else
5700  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5701See \`config.log' for more details." >&5
5702echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5703See \`config.log' for more details." >&2;}
5704   { (exit 1); exit 1; }; }
5705fi
5706
5707ac_ext=cc
5708ac_cpp='$CXXCPP $CPPFLAGS'
5709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5712
5713fi
5714
5715
5716ac_ext=f
5717ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5718ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5720if test -n "$ac_tool_prefix"; then
5721  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5722  do
5723    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5725echo "$as_me:$LINENO: checking for $ac_word" >&5
5726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727if test "${ac_cv_prog_F77+set}" = set; then
5728  echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730  if test -n "$F77"; then
5731  ac_cv_prog_F77="$F77" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736  IFS=$as_save_IFS
5737  test -z "$as_dir" && as_dir=.
5738  for ac_exec_ext in '' $ac_executable_extensions; do
5739  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5741    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742    break 2
5743  fi
5744done
5745done
5746
5747fi
5748fi
5749F77=$ac_cv_prog_F77
5750if test -n "$F77"; then
5751  echo "$as_me:$LINENO: result: $F77" >&5
5752echo "${ECHO_T}$F77" >&6
5753else
5754  echo "$as_me:$LINENO: result: no" >&5
5755echo "${ECHO_T}no" >&6
5756fi
5757
5758    test -n "$F77" && break
5759  done
5760fi
5761if test -z "$F77"; then
5762  ac_ct_F77=$F77
5763  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5764do
5765  # Extract the first word of "$ac_prog", so it can be a program name with args.
5766set dummy $ac_prog; ac_word=$2
5767echo "$as_me:$LINENO: checking for $ac_word" >&5
5768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772  if test -n "$ac_ct_F77"; then
5773  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778  IFS=$as_save_IFS
5779  test -z "$as_dir" && as_dir=.
5780  for ac_exec_ext in '' $ac_executable_extensions; do
5781  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782    ac_cv_prog_ac_ct_F77="$ac_prog"
5783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784    break 2
5785  fi
5786done
5787done
5788
5789fi
5790fi
5791ac_ct_F77=$ac_cv_prog_ac_ct_F77
5792if test -n "$ac_ct_F77"; then
5793  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5794echo "${ECHO_T}$ac_ct_F77" >&6
5795else
5796  echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798fi
5799
5800  test -n "$ac_ct_F77" && break
5801done
5802
5803  F77=$ac_ct_F77
5804fi
5805
5806
5807# Provide some information about the compiler.
5808echo "$as_me:5808:" \
5809     "checking for Fortran 77 compiler version" >&5
5810ac_compiler=`set X $ac_compile; echo $2`
5811{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5812  (eval $ac_compiler --version </dev/null >&5) 2>&5
5813  ac_status=$?
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); }
5816{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5817  (eval $ac_compiler -v </dev/null >&5) 2>&5
5818  ac_status=$?
5819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820  (exit $ac_status); }
5821{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5822  (eval $ac_compiler -V </dev/null >&5) 2>&5
5823  ac_status=$?
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); }
5826rm -f a.out
5827
5828# If we don't use `.F' as extension, the preprocessor is not run on the
5829# input file.  (Note that this only needs to work for GNU compilers.)
5830ac_save_ext=$ac_ext
5831ac_ext=F
5832echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5833echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5834if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5835  echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837  cat >conftest.$ac_ext <<_ACEOF
5838      program main
5839#ifndef __GNUC__
5840       choke me
5841#endif
5842
5843      end
5844_ACEOF
5845rm -f conftest.$ac_objext
5846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5847  (eval $ac_compile) 2>conftest.er1
5848  ac_status=$?
5849  grep -v '^ *+' conftest.er1 >conftest.err
5850  rm -f conftest.er1
5851  cat conftest.err >&5
5852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853  (exit $ac_status); } &&
5854	 { ac_try='test -z "$ac_f77_werror_flag"
5855			 || test ! -s conftest.err'
5856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857  (eval $ac_try) 2>&5
5858  ac_status=$?
5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860  (exit $ac_status); }; } &&
5861	 { ac_try='test -s conftest.$ac_objext'
5862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863  (eval $ac_try) 2>&5
5864  ac_status=$?
5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866  (exit $ac_status); }; }; then
5867  ac_compiler_gnu=yes
5868else
5869  echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872ac_compiler_gnu=no
5873fi
5874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5876
5877fi
5878echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5879echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5880ac_ext=$ac_save_ext
5881ac_test_FFLAGS=${FFLAGS+set}
5882ac_save_FFLAGS=$FFLAGS
5883FFLAGS=
5884echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5885echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5886if test "${ac_cv_prog_f77_g+set}" = set; then
5887  echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889  FFLAGS=-g
5890cat >conftest.$ac_ext <<_ACEOF
5891      program main
5892
5893      end
5894_ACEOF
5895rm -f conftest.$ac_objext
5896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897  (eval $ac_compile) 2>conftest.er1
5898  ac_status=$?
5899  grep -v '^ *+' conftest.er1 >conftest.err
5900  rm -f conftest.er1
5901  cat conftest.err >&5
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); } &&
5904	 { ac_try='test -z "$ac_f77_werror_flag"
5905			 || test ! -s conftest.err'
5906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907  (eval $ac_try) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }; } &&
5911	 { ac_try='test -s conftest.$ac_objext'
5912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913  (eval $ac_try) 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }; }; then
5917  ac_cv_prog_f77_g=yes
5918else
5919  echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922ac_cv_prog_f77_g=no
5923fi
5924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5925
5926fi
5927echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5928echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5929if test "$ac_test_FFLAGS" = set; then
5930  FFLAGS=$ac_save_FFLAGS
5931elif test $ac_cv_prog_f77_g = yes; then
5932  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5933    FFLAGS="-g -O2"
5934  else
5935    FFLAGS="-g"
5936  fi
5937else
5938  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5939    FFLAGS="-O2"
5940  else
5941    FFLAGS=
5942  fi
5943fi
5944
5945G77=`test $ac_compiler_gnu = yes && echo yes`
5946ac_ext=c
5947ac_cpp='$CPP $CPPFLAGS'
5948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950ac_compiler_gnu=$ac_cv_c_compiler_gnu
5951
5952
5953
5954# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5955
5956# find the maximum length of command line arguments
5957echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5958echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5959if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5960  echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962    i=0
5963  teststring="ABCD"
5964
5965  case $build_os in
5966  msdosdjgpp*)
5967    # On DJGPP, this test can blow up pretty badly due to problems in libc
5968    # (any single argument exceeding 2000 bytes causes a buffer overrun
5969    # during glob expansion).  Even if it were fixed, the result of this
5970    # check would be larger than it should be.
5971    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5972    ;;
5973
5974  gnu*)
5975    # Under GNU Hurd, this test is not required because there is
5976    # no limit to the length of command line arguments.
5977    # Libtool will interpret -1 as no limit whatsoever
5978    lt_cv_sys_max_cmd_len=-1;
5979    ;;
5980
5981  cygwin* | mingw*)
5982    # On Win9x/ME, this test blows up -- it succeeds, but takes
5983    # about 5 minutes as the teststring grows exponentially.
5984    # Worse, since 9x/ME are not pre-emptively multitasking,
5985    # you end up with a "frozen" computer, even though with patience
5986    # the test eventually succeeds (with a max line length of 256k).
5987    # Instead, let's just punt: use the minimum linelength reported by
5988    # all of the supported platforms: 8192 (on NT/2K/XP).
5989    lt_cv_sys_max_cmd_len=8192;
5990    ;;
5991
5992  amigaos*)
5993    # On AmigaOS with pdksh, this test takes hours, literally.
5994    # So we just punt and use a minimum line length of 8192.
5995    lt_cv_sys_max_cmd_len=8192;
5996    ;;
5997
5998  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5999    # This has been around since 386BSD, at least.  Likely further.
6000    if test -x /sbin/sysctl; then
6001      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6002    elif test -x /usr/sbin/sysctl; then
6003      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6004    else
6005      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6006    fi
6007    # And add a safety zone
6008    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6009    ;;
6010  osf*)
6011    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6012    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6013    # nice to cause kernel panics so lets avoid the loop below.
6014    # First set a reasonable default.
6015    lt_cv_sys_max_cmd_len=16384
6016    #
6017    if test -x /sbin/sysconfig; then
6018      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6019        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6020      esac
6021    fi
6022    ;;
6023  *)
6024    # If test is not a shell built-in, we'll probably end up computing a
6025    # maximum length that is only half of the actual maximum length, but
6026    # we can't tell.
6027    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6028    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6029	       = "XX$teststring") >/dev/null 2>&1 &&
6030	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6031	    lt_cv_sys_max_cmd_len=$new_result &&
6032	    test $i != 17 # 1/2 MB should be enough
6033    do
6034      i=`expr $i + 1`
6035      teststring=$teststring$teststring
6036    done
6037    teststring=
6038    # Add a significant safety factor because C++ compilers can tack on massive
6039    # amounts of additional arguments before passing them to the linker.
6040    # It appears as though 1/2 is a usable value.
6041    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6042    ;;
6043  esac
6044
6045fi
6046
6047if test -n $lt_cv_sys_max_cmd_len ; then
6048  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6049echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6050else
6051  echo "$as_me:$LINENO: result: none" >&5
6052echo "${ECHO_T}none" >&6
6053fi
6054
6055
6056
6057
6058# Check for command to grab the raw symbol name followed by C symbol from nm.
6059echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6060echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6061if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6062  echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064
6065# These are sane defaults that work on at least a few old systems.
6066# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6067
6068# Character class describing NM global symbol codes.
6069symcode='[BCDEGRST]'
6070
6071# Regexp to match symbols that can be accessed directly from C.
6072sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6073
6074# Transform an extracted symbol line into a proper C declaration
6075lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6076
6077# Transform an extracted symbol line into symbol name and symbol address
6078lt_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'"
6079
6080# Define system-specific variables.
6081case $host_os in
6082aix*)
6083  symcode='[BCDT]'
6084  ;;
6085cygwin* | mingw* | pw32*)
6086  symcode='[ABCDGISTW]'
6087  ;;
6088hpux*) # Its linker distinguishes data from code symbols
6089  if test "$host_cpu" = ia64; then
6090    symcode='[ABCDEGRST]'
6091  fi
6092  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6093  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'"
6094  ;;
6095linux*)
6096  if test "$host_cpu" = ia64; then
6097    symcode='[ABCDGIRSTW]'
6098    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6099    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'"
6100  fi
6101  ;;
6102irix* | nonstopux*)
6103  symcode='[BCDEGRST]'
6104  ;;
6105osf*)
6106  symcode='[BCDEGQRST]'
6107  ;;
6108solaris* | sysv5*)
6109  symcode='[BDRT]'
6110  ;;
6111sysv4)
6112  symcode='[DFNSTU]'
6113  ;;
6114esac
6115
6116# Handle CRLF in mingw tool chain
6117opt_cr=
6118case $build_os in
6119mingw*)
6120  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6121  ;;
6122esac
6123
6124# If we're using GNU nm, then use its standard symbol codes.
6125case `$NM -V 2>&1` in
6126*GNU* | *'with BFD'*)
6127  symcode='[ABCDGIRSTW]' ;;
6128esac
6129
6130# Try without a prefix undercore, then with it.
6131for ac_symprfx in "" "_"; do
6132
6133  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6134  symxfrm="\\1 $ac_symprfx\\2 \\2"
6135
6136  # Write the raw and C identifiers.
6137  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6138
6139  # Check to see that the pipe works correctly.
6140  pipe_works=no
6141
6142  rm -f conftest*
6143  cat > conftest.$ac_ext <<EOF
6144#ifdef __cplusplus
6145extern "C" {
6146#endif
6147char nm_test_var;
6148void nm_test_func(){}
6149#ifdef __cplusplus
6150}
6151#endif
6152int main(){nm_test_var='a';nm_test_func();return(0);}
6153EOF
6154
6155  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156  (eval $ac_compile) 2>&5
6157  ac_status=$?
6158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159  (exit $ac_status); }; then
6160    # Now try to grab the symbols.
6161    nlist=conftest.nm
6162    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6163  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6164  ac_status=$?
6165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166  (exit $ac_status); } && test -s "$nlist"; then
6167      # Try sorting and uniquifying the output.
6168      if sort "$nlist" | uniq > "$nlist"T; then
6169	mv -f "$nlist"T "$nlist"
6170      else
6171	rm -f "$nlist"T
6172      fi
6173
6174      # Make sure that we snagged all the symbols we need.
6175      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6176	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6177	  cat <<EOF > conftest.$ac_ext
6178#ifdef __cplusplus
6179extern "C" {
6180#endif
6181
6182EOF
6183	  # Now generate the symbol file.
6184	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6185
6186	  cat <<EOF >> conftest.$ac_ext
6187#if defined (__STDC__) && __STDC__
6188# define lt_ptr_t void *
6189#else
6190# define lt_ptr_t char *
6191# define const
6192#endif
6193
6194/* The mapping between symbol names and symbols. */
6195const struct {
6196  const char *name;
6197  lt_ptr_t address;
6198}
6199lt_preloaded_symbols[] =
6200{
6201EOF
6202	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6203	  cat <<\EOF >> conftest.$ac_ext
6204  {0, (lt_ptr_t) 0}
6205};
6206
6207#ifdef __cplusplus
6208}
6209#endif
6210EOF
6211	  # Now try linking the two files.
6212	  mv conftest.$ac_objext conftstm.$ac_objext
6213	  lt_save_LIBS="$LIBS"
6214	  lt_save_CFLAGS="$CFLAGS"
6215	  LIBS="conftstm.$ac_objext"
6216	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6217	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218  (eval $ac_link) 2>&5
6219  ac_status=$?
6220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6222	    pipe_works=yes
6223	  fi
6224	  LIBS="$lt_save_LIBS"
6225	  CFLAGS="$lt_save_CFLAGS"
6226	else
6227	  echo "cannot find nm_test_func in $nlist" >&5
6228	fi
6229      else
6230	echo "cannot find nm_test_var in $nlist" >&5
6231      fi
6232    else
6233      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6234    fi
6235  else
6236    echo "$progname: failed program was:" >&5
6237    cat conftest.$ac_ext >&5
6238  fi
6239  rm -f conftest* conftst*
6240
6241  # Do not use the global_symbol_pipe unless it works.
6242  if test "$pipe_works" = yes; then
6243    break
6244  else
6245    lt_cv_sys_global_symbol_pipe=
6246  fi
6247done
6248
6249fi
6250
6251if test -z "$lt_cv_sys_global_symbol_pipe"; then
6252  lt_cv_sys_global_symbol_to_cdecl=
6253fi
6254if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6255  echo "$as_me:$LINENO: result: failed" >&5
6256echo "${ECHO_T}failed" >&6
6257else
6258  echo "$as_me:$LINENO: result: ok" >&5
6259echo "${ECHO_T}ok" >&6
6260fi
6261
6262echo "$as_me:$LINENO: checking for objdir" >&5
6263echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6264if test "${lt_cv_objdir+set}" = set; then
6265  echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
6267  rm -f .libs 2>/dev/null
6268mkdir .libs 2>/dev/null
6269if test -d .libs; then
6270  lt_cv_objdir=.libs
6271else
6272  # MS-DOS does not allow filenames that begin with a dot.
6273  lt_cv_objdir=_libs
6274fi
6275rmdir .libs 2>/dev/null
6276fi
6277echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6278echo "${ECHO_T}$lt_cv_objdir" >&6
6279objdir=$lt_cv_objdir
6280
6281
6282
6283
6284
6285case $host_os in
6286aix3*)
6287  # AIX sometimes has problems with the GCC collect2 program.  For some
6288  # reason, if we set the COLLECT_NAMES environment variable, the problems
6289  # vanish in a puff of smoke.
6290  if test "X${COLLECT_NAMES+set}" != Xset; then
6291    COLLECT_NAMES=
6292    export COLLECT_NAMES
6293  fi
6294  ;;
6295esac
6296
6297# Sed substitution that helps us do robust quoting.  It backslashifies
6298# metacharacters that are still active within double-quoted strings.
6299Xsed='sed -e s/^X//'
6300sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6301
6302# Same as above, but do not quote variable references.
6303double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6304
6305# Sed substitution to delay expansion of an escaped shell variable in a
6306# double_quote_subst'ed string.
6307delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6308
6309# Sed substitution to avoid accidental globbing in evaled expressions
6310no_glob_subst='s/\*/\\\*/g'
6311
6312# Constants:
6313rm="rm -f"
6314
6315# Global variables:
6316default_ofile=libtool
6317can_build_shared=yes
6318
6319# All known linkers require a `.a' archive for static linking (except M$VC,
6320# which needs '.lib').
6321libext=a
6322ltmain="$ac_aux_dir/ltmain.sh"
6323ofile="$default_ofile"
6324with_gnu_ld="$lt_cv_prog_gnu_ld"
6325
6326if test -n "$ac_tool_prefix"; then
6327  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6328set dummy ${ac_tool_prefix}ar; ac_word=$2
6329echo "$as_me:$LINENO: checking for $ac_word" >&5
6330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6331if test "${ac_cv_prog_AR+set}" = set; then
6332  echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334  if test -n "$AR"; then
6335  ac_cv_prog_AR="$AR" # Let the user override the test.
6336else
6337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338for as_dir in $PATH
6339do
6340  IFS=$as_save_IFS
6341  test -z "$as_dir" && as_dir=.
6342  for ac_exec_ext in '' $ac_executable_extensions; do
6343  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6344    ac_cv_prog_AR="${ac_tool_prefix}ar"
6345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6346    break 2
6347  fi
6348done
6349done
6350
6351fi
6352fi
6353AR=$ac_cv_prog_AR
6354if test -n "$AR"; then
6355  echo "$as_me:$LINENO: result: $AR" >&5
6356echo "${ECHO_T}$AR" >&6
6357else
6358  echo "$as_me:$LINENO: result: no" >&5
6359echo "${ECHO_T}no" >&6
6360fi
6361
6362fi
6363if test -z "$ac_cv_prog_AR"; then
6364  ac_ct_AR=$AR
6365  # Extract the first word of "ar", so it can be a program name with args.
6366set dummy ar; ac_word=$2
6367echo "$as_me:$LINENO: checking for $ac_word" >&5
6368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6369if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6370  echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372  if test -n "$ac_ct_AR"; then
6373  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6374else
6375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376for as_dir in $PATH
6377do
6378  IFS=$as_save_IFS
6379  test -z "$as_dir" && as_dir=.
6380  for ac_exec_ext in '' $ac_executable_extensions; do
6381  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6382    ac_cv_prog_ac_ct_AR="ar"
6383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6384    break 2
6385  fi
6386done
6387done
6388
6389  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6390fi
6391fi
6392ac_ct_AR=$ac_cv_prog_ac_ct_AR
6393if test -n "$ac_ct_AR"; then
6394  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6395echo "${ECHO_T}$ac_ct_AR" >&6
6396else
6397  echo "$as_me:$LINENO: result: no" >&5
6398echo "${ECHO_T}no" >&6
6399fi
6400
6401  AR=$ac_ct_AR
6402else
6403  AR="$ac_cv_prog_AR"
6404fi
6405
6406if test -n "$ac_tool_prefix"; then
6407  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6408set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6409echo "$as_me:$LINENO: checking for $ac_word" >&5
6410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6411if test "${ac_cv_prog_RANLIB+set}" = set; then
6412  echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414  if test -n "$RANLIB"; then
6415  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6416else
6417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418for as_dir in $PATH
6419do
6420  IFS=$as_save_IFS
6421  test -z "$as_dir" && as_dir=.
6422  for ac_exec_ext in '' $ac_executable_extensions; do
6423  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6424    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6425    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6426    break 2
6427  fi
6428done
6429done
6430
6431fi
6432fi
6433RANLIB=$ac_cv_prog_RANLIB
6434if test -n "$RANLIB"; then
6435  echo "$as_me:$LINENO: result: $RANLIB" >&5
6436echo "${ECHO_T}$RANLIB" >&6
6437else
6438  echo "$as_me:$LINENO: result: no" >&5
6439echo "${ECHO_T}no" >&6
6440fi
6441
6442fi
6443if test -z "$ac_cv_prog_RANLIB"; then
6444  ac_ct_RANLIB=$RANLIB
6445  # Extract the first word of "ranlib", so it can be a program name with args.
6446set dummy ranlib; ac_word=$2
6447echo "$as_me:$LINENO: checking for $ac_word" >&5
6448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6449if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6450  echo $ECHO_N "(cached) $ECHO_C" >&6
6451else
6452  if test -n "$ac_ct_RANLIB"; then
6453  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6454else
6455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH
6457do
6458  IFS=$as_save_IFS
6459  test -z "$as_dir" && as_dir=.
6460  for ac_exec_ext in '' $ac_executable_extensions; do
6461  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462    ac_cv_prog_ac_ct_RANLIB="ranlib"
6463    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6464    break 2
6465  fi
6466done
6467done
6468
6469  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6470fi
6471fi
6472ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6473if test -n "$ac_ct_RANLIB"; then
6474  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6475echo "${ECHO_T}$ac_ct_RANLIB" >&6
6476else
6477  echo "$as_me:$LINENO: result: no" >&5
6478echo "${ECHO_T}no" >&6
6479fi
6480
6481  RANLIB=$ac_ct_RANLIB
6482else
6483  RANLIB="$ac_cv_prog_RANLIB"
6484fi
6485
6486if test -n "$ac_tool_prefix"; then
6487  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6488set dummy ${ac_tool_prefix}strip; ac_word=$2
6489echo "$as_me:$LINENO: checking for $ac_word" >&5
6490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6491if test "${ac_cv_prog_STRIP+set}" = set; then
6492  echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494  if test -n "$STRIP"; then
6495  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500  IFS=$as_save_IFS
6501  test -z "$as_dir" && as_dir=.
6502  for ac_exec_ext in '' $ac_executable_extensions; do
6503  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6504    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506    break 2
6507  fi
6508done
6509done
6510
6511fi
6512fi
6513STRIP=$ac_cv_prog_STRIP
6514if test -n "$STRIP"; then
6515  echo "$as_me:$LINENO: result: $STRIP" >&5
6516echo "${ECHO_T}$STRIP" >&6
6517else
6518  echo "$as_me:$LINENO: result: no" >&5
6519echo "${ECHO_T}no" >&6
6520fi
6521
6522fi
6523if test -z "$ac_cv_prog_STRIP"; then
6524  ac_ct_STRIP=$STRIP
6525  # Extract the first word of "strip", so it can be a program name with args.
6526set dummy strip; ac_word=$2
6527echo "$as_me:$LINENO: checking for $ac_word" >&5
6528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6529if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532  if test -n "$ac_ct_STRIP"; then
6533  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538  IFS=$as_save_IFS
6539  test -z "$as_dir" && as_dir=.
6540  for ac_exec_ext in '' $ac_executable_extensions; do
6541  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542    ac_cv_prog_ac_ct_STRIP="strip"
6543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544    break 2
6545  fi
6546done
6547done
6548
6549  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6550fi
6551fi
6552ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6553if test -n "$ac_ct_STRIP"; then
6554  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6555echo "${ECHO_T}$ac_ct_STRIP" >&6
6556else
6557  echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6
6559fi
6560
6561  STRIP=$ac_ct_STRIP
6562else
6563  STRIP="$ac_cv_prog_STRIP"
6564fi
6565
6566
6567old_CC="$CC"
6568old_CFLAGS="$CFLAGS"
6569
6570# Set sane defaults for various variables
6571test -z "$AR" && AR=ar
6572test -z "$AR_FLAGS" && AR_FLAGS=cru
6573test -z "$AS" && AS=as
6574test -z "$CC" && CC=cc
6575test -z "$LTCC" && LTCC=$CC
6576test -z "$DLLTOOL" && DLLTOOL=dlltool
6577test -z "$LD" && LD=ld
6578test -z "$LN_S" && LN_S="ln -s"
6579test -z "$MAGIC_CMD" && MAGIC_CMD=file
6580test -z "$NM" && NM=nm
6581test -z "$SED" && SED=sed
6582test -z "$OBJDUMP" && OBJDUMP=objdump
6583test -z "$RANLIB" && RANLIB=:
6584test -z "$STRIP" && STRIP=:
6585test -z "$ac_objext" && ac_objext=o
6586
6587# Determine commands to create old-style static archives.
6588old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6589old_postinstall_cmds='chmod 644 $oldlib'
6590old_postuninstall_cmds=
6591
6592if test -n "$RANLIB"; then
6593  case $host_os in
6594  openbsd*)
6595    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6596    ;;
6597  *)
6598    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6599    ;;
6600  esac
6601  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6602fi
6603
6604cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6605
6606# Only perform the check for file, if the check method requires it
6607case $deplibs_check_method in
6608file_magic*)
6609  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6610    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6611echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6612if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6613  echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615  case $MAGIC_CMD in
6616[\\/*] |  ?:[\\/]*)
6617  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6618  ;;
6619*)
6620  lt_save_MAGIC_CMD="$MAGIC_CMD"
6621  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6622  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6623  for ac_dir in $ac_dummy; do
6624    IFS="$lt_save_ifs"
6625    test -z "$ac_dir" && ac_dir=.
6626    if test -f $ac_dir/${ac_tool_prefix}file; then
6627      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6628      if test -n "$file_magic_test_file"; then
6629	case $deplibs_check_method in
6630	"file_magic "*)
6631	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6632	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6633	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6634	    $EGREP "$file_magic_regex" > /dev/null; then
6635	    :
6636	  else
6637	    cat <<EOF 1>&2
6638
6639*** Warning: the command libtool uses to detect shared libraries,
6640*** $file_magic_cmd, produces output that libtool cannot recognize.
6641*** The result is that libtool may fail to recognize shared libraries
6642*** as such.  This will affect the creation of libtool libraries that
6643*** depend on shared libraries, but programs linked with such libtool
6644*** libraries will work regardless of this problem.  Nevertheless, you
6645*** may want to report the problem to your system manager and/or to
6646*** bug-libtool@gnu.org
6647
6648EOF
6649	  fi ;;
6650	esac
6651      fi
6652      break
6653    fi
6654  done
6655  IFS="$lt_save_ifs"
6656  MAGIC_CMD="$lt_save_MAGIC_CMD"
6657  ;;
6658esac
6659fi
6660
6661MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6662if test -n "$MAGIC_CMD"; then
6663  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6664echo "${ECHO_T}$MAGIC_CMD" >&6
6665else
6666  echo "$as_me:$LINENO: result: no" >&5
6667echo "${ECHO_T}no" >&6
6668fi
6669
6670if test -z "$lt_cv_path_MAGIC_CMD"; then
6671  if test -n "$ac_tool_prefix"; then
6672    echo "$as_me:$LINENO: checking for file" >&5
6673echo $ECHO_N "checking for file... $ECHO_C" >&6
6674if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6675  echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677  case $MAGIC_CMD in
6678[\\/*] |  ?:[\\/]*)
6679  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6680  ;;
6681*)
6682  lt_save_MAGIC_CMD="$MAGIC_CMD"
6683  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6684  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6685  for ac_dir in $ac_dummy; do
6686    IFS="$lt_save_ifs"
6687    test -z "$ac_dir" && ac_dir=.
6688    if test -f $ac_dir/file; then
6689      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6690      if test -n "$file_magic_test_file"; then
6691	case $deplibs_check_method in
6692	"file_magic "*)
6693	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6694	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6695	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6696	    $EGREP "$file_magic_regex" > /dev/null; then
6697	    :
6698	  else
6699	    cat <<EOF 1>&2
6700
6701*** Warning: the command libtool uses to detect shared libraries,
6702*** $file_magic_cmd, produces output that libtool cannot recognize.
6703*** The result is that libtool may fail to recognize shared libraries
6704*** as such.  This will affect the creation of libtool libraries that
6705*** depend on shared libraries, but programs linked with such libtool
6706*** libraries will work regardless of this problem.  Nevertheless, you
6707*** may want to report the problem to your system manager and/or to
6708*** bug-libtool@gnu.org
6709
6710EOF
6711	  fi ;;
6712	esac
6713      fi
6714      break
6715    fi
6716  done
6717  IFS="$lt_save_ifs"
6718  MAGIC_CMD="$lt_save_MAGIC_CMD"
6719  ;;
6720esac
6721fi
6722
6723MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6724if test -n "$MAGIC_CMD"; then
6725  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6726echo "${ECHO_T}$MAGIC_CMD" >&6
6727else
6728  echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6
6730fi
6731
6732  else
6733    MAGIC_CMD=:
6734  fi
6735fi
6736
6737  fi
6738  ;;
6739esac
6740
6741enable_dlopen=no
6742enable_win32_dll=yes
6743
6744# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6745if test "${enable_libtool_lock+set}" = set; then
6746  enableval="$enable_libtool_lock"
6747
6748fi;
6749test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6750
6751
6752# Check whether --with-pic or --without-pic was given.
6753if test "${with_pic+set}" = set; then
6754  withval="$with_pic"
6755  pic_mode="$withval"
6756else
6757  pic_mode=default
6758fi;
6759test -z "$pic_mode" && pic_mode=default
6760
6761# Use C for the default configuration in the libtool script
6762tagname=
6763lt_save_CC="$CC"
6764ac_ext=c
6765ac_cpp='$CPP $CPPFLAGS'
6766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6768ac_compiler_gnu=$ac_cv_c_compiler_gnu
6769
6770
6771# Source file extension for C test sources.
6772ac_ext=c
6773
6774# Object file extension for compiled C test sources.
6775objext=o
6776objext=$objext
6777
6778# Code to be used in simple compile tests
6779lt_simple_compile_test_code="int some_variable = 0;\n"
6780
6781# Code to be used in simple link tests
6782lt_simple_link_test_code='int main(){return(0);}\n'
6783
6784
6785# If no C compiler was specified, use CC.
6786LTCC=${LTCC-"$CC"}
6787
6788# Allow CC to be a program name with arguments.
6789compiler=$CC
6790
6791
6792#
6793# Check for any special shared library compilation flags.
6794#
6795lt_prog_cc_shlib=
6796if test "$GCC" = no; then
6797  case $host_os in
6798  sco3.2v5*)
6799    lt_prog_cc_shlib='-belf'
6800    ;;
6801  esac
6802fi
6803if test -n "$lt_prog_cc_shlib"; then
6804  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6805echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6806  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6807  else
6808    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6809echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6810    lt_cv_prog_cc_can_build_shared=no
6811  fi
6812fi
6813
6814
6815#
6816# Check to make sure the static flag actually works.
6817#
6818echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6819echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6820if test "${lt_prog_compiler_static_works+set}" = set; then
6821  echo $ECHO_N "(cached) $ECHO_C" >&6
6822else
6823  lt_prog_compiler_static_works=no
6824   save_LDFLAGS="$LDFLAGS"
6825   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6826   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6827   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6828     # The compiler can only warn and ignore the option if not recognized
6829     # So say no if there are warnings
6830     if test -s conftest.err; then
6831       # Append any errors to the config.log.
6832       cat conftest.err 1>&5
6833     else
6834       lt_prog_compiler_static_works=yes
6835     fi
6836   fi
6837   $rm conftest*
6838   LDFLAGS="$save_LDFLAGS"
6839
6840fi
6841echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6842echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6843
6844if test x"$lt_prog_compiler_static_works" = xyes; then
6845    :
6846else
6847    lt_prog_compiler_static=
6848fi
6849
6850
6851
6852
6853lt_prog_compiler_no_builtin_flag=
6854
6855if test "$GCC" = yes; then
6856  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6857
6858
6859echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6860echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6861if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6862  echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864  lt_cv_prog_compiler_rtti_exceptions=no
6865  ac_outfile=conftest.$ac_objext
6866   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6867   lt_compiler_flag="-fno-rtti -fno-exceptions"
6868   # Insert the option either (1) after the last *FLAGS variable, or
6869   # (2) before a word containing "conftest.", or (3) at the end.
6870   # Note that $ac_compile itself does not contain backslashes and begins
6871   # with a dollar sign (not a hyphen), so the echo should work correctly.
6872   # The option is referenced via a variable to avoid confusing sed.
6873   lt_compile=`echo "$ac_compile" | $SED \
6874   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6875   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6876   -e 's:$: $lt_compiler_flag:'`
6877   (eval echo "\"\$as_me:6877: $lt_compile\"" >&5)
6878   (eval "$lt_compile" 2>conftest.err)
6879   ac_status=$?
6880   cat conftest.err >&5
6881   echo "$as_me:6881: \$? = $ac_status" >&5
6882   if (exit $ac_status) && test -s "$ac_outfile"; then
6883     # The compiler can only warn and ignore the option if not recognized
6884     # So say no if there are warnings
6885     if test ! -s conftest.err; then
6886       lt_cv_prog_compiler_rtti_exceptions=yes
6887     fi
6888   fi
6889   $rm conftest*
6890
6891fi
6892echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6893echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6894
6895if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6896    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6897else
6898    :
6899fi
6900
6901fi
6902
6903lt_prog_compiler_wl=
6904lt_prog_compiler_pic=
6905lt_prog_compiler_static=
6906
6907echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6908echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6909
6910  if test "$GCC" = yes; then
6911    lt_prog_compiler_wl='-Wl,'
6912    lt_prog_compiler_static='-static'
6913
6914    case $host_os in
6915      aix*)
6916      # All AIX code is PIC.
6917      if test "$host_cpu" = ia64; then
6918	# AIX 5 now supports IA64 processor
6919	lt_prog_compiler_static='-Bstatic'
6920      fi
6921      ;;
6922
6923    amigaos*)
6924      # FIXME: we need at least 68020 code to build shared libraries, but
6925      # adding the `-m68020' flag to GCC prevents building anything better,
6926      # like `-m68040'.
6927      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6928      ;;
6929
6930    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6931      # PIC is the default for these OSes.
6932      ;;
6933
6934    mingw* | pw32* | os2*)
6935      # This hack is so that the source file can tell whether it is being
6936      # built for inclusion in a dll (and should export symbols for example).
6937      lt_prog_compiler_pic='-DDLL_EXPORT'
6938      ;;
6939
6940    darwin* | rhapsody*)
6941      # PIC is the default on this platform
6942      # Common symbols not allowed in MH_DYLIB files
6943      lt_prog_compiler_pic='-fno-common'
6944      ;;
6945
6946    msdosdjgpp*)
6947      # Just because we use GCC doesn't mean we suddenly get shared libraries
6948      # on systems that don't support them.
6949      lt_prog_compiler_can_build_shared=no
6950      enable_shared=no
6951      ;;
6952
6953    sysv4*MP*)
6954      if test -d /usr/nec; then
6955	lt_prog_compiler_pic=-Kconform_pic
6956      fi
6957      ;;
6958
6959    hpux*)
6960      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6961      # not for PA HP-UX.
6962      case "$host_cpu" in
6963      hppa*64*|ia64*)
6964	# +Z the default
6965	;;
6966      *)
6967	lt_prog_compiler_pic='-fPIC'
6968	;;
6969      esac
6970      ;;
6971
6972    *)
6973      lt_prog_compiler_pic='-fPIC'
6974      ;;
6975    esac
6976  else
6977    # PORTME Check for flag to pass linker flags through the system compiler.
6978    case $host_os in
6979    aix*)
6980      lt_prog_compiler_wl='-Wl,'
6981      if test "$host_cpu" = ia64; then
6982	# AIX 5 now supports IA64 processor
6983	lt_prog_compiler_static='-Bstatic'
6984      else
6985	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6986      fi
6987      ;;
6988      darwin*)
6989        # PIC is the default on this platform
6990        # Common symbols not allowed in MH_DYLIB files
6991       case "$cc_basename" in
6992         xlc*)
6993         lt_prog_compiler_pic='-qnocommon'
6994         lt_prog_compiler_wl='-Wl,'
6995         ;;
6996       esac
6997       ;;
6998
6999    mingw* | pw32* | os2*)
7000      # This hack is so that the source file can tell whether it is being
7001      # built for inclusion in a dll (and should export symbols for example).
7002      lt_prog_compiler_pic='-DDLL_EXPORT'
7003      ;;
7004
7005    hpux9* | hpux10* | hpux11*)
7006      lt_prog_compiler_wl='-Wl,'
7007      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7008      # not for PA HP-UX.
7009      case "$host_cpu" in
7010      hppa*64*|ia64*)
7011	# +Z the default
7012	;;
7013      *)
7014	lt_prog_compiler_pic='+Z'
7015	;;
7016      esac
7017      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7018      lt_prog_compiler_static='${wl}-a ${wl}archive'
7019      ;;
7020
7021    irix5* | irix6* | nonstopux*)
7022      lt_prog_compiler_wl='-Wl,'
7023      # PIC (with -KPIC) is the default.
7024      lt_prog_compiler_static='-non_shared'
7025      ;;
7026
7027    newsos6)
7028      lt_prog_compiler_pic='-KPIC'
7029      lt_prog_compiler_static='-Bstatic'
7030      ;;
7031
7032    linux*)
7033      case $cc_basename in
7034      icc* | ecc*)
7035	lt_prog_compiler_wl='-Wl,'
7036	lt_prog_compiler_pic='-KPIC'
7037	lt_prog_compiler_static='-static'
7038        ;;
7039      pgcc | pgf77 | pgf90)
7040        # Portland Group compilers (*not* the Pentium gcc compiler,
7041	# which looks to be a dead project)
7042	lt_prog_compiler_wl='-Wl,'
7043	lt_prog_compiler_pic='-fpic'
7044	lt_prog_compiler_static='-static'
7045        ;;
7046      ccc*)
7047        lt_prog_compiler_wl='-Wl,'
7048        # All Alpha code is PIC.
7049        lt_prog_compiler_static='-non_shared'
7050        ;;
7051      esac
7052      ;;
7053
7054    osf3* | osf4* | osf5*)
7055      lt_prog_compiler_wl='-Wl,'
7056      # All OSF/1 code is PIC.
7057      lt_prog_compiler_static='-non_shared'
7058      ;;
7059
7060    sco3.2v5*)
7061      lt_prog_compiler_pic='-Kpic'
7062      lt_prog_compiler_static='-dn'
7063      ;;
7064
7065    solaris*)
7066      lt_prog_compiler_wl='-Wl,'
7067      lt_prog_compiler_pic='-KPIC'
7068      lt_prog_compiler_static='-Bstatic'
7069      ;;
7070
7071    sunos4*)
7072      lt_prog_compiler_wl='-Qoption ld '
7073      lt_prog_compiler_pic='-PIC'
7074      lt_prog_compiler_static='-Bstatic'
7075      ;;
7076
7077    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7078      lt_prog_compiler_wl='-Wl,'
7079      lt_prog_compiler_pic='-KPIC'
7080      lt_prog_compiler_static='-Bstatic'
7081      ;;
7082
7083    sysv4*MP*)
7084      if test -d /usr/nec ;then
7085	lt_prog_compiler_pic='-Kconform_pic'
7086	lt_prog_compiler_static='-Bstatic'
7087      fi
7088      ;;
7089
7090    unicos*)
7091      lt_prog_compiler_wl='-Wl,'
7092      lt_prog_compiler_can_build_shared=no
7093      ;;
7094
7095    uts4*)
7096      lt_prog_compiler_pic='-pic'
7097      lt_prog_compiler_static='-Bstatic'
7098      ;;
7099
7100    *)
7101      lt_prog_compiler_can_build_shared=no
7102      ;;
7103    esac
7104  fi
7105
7106echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7107echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7108
7109#
7110# Check to make sure the PIC flag actually works.
7111#
7112if test -n "$lt_prog_compiler_pic"; then
7113
7114echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7115echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7116if test "${lt_prog_compiler_pic_works+set}" = set; then
7117  echo $ECHO_N "(cached) $ECHO_C" >&6
7118else
7119  lt_prog_compiler_pic_works=no
7120  ac_outfile=conftest.$ac_objext
7121   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7122   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7123   # Insert the option either (1) after the last *FLAGS variable, or
7124   # (2) before a word containing "conftest.", or (3) at the end.
7125   # Note that $ac_compile itself does not contain backslashes and begins
7126   # with a dollar sign (not a hyphen), so the echo should work correctly.
7127   # The option is referenced via a variable to avoid confusing sed.
7128   lt_compile=`echo "$ac_compile" | $SED \
7129   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7130   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7131   -e 's:$: $lt_compiler_flag:'`
7132   (eval echo "\"\$as_me:7132: $lt_compile\"" >&5)
7133   (eval "$lt_compile" 2>conftest.err)
7134   ac_status=$?
7135   cat conftest.err >&5
7136   echo "$as_me:7136: \$? = $ac_status" >&5
7137   if (exit $ac_status) && test -s "$ac_outfile"; then
7138     # The compiler can only warn and ignore the option if not recognized
7139     # So say no if there are warnings
7140     if test ! -s conftest.err; then
7141       lt_prog_compiler_pic_works=yes
7142     fi
7143   fi
7144   $rm conftest*
7145
7146fi
7147echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7148echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7149
7150if test x"$lt_prog_compiler_pic_works" = xyes; then
7151    case $lt_prog_compiler_pic in
7152     "" | " "*) ;;
7153     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7154     esac
7155else
7156    lt_prog_compiler_pic=
7157     lt_prog_compiler_can_build_shared=no
7158fi
7159
7160fi
7161case "$host_os" in
7162  # For platforms which do not support PIC, -DPIC is meaningless:
7163  *djgpp*)
7164    lt_prog_compiler_pic=
7165    ;;
7166  *)
7167    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7168    ;;
7169esac
7170
7171echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7172echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7173if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7174  echo $ECHO_N "(cached) $ECHO_C" >&6
7175else
7176  lt_cv_prog_compiler_c_o=no
7177   $rm -r conftest 2>/dev/null
7178   mkdir conftest
7179   cd conftest
7180   mkdir out
7181   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7182
7183   lt_compiler_flag="-o out/conftest2.$ac_objext"
7184   # Insert the option either (1) after the last *FLAGS variable, or
7185   # (2) before a word containing "conftest.", or (3) at the end.
7186   # Note that $ac_compile itself does not contain backslashes and begins
7187   # with a dollar sign (not a hyphen), so the echo should work correctly.
7188   lt_compile=`echo "$ac_compile" | $SED \
7189   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7190   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7191   -e 's:$: $lt_compiler_flag:'`
7192   (eval echo "\"\$as_me:7192: $lt_compile\"" >&5)
7193   (eval "$lt_compile" 2>out/conftest.err)
7194   ac_status=$?
7195   cat out/conftest.err >&5
7196   echo "$as_me:7196: \$? = $ac_status" >&5
7197   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7198   then
7199     # The compiler can only warn and ignore the option if not recognized
7200     # So say no if there are warnings
7201     if test ! -s out/conftest.err; then
7202       lt_cv_prog_compiler_c_o=yes
7203     fi
7204   fi
7205   chmod u+w .
7206   $rm conftest*
7207   # SGI C++ compiler will create directory out/ii_files/ for
7208   # template instantiation
7209   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7210   $rm out/* && rmdir out
7211   cd ..
7212   rmdir conftest
7213   $rm conftest*
7214
7215fi
7216echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7217echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7218
7219
7220hard_links="nottested"
7221if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7222  # do not overwrite the value of need_locks provided by the user
7223  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7224echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7225  hard_links=yes
7226  $rm conftest*
7227  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7228  touch conftest.a
7229  ln conftest.a conftest.b 2>&5 || hard_links=no
7230  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7231  echo "$as_me:$LINENO: result: $hard_links" >&5
7232echo "${ECHO_T}$hard_links" >&6
7233  if test "$hard_links" = no; then
7234    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7235echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7236    need_locks=warn
7237  fi
7238else
7239  need_locks=no
7240fi
7241
7242echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7243echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7244
7245  runpath_var=
7246  allow_undefined_flag=
7247  enable_shared_with_static_runtimes=no
7248  archive_cmds=
7249  archive_expsym_cmds=
7250  old_archive_From_new_cmds=
7251  old_archive_from_expsyms_cmds=
7252  export_dynamic_flag_spec=
7253  whole_archive_flag_spec=
7254  thread_safe_flag_spec=
7255  hardcode_libdir_flag_spec=
7256  hardcode_libdir_flag_spec_ld=
7257  hardcode_libdir_separator=
7258  hardcode_direct=no
7259  hardcode_minus_L=no
7260  hardcode_shlibpath_var=unsupported
7261  link_all_deplibs=unknown
7262  hardcode_automatic=no
7263  module_cmds=
7264  module_expsym_cmds=
7265  always_export_symbols=no
7266  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7267  # include_expsyms should be a list of space-separated symbols to be *always*
7268  # included in the symbol list
7269  include_expsyms=
7270  # exclude_expsyms can be an extended regexp of symbols to exclude
7271  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7272  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7273  # as well as any symbol that contains `d'.
7274  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7275  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7276  # platforms (ab)use it in PIC code, but their linkers get confused if
7277  # the symbol is explicitly referenced.  Since portable code cannot
7278  # rely on this symbol name, it's probably fine to never include it in
7279  # preloaded symbol tables.
7280  extract_expsyms_cmds=
7281
7282  case $host_os in
7283  cygwin* | mingw* | pw32*)
7284    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7285    # When not using gcc, we currently assume that we are using
7286    # Microsoft Visual C++.
7287    if test "$GCC" != yes; then
7288      with_gnu_ld=no
7289    fi
7290    ;;
7291  openbsd*)
7292    with_gnu_ld=no
7293    ;;
7294  esac
7295
7296  ld_shlibs=yes
7297  if test "$with_gnu_ld" = yes; then
7298    # If archive_cmds runs LD, not CC, wlarc should be empty
7299    wlarc='${wl}'
7300
7301    # See if GNU ld supports shared libraries.
7302    case $host_os in
7303    aix3* | aix4* | aix5*)
7304      # On AIX/PPC, the GNU linker is very broken
7305      if test "$host_cpu" != ia64; then
7306	ld_shlibs=no
7307	cat <<EOF 1>&2
7308
7309*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7310*** to be unable to reliably create shared libraries on AIX.
7311*** Therefore, libtool is disabling shared libraries support.  If you
7312*** really care for shared libraries, you may want to modify your PATH
7313*** so that a non-GNU linker is found, and then restart.
7314
7315EOF
7316      fi
7317      ;;
7318
7319    amigaos*)
7320      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)'
7321      hardcode_libdir_flag_spec='-L$libdir'
7322      hardcode_minus_L=yes
7323
7324      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7325      # that the semantics of dynamic libraries on AmigaOS, at least up
7326      # to version 4, is to share data among multiple programs linked
7327      # with the same dynamic library.  Since this doesn't match the
7328      # behavior of shared libraries on other platforms, we can't use
7329      # them.
7330      ld_shlibs=no
7331      ;;
7332
7333    beos*)
7334      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7335	allow_undefined_flag=unsupported
7336	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7337	# support --undefined.  This deserves some investigation.  FIXME
7338	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7339      else
7340	ld_shlibs=no
7341      fi
7342      ;;
7343
7344    cygwin* | mingw* | pw32*)
7345      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7346      # as there is no search path for DLLs.
7347      hardcode_libdir_flag_spec='-L$libdir'
7348      allow_undefined_flag=unsupported
7349      always_export_symbols=no
7350      enable_shared_with_static_runtimes=yes
7351      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7352
7353      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7354        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7355	# If the export-symbols file already is a .def file (1st line
7356	# is EXPORTS), use it as is; otherwise, prepend...
7357	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7358	  cp $export_symbols $output_objdir/$soname.def;
7359	else
7360	  echo EXPORTS > $output_objdir/$soname.def;
7361	  cat $export_symbols >> $output_objdir/$soname.def;
7362	fi~
7363	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7364      else
7365	ld_shlibs=no
7366      fi
7367      ;;
7368
7369    netbsd*)
7370      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7371	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7372	wlarc=
7373      else
7374	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7375	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7376      fi
7377      ;;
7378
7379    solaris* | sysv5*)
7380      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7381	ld_shlibs=no
7382	cat <<EOF 1>&2
7383
7384*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7385*** create shared libraries on Solaris systems.  Therefore, libtool
7386*** is disabling shared libraries support.  We urge you to upgrade GNU
7387*** binutils to release 2.9.1 or newer.  Another option is to modify
7388*** your PATH or compiler configuration so that the native linker is
7389*** used, and then restart.
7390
7391EOF
7392      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7393	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7394	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7395      else
7396	ld_shlibs=no
7397      fi
7398      ;;
7399
7400    sunos4*)
7401      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7402      wlarc=
7403      hardcode_direct=yes
7404      hardcode_shlibpath_var=no
7405      ;;
7406
7407  linux*)
7408    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7409      tmp_addflag=
7410      case $CC,$host_cpu in
7411      pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
7412        tmp_addflag=' -fpic' ;;
7413      ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7414        tmp_addflag=' -i_dynamic' ;;
7415      efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7416        tmp_addflag=' -i_dynamic -nofor_main' ;;
7417      ifc* | ifort*)			# Intel Fortran compiler
7418      	tmp_addflag=' -nofor_main' ;;
7419      esac
7420      archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7421      supports_anon_versioning=no
7422      case `$LD -v 2>/dev/null` in
7423        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7424        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7425        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7426        *\ 2.11.*) ;; # other 2.11 versions
7427        *) supports_anon_versioning=yes ;;
7428      esac
7429      if test $supports_anon_versioning = yes; then
7430        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7431cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7432$echo "local: *; };" >> $output_objdir/$libname.ver~
7433        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7434      else
7435        archive_expsym_cmds=$archive_cmds
7436      fi
7437    else
7438      ld_shlibs=no
7439    fi
7440    ;;
7441
7442    *)
7443      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7444	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7445	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7446      else
7447	ld_shlibs=no
7448      fi
7449      ;;
7450    esac
7451
7452    if test "$ld_shlibs" = yes; then
7453      runpath_var=LD_RUN_PATH
7454      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7455      export_dynamic_flag_spec='${wl}--export-dynamic'
7456      # ancient GNU ld didn't support --whole-archive et. al.
7457      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7458 	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7459      else
7460  	whole_archive_flag_spec=
7461      fi
7462    fi
7463  else
7464    # PORTME fill in a description of your system's linker (not GNU ld)
7465    case $host_os in
7466    aix3*)
7467      allow_undefined_flag=unsupported
7468      always_export_symbols=yes
7469      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'
7470      # Note: this linker hardcodes the directories in LIBPATH if there
7471      # are no directories specified by -L.
7472      hardcode_minus_L=yes
7473      if test "$GCC" = yes && test -z "$link_static_flag"; then
7474	# Neither direct hardcoding nor static linking is supported with a
7475	# broken collect2.
7476	hardcode_direct=unsupported
7477      fi
7478      ;;
7479
7480    aix4* | aix5*)
7481      if test "$host_cpu" = ia64; then
7482	# On IA64, the linker does run time linking by default, so we don't
7483	# have to do anything special.
7484	aix_use_runtimelinking=no
7485	exp_sym_flag='-Bexport'
7486	no_entry_flag=""
7487      else
7488	# If we're using GNU nm, then we don't want the "-C" option.
7489	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7490	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7491	  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'
7492	else
7493	  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'
7494	fi
7495	aix_use_runtimelinking=no
7496
7497	# Test if we are trying to use run time linking or normal
7498	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7499	# need to do runtime linking.
7500	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7501	  for ld_flag in $LDFLAGS; do
7502  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7503  	    aix_use_runtimelinking=yes
7504  	    break
7505  	  fi
7506	  done
7507	esac
7508
7509	exp_sym_flag='-bexport'
7510	no_entry_flag='-bnoentry'
7511      fi
7512
7513      # When large executables or shared objects are built, AIX ld can
7514      # have problems creating the table of contents.  If linking a library
7515      # or program results in "error TOC overflow" add -mminimal-toc to
7516      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7517      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7518
7519      archive_cmds=''
7520      hardcode_direct=yes
7521      hardcode_libdir_separator=':'
7522      link_all_deplibs=yes
7523
7524      if test "$GCC" = yes; then
7525	case $host_os in aix4.[012]|aix4.[012].*)
7526	# We only want to do this on AIX 4.2 and lower, the check
7527	# below for broken collect2 doesn't work under 4.3+
7528	  collect2name=`${CC} -print-prog-name=collect2`
7529	  if test -f "$collect2name" && \
7530  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7531	  then
7532  	  # We have reworked collect2
7533  	  hardcode_direct=yes
7534	  else
7535  	  # We have old collect2
7536  	  hardcode_direct=unsupported
7537  	  # It fails to find uninstalled libraries when the uninstalled
7538  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7539  	  # to unsupported forces relinking
7540  	  hardcode_minus_L=yes
7541  	  hardcode_libdir_flag_spec='-L$libdir'
7542  	  hardcode_libdir_separator=
7543	  fi
7544	esac
7545	shared_flag='-shared'
7546	if test "$aix_use_runtimelinking" = yes; then
7547	  shared_flag="$shared_flag "'${wl}-G'
7548	fi
7549      else
7550	# not using gcc
7551	if test "$host_cpu" = ia64; then
7552  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7553  	# chokes on -Wl,-G. The following line is correct:
7554	  shared_flag='-G'
7555	else
7556  	if test "$aix_use_runtimelinking" = yes; then
7557	    shared_flag='${wl}-G'
7558	  else
7559	    shared_flag='${wl}-bM:SRE'
7560  	fi
7561	fi
7562      fi
7563
7564      # It seems that -bexpall does not export symbols beginning with
7565      # underscore (_), so it is better to generate a list of symbols to export.
7566      always_export_symbols=yes
7567      if test "$aix_use_runtimelinking" = yes; then
7568	# Warning - without using the other runtime loading flags (-brtl),
7569	# -berok will link without error, but may produce a broken library.
7570	allow_undefined_flag='-berok'
7571       # Determine the default libpath from the value encoded in an empty executable.
7572       cat >conftest.$ac_ext <<_ACEOF
7573/* confdefs.h.  */
7574_ACEOF
7575cat confdefs.h >>conftest.$ac_ext
7576cat >>conftest.$ac_ext <<_ACEOF
7577/* end confdefs.h.  */
7578
7579int
7580main ()
7581{
7582
7583  ;
7584  return 0;
7585}
7586_ACEOF
7587rm -f conftest.$ac_objext conftest$ac_exeext
7588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7589  (eval $ac_link) 2>conftest.er1
7590  ac_status=$?
7591  grep -v '^ *+' conftest.er1 >conftest.err
7592  rm -f conftest.er1
7593  cat conftest.err >&5
7594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595  (exit $ac_status); } &&
7596	 { ac_try='test -z "$ac_c_werror_flag"
7597			 || test ! -s conftest.err'
7598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599  (eval $ac_try) 2>&5
7600  ac_status=$?
7601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602  (exit $ac_status); }; } &&
7603	 { ac_try='test -s conftest$ac_exeext'
7604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605  (eval $ac_try) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); }; }; then
7609
7610aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7611}'`
7612# Check for a 64-bit object if we didn't find anything.
7613if 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; }
7614}'`; fi
7615else
7616  echo "$as_me: failed program was:" >&5
7617sed 's/^/| /' conftest.$ac_ext >&5
7618
7619fi
7620rm -f conftest.err conftest.$ac_objext \
7621      conftest$ac_exeext conftest.$ac_ext
7622if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7623
7624       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7625	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"
7626       else
7627	if test "$host_cpu" = ia64; then
7628	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7629	  allow_undefined_flag="-z nodefs"
7630	  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"
7631	else
7632	 # Determine the default libpath from the value encoded in an empty executable.
7633	 cat >conftest.$ac_ext <<_ACEOF
7634/* confdefs.h.  */
7635_ACEOF
7636cat confdefs.h >>conftest.$ac_ext
7637cat >>conftest.$ac_ext <<_ACEOF
7638/* end confdefs.h.  */
7639
7640int
7641main ()
7642{
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648rm -f conftest.$ac_objext conftest$ac_exeext
7649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650  (eval $ac_link) 2>conftest.er1
7651  ac_status=$?
7652  grep -v '^ *+' conftest.er1 >conftest.err
7653  rm -f conftest.er1
7654  cat conftest.err >&5
7655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656  (exit $ac_status); } &&
7657	 { ac_try='test -z "$ac_c_werror_flag"
7658			 || test ! -s conftest.err'
7659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660  (eval $ac_try) 2>&5
7661  ac_status=$?
7662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663  (exit $ac_status); }; } &&
7664	 { ac_try='test -s conftest$ac_exeext'
7665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666  (eval $ac_try) 2>&5
7667  ac_status=$?
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); }; }; then
7670
7671aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7672}'`
7673# Check for a 64-bit object if we didn't find anything.
7674if 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; }
7675}'`; fi
7676else
7677  echo "$as_me: failed program was:" >&5
7678sed 's/^/| /' conftest.$ac_ext >&5
7679
7680fi
7681rm -f conftest.err conftest.$ac_objext \
7682      conftest$ac_exeext conftest.$ac_ext
7683if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7684
7685	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7686	  # Warning - without using the other run time loading flags,
7687	  # -berok will link without error, but may produce a broken library.
7688	  no_undefined_flag=' ${wl}-bernotok'
7689	  allow_undefined_flag=' ${wl}-berok'
7690	  # -bexpall does not export symbols beginning with underscore (_)
7691	  always_export_symbols=yes
7692	  # Exported symbols can be pulled into shared objects from archives
7693	  whole_archive_flag_spec=' '
7694	  archive_cmds_need_lc=yes
7695	  # This is similar to how AIX traditionally builds it's shared libraries.
7696	  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'
7697	fi
7698      fi
7699      ;;
7700
7701    amigaos*)
7702      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)'
7703      hardcode_libdir_flag_spec='-L$libdir'
7704      hardcode_minus_L=yes
7705      # see comment about different semantics on the GNU ld section
7706      ld_shlibs=no
7707      ;;
7708
7709    bsdi[45]*)
7710      export_dynamic_flag_spec=-rdynamic
7711      ;;
7712
7713    cygwin* | mingw* | pw32*)
7714      # When not using gcc, we currently assume that we are using
7715      # Microsoft Visual C++.
7716      # hardcode_libdir_flag_spec is actually meaningless, as there is
7717      # no search path for DLLs.
7718      hardcode_libdir_flag_spec=' '
7719      allow_undefined_flag=unsupported
7720      # Tell ltmain to make .lib files, not .a files.
7721      libext=lib
7722      # Tell ltmain to make .dll files, not .so files.
7723      shrext_cmds=".dll"
7724      # FIXME: Setting linknames here is a bad hack.
7725      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7726      # The linker will automatically build a .lib file if we build a DLL.
7727      old_archive_From_new_cmds='true'
7728      # FIXME: Should let the user specify the lib program.
7729      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7730      fix_srcfile_path='`cygpath -w "$srcfile"`'
7731      enable_shared_with_static_runtimes=yes
7732      ;;
7733
7734    darwin* | rhapsody*)
7735      case "$host_os" in
7736        rhapsody* | darwin1.[012])
7737         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7738         ;;
7739       *) # Darwin 1.3 on
7740         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7741           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7742         else
7743           case ${MACOSX_DEPLOYMENT_TARGET} in
7744             10.[012])
7745               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7746               ;;
7747             10.*)
7748               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7749               ;;
7750           esac
7751         fi
7752         ;;
7753      esac
7754      archive_cmds_need_lc=no
7755      hardcode_direct=no
7756      hardcode_automatic=yes
7757      hardcode_shlibpath_var=unsupported
7758      whole_archive_flag_spec=''
7759      link_all_deplibs=yes
7760    if test "$GCC" = yes ; then
7761    	output_verbose_link_cmd='echo'
7762        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7763      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7764      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7765      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}'
7766      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}'
7767    else
7768      case "$cc_basename" in
7769        xlc*)
7770         output_verbose_link_cmd='echo'
7771         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7772         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7773          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7774         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}'
7775          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}'
7776          ;;
7777       *)
7778         ld_shlibs=no
7779          ;;
7780      esac
7781    fi
7782      ;;
7783
7784    dgux*)
7785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7786      hardcode_libdir_flag_spec='-L$libdir'
7787      hardcode_shlibpath_var=no
7788      ;;
7789
7790    freebsd1*)
7791      ld_shlibs=no
7792      ;;
7793
7794    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7795    # support.  Future versions do this automatically, but an explicit c++rt0.o
7796    # does not break anything, and helps significantly (at the cost of a little
7797    # extra space).
7798    freebsd2.2*)
7799      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7800      hardcode_libdir_flag_spec='-R$libdir'
7801      hardcode_direct=yes
7802      hardcode_shlibpath_var=no
7803      ;;
7804
7805    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7806    freebsd2*)
7807      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7808      hardcode_direct=yes
7809      hardcode_minus_L=yes
7810      hardcode_shlibpath_var=no
7811      ;;
7812
7813    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7814    freebsd* | kfreebsd*-gnu | dragonfly*)
7815      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7816      hardcode_libdir_flag_spec='-R$libdir'
7817      hardcode_direct=yes
7818      hardcode_shlibpath_var=no
7819      ;;
7820
7821    hpux9*)
7822      if test "$GCC" = yes; then
7823	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'
7824      else
7825	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'
7826      fi
7827      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7828      hardcode_libdir_separator=:
7829      hardcode_direct=yes
7830
7831      # hardcode_minus_L: Not really in the search PATH,
7832      # but as the default location of the library.
7833      hardcode_minus_L=yes
7834      export_dynamic_flag_spec='${wl}-E'
7835      ;;
7836
7837    hpux10* | hpux11*)
7838      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7839	case "$host_cpu" in
7840	hppa*64*|ia64*)
7841	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7842	  ;;
7843	*)
7844	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7845	  ;;
7846	esac
7847      else
7848	case "$host_cpu" in
7849	hppa*64*|ia64*)
7850	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7851	  ;;
7852	*)
7853	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7854	  ;;
7855	esac
7856      fi
7857      if test "$with_gnu_ld" = no; then
7858	case "$host_cpu" in
7859	hppa*64*)
7860	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7861	  hardcode_libdir_flag_spec_ld='+b $libdir'
7862	  hardcode_libdir_separator=:
7863	  hardcode_direct=no
7864	  hardcode_shlibpath_var=no
7865	  ;;
7866	ia64*)
7867	  hardcode_libdir_flag_spec='-L$libdir'
7868	  hardcode_direct=no
7869	  hardcode_shlibpath_var=no
7870
7871	  # hardcode_minus_L: Not really in the search PATH,
7872	  # but as the default location of the library.
7873	  hardcode_minus_L=yes
7874	  ;;
7875	*)
7876	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7877	  hardcode_libdir_separator=:
7878	  hardcode_direct=yes
7879	  export_dynamic_flag_spec='${wl}-E'
7880
7881	  # hardcode_minus_L: Not really in the search PATH,
7882	  # but as the default location of the library.
7883	  hardcode_minus_L=yes
7884	  ;;
7885	esac
7886      fi
7887      ;;
7888
7889    irix5* | irix6* | nonstopux*)
7890      if test "$GCC" = yes; then
7891	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'
7892      else
7893	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'
7894	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7895      fi
7896      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7897      hardcode_libdir_separator=:
7898      link_all_deplibs=yes
7899      ;;
7900
7901    netbsd*)
7902      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7903	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7904      else
7905	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7906      fi
7907      hardcode_libdir_flag_spec='-R$libdir'
7908      hardcode_direct=yes
7909      hardcode_shlibpath_var=no
7910      ;;
7911
7912    newsos6)
7913      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7914      hardcode_direct=yes
7915      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7916      hardcode_libdir_separator=:
7917      hardcode_shlibpath_var=no
7918      ;;
7919
7920    openbsd*)
7921      hardcode_direct=yes
7922      hardcode_shlibpath_var=no
7923      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7924	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7925	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7926	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7927	export_dynamic_flag_spec='${wl}-E'
7928      else
7929       case $host_os in
7930	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7931	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7932	   hardcode_libdir_flag_spec='-R$libdir'
7933	   ;;
7934	 *)
7935	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7936	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7937	   ;;
7938       esac
7939      fi
7940      ;;
7941
7942    os2*)
7943      hardcode_libdir_flag_spec='-L$libdir'
7944      hardcode_minus_L=yes
7945      allow_undefined_flag=unsupported
7946      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'
7947      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7948      ;;
7949
7950    osf3*)
7951      if test "$GCC" = yes; then
7952	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7953	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'
7954      else
7955	allow_undefined_flag=' -expect_unresolved \*'
7956	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'
7957      fi
7958      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959      hardcode_libdir_separator=:
7960      ;;
7961
7962    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7963      if test "$GCC" = yes; then
7964	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7965	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'
7966	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7967      else
7968	allow_undefined_flag=' -expect_unresolved \*'
7969	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'
7970	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7971	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7972
7973	# Both c and cxx compiler support -rpath directly
7974	hardcode_libdir_flag_spec='-rpath $libdir'
7975      fi
7976      hardcode_libdir_separator=:
7977      ;;
7978
7979    sco3.2v5*)
7980      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7981      hardcode_shlibpath_var=no
7982      export_dynamic_flag_spec='${wl}-Bexport'
7983      runpath_var=LD_RUN_PATH
7984      hardcode_runpath_var=yes
7985      ;;
7986
7987    solaris*)
7988      no_undefined_flag=' -z text'
7989      if test "$GCC" = yes; then
7990	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7991	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7992	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7993      else
7994	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7995	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7996  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7997      fi
7998      hardcode_libdir_flag_spec='-R$libdir'
7999      hardcode_shlibpath_var=no
8000      case $host_os in
8001      solaris2.[0-5] | solaris2.[0-5].*) ;;
8002      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8003	whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
8004      esac
8005      link_all_deplibs=yes
8006      ;;
8007
8008    sunos4*)
8009      if test "x$host_vendor" = xsequent; then
8010	# Use $CC to link under sequent, because it throws in some extra .o
8011	# files that make .init and .fini sections work.
8012	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8013      else
8014	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8015      fi
8016      hardcode_libdir_flag_spec='-L$libdir'
8017      hardcode_direct=yes
8018      hardcode_minus_L=yes
8019      hardcode_shlibpath_var=no
8020      ;;
8021
8022    sysv4)
8023      case $host_vendor in
8024	sni)
8025	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8026	  hardcode_direct=yes # is this really true???
8027	;;
8028	siemens)
8029	  ## LD is ld it makes a PLAMLIB
8030	  ## CC just makes a GrossModule.
8031	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8032	  reload_cmds='$CC -r -o $output$reload_objs'
8033	  hardcode_direct=no
8034        ;;
8035	motorola)
8036	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8037	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8038	;;
8039      esac
8040      runpath_var='LD_RUN_PATH'
8041      hardcode_shlibpath_var=no
8042      ;;
8043
8044    sysv4.3*)
8045      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8046      hardcode_shlibpath_var=no
8047      export_dynamic_flag_spec='-Bexport'
8048      ;;
8049
8050    sysv4*MP*)
8051      if test -d /usr/nec; then
8052	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8053	hardcode_shlibpath_var=no
8054	runpath_var=LD_RUN_PATH
8055	hardcode_runpath_var=yes
8056	ld_shlibs=yes
8057      fi
8058      ;;
8059
8060    sysv4.2uw2*)
8061      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8062      hardcode_direct=yes
8063      hardcode_minus_L=no
8064      hardcode_shlibpath_var=no
8065      hardcode_runpath_var=yes
8066      runpath_var=LD_RUN_PATH
8067      ;;
8068
8069   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8070      no_undefined_flag='${wl}-z ${wl}text'
8071      if test "$GCC" = yes; then
8072	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8073      else
8074	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8075      fi
8076      runpath_var='LD_RUN_PATH'
8077      hardcode_shlibpath_var=no
8078      ;;
8079
8080    sysv5*)
8081      no_undefined_flag=' -z text'
8082      # $CC -shared without GNU ld will not create a library from C++
8083      # object files and a static libstdc++, better avoid it by now
8084      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8085      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8086  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8087      hardcode_libdir_flag_spec=
8088      hardcode_shlibpath_var=no
8089      runpath_var='LD_RUN_PATH'
8090      ;;
8091
8092    uts4*)
8093      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8094      hardcode_libdir_flag_spec='-L$libdir'
8095      hardcode_shlibpath_var=no
8096      ;;
8097
8098    *)
8099      ld_shlibs=no
8100      ;;
8101    esac
8102  fi
8103
8104echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8105echo "${ECHO_T}$ld_shlibs" >&6
8106test "$ld_shlibs" = no && can_build_shared=no
8107
8108variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8109if test "$GCC" = yes; then
8110  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8111fi
8112
8113#
8114# Do we need to explicitly link libc?
8115#
8116case "x$archive_cmds_need_lc" in
8117x|xyes)
8118  # Assume -lc should be added
8119  archive_cmds_need_lc=yes
8120
8121  if test "$enable_shared" = yes && test "$GCC" = yes; then
8122    case $archive_cmds in
8123    *'~'*)
8124      # FIXME: we may have to deal with multi-command sequences.
8125      ;;
8126    '$CC '*)
8127      # Test whether the compiler implicitly links with -lc since on some
8128      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8129      # to ld, don't add -lc before -lgcc.
8130      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8131echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8132      $rm conftest*
8133      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8134
8135      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136  (eval $ac_compile) 2>&5
8137  ac_status=$?
8138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139  (exit $ac_status); } 2>conftest.err; then
8140        soname=conftest
8141        lib=conftest
8142        libobjs=conftest.$ac_objext
8143        deplibs=
8144        wl=$lt_prog_compiler_wl
8145        compiler_flags=-v
8146        linker_flags=-v
8147        verstring=
8148        output_objdir=.
8149        libname=conftest
8150        lt_save_allow_undefined_flag=$allow_undefined_flag
8151        allow_undefined_flag=
8152        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8153  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8154  ac_status=$?
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); }
8157        then
8158	  archive_cmds_need_lc=no
8159        else
8160	  archive_cmds_need_lc=yes
8161        fi
8162        allow_undefined_flag=$lt_save_allow_undefined_flag
8163      else
8164        cat conftest.err 1>&5
8165      fi
8166      $rm conftest*
8167      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8168echo "${ECHO_T}$archive_cmds_need_lc" >&6
8169      ;;
8170    esac
8171  fi
8172  ;;
8173esac
8174
8175echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8176echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8177library_names_spec=
8178libname_spec='lib$name'
8179soname_spec=
8180shrext_cmds=".so"
8181postinstall_cmds=
8182postuninstall_cmds=
8183finish_cmds=
8184finish_eval=
8185shlibpath_var=
8186shlibpath_overrides_runpath=unknown
8187version_type=none
8188dynamic_linker="$host_os ld.so"
8189sys_lib_dlsearch_path_spec="/lib /usr/lib"
8190if test "$GCC" = yes; then
8191  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8192  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8193    # if the path contains ";" then we assume it to be the separator
8194    # otherwise default to the standard path separator (i.e. ":") - it is
8195    # assumed that no part of a normal pathname contains ";" but that should
8196    # okay in the real world where ";" in dirpaths is itself problematic.
8197    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8198  else
8199    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8200  fi
8201else
8202  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8203fi
8204need_lib_prefix=unknown
8205hardcode_into_libs=no
8206
8207# when you set need_version to no, make sure it does not cause -set_version
8208# flags to be left without arguments
8209need_version=unknown
8210
8211case $host_os in
8212aix3*)
8213  version_type=linux
8214  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8215  shlibpath_var=LIBPATH
8216
8217  # AIX 3 has no versioning support, so we append a major version to the name.
8218  soname_spec='${libname}${release}${shared_ext}$major'
8219  ;;
8220
8221aix4* | aix5*)
8222  version_type=linux
8223  need_lib_prefix=no
8224  need_version=no
8225  hardcode_into_libs=yes
8226  if test "$host_cpu" = ia64; then
8227    # AIX 5 supports IA64
8228    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8229    shlibpath_var=LD_LIBRARY_PATH
8230  else
8231    # With GCC up to 2.95.x, collect2 would create an import file
8232    # for dependence libraries.  The import file would start with
8233    # the line `#! .'.  This would cause the generated library to
8234    # depend on `.', always an invalid library.  This was fixed in
8235    # development snapshots of GCC prior to 3.0.
8236    case $host_os in
8237      aix4 | aix4.[01] | aix4.[01].*)
8238      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8239	   echo ' yes '
8240	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8241	:
8242      else
8243	can_build_shared=no
8244      fi
8245      ;;
8246    esac
8247    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8248    # soname into executable. Probably we can add versioning support to
8249    # collect2, so additional links can be useful in future.
8250    if test "$aix_use_runtimelinking" = yes; then
8251      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8252      # instead of lib<name>.a to let people know that these are not
8253      # typical AIX shared libraries.
8254      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8255    else
8256      # We preserve .a as extension for shared libraries through AIX4.2
8257      # and later when we are not doing run time linking.
8258      library_names_spec='${libname}${release}.a $libname.a'
8259      soname_spec='${libname}${release}${shared_ext}$major'
8260    fi
8261    shlibpath_var=LIBPATH
8262  fi
8263  ;;
8264
8265amigaos*)
8266  library_names_spec='$libname.ixlibrary $libname.a'
8267  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8268  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'
8269  ;;
8270
8271beos*)
8272  library_names_spec='${libname}${shared_ext}'
8273  dynamic_linker="$host_os ld.so"
8274  shlibpath_var=LIBRARY_PATH
8275  ;;
8276
8277bsdi[45]*)
8278  version_type=linux
8279  need_version=no
8280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8281  soname_spec='${libname}${release}${shared_ext}$major'
8282  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8283  shlibpath_var=LD_LIBRARY_PATH
8284  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8285  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8286  # the default ld.so.conf also contains /usr/contrib/lib and
8287  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8288  # libtool to hard-code these into programs
8289  ;;
8290
8291cygwin* | mingw* | pw32*)
8292  version_type=windows
8293  shrext_cmds=".dll"
8294  need_version=no
8295  need_lib_prefix=no
8296
8297  case $GCC,$host_os in
8298  yes,cygwin* | yes,mingw* | yes,pw32*)
8299    library_names_spec='$libname.dll.a'
8300    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8301    postinstall_cmds='base_file=`basename \${file}`~
8302      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8303      dldir=$destdir/`dirname \$dlpath`~
8304      test -d \$dldir || mkdir -p \$dldir~
8305      $install_prog $dir/$dlname \$dldir/$dlname'
8306    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8307      dlpath=$dir/\$dldll~
8308       $rm \$dlpath'
8309    shlibpath_overrides_runpath=yes
8310
8311    case $host_os in
8312    cygwin*)
8313      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8314      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8315      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8316      ;;
8317    mingw*)
8318      # MinGW DLLs use traditional 'lib' prefix
8319      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8320      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8321      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8322        # It is most probably a Windows format PATH printed by
8323        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8324        # path with ; separators, and with drive letters. We can handle the
8325        # drive letters (cygwin fileutils understands them), so leave them,
8326        # especially as we might pass files found there to a mingw objdump,
8327        # which wouldn't understand a cygwinified path. Ahh.
8328        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8329      else
8330        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8331      fi
8332      ;;
8333    pw32*)
8334      # pw32 DLLs use 'pw' prefix rather than 'lib'
8335      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8336      ;;
8337    esac
8338    ;;
8339
8340  *)
8341    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8342    ;;
8343  esac
8344  dynamic_linker='Win32 ld.exe'
8345  # FIXME: first we should search . and the directory the executable is in
8346  shlibpath_var=PATH
8347  ;;
8348
8349darwin* | rhapsody*)
8350  dynamic_linker="$host_os dyld"
8351  version_type=darwin
8352  need_lib_prefix=no
8353  need_version=no
8354  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8355  soname_spec='${libname}${release}${major}$shared_ext'
8356  shlibpath_overrides_runpath=yes
8357  shlibpath_var=DYLD_LIBRARY_PATH
8358  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8359  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8360  if test "$GCC" = yes; then
8361    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"`
8362  else
8363    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8364  fi
8365  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8366  ;;
8367
8368dgux*)
8369  version_type=linux
8370  need_lib_prefix=no
8371  need_version=no
8372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8373  soname_spec='${libname}${release}${shared_ext}$major'
8374  shlibpath_var=LD_LIBRARY_PATH
8375  ;;
8376
8377freebsd1*)
8378  dynamic_linker=no
8379  ;;
8380
8381kfreebsd*-gnu)
8382  version_type=linux
8383  need_lib_prefix=no
8384  need_version=no
8385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8386  soname_spec='${libname}${release}${shared_ext}$major'
8387  shlibpath_var=LD_LIBRARY_PATH
8388  shlibpath_overrides_runpath=no
8389  hardcode_into_libs=yes
8390  dynamic_linker='GNU ld.so'
8391  ;;
8392
8393freebsd* | dragonfly*)
8394  # DragonFly does not have aout.  When/if they implement a new
8395  # versioning mechanism, adjust this.
8396  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8397  version_type=freebsd-$objformat
8398  case $version_type in
8399    freebsd-elf*)
8400      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8401      need_version=no
8402      need_lib_prefix=no
8403      ;;
8404    freebsd-*)
8405      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8406      need_version=yes
8407      ;;
8408  esac
8409  shlibpath_var=LD_LIBRARY_PATH
8410  case $host_os in
8411  freebsd2*)
8412    shlibpath_overrides_runpath=yes
8413    ;;
8414  freebsd3.[01]* | freebsdelf3.[01]*)
8415    shlibpath_overrides_runpath=yes
8416    hardcode_into_libs=yes
8417    ;;
8418  *) # from 3.2 on
8419    shlibpath_overrides_runpath=no
8420    hardcode_into_libs=yes
8421    ;;
8422  esac
8423  ;;
8424
8425gnu*)
8426  version_type=linux
8427  need_lib_prefix=no
8428  need_version=no
8429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8430  soname_spec='${libname}${release}${shared_ext}$major'
8431  shlibpath_var=LD_LIBRARY_PATH
8432  hardcode_into_libs=yes
8433  ;;
8434
8435hpux9* | hpux10* | hpux11*)
8436  # Give a soname corresponding to the major version so that dld.sl refuses to
8437  # link against other versions.
8438  version_type=sunos
8439  need_lib_prefix=no
8440  need_version=no
8441  case "$host_cpu" in
8442  ia64*)
8443    shrext_cmds='.so'
8444    hardcode_into_libs=yes
8445    dynamic_linker="$host_os dld.so"
8446    shlibpath_var=LD_LIBRARY_PATH
8447    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8448    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8449    soname_spec='${libname}${release}${shared_ext}$major'
8450    if test "X$HPUX_IA64_MODE" = X32; then
8451      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8452    else
8453      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8454    fi
8455    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8456    ;;
8457   hppa*64*)
8458     shrext_cmds='.sl'
8459     hardcode_into_libs=yes
8460     dynamic_linker="$host_os dld.sl"
8461     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8462     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8463     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8464     soname_spec='${libname}${release}${shared_ext}$major'
8465     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8466     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8467     ;;
8468   *)
8469    shrext_cmds='.sl'
8470    dynamic_linker="$host_os dld.sl"
8471    shlibpath_var=SHLIB_PATH
8472    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8473    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8474    soname_spec='${libname}${release}${shared_ext}$major'
8475    ;;
8476  esac
8477  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8478  postinstall_cmds='chmod 555 $lib'
8479  ;;
8480
8481irix5* | irix6* | nonstopux*)
8482  case $host_os in
8483    nonstopux*) version_type=nonstopux ;;
8484    *)
8485	if test "$lt_cv_prog_gnu_ld" = yes; then
8486		version_type=linux
8487	else
8488		version_type=irix
8489	fi ;;
8490  esac
8491  need_lib_prefix=no
8492  need_version=no
8493  soname_spec='${libname}${release}${shared_ext}$major'
8494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8495  case $host_os in
8496  irix5* | nonstopux*)
8497    libsuff= shlibsuff=
8498    ;;
8499  *)
8500    case $LD in # libtool.m4 will add one of these switches to LD
8501    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8502      libsuff= shlibsuff= libmagic=32-bit;;
8503    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8504      libsuff=32 shlibsuff=N32 libmagic=N32;;
8505    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8506      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8507    *) libsuff= shlibsuff= libmagic=never-match;;
8508    esac
8509    ;;
8510  esac
8511  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8512  shlibpath_overrides_runpath=no
8513  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8514  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8515  hardcode_into_libs=yes
8516  ;;
8517
8518# No shared lib support for Linux oldld, aout, or coff.
8519linux*oldld* | linux*aout* | linux*coff*)
8520  dynamic_linker=no
8521  ;;
8522
8523# This must be Linux ELF.
8524linux*)
8525  version_type=linux
8526  need_lib_prefix=no
8527  need_version=no
8528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8529  soname_spec='${libname}${release}${shared_ext}$major'
8530  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8531  shlibpath_var=LD_LIBRARY_PATH
8532  shlibpath_overrides_runpath=no
8533  # This implies no fast_install, which is unacceptable.
8534  # Some rework will be needed to allow for fast_install
8535  # before this can be enabled.
8536  hardcode_into_libs=yes
8537
8538  # Append ld.so.conf contents to the search path
8539  if test -f /etc/ld.so.conf; then
8540    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8541    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8542  fi
8543
8544  # We used to test for /lib/ld.so.1 and disable shared libraries on
8545  # powerpc, because MkLinux only supported shared libraries with the
8546  # GNU dynamic linker.  Since this was broken with cross compilers,
8547  # most powerpc-linux boxes support dynamic linking these days and
8548  # people can always --disable-shared, the test was removed, and we
8549  # assume the GNU/Linux dynamic linker is in use.
8550  dynamic_linker='GNU/Linux ld.so'
8551  ;;
8552
8553knetbsd*-gnu)
8554  version_type=linux
8555  need_lib_prefix=no
8556  need_version=no
8557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8558  soname_spec='${libname}${release}${shared_ext}$major'
8559  shlibpath_var=LD_LIBRARY_PATH
8560  shlibpath_overrides_runpath=no
8561  hardcode_into_libs=yes
8562  dynamic_linker='GNU ld.so'
8563  ;;
8564
8565netbsd*)
8566  version_type=sunos
8567  need_lib_prefix=no
8568  need_version=no
8569  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8570    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8571    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8572    dynamic_linker='NetBSD (a.out) ld.so'
8573  else
8574    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8575    soname_spec='${libname}${release}${shared_ext}$major'
8576    dynamic_linker='NetBSD ld.elf_so'
8577  fi
8578  shlibpath_var=LD_LIBRARY_PATH
8579  shlibpath_overrides_runpath=yes
8580  hardcode_into_libs=yes
8581  ;;
8582
8583newsos6)
8584  version_type=linux
8585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8586  shlibpath_var=LD_LIBRARY_PATH
8587  shlibpath_overrides_runpath=yes
8588  ;;
8589
8590nto-qnx*)
8591  version_type=linux
8592  need_lib_prefix=no
8593  need_version=no
8594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8595  soname_spec='${libname}${release}${shared_ext}$major'
8596  shlibpath_var=LD_LIBRARY_PATH
8597  shlibpath_overrides_runpath=yes
8598  ;;
8599
8600openbsd*)
8601  version_type=sunos
8602  need_lib_prefix=no
8603  need_version=no
8604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8605  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8606  shlibpath_var=LD_LIBRARY_PATH
8607  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8608    case $host_os in
8609      openbsd2.[89] | openbsd2.[89].*)
8610	shlibpath_overrides_runpath=no
8611	;;
8612      *)
8613	shlibpath_overrides_runpath=yes
8614	;;
8615      esac
8616  else
8617    shlibpath_overrides_runpath=yes
8618  fi
8619  ;;
8620
8621os2*)
8622  libname_spec='$name'
8623  shrext_cmds=".dll"
8624  need_lib_prefix=no
8625  library_names_spec='$libname${shared_ext} $libname.a'
8626  dynamic_linker='OS/2 ld.exe'
8627  shlibpath_var=LIBPATH
8628  ;;
8629
8630osf3* | osf4* | osf5*)
8631  version_type=osf
8632  need_lib_prefix=no
8633  need_version=no
8634  soname_spec='${libname}${release}${shared_ext}$major'
8635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8636  shlibpath_var=LD_LIBRARY_PATH
8637  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8638  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8639  ;;
8640
8641sco3.2v5*)
8642  version_type=osf
8643  soname_spec='${libname}${release}${shared_ext}$major'
8644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8645  shlibpath_var=LD_LIBRARY_PATH
8646  ;;
8647
8648solaris*)
8649  version_type=linux
8650  need_lib_prefix=no
8651  need_version=no
8652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8653  soname_spec='${libname}${release}${shared_ext}$major'
8654  shlibpath_var=LD_LIBRARY_PATH
8655  shlibpath_overrides_runpath=yes
8656  hardcode_into_libs=yes
8657  # ldd complains unless libraries are executable
8658  postinstall_cmds='chmod +x $lib'
8659  ;;
8660
8661sunos4*)
8662  version_type=sunos
8663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8664  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8665  shlibpath_var=LD_LIBRARY_PATH
8666  shlibpath_overrides_runpath=yes
8667  if test "$with_gnu_ld" = yes; then
8668    need_lib_prefix=no
8669  fi
8670  need_version=yes
8671  ;;
8672
8673sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8674  version_type=linux
8675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8676  soname_spec='${libname}${release}${shared_ext}$major'
8677  shlibpath_var=LD_LIBRARY_PATH
8678  case $host_vendor in
8679    sni)
8680      shlibpath_overrides_runpath=no
8681      need_lib_prefix=no
8682      export_dynamic_flag_spec='${wl}-Blargedynsym'
8683      runpath_var=LD_RUN_PATH
8684      ;;
8685    siemens)
8686      need_lib_prefix=no
8687      ;;
8688    motorola)
8689      need_lib_prefix=no
8690      need_version=no
8691      shlibpath_overrides_runpath=no
8692      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8693      ;;
8694  esac
8695  ;;
8696
8697sysv4*MP*)
8698  if test -d /usr/nec ;then
8699    version_type=linux
8700    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8701    soname_spec='$libname${shared_ext}.$major'
8702    shlibpath_var=LD_LIBRARY_PATH
8703  fi
8704  ;;
8705
8706uts4*)
8707  version_type=linux
8708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8709  soname_spec='${libname}${release}${shared_ext}$major'
8710  shlibpath_var=LD_LIBRARY_PATH
8711  ;;
8712
8713*)
8714  dynamic_linker=no
8715  ;;
8716esac
8717echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8718echo "${ECHO_T}$dynamic_linker" >&6
8719test "$dynamic_linker" = no && can_build_shared=no
8720
8721echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8722echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8723hardcode_action=
8724if test -n "$hardcode_libdir_flag_spec" || \
8725   test -n "$runpath_var" || \
8726   test "X$hardcode_automatic" = "Xyes" ; then
8727
8728  # We can hardcode non-existant directories.
8729  if test "$hardcode_direct" != no &&
8730     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8731     # have to relink, otherwise we might link with an installed library
8732     # when we should be linking with a yet-to-be-installed one
8733     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8734     test "$hardcode_minus_L" != no; then
8735    # Linking always hardcodes the temporary library directory.
8736    hardcode_action=relink
8737  else
8738    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8739    hardcode_action=immediate
8740  fi
8741else
8742  # We cannot hardcode anything, or else we can only hardcode existing
8743  # directories.
8744  hardcode_action=unsupported
8745fi
8746echo "$as_me:$LINENO: result: $hardcode_action" >&5
8747echo "${ECHO_T}$hardcode_action" >&6
8748
8749if test "$hardcode_action" = relink; then
8750  # Fast installation is not supported
8751  enable_fast_install=no
8752elif test "$shlibpath_overrides_runpath" = yes ||
8753     test "$enable_shared" = no; then
8754  # Fast installation is not necessary
8755  enable_fast_install=needless
8756fi
8757
8758striplib=
8759old_striplib=
8760echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8761echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8762if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8763  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8764  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8765  echo "$as_me:$LINENO: result: yes" >&5
8766echo "${ECHO_T}yes" >&6
8767else
8768# FIXME - insert some real tests, host_os isn't really good enough
8769  case $host_os in
8770   darwin*)
8771       if test -n "$STRIP" ; then
8772         striplib="$STRIP -x"
8773         echo "$as_me:$LINENO: result: yes" >&5
8774echo "${ECHO_T}yes" >&6
8775       else
8776  echo "$as_me:$LINENO: result: no" >&5
8777echo "${ECHO_T}no" >&6
8778fi
8779       ;;
8780   *)
8781  echo "$as_me:$LINENO: result: no" >&5
8782echo "${ECHO_T}no" >&6
8783    ;;
8784  esac
8785fi
8786
8787if test "x$enable_dlopen" != xyes; then
8788  enable_dlopen=unknown
8789  enable_dlopen_self=unknown
8790  enable_dlopen_self_static=unknown
8791else
8792  lt_cv_dlopen=no
8793  lt_cv_dlopen_libs=
8794
8795  case $host_os in
8796  beos*)
8797    lt_cv_dlopen="load_add_on"
8798    lt_cv_dlopen_libs=
8799    lt_cv_dlopen_self=yes
8800    ;;
8801
8802  mingw* | pw32*)
8803    lt_cv_dlopen="LoadLibrary"
8804    lt_cv_dlopen_libs=
8805   ;;
8806
8807  cygwin*)
8808    lt_cv_dlopen="dlopen"
8809    lt_cv_dlopen_libs=
8810   ;;
8811
8812  darwin*)
8813  # if libdl is installed we need to link against it
8814    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8815echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8816if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8817  echo $ECHO_N "(cached) $ECHO_C" >&6
8818else
8819  ac_check_lib_save_LIBS=$LIBS
8820LIBS="-ldl  $LIBS"
8821cat >conftest.$ac_ext <<_ACEOF
8822/* confdefs.h.  */
8823_ACEOF
8824cat confdefs.h >>conftest.$ac_ext
8825cat >>conftest.$ac_ext <<_ACEOF
8826/* end confdefs.h.  */
8827
8828/* Override any gcc2 internal prototype to avoid an error.  */
8829#ifdef __cplusplus
8830extern "C"
8831#endif
8832/* We use char because int might match the return type of a gcc2
8833   builtin and then its argument prototype would still apply.  */
8834char dlopen ();
8835int
8836main ()
8837{
8838dlopen ();
8839  ;
8840  return 0;
8841}
8842_ACEOF
8843rm -f conftest.$ac_objext conftest$ac_exeext
8844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845  (eval $ac_link) 2>conftest.er1
8846  ac_status=$?
8847  grep -v '^ *+' conftest.er1 >conftest.err
8848  rm -f conftest.er1
8849  cat conftest.err >&5
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); } &&
8852	 { ac_try='test -z "$ac_c_werror_flag"
8853			 || test ! -s conftest.err'
8854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855  (eval $ac_try) 2>&5
8856  ac_status=$?
8857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858  (exit $ac_status); }; } &&
8859	 { ac_try='test -s conftest$ac_exeext'
8860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861  (eval $ac_try) 2>&5
8862  ac_status=$?
8863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864  (exit $ac_status); }; }; then
8865  ac_cv_lib_dl_dlopen=yes
8866else
8867  echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870ac_cv_lib_dl_dlopen=no
8871fi
8872rm -f conftest.err conftest.$ac_objext \
8873      conftest$ac_exeext conftest.$ac_ext
8874LIBS=$ac_check_lib_save_LIBS
8875fi
8876echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8877echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8878if test $ac_cv_lib_dl_dlopen = yes; then
8879  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8880else
8881
8882    lt_cv_dlopen="dyld"
8883    lt_cv_dlopen_libs=
8884    lt_cv_dlopen_self=yes
8885
8886fi
8887
8888   ;;
8889
8890  *)
8891    echo "$as_me:$LINENO: checking for shl_load" >&5
8892echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8893if test "${ac_cv_func_shl_load+set}" = set; then
8894  echo $ECHO_N "(cached) $ECHO_C" >&6
8895else
8896  cat >conftest.$ac_ext <<_ACEOF
8897/* confdefs.h.  */
8898_ACEOF
8899cat confdefs.h >>conftest.$ac_ext
8900cat >>conftest.$ac_ext <<_ACEOF
8901/* end confdefs.h.  */
8902/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8903   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8904#define shl_load innocuous_shl_load
8905
8906/* System header to define __stub macros and hopefully few prototypes,
8907    which can conflict with char shl_load (); below.
8908    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8909    <limits.h> exists even on freestanding compilers.  */
8910
8911#ifdef __STDC__
8912# include <limits.h>
8913#else
8914# include <assert.h>
8915#endif
8916
8917#undef shl_load
8918
8919/* Override any gcc2 internal prototype to avoid an error.  */
8920#ifdef __cplusplus
8921extern "C"
8922{
8923#endif
8924/* We use char because int might match the return type of a gcc2
8925   builtin and then its argument prototype would still apply.  */
8926char shl_load ();
8927/* The GNU C library defines this for functions which it implements
8928    to always fail with ENOSYS.  Some functions are actually named
8929    something starting with __ and the normal name is an alias.  */
8930#if defined (__stub_shl_load) || defined (__stub___shl_load)
8931choke me
8932#else
8933char (*f) () = shl_load;
8934#endif
8935#ifdef __cplusplus
8936}
8937#endif
8938
8939int
8940main ()
8941{
8942return f != shl_load;
8943  ;
8944  return 0;
8945}
8946_ACEOF
8947rm -f conftest.$ac_objext conftest$ac_exeext
8948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949  (eval $ac_link) 2>conftest.er1
8950  ac_status=$?
8951  grep -v '^ *+' conftest.er1 >conftest.err
8952  rm -f conftest.er1
8953  cat conftest.err >&5
8954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955  (exit $ac_status); } &&
8956	 { ac_try='test -z "$ac_c_werror_flag"
8957			 || test ! -s conftest.err'
8958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959  (eval $ac_try) 2>&5
8960  ac_status=$?
8961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962  (exit $ac_status); }; } &&
8963	 { ac_try='test -s conftest$ac_exeext'
8964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965  (eval $ac_try) 2>&5
8966  ac_status=$?
8967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968  (exit $ac_status); }; }; then
8969  ac_cv_func_shl_load=yes
8970else
8971  echo "$as_me: failed program was:" >&5
8972sed 's/^/| /' conftest.$ac_ext >&5
8973
8974ac_cv_func_shl_load=no
8975fi
8976rm -f conftest.err conftest.$ac_objext \
8977      conftest$ac_exeext conftest.$ac_ext
8978fi
8979echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8980echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8981if test $ac_cv_func_shl_load = yes; then
8982  lt_cv_dlopen="shl_load"
8983else
8984  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8985echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8986if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8987  echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989  ac_check_lib_save_LIBS=$LIBS
8990LIBS="-ldld  $LIBS"
8991cat >conftest.$ac_ext <<_ACEOF
8992/* confdefs.h.  */
8993_ACEOF
8994cat confdefs.h >>conftest.$ac_ext
8995cat >>conftest.$ac_ext <<_ACEOF
8996/* end confdefs.h.  */
8997
8998/* Override any gcc2 internal prototype to avoid an error.  */
8999#ifdef __cplusplus
9000extern "C"
9001#endif
9002/* We use char because int might match the return type of a gcc2
9003   builtin and then its argument prototype would still apply.  */
9004char shl_load ();
9005int
9006main ()
9007{
9008shl_load ();
9009  ;
9010  return 0;
9011}
9012_ACEOF
9013rm -f conftest.$ac_objext conftest$ac_exeext
9014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015  (eval $ac_link) 2>conftest.er1
9016  ac_status=$?
9017  grep -v '^ *+' conftest.er1 >conftest.err
9018  rm -f conftest.er1
9019  cat conftest.err >&5
9020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021  (exit $ac_status); } &&
9022	 { ac_try='test -z "$ac_c_werror_flag"
9023			 || test ! -s conftest.err'
9024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025  (eval $ac_try) 2>&5
9026  ac_status=$?
9027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); }; } &&
9029	 { ac_try='test -s conftest$ac_exeext'
9030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031  (eval $ac_try) 2>&5
9032  ac_status=$?
9033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034  (exit $ac_status); }; }; then
9035  ac_cv_lib_dld_shl_load=yes
9036else
9037  echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040ac_cv_lib_dld_shl_load=no
9041fi
9042rm -f conftest.err conftest.$ac_objext \
9043      conftest$ac_exeext conftest.$ac_ext
9044LIBS=$ac_check_lib_save_LIBS
9045fi
9046echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9047echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9048if test $ac_cv_lib_dld_shl_load = yes; then
9049  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9050else
9051  echo "$as_me:$LINENO: checking for dlopen" >&5
9052echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9053if test "${ac_cv_func_dlopen+set}" = set; then
9054  echo $ECHO_N "(cached) $ECHO_C" >&6
9055else
9056  cat >conftest.$ac_ext <<_ACEOF
9057/* confdefs.h.  */
9058_ACEOF
9059cat confdefs.h >>conftest.$ac_ext
9060cat >>conftest.$ac_ext <<_ACEOF
9061/* end confdefs.h.  */
9062/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9063   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9064#define dlopen innocuous_dlopen
9065
9066/* System header to define __stub macros and hopefully few prototypes,
9067    which can conflict with char dlopen (); below.
9068    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9069    <limits.h> exists even on freestanding compilers.  */
9070
9071#ifdef __STDC__
9072# include <limits.h>
9073#else
9074# include <assert.h>
9075#endif
9076
9077#undef dlopen
9078
9079/* Override any gcc2 internal prototype to avoid an error.  */
9080#ifdef __cplusplus
9081extern "C"
9082{
9083#endif
9084/* We use char because int might match the return type of a gcc2
9085   builtin and then its argument prototype would still apply.  */
9086char dlopen ();
9087/* The GNU C library defines this for functions which it implements
9088    to always fail with ENOSYS.  Some functions are actually named
9089    something starting with __ and the normal name is an alias.  */
9090#if defined (__stub_dlopen) || defined (__stub___dlopen)
9091choke me
9092#else
9093char (*f) () = dlopen;
9094#endif
9095#ifdef __cplusplus
9096}
9097#endif
9098
9099int
9100main ()
9101{
9102return f != dlopen;
9103  ;
9104  return 0;
9105}
9106_ACEOF
9107rm -f conftest.$ac_objext conftest$ac_exeext
9108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109  (eval $ac_link) 2>conftest.er1
9110  ac_status=$?
9111  grep -v '^ *+' conftest.er1 >conftest.err
9112  rm -f conftest.er1
9113  cat conftest.err >&5
9114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115  (exit $ac_status); } &&
9116	 { ac_try='test -z "$ac_c_werror_flag"
9117			 || test ! -s conftest.err'
9118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9119  (eval $ac_try) 2>&5
9120  ac_status=$?
9121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122  (exit $ac_status); }; } &&
9123	 { ac_try='test -s conftest$ac_exeext'
9124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9125  (eval $ac_try) 2>&5
9126  ac_status=$?
9127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128  (exit $ac_status); }; }; then
9129  ac_cv_func_dlopen=yes
9130else
9131  echo "$as_me: failed program was:" >&5
9132sed 's/^/| /' conftest.$ac_ext >&5
9133
9134ac_cv_func_dlopen=no
9135fi
9136rm -f conftest.err conftest.$ac_objext \
9137      conftest$ac_exeext conftest.$ac_ext
9138fi
9139echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9140echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9141if test $ac_cv_func_dlopen = yes; then
9142  lt_cv_dlopen="dlopen"
9143else
9144  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9145echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9146if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9147  echo $ECHO_N "(cached) $ECHO_C" >&6
9148else
9149  ac_check_lib_save_LIBS=$LIBS
9150LIBS="-ldl  $LIBS"
9151cat >conftest.$ac_ext <<_ACEOF
9152/* confdefs.h.  */
9153_ACEOF
9154cat confdefs.h >>conftest.$ac_ext
9155cat >>conftest.$ac_ext <<_ACEOF
9156/* end confdefs.h.  */
9157
9158/* Override any gcc2 internal prototype to avoid an error.  */
9159#ifdef __cplusplus
9160extern "C"
9161#endif
9162/* We use char because int might match the return type of a gcc2
9163   builtin and then its argument prototype would still apply.  */
9164char dlopen ();
9165int
9166main ()
9167{
9168dlopen ();
9169  ;
9170  return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext conftest$ac_exeext
9174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175  (eval $ac_link) 2>conftest.er1
9176  ac_status=$?
9177  grep -v '^ *+' conftest.er1 >conftest.err
9178  rm -f conftest.er1
9179  cat conftest.err >&5
9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181  (exit $ac_status); } &&
9182	 { ac_try='test -z "$ac_c_werror_flag"
9183			 || test ! -s conftest.err'
9184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185  (eval $ac_try) 2>&5
9186  ac_status=$?
9187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188  (exit $ac_status); }; } &&
9189	 { ac_try='test -s conftest$ac_exeext'
9190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191  (eval $ac_try) 2>&5
9192  ac_status=$?
9193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194  (exit $ac_status); }; }; then
9195  ac_cv_lib_dl_dlopen=yes
9196else
9197  echo "$as_me: failed program was:" >&5
9198sed 's/^/| /' conftest.$ac_ext >&5
9199
9200ac_cv_lib_dl_dlopen=no
9201fi
9202rm -f conftest.err conftest.$ac_objext \
9203      conftest$ac_exeext conftest.$ac_ext
9204LIBS=$ac_check_lib_save_LIBS
9205fi
9206echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9207echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9208if test $ac_cv_lib_dl_dlopen = yes; then
9209  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9210else
9211  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9212echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9213if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9214  echo $ECHO_N "(cached) $ECHO_C" >&6
9215else
9216  ac_check_lib_save_LIBS=$LIBS
9217LIBS="-lsvld  $LIBS"
9218cat >conftest.$ac_ext <<_ACEOF
9219/* confdefs.h.  */
9220_ACEOF
9221cat confdefs.h >>conftest.$ac_ext
9222cat >>conftest.$ac_ext <<_ACEOF
9223/* end confdefs.h.  */
9224
9225/* Override any gcc2 internal prototype to avoid an error.  */
9226#ifdef __cplusplus
9227extern "C"
9228#endif
9229/* We use char because int might match the return type of a gcc2
9230   builtin and then its argument prototype would still apply.  */
9231char dlopen ();
9232int
9233main ()
9234{
9235dlopen ();
9236  ;
9237  return 0;
9238}
9239_ACEOF
9240rm -f conftest.$ac_objext conftest$ac_exeext
9241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9242  (eval $ac_link) 2>conftest.er1
9243  ac_status=$?
9244  grep -v '^ *+' conftest.er1 >conftest.err
9245  rm -f conftest.er1
9246  cat conftest.err >&5
9247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248  (exit $ac_status); } &&
9249	 { ac_try='test -z "$ac_c_werror_flag"
9250			 || test ! -s conftest.err'
9251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252  (eval $ac_try) 2>&5
9253  ac_status=$?
9254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255  (exit $ac_status); }; } &&
9256	 { ac_try='test -s conftest$ac_exeext'
9257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258  (eval $ac_try) 2>&5
9259  ac_status=$?
9260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261  (exit $ac_status); }; }; then
9262  ac_cv_lib_svld_dlopen=yes
9263else
9264  echo "$as_me: failed program was:" >&5
9265sed 's/^/| /' conftest.$ac_ext >&5
9266
9267ac_cv_lib_svld_dlopen=no
9268fi
9269rm -f conftest.err conftest.$ac_objext \
9270      conftest$ac_exeext conftest.$ac_ext
9271LIBS=$ac_check_lib_save_LIBS
9272fi
9273echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9274echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9275if test $ac_cv_lib_svld_dlopen = yes; then
9276  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9277else
9278  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9279echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9280if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9281  echo $ECHO_N "(cached) $ECHO_C" >&6
9282else
9283  ac_check_lib_save_LIBS=$LIBS
9284LIBS="-ldld  $LIBS"
9285cat >conftest.$ac_ext <<_ACEOF
9286/* confdefs.h.  */
9287_ACEOF
9288cat confdefs.h >>conftest.$ac_ext
9289cat >>conftest.$ac_ext <<_ACEOF
9290/* end confdefs.h.  */
9291
9292/* Override any gcc2 internal prototype to avoid an error.  */
9293#ifdef __cplusplus
9294extern "C"
9295#endif
9296/* We use char because int might match the return type of a gcc2
9297   builtin and then its argument prototype would still apply.  */
9298char dld_link ();
9299int
9300main ()
9301{
9302dld_link ();
9303  ;
9304  return 0;
9305}
9306_ACEOF
9307rm -f conftest.$ac_objext conftest$ac_exeext
9308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309  (eval $ac_link) 2>conftest.er1
9310  ac_status=$?
9311  grep -v '^ *+' conftest.er1 >conftest.err
9312  rm -f conftest.er1
9313  cat conftest.err >&5
9314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315  (exit $ac_status); } &&
9316	 { ac_try='test -z "$ac_c_werror_flag"
9317			 || test ! -s conftest.err'
9318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319  (eval $ac_try) 2>&5
9320  ac_status=$?
9321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322  (exit $ac_status); }; } &&
9323	 { ac_try='test -s conftest$ac_exeext'
9324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325  (eval $ac_try) 2>&5
9326  ac_status=$?
9327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328  (exit $ac_status); }; }; then
9329  ac_cv_lib_dld_dld_link=yes
9330else
9331  echo "$as_me: failed program was:" >&5
9332sed 's/^/| /' conftest.$ac_ext >&5
9333
9334ac_cv_lib_dld_dld_link=no
9335fi
9336rm -f conftest.err conftest.$ac_objext \
9337      conftest$ac_exeext conftest.$ac_ext
9338LIBS=$ac_check_lib_save_LIBS
9339fi
9340echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9341echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9342if test $ac_cv_lib_dld_dld_link = yes; then
9343  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9344fi
9345
9346
9347fi
9348
9349
9350fi
9351
9352
9353fi
9354
9355
9356fi
9357
9358
9359fi
9360
9361    ;;
9362  esac
9363
9364  if test "x$lt_cv_dlopen" != xno; then
9365    enable_dlopen=yes
9366  else
9367    enable_dlopen=no
9368  fi
9369
9370  case $lt_cv_dlopen in
9371  dlopen)
9372    save_CPPFLAGS="$CPPFLAGS"
9373    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9374
9375    save_LDFLAGS="$LDFLAGS"
9376    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9377
9378    save_LIBS="$LIBS"
9379    LIBS="$lt_cv_dlopen_libs $LIBS"
9380
9381    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9382echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9383if test "${lt_cv_dlopen_self+set}" = set; then
9384  echo $ECHO_N "(cached) $ECHO_C" >&6
9385else
9386  	  if test "$cross_compiling" = yes; then :
9387  lt_cv_dlopen_self=cross
9388else
9389  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9390  lt_status=$lt_dlunknown
9391  cat > conftest.$ac_ext <<EOF
9392#line 9392 "configure"
9393#include "confdefs.h"
9394
9395#if HAVE_DLFCN_H
9396#include <dlfcn.h>
9397#endif
9398
9399#include <stdio.h>
9400
9401#ifdef RTLD_GLOBAL
9402#  define LT_DLGLOBAL		RTLD_GLOBAL
9403#else
9404#  ifdef DL_GLOBAL
9405#    define LT_DLGLOBAL		DL_GLOBAL
9406#  else
9407#    define LT_DLGLOBAL		0
9408#  endif
9409#endif
9410
9411/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9412   find out it does not work in some platform. */
9413#ifndef LT_DLLAZY_OR_NOW
9414#  ifdef RTLD_LAZY
9415#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9416#  else
9417#    ifdef DL_LAZY
9418#      define LT_DLLAZY_OR_NOW		DL_LAZY
9419#    else
9420#      ifdef RTLD_NOW
9421#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9422#      else
9423#        ifdef DL_NOW
9424#          define LT_DLLAZY_OR_NOW	DL_NOW
9425#        else
9426#          define LT_DLLAZY_OR_NOW	0
9427#        endif
9428#      endif
9429#    endif
9430#  endif
9431#endif
9432
9433#ifdef __cplusplus
9434extern "C" void exit (int);
9435#endif
9436
9437void fnord() { int i=42;}
9438int main ()
9439{
9440  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9441  int status = $lt_dlunknown;
9442
9443  if (self)
9444    {
9445      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9446      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9447      /* dlclose (self); */
9448    }
9449
9450    exit (status);
9451}
9452EOF
9453  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454  (eval $ac_link) 2>&5
9455  ac_status=$?
9456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9458    (./conftest; exit; ) 2>/dev/null
9459    lt_status=$?
9460    case x$lt_status in
9461      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9462      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9463      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9464    esac
9465  else :
9466    # compilation failed
9467    lt_cv_dlopen_self=no
9468  fi
9469fi
9470rm -fr conftest*
9471
9472
9473fi
9474echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9475echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9476
9477    if test "x$lt_cv_dlopen_self" = xyes; then
9478      LDFLAGS="$LDFLAGS $link_static_flag"
9479      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9480echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9481if test "${lt_cv_dlopen_self_static+set}" = set; then
9482  echo $ECHO_N "(cached) $ECHO_C" >&6
9483else
9484  	  if test "$cross_compiling" = yes; then :
9485  lt_cv_dlopen_self_static=cross
9486else
9487  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9488  lt_status=$lt_dlunknown
9489  cat > conftest.$ac_ext <<EOF
9490#line 9490 "configure"
9491#include "confdefs.h"
9492
9493#if HAVE_DLFCN_H
9494#include <dlfcn.h>
9495#endif
9496
9497#include <stdio.h>
9498
9499#ifdef RTLD_GLOBAL
9500#  define LT_DLGLOBAL		RTLD_GLOBAL
9501#else
9502#  ifdef DL_GLOBAL
9503#    define LT_DLGLOBAL		DL_GLOBAL
9504#  else
9505#    define LT_DLGLOBAL		0
9506#  endif
9507#endif
9508
9509/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9510   find out it does not work in some platform. */
9511#ifndef LT_DLLAZY_OR_NOW
9512#  ifdef RTLD_LAZY
9513#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9514#  else
9515#    ifdef DL_LAZY
9516#      define LT_DLLAZY_OR_NOW		DL_LAZY
9517#    else
9518#      ifdef RTLD_NOW
9519#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9520#      else
9521#        ifdef DL_NOW
9522#          define LT_DLLAZY_OR_NOW	DL_NOW
9523#        else
9524#          define LT_DLLAZY_OR_NOW	0
9525#        endif
9526#      endif
9527#    endif
9528#  endif
9529#endif
9530
9531#ifdef __cplusplus
9532extern "C" void exit (int);
9533#endif
9534
9535void fnord() { int i=42;}
9536int main ()
9537{
9538  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9539  int status = $lt_dlunknown;
9540
9541  if (self)
9542    {
9543      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9544      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9545      /* dlclose (self); */
9546    }
9547
9548    exit (status);
9549}
9550EOF
9551  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9552  (eval $ac_link) 2>&5
9553  ac_status=$?
9554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9556    (./conftest; exit; ) 2>/dev/null
9557    lt_status=$?
9558    case x$lt_status in
9559      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9560      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9561      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9562    esac
9563  else :
9564    # compilation failed
9565    lt_cv_dlopen_self_static=no
9566  fi
9567fi
9568rm -fr conftest*
9569
9570
9571fi
9572echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9573echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9574    fi
9575
9576    CPPFLAGS="$save_CPPFLAGS"
9577    LDFLAGS="$save_LDFLAGS"
9578    LIBS="$save_LIBS"
9579    ;;
9580  esac
9581
9582  case $lt_cv_dlopen_self in
9583  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9584  *) enable_dlopen_self=unknown ;;
9585  esac
9586
9587  case $lt_cv_dlopen_self_static in
9588  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9589  *) enable_dlopen_self_static=unknown ;;
9590  esac
9591fi
9592
9593
9594# Report which librarie types wil actually be built
9595echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9596echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9597echo "$as_me:$LINENO: result: $can_build_shared" >&5
9598echo "${ECHO_T}$can_build_shared" >&6
9599
9600echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9601echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9602test "$can_build_shared" = "no" && enable_shared=no
9603
9604# On AIX, shared libraries and static libraries use the same namespace, and
9605# are all built from PIC.
9606case "$host_os" in
9607aix3*)
9608  test "$enable_shared" = yes && enable_static=no
9609  if test -n "$RANLIB"; then
9610    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9611    postinstall_cmds='$RANLIB $lib'
9612  fi
9613  ;;
9614
9615aix4* | aix5*)
9616  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9617    test "$enable_shared" = yes && enable_static=no
9618  fi
9619    ;;
9620esac
9621echo "$as_me:$LINENO: result: $enable_shared" >&5
9622echo "${ECHO_T}$enable_shared" >&6
9623
9624echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9625echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9626# Make sure either enable_shared or enable_static is yes.
9627test "$enable_shared" = yes || enable_static=yes
9628echo "$as_me:$LINENO: result: $enable_static" >&5
9629echo "${ECHO_T}$enable_static" >&6
9630
9631# The else clause should only fire when bootstrapping the
9632# libtool distribution, otherwise you forgot to ship ltmain.sh
9633# with your package, and you will get complaints that there are
9634# no rules to generate ltmain.sh.
9635if test -f "$ltmain"; then
9636  # See if we are running on zsh, and set the options which allow our commands through
9637  # without removal of \ escapes.
9638  if test -n "${ZSH_VERSION+set}" ; then
9639    setopt NO_GLOB_SUBST
9640  fi
9641  # Now quote all the things that may contain metacharacters while being
9642  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9643  # variables and quote the copies for generation of the libtool script.
9644  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
9645    SED SHELL STRIP \
9646    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9647    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9648    deplibs_check_method reload_flag reload_cmds need_locks \
9649    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9650    lt_cv_sys_global_symbol_to_c_name_address \
9651    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9652    old_postinstall_cmds old_postuninstall_cmds \
9653    compiler \
9654    CC \
9655    LD \
9656    lt_prog_compiler_wl \
9657    lt_prog_compiler_pic \
9658    lt_prog_compiler_static \
9659    lt_prog_compiler_no_builtin_flag \
9660    export_dynamic_flag_spec \
9661    thread_safe_flag_spec \
9662    whole_archive_flag_spec \
9663    enable_shared_with_static_runtimes \
9664    old_archive_cmds \
9665    old_archive_from_new_cmds \
9666    predep_objects \
9667    postdep_objects \
9668    predeps \
9669    postdeps \
9670    compiler_lib_search_path \
9671    archive_cmds \
9672    archive_expsym_cmds \
9673    postinstall_cmds \
9674    postuninstall_cmds \
9675    old_archive_from_expsyms_cmds \
9676    allow_undefined_flag \
9677    no_undefined_flag \
9678    export_symbols_cmds \
9679    hardcode_libdir_flag_spec \
9680    hardcode_libdir_flag_spec_ld \
9681    hardcode_libdir_separator \
9682    hardcode_automatic \
9683    module_cmds \
9684    module_expsym_cmds \
9685    lt_cv_prog_compiler_c_o \
9686    exclude_expsyms \
9687    include_expsyms; do
9688
9689    case $var in
9690    old_archive_cmds | \
9691    old_archive_from_new_cmds | \
9692    archive_cmds | \
9693    archive_expsym_cmds | \
9694    module_cmds | \
9695    module_expsym_cmds | \
9696    old_archive_from_expsyms_cmds | \
9697    export_symbols_cmds | \
9698    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9699    postinstall_cmds | postuninstall_cmds | \
9700    old_postinstall_cmds | old_postuninstall_cmds | \
9701    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9702      # Double-quote double-evaled strings.
9703      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9704      ;;
9705    *)
9706      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9707      ;;
9708    esac
9709  done
9710
9711  case $lt_echo in
9712  *'\$0 --fallback-echo"')
9713    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9714    ;;
9715  esac
9716
9717cfgfile="${ofile}T"
9718  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9719  $rm -f "$cfgfile"
9720  { echo "$as_me:$LINENO: creating $ofile" >&5
9721echo "$as_me: creating $ofile" >&6;}
9722
9723  cat <<__EOF__ >> "$cfgfile"
9724#! $SHELL
9725
9726# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9727# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9728# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9729#
9730# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9731# Free Software Foundation, Inc.
9732#
9733# This file is part of GNU Libtool:
9734# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9735#
9736# This program is free software; you can redistribute it and/or modify
9737# it under the terms of the GNU General Public License as published by
9738# the Free Software Foundation; either version 2 of the License, or
9739# (at your option) any later version.
9740#
9741# This program is distributed in the hope that it will be useful, but
9742# WITHOUT ANY WARRANTY; without even the implied warranty of
9743# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9744# General Public License for more details.
9745#
9746# You should have received a copy of the GNU General Public License
9747# along with this program; if not, write to the Free Software
9748# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9749#
9750# As a special exception to the GNU General Public License, if you
9751# distribute this file as part of a program that contains a
9752# configuration script generated by Autoconf, you may include it under
9753# the same distribution terms that you use for the rest of that program.
9754
9755# A sed program that does not truncate output.
9756SED=$lt_SED
9757
9758# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9759Xsed="$SED -e s/^X//"
9760
9761# The HP-UX ksh and POSIX shell print the target directory to stdout
9762# if CDPATH is set.
9763(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9764
9765# The names of the tagged configurations supported by this script.
9766available_tags=
9767
9768# ### BEGIN LIBTOOL CONFIG
9769
9770# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9771
9772# Shell to use when invoking shell scripts.
9773SHELL=$lt_SHELL
9774
9775# Whether or not to build shared libraries.
9776build_libtool_libs=$enable_shared
9777
9778# Whether or not to build static libraries.
9779build_old_libs=$enable_static
9780
9781# Whether or not to add -lc for building shared libraries.
9782build_libtool_need_lc=$archive_cmds_need_lc
9783
9784# Whether or not to disallow shared libs when runtime libs are static
9785allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9786
9787# Whether or not to optimize for fast installation.
9788fast_install=$enable_fast_install
9789
9790# The host system.
9791host_alias=$host_alias
9792host=$host
9793host_os=$host_os
9794
9795# The build system.
9796build_alias=$build_alias
9797build=$build
9798build_os=$build_os
9799
9800# An echo program that does not interpret backslashes.
9801echo=$lt_echo
9802
9803# The archiver.
9804AR=$lt_AR
9805AR_FLAGS=$lt_AR_FLAGS
9806
9807# A C compiler.
9808LTCC=$lt_LTCC
9809
9810# A language-specific compiler.
9811CC=$lt_compiler
9812
9813# Is the compiler the GNU C compiler?
9814with_gcc=$GCC
9815
9816# An ERE matcher.
9817EGREP=$lt_EGREP
9818
9819# The linker used to build libraries.
9820LD=$lt_LD
9821
9822# Whether we need hard or soft links.
9823LN_S=$lt_LN_S
9824
9825# A BSD-compatible nm program.
9826NM=$lt_NM
9827
9828# A symbol stripping program
9829STRIP=$lt_STRIP
9830
9831# Used to examine libraries when file_magic_cmd begins "file"
9832MAGIC_CMD=$MAGIC_CMD
9833
9834# Used on cygwin: DLL creation program.
9835DLLTOOL="$DLLTOOL"
9836
9837# Used on cygwin: object dumper.
9838OBJDUMP="$OBJDUMP"
9839
9840# Used on cygwin: assembler.
9841AS=$lt_AS
9842
9843# The name of the directory that contains temporary libtool files.
9844objdir=$objdir
9845
9846# How to create reloadable object files.
9847reload_flag=$lt_reload_flag
9848reload_cmds=$lt_reload_cmds
9849
9850# How to pass a linker flag through the compiler.
9851wl=$lt_lt_prog_compiler_wl
9852
9853# Object file suffix (normally "o").
9854objext="$ac_objext"
9855
9856# Old archive suffix (normally "a").
9857libext="$libext"
9858
9859# Shared library suffix (normally ".so").
9860shrext_cmds='$shrext_cmds'
9861
9862# Executable file suffix (normally "").
9863exeext="$exeext"
9864
9865# Additional compiler flags for building library objects.
9866pic_flag=$lt_lt_prog_compiler_pic
9867pic_mode=$pic_mode
9868
9869# What is the maximum length of a command?
9870max_cmd_len=$lt_cv_sys_max_cmd_len
9871
9872# Does compiler simultaneously support -c and -o options?
9873compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9874
9875# Must we lock files when doing compilation ?
9876need_locks=$lt_need_locks
9877
9878# Do we need the lib prefix for modules?
9879need_lib_prefix=$need_lib_prefix
9880
9881# Do we need a version for libraries?
9882need_version=$need_version
9883
9884# Whether dlopen is supported.
9885dlopen_support=$enable_dlopen
9886
9887# Whether dlopen of programs is supported.
9888dlopen_self=$enable_dlopen_self
9889
9890# Whether dlopen of statically linked programs is supported.
9891dlopen_self_static=$enable_dlopen_self_static
9892
9893# Compiler flag to prevent dynamic linking.
9894link_static_flag=$lt_lt_prog_compiler_static
9895
9896# Compiler flag to turn off builtin functions.
9897no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9898
9899# Compiler flag to allow reflexive dlopens.
9900export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9901
9902# Compiler flag to generate shared objects directly from archives.
9903whole_archive_flag_spec=$lt_whole_archive_flag_spec
9904
9905# Compiler flag to generate thread-safe objects.
9906thread_safe_flag_spec=$lt_thread_safe_flag_spec
9907
9908# Library versioning type.
9909version_type=$version_type
9910
9911# Format of library name prefix.
9912libname_spec=$lt_libname_spec
9913
9914# List of archive names.  First name is the real one, the rest are links.
9915# The last name is the one that the linker finds with -lNAME.
9916library_names_spec=$lt_library_names_spec
9917
9918# The coded name of the library, if different from the real name.
9919soname_spec=$lt_soname_spec
9920
9921# Commands used to build and install an old-style archive.
9922RANLIB=$lt_RANLIB
9923old_archive_cmds=$lt_old_archive_cmds
9924old_postinstall_cmds=$lt_old_postinstall_cmds
9925old_postuninstall_cmds=$lt_old_postuninstall_cmds
9926
9927# Create an old-style archive from a shared archive.
9928old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9929
9930# Create a temporary old-style archive to link instead of a shared archive.
9931old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9932
9933# Commands used to build and install a shared archive.
9934archive_cmds=$lt_archive_cmds
9935archive_expsym_cmds=$lt_archive_expsym_cmds
9936postinstall_cmds=$lt_postinstall_cmds
9937postuninstall_cmds=$lt_postuninstall_cmds
9938
9939# Commands used to build a loadable module (assumed same as above if empty)
9940module_cmds=$lt_module_cmds
9941module_expsym_cmds=$lt_module_expsym_cmds
9942
9943# Commands to strip libraries.
9944old_striplib=$lt_old_striplib
9945striplib=$lt_striplib
9946
9947# Dependencies to place before the objects being linked to create a
9948# shared library.
9949predep_objects=$lt_predep_objects
9950
9951# Dependencies to place after the objects being linked to create a
9952# shared library.
9953postdep_objects=$lt_postdep_objects
9954
9955# Dependencies to place before the objects being linked to create a
9956# shared library.
9957predeps=$lt_predeps
9958
9959# Dependencies to place after the objects being linked to create a
9960# shared library.
9961postdeps=$lt_postdeps
9962
9963# The library search path used internally by the compiler when linking
9964# a shared library.
9965compiler_lib_search_path=$lt_compiler_lib_search_path
9966
9967# Method to check whether dependent libraries are shared objects.
9968deplibs_check_method=$lt_deplibs_check_method
9969
9970# Command to use when deplibs_check_method == file_magic.
9971file_magic_cmd=$lt_file_magic_cmd
9972
9973# Flag that allows shared libraries with undefined symbols to be built.
9974allow_undefined_flag=$lt_allow_undefined_flag
9975
9976# Flag that forces no undefined symbols.
9977no_undefined_flag=$lt_no_undefined_flag
9978
9979# Commands used to finish a libtool library installation in a directory.
9980finish_cmds=$lt_finish_cmds
9981
9982# Same as above, but a single script fragment to be evaled but not shown.
9983finish_eval=$lt_finish_eval
9984
9985# Take the output of nm and produce a listing of raw symbols and C names.
9986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9987
9988# Transform the output of nm in a proper C declaration
9989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9990
9991# Transform the output of nm in a C name address pair
9992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9993
9994# This is the shared library runtime path variable.
9995runpath_var=$runpath_var
9996
9997# This is the shared library path variable.
9998shlibpath_var=$shlibpath_var
9999
10000# Is shlibpath searched before the hard-coded library search path?
10001shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10002
10003# How to hardcode a shared library path into an executable.
10004hardcode_action=$hardcode_action
10005
10006# Whether we should hardcode library paths into libraries.
10007hardcode_into_libs=$hardcode_into_libs
10008
10009# Flag to hardcode \$libdir into a binary during linking.
10010# This must work even if \$libdir does not exist.
10011hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10012
10013# If ld is used when linking, flag to hardcode \$libdir into
10014# a binary during linking. This must work even if \$libdir does
10015# not exist.
10016hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10017
10018# Whether we need a single -rpath flag with a separated argument.
10019hardcode_libdir_separator=$lt_hardcode_libdir_separator
10020
10021# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10022# resulting binary.
10023hardcode_direct=$hardcode_direct
10024
10025# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10026# resulting binary.
10027hardcode_minus_L=$hardcode_minus_L
10028
10029# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10030# the resulting binary.
10031hardcode_shlibpath_var=$hardcode_shlibpath_var
10032
10033# Set to yes if building a shared library automatically hardcodes DIR into the library
10034# and all subsequent libraries and executables linked against it.
10035hardcode_automatic=$hardcode_automatic
10036
10037# Variables whose values should be saved in libtool wrapper scripts and
10038# restored at relink time.
10039variables_saved_for_relink="$variables_saved_for_relink"
10040
10041# Whether libtool must link a program against all its dependency libraries.
10042link_all_deplibs=$link_all_deplibs
10043
10044# Compile-time system search path for libraries
10045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10046
10047# Run-time system search path for libraries
10048sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10049
10050# Fix the shell variable \$srcfile for the compiler.
10051fix_srcfile_path="$fix_srcfile_path"
10052
10053# Set to yes if exported symbols are required.
10054always_export_symbols=$always_export_symbols
10055
10056# The commands to list exported symbols.
10057export_symbols_cmds=$lt_export_symbols_cmds
10058
10059# The commands to extract the exported symbol list from a shared archive.
10060extract_expsyms_cmds=$lt_extract_expsyms_cmds
10061
10062# Symbols that should not be listed in the preloaded symbols.
10063exclude_expsyms=$lt_exclude_expsyms
10064
10065# Symbols that must always be exported.
10066include_expsyms=$lt_include_expsyms
10067
10068# ### END LIBTOOL CONFIG
10069
10070__EOF__
10071
10072
10073  case $host_os in
10074  aix3*)
10075    cat <<\EOF >> "$cfgfile"
10076
10077# AIX sometimes has problems with the GCC collect2 program.  For some
10078# reason, if we set the COLLECT_NAMES environment variable, the problems
10079# vanish in a puff of smoke.
10080if test "X${COLLECT_NAMES+set}" != Xset; then
10081  COLLECT_NAMES=
10082  export COLLECT_NAMES
10083fi
10084EOF
10085    ;;
10086  esac
10087
10088  # We use sed instead of cat because bash on DJGPP gets confused if
10089  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10090  # text mode, it properly converts lines to CR/LF.  This bash problem
10091  # is reportedly fixed, but why not run on old versions too?
10092  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10093
10094  mv -f "$cfgfile" "$ofile" || \
10095    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10096  chmod +x "$ofile"
10097
10098else
10099  # If there is no Makefile yet, we rely on a make rule to execute
10100  # `config.status --recheck' to rerun these tests and create the
10101  # libtool script then.
10102  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10103  if test -f "$ltmain_in"; then
10104    test -f Makefile && make "$ltmain"
10105  fi
10106fi
10107
10108
10109ac_ext=c
10110ac_cpp='$CPP $CPPFLAGS'
10111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10113ac_compiler_gnu=$ac_cv_c_compiler_gnu
10114
10115CC="$lt_save_CC"
10116
10117
10118# Check whether --with-tags or --without-tags was given.
10119if test "${with_tags+set}" = set; then
10120  withval="$with_tags"
10121  tagnames="$withval"
10122fi;
10123
10124if test -f "$ltmain" && test -n "$tagnames"; then
10125  if test ! -f "${ofile}"; then
10126    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10127echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10128  fi
10129
10130  if test -z "$LTCC"; then
10131    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10132    if test -z "$LTCC"; then
10133      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10134echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10135    else
10136      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10137echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10138    fi
10139  fi
10140
10141  # Extract list of available tagged configurations in $ofile.
10142  # Note that this assumes the entire list is on one line.
10143  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10144
10145  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10146  for tagname in $tagnames; do
10147    IFS="$lt_save_ifs"
10148    # Check whether tagname contains only valid characters
10149    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10150    "") ;;
10151    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10152echo "$as_me: error: invalid tag name: $tagname" >&2;}
10153   { (exit 1); exit 1; }; }
10154	;;
10155    esac
10156
10157    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10158    then
10159      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10160echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10161   { (exit 1); exit 1; }; }
10162    fi
10163
10164    # Update the list of available tags.
10165    if test -n "$tagname"; then
10166      echo appending configuration tag \"$tagname\" to $ofile
10167
10168      case $tagname in
10169      CXX)
10170	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10171	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10172	    (test "X$CXX" != "Xg++"))) ; then
10173	  ac_ext=cc
10174ac_cpp='$CXXCPP $CPPFLAGS'
10175ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10176ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10177ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10178
10179
10180
10181
10182archive_cmds_need_lc_CXX=no
10183allow_undefined_flag_CXX=
10184always_export_symbols_CXX=no
10185archive_expsym_cmds_CXX=
10186export_dynamic_flag_spec_CXX=
10187hardcode_direct_CXX=no
10188hardcode_libdir_flag_spec_CXX=
10189hardcode_libdir_flag_spec_ld_CXX=
10190hardcode_libdir_separator_CXX=
10191hardcode_minus_L_CXX=no
10192hardcode_automatic_CXX=no
10193module_cmds_CXX=
10194module_expsym_cmds_CXX=
10195link_all_deplibs_CXX=unknown
10196old_archive_cmds_CXX=$old_archive_cmds
10197no_undefined_flag_CXX=
10198whole_archive_flag_spec_CXX=
10199enable_shared_with_static_runtimes_CXX=no
10200
10201# Dependencies to place before and after the object being linked:
10202predep_objects_CXX=
10203postdep_objects_CXX=
10204predeps_CXX=
10205postdeps_CXX=
10206compiler_lib_search_path_CXX=
10207
10208# Source file extension for C++ test sources.
10209ac_ext=cc
10210
10211# Object file extension for compiled C++ test sources.
10212objext=o
10213objext_CXX=$objext
10214
10215# Code to be used in simple compile tests
10216lt_simple_compile_test_code="int some_variable = 0;\n"
10217
10218# Code to be used in simple link tests
10219lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10220
10221# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10222
10223# If no C compiler was specified, use CC.
10224LTCC=${LTCC-"$CC"}
10225
10226# Allow CC to be a program name with arguments.
10227compiler=$CC
10228
10229
10230# Allow CC to be a program name with arguments.
10231lt_save_CC=$CC
10232lt_save_LD=$LD
10233lt_save_GCC=$GCC
10234GCC=$GXX
10235lt_save_with_gnu_ld=$with_gnu_ld
10236lt_save_path_LD=$lt_cv_path_LD
10237if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10238  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10239else
10240  unset lt_cv_prog_gnu_ld
10241fi
10242if test -n "${lt_cv_path_LDCXX+set}"; then
10243  lt_cv_path_LD=$lt_cv_path_LDCXX
10244else
10245  unset lt_cv_path_LD
10246fi
10247test -z "${LDCXX+set}" || LD=$LDCXX
10248CC=${CXX-"c++"}
10249compiler=$CC
10250compiler_CXX=$CC
10251cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10252
10253# We don't want -fno-exception wen compiling C++ code, so set the
10254# no_builtin_flag separately
10255if test "$GXX" = yes; then
10256  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10257else
10258  lt_prog_compiler_no_builtin_flag_CXX=
10259fi
10260
10261if test "$GXX" = yes; then
10262  # Set up default GNU C++ configuration
10263
10264
10265# Check whether --with-gnu-ld or --without-gnu-ld was given.
10266if test "${with_gnu_ld+set}" = set; then
10267  withval="$with_gnu_ld"
10268  test "$withval" = no || with_gnu_ld=yes
10269else
10270  with_gnu_ld=no
10271fi;
10272ac_prog=ld
10273if test "$GCC" = yes; then
10274  # Check if gcc -print-prog-name=ld gives a path.
10275  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10276echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10277  case $host in
10278  *-*-mingw*)
10279    # gcc leaves a trailing carriage return which upsets mingw
10280    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10281  *)
10282    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10283  esac
10284  case $ac_prog in
10285    # Accept absolute paths.
10286    [\\/]* | ?:[\\/]*)
10287      re_direlt='/[^/][^/]*/\.\./'
10288      # Canonicalize the pathname of ld
10289      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10290      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10291	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10292      done
10293      test -z "$LD" && LD="$ac_prog"
10294      ;;
10295  "")
10296    # If it fails, then pretend we aren't using GCC.
10297    ac_prog=ld
10298    ;;
10299  *)
10300    # If it is relative, then search for the first ld in PATH.
10301    with_gnu_ld=unknown
10302    ;;
10303  esac
10304elif test "$with_gnu_ld" = yes; then
10305  echo "$as_me:$LINENO: checking for GNU ld" >&5
10306echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10307else
10308  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10309echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10310fi
10311if test "${lt_cv_path_LD+set}" = set; then
10312  echo $ECHO_N "(cached) $ECHO_C" >&6
10313else
10314  if test -z "$LD"; then
10315  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10316  for ac_dir in $PATH; do
10317    IFS="$lt_save_ifs"
10318    test -z "$ac_dir" && ac_dir=.
10319    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10320      lt_cv_path_LD="$ac_dir/$ac_prog"
10321      # Check to see if the program is GNU ld.  I'd rather use --version,
10322      # but apparently some GNU ld's only accept -v.
10323      # Break only if it was the GNU/non-GNU ld that we prefer.
10324      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10325      *GNU* | *'with BFD'*)
10326	test "$with_gnu_ld" != no && break
10327	;;
10328      *)
10329	test "$with_gnu_ld" != yes && break
10330	;;
10331      esac
10332    fi
10333  done
10334  IFS="$lt_save_ifs"
10335else
10336  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10337fi
10338fi
10339
10340LD="$lt_cv_path_LD"
10341if test -n "$LD"; then
10342  echo "$as_me:$LINENO: result: $LD" >&5
10343echo "${ECHO_T}$LD" >&6
10344else
10345  echo "$as_me:$LINENO: result: no" >&5
10346echo "${ECHO_T}no" >&6
10347fi
10348test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10349echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10350   { (exit 1); exit 1; }; }
10351echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10352echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10353if test "${lt_cv_prog_gnu_ld+set}" = set; then
10354  echo $ECHO_N "(cached) $ECHO_C" >&6
10355else
10356  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10357case `$LD -v 2>&1 </dev/null` in
10358*GNU* | *'with BFD'*)
10359  lt_cv_prog_gnu_ld=yes
10360  ;;
10361*)
10362  lt_cv_prog_gnu_ld=no
10363  ;;
10364esac
10365fi
10366echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10367echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10368with_gnu_ld=$lt_cv_prog_gnu_ld
10369
10370
10371
10372  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10373  # archiving commands below assume that GNU ld is being used.
10374  if test "$with_gnu_ld" = yes; then
10375    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10376    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'
10377
10378    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10379    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10380
10381    # If archive_cmds runs LD, not CC, wlarc should be empty
10382    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10383    #     investigate it a little bit more. (MM)
10384    wlarc='${wl}'
10385
10386    # ancient GNU ld didn't support --whole-archive et. al.
10387    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10388	grep 'no-whole-archive' > /dev/null; then
10389      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10390    else
10391      whole_archive_flag_spec_CXX=
10392    fi
10393  else
10394    with_gnu_ld=no
10395    wlarc=
10396
10397    # A generic and very simple default shared library creation
10398    # command for GNU C++ for the case where it uses the native
10399    # linker, instead of GNU ld.  If possible, this setting should
10400    # overridden to take advantage of the native linker features on
10401    # the platform it is being used on.
10402    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10403  fi
10404
10405  # Commands to make compiler produce verbose output that lists
10406  # what "hidden" libraries, object files and flags are used when
10407  # linking a shared library.
10408  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10409
10410else
10411  GXX=no
10412  with_gnu_ld=no
10413  wlarc=
10414fi
10415
10416# PORTME: fill in a description of your system's C++ link characteristics
10417echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10418echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10419ld_shlibs_CXX=yes
10420case $host_os in
10421  aix3*)
10422    # FIXME: insert proper C++ library support
10423    ld_shlibs_CXX=no
10424    ;;
10425  aix4* | aix5*)
10426    if test "$host_cpu" = ia64; then
10427      # On IA64, the linker does run time linking by default, so we don't
10428      # have to do anything special.
10429      aix_use_runtimelinking=no
10430      exp_sym_flag='-Bexport'
10431      no_entry_flag=""
10432    else
10433      aix_use_runtimelinking=no
10434
10435      # Test if we are trying to use run time linking or normal
10436      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10437      # need to do runtime linking.
10438      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10439	for ld_flag in $LDFLAGS; do
10440	  case $ld_flag in
10441	  *-brtl*)
10442	    aix_use_runtimelinking=yes
10443	    break
10444	    ;;
10445	  esac
10446	done
10447      esac
10448
10449      exp_sym_flag='-bexport'
10450      no_entry_flag='-bnoentry'
10451    fi
10452
10453    # When large executables or shared objects are built, AIX ld can
10454    # have problems creating the table of contents.  If linking a library
10455    # or program results in "error TOC overflow" add -mminimal-toc to
10456    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10457    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10458
10459    archive_cmds_CXX=''
10460    hardcode_direct_CXX=yes
10461    hardcode_libdir_separator_CXX=':'
10462    link_all_deplibs_CXX=yes
10463
10464    if test "$GXX" = yes; then
10465      case $host_os in aix4.[012]|aix4.[012].*)
10466      # We only want to do this on AIX 4.2 and lower, the check
10467      # below for broken collect2 doesn't work under 4.3+
10468	collect2name=`${CC} -print-prog-name=collect2`
10469	if test -f "$collect2name" && \
10470	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10471	then
10472	  # We have reworked collect2
10473	  hardcode_direct_CXX=yes
10474	else
10475	  # We have old collect2
10476	  hardcode_direct_CXX=unsupported
10477	  # It fails to find uninstalled libraries when the uninstalled
10478	  # path is not listed in the libpath.  Setting hardcode_minus_L
10479	  # to unsupported forces relinking
10480	  hardcode_minus_L_CXX=yes
10481	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10482	  hardcode_libdir_separator_CXX=
10483	fi
10484      esac
10485      shared_flag='-shared'
10486      if test "$aix_use_runtimelinking" = yes; then
10487	shared_flag="$shared_flag "'${wl}-G'
10488      fi
10489    else
10490      # not using gcc
10491      if test "$host_cpu" = ia64; then
10492	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10493	# chokes on -Wl,-G. The following line is correct:
10494	shared_flag='-G'
10495      else
10496	if test "$aix_use_runtimelinking" = yes; then
10497	  shared_flag='${wl}-G'
10498	else
10499	  shared_flag='${wl}-bM:SRE'
10500	fi
10501      fi
10502    fi
10503
10504    # It seems that -bexpall does not export symbols beginning with
10505    # underscore (_), so it is better to generate a list of symbols to export.
10506    always_export_symbols_CXX=yes
10507    if test "$aix_use_runtimelinking" = yes; then
10508      # Warning - without using the other runtime loading flags (-brtl),
10509      # -berok will link without error, but may produce a broken library.
10510      allow_undefined_flag_CXX='-berok'
10511      # Determine the default libpath from the value encoded in an empty executable.
10512      cat >conftest.$ac_ext <<_ACEOF
10513/* confdefs.h.  */
10514_ACEOF
10515cat confdefs.h >>conftest.$ac_ext
10516cat >>conftest.$ac_ext <<_ACEOF
10517/* end confdefs.h.  */
10518
10519int
10520main ()
10521{
10522
10523  ;
10524  return 0;
10525}
10526_ACEOF
10527rm -f conftest.$ac_objext conftest$ac_exeext
10528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529  (eval $ac_link) 2>conftest.er1
10530  ac_status=$?
10531  grep -v '^ *+' conftest.er1 >conftest.err
10532  rm -f conftest.er1
10533  cat conftest.err >&5
10534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535  (exit $ac_status); } &&
10536	 { ac_try='test -z "$ac_cxx_werror_flag"
10537			 || test ! -s conftest.err'
10538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539  (eval $ac_try) 2>&5
10540  ac_status=$?
10541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542  (exit $ac_status); }; } &&
10543	 { ac_try='test -s conftest$ac_exeext'
10544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545  (eval $ac_try) 2>&5
10546  ac_status=$?
10547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548  (exit $ac_status); }; }; then
10549
10550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10551}'`
10552# Check for a 64-bit object if we didn't find anything.
10553if 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; }
10554}'`; fi
10555else
10556  echo "$as_me: failed program was:" >&5
10557sed 's/^/| /' conftest.$ac_ext >&5
10558
10559fi
10560rm -f conftest.err conftest.$ac_objext \
10561      conftest$ac_exeext conftest.$ac_ext
10562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10563
10564      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10565
10566      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"
10567     else
10568      if test "$host_cpu" = ia64; then
10569	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10570	allow_undefined_flag_CXX="-z nodefs"
10571	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"
10572      else
10573	# Determine the default libpath from the value encoded in an empty executable.
10574	cat >conftest.$ac_ext <<_ACEOF
10575/* confdefs.h.  */
10576_ACEOF
10577cat confdefs.h >>conftest.$ac_ext
10578cat >>conftest.$ac_ext <<_ACEOF
10579/* end confdefs.h.  */
10580
10581int
10582main ()
10583{
10584
10585  ;
10586  return 0;
10587}
10588_ACEOF
10589rm -f conftest.$ac_objext conftest$ac_exeext
10590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10591  (eval $ac_link) 2>conftest.er1
10592  ac_status=$?
10593  grep -v '^ *+' conftest.er1 >conftest.err
10594  rm -f conftest.er1
10595  cat conftest.err >&5
10596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597  (exit $ac_status); } &&
10598	 { ac_try='test -z "$ac_cxx_werror_flag"
10599			 || test ! -s conftest.err'
10600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10601  (eval $ac_try) 2>&5
10602  ac_status=$?
10603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604  (exit $ac_status); }; } &&
10605	 { ac_try='test -s conftest$ac_exeext'
10606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607  (eval $ac_try) 2>&5
10608  ac_status=$?
10609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610  (exit $ac_status); }; }; then
10611
10612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10613}'`
10614# Check for a 64-bit object if we didn't find anything.
10615if 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; }
10616}'`; fi
10617else
10618  echo "$as_me: failed program was:" >&5
10619sed 's/^/| /' conftest.$ac_ext >&5
10620
10621fi
10622rm -f conftest.err conftest.$ac_objext \
10623      conftest$ac_exeext conftest.$ac_ext
10624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10625
10626	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10627	# Warning - without using the other run time loading flags,
10628	# -berok will link without error, but may produce a broken library.
10629	no_undefined_flag_CXX=' ${wl}-bernotok'
10630	allow_undefined_flag_CXX=' ${wl}-berok'
10631	# -bexpall does not export symbols beginning with underscore (_)
10632	always_export_symbols_CXX=yes
10633	# Exported symbols can be pulled into shared objects from archives
10634	whole_archive_flag_spec_CXX=' '
10635	archive_cmds_need_lc_CXX=yes
10636	# This is similar to how AIX traditionally builds it's shared libraries.
10637	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'
10638      fi
10639    fi
10640    ;;
10641  chorus*)
10642    case $cc_basename in
10643      *)
10644	# FIXME: insert proper C++ library support
10645	ld_shlibs_CXX=no
10646	;;
10647    esac
10648    ;;
10649
10650
10651  cygwin* | mingw* | pw32*)
10652    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10653    # as there is no search path for DLLs.
10654    hardcode_libdir_flag_spec_CXX='-L$libdir'
10655    allow_undefined_flag_CXX=unsupported
10656    always_export_symbols_CXX=no
10657    enable_shared_with_static_runtimes_CXX=yes
10658
10659    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10660      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'
10661      # If the export-symbols file already is a .def file (1st line
10662      # is EXPORTS), use it as is; otherwise, prepend...
10663      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10664	cp $export_symbols $output_objdir/$soname.def;
10665      else
10666	echo EXPORTS > $output_objdir/$soname.def;
10667	cat $export_symbols >> $output_objdir/$soname.def;
10668      fi~
10669      $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'
10670    else
10671      ld_shlibs_CXX=no
10672    fi
10673  ;;
10674      darwin* | rhapsody*)
10675        case "$host_os" in
10676        rhapsody* | darwin1.[012])
10677         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10678         ;;
10679       *) # Darwin 1.3 on
10680         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10681           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10682         else
10683           case ${MACOSX_DEPLOYMENT_TARGET} in
10684             10.[012])
10685               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10686               ;;
10687             10.*)
10688               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10689               ;;
10690           esac
10691         fi
10692         ;;
10693        esac
10694      archive_cmds_need_lc_CXX=no
10695      hardcode_direct_CXX=no
10696      hardcode_automatic_CXX=yes
10697      hardcode_shlibpath_var_CXX=unsupported
10698      whole_archive_flag_spec_CXX=''
10699      link_all_deplibs_CXX=yes
10700
10701    if test "$GXX" = yes ; then
10702      lt_int_apple_cc_single_mod=no
10703      output_verbose_link_cmd='echo'
10704      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10705       lt_int_apple_cc_single_mod=yes
10706      fi
10707      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10708       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10709      else
10710          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'
10711        fi
10712        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10713        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10714          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10715            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}'
10716          else
10717            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}'
10718          fi
10719            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}'
10720      else
10721      case "$cc_basename" in
10722        xlc*)
10723         output_verbose_link_cmd='echo'
10724          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'
10725          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10726          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10727          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}'
10728          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}'
10729          ;;
10730       *)
10731         ld_shlibs_CXX=no
10732          ;;
10733      esac
10734      fi
10735        ;;
10736
10737  dgux*)
10738    case $cc_basename in
10739      ec++)
10740	# FIXME: insert proper C++ library support
10741	ld_shlibs_CXX=no
10742	;;
10743      ghcx)
10744	# Green Hills C++ Compiler
10745	# FIXME: insert proper C++ library support
10746	ld_shlibs_CXX=no
10747	;;
10748      *)
10749	# FIXME: insert proper C++ library support
10750	ld_shlibs_CXX=no
10751	;;
10752    esac
10753    ;;
10754  freebsd[12]*)
10755    # C++ shared libraries reported to be fairly broken before switch to ELF
10756    ld_shlibs_CXX=no
10757    ;;
10758  freebsd-elf*)
10759    archive_cmds_need_lc_CXX=no
10760    ;;
10761  freebsd* | kfreebsd*-gnu | dragonfly*)
10762    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10763    # conventions
10764    ld_shlibs_CXX=yes
10765    ;;
10766  gnu*)
10767    ;;
10768  hpux9*)
10769    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10770    hardcode_libdir_separator_CXX=:
10771    export_dynamic_flag_spec_CXX='${wl}-E'
10772    hardcode_direct_CXX=yes
10773    hardcode_minus_L_CXX=yes # Not in the search PATH,
10774				# but as the default
10775				# location of the library.
10776
10777    case $cc_basename in
10778    CC)
10779      # FIXME: insert proper C++ library support
10780      ld_shlibs_CXX=no
10781      ;;
10782    aCC)
10783      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'
10784      # Commands to make compiler produce verbose output that lists
10785      # what "hidden" libraries, object files and flags are used when
10786      # linking a shared library.
10787      #
10788      # There doesn't appear to be a way to prevent this compiler from
10789      # explicitly linking system object files so we need to strip them
10790      # from the output so that they don't get included in the library
10791      # dependencies.
10792      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'
10793      ;;
10794    *)
10795      if test "$GXX" = yes; then
10796        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'
10797      else
10798        # FIXME: insert proper C++ library support
10799        ld_shlibs_CXX=no
10800      fi
10801      ;;
10802    esac
10803    ;;
10804  hpux10*|hpux11*)
10805    if test $with_gnu_ld = no; then
10806      case "$host_cpu" in
10807      hppa*64*)
10808	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10809	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10810	hardcode_libdir_separator_CXX=:
10811        ;;
10812      ia64*)
10813	hardcode_libdir_flag_spec_CXX='-L$libdir'
10814        ;;
10815      *)
10816	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10817	hardcode_libdir_separator_CXX=:
10818	export_dynamic_flag_spec_CXX='${wl}-E'
10819        ;;
10820      esac
10821    fi
10822    case "$host_cpu" in
10823    hppa*64*)
10824      hardcode_direct_CXX=no
10825      hardcode_shlibpath_var_CXX=no
10826      ;;
10827    ia64*)
10828      hardcode_direct_CXX=no
10829      hardcode_shlibpath_var_CXX=no
10830      hardcode_minus_L_CXX=yes # Not in the search PATH,
10831					      # but as the default
10832					      # location of the library.
10833      ;;
10834    *)
10835      hardcode_direct_CXX=yes
10836      hardcode_minus_L_CXX=yes # Not in the search PATH,
10837					      # but as the default
10838					      # location of the library.
10839      ;;
10840    esac
10841
10842    case $cc_basename in
10843      CC)
10844	# FIXME: insert proper C++ library support
10845	ld_shlibs_CXX=no
10846	;;
10847      aCC)
10848	case "$host_cpu" in
10849	hppa*64*|ia64*)
10850	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10851	  ;;
10852	*)
10853	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10854	  ;;
10855	esac
10856	# Commands to make compiler produce verbose output that lists
10857	# what "hidden" libraries, object files and flags are used when
10858	# linking a shared library.
10859	#
10860	# There doesn't appear to be a way to prevent this compiler from
10861	# explicitly linking system object files so we need to strip them
10862	# from the output so that they don't get included in the library
10863	# dependencies.
10864	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'
10865	;;
10866      *)
10867	if test "$GXX" = yes; then
10868	  if test $with_gnu_ld = no; then
10869	    case "$host_cpu" in
10870	    ia64*|hppa*64*)
10871	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10872	      ;;
10873	    *)
10874	      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'
10875	      ;;
10876	    esac
10877	  fi
10878	else
10879	  # FIXME: insert proper C++ library support
10880	  ld_shlibs_CXX=no
10881	fi
10882	;;
10883    esac
10884    ;;
10885  irix5* | irix6*)
10886    case $cc_basename in
10887      CC)
10888	# SGI C++
10889	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10890
10891	# Archives containing C++ object files must be created using
10892	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10893	# necessary to make sure instantiated templates are included
10894	# in the archive.
10895	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10896	;;
10897      *)
10898	if test "$GXX" = yes; then
10899	  if test "$with_gnu_ld" = no; then
10900	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10901	  else
10902	    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'
10903	  fi
10904	fi
10905	link_all_deplibs_CXX=yes
10906	;;
10907    esac
10908    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10909    hardcode_libdir_separator_CXX=:
10910    ;;
10911  linux*)
10912    case $cc_basename in
10913      KCC)
10914	# Kuck and Associates, Inc. (KAI) C++ Compiler
10915
10916	# KCC will only create a shared library if the output file
10917	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10918	# to its proper name (with version) after linking.
10919	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'
10920	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'
10921	# Commands to make compiler produce verbose output that lists
10922	# what "hidden" libraries, object files and flags are used when
10923	# linking a shared library.
10924	#
10925	# There doesn't appear to be a way to prevent this compiler from
10926	# explicitly linking system object files so we need to strip them
10927	# from the output so that they don't get included in the library
10928	# dependencies.
10929	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'
10930
10931	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10932	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10933
10934	# Archives containing C++ object files must be created using
10935	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10936	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10937	;;
10938      icpc)
10939	# Intel C++
10940	with_gnu_ld=yes
10941	# version 8.0 and above of icpc choke on multiply defined symbols
10942	# if we add $predep_objects and $postdep_objects, however 7.1 and
10943	# earlier do not add the objects themselves.
10944	case `$CC -V 2>&1` in
10945	*"Version 7."*)
10946  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10947  	  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'
10948	  ;;
10949	*)  # Version 8.0 or newer
10950	  tmp_idyn=
10951	  case $host_cpu in
10952	    ia64*) tmp_idyn=' -i_dynamic';;
10953	  esac
10954  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10955	  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'
10956	  ;;
10957	esac
10958	archive_cmds_need_lc_CXX=no
10959	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10960	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10961	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10962	;;
10963      pgCC)
10964        # Portland Group C++ compiler
10965	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10966  	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'
10967
10968	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10969	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10970        ;;
10971      cxx)
10972	# Compaq C++
10973	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10974	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'
10975
10976	runpath_var=LD_RUN_PATH
10977	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10978	hardcode_libdir_separator_CXX=:
10979
10980	# Commands to make compiler produce verbose output that lists
10981	# what "hidden" libraries, object files and flags are used when
10982	# linking a shared library.
10983	#
10984	# There doesn't appear to be a way to prevent this compiler from
10985	# explicitly linking system object files so we need to strip them
10986	# from the output so that they don't get included in the library
10987	# dependencies.
10988	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'
10989	;;
10990    esac
10991    ;;
10992  lynxos*)
10993    # FIXME: insert proper C++ library support
10994    ld_shlibs_CXX=no
10995    ;;
10996  m88k*)
10997    # FIXME: insert proper C++ library support
10998    ld_shlibs_CXX=no
10999    ;;
11000  mvs*)
11001    case $cc_basename in
11002      cxx)
11003	# FIXME: insert proper C++ library support
11004	ld_shlibs_CXX=no
11005	;;
11006      *)
11007	# FIXME: insert proper C++ library support
11008	ld_shlibs_CXX=no
11009	;;
11010    esac
11011    ;;
11012  netbsd*)
11013    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11014      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11015      wlarc=
11016      hardcode_libdir_flag_spec_CXX='-R$libdir'
11017      hardcode_direct_CXX=yes
11018      hardcode_shlibpath_var_CXX=no
11019    fi
11020    # Workaround some broken pre-1.5 toolchains
11021    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11022    ;;
11023  openbsd2*)
11024    # C++ shared libraries are fairly broken
11025    ld_shlibs_CXX=no
11026    ;;
11027  openbsd*)
11028    hardcode_direct_CXX=yes
11029    hardcode_shlibpath_var_CXX=no
11030    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11031    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11032    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11033      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11034      export_dynamic_flag_spec_CXX='${wl}-E'
11035      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11036    fi
11037    output_verbose_link_cmd='echo'
11038    ;;
11039  osf3*)
11040    case $cc_basename in
11041      KCC)
11042	# Kuck and Associates, Inc. (KAI) C++ Compiler
11043
11044	# KCC will only create a shared library if the output file
11045	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11046	# to its proper name (with version) after linking.
11047	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'
11048
11049	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11050	hardcode_libdir_separator_CXX=:
11051
11052	# Archives containing C++ object files must be created using
11053	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11054	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11055
11056	;;
11057      RCC)
11058	# Rational C++ 2.4.1
11059	# FIXME: insert proper C++ library support
11060	ld_shlibs_CXX=no
11061	;;
11062      cxx)
11063	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11064	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11065
11066	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11067	hardcode_libdir_separator_CXX=:
11068
11069	# Commands to make compiler produce verbose output that lists
11070	# what "hidden" libraries, object files and flags are used when
11071	# linking a shared library.
11072	#
11073	# There doesn't appear to be a way to prevent this compiler from
11074	# explicitly linking system object files so we need to strip them
11075	# from the output so that they don't get included in the library
11076	# dependencies.
11077	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'
11078	;;
11079      *)
11080	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11081	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11082	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11083
11084	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11085	  hardcode_libdir_separator_CXX=:
11086
11087	  # Commands to make compiler produce verbose output that lists
11088	  # what "hidden" libraries, object files and flags are used when
11089	  # linking a shared library.
11090	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11091
11092	else
11093	  # FIXME: insert proper C++ library support
11094	  ld_shlibs_CXX=no
11095	fi
11096	;;
11097    esac
11098    ;;
11099  osf4* | osf5*)
11100    case $cc_basename in
11101      KCC)
11102	# Kuck and Associates, Inc. (KAI) C++ Compiler
11103
11104	# KCC will only create a shared library if the output file
11105	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11106	# to its proper name (with version) after linking.
11107	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'
11108
11109	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11110	hardcode_libdir_separator_CXX=:
11111
11112	# Archives containing C++ object files must be created using
11113	# the KAI C++ compiler.
11114	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11115	;;
11116      RCC)
11117	# Rational C++ 2.4.1
11118	# FIXME: insert proper C++ library support
11119	ld_shlibs_CXX=no
11120	;;
11121      cxx)
11122	allow_undefined_flag_CXX=' -expect_unresolved \*'
11123	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
11124	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11125	  echo "-hidden">> $lib.exp~
11126	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry $objdir/so_locations -o $lib~
11127	  $rm $lib.exp'
11128
11129	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11130	hardcode_libdir_separator_CXX=:
11131
11132	# Commands to make compiler produce verbose output that lists
11133	# what "hidden" libraries, object files and flags are used when
11134	# linking a shared library.
11135	#
11136	# There doesn't appear to be a way to prevent this compiler from
11137	# explicitly linking system object files so we need to strip them
11138	# from the output so that they don't get included in the library
11139	# dependencies.
11140	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'
11141	;;
11142      *)
11143	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11144	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11145	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
11146
11147	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11148	  hardcode_libdir_separator_CXX=:
11149
11150	  # Commands to make compiler produce verbose output that lists
11151	  # what "hidden" libraries, object files and flags are used when
11152	  # linking a shared library.
11153	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11154
11155	else
11156	  # FIXME: insert proper C++ library support
11157	  ld_shlibs_CXX=no
11158	fi
11159	;;
11160    esac
11161    ;;
11162  psos*)
11163    # FIXME: insert proper C++ library support
11164    ld_shlibs_CXX=no
11165    ;;
11166  sco*)
11167    archive_cmds_need_lc_CXX=no
11168    case $cc_basename in
11169      CC)
11170	# FIXME: insert proper C++ library support
11171	ld_shlibs_CXX=no
11172	;;
11173      *)
11174	# FIXME: insert proper C++ library support
11175	ld_shlibs_CXX=no
11176	;;
11177    esac
11178    ;;
11179  sunos4*)
11180    case $cc_basename in
11181      CC)
11182	# Sun C++ 4.x
11183	# FIXME: insert proper C++ library support
11184	ld_shlibs_CXX=no
11185	;;
11186      lcc)
11187	# Lucid
11188	# FIXME: insert proper C++ library support
11189	ld_shlibs_CXX=no
11190	;;
11191      *)
11192	# FIXME: insert proper C++ library support
11193	ld_shlibs_CXX=no
11194	;;
11195    esac
11196    ;;
11197  solaris*)
11198    case $cc_basename in
11199      CC)
11200	# Sun C++ 4.2, 5.x and Centerline C++
11201	no_undefined_flag_CXX=' -zdefs'
11202	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11203	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11204	$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11205
11206	hardcode_libdir_flag_spec_CXX='-R$libdir'
11207	hardcode_shlibpath_var_CXX=no
11208	case $host_os in
11209	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11210	  *)
11211	    # The C++ compiler is used as linker so we must use $wl
11212	    # flag to pass the commands to the underlying system
11213	    # linker.
11214	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11215	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11216	    ;;
11217	esac
11218	link_all_deplibs_CXX=yes
11219
11220	# Commands to make compiler produce verbose output that lists
11221	# what "hidden" libraries, object files and flags are used when
11222	# linking a shared library.
11223	#
11224	# There doesn't appear to be a way to prevent this compiler from
11225	# explicitly linking system object files so we need to strip them
11226	# from the output so that they don't get included in the library
11227	# dependencies.
11228	output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11229
11230	# Archives containing C++ object files must be created using
11231	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11232	# necessary to make sure instantiated templates are included
11233	# in the archive.
11234	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11235	;;
11236      gcx)
11237	# Green Hills C++ Compiler
11238	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11239
11240	# The C++ compiler must be used to create the archive.
11241	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11242	;;
11243      *)
11244	# GNU C++ compiler with Solaris linker
11245	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11246	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11247	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11248	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11249	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11250		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11251
11252	    # Commands to make compiler produce verbose output that lists
11253	    # what "hidden" libraries, object files and flags are used when
11254	    # linking a shared library.
11255	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11256	  else
11257	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11258	    # platform.
11259	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11260	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11261		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11262
11263	    # Commands to make compiler produce verbose output that lists
11264	    # what "hidden" libraries, object files and flags are used when
11265	    # linking a shared library.
11266	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11267	  fi
11268
11269	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11270	fi
11271	;;
11272    esac
11273    ;;
11274  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11275    archive_cmds_need_lc_CXX=no
11276    ;;
11277  tandem*)
11278    case $cc_basename in
11279      NCC)
11280	# NonStop-UX NCC 3.20
11281	# FIXME: insert proper C++ library support
11282	ld_shlibs_CXX=no
11283	;;
11284      *)
11285	# FIXME: insert proper C++ library support
11286	ld_shlibs_CXX=no
11287	;;
11288    esac
11289    ;;
11290  vxworks*)
11291    # FIXME: insert proper C++ library support
11292    ld_shlibs_CXX=no
11293    ;;
11294  *)
11295    # FIXME: insert proper C++ library support
11296    ld_shlibs_CXX=no
11297    ;;
11298esac
11299echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11300echo "${ECHO_T}$ld_shlibs_CXX" >&6
11301test "$ld_shlibs_CXX" = no && can_build_shared=no
11302
11303GCC_CXX="$GXX"
11304LD_CXX="$LD"
11305
11306
11307cat > conftest.$ac_ext <<EOF
11308class Foo
11309{
11310public:
11311  Foo (void) { a = 0; }
11312private:
11313  int a;
11314};
11315EOF
11316
11317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11318  (eval $ac_compile) 2>&5
11319  ac_status=$?
11320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321  (exit $ac_status); }; then
11322  # Parse the compiler output and extract the necessary
11323  # objects, libraries and library flags.
11324
11325  # Sentinel used to keep track of whether or not we are before
11326  # the conftest object file.
11327  pre_test_object_deps_done=no
11328
11329  # The `*' in the case matches for architectures that use `case' in
11330  # $output_verbose_cmd can trigger glob expansion during the loop
11331  # eval without this substitution.
11332  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11333
11334  for p in `eval $output_verbose_link_cmd`; do
11335    case $p in
11336
11337    -L* | -R* | -l*)
11338       # Some compilers place space between "-{L,R}" and the path.
11339       # Remove the space.
11340       if test $p = "-L" \
11341	  || test $p = "-R"; then
11342	 prev=$p
11343	 continue
11344       else
11345	 prev=
11346       fi
11347
11348       if test "$pre_test_object_deps_done" = no; then
11349	 case $p in
11350	 -L* | -R*)
11351	   # Internal compiler library paths should come after those
11352	   # provided the user.  The postdeps already come after the
11353	   # user supplied libs so there is no need to process them.
11354	   if test -z "$compiler_lib_search_path_CXX"; then
11355	     compiler_lib_search_path_CXX="${prev}${p}"
11356	   else
11357	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11358	   fi
11359	   ;;
11360	 # The "-l" case would never come before the object being
11361	 # linked, so don't bother handling this case.
11362	 esac
11363       else
11364	 if test -z "$postdeps_CXX"; then
11365	   postdeps_CXX="${prev}${p}"
11366	 else
11367	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11368	 fi
11369       fi
11370       ;;
11371
11372    *.$objext)
11373       # This assumes that the test object file only shows up
11374       # once in the compiler output.
11375       if test "$p" = "conftest.$objext"; then
11376	 pre_test_object_deps_done=yes
11377	 continue
11378       fi
11379
11380       if test "$pre_test_object_deps_done" = no; then
11381	 if test -z "$predep_objects_CXX"; then
11382	   predep_objects_CXX="$p"
11383	 else
11384	   predep_objects_CXX="$predep_objects_CXX $p"
11385	 fi
11386       else
11387	 if test -z "$postdep_objects_CXX"; then
11388	   postdep_objects_CXX="$p"
11389	 else
11390	   postdep_objects_CXX="$postdep_objects_CXX $p"
11391	 fi
11392       fi
11393       ;;
11394
11395    *) ;; # Ignore the rest.
11396
11397    esac
11398  done
11399
11400  # Clean up.
11401  rm -f a.out a.exe
11402else
11403  echo "libtool.m4: error: problem compiling CXX test program"
11404fi
11405
11406$rm -f confest.$objext
11407
11408case " $postdeps_CXX " in
11409*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11410esac
11411
11412lt_prog_compiler_wl_CXX=
11413lt_prog_compiler_pic_CXX=
11414lt_prog_compiler_static_CXX=
11415
11416echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11417echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11418
11419  # C++ specific cases for pic, static, wl, etc.
11420  if test "$GXX" = yes; then
11421    lt_prog_compiler_wl_CXX='-Wl,'
11422    lt_prog_compiler_static_CXX='-static'
11423
11424    case $host_os in
11425    aix*)
11426      # All AIX code is PIC.
11427      if test "$host_cpu" = ia64; then
11428	# AIX 5 now supports IA64 processor
11429	lt_prog_compiler_static_CXX='-Bstatic'
11430      fi
11431      ;;
11432    amigaos*)
11433      # FIXME: we need at least 68020 code to build shared libraries, but
11434      # adding the `-m68020' flag to GCC prevents building anything better,
11435      # like `-m68040'.
11436      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11437      ;;
11438    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11439      # PIC is the default for these OSes.
11440      ;;
11441    mingw* | os2* | pw32*)
11442      # This hack is so that the source file can tell whether it is being
11443      # built for inclusion in a dll (and should export symbols for example).
11444      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11445      ;;
11446    darwin* | rhapsody*)
11447      # PIC is the default on this platform
11448      # Common symbols not allowed in MH_DYLIB files
11449      lt_prog_compiler_pic_CXX='-fno-common'
11450      ;;
11451    *djgpp*)
11452      # DJGPP does not support shared libraries at all
11453      lt_prog_compiler_pic_CXX=
11454      ;;
11455    sysv4*MP*)
11456      if test -d /usr/nec; then
11457	lt_prog_compiler_pic_CXX=-Kconform_pic
11458      fi
11459      ;;
11460    hpux*)
11461      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11462      # not for PA HP-UX.
11463      case "$host_cpu" in
11464      hppa*64*|ia64*)
11465	;;
11466      *)
11467	lt_prog_compiler_pic_CXX='-fPIC'
11468	;;
11469      esac
11470      ;;
11471    *)
11472      lt_prog_compiler_pic_CXX='-fPIC'
11473      ;;
11474    esac
11475  else
11476    case $host_os in
11477      aix4* | aix5*)
11478	# All AIX code is PIC.
11479	if test "$host_cpu" = ia64; then
11480	  # AIX 5 now supports IA64 processor
11481	  lt_prog_compiler_static_CXX='-Bstatic'
11482	else
11483	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11484	fi
11485	;;
11486      chorus*)
11487	case $cc_basename in
11488	cxch68)
11489	  # Green Hills C++ Compiler
11490	  # _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"
11491	  ;;
11492	esac
11493	;;
11494       darwin*)
11495         # PIC is the default on this platform
11496         # Common symbols not allowed in MH_DYLIB files
11497         case "$cc_basename" in
11498           xlc*)
11499           lt_prog_compiler_pic_CXX='-qnocommon'
11500           lt_prog_compiler_wl_CXX='-Wl,'
11501           ;;
11502         esac
11503       ;;
11504      dgux*)
11505	case $cc_basename in
11506	  ec++)
11507	    lt_prog_compiler_pic_CXX='-KPIC'
11508	    ;;
11509	  ghcx)
11510	    # Green Hills C++ Compiler
11511	    lt_prog_compiler_pic_CXX='-pic'
11512	    ;;
11513	  *)
11514	    ;;
11515	esac
11516	;;
11517      freebsd* | kfreebsd*-gnu | dragonfly*)
11518	# FreeBSD uses GNU C++
11519	;;
11520      hpux9* | hpux10* | hpux11*)
11521	case $cc_basename in
11522	  CC)
11523	    lt_prog_compiler_wl_CXX='-Wl,'
11524	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11525	    if test "$host_cpu" != ia64; then
11526	      lt_prog_compiler_pic_CXX='+Z'
11527	    fi
11528	    ;;
11529	  aCC)
11530	    lt_prog_compiler_wl_CXX='-Wl,'
11531	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11532	    case "$host_cpu" in
11533	    hppa*64*|ia64*)
11534	      # +Z the default
11535	      ;;
11536	    *)
11537	      lt_prog_compiler_pic_CXX='+Z'
11538	      ;;
11539	    esac
11540	    ;;
11541	  *)
11542	    ;;
11543	esac
11544	;;
11545      irix5* | irix6* | nonstopux*)
11546	case $cc_basename in
11547	  CC)
11548	    lt_prog_compiler_wl_CXX='-Wl,'
11549	    lt_prog_compiler_static_CXX='-non_shared'
11550	    # CC pic flag -KPIC is the default.
11551	    ;;
11552	  *)
11553	    ;;
11554	esac
11555	;;
11556      linux*)
11557	case $cc_basename in
11558	  KCC)
11559	    # KAI C++ Compiler
11560	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11561	    lt_prog_compiler_pic_CXX='-fPIC'
11562	    ;;
11563	  icpc* | ecpc*)
11564	    # Intel C++
11565	    lt_prog_compiler_wl_CXX='-Wl,'
11566	    lt_prog_compiler_pic_CXX='-KPIC'
11567	    lt_prog_compiler_static_CXX='-static'
11568	    ;;
11569	  pgCC)
11570	    # Portland Group C++ compiler.
11571	    lt_prog_compiler_wl_CXX='-Wl,'
11572	    lt_prog_compiler_pic_CXX='-fpic'
11573	    lt_prog_compiler_static_CXX='-static'
11574	    ;;
11575	  cxx)
11576	    # Compaq C++
11577	    # Make sure the PIC flag is empty.  It appears that all Alpha
11578	    # Linux and Compaq Tru64 Unix objects are PIC.
11579	    lt_prog_compiler_pic_CXX=
11580	    lt_prog_compiler_static_CXX='-non_shared'
11581	    ;;
11582	  *)
11583	    ;;
11584	esac
11585	;;
11586      lynxos*)
11587	;;
11588      m88k*)
11589	;;
11590      mvs*)
11591	case $cc_basename in
11592	  cxx)
11593	    lt_prog_compiler_pic_CXX='-W c,exportall'
11594	    ;;
11595	  *)
11596	    ;;
11597	esac
11598	;;
11599      netbsd*)
11600	;;
11601      osf3* | osf4* | osf5*)
11602	case $cc_basename in
11603	  KCC)
11604	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11605	    ;;
11606	  RCC)
11607	    # Rational C++ 2.4.1
11608	    lt_prog_compiler_pic_CXX='-pic'
11609	    ;;
11610	  cxx)
11611	    # Digital/Compaq C++
11612	    lt_prog_compiler_wl_CXX='-Wl,'
11613	    # Make sure the PIC flag is empty.  It appears that all Alpha
11614	    # Linux and Compaq Tru64 Unix objects are PIC.
11615	    lt_prog_compiler_pic_CXX=
11616	    lt_prog_compiler_static_CXX='-non_shared'
11617	    ;;
11618	  *)
11619	    ;;
11620	esac
11621	;;
11622      psos*)
11623	;;
11624      sco*)
11625	case $cc_basename in
11626	  CC)
11627	    lt_prog_compiler_pic_CXX='-fPIC'
11628	    ;;
11629	  *)
11630	    ;;
11631	esac
11632	;;
11633      solaris*)
11634	case $cc_basename in
11635	  CC)
11636	    # Sun C++ 4.2, 5.x and Centerline C++
11637	    lt_prog_compiler_pic_CXX='-KPIC'
11638	    lt_prog_compiler_static_CXX='-Bstatic'
11639	    lt_prog_compiler_wl_CXX='-Qoption ld '
11640	    ;;
11641	  gcx)
11642	    # Green Hills C++ Compiler
11643	    lt_prog_compiler_pic_CXX='-PIC'
11644	    ;;
11645	  *)
11646	    ;;
11647	esac
11648	;;
11649      sunos4*)
11650	case $cc_basename in
11651	  CC)
11652	    # Sun C++ 4.x
11653	    lt_prog_compiler_pic_CXX='-pic'
11654	    lt_prog_compiler_static_CXX='-Bstatic'
11655	    ;;
11656	  lcc)
11657	    # Lucid
11658	    lt_prog_compiler_pic_CXX='-pic'
11659	    ;;
11660	  *)
11661	    ;;
11662	esac
11663	;;
11664      tandem*)
11665	case $cc_basename in
11666	  NCC)
11667	    # NonStop-UX NCC 3.20
11668	    lt_prog_compiler_pic_CXX='-KPIC'
11669	    ;;
11670	  *)
11671	    ;;
11672	esac
11673	;;
11674      unixware*)
11675	;;
11676      vxworks*)
11677	;;
11678      *)
11679	lt_prog_compiler_can_build_shared_CXX=no
11680	;;
11681    esac
11682  fi
11683
11684echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11685echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11686
11687#
11688# Check to make sure the PIC flag actually works.
11689#
11690if test -n "$lt_prog_compiler_pic_CXX"; then
11691
11692echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11693echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11694if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11695  echo $ECHO_N "(cached) $ECHO_C" >&6
11696else
11697  lt_prog_compiler_pic_works_CXX=no
11698  ac_outfile=conftest.$ac_objext
11699   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11700   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11701   # Insert the option either (1) after the last *FLAGS variable, or
11702   # (2) before a word containing "conftest.", or (3) at the end.
11703   # Note that $ac_compile itself does not contain backslashes and begins
11704   # with a dollar sign (not a hyphen), so the echo should work correctly.
11705   # The option is referenced via a variable to avoid confusing sed.
11706   lt_compile=`echo "$ac_compile" | $SED \
11707   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11708   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11709   -e 's:$: $lt_compiler_flag:'`
11710   (eval echo "\"\$as_me:11710: $lt_compile\"" >&5)
11711   (eval "$lt_compile" 2>conftest.err)
11712   ac_status=$?
11713   cat conftest.err >&5
11714   echo "$as_me:11714: \$? = $ac_status" >&5
11715   if (exit $ac_status) && test -s "$ac_outfile"; then
11716     # The compiler can only warn and ignore the option if not recognized
11717     # So say no if there are warnings
11718     if test ! -s conftest.err; then
11719       lt_prog_compiler_pic_works_CXX=yes
11720     fi
11721   fi
11722   $rm conftest*
11723
11724fi
11725echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11726echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11727
11728if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11729    case $lt_prog_compiler_pic_CXX in
11730     "" | " "*) ;;
11731     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11732     esac
11733else
11734    lt_prog_compiler_pic_CXX=
11735     lt_prog_compiler_can_build_shared_CXX=no
11736fi
11737
11738fi
11739case "$host_os" in
11740  # For platforms which do not support PIC, -DPIC is meaningless:
11741  *djgpp*)
11742    lt_prog_compiler_pic_CXX=
11743    ;;
11744  *)
11745    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11746    ;;
11747esac
11748
11749echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11750echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11751if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11752  echo $ECHO_N "(cached) $ECHO_C" >&6
11753else
11754  lt_cv_prog_compiler_c_o_CXX=no
11755   $rm -r conftest 2>/dev/null
11756   mkdir conftest
11757   cd conftest
11758   mkdir out
11759   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11760
11761   lt_compiler_flag="-o out/conftest2.$ac_objext"
11762   # Insert the option either (1) after the last *FLAGS variable, or
11763   # (2) before a word containing "conftest.", or (3) at the end.
11764   # Note that $ac_compile itself does not contain backslashes and begins
11765   # with a dollar sign (not a hyphen), so the echo should work correctly.
11766   lt_compile=`echo "$ac_compile" | $SED \
11767   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11768   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11769   -e 's:$: $lt_compiler_flag:'`
11770   (eval echo "\"\$as_me:11770: $lt_compile\"" >&5)
11771   (eval "$lt_compile" 2>out/conftest.err)
11772   ac_status=$?
11773   cat out/conftest.err >&5
11774   echo "$as_me:11774: \$? = $ac_status" >&5
11775   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11776   then
11777     # The compiler can only warn and ignore the option if not recognized
11778     # So say no if there are warnings
11779     if test ! -s out/conftest.err; then
11780       lt_cv_prog_compiler_c_o_CXX=yes
11781     fi
11782   fi
11783   chmod u+w .
11784   $rm conftest*
11785   # SGI C++ compiler will create directory out/ii_files/ for
11786   # template instantiation
11787   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11788   $rm out/* && rmdir out
11789   cd ..
11790   rmdir conftest
11791   $rm conftest*
11792
11793fi
11794echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11795echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11796
11797
11798hard_links="nottested"
11799if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11800  # do not overwrite the value of need_locks provided by the user
11801  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11802echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11803  hard_links=yes
11804  $rm conftest*
11805  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11806  touch conftest.a
11807  ln conftest.a conftest.b 2>&5 || hard_links=no
11808  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11809  echo "$as_me:$LINENO: result: $hard_links" >&5
11810echo "${ECHO_T}$hard_links" >&6
11811  if test "$hard_links" = no; then
11812    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11813echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11814    need_locks=warn
11815  fi
11816else
11817  need_locks=no
11818fi
11819
11820echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11821echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11822
11823  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11824  case $host_os in
11825  aix4* | aix5*)
11826    # If we're using GNU nm, then we don't want the "-C" option.
11827    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11828    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11829      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'
11830    else
11831      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'
11832    fi
11833    ;;
11834  pw32*)
11835    export_symbols_cmds_CXX="$ltdll_cmds"
11836  ;;
11837  cygwin* | mingw*)
11838    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'
11839  ;;
11840  *)
11841    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11842  ;;
11843  esac
11844
11845echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11846echo "${ECHO_T}$ld_shlibs_CXX" >&6
11847test "$ld_shlibs_CXX" = no && can_build_shared=no
11848
11849variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11850if test "$GCC" = yes; then
11851  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11852fi
11853
11854#
11855# Do we need to explicitly link libc?
11856#
11857case "x$archive_cmds_need_lc_CXX" in
11858x|xyes)
11859  # Assume -lc should be added
11860  archive_cmds_need_lc_CXX=yes
11861
11862  if test "$enable_shared" = yes && test "$GCC" = yes; then
11863    case $archive_cmds_CXX in
11864    *'~'*)
11865      # FIXME: we may have to deal with multi-command sequences.
11866      ;;
11867    '$CC '*)
11868      # Test whether the compiler implicitly links with -lc since on some
11869      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11870      # to ld, don't add -lc before -lgcc.
11871      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11872echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11873      $rm conftest*
11874      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11875
11876      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877  (eval $ac_compile) 2>&5
11878  ac_status=$?
11879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880  (exit $ac_status); } 2>conftest.err; then
11881        soname=conftest
11882        lib=conftest
11883        libobjs=conftest.$ac_objext
11884        deplibs=
11885        wl=$lt_prog_compiler_wl_CXX
11886        compiler_flags=-v
11887        linker_flags=-v
11888        verstring=
11889        output_objdir=.
11890        libname=conftest
11891        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11892        allow_undefined_flag_CXX=
11893        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11894  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11895  ac_status=$?
11896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897  (exit $ac_status); }
11898        then
11899	  archive_cmds_need_lc_CXX=no
11900        else
11901	  archive_cmds_need_lc_CXX=yes
11902        fi
11903        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11904      else
11905        cat conftest.err 1>&5
11906      fi
11907      $rm conftest*
11908      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11909echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11910      ;;
11911    esac
11912  fi
11913  ;;
11914esac
11915
11916echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11917echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11918library_names_spec=
11919libname_spec='lib$name'
11920soname_spec=
11921shrext_cmds=".so"
11922postinstall_cmds=
11923postuninstall_cmds=
11924finish_cmds=
11925finish_eval=
11926shlibpath_var=
11927shlibpath_overrides_runpath=unknown
11928version_type=none
11929dynamic_linker="$host_os ld.so"
11930sys_lib_dlsearch_path_spec="/lib /usr/lib"
11931if test "$GCC" = yes; then
11932  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11933  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11934    # if the path contains ";" then we assume it to be the separator
11935    # otherwise default to the standard path separator (i.e. ":") - it is
11936    # assumed that no part of a normal pathname contains ";" but that should
11937    # okay in the real world where ";" in dirpaths is itself problematic.
11938    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11939  else
11940    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11941  fi
11942else
11943  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11944fi
11945need_lib_prefix=unknown
11946hardcode_into_libs=no
11947
11948# when you set need_version to no, make sure it does not cause -set_version
11949# flags to be left without arguments
11950need_version=unknown
11951
11952case $host_os in
11953aix3*)
11954  version_type=linux
11955  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11956  shlibpath_var=LIBPATH
11957
11958  # AIX 3 has no versioning support, so we append a major version to the name.
11959  soname_spec='${libname}${release}${shared_ext}$major'
11960  ;;
11961
11962aix4* | aix5*)
11963  version_type=linux
11964  need_lib_prefix=no
11965  need_version=no
11966  hardcode_into_libs=yes
11967  if test "$host_cpu" = ia64; then
11968    # AIX 5 supports IA64
11969    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11970    shlibpath_var=LD_LIBRARY_PATH
11971  else
11972    # With GCC up to 2.95.x, collect2 would create an import file
11973    # for dependence libraries.  The import file would start with
11974    # the line `#! .'.  This would cause the generated library to
11975    # depend on `.', always an invalid library.  This was fixed in
11976    # development snapshots of GCC prior to 3.0.
11977    case $host_os in
11978      aix4 | aix4.[01] | aix4.[01].*)
11979      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11980	   echo ' yes '
11981	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11982	:
11983      else
11984	can_build_shared=no
11985      fi
11986      ;;
11987    esac
11988    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11989    # soname into executable. Probably we can add versioning support to
11990    # collect2, so additional links can be useful in future.
11991    if test "$aix_use_runtimelinking" = yes; then
11992      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11993      # instead of lib<name>.a to let people know that these are not
11994      # typical AIX shared libraries.
11995      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11996    else
11997      # We preserve .a as extension for shared libraries through AIX4.2
11998      # and later when we are not doing run time linking.
11999      library_names_spec='${libname}${release}.a $libname.a'
12000      soname_spec='${libname}${release}${shared_ext}$major'
12001    fi
12002    shlibpath_var=LIBPATH
12003  fi
12004  ;;
12005
12006amigaos*)
12007  library_names_spec='$libname.ixlibrary $libname.a'
12008  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12009  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'
12010  ;;
12011
12012beos*)
12013  library_names_spec='${libname}${shared_ext}'
12014  dynamic_linker="$host_os ld.so"
12015  shlibpath_var=LIBRARY_PATH
12016  ;;
12017
12018bsdi[45]*)
12019  version_type=linux
12020  need_version=no
12021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12022  soname_spec='${libname}${release}${shared_ext}$major'
12023  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12024  shlibpath_var=LD_LIBRARY_PATH
12025  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12026  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12027  # the default ld.so.conf also contains /usr/contrib/lib and
12028  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12029  # libtool to hard-code these into programs
12030  ;;
12031
12032cygwin* | mingw* | pw32*)
12033  version_type=windows
12034  shrext_cmds=".dll"
12035  need_version=no
12036  need_lib_prefix=no
12037
12038  case $GCC,$host_os in
12039  yes,cygwin* | yes,mingw* | yes,pw32*)
12040    library_names_spec='$libname.dll.a'
12041    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12042    postinstall_cmds='base_file=`basename \${file}`~
12043      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12044      dldir=$destdir/`dirname \$dlpath`~
12045      test -d \$dldir || mkdir -p \$dldir~
12046      $install_prog $dir/$dlname \$dldir/$dlname'
12047    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12048      dlpath=$dir/\$dldll~
12049       $rm \$dlpath'
12050    shlibpath_overrides_runpath=yes
12051
12052    case $host_os in
12053    cygwin*)
12054      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12055      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12056      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12057      ;;
12058    mingw*)
12059      # MinGW DLLs use traditional 'lib' prefix
12060      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12061      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12062      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12063        # It is most probably a Windows format PATH printed by
12064        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12065        # path with ; separators, and with drive letters. We can handle the
12066        # drive letters (cygwin fileutils understands them), so leave them,
12067        # especially as we might pass files found there to a mingw objdump,
12068        # which wouldn't understand a cygwinified path. Ahh.
12069        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12070      else
12071        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12072      fi
12073      ;;
12074    pw32*)
12075      # pw32 DLLs use 'pw' prefix rather than 'lib'
12076      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12077      ;;
12078    esac
12079    ;;
12080
12081  *)
12082    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12083    ;;
12084  esac
12085  dynamic_linker='Win32 ld.exe'
12086  # FIXME: first we should search . and the directory the executable is in
12087  shlibpath_var=PATH
12088  ;;
12089
12090darwin* | rhapsody*)
12091  dynamic_linker="$host_os dyld"
12092  version_type=darwin
12093  need_lib_prefix=no
12094  need_version=no
12095  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12096  soname_spec='${libname}${release}${major}$shared_ext'
12097  shlibpath_overrides_runpath=yes
12098  shlibpath_var=DYLD_LIBRARY_PATH
12099  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12100  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12101  if test "$GCC" = yes; then
12102    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"`
12103  else
12104    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12105  fi
12106  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12107  ;;
12108
12109dgux*)
12110  version_type=linux
12111  need_lib_prefix=no
12112  need_version=no
12113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12114  soname_spec='${libname}${release}${shared_ext}$major'
12115  shlibpath_var=LD_LIBRARY_PATH
12116  ;;
12117
12118freebsd1*)
12119  dynamic_linker=no
12120  ;;
12121
12122kfreebsd*-gnu)
12123  version_type=linux
12124  need_lib_prefix=no
12125  need_version=no
12126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12127  soname_spec='${libname}${release}${shared_ext}$major'
12128  shlibpath_var=LD_LIBRARY_PATH
12129  shlibpath_overrides_runpath=no
12130  hardcode_into_libs=yes
12131  dynamic_linker='GNU ld.so'
12132  ;;
12133
12134freebsd* | dragonfly*)
12135  # DragonFly does not have aout.  When/if they implement a new
12136  # versioning mechanism, adjust this.
12137  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12138  version_type=freebsd-$objformat
12139  case $version_type in
12140    freebsd-elf*)
12141      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12142      need_version=no
12143      need_lib_prefix=no
12144      ;;
12145    freebsd-*)
12146      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12147      need_version=yes
12148      ;;
12149  esac
12150  shlibpath_var=LD_LIBRARY_PATH
12151  case $host_os in
12152  freebsd2*)
12153    shlibpath_overrides_runpath=yes
12154    ;;
12155  freebsd3.[01]* | freebsdelf3.[01]*)
12156    shlibpath_overrides_runpath=yes
12157    hardcode_into_libs=yes
12158    ;;
12159  *) # from 3.2 on
12160    shlibpath_overrides_runpath=no
12161    hardcode_into_libs=yes
12162    ;;
12163  esac
12164  ;;
12165
12166gnu*)
12167  version_type=linux
12168  need_lib_prefix=no
12169  need_version=no
12170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12171  soname_spec='${libname}${release}${shared_ext}$major'
12172  shlibpath_var=LD_LIBRARY_PATH
12173  hardcode_into_libs=yes
12174  ;;
12175
12176hpux9* | hpux10* | hpux11*)
12177  # Give a soname corresponding to the major version so that dld.sl refuses to
12178  # link against other versions.
12179  version_type=sunos
12180  need_lib_prefix=no
12181  need_version=no
12182  case "$host_cpu" in
12183  ia64*)
12184    shrext_cmds='.so'
12185    hardcode_into_libs=yes
12186    dynamic_linker="$host_os dld.so"
12187    shlibpath_var=LD_LIBRARY_PATH
12188    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12190    soname_spec='${libname}${release}${shared_ext}$major'
12191    if test "X$HPUX_IA64_MODE" = X32; then
12192      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12193    else
12194      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12195    fi
12196    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12197    ;;
12198   hppa*64*)
12199     shrext_cmds='.sl'
12200     hardcode_into_libs=yes
12201     dynamic_linker="$host_os dld.sl"
12202     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12203     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12204     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205     soname_spec='${libname}${release}${shared_ext}$major'
12206     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12207     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12208     ;;
12209   *)
12210    shrext_cmds='.sl'
12211    dynamic_linker="$host_os dld.sl"
12212    shlibpath_var=SHLIB_PATH
12213    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12214    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12215    soname_spec='${libname}${release}${shared_ext}$major'
12216    ;;
12217  esac
12218  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12219  postinstall_cmds='chmod 555 $lib'
12220  ;;
12221
12222irix5* | irix6* | nonstopux*)
12223  case $host_os in
12224    nonstopux*) version_type=nonstopux ;;
12225    *)
12226	if test "$lt_cv_prog_gnu_ld" = yes; then
12227		version_type=linux
12228	else
12229		version_type=irix
12230	fi ;;
12231  esac
12232  need_lib_prefix=no
12233  need_version=no
12234  soname_spec='${libname}${release}${shared_ext}$major'
12235  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12236  case $host_os in
12237  irix5* | nonstopux*)
12238    libsuff= shlibsuff=
12239    ;;
12240  *)
12241    case $LD in # libtool.m4 will add one of these switches to LD
12242    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12243      libsuff= shlibsuff= libmagic=32-bit;;
12244    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12245      libsuff=32 shlibsuff=N32 libmagic=N32;;
12246    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12247      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12248    *) libsuff= shlibsuff= libmagic=never-match;;
12249    esac
12250    ;;
12251  esac
12252  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12253  shlibpath_overrides_runpath=no
12254  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12255  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12256  hardcode_into_libs=yes
12257  ;;
12258
12259# No shared lib support for Linux oldld, aout, or coff.
12260linux*oldld* | linux*aout* | linux*coff*)
12261  dynamic_linker=no
12262  ;;
12263
12264# This must be Linux ELF.
12265linux*)
12266  version_type=linux
12267  need_lib_prefix=no
12268  need_version=no
12269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12270  soname_spec='${libname}${release}${shared_ext}$major'
12271  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12272  shlibpath_var=LD_LIBRARY_PATH
12273  shlibpath_overrides_runpath=no
12274  # This implies no fast_install, which is unacceptable.
12275  # Some rework will be needed to allow for fast_install
12276  # before this can be enabled.
12277  hardcode_into_libs=yes
12278
12279  # Append ld.so.conf contents to the search path
12280  if test -f /etc/ld.so.conf; then
12281    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12282    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12283  fi
12284
12285  # We used to test for /lib/ld.so.1 and disable shared libraries on
12286  # powerpc, because MkLinux only supported shared libraries with the
12287  # GNU dynamic linker.  Since this was broken with cross compilers,
12288  # most powerpc-linux boxes support dynamic linking these days and
12289  # people can always --disable-shared, the test was removed, and we
12290  # assume the GNU/Linux dynamic linker is in use.
12291  dynamic_linker='GNU/Linux ld.so'
12292  ;;
12293
12294knetbsd*-gnu)
12295  version_type=linux
12296  need_lib_prefix=no
12297  need_version=no
12298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12299  soname_spec='${libname}${release}${shared_ext}$major'
12300  shlibpath_var=LD_LIBRARY_PATH
12301  shlibpath_overrides_runpath=no
12302  hardcode_into_libs=yes
12303  dynamic_linker='GNU ld.so'
12304  ;;
12305
12306netbsd*)
12307  version_type=sunos
12308  need_lib_prefix=no
12309  need_version=no
12310  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12311    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12312    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12313    dynamic_linker='NetBSD (a.out) ld.so'
12314  else
12315    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12316    soname_spec='${libname}${release}${shared_ext}$major'
12317    dynamic_linker='NetBSD ld.elf_so'
12318  fi
12319  shlibpath_var=LD_LIBRARY_PATH
12320  shlibpath_overrides_runpath=yes
12321  hardcode_into_libs=yes
12322  ;;
12323
12324newsos6)
12325  version_type=linux
12326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12327  shlibpath_var=LD_LIBRARY_PATH
12328  shlibpath_overrides_runpath=yes
12329  ;;
12330
12331nto-qnx*)
12332  version_type=linux
12333  need_lib_prefix=no
12334  need_version=no
12335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12336  soname_spec='${libname}${release}${shared_ext}$major'
12337  shlibpath_var=LD_LIBRARY_PATH
12338  shlibpath_overrides_runpath=yes
12339  ;;
12340
12341openbsd*)
12342  version_type=sunos
12343  need_lib_prefix=no
12344  need_version=no
12345  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12346  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12347  shlibpath_var=LD_LIBRARY_PATH
12348  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12349    case $host_os in
12350      openbsd2.[89] | openbsd2.[89].*)
12351	shlibpath_overrides_runpath=no
12352	;;
12353      *)
12354	shlibpath_overrides_runpath=yes
12355	;;
12356      esac
12357  else
12358    shlibpath_overrides_runpath=yes
12359  fi
12360  ;;
12361
12362os2*)
12363  libname_spec='$name'
12364  shrext_cmds=".dll"
12365  need_lib_prefix=no
12366  library_names_spec='$libname${shared_ext} $libname.a'
12367  dynamic_linker='OS/2 ld.exe'
12368  shlibpath_var=LIBPATH
12369  ;;
12370
12371osf3* | osf4* | osf5*)
12372  version_type=osf
12373  need_lib_prefix=no
12374  need_version=no
12375  soname_spec='${libname}${release}${shared_ext}$major'
12376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12377  shlibpath_var=LD_LIBRARY_PATH
12378  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12379  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12380  ;;
12381
12382sco3.2v5*)
12383  version_type=osf
12384  soname_spec='${libname}${release}${shared_ext}$major'
12385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386  shlibpath_var=LD_LIBRARY_PATH
12387  ;;
12388
12389solaris*)
12390  version_type=linux
12391  need_lib_prefix=no
12392  need_version=no
12393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12394  soname_spec='${libname}${release}${shared_ext}$major'
12395  shlibpath_var=LD_LIBRARY_PATH
12396  shlibpath_overrides_runpath=yes
12397  hardcode_into_libs=yes
12398  # ldd complains unless libraries are executable
12399  postinstall_cmds='chmod +x $lib'
12400  ;;
12401
12402sunos4*)
12403  version_type=sunos
12404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12405  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12406  shlibpath_var=LD_LIBRARY_PATH
12407  shlibpath_overrides_runpath=yes
12408  if test "$with_gnu_ld" = yes; then
12409    need_lib_prefix=no
12410  fi
12411  need_version=yes
12412  ;;
12413
12414sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12415  version_type=linux
12416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417  soname_spec='${libname}${release}${shared_ext}$major'
12418  shlibpath_var=LD_LIBRARY_PATH
12419  case $host_vendor in
12420    sni)
12421      shlibpath_overrides_runpath=no
12422      need_lib_prefix=no
12423      export_dynamic_flag_spec='${wl}-Blargedynsym'
12424      runpath_var=LD_RUN_PATH
12425      ;;
12426    siemens)
12427      need_lib_prefix=no
12428      ;;
12429    motorola)
12430      need_lib_prefix=no
12431      need_version=no
12432      shlibpath_overrides_runpath=no
12433      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12434      ;;
12435  esac
12436  ;;
12437
12438sysv4*MP*)
12439  if test -d /usr/nec ;then
12440    version_type=linux
12441    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12442    soname_spec='$libname${shared_ext}.$major'
12443    shlibpath_var=LD_LIBRARY_PATH
12444  fi
12445  ;;
12446
12447uts4*)
12448  version_type=linux
12449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12450  soname_spec='${libname}${release}${shared_ext}$major'
12451  shlibpath_var=LD_LIBRARY_PATH
12452  ;;
12453
12454*)
12455  dynamic_linker=no
12456  ;;
12457esac
12458echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12459echo "${ECHO_T}$dynamic_linker" >&6
12460test "$dynamic_linker" = no && can_build_shared=no
12461
12462echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12463echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12464hardcode_action_CXX=
12465if test -n "$hardcode_libdir_flag_spec_CXX" || \
12466   test -n "$runpath_var_CXX" || \
12467   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12468
12469  # We can hardcode non-existant directories.
12470  if test "$hardcode_direct_CXX" != no &&
12471     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12472     # have to relink, otherwise we might link with an installed library
12473     # when we should be linking with a yet-to-be-installed one
12474     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12475     test "$hardcode_minus_L_CXX" != no; then
12476    # Linking always hardcodes the temporary library directory.
12477    hardcode_action_CXX=relink
12478  else
12479    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12480    hardcode_action_CXX=immediate
12481  fi
12482else
12483  # We cannot hardcode anything, or else we can only hardcode existing
12484  # directories.
12485  hardcode_action_CXX=unsupported
12486fi
12487echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12488echo "${ECHO_T}$hardcode_action_CXX" >&6
12489
12490if test "$hardcode_action_CXX" = relink; then
12491  # Fast installation is not supported
12492  enable_fast_install=no
12493elif test "$shlibpath_overrides_runpath" = yes ||
12494     test "$enable_shared" = no; then
12495  # Fast installation is not necessary
12496  enable_fast_install=needless
12497fi
12498
12499striplib=
12500old_striplib=
12501echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12502echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12503if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12504  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12505  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12506  echo "$as_me:$LINENO: result: yes" >&5
12507echo "${ECHO_T}yes" >&6
12508else
12509# FIXME - insert some real tests, host_os isn't really good enough
12510  case $host_os in
12511   darwin*)
12512       if test -n "$STRIP" ; then
12513         striplib="$STRIP -x"
12514         echo "$as_me:$LINENO: result: yes" >&5
12515echo "${ECHO_T}yes" >&6
12516       else
12517  echo "$as_me:$LINENO: result: no" >&5
12518echo "${ECHO_T}no" >&6
12519fi
12520       ;;
12521   *)
12522  echo "$as_me:$LINENO: result: no" >&5
12523echo "${ECHO_T}no" >&6
12524    ;;
12525  esac
12526fi
12527
12528if test "x$enable_dlopen" != xyes; then
12529  enable_dlopen=unknown
12530  enable_dlopen_self=unknown
12531  enable_dlopen_self_static=unknown
12532else
12533  lt_cv_dlopen=no
12534  lt_cv_dlopen_libs=
12535
12536  case $host_os in
12537  beos*)
12538    lt_cv_dlopen="load_add_on"
12539    lt_cv_dlopen_libs=
12540    lt_cv_dlopen_self=yes
12541    ;;
12542
12543  mingw* | pw32*)
12544    lt_cv_dlopen="LoadLibrary"
12545    lt_cv_dlopen_libs=
12546   ;;
12547
12548  cygwin*)
12549    lt_cv_dlopen="dlopen"
12550    lt_cv_dlopen_libs=
12551   ;;
12552
12553  darwin*)
12554  # if libdl is installed we need to link against it
12555    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12556echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12557if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12558  echo $ECHO_N "(cached) $ECHO_C" >&6
12559else
12560  ac_check_lib_save_LIBS=$LIBS
12561LIBS="-ldl  $LIBS"
12562cat >conftest.$ac_ext <<_ACEOF
12563/* confdefs.h.  */
12564_ACEOF
12565cat confdefs.h >>conftest.$ac_ext
12566cat >>conftest.$ac_ext <<_ACEOF
12567/* end confdefs.h.  */
12568
12569/* Override any gcc2 internal prototype to avoid an error.  */
12570#ifdef __cplusplus
12571extern "C"
12572#endif
12573/* We use char because int might match the return type of a gcc2
12574   builtin and then its argument prototype would still apply.  */
12575char dlopen ();
12576int
12577main ()
12578{
12579dlopen ();
12580  ;
12581  return 0;
12582}
12583_ACEOF
12584rm -f conftest.$ac_objext conftest$ac_exeext
12585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12586  (eval $ac_link) 2>conftest.er1
12587  ac_status=$?
12588  grep -v '^ *+' conftest.er1 >conftest.err
12589  rm -f conftest.er1
12590  cat conftest.err >&5
12591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592  (exit $ac_status); } &&
12593	 { ac_try='test -z "$ac_cxx_werror_flag"
12594			 || test ! -s conftest.err'
12595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596  (eval $ac_try) 2>&5
12597  ac_status=$?
12598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599  (exit $ac_status); }; } &&
12600	 { ac_try='test -s conftest$ac_exeext'
12601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602  (eval $ac_try) 2>&5
12603  ac_status=$?
12604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605  (exit $ac_status); }; }; then
12606  ac_cv_lib_dl_dlopen=yes
12607else
12608  echo "$as_me: failed program was:" >&5
12609sed 's/^/| /' conftest.$ac_ext >&5
12610
12611ac_cv_lib_dl_dlopen=no
12612fi
12613rm -f conftest.err conftest.$ac_objext \
12614      conftest$ac_exeext conftest.$ac_ext
12615LIBS=$ac_check_lib_save_LIBS
12616fi
12617echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12618echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12619if test $ac_cv_lib_dl_dlopen = yes; then
12620  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12621else
12622
12623    lt_cv_dlopen="dyld"
12624    lt_cv_dlopen_libs=
12625    lt_cv_dlopen_self=yes
12626
12627fi
12628
12629   ;;
12630
12631  *)
12632    echo "$as_me:$LINENO: checking for shl_load" >&5
12633echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12634if test "${ac_cv_func_shl_load+set}" = set; then
12635  echo $ECHO_N "(cached) $ECHO_C" >&6
12636else
12637  cat >conftest.$ac_ext <<_ACEOF
12638/* confdefs.h.  */
12639_ACEOF
12640cat confdefs.h >>conftest.$ac_ext
12641cat >>conftest.$ac_ext <<_ACEOF
12642/* end confdefs.h.  */
12643/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12644   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12645#define shl_load innocuous_shl_load
12646
12647/* System header to define __stub macros and hopefully few prototypes,
12648    which can conflict with char shl_load (); below.
12649    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12650    <limits.h> exists even on freestanding compilers.  */
12651
12652#ifdef __STDC__
12653# include <limits.h>
12654#else
12655# include <assert.h>
12656#endif
12657
12658#undef shl_load
12659
12660/* Override any gcc2 internal prototype to avoid an error.  */
12661#ifdef __cplusplus
12662extern "C"
12663{
12664#endif
12665/* We use char because int might match the return type of a gcc2
12666   builtin and then its argument prototype would still apply.  */
12667char shl_load ();
12668/* The GNU C library defines this for functions which it implements
12669    to always fail with ENOSYS.  Some functions are actually named
12670    something starting with __ and the normal name is an alias.  */
12671#if defined (__stub_shl_load) || defined (__stub___shl_load)
12672choke me
12673#else
12674char (*f) () = shl_load;
12675#endif
12676#ifdef __cplusplus
12677}
12678#endif
12679
12680int
12681main ()
12682{
12683return f != shl_load;
12684  ;
12685  return 0;
12686}
12687_ACEOF
12688rm -f conftest.$ac_objext conftest$ac_exeext
12689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12690  (eval $ac_link) 2>conftest.er1
12691  ac_status=$?
12692  grep -v '^ *+' conftest.er1 >conftest.err
12693  rm -f conftest.er1
12694  cat conftest.err >&5
12695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696  (exit $ac_status); } &&
12697	 { ac_try='test -z "$ac_cxx_werror_flag"
12698			 || test ! -s conftest.err'
12699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700  (eval $ac_try) 2>&5
12701  ac_status=$?
12702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703  (exit $ac_status); }; } &&
12704	 { ac_try='test -s conftest$ac_exeext'
12705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706  (eval $ac_try) 2>&5
12707  ac_status=$?
12708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709  (exit $ac_status); }; }; then
12710  ac_cv_func_shl_load=yes
12711else
12712  echo "$as_me: failed program was:" >&5
12713sed 's/^/| /' conftest.$ac_ext >&5
12714
12715ac_cv_func_shl_load=no
12716fi
12717rm -f conftest.err conftest.$ac_objext \
12718      conftest$ac_exeext conftest.$ac_ext
12719fi
12720echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12721echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12722if test $ac_cv_func_shl_load = yes; then
12723  lt_cv_dlopen="shl_load"
12724else
12725  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12726echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12727if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12728  echo $ECHO_N "(cached) $ECHO_C" >&6
12729else
12730  ac_check_lib_save_LIBS=$LIBS
12731LIBS="-ldld  $LIBS"
12732cat >conftest.$ac_ext <<_ACEOF
12733/* confdefs.h.  */
12734_ACEOF
12735cat confdefs.h >>conftest.$ac_ext
12736cat >>conftest.$ac_ext <<_ACEOF
12737/* end confdefs.h.  */
12738
12739/* Override any gcc2 internal prototype to avoid an error.  */
12740#ifdef __cplusplus
12741extern "C"
12742#endif
12743/* We use char because int might match the return type of a gcc2
12744   builtin and then its argument prototype would still apply.  */
12745char shl_load ();
12746int
12747main ()
12748{
12749shl_load ();
12750  ;
12751  return 0;
12752}
12753_ACEOF
12754rm -f conftest.$ac_objext conftest$ac_exeext
12755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12756  (eval $ac_link) 2>conftest.er1
12757  ac_status=$?
12758  grep -v '^ *+' conftest.er1 >conftest.err
12759  rm -f conftest.er1
12760  cat conftest.err >&5
12761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762  (exit $ac_status); } &&
12763	 { ac_try='test -z "$ac_cxx_werror_flag"
12764			 || test ! -s conftest.err'
12765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766  (eval $ac_try) 2>&5
12767  ac_status=$?
12768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769  (exit $ac_status); }; } &&
12770	 { ac_try='test -s conftest$ac_exeext'
12771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772  (eval $ac_try) 2>&5
12773  ac_status=$?
12774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775  (exit $ac_status); }; }; then
12776  ac_cv_lib_dld_shl_load=yes
12777else
12778  echo "$as_me: failed program was:" >&5
12779sed 's/^/| /' conftest.$ac_ext >&5
12780
12781ac_cv_lib_dld_shl_load=no
12782fi
12783rm -f conftest.err conftest.$ac_objext \
12784      conftest$ac_exeext conftest.$ac_ext
12785LIBS=$ac_check_lib_save_LIBS
12786fi
12787echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12788echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12789if test $ac_cv_lib_dld_shl_load = yes; then
12790  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12791else
12792  echo "$as_me:$LINENO: checking for dlopen" >&5
12793echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12794if test "${ac_cv_func_dlopen+set}" = set; then
12795  echo $ECHO_N "(cached) $ECHO_C" >&6
12796else
12797  cat >conftest.$ac_ext <<_ACEOF
12798/* confdefs.h.  */
12799_ACEOF
12800cat confdefs.h >>conftest.$ac_ext
12801cat >>conftest.$ac_ext <<_ACEOF
12802/* end confdefs.h.  */
12803/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12805#define dlopen innocuous_dlopen
12806
12807/* System header to define __stub macros and hopefully few prototypes,
12808    which can conflict with char dlopen (); below.
12809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12810    <limits.h> exists even on freestanding compilers.  */
12811
12812#ifdef __STDC__
12813# include <limits.h>
12814#else
12815# include <assert.h>
12816#endif
12817
12818#undef dlopen
12819
12820/* Override any gcc2 internal prototype to avoid an error.  */
12821#ifdef __cplusplus
12822extern "C"
12823{
12824#endif
12825/* We use char because int might match the return type of a gcc2
12826   builtin and then its argument prototype would still apply.  */
12827char dlopen ();
12828/* The GNU C library defines this for functions which it implements
12829    to always fail with ENOSYS.  Some functions are actually named
12830    something starting with __ and the normal name is an alias.  */
12831#if defined (__stub_dlopen) || defined (__stub___dlopen)
12832choke me
12833#else
12834char (*f) () = dlopen;
12835#endif
12836#ifdef __cplusplus
12837}
12838#endif
12839
12840int
12841main ()
12842{
12843return f != dlopen;
12844  ;
12845  return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext conftest$ac_exeext
12849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850  (eval $ac_link) 2>conftest.er1
12851  ac_status=$?
12852  grep -v '^ *+' conftest.er1 >conftest.err
12853  rm -f conftest.er1
12854  cat conftest.err >&5
12855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856  (exit $ac_status); } &&
12857	 { ac_try='test -z "$ac_cxx_werror_flag"
12858			 || test ! -s conftest.err'
12859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860  (eval $ac_try) 2>&5
12861  ac_status=$?
12862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863  (exit $ac_status); }; } &&
12864	 { ac_try='test -s conftest$ac_exeext'
12865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866  (eval $ac_try) 2>&5
12867  ac_status=$?
12868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869  (exit $ac_status); }; }; then
12870  ac_cv_func_dlopen=yes
12871else
12872  echo "$as_me: failed program was:" >&5
12873sed 's/^/| /' conftest.$ac_ext >&5
12874
12875ac_cv_func_dlopen=no
12876fi
12877rm -f conftest.err conftest.$ac_objext \
12878      conftest$ac_exeext conftest.$ac_ext
12879fi
12880echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12881echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12882if test $ac_cv_func_dlopen = yes; then
12883  lt_cv_dlopen="dlopen"
12884else
12885  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12886echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12887if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12888  echo $ECHO_N "(cached) $ECHO_C" >&6
12889else
12890  ac_check_lib_save_LIBS=$LIBS
12891LIBS="-ldl  $LIBS"
12892cat >conftest.$ac_ext <<_ACEOF
12893/* confdefs.h.  */
12894_ACEOF
12895cat confdefs.h >>conftest.$ac_ext
12896cat >>conftest.$ac_ext <<_ACEOF
12897/* end confdefs.h.  */
12898
12899/* Override any gcc2 internal prototype to avoid an error.  */
12900#ifdef __cplusplus
12901extern "C"
12902#endif
12903/* We use char because int might match the return type of a gcc2
12904   builtin and then its argument prototype would still apply.  */
12905char dlopen ();
12906int
12907main ()
12908{
12909dlopen ();
12910  ;
12911  return 0;
12912}
12913_ACEOF
12914rm -f conftest.$ac_objext conftest$ac_exeext
12915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12916  (eval $ac_link) 2>conftest.er1
12917  ac_status=$?
12918  grep -v '^ *+' conftest.er1 >conftest.err
12919  rm -f conftest.er1
12920  cat conftest.err >&5
12921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922  (exit $ac_status); } &&
12923	 { ac_try='test -z "$ac_cxx_werror_flag"
12924			 || test ! -s conftest.err'
12925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12926  (eval $ac_try) 2>&5
12927  ac_status=$?
12928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929  (exit $ac_status); }; } &&
12930	 { ac_try='test -s conftest$ac_exeext'
12931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932  (eval $ac_try) 2>&5
12933  ac_status=$?
12934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935  (exit $ac_status); }; }; then
12936  ac_cv_lib_dl_dlopen=yes
12937else
12938  echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941ac_cv_lib_dl_dlopen=no
12942fi
12943rm -f conftest.err conftest.$ac_objext \
12944      conftest$ac_exeext conftest.$ac_ext
12945LIBS=$ac_check_lib_save_LIBS
12946fi
12947echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12948echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12949if test $ac_cv_lib_dl_dlopen = yes; then
12950  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12951else
12952  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12953echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12954if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12955  echo $ECHO_N "(cached) $ECHO_C" >&6
12956else
12957  ac_check_lib_save_LIBS=$LIBS
12958LIBS="-lsvld  $LIBS"
12959cat >conftest.$ac_ext <<_ACEOF
12960/* confdefs.h.  */
12961_ACEOF
12962cat confdefs.h >>conftest.$ac_ext
12963cat >>conftest.$ac_ext <<_ACEOF
12964/* end confdefs.h.  */
12965
12966/* Override any gcc2 internal prototype to avoid an error.  */
12967#ifdef __cplusplus
12968extern "C"
12969#endif
12970/* We use char because int might match the return type of a gcc2
12971   builtin and then its argument prototype would still apply.  */
12972char dlopen ();
12973int
12974main ()
12975{
12976dlopen ();
12977  ;
12978  return 0;
12979}
12980_ACEOF
12981rm -f conftest.$ac_objext conftest$ac_exeext
12982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12983  (eval $ac_link) 2>conftest.er1
12984  ac_status=$?
12985  grep -v '^ *+' conftest.er1 >conftest.err
12986  rm -f conftest.er1
12987  cat conftest.err >&5
12988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989  (exit $ac_status); } &&
12990	 { ac_try='test -z "$ac_cxx_werror_flag"
12991			 || test ! -s conftest.err'
12992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12993  (eval $ac_try) 2>&5
12994  ac_status=$?
12995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996  (exit $ac_status); }; } &&
12997	 { ac_try='test -s conftest$ac_exeext'
12998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999  (eval $ac_try) 2>&5
13000  ac_status=$?
13001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002  (exit $ac_status); }; }; then
13003  ac_cv_lib_svld_dlopen=yes
13004else
13005  echo "$as_me: failed program was:" >&5
13006sed 's/^/| /' conftest.$ac_ext >&5
13007
13008ac_cv_lib_svld_dlopen=no
13009fi
13010rm -f conftest.err conftest.$ac_objext \
13011      conftest$ac_exeext conftest.$ac_ext
13012LIBS=$ac_check_lib_save_LIBS
13013fi
13014echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13015echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13016if test $ac_cv_lib_svld_dlopen = yes; then
13017  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13018else
13019  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13020echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13021if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13022  echo $ECHO_N "(cached) $ECHO_C" >&6
13023else
13024  ac_check_lib_save_LIBS=$LIBS
13025LIBS="-ldld  $LIBS"
13026cat >conftest.$ac_ext <<_ACEOF
13027/* confdefs.h.  */
13028_ACEOF
13029cat confdefs.h >>conftest.$ac_ext
13030cat >>conftest.$ac_ext <<_ACEOF
13031/* end confdefs.h.  */
13032
13033/* Override any gcc2 internal prototype to avoid an error.  */
13034#ifdef __cplusplus
13035extern "C"
13036#endif
13037/* We use char because int might match the return type of a gcc2
13038   builtin and then its argument prototype would still apply.  */
13039char dld_link ();
13040int
13041main ()
13042{
13043dld_link ();
13044  ;
13045  return 0;
13046}
13047_ACEOF
13048rm -f conftest.$ac_objext conftest$ac_exeext
13049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050  (eval $ac_link) 2>conftest.er1
13051  ac_status=$?
13052  grep -v '^ *+' conftest.er1 >conftest.err
13053  rm -f conftest.er1
13054  cat conftest.err >&5
13055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056  (exit $ac_status); } &&
13057	 { ac_try='test -z "$ac_cxx_werror_flag"
13058			 || test ! -s conftest.err'
13059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13060  (eval $ac_try) 2>&5
13061  ac_status=$?
13062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063  (exit $ac_status); }; } &&
13064	 { ac_try='test -s conftest$ac_exeext'
13065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066  (eval $ac_try) 2>&5
13067  ac_status=$?
13068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069  (exit $ac_status); }; }; then
13070  ac_cv_lib_dld_dld_link=yes
13071else
13072  echo "$as_me: failed program was:" >&5
13073sed 's/^/| /' conftest.$ac_ext >&5
13074
13075ac_cv_lib_dld_dld_link=no
13076fi
13077rm -f conftest.err conftest.$ac_objext \
13078      conftest$ac_exeext conftest.$ac_ext
13079LIBS=$ac_check_lib_save_LIBS
13080fi
13081echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13082echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13083if test $ac_cv_lib_dld_dld_link = yes; then
13084  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13085fi
13086
13087
13088fi
13089
13090
13091fi
13092
13093
13094fi
13095
13096
13097fi
13098
13099
13100fi
13101
13102    ;;
13103  esac
13104
13105  if test "x$lt_cv_dlopen" != xno; then
13106    enable_dlopen=yes
13107  else
13108    enable_dlopen=no
13109  fi
13110
13111  case $lt_cv_dlopen in
13112  dlopen)
13113    save_CPPFLAGS="$CPPFLAGS"
13114    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13115
13116    save_LDFLAGS="$LDFLAGS"
13117    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13118
13119    save_LIBS="$LIBS"
13120    LIBS="$lt_cv_dlopen_libs $LIBS"
13121
13122    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13123echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13124if test "${lt_cv_dlopen_self+set}" = set; then
13125  echo $ECHO_N "(cached) $ECHO_C" >&6
13126else
13127  	  if test "$cross_compiling" = yes; then :
13128  lt_cv_dlopen_self=cross
13129else
13130  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13131  lt_status=$lt_dlunknown
13132  cat > conftest.$ac_ext <<EOF
13133#line 13133 "configure"
13134#include "confdefs.h"
13135
13136#if HAVE_DLFCN_H
13137#include <dlfcn.h>
13138#endif
13139
13140#include <stdio.h>
13141
13142#ifdef RTLD_GLOBAL
13143#  define LT_DLGLOBAL		RTLD_GLOBAL
13144#else
13145#  ifdef DL_GLOBAL
13146#    define LT_DLGLOBAL		DL_GLOBAL
13147#  else
13148#    define LT_DLGLOBAL		0
13149#  endif
13150#endif
13151
13152/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13153   find out it does not work in some platform. */
13154#ifndef LT_DLLAZY_OR_NOW
13155#  ifdef RTLD_LAZY
13156#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13157#  else
13158#    ifdef DL_LAZY
13159#      define LT_DLLAZY_OR_NOW		DL_LAZY
13160#    else
13161#      ifdef RTLD_NOW
13162#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13163#      else
13164#        ifdef DL_NOW
13165#          define LT_DLLAZY_OR_NOW	DL_NOW
13166#        else
13167#          define LT_DLLAZY_OR_NOW	0
13168#        endif
13169#      endif
13170#    endif
13171#  endif
13172#endif
13173
13174#ifdef __cplusplus
13175extern "C" void exit (int);
13176#endif
13177
13178void fnord() { int i=42;}
13179int main ()
13180{
13181  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13182  int status = $lt_dlunknown;
13183
13184  if (self)
13185    {
13186      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13187      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13188      /* dlclose (self); */
13189    }
13190
13191    exit (status);
13192}
13193EOF
13194  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13195  (eval $ac_link) 2>&5
13196  ac_status=$?
13197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13199    (./conftest; exit; ) 2>/dev/null
13200    lt_status=$?
13201    case x$lt_status in
13202      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13203      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13204      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13205    esac
13206  else :
13207    # compilation failed
13208    lt_cv_dlopen_self=no
13209  fi
13210fi
13211rm -fr conftest*
13212
13213
13214fi
13215echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13216echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13217
13218    if test "x$lt_cv_dlopen_self" = xyes; then
13219      LDFLAGS="$LDFLAGS $link_static_flag"
13220      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13221echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13222if test "${lt_cv_dlopen_self_static+set}" = set; then
13223  echo $ECHO_N "(cached) $ECHO_C" >&6
13224else
13225  	  if test "$cross_compiling" = yes; then :
13226  lt_cv_dlopen_self_static=cross
13227else
13228  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13229  lt_status=$lt_dlunknown
13230  cat > conftest.$ac_ext <<EOF
13231#line 13231 "configure"
13232#include "confdefs.h"
13233
13234#if HAVE_DLFCN_H
13235#include <dlfcn.h>
13236#endif
13237
13238#include <stdio.h>
13239
13240#ifdef RTLD_GLOBAL
13241#  define LT_DLGLOBAL		RTLD_GLOBAL
13242#else
13243#  ifdef DL_GLOBAL
13244#    define LT_DLGLOBAL		DL_GLOBAL
13245#  else
13246#    define LT_DLGLOBAL		0
13247#  endif
13248#endif
13249
13250/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13251   find out it does not work in some platform. */
13252#ifndef LT_DLLAZY_OR_NOW
13253#  ifdef RTLD_LAZY
13254#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13255#  else
13256#    ifdef DL_LAZY
13257#      define LT_DLLAZY_OR_NOW		DL_LAZY
13258#    else
13259#      ifdef RTLD_NOW
13260#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13261#      else
13262#        ifdef DL_NOW
13263#          define LT_DLLAZY_OR_NOW	DL_NOW
13264#        else
13265#          define LT_DLLAZY_OR_NOW	0
13266#        endif
13267#      endif
13268#    endif
13269#  endif
13270#endif
13271
13272#ifdef __cplusplus
13273extern "C" void exit (int);
13274#endif
13275
13276void fnord() { int i=42;}
13277int main ()
13278{
13279  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13280  int status = $lt_dlunknown;
13281
13282  if (self)
13283    {
13284      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13285      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13286      /* dlclose (self); */
13287    }
13288
13289    exit (status);
13290}
13291EOF
13292  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13293  (eval $ac_link) 2>&5
13294  ac_status=$?
13295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13297    (./conftest; exit; ) 2>/dev/null
13298    lt_status=$?
13299    case x$lt_status in
13300      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13301      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13302      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13303    esac
13304  else :
13305    # compilation failed
13306    lt_cv_dlopen_self_static=no
13307  fi
13308fi
13309rm -fr conftest*
13310
13311
13312fi
13313echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13314echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13315    fi
13316
13317    CPPFLAGS="$save_CPPFLAGS"
13318    LDFLAGS="$save_LDFLAGS"
13319    LIBS="$save_LIBS"
13320    ;;
13321  esac
13322
13323  case $lt_cv_dlopen_self in
13324  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13325  *) enable_dlopen_self=unknown ;;
13326  esac
13327
13328  case $lt_cv_dlopen_self_static in
13329  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13330  *) enable_dlopen_self_static=unknown ;;
13331  esac
13332fi
13333
13334
13335# The else clause should only fire when bootstrapping the
13336# libtool distribution, otherwise you forgot to ship ltmain.sh
13337# with your package, and you will get complaints that there are
13338# no rules to generate ltmain.sh.
13339if test -f "$ltmain"; then
13340  # See if we are running on zsh, and set the options which allow our commands through
13341  # without removal of \ escapes.
13342  if test -n "${ZSH_VERSION+set}" ; then
13343    setopt NO_GLOB_SUBST
13344  fi
13345  # Now quote all the things that may contain metacharacters while being
13346  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13347  # variables and quote the copies for generation of the libtool script.
13348  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
13349    SED SHELL STRIP \
13350    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13351    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13352    deplibs_check_method reload_flag reload_cmds need_locks \
13353    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13354    lt_cv_sys_global_symbol_to_c_name_address \
13355    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13356    old_postinstall_cmds old_postuninstall_cmds \
13357    compiler_CXX \
13358    CC_CXX \
13359    LD_CXX \
13360    lt_prog_compiler_wl_CXX \
13361    lt_prog_compiler_pic_CXX \
13362    lt_prog_compiler_static_CXX \
13363    lt_prog_compiler_no_builtin_flag_CXX \
13364    export_dynamic_flag_spec_CXX \
13365    thread_safe_flag_spec_CXX \
13366    whole_archive_flag_spec_CXX \
13367    enable_shared_with_static_runtimes_CXX \
13368    old_archive_cmds_CXX \
13369    old_archive_from_new_cmds_CXX \
13370    predep_objects_CXX \
13371    postdep_objects_CXX \
13372    predeps_CXX \
13373    postdeps_CXX \
13374    compiler_lib_search_path_CXX \
13375    archive_cmds_CXX \
13376    archive_expsym_cmds_CXX \
13377    postinstall_cmds_CXX \
13378    postuninstall_cmds_CXX \
13379    old_archive_from_expsyms_cmds_CXX \
13380    allow_undefined_flag_CXX \
13381    no_undefined_flag_CXX \
13382    export_symbols_cmds_CXX \
13383    hardcode_libdir_flag_spec_CXX \
13384    hardcode_libdir_flag_spec_ld_CXX \
13385    hardcode_libdir_separator_CXX \
13386    hardcode_automatic_CXX \
13387    module_cmds_CXX \
13388    module_expsym_cmds_CXX \
13389    lt_cv_prog_compiler_c_o_CXX \
13390    exclude_expsyms_CXX \
13391    include_expsyms_CXX; do
13392
13393    case $var in
13394    old_archive_cmds_CXX | \
13395    old_archive_from_new_cmds_CXX | \
13396    archive_cmds_CXX | \
13397    archive_expsym_cmds_CXX | \
13398    module_cmds_CXX | \
13399    module_expsym_cmds_CXX | \
13400    old_archive_from_expsyms_cmds_CXX | \
13401    export_symbols_cmds_CXX | \
13402    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13403    postinstall_cmds | postuninstall_cmds | \
13404    old_postinstall_cmds | old_postuninstall_cmds | \
13405    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13406      # Double-quote double-evaled strings.
13407      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13408      ;;
13409    *)
13410      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13411      ;;
13412    esac
13413  done
13414
13415  case $lt_echo in
13416  *'\$0 --fallback-echo"')
13417    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13418    ;;
13419  esac
13420
13421cfgfile="$ofile"
13422
13423  cat <<__EOF__ >> "$cfgfile"
13424# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13425
13426# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13427
13428# Shell to use when invoking shell scripts.
13429SHELL=$lt_SHELL
13430
13431# Whether or not to build shared libraries.
13432build_libtool_libs=$enable_shared
13433
13434# Whether or not to build static libraries.
13435build_old_libs=$enable_static
13436
13437# Whether or not to add -lc for building shared libraries.
13438build_libtool_need_lc=$archive_cmds_need_lc_CXX
13439
13440# Whether or not to disallow shared libs when runtime libs are static
13441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13442
13443# Whether or not to optimize for fast installation.
13444fast_install=$enable_fast_install
13445
13446# The host system.
13447host_alias=$host_alias
13448host=$host
13449host_os=$host_os
13450
13451# The build system.
13452build_alias=$build_alias
13453build=$build
13454build_os=$build_os
13455
13456# An echo program that does not interpret backslashes.
13457echo=$lt_echo
13458
13459# The archiver.
13460AR=$lt_AR
13461AR_FLAGS=$lt_AR_FLAGS
13462
13463# A C compiler.
13464LTCC=$lt_LTCC
13465
13466# A language-specific compiler.
13467CC=$lt_compiler_CXX
13468
13469# Is the compiler the GNU C compiler?
13470with_gcc=$GCC_CXX
13471
13472# An ERE matcher.
13473EGREP=$lt_EGREP
13474
13475# The linker used to build libraries.
13476LD=$lt_LD_CXX
13477
13478# Whether we need hard or soft links.
13479LN_S=$lt_LN_S
13480
13481# A BSD-compatible nm program.
13482NM=$lt_NM
13483
13484# A symbol stripping program
13485STRIP=$lt_STRIP
13486
13487# Used to examine libraries when file_magic_cmd begins "file"
13488MAGIC_CMD=$MAGIC_CMD
13489
13490# Used on cygwin: DLL creation program.
13491DLLTOOL="$DLLTOOL"
13492
13493# Used on cygwin: object dumper.
13494OBJDUMP="$OBJDUMP"
13495
13496# Used on cygwin: assembler.
13497AS=$lt_AS
13498
13499# The name of the directory that contains temporary libtool files.
13500objdir=$objdir
13501
13502# How to create reloadable object files.
13503reload_flag=$lt_reload_flag
13504reload_cmds=$lt_reload_cmds
13505
13506# How to pass a linker flag through the compiler.
13507wl=$lt_lt_prog_compiler_wl_CXX
13508
13509# Object file suffix (normally "o").
13510objext="$ac_objext"
13511
13512# Old archive suffix (normally "a").
13513libext="$libext"
13514
13515# Shared library suffix (normally ".so").
13516shrext_cmds='$shrext_cmds'
13517
13518# Executable file suffix (normally "").
13519exeext="$exeext"
13520
13521# Additional compiler flags for building library objects.
13522pic_flag=$lt_lt_prog_compiler_pic_CXX
13523pic_mode=$pic_mode
13524
13525# What is the maximum length of a command?
13526max_cmd_len=$lt_cv_sys_max_cmd_len
13527
13528# Does compiler simultaneously support -c and -o options?
13529compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13530
13531# Must we lock files when doing compilation ?
13532need_locks=$lt_need_locks
13533
13534# Do we need the lib prefix for modules?
13535need_lib_prefix=$need_lib_prefix
13536
13537# Do we need a version for libraries?
13538need_version=$need_version
13539
13540# Whether dlopen is supported.
13541dlopen_support=$enable_dlopen
13542
13543# Whether dlopen of programs is supported.
13544dlopen_self=$enable_dlopen_self
13545
13546# Whether dlopen of statically linked programs is supported.
13547dlopen_self_static=$enable_dlopen_self_static
13548
13549# Compiler flag to prevent dynamic linking.
13550link_static_flag=$lt_lt_prog_compiler_static_CXX
13551
13552# Compiler flag to turn off builtin functions.
13553no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13554
13555# Compiler flag to allow reflexive dlopens.
13556export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13557
13558# Compiler flag to generate shared objects directly from archives.
13559whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13560
13561# Compiler flag to generate thread-safe objects.
13562thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13563
13564# Library versioning type.
13565version_type=$version_type
13566
13567# Format of library name prefix.
13568libname_spec=$lt_libname_spec
13569
13570# List of archive names.  First name is the real one, the rest are links.
13571# The last name is the one that the linker finds with -lNAME.
13572library_names_spec=$lt_library_names_spec
13573
13574# The coded name of the library, if different from the real name.
13575soname_spec=$lt_soname_spec
13576
13577# Commands used to build and install an old-style archive.
13578RANLIB=$lt_RANLIB
13579old_archive_cmds=$lt_old_archive_cmds_CXX
13580old_postinstall_cmds=$lt_old_postinstall_cmds
13581old_postuninstall_cmds=$lt_old_postuninstall_cmds
13582
13583# Create an old-style archive from a shared archive.
13584old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13585
13586# Create a temporary old-style archive to link instead of a shared archive.
13587old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13588
13589# Commands used to build and install a shared archive.
13590archive_cmds=$lt_archive_cmds_CXX
13591archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13592postinstall_cmds=$lt_postinstall_cmds
13593postuninstall_cmds=$lt_postuninstall_cmds
13594
13595# Commands used to build a loadable module (assumed same as above if empty)
13596module_cmds=$lt_module_cmds_CXX
13597module_expsym_cmds=$lt_module_expsym_cmds_CXX
13598
13599# Commands to strip libraries.
13600old_striplib=$lt_old_striplib
13601striplib=$lt_striplib
13602
13603# Dependencies to place before the objects being linked to create a
13604# shared library.
13605predep_objects=$lt_predep_objects_CXX
13606
13607# Dependencies to place after the objects being linked to create a
13608# shared library.
13609postdep_objects=$lt_postdep_objects_CXX
13610
13611# Dependencies to place before the objects being linked to create a
13612# shared library.
13613predeps=$lt_predeps_CXX
13614
13615# Dependencies to place after the objects being linked to create a
13616# shared library.
13617postdeps=$lt_postdeps_CXX
13618
13619# The library search path used internally by the compiler when linking
13620# a shared library.
13621compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13622
13623# Method to check whether dependent libraries are shared objects.
13624deplibs_check_method=$lt_deplibs_check_method
13625
13626# Command to use when deplibs_check_method == file_magic.
13627file_magic_cmd=$lt_file_magic_cmd
13628
13629# Flag that allows shared libraries with undefined symbols to be built.
13630allow_undefined_flag=$lt_allow_undefined_flag_CXX
13631
13632# Flag that forces no undefined symbols.
13633no_undefined_flag=$lt_no_undefined_flag_CXX
13634
13635# Commands used to finish a libtool library installation in a directory.
13636finish_cmds=$lt_finish_cmds
13637
13638# Same as above, but a single script fragment to be evaled but not shown.
13639finish_eval=$lt_finish_eval
13640
13641# Take the output of nm and produce a listing of raw symbols and C names.
13642global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13643
13644# Transform the output of nm in a proper C declaration
13645global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13646
13647# Transform the output of nm in a C name address pair
13648global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13649
13650# This is the shared library runtime path variable.
13651runpath_var=$runpath_var
13652
13653# This is the shared library path variable.
13654shlibpath_var=$shlibpath_var
13655
13656# Is shlibpath searched before the hard-coded library search path?
13657shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13658
13659# How to hardcode a shared library path into an executable.
13660hardcode_action=$hardcode_action_CXX
13661
13662# Whether we should hardcode library paths into libraries.
13663hardcode_into_libs=$hardcode_into_libs
13664
13665# Flag to hardcode \$libdir into a binary during linking.
13666# This must work even if \$libdir does not exist.
13667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13668
13669# If ld is used when linking, flag to hardcode \$libdir into
13670# a binary during linking. This must work even if \$libdir does
13671# not exist.
13672hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13673
13674# Whether we need a single -rpath flag with a separated argument.
13675hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13676
13677# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13678# resulting binary.
13679hardcode_direct=$hardcode_direct_CXX
13680
13681# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13682# resulting binary.
13683hardcode_minus_L=$hardcode_minus_L_CXX
13684
13685# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13686# the resulting binary.
13687hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13688
13689# Set to yes if building a shared library automatically hardcodes DIR into the library
13690# and all subsequent libraries and executables linked against it.
13691hardcode_automatic=$hardcode_automatic_CXX
13692
13693# Variables whose values should be saved in libtool wrapper scripts and
13694# restored at relink time.
13695variables_saved_for_relink="$variables_saved_for_relink"
13696
13697# Whether libtool must link a program against all its dependency libraries.
13698link_all_deplibs=$link_all_deplibs_CXX
13699
13700# Compile-time system search path for libraries
13701sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13702
13703# Run-time system search path for libraries
13704sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13705
13706# Fix the shell variable \$srcfile for the compiler.
13707fix_srcfile_path="$fix_srcfile_path_CXX"
13708
13709# Set to yes if exported symbols are required.
13710always_export_symbols=$always_export_symbols_CXX
13711
13712# The commands to list exported symbols.
13713export_symbols_cmds=$lt_export_symbols_cmds_CXX
13714
13715# The commands to extract the exported symbol list from a shared archive.
13716extract_expsyms_cmds=$lt_extract_expsyms_cmds
13717
13718# Symbols that should not be listed in the preloaded symbols.
13719exclude_expsyms=$lt_exclude_expsyms_CXX
13720
13721# Symbols that must always be exported.
13722include_expsyms=$lt_include_expsyms_CXX
13723
13724# ### END LIBTOOL TAG CONFIG: $tagname
13725
13726__EOF__
13727
13728
13729else
13730  # If there is no Makefile yet, we rely on a make rule to execute
13731  # `config.status --recheck' to rerun these tests and create the
13732  # libtool script then.
13733  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13734  if test -f "$ltmain_in"; then
13735    test -f Makefile && make "$ltmain"
13736  fi
13737fi
13738
13739
13740ac_ext=c
13741ac_cpp='$CPP $CPPFLAGS'
13742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13744ac_compiler_gnu=$ac_cv_c_compiler_gnu
13745
13746CC=$lt_save_CC
13747LDCXX=$LD
13748LD=$lt_save_LD
13749GCC=$lt_save_GCC
13750with_gnu_ldcxx=$with_gnu_ld
13751with_gnu_ld=$lt_save_with_gnu_ld
13752lt_cv_path_LDCXX=$lt_cv_path_LD
13753lt_cv_path_LD=$lt_save_path_LD
13754lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13755lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13756
13757	else
13758	  tagname=""
13759	fi
13760	;;
13761
13762      F77)
13763	if test -n "$F77" && test "X$F77" != "Xno"; then
13764
13765ac_ext=f
13766ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13767ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13768ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13769
13770
13771archive_cmds_need_lc_F77=no
13772allow_undefined_flag_F77=
13773always_export_symbols_F77=no
13774archive_expsym_cmds_F77=
13775export_dynamic_flag_spec_F77=
13776hardcode_direct_F77=no
13777hardcode_libdir_flag_spec_F77=
13778hardcode_libdir_flag_spec_ld_F77=
13779hardcode_libdir_separator_F77=
13780hardcode_minus_L_F77=no
13781hardcode_automatic_F77=no
13782module_cmds_F77=
13783module_expsym_cmds_F77=
13784link_all_deplibs_F77=unknown
13785old_archive_cmds_F77=$old_archive_cmds
13786no_undefined_flag_F77=
13787whole_archive_flag_spec_F77=
13788enable_shared_with_static_runtimes_F77=no
13789
13790# Source file extension for f77 test sources.
13791ac_ext=f
13792
13793# Object file extension for compiled f77 test sources.
13794objext=o
13795objext_F77=$objext
13796
13797# Code to be used in simple compile tests
13798lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13799
13800# Code to be used in simple link tests
13801lt_simple_link_test_code="      program t\n      end\n"
13802
13803# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13804
13805# If no C compiler was specified, use CC.
13806LTCC=${LTCC-"$CC"}
13807
13808# Allow CC to be a program name with arguments.
13809compiler=$CC
13810
13811
13812# Allow CC to be a program name with arguments.
13813lt_save_CC="$CC"
13814CC=${F77-"f77"}
13815compiler=$CC
13816compiler_F77=$CC
13817cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13818
13819echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13820echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13821echo "$as_me:$LINENO: result: $can_build_shared" >&5
13822echo "${ECHO_T}$can_build_shared" >&6
13823
13824echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13825echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13826test "$can_build_shared" = "no" && enable_shared=no
13827
13828# On AIX, shared libraries and static libraries use the same namespace, and
13829# are all built from PIC.
13830case "$host_os" in
13831aix3*)
13832  test "$enable_shared" = yes && enable_static=no
13833  if test -n "$RANLIB"; then
13834    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13835    postinstall_cmds='$RANLIB $lib'
13836  fi
13837  ;;
13838aix4* | aix5*)
13839  test "$enable_shared" = yes && enable_static=no
13840  ;;
13841esac
13842echo "$as_me:$LINENO: result: $enable_shared" >&5
13843echo "${ECHO_T}$enable_shared" >&6
13844
13845echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13846echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13847# Make sure either enable_shared or enable_static is yes.
13848test "$enable_shared" = yes || enable_static=yes
13849echo "$as_me:$LINENO: result: $enable_static" >&5
13850echo "${ECHO_T}$enable_static" >&6
13851
13852test "$ld_shlibs_F77" = no && can_build_shared=no
13853
13854GCC_F77="$G77"
13855LD_F77="$LD"
13856
13857lt_prog_compiler_wl_F77=
13858lt_prog_compiler_pic_F77=
13859lt_prog_compiler_static_F77=
13860
13861echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13862echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13863
13864  if test "$GCC" = yes; then
13865    lt_prog_compiler_wl_F77='-Wl,'
13866    lt_prog_compiler_static_F77='-static'
13867
13868    case $host_os in
13869      aix*)
13870      # All AIX code is PIC.
13871      if test "$host_cpu" = ia64; then
13872	# AIX 5 now supports IA64 processor
13873	lt_prog_compiler_static_F77='-Bstatic'
13874      fi
13875      ;;
13876
13877    amigaos*)
13878      # FIXME: we need at least 68020 code to build shared libraries, but
13879      # adding the `-m68020' flag to GCC prevents building anything better,
13880      # like `-m68040'.
13881      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13882      ;;
13883
13884    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13885      # PIC is the default for these OSes.
13886      ;;
13887
13888    mingw* | pw32* | os2*)
13889      # This hack is so that the source file can tell whether it is being
13890      # built for inclusion in a dll (and should export symbols for example).
13891      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13892      ;;
13893
13894    darwin* | rhapsody*)
13895      # PIC is the default on this platform
13896      # Common symbols not allowed in MH_DYLIB files
13897      lt_prog_compiler_pic_F77='-fno-common'
13898      ;;
13899
13900    msdosdjgpp*)
13901      # Just because we use GCC doesn't mean we suddenly get shared libraries
13902      # on systems that don't support them.
13903      lt_prog_compiler_can_build_shared_F77=no
13904      enable_shared=no
13905      ;;
13906
13907    sysv4*MP*)
13908      if test -d /usr/nec; then
13909	lt_prog_compiler_pic_F77=-Kconform_pic
13910      fi
13911      ;;
13912
13913    hpux*)
13914      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13915      # not for PA HP-UX.
13916      case "$host_cpu" in
13917      hppa*64*|ia64*)
13918	# +Z the default
13919	;;
13920      *)
13921	lt_prog_compiler_pic_F77='-fPIC'
13922	;;
13923      esac
13924      ;;
13925
13926    *)
13927      lt_prog_compiler_pic_F77='-fPIC'
13928      ;;
13929    esac
13930  else
13931    # PORTME Check for flag to pass linker flags through the system compiler.
13932    case $host_os in
13933    aix*)
13934      lt_prog_compiler_wl_F77='-Wl,'
13935      if test "$host_cpu" = ia64; then
13936	# AIX 5 now supports IA64 processor
13937	lt_prog_compiler_static_F77='-Bstatic'
13938      else
13939	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13940      fi
13941      ;;
13942      darwin*)
13943        # PIC is the default on this platform
13944        # Common symbols not allowed in MH_DYLIB files
13945       case "$cc_basename" in
13946         xlc*)
13947         lt_prog_compiler_pic_F77='-qnocommon'
13948         lt_prog_compiler_wl_F77='-Wl,'
13949         ;;
13950       esac
13951       ;;
13952
13953    mingw* | pw32* | os2*)
13954      # This hack is so that the source file can tell whether it is being
13955      # built for inclusion in a dll (and should export symbols for example).
13956      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13957      ;;
13958
13959    hpux9* | hpux10* | hpux11*)
13960      lt_prog_compiler_wl_F77='-Wl,'
13961      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13962      # not for PA HP-UX.
13963      case "$host_cpu" in
13964      hppa*64*|ia64*)
13965	# +Z the default
13966	;;
13967      *)
13968	lt_prog_compiler_pic_F77='+Z'
13969	;;
13970      esac
13971      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13972      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13973      ;;
13974
13975    irix5* | irix6* | nonstopux*)
13976      lt_prog_compiler_wl_F77='-Wl,'
13977      # PIC (with -KPIC) is the default.
13978      lt_prog_compiler_static_F77='-non_shared'
13979      ;;
13980
13981    newsos6)
13982      lt_prog_compiler_pic_F77='-KPIC'
13983      lt_prog_compiler_static_F77='-Bstatic'
13984      ;;
13985
13986    linux*)
13987      case $cc_basename in
13988      icc* | ecc*)
13989	lt_prog_compiler_wl_F77='-Wl,'
13990	lt_prog_compiler_pic_F77='-KPIC'
13991	lt_prog_compiler_static_F77='-static'
13992        ;;
13993      pgcc | pgf77 | pgf90)
13994        # Portland Group compilers (*not* the Pentium gcc compiler,
13995	# which looks to be a dead project)
13996	lt_prog_compiler_wl_F77='-Wl,'
13997	lt_prog_compiler_pic_F77='-fpic'
13998	lt_prog_compiler_static_F77='-static'
13999        ;;
14000      ccc*)
14001        lt_prog_compiler_wl_F77='-Wl,'
14002        # All Alpha code is PIC.
14003        lt_prog_compiler_static_F77='-non_shared'
14004        ;;
14005      esac
14006      ;;
14007
14008    osf3* | osf4* | osf5*)
14009      lt_prog_compiler_wl_F77='-Wl,'
14010      # All OSF/1 code is PIC.
14011      lt_prog_compiler_static_F77='-non_shared'
14012      ;;
14013
14014    sco3.2v5*)
14015      lt_prog_compiler_pic_F77='-Kpic'
14016      lt_prog_compiler_static_F77='-dn'
14017      ;;
14018
14019    solaris*)
14020      lt_prog_compiler_wl_F77='-Wl,'
14021      lt_prog_compiler_pic_F77='-KPIC'
14022      lt_prog_compiler_static_F77='-Bstatic'
14023      ;;
14024
14025    sunos4*)
14026      lt_prog_compiler_wl_F77='-Qoption ld '
14027      lt_prog_compiler_pic_F77='-PIC'
14028      lt_prog_compiler_static_F77='-Bstatic'
14029      ;;
14030
14031    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14032      lt_prog_compiler_wl_F77='-Wl,'
14033      lt_prog_compiler_pic_F77='-KPIC'
14034      lt_prog_compiler_static_F77='-Bstatic'
14035      ;;
14036
14037    sysv4*MP*)
14038      if test -d /usr/nec ;then
14039	lt_prog_compiler_pic_F77='-Kconform_pic'
14040	lt_prog_compiler_static_F77='-Bstatic'
14041      fi
14042      ;;
14043
14044    unicos*)
14045      lt_prog_compiler_wl_F77='-Wl,'
14046      lt_prog_compiler_can_build_shared_F77=no
14047      ;;
14048
14049    uts4*)
14050      lt_prog_compiler_pic_F77='-pic'
14051      lt_prog_compiler_static_F77='-Bstatic'
14052      ;;
14053
14054    *)
14055      lt_prog_compiler_can_build_shared_F77=no
14056      ;;
14057    esac
14058  fi
14059
14060echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14061echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14062
14063#
14064# Check to make sure the PIC flag actually works.
14065#
14066if test -n "$lt_prog_compiler_pic_F77"; then
14067
14068echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14069echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14070if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14071  echo $ECHO_N "(cached) $ECHO_C" >&6
14072else
14073  lt_prog_compiler_pic_works_F77=no
14074  ac_outfile=conftest.$ac_objext
14075   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14076   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14077   # Insert the option either (1) after the last *FLAGS variable, or
14078   # (2) before a word containing "conftest.", or (3) at the end.
14079   # Note that $ac_compile itself does not contain backslashes and begins
14080   # with a dollar sign (not a hyphen), so the echo should work correctly.
14081   # The option is referenced via a variable to avoid confusing sed.
14082   lt_compile=`echo "$ac_compile" | $SED \
14083   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14084   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14085   -e 's:$: $lt_compiler_flag:'`
14086   (eval echo "\"\$as_me:14086: $lt_compile\"" >&5)
14087   (eval "$lt_compile" 2>conftest.err)
14088   ac_status=$?
14089   cat conftest.err >&5
14090   echo "$as_me:14090: \$? = $ac_status" >&5
14091   if (exit $ac_status) && test -s "$ac_outfile"; then
14092     # The compiler can only warn and ignore the option if not recognized
14093     # So say no if there are warnings
14094     if test ! -s conftest.err; then
14095       lt_prog_compiler_pic_works_F77=yes
14096     fi
14097   fi
14098   $rm conftest*
14099
14100fi
14101echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14102echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14103
14104if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14105    case $lt_prog_compiler_pic_F77 in
14106     "" | " "*) ;;
14107     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14108     esac
14109else
14110    lt_prog_compiler_pic_F77=
14111     lt_prog_compiler_can_build_shared_F77=no
14112fi
14113
14114fi
14115case "$host_os" in
14116  # For platforms which do not support PIC, -DPIC is meaningless:
14117  *djgpp*)
14118    lt_prog_compiler_pic_F77=
14119    ;;
14120  *)
14121    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14122    ;;
14123esac
14124
14125echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14126echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14127if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14128  echo $ECHO_N "(cached) $ECHO_C" >&6
14129else
14130  lt_cv_prog_compiler_c_o_F77=no
14131   $rm -r conftest 2>/dev/null
14132   mkdir conftest
14133   cd conftest
14134   mkdir out
14135   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14136
14137   lt_compiler_flag="-o out/conftest2.$ac_objext"
14138   # Insert the option either (1) after the last *FLAGS variable, or
14139   # (2) before a word containing "conftest.", or (3) at the end.
14140   # Note that $ac_compile itself does not contain backslashes and begins
14141   # with a dollar sign (not a hyphen), so the echo should work correctly.
14142   lt_compile=`echo "$ac_compile" | $SED \
14143   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14144   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14145   -e 's:$: $lt_compiler_flag:'`
14146   (eval echo "\"\$as_me:14146: $lt_compile\"" >&5)
14147   (eval "$lt_compile" 2>out/conftest.err)
14148   ac_status=$?
14149   cat out/conftest.err >&5
14150   echo "$as_me:14150: \$? = $ac_status" >&5
14151   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14152   then
14153     # The compiler can only warn and ignore the option if not recognized
14154     # So say no if there are warnings
14155     if test ! -s out/conftest.err; then
14156       lt_cv_prog_compiler_c_o_F77=yes
14157     fi
14158   fi
14159   chmod u+w .
14160   $rm conftest*
14161   # SGI C++ compiler will create directory out/ii_files/ for
14162   # template instantiation
14163   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14164   $rm out/* && rmdir out
14165   cd ..
14166   rmdir conftest
14167   $rm conftest*
14168
14169fi
14170echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14171echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14172
14173
14174hard_links="nottested"
14175if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14176  # do not overwrite the value of need_locks provided by the user
14177  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14178echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14179  hard_links=yes
14180  $rm conftest*
14181  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14182  touch conftest.a
14183  ln conftest.a conftest.b 2>&5 || hard_links=no
14184  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14185  echo "$as_me:$LINENO: result: $hard_links" >&5
14186echo "${ECHO_T}$hard_links" >&6
14187  if test "$hard_links" = no; then
14188    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14189echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14190    need_locks=warn
14191  fi
14192else
14193  need_locks=no
14194fi
14195
14196echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14197echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14198
14199  runpath_var=
14200  allow_undefined_flag_F77=
14201  enable_shared_with_static_runtimes_F77=no
14202  archive_cmds_F77=
14203  archive_expsym_cmds_F77=
14204  old_archive_From_new_cmds_F77=
14205  old_archive_from_expsyms_cmds_F77=
14206  export_dynamic_flag_spec_F77=
14207  whole_archive_flag_spec_F77=
14208  thread_safe_flag_spec_F77=
14209  hardcode_libdir_flag_spec_F77=
14210  hardcode_libdir_flag_spec_ld_F77=
14211  hardcode_libdir_separator_F77=
14212  hardcode_direct_F77=no
14213  hardcode_minus_L_F77=no
14214  hardcode_shlibpath_var_F77=unsupported
14215  link_all_deplibs_F77=unknown
14216  hardcode_automatic_F77=no
14217  module_cmds_F77=
14218  module_expsym_cmds_F77=
14219  always_export_symbols_F77=no
14220  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14221  # include_expsyms should be a list of space-separated symbols to be *always*
14222  # included in the symbol list
14223  include_expsyms_F77=
14224  # exclude_expsyms can be an extended regexp of symbols to exclude
14225  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14226  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14227  # as well as any symbol that contains `d'.
14228  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14229  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14230  # platforms (ab)use it in PIC code, but their linkers get confused if
14231  # the symbol is explicitly referenced.  Since portable code cannot
14232  # rely on this symbol name, it's probably fine to never include it in
14233  # preloaded symbol tables.
14234  extract_expsyms_cmds=
14235
14236  case $host_os in
14237  cygwin* | mingw* | pw32*)
14238    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14239    # When not using gcc, we currently assume that we are using
14240    # Microsoft Visual C++.
14241    if test "$GCC" != yes; then
14242      with_gnu_ld=no
14243    fi
14244    ;;
14245  openbsd*)
14246    with_gnu_ld=no
14247    ;;
14248  esac
14249
14250  ld_shlibs_F77=yes
14251  if test "$with_gnu_ld" = yes; then
14252    # If archive_cmds runs LD, not CC, wlarc should be empty
14253    wlarc='${wl}'
14254
14255    # See if GNU ld supports shared libraries.
14256    case $host_os in
14257    aix3* | aix4* | aix5*)
14258      # On AIX/PPC, the GNU linker is very broken
14259      if test "$host_cpu" != ia64; then
14260	ld_shlibs_F77=no
14261	cat <<EOF 1>&2
14262
14263*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14264*** to be unable to reliably create shared libraries on AIX.
14265*** Therefore, libtool is disabling shared libraries support.  If you
14266*** really care for shared libraries, you may want to modify your PATH
14267*** so that a non-GNU linker is found, and then restart.
14268
14269EOF
14270      fi
14271      ;;
14272
14273    amigaos*)
14274      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)'
14275      hardcode_libdir_flag_spec_F77='-L$libdir'
14276      hardcode_minus_L_F77=yes
14277
14278      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14279      # that the semantics of dynamic libraries on AmigaOS, at least up
14280      # to version 4, is to share data among multiple programs linked
14281      # with the same dynamic library.  Since this doesn't match the
14282      # behavior of shared libraries on other platforms, we can't use
14283      # them.
14284      ld_shlibs_F77=no
14285      ;;
14286
14287    beos*)
14288      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14289	allow_undefined_flag_F77=unsupported
14290	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14291	# support --undefined.  This deserves some investigation.  FIXME
14292	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14293      else
14294	ld_shlibs_F77=no
14295      fi
14296      ;;
14297
14298    cygwin* | mingw* | pw32*)
14299      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14300      # as there is no search path for DLLs.
14301      hardcode_libdir_flag_spec_F77='-L$libdir'
14302      allow_undefined_flag_F77=unsupported
14303      always_export_symbols_F77=no
14304      enable_shared_with_static_runtimes_F77=yes
14305      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14306
14307      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14308        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14309	# If the export-symbols file already is a .def file (1st line
14310	# is EXPORTS), use it as is; otherwise, prepend...
14311	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14312	  cp $export_symbols $output_objdir/$soname.def;
14313	else
14314	  echo EXPORTS > $output_objdir/$soname.def;
14315	  cat $export_symbols >> $output_objdir/$soname.def;
14316	fi~
14317	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14318      else
14319	ld_shlibs_F77=no
14320      fi
14321      ;;
14322
14323    netbsd*)
14324      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14325	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14326	wlarc=
14327      else
14328	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14329	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14330      fi
14331      ;;
14332
14333    solaris* | sysv5*)
14334      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14335	ld_shlibs_F77=no
14336	cat <<EOF 1>&2
14337
14338*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14339*** create shared libraries on Solaris systems.  Therefore, libtool
14340*** is disabling shared libraries support.  We urge you to upgrade GNU
14341*** binutils to release 2.9.1 or newer.  Another option is to modify
14342*** your PATH or compiler configuration so that the native linker is
14343*** used, and then restart.
14344
14345EOF
14346      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14347	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14348	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14349      else
14350	ld_shlibs_F77=no
14351      fi
14352      ;;
14353
14354    sunos4*)
14355      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14356      wlarc=
14357      hardcode_direct_F77=yes
14358      hardcode_shlibpath_var_F77=no
14359      ;;
14360
14361  linux*)
14362    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14363      tmp_addflag=
14364      case $CC,$host_cpu in
14365      pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
14366        tmp_addflag=' -fpic' ;;
14367      ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14368        tmp_addflag=' -i_dynamic' ;;
14369      efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14370        tmp_addflag=' -i_dynamic -nofor_main' ;;
14371      ifc* | ifort*)			# Intel Fortran compiler
14372      	tmp_addflag=' -nofor_main' ;;
14373      esac
14374      archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14375      supports_anon_versioning=no
14376      case `$LD -v 2>/dev/null` in
14377        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14378        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14379        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14380        *\ 2.11.*) ;; # other 2.11 versions
14381        *) supports_anon_versioning=yes ;;
14382      esac
14383      if test $supports_anon_versioning = yes; then
14384        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14385cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14386$echo "local: *; };" >> $output_objdir/$libname.ver~
14387        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14388      else
14389        archive_expsym_cmds_F77=$archive_cmds_F77
14390      fi
14391    else
14392      ld_shlibs_F77=no
14393    fi
14394    ;;
14395
14396    *)
14397      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14398	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14399	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14400      else
14401	ld_shlibs_F77=no
14402      fi
14403      ;;
14404    esac
14405
14406    if test "$ld_shlibs_F77" = yes; then
14407      runpath_var=LD_RUN_PATH
14408      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14409      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14410      # ancient GNU ld didn't support --whole-archive et. al.
14411      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14412 	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14413      else
14414  	whole_archive_flag_spec_F77=
14415      fi
14416    fi
14417  else
14418    # PORTME fill in a description of your system's linker (not GNU ld)
14419    case $host_os in
14420    aix3*)
14421      allow_undefined_flag_F77=unsupported
14422      always_export_symbols_F77=yes
14423      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'
14424      # Note: this linker hardcodes the directories in LIBPATH if there
14425      # are no directories specified by -L.
14426      hardcode_minus_L_F77=yes
14427      if test "$GCC" = yes && test -z "$link_static_flag"; then
14428	# Neither direct hardcoding nor static linking is supported with a
14429	# broken collect2.
14430	hardcode_direct_F77=unsupported
14431      fi
14432      ;;
14433
14434    aix4* | aix5*)
14435      if test "$host_cpu" = ia64; then
14436	# On IA64, the linker does run time linking by default, so we don't
14437	# have to do anything special.
14438	aix_use_runtimelinking=no
14439	exp_sym_flag='-Bexport'
14440	no_entry_flag=""
14441      else
14442	# If we're using GNU nm, then we don't want the "-C" option.
14443	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14444	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14445	  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'
14446	else
14447	  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'
14448	fi
14449	aix_use_runtimelinking=no
14450
14451	# Test if we are trying to use run time linking or normal
14452	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14453	# need to do runtime linking.
14454	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14455	  for ld_flag in $LDFLAGS; do
14456  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14457  	    aix_use_runtimelinking=yes
14458  	    break
14459  	  fi
14460	  done
14461	esac
14462
14463	exp_sym_flag='-bexport'
14464	no_entry_flag='-bnoentry'
14465      fi
14466
14467      # When large executables or shared objects are built, AIX ld can
14468      # have problems creating the table of contents.  If linking a library
14469      # or program results in "error TOC overflow" add -mminimal-toc to
14470      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14471      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14472
14473      archive_cmds_F77=''
14474      hardcode_direct_F77=yes
14475      hardcode_libdir_separator_F77=':'
14476      link_all_deplibs_F77=yes
14477
14478      if test "$GCC" = yes; then
14479	case $host_os in aix4.[012]|aix4.[012].*)
14480	# We only want to do this on AIX 4.2 and lower, the check
14481	# below for broken collect2 doesn't work under 4.3+
14482	  collect2name=`${CC} -print-prog-name=collect2`
14483	  if test -f "$collect2name" && \
14484  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14485	  then
14486  	  # We have reworked collect2
14487  	  hardcode_direct_F77=yes
14488	  else
14489  	  # We have old collect2
14490  	  hardcode_direct_F77=unsupported
14491  	  # It fails to find uninstalled libraries when the uninstalled
14492  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14493  	  # to unsupported forces relinking
14494  	  hardcode_minus_L_F77=yes
14495  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14496  	  hardcode_libdir_separator_F77=
14497	  fi
14498	esac
14499	shared_flag='-shared'
14500	if test "$aix_use_runtimelinking" = yes; then
14501	  shared_flag="$shared_flag "'${wl}-G'
14502	fi
14503      else
14504	# not using gcc
14505	if test "$host_cpu" = ia64; then
14506  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14507  	# chokes on -Wl,-G. The following line is correct:
14508	  shared_flag='-G'
14509	else
14510  	if test "$aix_use_runtimelinking" = yes; then
14511	    shared_flag='${wl}-G'
14512	  else
14513	    shared_flag='${wl}-bM:SRE'
14514  	fi
14515	fi
14516      fi
14517
14518      # It seems that -bexpall does not export symbols beginning with
14519      # underscore (_), so it is better to generate a list of symbols to export.
14520      always_export_symbols_F77=yes
14521      if test "$aix_use_runtimelinking" = yes; then
14522	# Warning - without using the other runtime loading flags (-brtl),
14523	# -berok will link without error, but may produce a broken library.
14524	allow_undefined_flag_F77='-berok'
14525       # Determine the default libpath from the value encoded in an empty executable.
14526       cat >conftest.$ac_ext <<_ACEOF
14527      program main
14528
14529      end
14530_ACEOF
14531rm -f conftest.$ac_objext conftest$ac_exeext
14532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14533  (eval $ac_link) 2>conftest.er1
14534  ac_status=$?
14535  grep -v '^ *+' conftest.er1 >conftest.err
14536  rm -f conftest.er1
14537  cat conftest.err >&5
14538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539  (exit $ac_status); } &&
14540	 { ac_try='test -z "$ac_f77_werror_flag"
14541			 || test ! -s conftest.err'
14542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543  (eval $ac_try) 2>&5
14544  ac_status=$?
14545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546  (exit $ac_status); }; } &&
14547	 { ac_try='test -s conftest$ac_exeext'
14548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549  (eval $ac_try) 2>&5
14550  ac_status=$?
14551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552  (exit $ac_status); }; }; then
14553
14554aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14555}'`
14556# Check for a 64-bit object if we didn't find anything.
14557if 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; }
14558}'`; fi
14559else
14560  echo "$as_me: failed program was:" >&5
14561sed 's/^/| /' conftest.$ac_ext >&5
14562
14563fi
14564rm -f conftest.err conftest.$ac_objext \
14565      conftest$ac_exeext conftest.$ac_ext
14566if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14567
14568       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14569	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"
14570       else
14571	if test "$host_cpu" = ia64; then
14572	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14573	  allow_undefined_flag_F77="-z nodefs"
14574	  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"
14575	else
14576	 # Determine the default libpath from the value encoded in an empty executable.
14577	 cat >conftest.$ac_ext <<_ACEOF
14578      program main
14579
14580      end
14581_ACEOF
14582rm -f conftest.$ac_objext conftest$ac_exeext
14583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14584  (eval $ac_link) 2>conftest.er1
14585  ac_status=$?
14586  grep -v '^ *+' conftest.er1 >conftest.err
14587  rm -f conftest.er1
14588  cat conftest.err >&5
14589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590  (exit $ac_status); } &&
14591	 { ac_try='test -z "$ac_f77_werror_flag"
14592			 || test ! -s conftest.err'
14593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594  (eval $ac_try) 2>&5
14595  ac_status=$?
14596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597  (exit $ac_status); }; } &&
14598	 { ac_try='test -s conftest$ac_exeext'
14599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600  (eval $ac_try) 2>&5
14601  ac_status=$?
14602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603  (exit $ac_status); }; }; then
14604
14605aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14606}'`
14607# Check for a 64-bit object if we didn't find anything.
14608if 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; }
14609}'`; fi
14610else
14611  echo "$as_me: failed program was:" >&5
14612sed 's/^/| /' conftest.$ac_ext >&5
14613
14614fi
14615rm -f conftest.err conftest.$ac_objext \
14616      conftest$ac_exeext conftest.$ac_ext
14617if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14618
14619	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14620	  # Warning - without using the other run time loading flags,
14621	  # -berok will link without error, but may produce a broken library.
14622	  no_undefined_flag_F77=' ${wl}-bernotok'
14623	  allow_undefined_flag_F77=' ${wl}-berok'
14624	  # -bexpall does not export symbols beginning with underscore (_)
14625	  always_export_symbols_F77=yes
14626	  # Exported symbols can be pulled into shared objects from archives
14627	  whole_archive_flag_spec_F77=' '
14628	  archive_cmds_need_lc_F77=yes
14629	  # This is similar to how AIX traditionally builds it's shared libraries.
14630	  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'
14631	fi
14632      fi
14633      ;;
14634
14635    amigaos*)
14636      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)'
14637      hardcode_libdir_flag_spec_F77='-L$libdir'
14638      hardcode_minus_L_F77=yes
14639      # see comment about different semantics on the GNU ld section
14640      ld_shlibs_F77=no
14641      ;;
14642
14643    bsdi[45]*)
14644      export_dynamic_flag_spec_F77=-rdynamic
14645      ;;
14646
14647    cygwin* | mingw* | pw32*)
14648      # When not using gcc, we currently assume that we are using
14649      # Microsoft Visual C++.
14650      # hardcode_libdir_flag_spec is actually meaningless, as there is
14651      # no search path for DLLs.
14652      hardcode_libdir_flag_spec_F77=' '
14653      allow_undefined_flag_F77=unsupported
14654      # Tell ltmain to make .lib files, not .a files.
14655      libext=lib
14656      # Tell ltmain to make .dll files, not .so files.
14657      shrext_cmds=".dll"
14658      # FIXME: Setting linknames here is a bad hack.
14659      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14660      # The linker will automatically build a .lib file if we build a DLL.
14661      old_archive_From_new_cmds_F77='true'
14662      # FIXME: Should let the user specify the lib program.
14663      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14664      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14665      enable_shared_with_static_runtimes_F77=yes
14666      ;;
14667
14668    darwin* | rhapsody*)
14669      case "$host_os" in
14670        rhapsody* | darwin1.[012])
14671         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14672         ;;
14673       *) # Darwin 1.3 on
14674         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14675           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14676         else
14677           case ${MACOSX_DEPLOYMENT_TARGET} in
14678             10.[012])
14679               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14680               ;;
14681             10.*)
14682               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14683               ;;
14684           esac
14685         fi
14686         ;;
14687      esac
14688      archive_cmds_need_lc_F77=no
14689      hardcode_direct_F77=no
14690      hardcode_automatic_F77=yes
14691      hardcode_shlibpath_var_F77=unsupported
14692      whole_archive_flag_spec_F77=''
14693      link_all_deplibs_F77=yes
14694    if test "$GCC" = yes ; then
14695    	output_verbose_link_cmd='echo'
14696        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14697      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14698      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14699      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}'
14700      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}'
14701    else
14702      case "$cc_basename" in
14703        xlc*)
14704         output_verbose_link_cmd='echo'
14705         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14706         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14707          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14708         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}'
14709          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}'
14710          ;;
14711       *)
14712         ld_shlibs_F77=no
14713          ;;
14714      esac
14715    fi
14716      ;;
14717
14718    dgux*)
14719      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14720      hardcode_libdir_flag_spec_F77='-L$libdir'
14721      hardcode_shlibpath_var_F77=no
14722      ;;
14723
14724    freebsd1*)
14725      ld_shlibs_F77=no
14726      ;;
14727
14728    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14729    # support.  Future versions do this automatically, but an explicit c++rt0.o
14730    # does not break anything, and helps significantly (at the cost of a little
14731    # extra space).
14732    freebsd2.2*)
14733      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14734      hardcode_libdir_flag_spec_F77='-R$libdir'
14735      hardcode_direct_F77=yes
14736      hardcode_shlibpath_var_F77=no
14737      ;;
14738
14739    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14740    freebsd2*)
14741      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14742      hardcode_direct_F77=yes
14743      hardcode_minus_L_F77=yes
14744      hardcode_shlibpath_var_F77=no
14745      ;;
14746
14747    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14748    freebsd* | kfreebsd*-gnu | dragonfly*)
14749      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14750      hardcode_libdir_flag_spec_F77='-R$libdir'
14751      hardcode_direct_F77=yes
14752      hardcode_shlibpath_var_F77=no
14753      ;;
14754
14755    hpux9*)
14756      if test "$GCC" = yes; then
14757	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'
14758      else
14759	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'
14760      fi
14761      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14762      hardcode_libdir_separator_F77=:
14763      hardcode_direct_F77=yes
14764
14765      # hardcode_minus_L: Not really in the search PATH,
14766      # but as the default location of the library.
14767      hardcode_minus_L_F77=yes
14768      export_dynamic_flag_spec_F77='${wl}-E'
14769      ;;
14770
14771    hpux10* | hpux11*)
14772      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14773	case "$host_cpu" in
14774	hppa*64*|ia64*)
14775	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14776	  ;;
14777	*)
14778	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14779	  ;;
14780	esac
14781      else
14782	case "$host_cpu" in
14783	hppa*64*|ia64*)
14784	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14785	  ;;
14786	*)
14787	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14788	  ;;
14789	esac
14790      fi
14791      if test "$with_gnu_ld" = no; then
14792	case "$host_cpu" in
14793	hppa*64*)
14794	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14795	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14796	  hardcode_libdir_separator_F77=:
14797	  hardcode_direct_F77=no
14798	  hardcode_shlibpath_var_F77=no
14799	  ;;
14800	ia64*)
14801	  hardcode_libdir_flag_spec_F77='-L$libdir'
14802	  hardcode_direct_F77=no
14803	  hardcode_shlibpath_var_F77=no
14804
14805	  # hardcode_minus_L: Not really in the search PATH,
14806	  # but as the default location of the library.
14807	  hardcode_minus_L_F77=yes
14808	  ;;
14809	*)
14810	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14811	  hardcode_libdir_separator_F77=:
14812	  hardcode_direct_F77=yes
14813	  export_dynamic_flag_spec_F77='${wl}-E'
14814
14815	  # hardcode_minus_L: Not really in the search PATH,
14816	  # but as the default location of the library.
14817	  hardcode_minus_L_F77=yes
14818	  ;;
14819	esac
14820      fi
14821      ;;
14822
14823    irix5* | irix6* | nonstopux*)
14824      if test "$GCC" = yes; then
14825	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'
14826      else
14827	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'
14828	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14829      fi
14830      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14831      hardcode_libdir_separator_F77=:
14832      link_all_deplibs_F77=yes
14833      ;;
14834
14835    netbsd*)
14836      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14837	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14838      else
14839	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14840      fi
14841      hardcode_libdir_flag_spec_F77='-R$libdir'
14842      hardcode_direct_F77=yes
14843      hardcode_shlibpath_var_F77=no
14844      ;;
14845
14846    newsos6)
14847      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14848      hardcode_direct_F77=yes
14849      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14850      hardcode_libdir_separator_F77=:
14851      hardcode_shlibpath_var_F77=no
14852      ;;
14853
14854    openbsd*)
14855      hardcode_direct_F77=yes
14856      hardcode_shlibpath_var_F77=no
14857      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14858	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14859	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14860	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14861	export_dynamic_flag_spec_F77='${wl}-E'
14862      else
14863       case $host_os in
14864	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14865	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14866	   hardcode_libdir_flag_spec_F77='-R$libdir'
14867	   ;;
14868	 *)
14869	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14870	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14871	   ;;
14872       esac
14873      fi
14874      ;;
14875
14876    os2*)
14877      hardcode_libdir_flag_spec_F77='-L$libdir'
14878      hardcode_minus_L_F77=yes
14879      allow_undefined_flag_F77=unsupported
14880      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'
14881      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14882      ;;
14883
14884    osf3*)
14885      if test "$GCC" = yes; then
14886	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14887	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'
14888      else
14889	allow_undefined_flag_F77=' -expect_unresolved \*'
14890	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'
14891      fi
14892      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14893      hardcode_libdir_separator_F77=:
14894      ;;
14895
14896    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14897      if test "$GCC" = yes; then
14898	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14899	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'
14900	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14901      else
14902	allow_undefined_flag_F77=' -expect_unresolved \*'
14903	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'
14904	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~
14905	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14906
14907	# Both c and cxx compiler support -rpath directly
14908	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14909      fi
14910      hardcode_libdir_separator_F77=:
14911      ;;
14912
14913    sco3.2v5*)
14914      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14915      hardcode_shlibpath_var_F77=no
14916      export_dynamic_flag_spec_F77='${wl}-Bexport'
14917      runpath_var=LD_RUN_PATH
14918      hardcode_runpath_var=yes
14919      ;;
14920
14921    solaris*)
14922      no_undefined_flag_F77=' -z text'
14923      if test "$GCC" = yes; then
14924	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14925	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14926	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14927      else
14928	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14929	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14930  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14931      fi
14932      hardcode_libdir_flag_spec_F77='-R$libdir'
14933      hardcode_shlibpath_var_F77=no
14934      case $host_os in
14935      solaris2.[0-5] | solaris2.[0-5].*) ;;
14936      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14937	whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
14938      esac
14939      link_all_deplibs_F77=yes
14940      ;;
14941
14942    sunos4*)
14943      if test "x$host_vendor" = xsequent; then
14944	# Use $CC to link under sequent, because it throws in some extra .o
14945	# files that make .init and .fini sections work.
14946	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14947      else
14948	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14949      fi
14950      hardcode_libdir_flag_spec_F77='-L$libdir'
14951      hardcode_direct_F77=yes
14952      hardcode_minus_L_F77=yes
14953      hardcode_shlibpath_var_F77=no
14954      ;;
14955
14956    sysv4)
14957      case $host_vendor in
14958	sni)
14959	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14960	  hardcode_direct_F77=yes # is this really true???
14961	;;
14962	siemens)
14963	  ## LD is ld it makes a PLAMLIB
14964	  ## CC just makes a GrossModule.
14965	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14966	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14967	  hardcode_direct_F77=no
14968        ;;
14969	motorola)
14970	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14971	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14972	;;
14973      esac
14974      runpath_var='LD_RUN_PATH'
14975      hardcode_shlibpath_var_F77=no
14976      ;;
14977
14978    sysv4.3*)
14979      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14980      hardcode_shlibpath_var_F77=no
14981      export_dynamic_flag_spec_F77='-Bexport'
14982      ;;
14983
14984    sysv4*MP*)
14985      if test -d /usr/nec; then
14986	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14987	hardcode_shlibpath_var_F77=no
14988	runpath_var=LD_RUN_PATH
14989	hardcode_runpath_var=yes
14990	ld_shlibs_F77=yes
14991      fi
14992      ;;
14993
14994    sysv4.2uw2*)
14995      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14996      hardcode_direct_F77=yes
14997      hardcode_minus_L_F77=no
14998      hardcode_shlibpath_var_F77=no
14999      hardcode_runpath_var=yes
15000      runpath_var=LD_RUN_PATH
15001      ;;
15002
15003   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15004      no_undefined_flag_F77='${wl}-z ${wl}text'
15005      if test "$GCC" = yes; then
15006	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007      else
15008	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15009      fi
15010      runpath_var='LD_RUN_PATH'
15011      hardcode_shlibpath_var_F77=no
15012      ;;
15013
15014    sysv5*)
15015      no_undefined_flag_F77=' -z text'
15016      # $CC -shared without GNU ld will not create a library from C++
15017      # object files and a static libstdc++, better avoid it by now
15018      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15019      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15020  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15021      hardcode_libdir_flag_spec_F77=
15022      hardcode_shlibpath_var_F77=no
15023      runpath_var='LD_RUN_PATH'
15024      ;;
15025
15026    uts4*)
15027      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15028      hardcode_libdir_flag_spec_F77='-L$libdir'
15029      hardcode_shlibpath_var_F77=no
15030      ;;
15031
15032    *)
15033      ld_shlibs_F77=no
15034      ;;
15035    esac
15036  fi
15037
15038echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15039echo "${ECHO_T}$ld_shlibs_F77" >&6
15040test "$ld_shlibs_F77" = no && can_build_shared=no
15041
15042variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15043if test "$GCC" = yes; then
15044  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15045fi
15046
15047#
15048# Do we need to explicitly link libc?
15049#
15050case "x$archive_cmds_need_lc_F77" in
15051x|xyes)
15052  # Assume -lc should be added
15053  archive_cmds_need_lc_F77=yes
15054
15055  if test "$enable_shared" = yes && test "$GCC" = yes; then
15056    case $archive_cmds_F77 in
15057    *'~'*)
15058      # FIXME: we may have to deal with multi-command sequences.
15059      ;;
15060    '$CC '*)
15061      # Test whether the compiler implicitly links with -lc since on some
15062      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15063      # to ld, don't add -lc before -lgcc.
15064      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15065echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15066      $rm conftest*
15067      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15068
15069      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070  (eval $ac_compile) 2>&5
15071  ac_status=$?
15072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073  (exit $ac_status); } 2>conftest.err; then
15074        soname=conftest
15075        lib=conftest
15076        libobjs=conftest.$ac_objext
15077        deplibs=
15078        wl=$lt_prog_compiler_wl_F77
15079        compiler_flags=-v
15080        linker_flags=-v
15081        verstring=
15082        output_objdir=.
15083        libname=conftest
15084        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15085        allow_undefined_flag_F77=
15086        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15087  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15088  ac_status=$?
15089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090  (exit $ac_status); }
15091        then
15092	  archive_cmds_need_lc_F77=no
15093        else
15094	  archive_cmds_need_lc_F77=yes
15095        fi
15096        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15097      else
15098        cat conftest.err 1>&5
15099      fi
15100      $rm conftest*
15101      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15102echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15103      ;;
15104    esac
15105  fi
15106  ;;
15107esac
15108
15109echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15110echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15111library_names_spec=
15112libname_spec='lib$name'
15113soname_spec=
15114shrext_cmds=".so"
15115postinstall_cmds=
15116postuninstall_cmds=
15117finish_cmds=
15118finish_eval=
15119shlibpath_var=
15120shlibpath_overrides_runpath=unknown
15121version_type=none
15122dynamic_linker="$host_os ld.so"
15123sys_lib_dlsearch_path_spec="/lib /usr/lib"
15124if test "$GCC" = yes; then
15125  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15126  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15127    # if the path contains ";" then we assume it to be the separator
15128    # otherwise default to the standard path separator (i.e. ":") - it is
15129    # assumed that no part of a normal pathname contains ";" but that should
15130    # okay in the real world where ";" in dirpaths is itself problematic.
15131    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15132  else
15133    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15134  fi
15135else
15136  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15137fi
15138need_lib_prefix=unknown
15139hardcode_into_libs=no
15140
15141# when you set need_version to no, make sure it does not cause -set_version
15142# flags to be left without arguments
15143need_version=unknown
15144
15145case $host_os in
15146aix3*)
15147  version_type=linux
15148  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15149  shlibpath_var=LIBPATH
15150
15151  # AIX 3 has no versioning support, so we append a major version to the name.
15152  soname_spec='${libname}${release}${shared_ext}$major'
15153  ;;
15154
15155aix4* | aix5*)
15156  version_type=linux
15157  need_lib_prefix=no
15158  need_version=no
15159  hardcode_into_libs=yes
15160  if test "$host_cpu" = ia64; then
15161    # AIX 5 supports IA64
15162    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15163    shlibpath_var=LD_LIBRARY_PATH
15164  else
15165    # With GCC up to 2.95.x, collect2 would create an import file
15166    # for dependence libraries.  The import file would start with
15167    # the line `#! .'.  This would cause the generated library to
15168    # depend on `.', always an invalid library.  This was fixed in
15169    # development snapshots of GCC prior to 3.0.
15170    case $host_os in
15171      aix4 | aix4.[01] | aix4.[01].*)
15172      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15173	   echo ' yes '
15174	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15175	:
15176      else
15177	can_build_shared=no
15178      fi
15179      ;;
15180    esac
15181    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15182    # soname into executable. Probably we can add versioning support to
15183    # collect2, so additional links can be useful in future.
15184    if test "$aix_use_runtimelinking" = yes; then
15185      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15186      # instead of lib<name>.a to let people know that these are not
15187      # typical AIX shared libraries.
15188      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189    else
15190      # We preserve .a as extension for shared libraries through AIX4.2
15191      # and later when we are not doing run time linking.
15192      library_names_spec='${libname}${release}.a $libname.a'
15193      soname_spec='${libname}${release}${shared_ext}$major'
15194    fi
15195    shlibpath_var=LIBPATH
15196  fi
15197  ;;
15198
15199amigaos*)
15200  library_names_spec='$libname.ixlibrary $libname.a'
15201  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15202  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'
15203  ;;
15204
15205beos*)
15206  library_names_spec='${libname}${shared_ext}'
15207  dynamic_linker="$host_os ld.so"
15208  shlibpath_var=LIBRARY_PATH
15209  ;;
15210
15211bsdi[45]*)
15212  version_type=linux
15213  need_version=no
15214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215  soname_spec='${libname}${release}${shared_ext}$major'
15216  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15217  shlibpath_var=LD_LIBRARY_PATH
15218  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15219  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15220  # the default ld.so.conf also contains /usr/contrib/lib and
15221  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15222  # libtool to hard-code these into programs
15223  ;;
15224
15225cygwin* | mingw* | pw32*)
15226  version_type=windows
15227  shrext_cmds=".dll"
15228  need_version=no
15229  need_lib_prefix=no
15230
15231  case $GCC,$host_os in
15232  yes,cygwin* | yes,mingw* | yes,pw32*)
15233    library_names_spec='$libname.dll.a'
15234    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15235    postinstall_cmds='base_file=`basename \${file}`~
15236      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15237      dldir=$destdir/`dirname \$dlpath`~
15238      test -d \$dldir || mkdir -p \$dldir~
15239      $install_prog $dir/$dlname \$dldir/$dlname'
15240    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15241      dlpath=$dir/\$dldll~
15242       $rm \$dlpath'
15243    shlibpath_overrides_runpath=yes
15244
15245    case $host_os in
15246    cygwin*)
15247      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15248      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15249      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15250      ;;
15251    mingw*)
15252      # MinGW DLLs use traditional 'lib' prefix
15253      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15254      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15255      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15256        # It is most probably a Windows format PATH printed by
15257        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15258        # path with ; separators, and with drive letters. We can handle the
15259        # drive letters (cygwin fileutils understands them), so leave them,
15260        # especially as we might pass files found there to a mingw objdump,
15261        # which wouldn't understand a cygwinified path. Ahh.
15262        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15263      else
15264        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15265      fi
15266      ;;
15267    pw32*)
15268      # pw32 DLLs use 'pw' prefix rather than 'lib'
15269      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270      ;;
15271    esac
15272    ;;
15273
15274  *)
15275    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15276    ;;
15277  esac
15278  dynamic_linker='Win32 ld.exe'
15279  # FIXME: first we should search . and the directory the executable is in
15280  shlibpath_var=PATH
15281  ;;
15282
15283darwin* | rhapsody*)
15284  dynamic_linker="$host_os dyld"
15285  version_type=darwin
15286  need_lib_prefix=no
15287  need_version=no
15288  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15289  soname_spec='${libname}${release}${major}$shared_ext'
15290  shlibpath_overrides_runpath=yes
15291  shlibpath_var=DYLD_LIBRARY_PATH
15292  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15293  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15294  if test "$GCC" = yes; then
15295    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"`
15296  else
15297    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15298  fi
15299  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15300  ;;
15301
15302dgux*)
15303  version_type=linux
15304  need_lib_prefix=no
15305  need_version=no
15306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15307  soname_spec='${libname}${release}${shared_ext}$major'
15308  shlibpath_var=LD_LIBRARY_PATH
15309  ;;
15310
15311freebsd1*)
15312  dynamic_linker=no
15313  ;;
15314
15315kfreebsd*-gnu)
15316  version_type=linux
15317  need_lib_prefix=no
15318  need_version=no
15319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15320  soname_spec='${libname}${release}${shared_ext}$major'
15321  shlibpath_var=LD_LIBRARY_PATH
15322  shlibpath_overrides_runpath=no
15323  hardcode_into_libs=yes
15324  dynamic_linker='GNU ld.so'
15325  ;;
15326
15327freebsd* | dragonfly*)
15328  # DragonFly does not have aout.  When/if they implement a new
15329  # versioning mechanism, adjust this.
15330  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15331  version_type=freebsd-$objformat
15332  case $version_type in
15333    freebsd-elf*)
15334      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15335      need_version=no
15336      need_lib_prefix=no
15337      ;;
15338    freebsd-*)
15339      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15340      need_version=yes
15341      ;;
15342  esac
15343  shlibpath_var=LD_LIBRARY_PATH
15344  case $host_os in
15345  freebsd2*)
15346    shlibpath_overrides_runpath=yes
15347    ;;
15348  freebsd3.[01]* | freebsdelf3.[01]*)
15349    shlibpath_overrides_runpath=yes
15350    hardcode_into_libs=yes
15351    ;;
15352  *) # from 3.2 on
15353    shlibpath_overrides_runpath=no
15354    hardcode_into_libs=yes
15355    ;;
15356  esac
15357  ;;
15358
15359gnu*)
15360  version_type=linux
15361  need_lib_prefix=no
15362  need_version=no
15363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15364  soname_spec='${libname}${release}${shared_ext}$major'
15365  shlibpath_var=LD_LIBRARY_PATH
15366  hardcode_into_libs=yes
15367  ;;
15368
15369hpux9* | hpux10* | hpux11*)
15370  # Give a soname corresponding to the major version so that dld.sl refuses to
15371  # link against other versions.
15372  version_type=sunos
15373  need_lib_prefix=no
15374  need_version=no
15375  case "$host_cpu" in
15376  ia64*)
15377    shrext_cmds='.so'
15378    hardcode_into_libs=yes
15379    dynamic_linker="$host_os dld.so"
15380    shlibpath_var=LD_LIBRARY_PATH
15381    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15382    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383    soname_spec='${libname}${release}${shared_ext}$major'
15384    if test "X$HPUX_IA64_MODE" = X32; then
15385      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15386    else
15387      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15388    fi
15389    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15390    ;;
15391   hppa*64*)
15392     shrext_cmds='.sl'
15393     hardcode_into_libs=yes
15394     dynamic_linker="$host_os dld.sl"
15395     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15396     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398     soname_spec='${libname}${release}${shared_ext}$major'
15399     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15400     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15401     ;;
15402   *)
15403    shrext_cmds='.sl'
15404    dynamic_linker="$host_os dld.sl"
15405    shlibpath_var=SHLIB_PATH
15406    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15407    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15408    soname_spec='${libname}${release}${shared_ext}$major'
15409    ;;
15410  esac
15411  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15412  postinstall_cmds='chmod 555 $lib'
15413  ;;
15414
15415irix5* | irix6* | nonstopux*)
15416  case $host_os in
15417    nonstopux*) version_type=nonstopux ;;
15418    *)
15419	if test "$lt_cv_prog_gnu_ld" = yes; then
15420		version_type=linux
15421	else
15422		version_type=irix
15423	fi ;;
15424  esac
15425  need_lib_prefix=no
15426  need_version=no
15427  soname_spec='${libname}${release}${shared_ext}$major'
15428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15429  case $host_os in
15430  irix5* | nonstopux*)
15431    libsuff= shlibsuff=
15432    ;;
15433  *)
15434    case $LD in # libtool.m4 will add one of these switches to LD
15435    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15436      libsuff= shlibsuff= libmagic=32-bit;;
15437    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15438      libsuff=32 shlibsuff=N32 libmagic=N32;;
15439    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15440      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15441    *) libsuff= shlibsuff= libmagic=never-match;;
15442    esac
15443    ;;
15444  esac
15445  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15446  shlibpath_overrides_runpath=no
15447  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15448  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15449  hardcode_into_libs=yes
15450  ;;
15451
15452# No shared lib support for Linux oldld, aout, or coff.
15453linux*oldld* | linux*aout* | linux*coff*)
15454  dynamic_linker=no
15455  ;;
15456
15457# This must be Linux ELF.
15458linux*)
15459  version_type=linux
15460  need_lib_prefix=no
15461  need_version=no
15462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463  soname_spec='${libname}${release}${shared_ext}$major'
15464  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15465  shlibpath_var=LD_LIBRARY_PATH
15466  shlibpath_overrides_runpath=no
15467  # This implies no fast_install, which is unacceptable.
15468  # Some rework will be needed to allow for fast_install
15469  # before this can be enabled.
15470  hardcode_into_libs=yes
15471
15472  # Append ld.so.conf contents to the search path
15473  if test -f /etc/ld.so.conf; then
15474    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15475    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15476  fi
15477
15478  # We used to test for /lib/ld.so.1 and disable shared libraries on
15479  # powerpc, because MkLinux only supported shared libraries with the
15480  # GNU dynamic linker.  Since this was broken with cross compilers,
15481  # most powerpc-linux boxes support dynamic linking these days and
15482  # people can always --disable-shared, the test was removed, and we
15483  # assume the GNU/Linux dynamic linker is in use.
15484  dynamic_linker='GNU/Linux ld.so'
15485  ;;
15486
15487knetbsd*-gnu)
15488  version_type=linux
15489  need_lib_prefix=no
15490  need_version=no
15491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15492  soname_spec='${libname}${release}${shared_ext}$major'
15493  shlibpath_var=LD_LIBRARY_PATH
15494  shlibpath_overrides_runpath=no
15495  hardcode_into_libs=yes
15496  dynamic_linker='GNU ld.so'
15497  ;;
15498
15499netbsd*)
15500  version_type=sunos
15501  need_lib_prefix=no
15502  need_version=no
15503  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15505    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15506    dynamic_linker='NetBSD (a.out) ld.so'
15507  else
15508    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15509    soname_spec='${libname}${release}${shared_ext}$major'
15510    dynamic_linker='NetBSD ld.elf_so'
15511  fi
15512  shlibpath_var=LD_LIBRARY_PATH
15513  shlibpath_overrides_runpath=yes
15514  hardcode_into_libs=yes
15515  ;;
15516
15517newsos6)
15518  version_type=linux
15519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15520  shlibpath_var=LD_LIBRARY_PATH
15521  shlibpath_overrides_runpath=yes
15522  ;;
15523
15524nto-qnx*)
15525  version_type=linux
15526  need_lib_prefix=no
15527  need_version=no
15528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529  soname_spec='${libname}${release}${shared_ext}$major'
15530  shlibpath_var=LD_LIBRARY_PATH
15531  shlibpath_overrides_runpath=yes
15532  ;;
15533
15534openbsd*)
15535  version_type=sunos
15536  need_lib_prefix=no
15537  need_version=no
15538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15539  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15540  shlibpath_var=LD_LIBRARY_PATH
15541  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15542    case $host_os in
15543      openbsd2.[89] | openbsd2.[89].*)
15544	shlibpath_overrides_runpath=no
15545	;;
15546      *)
15547	shlibpath_overrides_runpath=yes
15548	;;
15549      esac
15550  else
15551    shlibpath_overrides_runpath=yes
15552  fi
15553  ;;
15554
15555os2*)
15556  libname_spec='$name'
15557  shrext_cmds=".dll"
15558  need_lib_prefix=no
15559  library_names_spec='$libname${shared_ext} $libname.a'
15560  dynamic_linker='OS/2 ld.exe'
15561  shlibpath_var=LIBPATH
15562  ;;
15563
15564osf3* | osf4* | osf5*)
15565  version_type=osf
15566  need_lib_prefix=no
15567  need_version=no
15568  soname_spec='${libname}${release}${shared_ext}$major'
15569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15570  shlibpath_var=LD_LIBRARY_PATH
15571  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15572  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15573  ;;
15574
15575sco3.2v5*)
15576  version_type=osf
15577  soname_spec='${libname}${release}${shared_ext}$major'
15578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15579  shlibpath_var=LD_LIBRARY_PATH
15580  ;;
15581
15582solaris*)
15583  version_type=linux
15584  need_lib_prefix=no
15585  need_version=no
15586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587  soname_spec='${libname}${release}${shared_ext}$major'
15588  shlibpath_var=LD_LIBRARY_PATH
15589  shlibpath_overrides_runpath=yes
15590  hardcode_into_libs=yes
15591  # ldd complains unless libraries are executable
15592  postinstall_cmds='chmod +x $lib'
15593  ;;
15594
15595sunos4*)
15596  version_type=sunos
15597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15598  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15599  shlibpath_var=LD_LIBRARY_PATH
15600  shlibpath_overrides_runpath=yes
15601  if test "$with_gnu_ld" = yes; then
15602    need_lib_prefix=no
15603  fi
15604  need_version=yes
15605  ;;
15606
15607sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15608  version_type=linux
15609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15610  soname_spec='${libname}${release}${shared_ext}$major'
15611  shlibpath_var=LD_LIBRARY_PATH
15612  case $host_vendor in
15613    sni)
15614      shlibpath_overrides_runpath=no
15615      need_lib_prefix=no
15616      export_dynamic_flag_spec='${wl}-Blargedynsym'
15617      runpath_var=LD_RUN_PATH
15618      ;;
15619    siemens)
15620      need_lib_prefix=no
15621      ;;
15622    motorola)
15623      need_lib_prefix=no
15624      need_version=no
15625      shlibpath_overrides_runpath=no
15626      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15627      ;;
15628  esac
15629  ;;
15630
15631sysv4*MP*)
15632  if test -d /usr/nec ;then
15633    version_type=linux
15634    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15635    soname_spec='$libname${shared_ext}.$major'
15636    shlibpath_var=LD_LIBRARY_PATH
15637  fi
15638  ;;
15639
15640uts4*)
15641  version_type=linux
15642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643  soname_spec='${libname}${release}${shared_ext}$major'
15644  shlibpath_var=LD_LIBRARY_PATH
15645  ;;
15646
15647*)
15648  dynamic_linker=no
15649  ;;
15650esac
15651echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15652echo "${ECHO_T}$dynamic_linker" >&6
15653test "$dynamic_linker" = no && can_build_shared=no
15654
15655echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15656echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15657hardcode_action_F77=
15658if test -n "$hardcode_libdir_flag_spec_F77" || \
15659   test -n "$runpath_var_F77" || \
15660   test "X$hardcode_automatic_F77" = "Xyes" ; then
15661
15662  # We can hardcode non-existant directories.
15663  if test "$hardcode_direct_F77" != no &&
15664     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15665     # have to relink, otherwise we might link with an installed library
15666     # when we should be linking with a yet-to-be-installed one
15667     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15668     test "$hardcode_minus_L_F77" != no; then
15669    # Linking always hardcodes the temporary library directory.
15670    hardcode_action_F77=relink
15671  else
15672    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15673    hardcode_action_F77=immediate
15674  fi
15675else
15676  # We cannot hardcode anything, or else we can only hardcode existing
15677  # directories.
15678  hardcode_action_F77=unsupported
15679fi
15680echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15681echo "${ECHO_T}$hardcode_action_F77" >&6
15682
15683if test "$hardcode_action_F77" = relink; then
15684  # Fast installation is not supported
15685  enable_fast_install=no
15686elif test "$shlibpath_overrides_runpath" = yes ||
15687     test "$enable_shared" = no; then
15688  # Fast installation is not necessary
15689  enable_fast_install=needless
15690fi
15691
15692striplib=
15693old_striplib=
15694echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15695echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15696if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15697  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15698  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15699  echo "$as_me:$LINENO: result: yes" >&5
15700echo "${ECHO_T}yes" >&6
15701else
15702# FIXME - insert some real tests, host_os isn't really good enough
15703  case $host_os in
15704   darwin*)
15705       if test -n "$STRIP" ; then
15706         striplib="$STRIP -x"
15707         echo "$as_me:$LINENO: result: yes" >&5
15708echo "${ECHO_T}yes" >&6
15709       else
15710  echo "$as_me:$LINENO: result: no" >&5
15711echo "${ECHO_T}no" >&6
15712fi
15713       ;;
15714   *)
15715  echo "$as_me:$LINENO: result: no" >&5
15716echo "${ECHO_T}no" >&6
15717    ;;
15718  esac
15719fi
15720
15721
15722
15723# The else clause should only fire when bootstrapping the
15724# libtool distribution, otherwise you forgot to ship ltmain.sh
15725# with your package, and you will get complaints that there are
15726# no rules to generate ltmain.sh.
15727if test -f "$ltmain"; then
15728  # See if we are running on zsh, and set the options which allow our commands through
15729  # without removal of \ escapes.
15730  if test -n "${ZSH_VERSION+set}" ; then
15731    setopt NO_GLOB_SUBST
15732  fi
15733  # Now quote all the things that may contain metacharacters while being
15734  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15735  # variables and quote the copies for generation of the libtool script.
15736  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
15737    SED SHELL STRIP \
15738    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15739    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15740    deplibs_check_method reload_flag reload_cmds need_locks \
15741    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15742    lt_cv_sys_global_symbol_to_c_name_address \
15743    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15744    old_postinstall_cmds old_postuninstall_cmds \
15745    compiler_F77 \
15746    CC_F77 \
15747    LD_F77 \
15748    lt_prog_compiler_wl_F77 \
15749    lt_prog_compiler_pic_F77 \
15750    lt_prog_compiler_static_F77 \
15751    lt_prog_compiler_no_builtin_flag_F77 \
15752    export_dynamic_flag_spec_F77 \
15753    thread_safe_flag_spec_F77 \
15754    whole_archive_flag_spec_F77 \
15755    enable_shared_with_static_runtimes_F77 \
15756    old_archive_cmds_F77 \
15757    old_archive_from_new_cmds_F77 \
15758    predep_objects_F77 \
15759    postdep_objects_F77 \
15760    predeps_F77 \
15761    postdeps_F77 \
15762    compiler_lib_search_path_F77 \
15763    archive_cmds_F77 \
15764    archive_expsym_cmds_F77 \
15765    postinstall_cmds_F77 \
15766    postuninstall_cmds_F77 \
15767    old_archive_from_expsyms_cmds_F77 \
15768    allow_undefined_flag_F77 \
15769    no_undefined_flag_F77 \
15770    export_symbols_cmds_F77 \
15771    hardcode_libdir_flag_spec_F77 \
15772    hardcode_libdir_flag_spec_ld_F77 \
15773    hardcode_libdir_separator_F77 \
15774    hardcode_automatic_F77 \
15775    module_cmds_F77 \
15776    module_expsym_cmds_F77 \
15777    lt_cv_prog_compiler_c_o_F77 \
15778    exclude_expsyms_F77 \
15779    include_expsyms_F77; do
15780
15781    case $var in
15782    old_archive_cmds_F77 | \
15783    old_archive_from_new_cmds_F77 | \
15784    archive_cmds_F77 | \
15785    archive_expsym_cmds_F77 | \
15786    module_cmds_F77 | \
15787    module_expsym_cmds_F77 | \
15788    old_archive_from_expsyms_cmds_F77 | \
15789    export_symbols_cmds_F77 | \
15790    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15791    postinstall_cmds | postuninstall_cmds | \
15792    old_postinstall_cmds | old_postuninstall_cmds | \
15793    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15794      # Double-quote double-evaled strings.
15795      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15796      ;;
15797    *)
15798      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15799      ;;
15800    esac
15801  done
15802
15803  case $lt_echo in
15804  *'\$0 --fallback-echo"')
15805    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15806    ;;
15807  esac
15808
15809cfgfile="$ofile"
15810
15811  cat <<__EOF__ >> "$cfgfile"
15812# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15813
15814# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15815
15816# Shell to use when invoking shell scripts.
15817SHELL=$lt_SHELL
15818
15819# Whether or not to build shared libraries.
15820build_libtool_libs=$enable_shared
15821
15822# Whether or not to build static libraries.
15823build_old_libs=$enable_static
15824
15825# Whether or not to add -lc for building shared libraries.
15826build_libtool_need_lc=$archive_cmds_need_lc_F77
15827
15828# Whether or not to disallow shared libs when runtime libs are static
15829allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15830
15831# Whether or not to optimize for fast installation.
15832fast_install=$enable_fast_install
15833
15834# The host system.
15835host_alias=$host_alias
15836host=$host
15837host_os=$host_os
15838
15839# The build system.
15840build_alias=$build_alias
15841build=$build
15842build_os=$build_os
15843
15844# An echo program that does not interpret backslashes.
15845echo=$lt_echo
15846
15847# The archiver.
15848AR=$lt_AR
15849AR_FLAGS=$lt_AR_FLAGS
15850
15851# A C compiler.
15852LTCC=$lt_LTCC
15853
15854# A language-specific compiler.
15855CC=$lt_compiler_F77
15856
15857# Is the compiler the GNU C compiler?
15858with_gcc=$GCC_F77
15859
15860# An ERE matcher.
15861EGREP=$lt_EGREP
15862
15863# The linker used to build libraries.
15864LD=$lt_LD_F77
15865
15866# Whether we need hard or soft links.
15867LN_S=$lt_LN_S
15868
15869# A BSD-compatible nm program.
15870NM=$lt_NM
15871
15872# A symbol stripping program
15873STRIP=$lt_STRIP
15874
15875# Used to examine libraries when file_magic_cmd begins "file"
15876MAGIC_CMD=$MAGIC_CMD
15877
15878# Used on cygwin: DLL creation program.
15879DLLTOOL="$DLLTOOL"
15880
15881# Used on cygwin: object dumper.
15882OBJDUMP="$OBJDUMP"
15883
15884# Used on cygwin: assembler.
15885AS=$lt_AS
15886
15887# The name of the directory that contains temporary libtool files.
15888objdir=$objdir
15889
15890# How to create reloadable object files.
15891reload_flag=$lt_reload_flag
15892reload_cmds=$lt_reload_cmds
15893
15894# How to pass a linker flag through the compiler.
15895wl=$lt_lt_prog_compiler_wl_F77
15896
15897# Object file suffix (normally "o").
15898objext="$ac_objext"
15899
15900# Old archive suffix (normally "a").
15901libext="$libext"
15902
15903# Shared library suffix (normally ".so").
15904shrext_cmds='$shrext_cmds'
15905
15906# Executable file suffix (normally "").
15907exeext="$exeext"
15908
15909# Additional compiler flags for building library objects.
15910pic_flag=$lt_lt_prog_compiler_pic_F77
15911pic_mode=$pic_mode
15912
15913# What is the maximum length of a command?
15914max_cmd_len=$lt_cv_sys_max_cmd_len
15915
15916# Does compiler simultaneously support -c and -o options?
15917compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15918
15919# Must we lock files when doing compilation ?
15920need_locks=$lt_need_locks
15921
15922# Do we need the lib prefix for modules?
15923need_lib_prefix=$need_lib_prefix
15924
15925# Do we need a version for libraries?
15926need_version=$need_version
15927
15928# Whether dlopen is supported.
15929dlopen_support=$enable_dlopen
15930
15931# Whether dlopen of programs is supported.
15932dlopen_self=$enable_dlopen_self
15933
15934# Whether dlopen of statically linked programs is supported.
15935dlopen_self_static=$enable_dlopen_self_static
15936
15937# Compiler flag to prevent dynamic linking.
15938link_static_flag=$lt_lt_prog_compiler_static_F77
15939
15940# Compiler flag to turn off builtin functions.
15941no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15942
15943# Compiler flag to allow reflexive dlopens.
15944export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15945
15946# Compiler flag to generate shared objects directly from archives.
15947whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15948
15949# Compiler flag to generate thread-safe objects.
15950thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15951
15952# Library versioning type.
15953version_type=$version_type
15954
15955# Format of library name prefix.
15956libname_spec=$lt_libname_spec
15957
15958# List of archive names.  First name is the real one, the rest are links.
15959# The last name is the one that the linker finds with -lNAME.
15960library_names_spec=$lt_library_names_spec
15961
15962# The coded name of the library, if different from the real name.
15963soname_spec=$lt_soname_spec
15964
15965# Commands used to build and install an old-style archive.
15966RANLIB=$lt_RANLIB
15967old_archive_cmds=$lt_old_archive_cmds_F77
15968old_postinstall_cmds=$lt_old_postinstall_cmds
15969old_postuninstall_cmds=$lt_old_postuninstall_cmds
15970
15971# Create an old-style archive from a shared archive.
15972old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15973
15974# Create a temporary old-style archive to link instead of a shared archive.
15975old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15976
15977# Commands used to build and install a shared archive.
15978archive_cmds=$lt_archive_cmds_F77
15979archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15980postinstall_cmds=$lt_postinstall_cmds
15981postuninstall_cmds=$lt_postuninstall_cmds
15982
15983# Commands used to build a loadable module (assumed same as above if empty)
15984module_cmds=$lt_module_cmds_F77
15985module_expsym_cmds=$lt_module_expsym_cmds_F77
15986
15987# Commands to strip libraries.
15988old_striplib=$lt_old_striplib
15989striplib=$lt_striplib
15990
15991# Dependencies to place before the objects being linked to create a
15992# shared library.
15993predep_objects=$lt_predep_objects_F77
15994
15995# Dependencies to place after the objects being linked to create a
15996# shared library.
15997postdep_objects=$lt_postdep_objects_F77
15998
15999# Dependencies to place before the objects being linked to create a
16000# shared library.
16001predeps=$lt_predeps_F77
16002
16003# Dependencies to place after the objects being linked to create a
16004# shared library.
16005postdeps=$lt_postdeps_F77
16006
16007# The library search path used internally by the compiler when linking
16008# a shared library.
16009compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16010
16011# Method to check whether dependent libraries are shared objects.
16012deplibs_check_method=$lt_deplibs_check_method
16013
16014# Command to use when deplibs_check_method == file_magic.
16015file_magic_cmd=$lt_file_magic_cmd
16016
16017# Flag that allows shared libraries with undefined symbols to be built.
16018allow_undefined_flag=$lt_allow_undefined_flag_F77
16019
16020# Flag that forces no undefined symbols.
16021no_undefined_flag=$lt_no_undefined_flag_F77
16022
16023# Commands used to finish a libtool library installation in a directory.
16024finish_cmds=$lt_finish_cmds
16025
16026# Same as above, but a single script fragment to be evaled but not shown.
16027finish_eval=$lt_finish_eval
16028
16029# Take the output of nm and produce a listing of raw symbols and C names.
16030global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16031
16032# Transform the output of nm in a proper C declaration
16033global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16034
16035# Transform the output of nm in a C name address pair
16036global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16037
16038# This is the shared library runtime path variable.
16039runpath_var=$runpath_var
16040
16041# This is the shared library path variable.
16042shlibpath_var=$shlibpath_var
16043
16044# Is shlibpath searched before the hard-coded library search path?
16045shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16046
16047# How to hardcode a shared library path into an executable.
16048hardcode_action=$hardcode_action_F77
16049
16050# Whether we should hardcode library paths into libraries.
16051hardcode_into_libs=$hardcode_into_libs
16052
16053# Flag to hardcode \$libdir into a binary during linking.
16054# This must work even if \$libdir does not exist.
16055hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16056
16057# If ld is used when linking, flag to hardcode \$libdir into
16058# a binary during linking. This must work even if \$libdir does
16059# not exist.
16060hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16061
16062# Whether we need a single -rpath flag with a separated argument.
16063hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16064
16065# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16066# resulting binary.
16067hardcode_direct=$hardcode_direct_F77
16068
16069# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16070# resulting binary.
16071hardcode_minus_L=$hardcode_minus_L_F77
16072
16073# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16074# the resulting binary.
16075hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16076
16077# Set to yes if building a shared library automatically hardcodes DIR into the library
16078# and all subsequent libraries and executables linked against it.
16079hardcode_automatic=$hardcode_automatic_F77
16080
16081# Variables whose values should be saved in libtool wrapper scripts and
16082# restored at relink time.
16083variables_saved_for_relink="$variables_saved_for_relink"
16084
16085# Whether libtool must link a program against all its dependency libraries.
16086link_all_deplibs=$link_all_deplibs_F77
16087
16088# Compile-time system search path for libraries
16089sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16090
16091# Run-time system search path for libraries
16092sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16093
16094# Fix the shell variable \$srcfile for the compiler.
16095fix_srcfile_path="$fix_srcfile_path_F77"
16096
16097# Set to yes if exported symbols are required.
16098always_export_symbols=$always_export_symbols_F77
16099
16100# The commands to list exported symbols.
16101export_symbols_cmds=$lt_export_symbols_cmds_F77
16102
16103# The commands to extract the exported symbol list from a shared archive.
16104extract_expsyms_cmds=$lt_extract_expsyms_cmds
16105
16106# Symbols that should not be listed in the preloaded symbols.
16107exclude_expsyms=$lt_exclude_expsyms_F77
16108
16109# Symbols that must always be exported.
16110include_expsyms=$lt_include_expsyms_F77
16111
16112# ### END LIBTOOL TAG CONFIG: $tagname
16113
16114__EOF__
16115
16116
16117else
16118  # If there is no Makefile yet, we rely on a make rule to execute
16119  # `config.status --recheck' to rerun these tests and create the
16120  # libtool script then.
16121  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16122  if test -f "$ltmain_in"; then
16123    test -f Makefile && make "$ltmain"
16124  fi
16125fi
16126
16127
16128ac_ext=c
16129ac_cpp='$CPP $CPPFLAGS'
16130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16132ac_compiler_gnu=$ac_cv_c_compiler_gnu
16133
16134CC="$lt_save_CC"
16135
16136	else
16137	  tagname=""
16138	fi
16139	;;
16140
16141      GCJ)
16142	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16143
16144
16145
16146# Source file extension for Java test sources.
16147ac_ext=java
16148
16149# Object file extension for compiled Java test sources.
16150objext=o
16151objext_GCJ=$objext
16152
16153# Code to be used in simple compile tests
16154lt_simple_compile_test_code="class foo {}\n"
16155
16156# Code to be used in simple link tests
16157lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16158
16159# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16160
16161# If no C compiler was specified, use CC.
16162LTCC=${LTCC-"$CC"}
16163
16164# Allow CC to be a program name with arguments.
16165compiler=$CC
16166
16167
16168# Allow CC to be a program name with arguments.
16169lt_save_CC="$CC"
16170CC=${GCJ-"gcj"}
16171compiler=$CC
16172compiler_GCJ=$CC
16173
16174# GCJ did not exist at the time GCC didn't implicitly link libc in.
16175archive_cmds_need_lc_GCJ=no
16176
16177
16178lt_prog_compiler_no_builtin_flag_GCJ=
16179
16180if test "$GCC" = yes; then
16181  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16182
16183
16184echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16185echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16186if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16187  echo $ECHO_N "(cached) $ECHO_C" >&6
16188else
16189  lt_cv_prog_compiler_rtti_exceptions=no
16190  ac_outfile=conftest.$ac_objext
16191   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16192   lt_compiler_flag="-fno-rtti -fno-exceptions"
16193   # Insert the option either (1) after the last *FLAGS variable, or
16194   # (2) before a word containing "conftest.", or (3) at the end.
16195   # Note that $ac_compile itself does not contain backslashes and begins
16196   # with a dollar sign (not a hyphen), so the echo should work correctly.
16197   # The option is referenced via a variable to avoid confusing sed.
16198   lt_compile=`echo "$ac_compile" | $SED \
16199   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16200   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16201   -e 's:$: $lt_compiler_flag:'`
16202   (eval echo "\"\$as_me:16202: $lt_compile\"" >&5)
16203   (eval "$lt_compile" 2>conftest.err)
16204   ac_status=$?
16205   cat conftest.err >&5
16206   echo "$as_me:16206: \$? = $ac_status" >&5
16207   if (exit $ac_status) && test -s "$ac_outfile"; then
16208     # The compiler can only warn and ignore the option if not recognized
16209     # So say no if there are warnings
16210     if test ! -s conftest.err; then
16211       lt_cv_prog_compiler_rtti_exceptions=yes
16212     fi
16213   fi
16214   $rm conftest*
16215
16216fi
16217echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16218echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16219
16220if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16221    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16222else
16223    :
16224fi
16225
16226fi
16227
16228lt_prog_compiler_wl_GCJ=
16229lt_prog_compiler_pic_GCJ=
16230lt_prog_compiler_static_GCJ=
16231
16232echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16233echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16234
16235  if test "$GCC" = yes; then
16236    lt_prog_compiler_wl_GCJ='-Wl,'
16237    lt_prog_compiler_static_GCJ='-static'
16238
16239    case $host_os in
16240      aix*)
16241      # All AIX code is PIC.
16242      if test "$host_cpu" = ia64; then
16243	# AIX 5 now supports IA64 processor
16244	lt_prog_compiler_static_GCJ='-Bstatic'
16245      fi
16246      ;;
16247
16248    amigaos*)
16249      # FIXME: we need at least 68020 code to build shared libraries, but
16250      # adding the `-m68020' flag to GCC prevents building anything better,
16251      # like `-m68040'.
16252      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16253      ;;
16254
16255    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16256      # PIC is the default for these OSes.
16257      ;;
16258
16259    mingw* | pw32* | os2*)
16260      # This hack is so that the source file can tell whether it is being
16261      # built for inclusion in a dll (and should export symbols for example).
16262      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16263      ;;
16264
16265    darwin* | rhapsody*)
16266      # PIC is the default on this platform
16267      # Common symbols not allowed in MH_DYLIB files
16268      lt_prog_compiler_pic_GCJ='-fno-common'
16269      ;;
16270
16271    msdosdjgpp*)
16272      # Just because we use GCC doesn't mean we suddenly get shared libraries
16273      # on systems that don't support them.
16274      lt_prog_compiler_can_build_shared_GCJ=no
16275      enable_shared=no
16276      ;;
16277
16278    sysv4*MP*)
16279      if test -d /usr/nec; then
16280	lt_prog_compiler_pic_GCJ=-Kconform_pic
16281      fi
16282      ;;
16283
16284    hpux*)
16285      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16286      # not for PA HP-UX.
16287      case "$host_cpu" in
16288      hppa*64*|ia64*)
16289	# +Z the default
16290	;;
16291      *)
16292	lt_prog_compiler_pic_GCJ='-fPIC'
16293	;;
16294      esac
16295      ;;
16296
16297    *)
16298      lt_prog_compiler_pic_GCJ='-fPIC'
16299      ;;
16300    esac
16301  else
16302    # PORTME Check for flag to pass linker flags through the system compiler.
16303    case $host_os in
16304    aix*)
16305      lt_prog_compiler_wl_GCJ='-Wl,'
16306      if test "$host_cpu" = ia64; then
16307	# AIX 5 now supports IA64 processor
16308	lt_prog_compiler_static_GCJ='-Bstatic'
16309      else
16310	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16311      fi
16312      ;;
16313      darwin*)
16314        # PIC is the default on this platform
16315        # Common symbols not allowed in MH_DYLIB files
16316       case "$cc_basename" in
16317         xlc*)
16318         lt_prog_compiler_pic_GCJ='-qnocommon'
16319         lt_prog_compiler_wl_GCJ='-Wl,'
16320         ;;
16321       esac
16322       ;;
16323
16324    mingw* | pw32* | os2*)
16325      # This hack is so that the source file can tell whether it is being
16326      # built for inclusion in a dll (and should export symbols for example).
16327      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16328      ;;
16329
16330    hpux9* | hpux10* | hpux11*)
16331      lt_prog_compiler_wl_GCJ='-Wl,'
16332      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16333      # not for PA HP-UX.
16334      case "$host_cpu" in
16335      hppa*64*|ia64*)
16336	# +Z the default
16337	;;
16338      *)
16339	lt_prog_compiler_pic_GCJ='+Z'
16340	;;
16341      esac
16342      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16343      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16344      ;;
16345
16346    irix5* | irix6* | nonstopux*)
16347      lt_prog_compiler_wl_GCJ='-Wl,'
16348      # PIC (with -KPIC) is the default.
16349      lt_prog_compiler_static_GCJ='-non_shared'
16350      ;;
16351
16352    newsos6)
16353      lt_prog_compiler_pic_GCJ='-KPIC'
16354      lt_prog_compiler_static_GCJ='-Bstatic'
16355      ;;
16356
16357    linux*)
16358      case $cc_basename in
16359      icc* | ecc*)
16360	lt_prog_compiler_wl_GCJ='-Wl,'
16361	lt_prog_compiler_pic_GCJ='-KPIC'
16362	lt_prog_compiler_static_GCJ='-static'
16363        ;;
16364      pgcc | pgf77 | pgf90)
16365        # Portland Group compilers (*not* the Pentium gcc compiler,
16366	# which looks to be a dead project)
16367	lt_prog_compiler_wl_GCJ='-Wl,'
16368	lt_prog_compiler_pic_GCJ='-fpic'
16369	lt_prog_compiler_static_GCJ='-static'
16370        ;;
16371      ccc*)
16372        lt_prog_compiler_wl_GCJ='-Wl,'
16373        # All Alpha code is PIC.
16374        lt_prog_compiler_static_GCJ='-non_shared'
16375        ;;
16376      esac
16377      ;;
16378
16379    osf3* | osf4* | osf5*)
16380      lt_prog_compiler_wl_GCJ='-Wl,'
16381      # All OSF/1 code is PIC.
16382      lt_prog_compiler_static_GCJ='-non_shared'
16383      ;;
16384
16385    sco3.2v5*)
16386      lt_prog_compiler_pic_GCJ='-Kpic'
16387      lt_prog_compiler_static_GCJ='-dn'
16388      ;;
16389
16390    solaris*)
16391      lt_prog_compiler_wl_GCJ='-Wl,'
16392      lt_prog_compiler_pic_GCJ='-KPIC'
16393      lt_prog_compiler_static_GCJ='-Bstatic'
16394      ;;
16395
16396    sunos4*)
16397      lt_prog_compiler_wl_GCJ='-Qoption ld '
16398      lt_prog_compiler_pic_GCJ='-PIC'
16399      lt_prog_compiler_static_GCJ='-Bstatic'
16400      ;;
16401
16402    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16403      lt_prog_compiler_wl_GCJ='-Wl,'
16404      lt_prog_compiler_pic_GCJ='-KPIC'
16405      lt_prog_compiler_static_GCJ='-Bstatic'
16406      ;;
16407
16408    sysv4*MP*)
16409      if test -d /usr/nec ;then
16410	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16411	lt_prog_compiler_static_GCJ='-Bstatic'
16412      fi
16413      ;;
16414
16415    unicos*)
16416      lt_prog_compiler_wl_GCJ='-Wl,'
16417      lt_prog_compiler_can_build_shared_GCJ=no
16418      ;;
16419
16420    uts4*)
16421      lt_prog_compiler_pic_GCJ='-pic'
16422      lt_prog_compiler_static_GCJ='-Bstatic'
16423      ;;
16424
16425    *)
16426      lt_prog_compiler_can_build_shared_GCJ=no
16427      ;;
16428    esac
16429  fi
16430
16431echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16432echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16433
16434#
16435# Check to make sure the PIC flag actually works.
16436#
16437if test -n "$lt_prog_compiler_pic_GCJ"; then
16438
16439echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16440echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16441if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16442  echo $ECHO_N "(cached) $ECHO_C" >&6
16443else
16444  lt_prog_compiler_pic_works_GCJ=no
16445  ac_outfile=conftest.$ac_objext
16446   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16447   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16448   # Insert the option either (1) after the last *FLAGS variable, or
16449   # (2) before a word containing "conftest.", or (3) at the end.
16450   # Note that $ac_compile itself does not contain backslashes and begins
16451   # with a dollar sign (not a hyphen), so the echo should work correctly.
16452   # The option is referenced via a variable to avoid confusing sed.
16453   lt_compile=`echo "$ac_compile" | $SED \
16454   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16455   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16456   -e 's:$: $lt_compiler_flag:'`
16457   (eval echo "\"\$as_me:16457: $lt_compile\"" >&5)
16458   (eval "$lt_compile" 2>conftest.err)
16459   ac_status=$?
16460   cat conftest.err >&5
16461   echo "$as_me:16461: \$? = $ac_status" >&5
16462   if (exit $ac_status) && test -s "$ac_outfile"; then
16463     # The compiler can only warn and ignore the option if not recognized
16464     # So say no if there are warnings
16465     if test ! -s conftest.err; then
16466       lt_prog_compiler_pic_works_GCJ=yes
16467     fi
16468   fi
16469   $rm conftest*
16470
16471fi
16472echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16473echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16474
16475if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16476    case $lt_prog_compiler_pic_GCJ in
16477     "" | " "*) ;;
16478     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16479     esac
16480else
16481    lt_prog_compiler_pic_GCJ=
16482     lt_prog_compiler_can_build_shared_GCJ=no
16483fi
16484
16485fi
16486case "$host_os" in
16487  # For platforms which do not support PIC, -DPIC is meaningless:
16488  *djgpp*)
16489    lt_prog_compiler_pic_GCJ=
16490    ;;
16491  *)
16492    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16493    ;;
16494esac
16495
16496echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16497echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16498if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16499  echo $ECHO_N "(cached) $ECHO_C" >&6
16500else
16501  lt_cv_prog_compiler_c_o_GCJ=no
16502   $rm -r conftest 2>/dev/null
16503   mkdir conftest
16504   cd conftest
16505   mkdir out
16506   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16507
16508   lt_compiler_flag="-o out/conftest2.$ac_objext"
16509   # Insert the option either (1) after the last *FLAGS variable, or
16510   # (2) before a word containing "conftest.", or (3) at the end.
16511   # Note that $ac_compile itself does not contain backslashes and begins
16512   # with a dollar sign (not a hyphen), so the echo should work correctly.
16513   lt_compile=`echo "$ac_compile" | $SED \
16514   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16515   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16516   -e 's:$: $lt_compiler_flag:'`
16517   (eval echo "\"\$as_me:16517: $lt_compile\"" >&5)
16518   (eval "$lt_compile" 2>out/conftest.err)
16519   ac_status=$?
16520   cat out/conftest.err >&5
16521   echo "$as_me:16521: \$? = $ac_status" >&5
16522   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16523   then
16524     # The compiler can only warn and ignore the option if not recognized
16525     # So say no if there are warnings
16526     if test ! -s out/conftest.err; then
16527       lt_cv_prog_compiler_c_o_GCJ=yes
16528     fi
16529   fi
16530   chmod u+w .
16531   $rm conftest*
16532   # SGI C++ compiler will create directory out/ii_files/ for
16533   # template instantiation
16534   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16535   $rm out/* && rmdir out
16536   cd ..
16537   rmdir conftest
16538   $rm conftest*
16539
16540fi
16541echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16542echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16543
16544
16545hard_links="nottested"
16546if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16547  # do not overwrite the value of need_locks provided by the user
16548  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16549echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16550  hard_links=yes
16551  $rm conftest*
16552  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16553  touch conftest.a
16554  ln conftest.a conftest.b 2>&5 || hard_links=no
16555  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16556  echo "$as_me:$LINENO: result: $hard_links" >&5
16557echo "${ECHO_T}$hard_links" >&6
16558  if test "$hard_links" = no; then
16559    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16560echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16561    need_locks=warn
16562  fi
16563else
16564  need_locks=no
16565fi
16566
16567echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16568echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16569
16570  runpath_var=
16571  allow_undefined_flag_GCJ=
16572  enable_shared_with_static_runtimes_GCJ=no
16573  archive_cmds_GCJ=
16574  archive_expsym_cmds_GCJ=
16575  old_archive_From_new_cmds_GCJ=
16576  old_archive_from_expsyms_cmds_GCJ=
16577  export_dynamic_flag_spec_GCJ=
16578  whole_archive_flag_spec_GCJ=
16579  thread_safe_flag_spec_GCJ=
16580  hardcode_libdir_flag_spec_GCJ=
16581  hardcode_libdir_flag_spec_ld_GCJ=
16582  hardcode_libdir_separator_GCJ=
16583  hardcode_direct_GCJ=no
16584  hardcode_minus_L_GCJ=no
16585  hardcode_shlibpath_var_GCJ=unsupported
16586  link_all_deplibs_GCJ=unknown
16587  hardcode_automatic_GCJ=no
16588  module_cmds_GCJ=
16589  module_expsym_cmds_GCJ=
16590  always_export_symbols_GCJ=no
16591  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16592  # include_expsyms should be a list of space-separated symbols to be *always*
16593  # included in the symbol list
16594  include_expsyms_GCJ=
16595  # exclude_expsyms can be an extended regexp of symbols to exclude
16596  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16597  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16598  # as well as any symbol that contains `d'.
16599  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16600  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16601  # platforms (ab)use it in PIC code, but their linkers get confused if
16602  # the symbol is explicitly referenced.  Since portable code cannot
16603  # rely on this symbol name, it's probably fine to never include it in
16604  # preloaded symbol tables.
16605  extract_expsyms_cmds=
16606
16607  case $host_os in
16608  cygwin* | mingw* | pw32*)
16609    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16610    # When not using gcc, we currently assume that we are using
16611    # Microsoft Visual C++.
16612    if test "$GCC" != yes; then
16613      with_gnu_ld=no
16614    fi
16615    ;;
16616  openbsd*)
16617    with_gnu_ld=no
16618    ;;
16619  esac
16620
16621  ld_shlibs_GCJ=yes
16622  if test "$with_gnu_ld" = yes; then
16623    # If archive_cmds runs LD, not CC, wlarc should be empty
16624    wlarc='${wl}'
16625
16626    # See if GNU ld supports shared libraries.
16627    case $host_os in
16628    aix3* | aix4* | aix5*)
16629      # On AIX/PPC, the GNU linker is very broken
16630      if test "$host_cpu" != ia64; then
16631	ld_shlibs_GCJ=no
16632	cat <<EOF 1>&2
16633
16634*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16635*** to be unable to reliably create shared libraries on AIX.
16636*** Therefore, libtool is disabling shared libraries support.  If you
16637*** really care for shared libraries, you may want to modify your PATH
16638*** so that a non-GNU linker is found, and then restart.
16639
16640EOF
16641      fi
16642      ;;
16643
16644    amigaos*)
16645      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)'
16646      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16647      hardcode_minus_L_GCJ=yes
16648
16649      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16650      # that the semantics of dynamic libraries on AmigaOS, at least up
16651      # to version 4, is to share data among multiple programs linked
16652      # with the same dynamic library.  Since this doesn't match the
16653      # behavior of shared libraries on other platforms, we can't use
16654      # them.
16655      ld_shlibs_GCJ=no
16656      ;;
16657
16658    beos*)
16659      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16660	allow_undefined_flag_GCJ=unsupported
16661	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16662	# support --undefined.  This deserves some investigation.  FIXME
16663	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16664      else
16665	ld_shlibs_GCJ=no
16666      fi
16667      ;;
16668
16669    cygwin* | mingw* | pw32*)
16670      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16671      # as there is no search path for DLLs.
16672      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16673      allow_undefined_flag_GCJ=unsupported
16674      always_export_symbols_GCJ=no
16675      enable_shared_with_static_runtimes_GCJ=yes
16676      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16677
16678      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16679        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16680	# If the export-symbols file already is a .def file (1st line
16681	# is EXPORTS), use it as is; otherwise, prepend...
16682	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16683	  cp $export_symbols $output_objdir/$soname.def;
16684	else
16685	  echo EXPORTS > $output_objdir/$soname.def;
16686	  cat $export_symbols >> $output_objdir/$soname.def;
16687	fi~
16688	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16689      else
16690	ld_shlibs_GCJ=no
16691      fi
16692      ;;
16693
16694    netbsd*)
16695      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16696	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16697	wlarc=
16698      else
16699	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16700	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16701      fi
16702      ;;
16703
16704    solaris* | sysv5*)
16705      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16706	ld_shlibs_GCJ=no
16707	cat <<EOF 1>&2
16708
16709*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16710*** create shared libraries on Solaris systems.  Therefore, libtool
16711*** is disabling shared libraries support.  We urge you to upgrade GNU
16712*** binutils to release 2.9.1 or newer.  Another option is to modify
16713*** your PATH or compiler configuration so that the native linker is
16714*** used, and then restart.
16715
16716EOF
16717      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16718	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16719	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16720      else
16721	ld_shlibs_GCJ=no
16722      fi
16723      ;;
16724
16725    sunos4*)
16726      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16727      wlarc=
16728      hardcode_direct_GCJ=yes
16729      hardcode_shlibpath_var_GCJ=no
16730      ;;
16731
16732  linux*)
16733    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16734      tmp_addflag=
16735      case $CC,$host_cpu in
16736      pgf77* | pgf90* )			# Portland Group f77 and f90 compilers
16737        tmp_addflag=' -fpic' ;;
16738      ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16739        tmp_addflag=' -i_dynamic' ;;
16740      efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16741        tmp_addflag=' -i_dynamic -nofor_main' ;;
16742      ifc* | ifort*)			# Intel Fortran compiler
16743      	tmp_addflag=' -nofor_main' ;;
16744      esac
16745      archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16746      supports_anon_versioning=no
16747      case `$LD -v 2>/dev/null` in
16748        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16749        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16750        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16751        *\ 2.11.*) ;; # other 2.11 versions
16752        *) supports_anon_versioning=yes ;;
16753      esac
16754      if test $supports_anon_versioning = yes; then
16755        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16756cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16757$echo "local: *; };" >> $output_objdir/$libname.ver~
16758        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16759      else
16760        archive_expsym_cmds_GCJ=$archive_cmds_GCJ
16761      fi
16762    else
16763      ld_shlibs_GCJ=no
16764    fi
16765    ;;
16766
16767    *)
16768      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16769	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16770	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16771      else
16772	ld_shlibs_GCJ=no
16773      fi
16774      ;;
16775    esac
16776
16777    if test "$ld_shlibs_GCJ" = yes; then
16778      runpath_var=LD_RUN_PATH
16779      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16780      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16781      # ancient GNU ld didn't support --whole-archive et. al.
16782      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16783 	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16784      else
16785  	whole_archive_flag_spec_GCJ=
16786      fi
16787    fi
16788  else
16789    # PORTME fill in a description of your system's linker (not GNU ld)
16790    case $host_os in
16791    aix3*)
16792      allow_undefined_flag_GCJ=unsupported
16793      always_export_symbols_GCJ=yes
16794      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'
16795      # Note: this linker hardcodes the directories in LIBPATH if there
16796      # are no directories specified by -L.
16797      hardcode_minus_L_GCJ=yes
16798      if test "$GCC" = yes && test -z "$link_static_flag"; then
16799	# Neither direct hardcoding nor static linking is supported with a
16800	# broken collect2.
16801	hardcode_direct_GCJ=unsupported
16802      fi
16803      ;;
16804
16805    aix4* | aix5*)
16806      if test "$host_cpu" = ia64; then
16807	# On IA64, the linker does run time linking by default, so we don't
16808	# have to do anything special.
16809	aix_use_runtimelinking=no
16810	exp_sym_flag='-Bexport'
16811	no_entry_flag=""
16812      else
16813	# If we're using GNU nm, then we don't want the "-C" option.
16814	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16815	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16816	  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'
16817	else
16818	  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'
16819	fi
16820	aix_use_runtimelinking=no
16821
16822	# Test if we are trying to use run time linking or normal
16823	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16824	# need to do runtime linking.
16825	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16826	  for ld_flag in $LDFLAGS; do
16827  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16828  	    aix_use_runtimelinking=yes
16829  	    break
16830  	  fi
16831	  done
16832	esac
16833
16834	exp_sym_flag='-bexport'
16835	no_entry_flag='-bnoentry'
16836      fi
16837
16838      # When large executables or shared objects are built, AIX ld can
16839      # have problems creating the table of contents.  If linking a library
16840      # or program results in "error TOC overflow" add -mminimal-toc to
16841      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16842      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16843
16844      archive_cmds_GCJ=''
16845      hardcode_direct_GCJ=yes
16846      hardcode_libdir_separator_GCJ=':'
16847      link_all_deplibs_GCJ=yes
16848
16849      if test "$GCC" = yes; then
16850	case $host_os in aix4.[012]|aix4.[012].*)
16851	# We only want to do this on AIX 4.2 and lower, the check
16852	# below for broken collect2 doesn't work under 4.3+
16853	  collect2name=`${CC} -print-prog-name=collect2`
16854	  if test -f "$collect2name" && \
16855  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16856	  then
16857  	  # We have reworked collect2
16858  	  hardcode_direct_GCJ=yes
16859	  else
16860  	  # We have old collect2
16861  	  hardcode_direct_GCJ=unsupported
16862  	  # It fails to find uninstalled libraries when the uninstalled
16863  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16864  	  # to unsupported forces relinking
16865  	  hardcode_minus_L_GCJ=yes
16866  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16867  	  hardcode_libdir_separator_GCJ=
16868	  fi
16869	esac
16870	shared_flag='-shared'
16871	if test "$aix_use_runtimelinking" = yes; then
16872	  shared_flag="$shared_flag "'${wl}-G'
16873	fi
16874      else
16875	# not using gcc
16876	if test "$host_cpu" = ia64; then
16877  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16878  	# chokes on -Wl,-G. The following line is correct:
16879	  shared_flag='-G'
16880	else
16881  	if test "$aix_use_runtimelinking" = yes; then
16882	    shared_flag='${wl}-G'
16883	  else
16884	    shared_flag='${wl}-bM:SRE'
16885  	fi
16886	fi
16887      fi
16888
16889      # It seems that -bexpall does not export symbols beginning with
16890      # underscore (_), so it is better to generate a list of symbols to export.
16891      always_export_symbols_GCJ=yes
16892      if test "$aix_use_runtimelinking" = yes; then
16893	# Warning - without using the other runtime loading flags (-brtl),
16894	# -berok will link without error, but may produce a broken library.
16895	allow_undefined_flag_GCJ='-berok'
16896       # Determine the default libpath from the value encoded in an empty executable.
16897       cat >conftest.$ac_ext <<_ACEOF
16898/* confdefs.h.  */
16899_ACEOF
16900cat confdefs.h >>conftest.$ac_ext
16901cat >>conftest.$ac_ext <<_ACEOF
16902/* end confdefs.h.  */
16903
16904int
16905main ()
16906{
16907
16908  ;
16909  return 0;
16910}
16911_ACEOF
16912rm -f conftest.$ac_objext conftest$ac_exeext
16913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16914  (eval $ac_link) 2>conftest.er1
16915  ac_status=$?
16916  grep -v '^ *+' conftest.er1 >conftest.err
16917  rm -f conftest.er1
16918  cat conftest.err >&5
16919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920  (exit $ac_status); } &&
16921	 { ac_try='test -z "$ac_c_werror_flag"
16922			 || test ! -s conftest.err'
16923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924  (eval $ac_try) 2>&5
16925  ac_status=$?
16926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927  (exit $ac_status); }; } &&
16928	 { ac_try='test -s conftest$ac_exeext'
16929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930  (eval $ac_try) 2>&5
16931  ac_status=$?
16932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933  (exit $ac_status); }; }; then
16934
16935aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16936}'`
16937# Check for a 64-bit object if we didn't find anything.
16938if 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; }
16939}'`; fi
16940else
16941  echo "$as_me: failed program was:" >&5
16942sed 's/^/| /' conftest.$ac_ext >&5
16943
16944fi
16945rm -f conftest.err conftest.$ac_objext \
16946      conftest$ac_exeext conftest.$ac_ext
16947if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16948
16949       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16950	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"
16951       else
16952	if test "$host_cpu" = ia64; then
16953	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16954	  allow_undefined_flag_GCJ="-z nodefs"
16955	  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"
16956	else
16957	 # Determine the default libpath from the value encoded in an empty executable.
16958	 cat >conftest.$ac_ext <<_ACEOF
16959/* confdefs.h.  */
16960_ACEOF
16961cat confdefs.h >>conftest.$ac_ext
16962cat >>conftest.$ac_ext <<_ACEOF
16963/* end confdefs.h.  */
16964
16965int
16966main ()
16967{
16968
16969  ;
16970  return 0;
16971}
16972_ACEOF
16973rm -f conftest.$ac_objext conftest$ac_exeext
16974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16975  (eval $ac_link) 2>conftest.er1
16976  ac_status=$?
16977  grep -v '^ *+' conftest.er1 >conftest.err
16978  rm -f conftest.er1
16979  cat conftest.err >&5
16980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981  (exit $ac_status); } &&
16982	 { ac_try='test -z "$ac_c_werror_flag"
16983			 || test ! -s conftest.err'
16984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985  (eval $ac_try) 2>&5
16986  ac_status=$?
16987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988  (exit $ac_status); }; } &&
16989	 { ac_try='test -s conftest$ac_exeext'
16990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16991  (eval $ac_try) 2>&5
16992  ac_status=$?
16993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994  (exit $ac_status); }; }; then
16995
16996aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16997}'`
16998# Check for a 64-bit object if we didn't find anything.
16999if 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; }
17000}'`; fi
17001else
17002  echo "$as_me: failed program was:" >&5
17003sed 's/^/| /' conftest.$ac_ext >&5
17004
17005fi
17006rm -f conftest.err conftest.$ac_objext \
17007      conftest$ac_exeext conftest.$ac_ext
17008if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17009
17010	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17011	  # Warning - without using the other run time loading flags,
17012	  # -berok will link without error, but may produce a broken library.
17013	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17014	  allow_undefined_flag_GCJ=' ${wl}-berok'
17015	  # -bexpall does not export symbols beginning with underscore (_)
17016	  always_export_symbols_GCJ=yes
17017	  # Exported symbols can be pulled into shared objects from archives
17018	  whole_archive_flag_spec_GCJ=' '
17019	  archive_cmds_need_lc_GCJ=yes
17020	  # This is similar to how AIX traditionally builds it's shared libraries.
17021	  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'
17022	fi
17023      fi
17024      ;;
17025
17026    amigaos*)
17027      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)'
17028      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17029      hardcode_minus_L_GCJ=yes
17030      # see comment about different semantics on the GNU ld section
17031      ld_shlibs_GCJ=no
17032      ;;
17033
17034    bsdi[45]*)
17035      export_dynamic_flag_spec_GCJ=-rdynamic
17036      ;;
17037
17038    cygwin* | mingw* | pw32*)
17039      # When not using gcc, we currently assume that we are using
17040      # Microsoft Visual C++.
17041      # hardcode_libdir_flag_spec is actually meaningless, as there is
17042      # no search path for DLLs.
17043      hardcode_libdir_flag_spec_GCJ=' '
17044      allow_undefined_flag_GCJ=unsupported
17045      # Tell ltmain to make .lib files, not .a files.
17046      libext=lib
17047      # Tell ltmain to make .dll files, not .so files.
17048      shrext_cmds=".dll"
17049      # FIXME: Setting linknames here is a bad hack.
17050      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17051      # The linker will automatically build a .lib file if we build a DLL.
17052      old_archive_From_new_cmds_GCJ='true'
17053      # FIXME: Should let the user specify the lib program.
17054      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17055      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17056      enable_shared_with_static_runtimes_GCJ=yes
17057      ;;
17058
17059    darwin* | rhapsody*)
17060      case "$host_os" in
17061        rhapsody* | darwin1.[012])
17062         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17063         ;;
17064       *) # Darwin 1.3 on
17065         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17066           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17067         else
17068           case ${MACOSX_DEPLOYMENT_TARGET} in
17069             10.[012])
17070               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17071               ;;
17072             10.*)
17073               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17074               ;;
17075           esac
17076         fi
17077         ;;
17078      esac
17079      archive_cmds_need_lc_GCJ=no
17080      hardcode_direct_GCJ=no
17081      hardcode_automatic_GCJ=yes
17082      hardcode_shlibpath_var_GCJ=unsupported
17083      whole_archive_flag_spec_GCJ=''
17084      link_all_deplibs_GCJ=yes
17085    if test "$GCC" = yes ; then
17086    	output_verbose_link_cmd='echo'
17087        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17088      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17089      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17090      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}'
17091      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}'
17092    else
17093      case "$cc_basename" in
17094        xlc*)
17095         output_verbose_link_cmd='echo'
17096         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17097         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17098          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17099         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}'
17100          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}'
17101          ;;
17102       *)
17103         ld_shlibs_GCJ=no
17104          ;;
17105      esac
17106    fi
17107      ;;
17108
17109    dgux*)
17110      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17111      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17112      hardcode_shlibpath_var_GCJ=no
17113      ;;
17114
17115    freebsd1*)
17116      ld_shlibs_GCJ=no
17117      ;;
17118
17119    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17120    # support.  Future versions do this automatically, but an explicit c++rt0.o
17121    # does not break anything, and helps significantly (at the cost of a little
17122    # extra space).
17123    freebsd2.2*)
17124      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17125      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17126      hardcode_direct_GCJ=yes
17127      hardcode_shlibpath_var_GCJ=no
17128      ;;
17129
17130    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17131    freebsd2*)
17132      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17133      hardcode_direct_GCJ=yes
17134      hardcode_minus_L_GCJ=yes
17135      hardcode_shlibpath_var_GCJ=no
17136      ;;
17137
17138    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17139    freebsd* | kfreebsd*-gnu | dragonfly*)
17140      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17141      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17142      hardcode_direct_GCJ=yes
17143      hardcode_shlibpath_var_GCJ=no
17144      ;;
17145
17146    hpux9*)
17147      if test "$GCC" = yes; then
17148	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'
17149      else
17150	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'
17151      fi
17152      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17153      hardcode_libdir_separator_GCJ=:
17154      hardcode_direct_GCJ=yes
17155
17156      # hardcode_minus_L: Not really in the search PATH,
17157      # but as the default location of the library.
17158      hardcode_minus_L_GCJ=yes
17159      export_dynamic_flag_spec_GCJ='${wl}-E'
17160      ;;
17161
17162    hpux10* | hpux11*)
17163      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17164	case "$host_cpu" in
17165	hppa*64*|ia64*)
17166	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17167	  ;;
17168	*)
17169	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17170	  ;;
17171	esac
17172      else
17173	case "$host_cpu" in
17174	hppa*64*|ia64*)
17175	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17176	  ;;
17177	*)
17178	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17179	  ;;
17180	esac
17181      fi
17182      if test "$with_gnu_ld" = no; then
17183	case "$host_cpu" in
17184	hppa*64*)
17185	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17186	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17187	  hardcode_libdir_separator_GCJ=:
17188	  hardcode_direct_GCJ=no
17189	  hardcode_shlibpath_var_GCJ=no
17190	  ;;
17191	ia64*)
17192	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17193	  hardcode_direct_GCJ=no
17194	  hardcode_shlibpath_var_GCJ=no
17195
17196	  # hardcode_minus_L: Not really in the search PATH,
17197	  # but as the default location of the library.
17198	  hardcode_minus_L_GCJ=yes
17199	  ;;
17200	*)
17201	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17202	  hardcode_libdir_separator_GCJ=:
17203	  hardcode_direct_GCJ=yes
17204	  export_dynamic_flag_spec_GCJ='${wl}-E'
17205
17206	  # hardcode_minus_L: Not really in the search PATH,
17207	  # but as the default location of the library.
17208	  hardcode_minus_L_GCJ=yes
17209	  ;;
17210	esac
17211      fi
17212      ;;
17213
17214    irix5* | irix6* | nonstopux*)
17215      if test "$GCC" = yes; then
17216	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'
17217      else
17218	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'
17219	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17220      fi
17221      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17222      hardcode_libdir_separator_GCJ=:
17223      link_all_deplibs_GCJ=yes
17224      ;;
17225
17226    netbsd*)
17227      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17228	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17229      else
17230	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17231      fi
17232      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17233      hardcode_direct_GCJ=yes
17234      hardcode_shlibpath_var_GCJ=no
17235      ;;
17236
17237    newsos6)
17238      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17239      hardcode_direct_GCJ=yes
17240      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17241      hardcode_libdir_separator_GCJ=:
17242      hardcode_shlibpath_var_GCJ=no
17243      ;;
17244
17245    openbsd*)
17246      hardcode_direct_GCJ=yes
17247      hardcode_shlibpath_var_GCJ=no
17248      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17249	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17250	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17251	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17252	export_dynamic_flag_spec_GCJ='${wl}-E'
17253      else
17254       case $host_os in
17255	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17256	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17257	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17258	   ;;
17259	 *)
17260	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17261	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17262	   ;;
17263       esac
17264      fi
17265      ;;
17266
17267    os2*)
17268      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17269      hardcode_minus_L_GCJ=yes
17270      allow_undefined_flag_GCJ=unsupported
17271      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'
17272      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17273      ;;
17274
17275    osf3*)
17276      if test "$GCC" = yes; then
17277	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17278	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'
17279      else
17280	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17281	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'
17282      fi
17283      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17284      hardcode_libdir_separator_GCJ=:
17285      ;;
17286
17287    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17288      if test "$GCC" = yes; then
17289	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17290	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'
17291	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17292      else
17293	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17294	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'
17295	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~
17296	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17297
17298	# Both c and cxx compiler support -rpath directly
17299	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17300      fi
17301      hardcode_libdir_separator_GCJ=:
17302      ;;
17303
17304    sco3.2v5*)
17305      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17306      hardcode_shlibpath_var_GCJ=no
17307      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17308      runpath_var=LD_RUN_PATH
17309      hardcode_runpath_var=yes
17310      ;;
17311
17312    solaris*)
17313      no_undefined_flag_GCJ=' -z text'
17314      if test "$GCC" = yes; then
17315	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17316	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17317	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17318      else
17319	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17320	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17321  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17322      fi
17323      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17324      hardcode_shlibpath_var_GCJ=no
17325      case $host_os in
17326      solaris2.[0-5] | solaris2.[0-5].*) ;;
17327      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17328	whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
17329      esac
17330      link_all_deplibs_GCJ=yes
17331      ;;
17332
17333    sunos4*)
17334      if test "x$host_vendor" = xsequent; then
17335	# Use $CC to link under sequent, because it throws in some extra .o
17336	# files that make .init and .fini sections work.
17337	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17338      else
17339	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17340      fi
17341      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17342      hardcode_direct_GCJ=yes
17343      hardcode_minus_L_GCJ=yes
17344      hardcode_shlibpath_var_GCJ=no
17345      ;;
17346
17347    sysv4)
17348      case $host_vendor in
17349	sni)
17350	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17351	  hardcode_direct_GCJ=yes # is this really true???
17352	;;
17353	siemens)
17354	  ## LD is ld it makes a PLAMLIB
17355	  ## CC just makes a GrossModule.
17356	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17357	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17358	  hardcode_direct_GCJ=no
17359        ;;
17360	motorola)
17361	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17363	;;
17364      esac
17365      runpath_var='LD_RUN_PATH'
17366      hardcode_shlibpath_var_GCJ=no
17367      ;;
17368
17369    sysv4.3*)
17370      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17371      hardcode_shlibpath_var_GCJ=no
17372      export_dynamic_flag_spec_GCJ='-Bexport'
17373      ;;
17374
17375    sysv4*MP*)
17376      if test -d /usr/nec; then
17377	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17378	hardcode_shlibpath_var_GCJ=no
17379	runpath_var=LD_RUN_PATH
17380	hardcode_runpath_var=yes
17381	ld_shlibs_GCJ=yes
17382      fi
17383      ;;
17384
17385    sysv4.2uw2*)
17386      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17387      hardcode_direct_GCJ=yes
17388      hardcode_minus_L_GCJ=no
17389      hardcode_shlibpath_var_GCJ=no
17390      hardcode_runpath_var=yes
17391      runpath_var=LD_RUN_PATH
17392      ;;
17393
17394   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17395      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17396      if test "$GCC" = yes; then
17397	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17398      else
17399	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17400      fi
17401      runpath_var='LD_RUN_PATH'
17402      hardcode_shlibpath_var_GCJ=no
17403      ;;
17404
17405    sysv5*)
17406      no_undefined_flag_GCJ=' -z text'
17407      # $CC -shared without GNU ld will not create a library from C++
17408      # object files and a static libstdc++, better avoid it by now
17409      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17410      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17411  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17412      hardcode_libdir_flag_spec_GCJ=
17413      hardcode_shlibpath_var_GCJ=no
17414      runpath_var='LD_RUN_PATH'
17415      ;;
17416
17417    uts4*)
17418      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17419      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17420      hardcode_shlibpath_var_GCJ=no
17421      ;;
17422
17423    *)
17424      ld_shlibs_GCJ=no
17425      ;;
17426    esac
17427  fi
17428
17429echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17430echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17431test "$ld_shlibs_GCJ" = no && can_build_shared=no
17432
17433variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17434if test "$GCC" = yes; then
17435  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17436fi
17437
17438#
17439# Do we need to explicitly link libc?
17440#
17441case "x$archive_cmds_need_lc_GCJ" in
17442x|xyes)
17443  # Assume -lc should be added
17444  archive_cmds_need_lc_GCJ=yes
17445
17446  if test "$enable_shared" = yes && test "$GCC" = yes; then
17447    case $archive_cmds_GCJ in
17448    *'~'*)
17449      # FIXME: we may have to deal with multi-command sequences.
17450      ;;
17451    '$CC '*)
17452      # Test whether the compiler implicitly links with -lc since on some
17453      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17454      # to ld, don't add -lc before -lgcc.
17455      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17456echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17457      $rm conftest*
17458      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17459
17460      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17461  (eval $ac_compile) 2>&5
17462  ac_status=$?
17463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464  (exit $ac_status); } 2>conftest.err; then
17465        soname=conftest
17466        lib=conftest
17467        libobjs=conftest.$ac_objext
17468        deplibs=
17469        wl=$lt_prog_compiler_wl_GCJ
17470        compiler_flags=-v
17471        linker_flags=-v
17472        verstring=
17473        output_objdir=.
17474        libname=conftest
17475        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17476        allow_undefined_flag_GCJ=
17477        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17478  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17479  ac_status=$?
17480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481  (exit $ac_status); }
17482        then
17483	  archive_cmds_need_lc_GCJ=no
17484        else
17485	  archive_cmds_need_lc_GCJ=yes
17486        fi
17487        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17488      else
17489        cat conftest.err 1>&5
17490      fi
17491      $rm conftest*
17492      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17493echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17494      ;;
17495    esac
17496  fi
17497  ;;
17498esac
17499
17500echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17501echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17502library_names_spec=
17503libname_spec='lib$name'
17504soname_spec=
17505shrext_cmds=".so"
17506postinstall_cmds=
17507postuninstall_cmds=
17508finish_cmds=
17509finish_eval=
17510shlibpath_var=
17511shlibpath_overrides_runpath=unknown
17512version_type=none
17513dynamic_linker="$host_os ld.so"
17514sys_lib_dlsearch_path_spec="/lib /usr/lib"
17515if test "$GCC" = yes; then
17516  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17517  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17518    # if the path contains ";" then we assume it to be the separator
17519    # otherwise default to the standard path separator (i.e. ":") - it is
17520    # assumed that no part of a normal pathname contains ";" but that should
17521    # okay in the real world where ";" in dirpaths is itself problematic.
17522    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17523  else
17524    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17525  fi
17526else
17527  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17528fi
17529need_lib_prefix=unknown
17530hardcode_into_libs=no
17531
17532# when you set need_version to no, make sure it does not cause -set_version
17533# flags to be left without arguments
17534need_version=unknown
17535
17536case $host_os in
17537aix3*)
17538  version_type=linux
17539  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17540  shlibpath_var=LIBPATH
17541
17542  # AIX 3 has no versioning support, so we append a major version to the name.
17543  soname_spec='${libname}${release}${shared_ext}$major'
17544  ;;
17545
17546aix4* | aix5*)
17547  version_type=linux
17548  need_lib_prefix=no
17549  need_version=no
17550  hardcode_into_libs=yes
17551  if test "$host_cpu" = ia64; then
17552    # AIX 5 supports IA64
17553    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17554    shlibpath_var=LD_LIBRARY_PATH
17555  else
17556    # With GCC up to 2.95.x, collect2 would create an import file
17557    # for dependence libraries.  The import file would start with
17558    # the line `#! .'.  This would cause the generated library to
17559    # depend on `.', always an invalid library.  This was fixed in
17560    # development snapshots of GCC prior to 3.0.
17561    case $host_os in
17562      aix4 | aix4.[01] | aix4.[01].*)
17563      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17564	   echo ' yes '
17565	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17566	:
17567      else
17568	can_build_shared=no
17569      fi
17570      ;;
17571    esac
17572    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17573    # soname into executable. Probably we can add versioning support to
17574    # collect2, so additional links can be useful in future.
17575    if test "$aix_use_runtimelinking" = yes; then
17576      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17577      # instead of lib<name>.a to let people know that these are not
17578      # typical AIX shared libraries.
17579      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580    else
17581      # We preserve .a as extension for shared libraries through AIX4.2
17582      # and later when we are not doing run time linking.
17583      library_names_spec='${libname}${release}.a $libname.a'
17584      soname_spec='${libname}${release}${shared_ext}$major'
17585    fi
17586    shlibpath_var=LIBPATH
17587  fi
17588  ;;
17589
17590amigaos*)
17591  library_names_spec='$libname.ixlibrary $libname.a'
17592  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17593  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'
17594  ;;
17595
17596beos*)
17597  library_names_spec='${libname}${shared_ext}'
17598  dynamic_linker="$host_os ld.so"
17599  shlibpath_var=LIBRARY_PATH
17600  ;;
17601
17602bsdi[45]*)
17603  version_type=linux
17604  need_version=no
17605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606  soname_spec='${libname}${release}${shared_ext}$major'
17607  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17608  shlibpath_var=LD_LIBRARY_PATH
17609  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17610  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17611  # the default ld.so.conf also contains /usr/contrib/lib and
17612  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17613  # libtool to hard-code these into programs
17614  ;;
17615
17616cygwin* | mingw* | pw32*)
17617  version_type=windows
17618  shrext_cmds=".dll"
17619  need_version=no
17620  need_lib_prefix=no
17621
17622  case $GCC,$host_os in
17623  yes,cygwin* | yes,mingw* | yes,pw32*)
17624    library_names_spec='$libname.dll.a'
17625    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17626    postinstall_cmds='base_file=`basename \${file}`~
17627      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17628      dldir=$destdir/`dirname \$dlpath`~
17629      test -d \$dldir || mkdir -p \$dldir~
17630      $install_prog $dir/$dlname \$dldir/$dlname'
17631    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17632      dlpath=$dir/\$dldll~
17633       $rm \$dlpath'
17634    shlibpath_overrides_runpath=yes
17635
17636    case $host_os in
17637    cygwin*)
17638      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17639      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17640      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17641      ;;
17642    mingw*)
17643      # MinGW DLLs use traditional 'lib' prefix
17644      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17645      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17646      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17647        # It is most probably a Windows format PATH printed by
17648        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17649        # path with ; separators, and with drive letters. We can handle the
17650        # drive letters (cygwin fileutils understands them), so leave them,
17651        # especially as we might pass files found there to a mingw objdump,
17652        # which wouldn't understand a cygwinified path. Ahh.
17653        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17654      else
17655        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17656      fi
17657      ;;
17658    pw32*)
17659      # pw32 DLLs use 'pw' prefix rather than 'lib'
17660      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17661      ;;
17662    esac
17663    ;;
17664
17665  *)
17666    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17667    ;;
17668  esac
17669  dynamic_linker='Win32 ld.exe'
17670  # FIXME: first we should search . and the directory the executable is in
17671  shlibpath_var=PATH
17672  ;;
17673
17674darwin* | rhapsody*)
17675  dynamic_linker="$host_os dyld"
17676  version_type=darwin
17677  need_lib_prefix=no
17678  need_version=no
17679  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17680  soname_spec='${libname}${release}${major}$shared_ext'
17681  shlibpath_overrides_runpath=yes
17682  shlibpath_var=DYLD_LIBRARY_PATH
17683  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17684  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17685  if test "$GCC" = yes; then
17686    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"`
17687  else
17688    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17689  fi
17690  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17691  ;;
17692
17693dgux*)
17694  version_type=linux
17695  need_lib_prefix=no
17696  need_version=no
17697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17698  soname_spec='${libname}${release}${shared_ext}$major'
17699  shlibpath_var=LD_LIBRARY_PATH
17700  ;;
17701
17702freebsd1*)
17703  dynamic_linker=no
17704  ;;
17705
17706kfreebsd*-gnu)
17707  version_type=linux
17708  need_lib_prefix=no
17709  need_version=no
17710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17711  soname_spec='${libname}${release}${shared_ext}$major'
17712  shlibpath_var=LD_LIBRARY_PATH
17713  shlibpath_overrides_runpath=no
17714  hardcode_into_libs=yes
17715  dynamic_linker='GNU ld.so'
17716  ;;
17717
17718freebsd* | dragonfly*)
17719  # DragonFly does not have aout.  When/if they implement a new
17720  # versioning mechanism, adjust this.
17721  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17722  version_type=freebsd-$objformat
17723  case $version_type in
17724    freebsd-elf*)
17725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17726      need_version=no
17727      need_lib_prefix=no
17728      ;;
17729    freebsd-*)
17730      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17731      need_version=yes
17732      ;;
17733  esac
17734  shlibpath_var=LD_LIBRARY_PATH
17735  case $host_os in
17736  freebsd2*)
17737    shlibpath_overrides_runpath=yes
17738    ;;
17739  freebsd3.[01]* | freebsdelf3.[01]*)
17740    shlibpath_overrides_runpath=yes
17741    hardcode_into_libs=yes
17742    ;;
17743  *) # from 3.2 on
17744    shlibpath_overrides_runpath=no
17745    hardcode_into_libs=yes
17746    ;;
17747  esac
17748  ;;
17749
17750gnu*)
17751  version_type=linux
17752  need_lib_prefix=no
17753  need_version=no
17754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17755  soname_spec='${libname}${release}${shared_ext}$major'
17756  shlibpath_var=LD_LIBRARY_PATH
17757  hardcode_into_libs=yes
17758  ;;
17759
17760hpux9* | hpux10* | hpux11*)
17761  # Give a soname corresponding to the major version so that dld.sl refuses to
17762  # link against other versions.
17763  version_type=sunos
17764  need_lib_prefix=no
17765  need_version=no
17766  case "$host_cpu" in
17767  ia64*)
17768    shrext_cmds='.so'
17769    hardcode_into_libs=yes
17770    dynamic_linker="$host_os dld.so"
17771    shlibpath_var=LD_LIBRARY_PATH
17772    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17773    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17774    soname_spec='${libname}${release}${shared_ext}$major'
17775    if test "X$HPUX_IA64_MODE" = X32; then
17776      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17777    else
17778      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17779    fi
17780    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17781    ;;
17782   hppa*64*)
17783     shrext_cmds='.sl'
17784     hardcode_into_libs=yes
17785     dynamic_linker="$host_os dld.sl"
17786     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17787     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789     soname_spec='${libname}${release}${shared_ext}$major'
17790     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17791     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17792     ;;
17793   *)
17794    shrext_cmds='.sl'
17795    dynamic_linker="$host_os dld.sl"
17796    shlibpath_var=SHLIB_PATH
17797    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17798    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17799    soname_spec='${libname}${release}${shared_ext}$major'
17800    ;;
17801  esac
17802  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17803  postinstall_cmds='chmod 555 $lib'
17804  ;;
17805
17806irix5* | irix6* | nonstopux*)
17807  case $host_os in
17808    nonstopux*) version_type=nonstopux ;;
17809    *)
17810	if test "$lt_cv_prog_gnu_ld" = yes; then
17811		version_type=linux
17812	else
17813		version_type=irix
17814	fi ;;
17815  esac
17816  need_lib_prefix=no
17817  need_version=no
17818  soname_spec='${libname}${release}${shared_ext}$major'
17819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17820  case $host_os in
17821  irix5* | nonstopux*)
17822    libsuff= shlibsuff=
17823    ;;
17824  *)
17825    case $LD in # libtool.m4 will add one of these switches to LD
17826    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17827      libsuff= shlibsuff= libmagic=32-bit;;
17828    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17829      libsuff=32 shlibsuff=N32 libmagic=N32;;
17830    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17831      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17832    *) libsuff= shlibsuff= libmagic=never-match;;
17833    esac
17834    ;;
17835  esac
17836  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17837  shlibpath_overrides_runpath=no
17838  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17839  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17840  hardcode_into_libs=yes
17841  ;;
17842
17843# No shared lib support for Linux oldld, aout, or coff.
17844linux*oldld* | linux*aout* | linux*coff*)
17845  dynamic_linker=no
17846  ;;
17847
17848# This must be Linux ELF.
17849linux*)
17850  version_type=linux
17851  need_lib_prefix=no
17852  need_version=no
17853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854  soname_spec='${libname}${release}${shared_ext}$major'
17855  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17856  shlibpath_var=LD_LIBRARY_PATH
17857  shlibpath_overrides_runpath=no
17858  # This implies no fast_install, which is unacceptable.
17859  # Some rework will be needed to allow for fast_install
17860  # before this can be enabled.
17861  hardcode_into_libs=yes
17862
17863  # Append ld.so.conf contents to the search path
17864  if test -f /etc/ld.so.conf; then
17865    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17866    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17867  fi
17868
17869  # We used to test for /lib/ld.so.1 and disable shared libraries on
17870  # powerpc, because MkLinux only supported shared libraries with the
17871  # GNU dynamic linker.  Since this was broken with cross compilers,
17872  # most powerpc-linux boxes support dynamic linking these days and
17873  # people can always --disable-shared, the test was removed, and we
17874  # assume the GNU/Linux dynamic linker is in use.
17875  dynamic_linker='GNU/Linux ld.so'
17876  ;;
17877
17878knetbsd*-gnu)
17879  version_type=linux
17880  need_lib_prefix=no
17881  need_version=no
17882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17883  soname_spec='${libname}${release}${shared_ext}$major'
17884  shlibpath_var=LD_LIBRARY_PATH
17885  shlibpath_overrides_runpath=no
17886  hardcode_into_libs=yes
17887  dynamic_linker='GNU ld.so'
17888  ;;
17889
17890netbsd*)
17891  version_type=sunos
17892  need_lib_prefix=no
17893  need_version=no
17894  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17895    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17896    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17897    dynamic_linker='NetBSD (a.out) ld.so'
17898  else
17899    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17900    soname_spec='${libname}${release}${shared_ext}$major'
17901    dynamic_linker='NetBSD ld.elf_so'
17902  fi
17903  shlibpath_var=LD_LIBRARY_PATH
17904  shlibpath_overrides_runpath=yes
17905  hardcode_into_libs=yes
17906  ;;
17907
17908newsos6)
17909  version_type=linux
17910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17911  shlibpath_var=LD_LIBRARY_PATH
17912  shlibpath_overrides_runpath=yes
17913  ;;
17914
17915nto-qnx*)
17916  version_type=linux
17917  need_lib_prefix=no
17918  need_version=no
17919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17920  soname_spec='${libname}${release}${shared_ext}$major'
17921  shlibpath_var=LD_LIBRARY_PATH
17922  shlibpath_overrides_runpath=yes
17923  ;;
17924
17925openbsd*)
17926  version_type=sunos
17927  need_lib_prefix=no
17928  need_version=no
17929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17930  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17931  shlibpath_var=LD_LIBRARY_PATH
17932  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17933    case $host_os in
17934      openbsd2.[89] | openbsd2.[89].*)
17935	shlibpath_overrides_runpath=no
17936	;;
17937      *)
17938	shlibpath_overrides_runpath=yes
17939	;;
17940      esac
17941  else
17942    shlibpath_overrides_runpath=yes
17943  fi
17944  ;;
17945
17946os2*)
17947  libname_spec='$name'
17948  shrext_cmds=".dll"
17949  need_lib_prefix=no
17950  library_names_spec='$libname${shared_ext} $libname.a'
17951  dynamic_linker='OS/2 ld.exe'
17952  shlibpath_var=LIBPATH
17953  ;;
17954
17955osf3* | osf4* | osf5*)
17956  version_type=osf
17957  need_lib_prefix=no
17958  need_version=no
17959  soname_spec='${libname}${release}${shared_ext}$major'
17960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17961  shlibpath_var=LD_LIBRARY_PATH
17962  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17963  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17964  ;;
17965
17966sco3.2v5*)
17967  version_type=osf
17968  soname_spec='${libname}${release}${shared_ext}$major'
17969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17970  shlibpath_var=LD_LIBRARY_PATH
17971  ;;
17972
17973solaris*)
17974  version_type=linux
17975  need_lib_prefix=no
17976  need_version=no
17977  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17978  soname_spec='${libname}${release}${shared_ext}$major'
17979  shlibpath_var=LD_LIBRARY_PATH
17980  shlibpath_overrides_runpath=yes
17981  hardcode_into_libs=yes
17982  # ldd complains unless libraries are executable
17983  postinstall_cmds='chmod +x $lib'
17984  ;;
17985
17986sunos4*)
17987  version_type=sunos
17988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17989  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17990  shlibpath_var=LD_LIBRARY_PATH
17991  shlibpath_overrides_runpath=yes
17992  if test "$with_gnu_ld" = yes; then
17993    need_lib_prefix=no
17994  fi
17995  need_version=yes
17996  ;;
17997
17998sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17999  version_type=linux
18000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18001  soname_spec='${libname}${release}${shared_ext}$major'
18002  shlibpath_var=LD_LIBRARY_PATH
18003  case $host_vendor in
18004    sni)
18005      shlibpath_overrides_runpath=no
18006      need_lib_prefix=no
18007      export_dynamic_flag_spec='${wl}-Blargedynsym'
18008      runpath_var=LD_RUN_PATH
18009      ;;
18010    siemens)
18011      need_lib_prefix=no
18012      ;;
18013    motorola)
18014      need_lib_prefix=no
18015      need_version=no
18016      shlibpath_overrides_runpath=no
18017      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18018      ;;
18019  esac
18020  ;;
18021
18022sysv4*MP*)
18023  if test -d /usr/nec ;then
18024    version_type=linux
18025    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18026    soname_spec='$libname${shared_ext}.$major'
18027    shlibpath_var=LD_LIBRARY_PATH
18028  fi
18029  ;;
18030
18031uts4*)
18032  version_type=linux
18033  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034  soname_spec='${libname}${release}${shared_ext}$major'
18035  shlibpath_var=LD_LIBRARY_PATH
18036  ;;
18037
18038*)
18039  dynamic_linker=no
18040  ;;
18041esac
18042echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18043echo "${ECHO_T}$dynamic_linker" >&6
18044test "$dynamic_linker" = no && can_build_shared=no
18045
18046echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18047echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18048hardcode_action_GCJ=
18049if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18050   test -n "$runpath_var_GCJ" || \
18051   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18052
18053  # We can hardcode non-existant directories.
18054  if test "$hardcode_direct_GCJ" != no &&
18055     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18056     # have to relink, otherwise we might link with an installed library
18057     # when we should be linking with a yet-to-be-installed one
18058     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18059     test "$hardcode_minus_L_GCJ" != no; then
18060    # Linking always hardcodes the temporary library directory.
18061    hardcode_action_GCJ=relink
18062  else
18063    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18064    hardcode_action_GCJ=immediate
18065  fi
18066else
18067  # We cannot hardcode anything, or else we can only hardcode existing
18068  # directories.
18069  hardcode_action_GCJ=unsupported
18070fi
18071echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18072echo "${ECHO_T}$hardcode_action_GCJ" >&6
18073
18074if test "$hardcode_action_GCJ" = relink; then
18075  # Fast installation is not supported
18076  enable_fast_install=no
18077elif test "$shlibpath_overrides_runpath" = yes ||
18078     test "$enable_shared" = no; then
18079  # Fast installation is not necessary
18080  enable_fast_install=needless
18081fi
18082
18083striplib=
18084old_striplib=
18085echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18086echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18087if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18088  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18089  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18090  echo "$as_me:$LINENO: result: yes" >&5
18091echo "${ECHO_T}yes" >&6
18092else
18093# FIXME - insert some real tests, host_os isn't really good enough
18094  case $host_os in
18095   darwin*)
18096       if test -n "$STRIP" ; then
18097         striplib="$STRIP -x"
18098         echo "$as_me:$LINENO: result: yes" >&5
18099echo "${ECHO_T}yes" >&6
18100       else
18101  echo "$as_me:$LINENO: result: no" >&5
18102echo "${ECHO_T}no" >&6
18103fi
18104       ;;
18105   *)
18106  echo "$as_me:$LINENO: result: no" >&5
18107echo "${ECHO_T}no" >&6
18108    ;;
18109  esac
18110fi
18111
18112if test "x$enable_dlopen" != xyes; then
18113  enable_dlopen=unknown
18114  enable_dlopen_self=unknown
18115  enable_dlopen_self_static=unknown
18116else
18117  lt_cv_dlopen=no
18118  lt_cv_dlopen_libs=
18119
18120  case $host_os in
18121  beos*)
18122    lt_cv_dlopen="load_add_on"
18123    lt_cv_dlopen_libs=
18124    lt_cv_dlopen_self=yes
18125    ;;
18126
18127  mingw* | pw32*)
18128    lt_cv_dlopen="LoadLibrary"
18129    lt_cv_dlopen_libs=
18130   ;;
18131
18132  cygwin*)
18133    lt_cv_dlopen="dlopen"
18134    lt_cv_dlopen_libs=
18135   ;;
18136
18137  darwin*)
18138  # if libdl is installed we need to link against it
18139    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18140echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18141if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18142  echo $ECHO_N "(cached) $ECHO_C" >&6
18143else
18144  ac_check_lib_save_LIBS=$LIBS
18145LIBS="-ldl  $LIBS"
18146cat >conftest.$ac_ext <<_ACEOF
18147/* confdefs.h.  */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h.  */
18152
18153/* Override any gcc2 internal prototype to avoid an error.  */
18154#ifdef __cplusplus
18155extern "C"
18156#endif
18157/* We use char because int might match the return type of a gcc2
18158   builtin and then its argument prototype would still apply.  */
18159char dlopen ();
18160int
18161main ()
18162{
18163dlopen ();
18164  ;
18165  return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext conftest$ac_exeext
18169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18170  (eval $ac_link) 2>conftest.er1
18171  ac_status=$?
18172  grep -v '^ *+' conftest.er1 >conftest.err
18173  rm -f conftest.er1
18174  cat conftest.err >&5
18175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176  (exit $ac_status); } &&
18177	 { ac_try='test -z "$ac_c_werror_flag"
18178			 || test ! -s conftest.err'
18179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180  (eval $ac_try) 2>&5
18181  ac_status=$?
18182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183  (exit $ac_status); }; } &&
18184	 { ac_try='test -s conftest$ac_exeext'
18185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186  (eval $ac_try) 2>&5
18187  ac_status=$?
18188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189  (exit $ac_status); }; }; then
18190  ac_cv_lib_dl_dlopen=yes
18191else
18192  echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
18195ac_cv_lib_dl_dlopen=no
18196fi
18197rm -f conftest.err conftest.$ac_objext \
18198      conftest$ac_exeext conftest.$ac_ext
18199LIBS=$ac_check_lib_save_LIBS
18200fi
18201echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18202echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18203if test $ac_cv_lib_dl_dlopen = yes; then
18204  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18205else
18206
18207    lt_cv_dlopen="dyld"
18208    lt_cv_dlopen_libs=
18209    lt_cv_dlopen_self=yes
18210
18211fi
18212
18213   ;;
18214
18215  *)
18216    echo "$as_me:$LINENO: checking for shl_load" >&5
18217echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18218if test "${ac_cv_func_shl_load+set}" = set; then
18219  echo $ECHO_N "(cached) $ECHO_C" >&6
18220else
18221  cat >conftest.$ac_ext <<_ACEOF
18222/* confdefs.h.  */
18223_ACEOF
18224cat confdefs.h >>conftest.$ac_ext
18225cat >>conftest.$ac_ext <<_ACEOF
18226/* end confdefs.h.  */
18227/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18228   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18229#define shl_load innocuous_shl_load
18230
18231/* System header to define __stub macros and hopefully few prototypes,
18232    which can conflict with char shl_load (); below.
18233    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18234    <limits.h> exists even on freestanding compilers.  */
18235
18236#ifdef __STDC__
18237# include <limits.h>
18238#else
18239# include <assert.h>
18240#endif
18241
18242#undef shl_load
18243
18244/* Override any gcc2 internal prototype to avoid an error.  */
18245#ifdef __cplusplus
18246extern "C"
18247{
18248#endif
18249/* We use char because int might match the return type of a gcc2
18250   builtin and then its argument prototype would still apply.  */
18251char shl_load ();
18252/* The GNU C library defines this for functions which it implements
18253    to always fail with ENOSYS.  Some functions are actually named
18254    something starting with __ and the normal name is an alias.  */
18255#if defined (__stub_shl_load) || defined (__stub___shl_load)
18256choke me
18257#else
18258char (*f) () = shl_load;
18259#endif
18260#ifdef __cplusplus
18261}
18262#endif
18263
18264int
18265main ()
18266{
18267return f != shl_load;
18268  ;
18269  return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext conftest$ac_exeext
18273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18274  (eval $ac_link) 2>conftest.er1
18275  ac_status=$?
18276  grep -v '^ *+' conftest.er1 >conftest.err
18277  rm -f conftest.er1
18278  cat conftest.err >&5
18279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280  (exit $ac_status); } &&
18281	 { ac_try='test -z "$ac_c_werror_flag"
18282			 || test ! -s conftest.err'
18283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284  (eval $ac_try) 2>&5
18285  ac_status=$?
18286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287  (exit $ac_status); }; } &&
18288	 { ac_try='test -s conftest$ac_exeext'
18289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290  (eval $ac_try) 2>&5
18291  ac_status=$?
18292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293  (exit $ac_status); }; }; then
18294  ac_cv_func_shl_load=yes
18295else
18296  echo "$as_me: failed program was:" >&5
18297sed 's/^/| /' conftest.$ac_ext >&5
18298
18299ac_cv_func_shl_load=no
18300fi
18301rm -f conftest.err conftest.$ac_objext \
18302      conftest$ac_exeext conftest.$ac_ext
18303fi
18304echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18305echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18306if test $ac_cv_func_shl_load = yes; then
18307  lt_cv_dlopen="shl_load"
18308else
18309  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18310echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18311if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18312  echo $ECHO_N "(cached) $ECHO_C" >&6
18313else
18314  ac_check_lib_save_LIBS=$LIBS
18315LIBS="-ldld  $LIBS"
18316cat >conftest.$ac_ext <<_ACEOF
18317/* confdefs.h.  */
18318_ACEOF
18319cat confdefs.h >>conftest.$ac_ext
18320cat >>conftest.$ac_ext <<_ACEOF
18321/* end confdefs.h.  */
18322
18323/* Override any gcc2 internal prototype to avoid an error.  */
18324#ifdef __cplusplus
18325extern "C"
18326#endif
18327/* We use char because int might match the return type of a gcc2
18328   builtin and then its argument prototype would still apply.  */
18329char shl_load ();
18330int
18331main ()
18332{
18333shl_load ();
18334  ;
18335  return 0;
18336}
18337_ACEOF
18338rm -f conftest.$ac_objext conftest$ac_exeext
18339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18340  (eval $ac_link) 2>conftest.er1
18341  ac_status=$?
18342  grep -v '^ *+' conftest.er1 >conftest.err
18343  rm -f conftest.er1
18344  cat conftest.err >&5
18345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346  (exit $ac_status); } &&
18347	 { ac_try='test -z "$ac_c_werror_flag"
18348			 || test ! -s conftest.err'
18349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350  (eval $ac_try) 2>&5
18351  ac_status=$?
18352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353  (exit $ac_status); }; } &&
18354	 { ac_try='test -s conftest$ac_exeext'
18355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356  (eval $ac_try) 2>&5
18357  ac_status=$?
18358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359  (exit $ac_status); }; }; then
18360  ac_cv_lib_dld_shl_load=yes
18361else
18362  echo "$as_me: failed program was:" >&5
18363sed 's/^/| /' conftest.$ac_ext >&5
18364
18365ac_cv_lib_dld_shl_load=no
18366fi
18367rm -f conftest.err conftest.$ac_objext \
18368      conftest$ac_exeext conftest.$ac_ext
18369LIBS=$ac_check_lib_save_LIBS
18370fi
18371echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18372echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18373if test $ac_cv_lib_dld_shl_load = yes; then
18374  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18375else
18376  echo "$as_me:$LINENO: checking for dlopen" >&5
18377echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18378if test "${ac_cv_func_dlopen+set}" = set; then
18379  echo $ECHO_N "(cached) $ECHO_C" >&6
18380else
18381  cat >conftest.$ac_ext <<_ACEOF
18382/* confdefs.h.  */
18383_ACEOF
18384cat confdefs.h >>conftest.$ac_ext
18385cat >>conftest.$ac_ext <<_ACEOF
18386/* end confdefs.h.  */
18387/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18388   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18389#define dlopen innocuous_dlopen
18390
18391/* System header to define __stub macros and hopefully few prototypes,
18392    which can conflict with char dlopen (); below.
18393    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18394    <limits.h> exists even on freestanding compilers.  */
18395
18396#ifdef __STDC__
18397# include <limits.h>
18398#else
18399# include <assert.h>
18400#endif
18401
18402#undef dlopen
18403
18404/* Override any gcc2 internal prototype to avoid an error.  */
18405#ifdef __cplusplus
18406extern "C"
18407{
18408#endif
18409/* We use char because int might match the return type of a gcc2
18410   builtin and then its argument prototype would still apply.  */
18411char dlopen ();
18412/* The GNU C library defines this for functions which it implements
18413    to always fail with ENOSYS.  Some functions are actually named
18414    something starting with __ and the normal name is an alias.  */
18415#if defined (__stub_dlopen) || defined (__stub___dlopen)
18416choke me
18417#else
18418char (*f) () = dlopen;
18419#endif
18420#ifdef __cplusplus
18421}
18422#endif
18423
18424int
18425main ()
18426{
18427return f != dlopen;
18428  ;
18429  return 0;
18430}
18431_ACEOF
18432rm -f conftest.$ac_objext conftest$ac_exeext
18433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18434  (eval $ac_link) 2>conftest.er1
18435  ac_status=$?
18436  grep -v '^ *+' conftest.er1 >conftest.err
18437  rm -f conftest.er1
18438  cat conftest.err >&5
18439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440  (exit $ac_status); } &&
18441	 { ac_try='test -z "$ac_c_werror_flag"
18442			 || test ! -s conftest.err'
18443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444  (eval $ac_try) 2>&5
18445  ac_status=$?
18446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447  (exit $ac_status); }; } &&
18448	 { ac_try='test -s conftest$ac_exeext'
18449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450  (eval $ac_try) 2>&5
18451  ac_status=$?
18452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453  (exit $ac_status); }; }; then
18454  ac_cv_func_dlopen=yes
18455else
18456  echo "$as_me: failed program was:" >&5
18457sed 's/^/| /' conftest.$ac_ext >&5
18458
18459ac_cv_func_dlopen=no
18460fi
18461rm -f conftest.err conftest.$ac_objext \
18462      conftest$ac_exeext conftest.$ac_ext
18463fi
18464echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18465echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18466if test $ac_cv_func_dlopen = yes; then
18467  lt_cv_dlopen="dlopen"
18468else
18469  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18470echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18471if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18472  echo $ECHO_N "(cached) $ECHO_C" >&6
18473else
18474  ac_check_lib_save_LIBS=$LIBS
18475LIBS="-ldl  $LIBS"
18476cat >conftest.$ac_ext <<_ACEOF
18477/* confdefs.h.  */
18478_ACEOF
18479cat confdefs.h >>conftest.$ac_ext
18480cat >>conftest.$ac_ext <<_ACEOF
18481/* end confdefs.h.  */
18482
18483/* Override any gcc2 internal prototype to avoid an error.  */
18484#ifdef __cplusplus
18485extern "C"
18486#endif
18487/* We use char because int might match the return type of a gcc2
18488   builtin and then its argument prototype would still apply.  */
18489char dlopen ();
18490int
18491main ()
18492{
18493dlopen ();
18494  ;
18495  return 0;
18496}
18497_ACEOF
18498rm -f conftest.$ac_objext conftest$ac_exeext
18499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18500  (eval $ac_link) 2>conftest.er1
18501  ac_status=$?
18502  grep -v '^ *+' conftest.er1 >conftest.err
18503  rm -f conftest.er1
18504  cat conftest.err >&5
18505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506  (exit $ac_status); } &&
18507	 { ac_try='test -z "$ac_c_werror_flag"
18508			 || test ! -s conftest.err'
18509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510  (eval $ac_try) 2>&5
18511  ac_status=$?
18512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513  (exit $ac_status); }; } &&
18514	 { ac_try='test -s conftest$ac_exeext'
18515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516  (eval $ac_try) 2>&5
18517  ac_status=$?
18518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519  (exit $ac_status); }; }; then
18520  ac_cv_lib_dl_dlopen=yes
18521else
18522  echo "$as_me: failed program was:" >&5
18523sed 's/^/| /' conftest.$ac_ext >&5
18524
18525ac_cv_lib_dl_dlopen=no
18526fi
18527rm -f conftest.err conftest.$ac_objext \
18528      conftest$ac_exeext conftest.$ac_ext
18529LIBS=$ac_check_lib_save_LIBS
18530fi
18531echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18532echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18533if test $ac_cv_lib_dl_dlopen = yes; then
18534  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18535else
18536  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18537echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18538if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18539  echo $ECHO_N "(cached) $ECHO_C" >&6
18540else
18541  ac_check_lib_save_LIBS=$LIBS
18542LIBS="-lsvld  $LIBS"
18543cat >conftest.$ac_ext <<_ACEOF
18544/* confdefs.h.  */
18545_ACEOF
18546cat confdefs.h >>conftest.$ac_ext
18547cat >>conftest.$ac_ext <<_ACEOF
18548/* end confdefs.h.  */
18549
18550/* Override any gcc2 internal prototype to avoid an error.  */
18551#ifdef __cplusplus
18552extern "C"
18553#endif
18554/* We use char because int might match the return type of a gcc2
18555   builtin and then its argument prototype would still apply.  */
18556char dlopen ();
18557int
18558main ()
18559{
18560dlopen ();
18561  ;
18562  return 0;
18563}
18564_ACEOF
18565rm -f conftest.$ac_objext conftest$ac_exeext
18566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567  (eval $ac_link) 2>conftest.er1
18568  ac_status=$?
18569  grep -v '^ *+' conftest.er1 >conftest.err
18570  rm -f conftest.er1
18571  cat conftest.err >&5
18572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573  (exit $ac_status); } &&
18574	 { ac_try='test -z "$ac_c_werror_flag"
18575			 || test ! -s conftest.err'
18576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577  (eval $ac_try) 2>&5
18578  ac_status=$?
18579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580  (exit $ac_status); }; } &&
18581	 { ac_try='test -s conftest$ac_exeext'
18582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583  (eval $ac_try) 2>&5
18584  ac_status=$?
18585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586  (exit $ac_status); }; }; then
18587  ac_cv_lib_svld_dlopen=yes
18588else
18589  echo "$as_me: failed program was:" >&5
18590sed 's/^/| /' conftest.$ac_ext >&5
18591
18592ac_cv_lib_svld_dlopen=no
18593fi
18594rm -f conftest.err conftest.$ac_objext \
18595      conftest$ac_exeext conftest.$ac_ext
18596LIBS=$ac_check_lib_save_LIBS
18597fi
18598echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18599echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18600if test $ac_cv_lib_svld_dlopen = yes; then
18601  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18602else
18603  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18604echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18605if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18606  echo $ECHO_N "(cached) $ECHO_C" >&6
18607else
18608  ac_check_lib_save_LIBS=$LIBS
18609LIBS="-ldld  $LIBS"
18610cat >conftest.$ac_ext <<_ACEOF
18611/* confdefs.h.  */
18612_ACEOF
18613cat confdefs.h >>conftest.$ac_ext
18614cat >>conftest.$ac_ext <<_ACEOF
18615/* end confdefs.h.  */
18616
18617/* Override any gcc2 internal prototype to avoid an error.  */
18618#ifdef __cplusplus
18619extern "C"
18620#endif
18621/* We use char because int might match the return type of a gcc2
18622   builtin and then its argument prototype would still apply.  */
18623char dld_link ();
18624int
18625main ()
18626{
18627dld_link ();
18628  ;
18629  return 0;
18630}
18631_ACEOF
18632rm -f conftest.$ac_objext conftest$ac_exeext
18633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18634  (eval $ac_link) 2>conftest.er1
18635  ac_status=$?
18636  grep -v '^ *+' conftest.er1 >conftest.err
18637  rm -f conftest.er1
18638  cat conftest.err >&5
18639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640  (exit $ac_status); } &&
18641	 { ac_try='test -z "$ac_c_werror_flag"
18642			 || test ! -s conftest.err'
18643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18644  (eval $ac_try) 2>&5
18645  ac_status=$?
18646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647  (exit $ac_status); }; } &&
18648	 { ac_try='test -s conftest$ac_exeext'
18649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650  (eval $ac_try) 2>&5
18651  ac_status=$?
18652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653  (exit $ac_status); }; }; then
18654  ac_cv_lib_dld_dld_link=yes
18655else
18656  echo "$as_me: failed program was:" >&5
18657sed 's/^/| /' conftest.$ac_ext >&5
18658
18659ac_cv_lib_dld_dld_link=no
18660fi
18661rm -f conftest.err conftest.$ac_objext \
18662      conftest$ac_exeext conftest.$ac_ext
18663LIBS=$ac_check_lib_save_LIBS
18664fi
18665echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18666echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18667if test $ac_cv_lib_dld_dld_link = yes; then
18668  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18669fi
18670
18671
18672fi
18673
18674
18675fi
18676
18677
18678fi
18679
18680
18681fi
18682
18683
18684fi
18685
18686    ;;
18687  esac
18688
18689  if test "x$lt_cv_dlopen" != xno; then
18690    enable_dlopen=yes
18691  else
18692    enable_dlopen=no
18693  fi
18694
18695  case $lt_cv_dlopen in
18696  dlopen)
18697    save_CPPFLAGS="$CPPFLAGS"
18698    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18699
18700    save_LDFLAGS="$LDFLAGS"
18701    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18702
18703    save_LIBS="$LIBS"
18704    LIBS="$lt_cv_dlopen_libs $LIBS"
18705
18706    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18707echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18708if test "${lt_cv_dlopen_self+set}" = set; then
18709  echo $ECHO_N "(cached) $ECHO_C" >&6
18710else
18711  	  if test "$cross_compiling" = yes; then :
18712  lt_cv_dlopen_self=cross
18713else
18714  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18715  lt_status=$lt_dlunknown
18716  cat > conftest.$ac_ext <<EOF
18717#line 18717 "configure"
18718#include "confdefs.h"
18719
18720#if HAVE_DLFCN_H
18721#include <dlfcn.h>
18722#endif
18723
18724#include <stdio.h>
18725
18726#ifdef RTLD_GLOBAL
18727#  define LT_DLGLOBAL		RTLD_GLOBAL
18728#else
18729#  ifdef DL_GLOBAL
18730#    define LT_DLGLOBAL		DL_GLOBAL
18731#  else
18732#    define LT_DLGLOBAL		0
18733#  endif
18734#endif
18735
18736/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18737   find out it does not work in some platform. */
18738#ifndef LT_DLLAZY_OR_NOW
18739#  ifdef RTLD_LAZY
18740#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18741#  else
18742#    ifdef DL_LAZY
18743#      define LT_DLLAZY_OR_NOW		DL_LAZY
18744#    else
18745#      ifdef RTLD_NOW
18746#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18747#      else
18748#        ifdef DL_NOW
18749#          define LT_DLLAZY_OR_NOW	DL_NOW
18750#        else
18751#          define LT_DLLAZY_OR_NOW	0
18752#        endif
18753#      endif
18754#    endif
18755#  endif
18756#endif
18757
18758#ifdef __cplusplus
18759extern "C" void exit (int);
18760#endif
18761
18762void fnord() { int i=42;}
18763int main ()
18764{
18765  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18766  int status = $lt_dlunknown;
18767
18768  if (self)
18769    {
18770      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18771      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18772      /* dlclose (self); */
18773    }
18774
18775    exit (status);
18776}
18777EOF
18778  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18779  (eval $ac_link) 2>&5
18780  ac_status=$?
18781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18783    (./conftest; exit; ) 2>/dev/null
18784    lt_status=$?
18785    case x$lt_status in
18786      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18787      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18788      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18789    esac
18790  else :
18791    # compilation failed
18792    lt_cv_dlopen_self=no
18793  fi
18794fi
18795rm -fr conftest*
18796
18797
18798fi
18799echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18800echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18801
18802    if test "x$lt_cv_dlopen_self" = xyes; then
18803      LDFLAGS="$LDFLAGS $link_static_flag"
18804      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18805echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18806if test "${lt_cv_dlopen_self_static+set}" = set; then
18807  echo $ECHO_N "(cached) $ECHO_C" >&6
18808else
18809  	  if test "$cross_compiling" = yes; then :
18810  lt_cv_dlopen_self_static=cross
18811else
18812  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18813  lt_status=$lt_dlunknown
18814  cat > conftest.$ac_ext <<EOF
18815#line 18815 "configure"
18816#include "confdefs.h"
18817
18818#if HAVE_DLFCN_H
18819#include <dlfcn.h>
18820#endif
18821
18822#include <stdio.h>
18823
18824#ifdef RTLD_GLOBAL
18825#  define LT_DLGLOBAL		RTLD_GLOBAL
18826#else
18827#  ifdef DL_GLOBAL
18828#    define LT_DLGLOBAL		DL_GLOBAL
18829#  else
18830#    define LT_DLGLOBAL		0
18831#  endif
18832#endif
18833
18834/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18835   find out it does not work in some platform. */
18836#ifndef LT_DLLAZY_OR_NOW
18837#  ifdef RTLD_LAZY
18838#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18839#  else
18840#    ifdef DL_LAZY
18841#      define LT_DLLAZY_OR_NOW		DL_LAZY
18842#    else
18843#      ifdef RTLD_NOW
18844#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18845#      else
18846#        ifdef DL_NOW
18847#          define LT_DLLAZY_OR_NOW	DL_NOW
18848#        else
18849#          define LT_DLLAZY_OR_NOW	0
18850#        endif
18851#      endif
18852#    endif
18853#  endif
18854#endif
18855
18856#ifdef __cplusplus
18857extern "C" void exit (int);
18858#endif
18859
18860void fnord() { int i=42;}
18861int main ()
18862{
18863  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18864  int status = $lt_dlunknown;
18865
18866  if (self)
18867    {
18868      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18869      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18870      /* dlclose (self); */
18871    }
18872
18873    exit (status);
18874}
18875EOF
18876  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18877  (eval $ac_link) 2>&5
18878  ac_status=$?
18879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18881    (./conftest; exit; ) 2>/dev/null
18882    lt_status=$?
18883    case x$lt_status in
18884      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18885      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18886      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18887    esac
18888  else :
18889    # compilation failed
18890    lt_cv_dlopen_self_static=no
18891  fi
18892fi
18893rm -fr conftest*
18894
18895
18896fi
18897echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18898echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18899    fi
18900
18901    CPPFLAGS="$save_CPPFLAGS"
18902    LDFLAGS="$save_LDFLAGS"
18903    LIBS="$save_LIBS"
18904    ;;
18905  esac
18906
18907  case $lt_cv_dlopen_self in
18908  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18909  *) enable_dlopen_self=unknown ;;
18910  esac
18911
18912  case $lt_cv_dlopen_self_static in
18913  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18914  *) enable_dlopen_self_static=unknown ;;
18915  esac
18916fi
18917
18918
18919# The else clause should only fire when bootstrapping the
18920# libtool distribution, otherwise you forgot to ship ltmain.sh
18921# with your package, and you will get complaints that there are
18922# no rules to generate ltmain.sh.
18923if test -f "$ltmain"; then
18924  # See if we are running on zsh, and set the options which allow our commands through
18925  # without removal of \ escapes.
18926  if test -n "${ZSH_VERSION+set}" ; then
18927    setopt NO_GLOB_SUBST
18928  fi
18929  # Now quote all the things that may contain metacharacters while being
18930  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18931  # variables and quote the copies for generation of the libtool script.
18932  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
18933    SED SHELL STRIP \
18934    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18935    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18936    deplibs_check_method reload_flag reload_cmds need_locks \
18937    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18938    lt_cv_sys_global_symbol_to_c_name_address \
18939    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18940    old_postinstall_cmds old_postuninstall_cmds \
18941    compiler_GCJ \
18942    CC_GCJ \
18943    LD_GCJ \
18944    lt_prog_compiler_wl_GCJ \
18945    lt_prog_compiler_pic_GCJ \
18946    lt_prog_compiler_static_GCJ \
18947    lt_prog_compiler_no_builtin_flag_GCJ \
18948    export_dynamic_flag_spec_GCJ \
18949    thread_safe_flag_spec_GCJ \
18950    whole_archive_flag_spec_GCJ \
18951    enable_shared_with_static_runtimes_GCJ \
18952    old_archive_cmds_GCJ \
18953    old_archive_from_new_cmds_GCJ \
18954    predep_objects_GCJ \
18955    postdep_objects_GCJ \
18956    predeps_GCJ \
18957    postdeps_GCJ \
18958    compiler_lib_search_path_GCJ \
18959    archive_cmds_GCJ \
18960    archive_expsym_cmds_GCJ \
18961    postinstall_cmds_GCJ \
18962    postuninstall_cmds_GCJ \
18963    old_archive_from_expsyms_cmds_GCJ \
18964    allow_undefined_flag_GCJ \
18965    no_undefined_flag_GCJ \
18966    export_symbols_cmds_GCJ \
18967    hardcode_libdir_flag_spec_GCJ \
18968    hardcode_libdir_flag_spec_ld_GCJ \
18969    hardcode_libdir_separator_GCJ \
18970    hardcode_automatic_GCJ \
18971    module_cmds_GCJ \
18972    module_expsym_cmds_GCJ \
18973    lt_cv_prog_compiler_c_o_GCJ \
18974    exclude_expsyms_GCJ \
18975    include_expsyms_GCJ; do
18976
18977    case $var in
18978    old_archive_cmds_GCJ | \
18979    old_archive_from_new_cmds_GCJ | \
18980    archive_cmds_GCJ | \
18981    archive_expsym_cmds_GCJ | \
18982    module_cmds_GCJ | \
18983    module_expsym_cmds_GCJ | \
18984    old_archive_from_expsyms_cmds_GCJ | \
18985    export_symbols_cmds_GCJ | \
18986    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18987    postinstall_cmds | postuninstall_cmds | \
18988    old_postinstall_cmds | old_postuninstall_cmds | \
18989    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18990      # Double-quote double-evaled strings.
18991      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18992      ;;
18993    *)
18994      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18995      ;;
18996    esac
18997  done
18998
18999  case $lt_echo in
19000  *'\$0 --fallback-echo"')
19001    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19002    ;;
19003  esac
19004
19005cfgfile="$ofile"
19006
19007  cat <<__EOF__ >> "$cfgfile"
19008# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19009
19010# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19011
19012# Shell to use when invoking shell scripts.
19013SHELL=$lt_SHELL
19014
19015# Whether or not to build shared libraries.
19016build_libtool_libs=$enable_shared
19017
19018# Whether or not to build static libraries.
19019build_old_libs=$enable_static
19020
19021# Whether or not to add -lc for building shared libraries.
19022build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19023
19024# Whether or not to disallow shared libs when runtime libs are static
19025allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19026
19027# Whether or not to optimize for fast installation.
19028fast_install=$enable_fast_install
19029
19030# The host system.
19031host_alias=$host_alias
19032host=$host
19033host_os=$host_os
19034
19035# The build system.
19036build_alias=$build_alias
19037build=$build
19038build_os=$build_os
19039
19040# An echo program that does not interpret backslashes.
19041echo=$lt_echo
19042
19043# The archiver.
19044AR=$lt_AR
19045AR_FLAGS=$lt_AR_FLAGS
19046
19047# A C compiler.
19048LTCC=$lt_LTCC
19049
19050# A language-specific compiler.
19051CC=$lt_compiler_GCJ
19052
19053# Is the compiler the GNU C compiler?
19054with_gcc=$GCC_GCJ
19055
19056# An ERE matcher.
19057EGREP=$lt_EGREP
19058
19059# The linker used to build libraries.
19060LD=$lt_LD_GCJ
19061
19062# Whether we need hard or soft links.
19063LN_S=$lt_LN_S
19064
19065# A BSD-compatible nm program.
19066NM=$lt_NM
19067
19068# A symbol stripping program
19069STRIP=$lt_STRIP
19070
19071# Used to examine libraries when file_magic_cmd begins "file"
19072MAGIC_CMD=$MAGIC_CMD
19073
19074# Used on cygwin: DLL creation program.
19075DLLTOOL="$DLLTOOL"
19076
19077# Used on cygwin: object dumper.
19078OBJDUMP="$OBJDUMP"
19079
19080# Used on cygwin: assembler.
19081AS=$lt_AS
19082
19083# The name of the directory that contains temporary libtool files.
19084objdir=$objdir
19085
19086# How to create reloadable object files.
19087reload_flag=$lt_reload_flag
19088reload_cmds=$lt_reload_cmds
19089
19090# How to pass a linker flag through the compiler.
19091wl=$lt_lt_prog_compiler_wl_GCJ
19092
19093# Object file suffix (normally "o").
19094objext="$ac_objext"
19095
19096# Old archive suffix (normally "a").
19097libext="$libext"
19098
19099# Shared library suffix (normally ".so").
19100shrext_cmds='$shrext_cmds'
19101
19102# Executable file suffix (normally "").
19103exeext="$exeext"
19104
19105# Additional compiler flags for building library objects.
19106pic_flag=$lt_lt_prog_compiler_pic_GCJ
19107pic_mode=$pic_mode
19108
19109# What is the maximum length of a command?
19110max_cmd_len=$lt_cv_sys_max_cmd_len
19111
19112# Does compiler simultaneously support -c and -o options?
19113compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19114
19115# Must we lock files when doing compilation ?
19116need_locks=$lt_need_locks
19117
19118# Do we need the lib prefix for modules?
19119need_lib_prefix=$need_lib_prefix
19120
19121# Do we need a version for libraries?
19122need_version=$need_version
19123
19124# Whether dlopen is supported.
19125dlopen_support=$enable_dlopen
19126
19127# Whether dlopen of programs is supported.
19128dlopen_self=$enable_dlopen_self
19129
19130# Whether dlopen of statically linked programs is supported.
19131dlopen_self_static=$enable_dlopen_self_static
19132
19133# Compiler flag to prevent dynamic linking.
19134link_static_flag=$lt_lt_prog_compiler_static_GCJ
19135
19136# Compiler flag to turn off builtin functions.
19137no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19138
19139# Compiler flag to allow reflexive dlopens.
19140export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19141
19142# Compiler flag to generate shared objects directly from archives.
19143whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19144
19145# Compiler flag to generate thread-safe objects.
19146thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19147
19148# Library versioning type.
19149version_type=$version_type
19150
19151# Format of library name prefix.
19152libname_spec=$lt_libname_spec
19153
19154# List of archive names.  First name is the real one, the rest are links.
19155# The last name is the one that the linker finds with -lNAME.
19156library_names_spec=$lt_library_names_spec
19157
19158# The coded name of the library, if different from the real name.
19159soname_spec=$lt_soname_spec
19160
19161# Commands used to build and install an old-style archive.
19162RANLIB=$lt_RANLIB
19163old_archive_cmds=$lt_old_archive_cmds_GCJ
19164old_postinstall_cmds=$lt_old_postinstall_cmds
19165old_postuninstall_cmds=$lt_old_postuninstall_cmds
19166
19167# Create an old-style archive from a shared archive.
19168old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19169
19170# Create a temporary old-style archive to link instead of a shared archive.
19171old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19172
19173# Commands used to build and install a shared archive.
19174archive_cmds=$lt_archive_cmds_GCJ
19175archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19176postinstall_cmds=$lt_postinstall_cmds
19177postuninstall_cmds=$lt_postuninstall_cmds
19178
19179# Commands used to build a loadable module (assumed same as above if empty)
19180module_cmds=$lt_module_cmds_GCJ
19181module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19182
19183# Commands to strip libraries.
19184old_striplib=$lt_old_striplib
19185striplib=$lt_striplib
19186
19187# Dependencies to place before the objects being linked to create a
19188# shared library.
19189predep_objects=$lt_predep_objects_GCJ
19190
19191# Dependencies to place after the objects being linked to create a
19192# shared library.
19193postdep_objects=$lt_postdep_objects_GCJ
19194
19195# Dependencies to place before the objects being linked to create a
19196# shared library.
19197predeps=$lt_predeps_GCJ
19198
19199# Dependencies to place after the objects being linked to create a
19200# shared library.
19201postdeps=$lt_postdeps_GCJ
19202
19203# The library search path used internally by the compiler when linking
19204# a shared library.
19205compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19206
19207# Method to check whether dependent libraries are shared objects.
19208deplibs_check_method=$lt_deplibs_check_method
19209
19210# Command to use when deplibs_check_method == file_magic.
19211file_magic_cmd=$lt_file_magic_cmd
19212
19213# Flag that allows shared libraries with undefined symbols to be built.
19214allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19215
19216# Flag that forces no undefined symbols.
19217no_undefined_flag=$lt_no_undefined_flag_GCJ
19218
19219# Commands used to finish a libtool library installation in a directory.
19220finish_cmds=$lt_finish_cmds
19221
19222# Same as above, but a single script fragment to be evaled but not shown.
19223finish_eval=$lt_finish_eval
19224
19225# Take the output of nm and produce a listing of raw symbols and C names.
19226global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19227
19228# Transform the output of nm in a proper C declaration
19229global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19230
19231# Transform the output of nm in a C name address pair
19232global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19233
19234# This is the shared library runtime path variable.
19235runpath_var=$runpath_var
19236
19237# This is the shared library path variable.
19238shlibpath_var=$shlibpath_var
19239
19240# Is shlibpath searched before the hard-coded library search path?
19241shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19242
19243# How to hardcode a shared library path into an executable.
19244hardcode_action=$hardcode_action_GCJ
19245
19246# Whether we should hardcode library paths into libraries.
19247hardcode_into_libs=$hardcode_into_libs
19248
19249# Flag to hardcode \$libdir into a binary during linking.
19250# This must work even if \$libdir does not exist.
19251hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19252
19253# If ld is used when linking, flag to hardcode \$libdir into
19254# a binary during linking. This must work even if \$libdir does
19255# not exist.
19256hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19257
19258# Whether we need a single -rpath flag with a separated argument.
19259hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19260
19261# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19262# resulting binary.
19263hardcode_direct=$hardcode_direct_GCJ
19264
19265# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19266# resulting binary.
19267hardcode_minus_L=$hardcode_minus_L_GCJ
19268
19269# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19270# the resulting binary.
19271hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19272
19273# Set to yes if building a shared library automatically hardcodes DIR into the library
19274# and all subsequent libraries and executables linked against it.
19275hardcode_automatic=$hardcode_automatic_GCJ
19276
19277# Variables whose values should be saved in libtool wrapper scripts and
19278# restored at relink time.
19279variables_saved_for_relink="$variables_saved_for_relink"
19280
19281# Whether libtool must link a program against all its dependency libraries.
19282link_all_deplibs=$link_all_deplibs_GCJ
19283
19284# Compile-time system search path for libraries
19285sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19286
19287# Run-time system search path for libraries
19288sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19289
19290# Fix the shell variable \$srcfile for the compiler.
19291fix_srcfile_path="$fix_srcfile_path_GCJ"
19292
19293# Set to yes if exported symbols are required.
19294always_export_symbols=$always_export_symbols_GCJ
19295
19296# The commands to list exported symbols.
19297export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19298
19299# The commands to extract the exported symbol list from a shared archive.
19300extract_expsyms_cmds=$lt_extract_expsyms_cmds
19301
19302# Symbols that should not be listed in the preloaded symbols.
19303exclude_expsyms=$lt_exclude_expsyms_GCJ
19304
19305# Symbols that must always be exported.
19306include_expsyms=$lt_include_expsyms_GCJ
19307
19308# ### END LIBTOOL TAG CONFIG: $tagname
19309
19310__EOF__
19311
19312
19313else
19314  # If there is no Makefile yet, we rely on a make rule to execute
19315  # `config.status --recheck' to rerun these tests and create the
19316  # libtool script then.
19317  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19318  if test -f "$ltmain_in"; then
19319    test -f Makefile && make "$ltmain"
19320  fi
19321fi
19322
19323
19324ac_ext=c
19325ac_cpp='$CPP $CPPFLAGS'
19326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19328ac_compiler_gnu=$ac_cv_c_compiler_gnu
19329
19330CC="$lt_save_CC"
19331
19332	else
19333	  tagname=""
19334	fi
19335	;;
19336
19337      RC)
19338
19339
19340
19341# Source file extension for RC test sources.
19342ac_ext=rc
19343
19344# Object file extension for compiled RC test sources.
19345objext=o
19346objext_RC=$objext
19347
19348# Code to be used in simple compile tests
19349lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19350
19351# Code to be used in simple link tests
19352lt_simple_link_test_code="$lt_simple_compile_test_code"
19353
19354# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19355
19356# If no C compiler was specified, use CC.
19357LTCC=${LTCC-"$CC"}
19358
19359# Allow CC to be a program name with arguments.
19360compiler=$CC
19361
19362
19363# Allow CC to be a program name with arguments.
19364lt_save_CC="$CC"
19365CC=${RC-"windres"}
19366compiler=$CC
19367compiler_RC=$CC
19368lt_cv_prog_compiler_c_o_RC=yes
19369
19370# The else clause should only fire when bootstrapping the
19371# libtool distribution, otherwise you forgot to ship ltmain.sh
19372# with your package, and you will get complaints that there are
19373# no rules to generate ltmain.sh.
19374if test -f "$ltmain"; then
19375  # See if we are running on zsh, and set the options which allow our commands through
19376  # without removal of \ escapes.
19377  if test -n "${ZSH_VERSION+set}" ; then
19378    setopt NO_GLOB_SUBST
19379  fi
19380  # Now quote all the things that may contain metacharacters while being
19381  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19382  # variables and quote the copies for generation of the libtool script.
19383  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
19384    SED SHELL STRIP \
19385    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19386    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19387    deplibs_check_method reload_flag reload_cmds need_locks \
19388    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19389    lt_cv_sys_global_symbol_to_c_name_address \
19390    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19391    old_postinstall_cmds old_postuninstall_cmds \
19392    compiler_RC \
19393    CC_RC \
19394    LD_RC \
19395    lt_prog_compiler_wl_RC \
19396    lt_prog_compiler_pic_RC \
19397    lt_prog_compiler_static_RC \
19398    lt_prog_compiler_no_builtin_flag_RC \
19399    export_dynamic_flag_spec_RC \
19400    thread_safe_flag_spec_RC \
19401    whole_archive_flag_spec_RC \
19402    enable_shared_with_static_runtimes_RC \
19403    old_archive_cmds_RC \
19404    old_archive_from_new_cmds_RC \
19405    predep_objects_RC \
19406    postdep_objects_RC \
19407    predeps_RC \
19408    postdeps_RC \
19409    compiler_lib_search_path_RC \
19410    archive_cmds_RC \
19411    archive_expsym_cmds_RC \
19412    postinstall_cmds_RC \
19413    postuninstall_cmds_RC \
19414    old_archive_from_expsyms_cmds_RC \
19415    allow_undefined_flag_RC \
19416    no_undefined_flag_RC \
19417    export_symbols_cmds_RC \
19418    hardcode_libdir_flag_spec_RC \
19419    hardcode_libdir_flag_spec_ld_RC \
19420    hardcode_libdir_separator_RC \
19421    hardcode_automatic_RC \
19422    module_cmds_RC \
19423    module_expsym_cmds_RC \
19424    lt_cv_prog_compiler_c_o_RC \
19425    exclude_expsyms_RC \
19426    include_expsyms_RC; do
19427
19428    case $var in
19429    old_archive_cmds_RC | \
19430    old_archive_from_new_cmds_RC | \
19431    archive_cmds_RC | \
19432    archive_expsym_cmds_RC | \
19433    module_cmds_RC | \
19434    module_expsym_cmds_RC | \
19435    old_archive_from_expsyms_cmds_RC | \
19436    export_symbols_cmds_RC | \
19437    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19438    postinstall_cmds | postuninstall_cmds | \
19439    old_postinstall_cmds | old_postuninstall_cmds | \
19440    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19441      # Double-quote double-evaled strings.
19442      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19443      ;;
19444    *)
19445      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19446      ;;
19447    esac
19448  done
19449
19450  case $lt_echo in
19451  *'\$0 --fallback-echo"')
19452    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19453    ;;
19454  esac
19455
19456cfgfile="$ofile"
19457
19458  cat <<__EOF__ >> "$cfgfile"
19459# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19460
19461# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19462
19463# Shell to use when invoking shell scripts.
19464SHELL=$lt_SHELL
19465
19466# Whether or not to build shared libraries.
19467build_libtool_libs=$enable_shared
19468
19469# Whether or not to build static libraries.
19470build_old_libs=$enable_static
19471
19472# Whether or not to add -lc for building shared libraries.
19473build_libtool_need_lc=$archive_cmds_need_lc_RC
19474
19475# Whether or not to disallow shared libs when runtime libs are static
19476allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19477
19478# Whether or not to optimize for fast installation.
19479fast_install=$enable_fast_install
19480
19481# The host system.
19482host_alias=$host_alias
19483host=$host
19484host_os=$host_os
19485
19486# The build system.
19487build_alias=$build_alias
19488build=$build
19489build_os=$build_os
19490
19491# An echo program that does not interpret backslashes.
19492echo=$lt_echo
19493
19494# The archiver.
19495AR=$lt_AR
19496AR_FLAGS=$lt_AR_FLAGS
19497
19498# A C compiler.
19499LTCC=$lt_LTCC
19500
19501# A language-specific compiler.
19502CC=$lt_compiler_RC
19503
19504# Is the compiler the GNU C compiler?
19505with_gcc=$GCC_RC
19506
19507# An ERE matcher.
19508EGREP=$lt_EGREP
19509
19510# The linker used to build libraries.
19511LD=$lt_LD_RC
19512
19513# Whether we need hard or soft links.
19514LN_S=$lt_LN_S
19515
19516# A BSD-compatible nm program.
19517NM=$lt_NM
19518
19519# A symbol stripping program
19520STRIP=$lt_STRIP
19521
19522# Used to examine libraries when file_magic_cmd begins "file"
19523MAGIC_CMD=$MAGIC_CMD
19524
19525# Used on cygwin: DLL creation program.
19526DLLTOOL="$DLLTOOL"
19527
19528# Used on cygwin: object dumper.
19529OBJDUMP="$OBJDUMP"
19530
19531# Used on cygwin: assembler.
19532AS=$lt_AS
19533
19534# The name of the directory that contains temporary libtool files.
19535objdir=$objdir
19536
19537# How to create reloadable object files.
19538reload_flag=$lt_reload_flag
19539reload_cmds=$lt_reload_cmds
19540
19541# How to pass a linker flag through the compiler.
19542wl=$lt_lt_prog_compiler_wl_RC
19543
19544# Object file suffix (normally "o").
19545objext="$ac_objext"
19546
19547# Old archive suffix (normally "a").
19548libext="$libext"
19549
19550# Shared library suffix (normally ".so").
19551shrext_cmds='$shrext_cmds'
19552
19553# Executable file suffix (normally "").
19554exeext="$exeext"
19555
19556# Additional compiler flags for building library objects.
19557pic_flag=$lt_lt_prog_compiler_pic_RC
19558pic_mode=$pic_mode
19559
19560# What is the maximum length of a command?
19561max_cmd_len=$lt_cv_sys_max_cmd_len
19562
19563# Does compiler simultaneously support -c and -o options?
19564compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19565
19566# Must we lock files when doing compilation ?
19567need_locks=$lt_need_locks
19568
19569# Do we need the lib prefix for modules?
19570need_lib_prefix=$need_lib_prefix
19571
19572# Do we need a version for libraries?
19573need_version=$need_version
19574
19575# Whether dlopen is supported.
19576dlopen_support=$enable_dlopen
19577
19578# Whether dlopen of programs is supported.
19579dlopen_self=$enable_dlopen_self
19580
19581# Whether dlopen of statically linked programs is supported.
19582dlopen_self_static=$enable_dlopen_self_static
19583
19584# Compiler flag to prevent dynamic linking.
19585link_static_flag=$lt_lt_prog_compiler_static_RC
19586
19587# Compiler flag to turn off builtin functions.
19588no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19589
19590# Compiler flag to allow reflexive dlopens.
19591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19592
19593# Compiler flag to generate shared objects directly from archives.
19594whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19595
19596# Compiler flag to generate thread-safe objects.
19597thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19598
19599# Library versioning type.
19600version_type=$version_type
19601
19602# Format of library name prefix.
19603libname_spec=$lt_libname_spec
19604
19605# List of archive names.  First name is the real one, the rest are links.
19606# The last name is the one that the linker finds with -lNAME.
19607library_names_spec=$lt_library_names_spec
19608
19609# The coded name of the library, if different from the real name.
19610soname_spec=$lt_soname_spec
19611
19612# Commands used to build and install an old-style archive.
19613RANLIB=$lt_RANLIB
19614old_archive_cmds=$lt_old_archive_cmds_RC
19615old_postinstall_cmds=$lt_old_postinstall_cmds
19616old_postuninstall_cmds=$lt_old_postuninstall_cmds
19617
19618# Create an old-style archive from a shared archive.
19619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19620
19621# Create a temporary old-style archive to link instead of a shared archive.
19622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19623
19624# Commands used to build and install a shared archive.
19625archive_cmds=$lt_archive_cmds_RC
19626archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19627postinstall_cmds=$lt_postinstall_cmds
19628postuninstall_cmds=$lt_postuninstall_cmds
19629
19630# Commands used to build a loadable module (assumed same as above if empty)
19631module_cmds=$lt_module_cmds_RC
19632module_expsym_cmds=$lt_module_expsym_cmds_RC
19633
19634# Commands to strip libraries.
19635old_striplib=$lt_old_striplib
19636striplib=$lt_striplib
19637
19638# Dependencies to place before the objects being linked to create a
19639# shared library.
19640predep_objects=$lt_predep_objects_RC
19641
19642# Dependencies to place after the objects being linked to create a
19643# shared library.
19644postdep_objects=$lt_postdep_objects_RC
19645
19646# Dependencies to place before the objects being linked to create a
19647# shared library.
19648predeps=$lt_predeps_RC
19649
19650# Dependencies to place after the objects being linked to create a
19651# shared library.
19652postdeps=$lt_postdeps_RC
19653
19654# The library search path used internally by the compiler when linking
19655# a shared library.
19656compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19657
19658# Method to check whether dependent libraries are shared objects.
19659deplibs_check_method=$lt_deplibs_check_method
19660
19661# Command to use when deplibs_check_method == file_magic.
19662file_magic_cmd=$lt_file_magic_cmd
19663
19664# Flag that allows shared libraries with undefined symbols to be built.
19665allow_undefined_flag=$lt_allow_undefined_flag_RC
19666
19667# Flag that forces no undefined symbols.
19668no_undefined_flag=$lt_no_undefined_flag_RC
19669
19670# Commands used to finish a libtool library installation in a directory.
19671finish_cmds=$lt_finish_cmds
19672
19673# Same as above, but a single script fragment to be evaled but not shown.
19674finish_eval=$lt_finish_eval
19675
19676# Take the output of nm and produce a listing of raw symbols and C names.
19677global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19678
19679# Transform the output of nm in a proper C declaration
19680global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19681
19682# Transform the output of nm in a C name address pair
19683global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19684
19685# This is the shared library runtime path variable.
19686runpath_var=$runpath_var
19687
19688# This is the shared library path variable.
19689shlibpath_var=$shlibpath_var
19690
19691# Is shlibpath searched before the hard-coded library search path?
19692shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19693
19694# How to hardcode a shared library path into an executable.
19695hardcode_action=$hardcode_action_RC
19696
19697# Whether we should hardcode library paths into libraries.
19698hardcode_into_libs=$hardcode_into_libs
19699
19700# Flag to hardcode \$libdir into a binary during linking.
19701# This must work even if \$libdir does not exist.
19702hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19703
19704# If ld is used when linking, flag to hardcode \$libdir into
19705# a binary during linking. This must work even if \$libdir does
19706# not exist.
19707hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19708
19709# Whether we need a single -rpath flag with a separated argument.
19710hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19711
19712# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19713# resulting binary.
19714hardcode_direct=$hardcode_direct_RC
19715
19716# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19717# resulting binary.
19718hardcode_minus_L=$hardcode_minus_L_RC
19719
19720# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19721# the resulting binary.
19722hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19723
19724# Set to yes if building a shared library automatically hardcodes DIR into the library
19725# and all subsequent libraries and executables linked against it.
19726hardcode_automatic=$hardcode_automatic_RC
19727
19728# Variables whose values should be saved in libtool wrapper scripts and
19729# restored at relink time.
19730variables_saved_for_relink="$variables_saved_for_relink"
19731
19732# Whether libtool must link a program against all its dependency libraries.
19733link_all_deplibs=$link_all_deplibs_RC
19734
19735# Compile-time system search path for libraries
19736sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19737
19738# Run-time system search path for libraries
19739sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19740
19741# Fix the shell variable \$srcfile for the compiler.
19742fix_srcfile_path="$fix_srcfile_path_RC"
19743
19744# Set to yes if exported symbols are required.
19745always_export_symbols=$always_export_symbols_RC
19746
19747# The commands to list exported symbols.
19748export_symbols_cmds=$lt_export_symbols_cmds_RC
19749
19750# The commands to extract the exported symbol list from a shared archive.
19751extract_expsyms_cmds=$lt_extract_expsyms_cmds
19752
19753# Symbols that should not be listed in the preloaded symbols.
19754exclude_expsyms=$lt_exclude_expsyms_RC
19755
19756# Symbols that must always be exported.
19757include_expsyms=$lt_include_expsyms_RC
19758
19759# ### END LIBTOOL TAG CONFIG: $tagname
19760
19761__EOF__
19762
19763
19764else
19765  # If there is no Makefile yet, we rely on a make rule to execute
19766  # `config.status --recheck' to rerun these tests and create the
19767  # libtool script then.
19768  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19769  if test -f "$ltmain_in"; then
19770    test -f Makefile && make "$ltmain"
19771  fi
19772fi
19773
19774
19775ac_ext=c
19776ac_cpp='$CPP $CPPFLAGS'
19777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19779ac_compiler_gnu=$ac_cv_c_compiler_gnu
19780
19781CC="$lt_save_CC"
19782
19783	;;
19784
19785      *)
19786	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19787echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19788   { (exit 1); exit 1; }; }
19789	;;
19790      esac
19791
19792      # Append the new tag name to the list of available tags.
19793      if test -n "$tagname" ; then
19794      available_tags="$available_tags $tagname"
19795    fi
19796    fi
19797  done
19798  IFS="$lt_save_ifs"
19799
19800  # Now substitute the updated list of available tags.
19801  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19802    mv "${ofile}T" "$ofile"
19803    chmod +x "$ofile"
19804  else
19805    rm -f "${ofile}T"
19806    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19807echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19808   { (exit 1); exit 1; }; }
19809  fi
19810fi
19811
19812
19813
19814# This can be used to rebuild libtool when needed
19815LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19816
19817# Always use our own libtool.
19818LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19819
19820# Prevent multiple expansion
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844cat >>confdefs.h <<\_ACEOF
19845#define ALUT_BUILD_LIBRARY 1
19846_ACEOF
19847
19848
19849# Checks for libraries. (not perfect yet)
19850echo "$as_me:$LINENO: checking for library containing pthread_self" >&5
19851echo $ECHO_N "checking for library containing pthread_self... $ECHO_C" >&6
19852if test "${ac_cv_search_pthread_self+set}" = set; then
19853  echo $ECHO_N "(cached) $ECHO_C" >&6
19854else
19855  ac_func_search_save_LIBS=$LIBS
19856ac_cv_search_pthread_self=no
19857cat >conftest.$ac_ext <<_ACEOF
19858/* confdefs.h.  */
19859_ACEOF
19860cat confdefs.h >>conftest.$ac_ext
19861cat >>conftest.$ac_ext <<_ACEOF
19862/* end confdefs.h.  */
19863
19864/* Override any gcc2 internal prototype to avoid an error.  */
19865#ifdef __cplusplus
19866extern "C"
19867#endif
19868/* We use char because int might match the return type of a gcc2
19869   builtin and then its argument prototype would still apply.  */
19870char pthread_self ();
19871int
19872main ()
19873{
19874pthread_self ();
19875  ;
19876  return 0;
19877}
19878_ACEOF
19879rm -f conftest.$ac_objext conftest$ac_exeext
19880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881  (eval $ac_link) 2>conftest.er1
19882  ac_status=$?
19883  grep -v '^ *+' conftest.er1 >conftest.err
19884  rm -f conftest.er1
19885  cat conftest.err >&5
19886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887  (exit $ac_status); } &&
19888	 { ac_try='test -z "$ac_c_werror_flag"
19889			 || test ! -s conftest.err'
19890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891  (eval $ac_try) 2>&5
19892  ac_status=$?
19893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894  (exit $ac_status); }; } &&
19895	 { ac_try='test -s conftest$ac_exeext'
19896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897  (eval $ac_try) 2>&5
19898  ac_status=$?
19899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900  (exit $ac_status); }; }; then
19901  ac_cv_search_pthread_self="none required"
19902else
19903  echo "$as_me: failed program was:" >&5
19904sed 's/^/| /' conftest.$ac_ext >&5
19905
19906fi
19907rm -f conftest.err conftest.$ac_objext \
19908      conftest$ac_exeext conftest.$ac_ext
19909if test "$ac_cv_search_pthread_self" = no; then
19910  for ac_lib in pthread; do
19911    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19912    cat >conftest.$ac_ext <<_ACEOF
19913/* confdefs.h.  */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h.  */
19918
19919/* Override any gcc2 internal prototype to avoid an error.  */
19920#ifdef __cplusplus
19921extern "C"
19922#endif
19923/* We use char because int might match the return type of a gcc2
19924   builtin and then its argument prototype would still apply.  */
19925char pthread_self ();
19926int
19927main ()
19928{
19929pthread_self ();
19930  ;
19931  return 0;
19932}
19933_ACEOF
19934rm -f conftest.$ac_objext conftest$ac_exeext
19935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19936  (eval $ac_link) 2>conftest.er1
19937  ac_status=$?
19938  grep -v '^ *+' conftest.er1 >conftest.err
19939  rm -f conftest.er1
19940  cat conftest.err >&5
19941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942  (exit $ac_status); } &&
19943	 { ac_try='test -z "$ac_c_werror_flag"
19944			 || test ! -s conftest.err'
19945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946  (eval $ac_try) 2>&5
19947  ac_status=$?
19948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949  (exit $ac_status); }; } &&
19950	 { ac_try='test -s conftest$ac_exeext'
19951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952  (eval $ac_try) 2>&5
19953  ac_status=$?
19954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955  (exit $ac_status); }; }; then
19956  ac_cv_search_pthread_self="-l$ac_lib"
19957break
19958else
19959  echo "$as_me: failed program was:" >&5
19960sed 's/^/| /' conftest.$ac_ext >&5
19961
19962fi
19963rm -f conftest.err conftest.$ac_objext \
19964      conftest$ac_exeext conftest.$ac_ext
19965  done
19966fi
19967LIBS=$ac_func_search_save_LIBS
19968fi
19969echo "$as_me:$LINENO: result: $ac_cv_search_pthread_self" >&5
19970echo "${ECHO_T}$ac_cv_search_pthread_self" >&6
19971if test "$ac_cv_search_pthread_self" != no; then
19972  test "$ac_cv_search_pthread_self" = "none required" || LIBS="$ac_cv_search_pthread_self $LIBS"
19973
19974fi
19975
19976echo "$as_me:$LINENO: checking for library containing alGetError" >&5
19977echo $ECHO_N "checking for library containing alGetError... $ECHO_C" >&6
19978if test "${ac_cv_search_alGetError+set}" = set; then
19979  echo $ECHO_N "(cached) $ECHO_C" >&6
19980else
19981  ac_func_search_save_LIBS=$LIBS
19982ac_cv_search_alGetError=no
19983cat >conftest.$ac_ext <<_ACEOF
19984/* confdefs.h.  */
19985_ACEOF
19986cat confdefs.h >>conftest.$ac_ext
19987cat >>conftest.$ac_ext <<_ACEOF
19988/* end confdefs.h.  */
19989
19990/* Override any gcc2 internal prototype to avoid an error.  */
19991#ifdef __cplusplus
19992extern "C"
19993#endif
19994/* We use char because int might match the return type of a gcc2
19995   builtin and then its argument prototype would still apply.  */
19996char alGetError ();
19997int
19998main ()
19999{
20000alGetError ();
20001  ;
20002  return 0;
20003}
20004_ACEOF
20005rm -f conftest.$ac_objext conftest$ac_exeext
20006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007  (eval $ac_link) 2>conftest.er1
20008  ac_status=$?
20009  grep -v '^ *+' conftest.er1 >conftest.err
20010  rm -f conftest.er1
20011  cat conftest.err >&5
20012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013  (exit $ac_status); } &&
20014	 { ac_try='test -z "$ac_c_werror_flag"
20015			 || test ! -s conftest.err'
20016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017  (eval $ac_try) 2>&5
20018  ac_status=$?
20019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020  (exit $ac_status); }; } &&
20021	 { ac_try='test -s conftest$ac_exeext'
20022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023  (eval $ac_try) 2>&5
20024  ac_status=$?
20025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026  (exit $ac_status); }; }; then
20027  ac_cv_search_alGetError="none required"
20028else
20029  echo "$as_me: failed program was:" >&5
20030sed 's/^/| /' conftest.$ac_ext >&5
20031
20032fi
20033rm -f conftest.err conftest.$ac_objext \
20034      conftest$ac_exeext conftest.$ac_ext
20035if test "$ac_cv_search_alGetError" = no; then
20036  for ac_lib in openal32 openal; do
20037    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20038    cat >conftest.$ac_ext <<_ACEOF
20039/* confdefs.h.  */
20040_ACEOF
20041cat confdefs.h >>conftest.$ac_ext
20042cat >>conftest.$ac_ext <<_ACEOF
20043/* end confdefs.h.  */
20044
20045/* Override any gcc2 internal prototype to avoid an error.  */
20046#ifdef __cplusplus
20047extern "C"
20048#endif
20049/* We use char because int might match the return type of a gcc2
20050   builtin and then its argument prototype would still apply.  */
20051char alGetError ();
20052int
20053main ()
20054{
20055alGetError ();
20056  ;
20057  return 0;
20058}
20059_ACEOF
20060rm -f conftest.$ac_objext conftest$ac_exeext
20061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20062  (eval $ac_link) 2>conftest.er1
20063  ac_status=$?
20064  grep -v '^ *+' conftest.er1 >conftest.err
20065  rm -f conftest.er1
20066  cat conftest.err >&5
20067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068  (exit $ac_status); } &&
20069	 { ac_try='test -z "$ac_c_werror_flag"
20070			 || test ! -s conftest.err'
20071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072  (eval $ac_try) 2>&5
20073  ac_status=$?
20074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075  (exit $ac_status); }; } &&
20076	 { ac_try='test -s conftest$ac_exeext'
20077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078  (eval $ac_try) 2>&5
20079  ac_status=$?
20080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081  (exit $ac_status); }; }; then
20082  ac_cv_search_alGetError="-l$ac_lib"
20083break
20084else
20085  echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
20088fi
20089rm -f conftest.err conftest.$ac_objext \
20090      conftest$ac_exeext conftest.$ac_ext
20091  done
20092fi
20093LIBS=$ac_func_search_save_LIBS
20094fi
20095echo "$as_me:$LINENO: result: $ac_cv_search_alGetError" >&5
20096echo "${ECHO_T}$ac_cv_search_alGetError" >&6
20097if test "$ac_cv_search_alGetError" != no; then
20098  test "$ac_cv_search_alGetError" = "none required" || LIBS="$ac_cv_search_alGetError $LIBS"
20099
20100fi
20101
20102
20103################################################################################
20104# Checks for header files.
20105################################################################################
20106
20107# We could possibly need struct timespec and random(), which are not ANSI.
20108
20109cat >>confdefs.h <<\_ACEOF
20110#define _XOPEN_SOURCE 500
20111_ACEOF
20112
20113
20114# We might need nanosleep, which is a POSIX IEEE Std 1003.1b-1993 feature.
20115
20116cat >>confdefs.h <<\_ACEOF
20117#define _POSIX_C_SOURCE 199309
20118_ACEOF
20119
20120
20121# Without __NO_CTYPE tolower and friends are macros which introduce a GLIBC 2.3
20122# dependency. By defining this identifier we are currently backwards compatible
20123# to GLIBC 2.1.3, which is a good thing. In addition, the macros lead to code
20124# which triggers warnings with -Wunreachable-code.
20125
20126cat >>confdefs.h <<\_ACEOF
20127#define __NO_CTYPE 1
20128_ACEOF
20129
20130
20131echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20132echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20133if test "${ac_cv_header_stdc+set}" = set; then
20134  echo $ECHO_N "(cached) $ECHO_C" >&6
20135else
20136  cat >conftest.$ac_ext <<_ACEOF
20137/* confdefs.h.  */
20138_ACEOF
20139cat confdefs.h >>conftest.$ac_ext
20140cat >>conftest.$ac_ext <<_ACEOF
20141/* end confdefs.h.  */
20142#include <stdlib.h>
20143#include <stdarg.h>
20144#include <string.h>
20145#include <float.h>
20146
20147int
20148main ()
20149{
20150
20151  ;
20152  return 0;
20153}
20154_ACEOF
20155rm -f conftest.$ac_objext
20156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20157  (eval $ac_compile) 2>conftest.er1
20158  ac_status=$?
20159  grep -v '^ *+' conftest.er1 >conftest.err
20160  rm -f conftest.er1
20161  cat conftest.err >&5
20162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163  (exit $ac_status); } &&
20164	 { ac_try='test -z "$ac_c_werror_flag"
20165			 || test ! -s conftest.err'
20166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167  (eval $ac_try) 2>&5
20168  ac_status=$?
20169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170  (exit $ac_status); }; } &&
20171	 { ac_try='test -s conftest.$ac_objext'
20172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173  (eval $ac_try) 2>&5
20174  ac_status=$?
20175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176  (exit $ac_status); }; }; then
20177  ac_cv_header_stdc=yes
20178else
20179  echo "$as_me: failed program was:" >&5
20180sed 's/^/| /' conftest.$ac_ext >&5
20181
20182ac_cv_header_stdc=no
20183fi
20184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20185
20186if test $ac_cv_header_stdc = yes; then
20187  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20188  cat >conftest.$ac_ext <<_ACEOF
20189/* confdefs.h.  */
20190_ACEOF
20191cat confdefs.h >>conftest.$ac_ext
20192cat >>conftest.$ac_ext <<_ACEOF
20193/* end confdefs.h.  */
20194#include <string.h>
20195
20196_ACEOF
20197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20198  $EGREP "memchr" >/dev/null 2>&1; then
20199  :
20200else
20201  ac_cv_header_stdc=no
20202fi
20203rm -f conftest*
20204
20205fi
20206
20207if test $ac_cv_header_stdc = yes; then
20208  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20209  cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h.  */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h.  */
20215#include <stdlib.h>
20216
20217_ACEOF
20218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20219  $EGREP "free" >/dev/null 2>&1; then
20220  :
20221else
20222  ac_cv_header_stdc=no
20223fi
20224rm -f conftest*
20225
20226fi
20227
20228if test $ac_cv_header_stdc = yes; then
20229  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20230  if test "$cross_compiling" = yes; then
20231  :
20232else
20233  cat >conftest.$ac_ext <<_ACEOF
20234/* confdefs.h.  */
20235_ACEOF
20236cat confdefs.h >>conftest.$ac_ext
20237cat >>conftest.$ac_ext <<_ACEOF
20238/* end confdefs.h.  */
20239#include <ctype.h>
20240#if ((' ' & 0x0FF) == 0x020)
20241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20243#else
20244# define ISLOWER(c) \
20245		   (('a' <= (c) && (c) <= 'i') \
20246		     || ('j' <= (c) && (c) <= 'r') \
20247		     || ('s' <= (c) && (c) <= 'z'))
20248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20249#endif
20250
20251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20252int
20253main ()
20254{
20255  int i;
20256  for (i = 0; i < 256; i++)
20257    if (XOR (islower (i), ISLOWER (i))
20258	|| toupper (i) != TOUPPER (i))
20259      exit(2);
20260  exit (0);
20261}
20262_ACEOF
20263rm -f conftest$ac_exeext
20264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20265  (eval $ac_link) 2>&5
20266  ac_status=$?
20267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20270  (eval $ac_try) 2>&5
20271  ac_status=$?
20272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273  (exit $ac_status); }; }; then
20274  :
20275else
20276  echo "$as_me: program exited with status $ac_status" >&5
20277echo "$as_me: failed program was:" >&5
20278sed 's/^/| /' conftest.$ac_ext >&5
20279
20280( exit $ac_status )
20281ac_cv_header_stdc=no
20282fi
20283rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20284fi
20285fi
20286fi
20287echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20288echo "${ECHO_T}$ac_cv_header_stdc" >&6
20289if test $ac_cv_header_stdc = yes; then
20290
20291cat >>confdefs.h <<\_ACEOF
20292#define STDC_HEADERS 1
20293_ACEOF
20294
20295fi
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305for ac_header in AL/alc.h AL/al.h basetsd.h ctype.h math.h stdio.h time.h windows.h
20306do
20307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20308if eval "test \"\${$as_ac_Header+set}\" = set"; then
20309  echo "$as_me:$LINENO: checking for $ac_header" >&5
20310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20311if eval "test \"\${$as_ac_Header+set}\" = set"; then
20312  echo $ECHO_N "(cached) $ECHO_C" >&6
20313fi
20314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20316else
20317  # Is the header compilable?
20318echo "$as_me:$LINENO: checking $ac_header usability" >&5
20319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20320cat >conftest.$ac_ext <<_ACEOF
20321/* confdefs.h.  */
20322_ACEOF
20323cat confdefs.h >>conftest.$ac_ext
20324cat >>conftest.$ac_ext <<_ACEOF
20325/* end confdefs.h.  */
20326$ac_includes_default
20327#include <$ac_header>
20328_ACEOF
20329rm -f conftest.$ac_objext
20330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20331  (eval $ac_compile) 2>conftest.er1
20332  ac_status=$?
20333  grep -v '^ *+' conftest.er1 >conftest.err
20334  rm -f conftest.er1
20335  cat conftest.err >&5
20336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337  (exit $ac_status); } &&
20338	 { ac_try='test -z "$ac_c_werror_flag"
20339			 || test ! -s conftest.err'
20340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341  (eval $ac_try) 2>&5
20342  ac_status=$?
20343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344  (exit $ac_status); }; } &&
20345	 { ac_try='test -s conftest.$ac_objext'
20346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347  (eval $ac_try) 2>&5
20348  ac_status=$?
20349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350  (exit $ac_status); }; }; then
20351  ac_header_compiler=yes
20352else
20353  echo "$as_me: failed program was:" >&5
20354sed 's/^/| /' conftest.$ac_ext >&5
20355
20356ac_header_compiler=no
20357fi
20358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20360echo "${ECHO_T}$ac_header_compiler" >&6
20361
20362# Is the header present?
20363echo "$as_me:$LINENO: checking $ac_header presence" >&5
20364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20365cat >conftest.$ac_ext <<_ACEOF
20366/* confdefs.h.  */
20367_ACEOF
20368cat confdefs.h >>conftest.$ac_ext
20369cat >>conftest.$ac_ext <<_ACEOF
20370/* end confdefs.h.  */
20371#include <$ac_header>
20372_ACEOF
20373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20374  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20375  ac_status=$?
20376  grep -v '^ *+' conftest.er1 >conftest.err
20377  rm -f conftest.er1
20378  cat conftest.err >&5
20379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380  (exit $ac_status); } >/dev/null; then
20381  if test -s conftest.err; then
20382    ac_cpp_err=$ac_c_preproc_warn_flag
20383    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20384  else
20385    ac_cpp_err=
20386  fi
20387else
20388  ac_cpp_err=yes
20389fi
20390if test -z "$ac_cpp_err"; then
20391  ac_header_preproc=yes
20392else
20393  echo "$as_me: failed program was:" >&5
20394sed 's/^/| /' conftest.$ac_ext >&5
20395
20396  ac_header_preproc=no
20397fi
20398rm -f conftest.err conftest.$ac_ext
20399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20400echo "${ECHO_T}$ac_header_preproc" >&6
20401
20402# So?  What about this header?
20403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20404  yes:no: )
20405    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20407    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20409    ac_header_preproc=yes
20410    ;;
20411  no:yes:* )
20412    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20414    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20415echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20416    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20418    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20419echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20420    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20422    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20424    (
20425      cat <<\_ASBOX
20426## --------------------------------------------------- ##
20427## Report this to openal-devel@opensource.creative.com ##
20428## --------------------------------------------------- ##
20429_ASBOX
20430    ) |
20431      sed "s/^/$as_me: WARNING:     /" >&2
20432    ;;
20433esac
20434echo "$as_me:$LINENO: checking for $ac_header" >&5
20435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20436if eval "test \"\${$as_ac_Header+set}\" = set"; then
20437  echo $ECHO_N "(cached) $ECHO_C" >&6
20438else
20439  eval "$as_ac_Header=\$ac_header_preproc"
20440fi
20441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20443
20444fi
20445if test `eval echo '${'$as_ac_Header'}'` = yes; then
20446  cat >>confdefs.h <<_ACEOF
20447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20448_ACEOF
20449
20450fi
20451
20452done
20453
20454
20455# Checks for library functions.
20456echo "$as_me:$LINENO: checking for nanosleep" >&5
20457echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6
20458if test "${alut_cv_func_nanosleep+set}" = set; then
20459  echo $ECHO_N "(cached) $ECHO_C" >&6
20460else
20461  cat >conftest.$ac_ext <<_ACEOF
20462/* confdefs.h.  */
20463_ACEOF
20464cat confdefs.h >>conftest.$ac_ext
20465cat >>conftest.$ac_ext <<_ACEOF
20466/* end confdefs.h.  */
20467#include <time.h>
20468int
20469main ()
20470{
20471nanosleep ((struct timespec*)0, (struct timespec*)0);
20472  ;
20473  return 0;
20474}
20475_ACEOF
20476rm -f conftest.$ac_objext conftest$ac_exeext
20477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20478  (eval $ac_link) 2>conftest.er1
20479  ac_status=$?
20480  grep -v '^ *+' conftest.er1 >conftest.err
20481  rm -f conftest.er1
20482  cat conftest.err >&5
20483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484  (exit $ac_status); } &&
20485	 { ac_try='test -z "$ac_c_werror_flag"
20486			 || test ! -s conftest.err'
20487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20488  (eval $ac_try) 2>&5
20489  ac_status=$?
20490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491  (exit $ac_status); }; } &&
20492	 { ac_try='test -s conftest$ac_exeext'
20493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494  (eval $ac_try) 2>&5
20495  ac_status=$?
20496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497  (exit $ac_status); }; }; then
20498  alut_cv_func_nanosleep=yes
20499else
20500  echo "$as_me: failed program was:" >&5
20501sed 's/^/| /' conftest.$ac_ext >&5
20502
20503alut_cv_func_nanosleep=no
20504fi
20505rm -f conftest.err conftest.$ac_objext \
20506      conftest$ac_exeext conftest.$ac_ext
20507fi
20508echo "$as_me:$LINENO: result: $alut_cv_func_nanosleep" >&5
20509echo "${ECHO_T}$alut_cv_func_nanosleep" >&6
20510if test $alut_cv_func_nanosleep = yes; then
20511
20512cat >>confdefs.h <<_ACEOF
20513#define HAVE_NANOSLEEP 1
20514_ACEOF
20515
20516fi
20517
20518
20519echo "$as_me:$LINENO: checking for usleep" >&5
20520echo $ECHO_N "checking for usleep... $ECHO_C" >&6
20521if test "${alut_cv_func_usleep+set}" = set; then
20522  echo $ECHO_N "(cached) $ECHO_C" >&6
20523else
20524  cat >conftest.$ac_ext <<_ACEOF
20525/* confdefs.h.  */
20526_ACEOF
20527cat confdefs.h >>conftest.$ac_ext
20528cat >>conftest.$ac_ext <<_ACEOF
20529/* end confdefs.h.  */
20530#include <unistd.h>
20531int
20532main ()
20533{
20534usleep (0);
20535  ;
20536  return 0;
20537}
20538_ACEOF
20539rm -f conftest.$ac_objext conftest$ac_exeext
20540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20541  (eval $ac_link) 2>conftest.er1
20542  ac_status=$?
20543  grep -v '^ *+' conftest.er1 >conftest.err
20544  rm -f conftest.er1
20545  cat conftest.err >&5
20546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547  (exit $ac_status); } &&
20548	 { ac_try='test -z "$ac_c_werror_flag"
20549			 || test ! -s conftest.err'
20550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551  (eval $ac_try) 2>&5
20552  ac_status=$?
20553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554  (exit $ac_status); }; } &&
20555	 { ac_try='test -s conftest$ac_exeext'
20556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557  (eval $ac_try) 2>&5
20558  ac_status=$?
20559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560  (exit $ac_status); }; }; then
20561  alut_cv_func_usleep=yes
20562else
20563  echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566alut_cv_func_usleep=no
20567fi
20568rm -f conftest.err conftest.$ac_objext \
20569      conftest$ac_exeext conftest.$ac_ext
20570fi
20571echo "$as_me:$LINENO: result: $alut_cv_func_usleep" >&5
20572echo "${ECHO_T}$alut_cv_func_usleep" >&6
20573if test $alut_cv_func_usleep = yes; then
20574
20575cat >>confdefs.h <<_ACEOF
20576#define HAVE_USLEEP 1
20577_ACEOF
20578
20579fi
20580
20581
20582echo "$as_me:$LINENO: checking for Sleep" >&5
20583echo $ECHO_N "checking for Sleep... $ECHO_C" >&6
20584if test "${alut_cv_func_Sleep+set}" = set; then
20585  echo $ECHO_N "(cached) $ECHO_C" >&6
20586else
20587  cat >conftest.$ac_ext <<_ACEOF
20588/* confdefs.h.  */
20589_ACEOF
20590cat confdefs.h >>conftest.$ac_ext
20591cat >>conftest.$ac_ext <<_ACEOF
20592/* end confdefs.h.  */
20593#include <windows.h>
20594int
20595main ()
20596{
20597Sleep (0);
20598  ;
20599  return 0;
20600}
20601_ACEOF
20602rm -f conftest.$ac_objext conftest$ac_exeext
20603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604  (eval $ac_link) 2>conftest.er1
20605  ac_status=$?
20606  grep -v '^ *+' conftest.er1 >conftest.err
20607  rm -f conftest.er1
20608  cat conftest.err >&5
20609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610  (exit $ac_status); } &&
20611	 { ac_try='test -z "$ac_c_werror_flag"
20612			 || test ! -s conftest.err'
20613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614  (eval $ac_try) 2>&5
20615  ac_status=$?
20616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617  (exit $ac_status); }; } &&
20618	 { ac_try='test -s conftest$ac_exeext'
20619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620  (eval $ac_try) 2>&5
20621  ac_status=$?
20622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623  (exit $ac_status); }; }; then
20624  alut_cv_func_Sleep=yes
20625else
20626  echo "$as_me: failed program was:" >&5
20627sed 's/^/| /' conftest.$ac_ext >&5
20628
20629alut_cv_func_Sleep=no
20630fi
20631rm -f conftest.err conftest.$ac_objext \
20632      conftest$ac_exeext conftest.$ac_ext
20633fi
20634echo "$as_me:$LINENO: result: $alut_cv_func_Sleep" >&5
20635echo "${ECHO_T}$alut_cv_func_Sleep" >&6
20636if test $alut_cv_func_Sleep = yes; then
20637
20638cat >>confdefs.h <<_ACEOF
20639#define HAVE_SLEEP 1
20640_ACEOF
20641
20642fi
20643
20644
20645echo "$as_me:$LINENO: checking for stat" >&5
20646echo $ECHO_N "checking for stat... $ECHO_C" >&6
20647if test "${alut_cv_func_stat+set}" = set; then
20648  echo $ECHO_N "(cached) $ECHO_C" >&6
20649else
20650  cat >conftest.$ac_ext <<_ACEOF
20651/* confdefs.h.  */
20652_ACEOF
20653cat confdefs.h >>conftest.$ac_ext
20654cat >>conftest.$ac_ext <<_ACEOF
20655/* end confdefs.h.  */
20656#include <sys/types.h>
20657                  #include <sys/stat.h>
20658                  #include <unistd.h>
20659int
20660main ()
20661{
20662stat ("", (struct stat*)0);
20663  ;
20664  return 0;
20665}
20666_ACEOF
20667rm -f conftest.$ac_objext conftest$ac_exeext
20668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20669  (eval $ac_link) 2>conftest.er1
20670  ac_status=$?
20671  grep -v '^ *+' conftest.er1 >conftest.err
20672  rm -f conftest.er1
20673  cat conftest.err >&5
20674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675  (exit $ac_status); } &&
20676	 { ac_try='test -z "$ac_c_werror_flag"
20677			 || test ! -s conftest.err'
20678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679  (eval $ac_try) 2>&5
20680  ac_status=$?
20681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682  (exit $ac_status); }; } &&
20683	 { ac_try='test -s conftest$ac_exeext'
20684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685  (eval $ac_try) 2>&5
20686  ac_status=$?
20687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688  (exit $ac_status); }; }; then
20689  alut_cv_func_stat=yes
20690else
20691  echo "$as_me: failed program was:" >&5
20692sed 's/^/| /' conftest.$ac_ext >&5
20693
20694alut_cv_func_stat=no
20695fi
20696rm -f conftest.err conftest.$ac_objext \
20697      conftest$ac_exeext conftest.$ac_ext
20698fi
20699echo "$as_me:$LINENO: result: $alut_cv_func_stat" >&5
20700echo "${ECHO_T}$alut_cv_func_stat" >&6
20701if test $alut_cv_func_stat = yes; then
20702
20703cat >>confdefs.h <<_ACEOF
20704#define HAVE_STAT 1
20705_ACEOF
20706
20707fi
20708
20709
20710echo "$as_me:$LINENO: checking for _stat" >&5
20711echo $ECHO_N "checking for _stat... $ECHO_C" >&6
20712if test "${alut_cv_func__stat+set}" = set; then
20713  echo $ECHO_N "(cached) $ECHO_C" >&6
20714else
20715  cat >conftest.$ac_ext <<_ACEOF
20716/* confdefs.h.  */
20717_ACEOF
20718cat confdefs.h >>conftest.$ac_ext
20719cat >>conftest.$ac_ext <<_ACEOF
20720/* end confdefs.h.  */
20721#include <sys/types.h>
20722                  #include <sys/stat.h>
20723int
20724main ()
20725{
20726_stat ("", (struct _stat*)0);
20727  ;
20728  return 0;
20729}
20730_ACEOF
20731rm -f conftest.$ac_objext conftest$ac_exeext
20732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20733  (eval $ac_link) 2>conftest.er1
20734  ac_status=$?
20735  grep -v '^ *+' conftest.er1 >conftest.err
20736  rm -f conftest.er1
20737  cat conftest.err >&5
20738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739  (exit $ac_status); } &&
20740	 { ac_try='test -z "$ac_c_werror_flag"
20741			 || test ! -s conftest.err'
20742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743  (eval $ac_try) 2>&5
20744  ac_status=$?
20745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746  (exit $ac_status); }; } &&
20747	 { ac_try='test -s conftest$ac_exeext'
20748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749  (eval $ac_try) 2>&5
20750  ac_status=$?
20751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752  (exit $ac_status); }; }; then
20753  alut_cv_func__stat=yes
20754else
20755  echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
20758alut_cv_func__stat=no
20759fi
20760rm -f conftest.err conftest.$ac_objext \
20761      conftest$ac_exeext conftest.$ac_ext
20762fi
20763echo "$as_me:$LINENO: result: $alut_cv_func__stat" >&5
20764echo "${ECHO_T}$alut_cv_func__stat" >&6
20765if test $alut_cv_func__stat = yes; then
20766
20767cat >>confdefs.h <<_ACEOF
20768#define HAVE__STAT 1
20769_ACEOF
20770
20771fi
20772
20773
20774LIBM=
20775case $host in
20776*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
20777  # These system don't have libm, or don't need it
20778  ;;
20779*-ncr-sysv4.3*)
20780  echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
20781echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
20782if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
20783  echo $ECHO_N "(cached) $ECHO_C" >&6
20784else
20785  ac_check_lib_save_LIBS=$LIBS
20786LIBS="-lmw  $LIBS"
20787cat >conftest.$ac_ext <<_ACEOF
20788/* confdefs.h.  */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
20792/* end confdefs.h.  */
20793
20794/* Override any gcc2 internal prototype to avoid an error.  */
20795#ifdef __cplusplus
20796extern "C"
20797#endif
20798/* We use char because int might match the return type of a gcc2
20799   builtin and then its argument prototype would still apply.  */
20800char _mwvalidcheckl ();
20801int
20802main ()
20803{
20804_mwvalidcheckl ();
20805  ;
20806  return 0;
20807}
20808_ACEOF
20809rm -f conftest.$ac_objext conftest$ac_exeext
20810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20811  (eval $ac_link) 2>conftest.er1
20812  ac_status=$?
20813  grep -v '^ *+' conftest.er1 >conftest.err
20814  rm -f conftest.er1
20815  cat conftest.err >&5
20816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817  (exit $ac_status); } &&
20818	 { ac_try='test -z "$ac_c_werror_flag"
20819			 || test ! -s conftest.err'
20820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821  (eval $ac_try) 2>&5
20822  ac_status=$?
20823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824  (exit $ac_status); }; } &&
20825	 { ac_try='test -s conftest$ac_exeext'
20826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827  (eval $ac_try) 2>&5
20828  ac_status=$?
20829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830  (exit $ac_status); }; }; then
20831  ac_cv_lib_mw__mwvalidcheckl=yes
20832else
20833  echo "$as_me: failed program was:" >&5
20834sed 's/^/| /' conftest.$ac_ext >&5
20835
20836ac_cv_lib_mw__mwvalidcheckl=no
20837fi
20838rm -f conftest.err conftest.$ac_objext \
20839      conftest$ac_exeext conftest.$ac_ext
20840LIBS=$ac_check_lib_save_LIBS
20841fi
20842echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
20843echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
20844if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
20845  LIBM="-lmw"
20846fi
20847
20848  echo "$as_me:$LINENO: checking for cos in -lm" >&5
20849echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20850if test "${ac_cv_lib_m_cos+set}" = set; then
20851  echo $ECHO_N "(cached) $ECHO_C" >&6
20852else
20853  ac_check_lib_save_LIBS=$LIBS
20854LIBS="-lm  $LIBS"
20855cat >conftest.$ac_ext <<_ACEOF
20856/* confdefs.h.  */
20857_ACEOF
20858cat confdefs.h >>conftest.$ac_ext
20859cat >>conftest.$ac_ext <<_ACEOF
20860/* end confdefs.h.  */
20861
20862/* Override any gcc2 internal prototype to avoid an error.  */
20863#ifdef __cplusplus
20864extern "C"
20865#endif
20866/* We use char because int might match the return type of a gcc2
20867   builtin and then its argument prototype would still apply.  */
20868char cos ();
20869int
20870main ()
20871{
20872cos ();
20873  ;
20874  return 0;
20875}
20876_ACEOF
20877rm -f conftest.$ac_objext conftest$ac_exeext
20878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20879  (eval $ac_link) 2>conftest.er1
20880  ac_status=$?
20881  grep -v '^ *+' conftest.er1 >conftest.err
20882  rm -f conftest.er1
20883  cat conftest.err >&5
20884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885  (exit $ac_status); } &&
20886	 { ac_try='test -z "$ac_c_werror_flag"
20887			 || test ! -s conftest.err'
20888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889  (eval $ac_try) 2>&5
20890  ac_status=$?
20891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892  (exit $ac_status); }; } &&
20893	 { ac_try='test -s conftest$ac_exeext'
20894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895  (eval $ac_try) 2>&5
20896  ac_status=$?
20897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898  (exit $ac_status); }; }; then
20899  ac_cv_lib_m_cos=yes
20900else
20901  echo "$as_me: failed program was:" >&5
20902sed 's/^/| /' conftest.$ac_ext >&5
20903
20904ac_cv_lib_m_cos=no
20905fi
20906rm -f conftest.err conftest.$ac_objext \
20907      conftest$ac_exeext conftest.$ac_ext
20908LIBS=$ac_check_lib_save_LIBS
20909fi
20910echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20911echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20912if test $ac_cv_lib_m_cos = yes; then
20913  LIBM="$LIBM -lm"
20914fi
20915
20916  ;;
20917*)
20918  echo "$as_me:$LINENO: checking for cos in -lm" >&5
20919echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
20920if test "${ac_cv_lib_m_cos+set}" = set; then
20921  echo $ECHO_N "(cached) $ECHO_C" >&6
20922else
20923  ac_check_lib_save_LIBS=$LIBS
20924LIBS="-lm  $LIBS"
20925cat >conftest.$ac_ext <<_ACEOF
20926/* confdefs.h.  */
20927_ACEOF
20928cat confdefs.h >>conftest.$ac_ext
20929cat >>conftest.$ac_ext <<_ACEOF
20930/* end confdefs.h.  */
20931
20932/* Override any gcc2 internal prototype to avoid an error.  */
20933#ifdef __cplusplus
20934extern "C"
20935#endif
20936/* We use char because int might match the return type of a gcc2
20937   builtin and then its argument prototype would still apply.  */
20938char cos ();
20939int
20940main ()
20941{
20942cos ();
20943  ;
20944  return 0;
20945}
20946_ACEOF
20947rm -f conftest.$ac_objext conftest$ac_exeext
20948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20949  (eval $ac_link) 2>conftest.er1
20950  ac_status=$?
20951  grep -v '^ *+' conftest.er1 >conftest.err
20952  rm -f conftest.er1
20953  cat conftest.err >&5
20954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955  (exit $ac_status); } &&
20956	 { ac_try='test -z "$ac_c_werror_flag"
20957			 || test ! -s conftest.err'
20958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959  (eval $ac_try) 2>&5
20960  ac_status=$?
20961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962  (exit $ac_status); }; } &&
20963	 { ac_try='test -s conftest$ac_exeext'
20964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965  (eval $ac_try) 2>&5
20966  ac_status=$?
20967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968  (exit $ac_status); }; }; then
20969  ac_cv_lib_m_cos=yes
20970else
20971  echo "$as_me: failed program was:" >&5
20972sed 's/^/| /' conftest.$ac_ext >&5
20973
20974ac_cv_lib_m_cos=no
20975fi
20976rm -f conftest.err conftest.$ac_objext \
20977      conftest$ac_exeext conftest.$ac_ext
20978LIBS=$ac_check_lib_save_LIBS
20979fi
20980echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
20981echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
20982if test $ac_cv_lib_m_cos = yes; then
20983  LIBM="-lm"
20984fi
20985
20986  ;;
20987esac
20988
20989
20990
20991################################################################################
20992# Build time configuration.
20993################################################################################
20994
20995# Check whether --enable-warnings or --disable-warnings was given.
20996if test "${enable_warnings+set}" = set; then
20997  enableval="$enable_warnings"
20998
20999fi;
21000
21001if test "x$enable_warnings" != xno; then
21002  # Doing it in two steps gives a nicer message...
21003  echo "$as_me:$LINENO: checking flags for maximum ANSI warnings" >&5
21004echo $ECHO_N "checking flags for maximum ANSI warnings... $ECHO_C" >&6
21005if test "${ac_cv_cflags_warn_all_ansi+set}" = set; then
21006  echo $ECHO_N "(cached) $ECHO_C" >&6
21007else
21008  ac_cv_cflags_warn_all_ansi="no, unknown"
21009 ac_ext=c
21010ac_cpp='$CPP $CPPFLAGS'
21011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014
21015 ac_save_CFLAGS="$CFLAGS"
21016# IRIX C compiler:
21017#      -use_readonly_const is the default for IRIX C,
21018#       puts them into .rodata, but they are copied later.
21019#       need to be "-G0 -rdatashared" for strictmode but
21020#       I am not sure what effect that has really.         - guidod
21021for ac_arg in "-pedantic  % -Wall -ansi -pedantic"          "-xstrconst % -v -Xc"                         "-std1      % -verbose -w0 -warnprotos -std1"    " % -qlanglvl=ansi -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    " % -ansi -ansiE -fullwarn"                   "+ESlit     % +w1 -Aa"                        "-Xc        % -pvctl,fullmsg -Xc"           "-h conform % -h msglevel 2 -h conform"       #
21022do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
21023   cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h.  */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h.  */
21029
21030int
21031main ()
21032{
21033
21034  ;
21035  return 0;
21036}
21037_ACEOF
21038rm -f conftest.$ac_objext
21039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21040  (eval $ac_compile) 2>conftest.er1
21041  ac_status=$?
21042  grep -v '^ *+' conftest.er1 >conftest.err
21043  rm -f conftest.er1
21044  cat conftest.err >&5
21045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046  (exit $ac_status); } &&
21047	 { ac_try='test -z "$ac_c_werror_flag"
21048			 || test ! -s conftest.err'
21049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050  (eval $ac_try) 2>&5
21051  ac_status=$?
21052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053  (exit $ac_status); }; } &&
21054	 { ac_try='test -s conftest.$ac_objext'
21055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056  (eval $ac_try) 2>&5
21057  ac_status=$?
21058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059  (exit $ac_status); }; }; then
21060  ac_cv_cflags_warn_all_ansi=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
21061else
21062  echo "$as_me: failed program was:" >&5
21063sed 's/^/| /' conftest.$ac_ext >&5
21064
21065fi
21066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21067done
21068 CFLAGS="$ac_save_CFLAGS"
21069 ac_ext=c
21070ac_cpp='$CPP $CPPFLAGS'
21071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073ac_compiler_gnu=$ac_cv_c_compiler_gnu
21074
21075
21076fi
21077echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all_ansi" >&5
21078echo "${ECHO_T}$ac_cv_cflags_warn_all_ansi" >&6
21079case ".$ac_cv_cflags_warn_all_ansi" in
21080     .ok|.ok,*)  ;;
21081   .|.no|.no,*)
21082 ;;
21083   *)
21084   if echo " $flags " | grep " $ac_cv_cflags_warn_all_ansi " 2>&1 >/dev/null
21085   then { (echo "$as_me:$LINENO: : flags does contain \$ac_cv_cflags_warn_all_ansi") >&5
21086  (: flags does contain $ac_cv_cflags_warn_all_ansi) 2>&5
21087  ac_status=$?
21088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089  (exit $ac_status); }
21090   else { (echo "$as_me:$LINENO: : flags=\"\$flags \$ac_cv_cflags_warn_all_ansi\"") >&5
21091  (: flags="$flags $ac_cv_cflags_warn_all_ansi") 2>&5
21092  ac_status=$?
21093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094  (exit $ac_status); }
21095                      flags="$flags $ac_cv_cflags_warn_all_ansi"
21096   fi
21097 ;;
21098esac
21099
21100  AM_CFLAGS="$AM_CFLAGS $flags"
21101fi
21102
21103# Check whether --enable-more-warnings or --disable-more-warnings was given.
21104if test "${enable_more_warnings+set}" = set; then
21105  enableval="$enable_more_warnings"
21106
21107fi;
21108
21109if test "x$enable_more_warnings" = xyes; then
21110  if test "x$enable_warnings" = xno; then
21111    { echo "$as_me:$LINENO: WARNING: --enable-more-warnings ignored because of --disable-warnings" >&5
21112echo "$as_me: WARNING: --enable-more-warnings ignored because of --disable-warnings" >&2;}
21113  elif test "x$GCC" != xyes; then
21114    { echo "$as_me:$LINENO: WARNING: --enable-more-warnings ignored because no GCC was detected" >&5
21115echo "$as_me: WARNING: --enable-more-warnings ignored because no GCC was detected" >&2;}
21116  else
21117    # The long list of warning options below contains every GCC warning option
21118    # which is not automatically enabled with -Wall. The only exceptions to this
21119    # rule are:
21120    #
21121    #    -Wpadded:
21122    #      Perhaps good for optimizing out data layout, but not in general.
21123    #
21124    #    -Wconversion:
21125    #      Passing e.g. float as an argument is fine, we always have prototypes.
21126    #
21127    # Note that some older GCC versions give false positives about unreachable
21128    # code.
21129    AM_CFLAGS="$AM_CFLAGS -W -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wendif-labels -Wfloat-equal -Winline -Wlong-long -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wunreachable-code -Wwrite-strings"
21130
21131    # Check for GCC 4.x-only warning options.
21132    alut_compiler="$CC"
21133echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Wdeclaration-after-statement" >&5
21134echo $ECHO_N "checking whether $alut_compiler accepts -Wdeclaration-after-statement... $ECHO_C" >&6
21135if test "${alut_cv_CFLAGS_Wdeclaration_after_statement+set}" = set; then
21136  echo $ECHO_N "(cached) $ECHO_C" >&6
21137else
21138  cat >conftest.$ac_ext <<_ACEOF
21139/* confdefs.h.  */
21140_ACEOF
21141cat confdefs.h >>conftest.$ac_ext
21142cat >>conftest.$ac_ext <<_ACEOF
21143/* end confdefs.h.  */
21144
21145int
21146main ()
21147{
21148
21149  ;
21150  return 0;
21151}
21152_ACEOF
21153alut_save_flags="$CFLAGS"
21154CFLAGS="$CFLAGS -Wdeclaration-after-statement"
21155alut_cv_CFLAGS_Wdeclaration_after_statement=no
21156if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1
21157  alut_status=$?
21158  grep -v '^ *+' conftest.er1 >conftest.err
21159  rm -f conftest.er1
21160  (exit $alut_status); } >/dev/null; then
21161  test -s conftest.err || alut_cv_CFLAGS_Wdeclaration_after_statement=yes
21162fi
21163CFLAGS="$alut_save_flags"
21164rm -f conftest.err conftest.$ac_ext
21165fi
21166echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Wdeclaration_after_statement" >&5
21167echo "${ECHO_T}$alut_cv_CFLAGS_Wdeclaration_after_statement" >&6
21168if test $alut_cv_CFLAGS_Wdeclaration_after_statement = yes; then
21169  AM_CFLAGS="$AM_CFLAGS -Wdeclaration-after-statement"
21170fi
21171
21172    alut_compiler="$CC"
21173echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Winvalid-pch" >&5
21174echo $ECHO_N "checking whether $alut_compiler accepts -Winvalid-pch... $ECHO_C" >&6
21175if test "${alut_cv_CFLAGS_Winvalid_pch+set}" = set; then
21176  echo $ECHO_N "(cached) $ECHO_C" >&6
21177else
21178  cat >conftest.$ac_ext <<_ACEOF
21179/* confdefs.h.  */
21180_ACEOF
21181cat confdefs.h >>conftest.$ac_ext
21182cat >>conftest.$ac_ext <<_ACEOF
21183/* end confdefs.h.  */
21184
21185int
21186main ()
21187{
21188
21189  ;
21190  return 0;
21191}
21192_ACEOF
21193alut_save_flags="$CFLAGS"
21194CFLAGS="$CFLAGS -Winvalid-pch"
21195alut_cv_CFLAGS_Winvalid_pch=no
21196if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1
21197  alut_status=$?
21198  grep -v '^ *+' conftest.er1 >conftest.err
21199  rm -f conftest.er1
21200  (exit $alut_status); } >/dev/null; then
21201  test -s conftest.err || alut_cv_CFLAGS_Winvalid_pch=yes
21202fi
21203CFLAGS="$alut_save_flags"
21204rm -f conftest.err conftest.$ac_ext
21205fi
21206echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Winvalid_pch" >&5
21207echo "${ECHO_T}$alut_cv_CFLAGS_Winvalid_pch" >&6
21208if test $alut_cv_CFLAGS_Winvalid_pch = yes; then
21209  AM_CFLAGS="$AM_CFLAGS -Winvalid-pch"
21210fi
21211
21212    alut_compiler="$CC"
21213echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Wmissing-field-initializers" >&5
21214echo $ECHO_N "checking whether $alut_compiler accepts -Wmissing-field-initializers... $ECHO_C" >&6
21215if test "${alut_cv_CFLAGS_Wmissing_field_initializers+set}" = set; then
21216  echo $ECHO_N "(cached) $ECHO_C" >&6
21217else
21218  cat >conftest.$ac_ext <<_ACEOF
21219/* confdefs.h.  */
21220_ACEOF
21221cat confdefs.h >>conftest.$ac_ext
21222cat >>conftest.$ac_ext <<_ACEOF
21223/* end confdefs.h.  */
21224
21225int
21226main ()
21227{
21228
21229  ;
21230  return 0;
21231}
21232_ACEOF
21233alut_save_flags="$CFLAGS"
21234CFLAGS="$CFLAGS -Wmissing-field-initializers"
21235alut_cv_CFLAGS_Wmissing_field_initializers=no
21236if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1
21237  alut_status=$?
21238  grep -v '^ *+' conftest.er1 >conftest.err
21239  rm -f conftest.er1
21240  (exit $alut_status); } >/dev/null; then
21241  test -s conftest.err || alut_cv_CFLAGS_Wmissing_field_initializers=yes
21242fi
21243CFLAGS="$alut_save_flags"
21244rm -f conftest.err conftest.$ac_ext
21245fi
21246echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Wmissing_field_initializers" >&5
21247echo "${ECHO_T}$alut_cv_CFLAGS_Wmissing_field_initializers" >&6
21248if test $alut_cv_CFLAGS_Wmissing_field_initializers = yes; then
21249  AM_CFLAGS="$AM_CFLAGS -Wmissing-field-initializers"
21250fi
21251
21252    # We cheat here a bit: The code generated by AC_LANG_PROGRAM triggers a
21253    # warning with -Wold-style-definition, so we assume that this flag is
21254    # supported whenever -Wvariadic-macros is.
21255    alut_compiler="$CC"
21256echo "$as_me:$LINENO: checking whether $alut_compiler accepts -Wvariadic-macros" >&5
21257echo $ECHO_N "checking whether $alut_compiler accepts -Wvariadic-macros... $ECHO_C" >&6
21258if test "${alut_cv_CFLAGS_Wvariadic_macros+set}" = set; then
21259  echo $ECHO_N "(cached) $ECHO_C" >&6
21260else
21261  cat >conftest.$ac_ext <<_ACEOF
21262/* confdefs.h.  */
21263_ACEOF
21264cat confdefs.h >>conftest.$ac_ext
21265cat >>conftest.$ac_ext <<_ACEOF
21266/* end confdefs.h.  */
21267
21268int
21269main ()
21270{
21271
21272  ;
21273  return 0;
21274}
21275_ACEOF
21276alut_save_flags="$CFLAGS"
21277CFLAGS="$CFLAGS -Wvariadic-macros"
21278alut_cv_CFLAGS_Wvariadic_macros=no
21279if { (eval $ac_compile conftest.$ac_ext) 2>conftest.er1
21280  alut_status=$?
21281  grep -v '^ *+' conftest.er1 >conftest.err
21282  rm -f conftest.er1
21283  (exit $alut_status); } >/dev/null; then
21284  test -s conftest.err || alut_cv_CFLAGS_Wvariadic_macros=yes
21285fi
21286CFLAGS="$alut_save_flags"
21287rm -f conftest.err conftest.$ac_ext
21288fi
21289echo "$as_me:$LINENO: result: $alut_cv_CFLAGS_Wvariadic_macros" >&5
21290echo "${ECHO_T}$alut_cv_CFLAGS_Wvariadic_macros" >&6
21291if test $alut_cv_CFLAGS_Wvariadic_macros = yes; then
21292  AM_CFLAGS="$AM_CFLAGS -Wvariadic-macros -Wold-style-definition"
21293fi
21294
21295  fi
21296fi
21297
21298# Check whether --enable-werror or --disable-werror was given.
21299if test "${enable_werror+set}" = set; then
21300  enableval="$enable_werror"
21301
21302fi;
21303
21304if test "x$enable_werror" = xyes; then
21305  if test "x$enable_warnings" = xno; then
21306    { echo "$as_me:$LINENO: WARNING: --enable-werror ignored because of --disable-warnings" >&5
21307echo "$as_me: WARNING: --enable-werror ignored because of --disable-warnings" >&2;}
21308  elif test "x$GCC" != xyes; then
21309    { echo "$as_me:$LINENO: WARNING: --enable-werror ignored because no GCC was detected" >&5
21310echo "$as_me: WARNING: --enable-werror ignored because no GCC was detected" >&2;}
21311  else
21312    AM_CFLAGS="$AM_CFLAGS -Werror"
21313  fi
21314fi
21315
21316# Check whether --enable-efence or --disable-efence was given.
21317if test "${enable_efence+set}" = set; then
21318  enableval="$enable_efence"
21319
21320fi;
21321
21322if test "x$enable_efence" = xyes; then
21323  alut_saved_LIBS=$LIBS
21324  LIBS="-lefence $LIBS"
21325  cat >conftest.$ac_ext <<_ACEOF
21326/* confdefs.h.  */
21327_ACEOF
21328cat confdefs.h >>conftest.$ac_ext
21329cat >>conftest.$ac_ext <<_ACEOF
21330/* end confdefs.h.  */
21331extern int EF_ALIGNMENT;
21332int
21333main ()
21334{
21335EF_ALIGNMENT = 8;
21336  ;
21337  return 0;
21338}
21339_ACEOF
21340rm -f conftest.$ac_objext conftest$ac_exeext
21341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21342  (eval $ac_link) 2>conftest.er1
21343  ac_status=$?
21344  grep -v '^ *+' conftest.er1 >conftest.err
21345  rm -f conftest.er1
21346  cat conftest.err >&5
21347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348  (exit $ac_status); } &&
21349	 { ac_try='test -z "$ac_c_werror_flag"
21350			 || test ! -s conftest.err'
21351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352  (eval $ac_try) 2>&5
21353  ac_status=$?
21354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355  (exit $ac_status); }; } &&
21356	 { ac_try='test -s conftest$ac_exeext'
21357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21358  (eval $ac_try) 2>&5
21359  ac_status=$?
21360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361  (exit $ac_status); }; }; then
21362  :
21363else
21364  echo "$as_me: failed program was:" >&5
21365sed 's/^/| /' conftest.$ac_ext >&5
21366
21367{ echo "$as_me:$LINENO: WARNING: --enable-efence ignored because the Electric Fence library was not found." >&5
21368echo "$as_me: WARNING: --enable-efence ignored because the Electric Fence library was not found." >&2;}
21369     LIBS=$alut_saved_LIBS
21370fi
21371rm -f conftest.err conftest.$ac_objext \
21372      conftest$ac_exeext conftest.$ac_ext
21373fi
21374
21375################################################################################
21376# Generate output.
21377################################################################################
21378
21379
21380
21381# NOTE: Do not break the following line, otherwise we are into CR/LF vs. LF
21382# trouble! This is a buglet in autoconf IMHO, but easy to work around.
21383                                                                                                    ac_config_files="$ac_config_files Makefile admin/Makefile admin/pkgconfig/Makefile admin/pkgconfig/freealut-config admin/pkgconfig/freealut.pc admin/RPM/freealut.spec examples/Makefile include/Makefile src/Makefile test_suite/Makefile"
21384
21385
21386cat >confcache <<\_ACEOF
21387# This file is a shell script that caches the results of configure
21388# tests run on this system so they can be shared between configure
21389# scripts and configure runs, see configure's option --config-cache.
21390# It is not useful on other systems.  If it contains results you don't
21391# want to keep, you may remove or edit it.
21392#
21393# config.status only pays attention to the cache file if you give it
21394# the --recheck option to rerun configure.
21395#
21396# `ac_cv_env_foo' variables (set or unset) will be overridden when
21397# loading this file, other *unset* `ac_cv_foo' will be assigned the
21398# following values.
21399
21400_ACEOF
21401
21402# The following way of writing the cache mishandles newlines in values,
21403# but we know of no workaround that is simple, portable, and efficient.
21404# So, don't put newlines in cache variables' values.
21405# Ultrix sh set writes to stderr and can't be redirected directly,
21406# and sets the high bit in the cache file unless we assign to the vars.
21407{
21408  (set) 2>&1 |
21409    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21410    *ac_space=\ *)
21411      # `set' does not quote correctly, so add quotes (double-quote
21412      # substitution turns \\\\ into \\, and sed turns \\ into \).
21413      sed -n \
21414	"s/'/'\\\\''/g;
21415	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21416      ;;
21417    *)
21418      # `set' quotes correctly as required by POSIX, so do not add quotes.
21419      sed -n \
21420	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21421      ;;
21422    esac;
21423} |
21424  sed '
21425     t clear
21426     : clear
21427     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21428     t end
21429     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21430     : end' >>confcache
21431if diff $cache_file confcache >/dev/null 2>&1; then :; else
21432  if test -w $cache_file; then
21433    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21434    cat confcache >$cache_file
21435  else
21436    echo "not updating unwritable cache $cache_file"
21437  fi
21438fi
21439rm -f confcache
21440
21441test "x$prefix" = xNONE && prefix=$ac_default_prefix
21442# Let make expand exec_prefix.
21443test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21444
21445# VPATH may cause trouble with some makes, so we remove $(srcdir),
21446# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21447# trailing colons and then remove the whole line if VPATH becomes empty
21448# (actually we leave an empty line to preserve line numbers).
21449if test "x$srcdir" = x.; then
21450  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21451s/:*\$(srcdir):*/:/;
21452s/:*\${srcdir}:*/:/;
21453s/:*@srcdir@:*/:/;
21454s/^\([^=]*=[	 ]*\):*/\1/;
21455s/:*$//;
21456s/^[^=]*=[	 ]*$//;
21457}'
21458fi
21459
21460DEFS=-DHAVE_CONFIG_H
21461
21462ac_libobjs=
21463ac_ltlibobjs=
21464for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21465  # 1. Remove the extension, and $U if already installed.
21466  ac_i=`echo "$ac_i" |
21467	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21468  # 2. Add them.
21469  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21470  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21471done
21472LIBOBJS=$ac_libobjs
21473
21474LTLIBOBJS=$ac_ltlibobjs
21475
21476
21477if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21478  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21479Usually this means the macro was only invoked conditionally." >&5
21480echo "$as_me: error: conditional \"AMDEP\" was never defined.
21481Usually this means the macro was only invoked conditionally." >&2;}
21482   { (exit 1); exit 1; }; }
21483fi
21484if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21485  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21486Usually this means the macro was only invoked conditionally." >&5
21487echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21488Usually this means the macro was only invoked conditionally." >&2;}
21489   { (exit 1); exit 1; }; }
21490fi
21491if test -z "${WNO_DEPRECATED_DECLARATIONS_TRUE}" && test -z "${WNO_DEPRECATED_DECLARATIONS_FALSE}"; then
21492  { { echo "$as_me:$LINENO: error: conditional \"WNO_DEPRECATED_DECLARATIONS\" was never defined.
21493Usually this means the macro was only invoked conditionally." >&5
21494echo "$as_me: error: conditional \"WNO_DEPRECATED_DECLARATIONS\" was never defined.
21495Usually this means the macro was only invoked conditionally." >&2;}
21496   { (exit 1); exit 1; }; }
21497fi
21498if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21499  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21500Usually this means the macro was only invoked conditionally." >&5
21501echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21502Usually this means the macro was only invoked conditionally." >&2;}
21503   { (exit 1); exit 1; }; }
21504fi
21505
21506: ${CONFIG_STATUS=./config.status}
21507ac_clean_files_save=$ac_clean_files
21508ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21509{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21510echo "$as_me: creating $CONFIG_STATUS" >&6;}
21511cat >$CONFIG_STATUS <<_ACEOF
21512#! $SHELL
21513# Generated by $as_me.
21514# Run this file to recreate the current configuration.
21515# Compiler output produced by configure, useful for debugging
21516# configure, is in config.log if it exists.
21517
21518debug=false
21519ac_cs_recheck=false
21520ac_cs_silent=false
21521SHELL=\${CONFIG_SHELL-$SHELL}
21522_ACEOF
21523
21524cat >>$CONFIG_STATUS <<\_ACEOF
21525## --------------------- ##
21526## M4sh Initialization.  ##
21527## --------------------- ##
21528
21529# Be Bourne compatible
21530if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21531  emulate sh
21532  NULLCMD=:
21533  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21534  # is contrary to our usage.  Disable this feature.
21535  alias -g '${1+"$@"}'='"$@"'
21536elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21537  set -o posix
21538fi
21539DUALCASE=1; export DUALCASE # for MKS sh
21540
21541# Support unset when possible.
21542if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21543  as_unset=unset
21544else
21545  as_unset=false
21546fi
21547
21548
21549# Work around bugs in pre-3.0 UWIN ksh.
21550$as_unset ENV MAIL MAILPATH
21551PS1='$ '
21552PS2='> '
21553PS4='+ '
21554
21555# NLS nuisances.
21556for as_var in \
21557  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21558  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21559  LC_TELEPHONE LC_TIME
21560do
21561  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21562    eval $as_var=C; export $as_var
21563  else
21564    $as_unset $as_var
21565  fi
21566done
21567
21568# Required to use basename.
21569if expr a : '\(a\)' >/dev/null 2>&1; then
21570  as_expr=expr
21571else
21572  as_expr=false
21573fi
21574
21575if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21576  as_basename=basename
21577else
21578  as_basename=false
21579fi
21580
21581
21582# Name of the executable.
21583as_me=`$as_basename "$0" ||
21584$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21585	 X"$0" : 'X\(//\)$' \| \
21586	 X"$0" : 'X\(/\)$' \| \
21587	 .     : '\(.\)' 2>/dev/null ||
21588echo X/"$0" |
21589    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21590  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21591  	  /^X\/\(\/\).*/{ s//\1/; q; }
21592  	  s/.*/./; q'`
21593
21594
21595# PATH needs CR, and LINENO needs CR and PATH.
21596# Avoid depending upon Character Ranges.
21597as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21598as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21599as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21600as_cr_digits='0123456789'
21601as_cr_alnum=$as_cr_Letters$as_cr_digits
21602
21603# The user is always right.
21604if test "${PATH_SEPARATOR+set}" != set; then
21605  echo "#! /bin/sh" >conf$$.sh
21606  echo  "exit 0"   >>conf$$.sh
21607  chmod +x conf$$.sh
21608  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21609    PATH_SEPARATOR=';'
21610  else
21611    PATH_SEPARATOR=:
21612  fi
21613  rm -f conf$$.sh
21614fi
21615
21616
21617  as_lineno_1=$LINENO
21618  as_lineno_2=$LINENO
21619  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21620  test "x$as_lineno_1" != "x$as_lineno_2" &&
21621  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21622  # Find who we are.  Look in the path if we contain no path at all
21623  # relative or not.
21624  case $0 in
21625    *[\\/]* ) as_myself=$0 ;;
21626    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21627for as_dir in $PATH
21628do
21629  IFS=$as_save_IFS
21630  test -z "$as_dir" && as_dir=.
21631  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21632done
21633
21634       ;;
21635  esac
21636  # We did not find ourselves, most probably we were run as `sh COMMAND'
21637  # in which case we are not to be found in the path.
21638  if test "x$as_myself" = x; then
21639    as_myself=$0
21640  fi
21641  if test ! -f "$as_myself"; then
21642    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21643echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21644   { (exit 1); exit 1; }; }
21645  fi
21646  case $CONFIG_SHELL in
21647  '')
21648    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21649for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21650do
21651  IFS=$as_save_IFS
21652  test -z "$as_dir" && as_dir=.
21653  for as_base in sh bash ksh sh5; do
21654	 case $as_dir in
21655	 /*)
21656	   if ("$as_dir/$as_base" -c '
21657  as_lineno_1=$LINENO
21658  as_lineno_2=$LINENO
21659  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21660  test "x$as_lineno_1" != "x$as_lineno_2" &&
21661  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21662	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21663	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21664	     CONFIG_SHELL=$as_dir/$as_base
21665	     export CONFIG_SHELL
21666	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21667	   fi;;
21668	 esac
21669       done
21670done
21671;;
21672  esac
21673
21674  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21675  # uniformly replaced by the line number.  The first 'sed' inserts a
21676  # line-number line before each line; the second 'sed' does the real
21677  # work.  The second script uses 'N' to pair each line-number line
21678  # with the numbered line, and appends trailing '-' during
21679  # substitution so that $LINENO is not a special case at line end.
21680  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21681  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21682  sed '=' <$as_myself |
21683    sed '
21684      N
21685      s,$,-,
21686      : loop
21687      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21688      t loop
21689      s,-$,,
21690      s,^['$as_cr_digits']*\n,,
21691    ' >$as_me.lineno &&
21692  chmod +x $as_me.lineno ||
21693    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21694echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21695   { (exit 1); exit 1; }; }
21696
21697  # Don't try to exec as it changes $[0], causing all sort of problems
21698  # (the dirname of $[0] is not the place where we might find the
21699  # original and so on.  Autoconf is especially sensible to this).
21700  . ./$as_me.lineno
21701  # Exit status is that of the last command.
21702  exit
21703}
21704
21705
21706case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21707  *c*,-n*) ECHO_N= ECHO_C='
21708' ECHO_T='	' ;;
21709  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21710  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21711esac
21712
21713if expr a : '\(a\)' >/dev/null 2>&1; then
21714  as_expr=expr
21715else
21716  as_expr=false
21717fi
21718
21719rm -f conf$$ conf$$.exe conf$$.file
21720echo >conf$$.file
21721if ln -s conf$$.file conf$$ 2>/dev/null; then
21722  # We could just check for DJGPP; but this test a) works b) is more generic
21723  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21724  if test -f conf$$.exe; then
21725    # Don't use ln at all; we don't have any links
21726    as_ln_s='cp -p'
21727  else
21728    as_ln_s='ln -s'
21729  fi
21730elif ln conf$$.file conf$$ 2>/dev/null; then
21731  as_ln_s=ln
21732else
21733  as_ln_s='cp -p'
21734fi
21735rm -f conf$$ conf$$.exe conf$$.file
21736
21737if mkdir -p . 2>/dev/null; then
21738  as_mkdir_p=:
21739else
21740  test -d ./-p && rmdir ./-p
21741  as_mkdir_p=false
21742fi
21743
21744as_executable_p="test -f"
21745
21746# Sed expression to map a string onto a valid CPP name.
21747as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21748
21749# Sed expression to map a string onto a valid variable name.
21750as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21751
21752
21753# IFS
21754# We need space, tab and new line, in precisely that order.
21755as_nl='
21756'
21757IFS=" 	$as_nl"
21758
21759# CDPATH.
21760$as_unset CDPATH
21761
21762exec 6>&1
21763
21764# Open the log real soon, to keep \$[0] and so on meaningful, and to
21765# report actual input values of CONFIG_FILES etc. instead of their
21766# values after options handling.  Logging --version etc. is OK.
21767exec 5>>config.log
21768{
21769  echo
21770  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21771## Running $as_me. ##
21772_ASBOX
21773} >&5
21774cat >&5 <<_CSEOF
21775
21776This file was extended by freealut library $as_me 1.1.0, which was
21777generated by GNU Autoconf 2.59.  Invocation command line was
21778
21779  CONFIG_FILES    = $CONFIG_FILES
21780  CONFIG_HEADERS  = $CONFIG_HEADERS
21781  CONFIG_LINKS    = $CONFIG_LINKS
21782  CONFIG_COMMANDS = $CONFIG_COMMANDS
21783  $ $0 $@
21784
21785_CSEOF
21786echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21787echo >&5
21788_ACEOF
21789
21790# Files that config.status was made for.
21791if test -n "$ac_config_files"; then
21792  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21793fi
21794
21795if test -n "$ac_config_headers"; then
21796  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21797fi
21798
21799if test -n "$ac_config_links"; then
21800  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21801fi
21802
21803if test -n "$ac_config_commands"; then
21804  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21805fi
21806
21807cat >>$CONFIG_STATUS <<\_ACEOF
21808
21809ac_cs_usage="\
21810\`$as_me' instantiates files from templates according to the
21811current configuration.
21812
21813Usage: $0 [OPTIONS] [FILE]...
21814
21815  -h, --help       print this help, then exit
21816  -V, --version    print version number, then exit
21817  -q, --quiet      do not print progress messages
21818  -d, --debug      don't remove temporary files
21819      --recheck    update $as_me by reconfiguring in the same conditions
21820  --file=FILE[:TEMPLATE]
21821		   instantiate the configuration file FILE
21822  --header=FILE[:TEMPLATE]
21823		   instantiate the configuration header FILE
21824
21825Configuration files:
21826$config_files
21827
21828Configuration headers:
21829$config_headers
21830
21831Configuration commands:
21832$config_commands
21833
21834Report bugs to <bug-autoconf@gnu.org>."
21835_ACEOF
21836
21837cat >>$CONFIG_STATUS <<_ACEOF
21838ac_cs_version="\\
21839freealut library config.status 1.1.0
21840configured by $0, generated by GNU Autoconf 2.59,
21841  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21842
21843Copyright (C) 2003 Free Software Foundation, Inc.
21844This config.status script is free software; the Free Software Foundation
21845gives unlimited permission to copy, distribute and modify it."
21846srcdir=$srcdir
21847INSTALL="$INSTALL"
21848_ACEOF
21849
21850cat >>$CONFIG_STATUS <<\_ACEOF
21851# If no file are specified by the user, then we need to provide default
21852# value.  By we need to know if files were specified by the user.
21853ac_need_defaults=:
21854while test $# != 0
21855do
21856  case $1 in
21857  --*=*)
21858    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21859    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21860    ac_shift=:
21861    ;;
21862  -*)
21863    ac_option=$1
21864    ac_optarg=$2
21865    ac_shift=shift
21866    ;;
21867  *) # This is not an option, so the user has probably given explicit
21868     # arguments.
21869     ac_option=$1
21870     ac_need_defaults=false;;
21871  esac
21872
21873  case $ac_option in
21874  # Handling of the options.
21875_ACEOF
21876cat >>$CONFIG_STATUS <<\_ACEOF
21877  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21878    ac_cs_recheck=: ;;
21879  --version | --vers* | -V )
21880    echo "$ac_cs_version"; exit 0 ;;
21881  --he | --h)
21882    # Conflict between --help and --header
21883    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21884Try \`$0 --help' for more information." >&5
21885echo "$as_me: error: ambiguous option: $1
21886Try \`$0 --help' for more information." >&2;}
21887   { (exit 1); exit 1; }; };;
21888  --help | --hel | -h )
21889    echo "$ac_cs_usage"; exit 0 ;;
21890  --debug | --d* | -d )
21891    debug=: ;;
21892  --file | --fil | --fi | --f )
21893    $ac_shift
21894    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21895    ac_need_defaults=false;;
21896  --header | --heade | --head | --hea )
21897    $ac_shift
21898    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21899    ac_need_defaults=false;;
21900  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21901  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21902    ac_cs_silent=: ;;
21903
21904  # This is an error.
21905  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21906Try \`$0 --help' for more information." >&5
21907echo "$as_me: error: unrecognized option: $1
21908Try \`$0 --help' for more information." >&2;}
21909   { (exit 1); exit 1; }; } ;;
21910
21911  *) ac_config_targets="$ac_config_targets $1" ;;
21912
21913  esac
21914  shift
21915done
21916
21917ac_configure_extra_args=
21918
21919if $ac_cs_silent; then
21920  exec 6>/dev/null
21921  ac_configure_extra_args="$ac_configure_extra_args --silent"
21922fi
21923
21924_ACEOF
21925cat >>$CONFIG_STATUS <<_ACEOF
21926if \$ac_cs_recheck; then
21927  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21928  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21929fi
21930
21931_ACEOF
21932
21933cat >>$CONFIG_STATUS <<_ACEOF
21934#
21935# INIT-COMMANDS section.
21936#
21937
21938AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21939
21940_ACEOF
21941
21942
21943
21944cat >>$CONFIG_STATUS <<\_ACEOF
21945for ac_config_target in $ac_config_targets
21946do
21947  case "$ac_config_target" in
21948  # Handling of arguments.
21949  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21950  "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;;
21951  "admin/pkgconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/pkgconfig/Makefile" ;;
21952  "admin/pkgconfig/freealut-config" ) CONFIG_FILES="$CONFIG_FILES admin/pkgconfig/freealut-config" ;;
21953  "admin/pkgconfig/freealut.pc" ) CONFIG_FILES="$CONFIG_FILES admin/pkgconfig/freealut.pc" ;;
21954  "admin/RPM/freealut.spec" ) CONFIG_FILES="$CONFIG_FILES admin/RPM/freealut.spec" ;;
21955  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
21956  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21957  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21958  "test_suite/Makefile" ) CONFIG_FILES="$CONFIG_FILES test_suite/Makefile" ;;
21959  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21960  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21961  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21962echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21963   { (exit 1); exit 1; }; };;
21964  esac
21965done
21966
21967# If the user did not use the arguments to specify the items to instantiate,
21968# then the envvar interface is used.  Set only those that are not.
21969# We use the long form for the default assignment because of an extremely
21970# bizarre bug on SunOS 4.1.3.
21971if $ac_need_defaults; then
21972  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21973  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21974  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21975fi
21976
21977# Have a temporary directory for convenience.  Make it in the build tree
21978# simply because there is no reason to put it here, and in addition,
21979# creating and moving files from /tmp can sometimes cause problems.
21980# Create a temporary directory, and hook for its removal unless debugging.
21981$debug ||
21982{
21983  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21984  trap '{ (exit 1); exit 1; }' 1 2 13 15
21985}
21986
21987# Create a (secure) tmp directory for tmp files.
21988
21989{
21990  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21991  test -n "$tmp" && test -d "$tmp"
21992}  ||
21993{
21994  tmp=./confstat$$-$RANDOM
21995  (umask 077 && mkdir $tmp)
21996} ||
21997{
21998   echo "$me: cannot create a temporary directory in ." >&2
21999   { (exit 1); exit 1; }
22000}
22001
22002_ACEOF
22003
22004cat >>$CONFIG_STATUS <<_ACEOF
22005
22006#
22007# CONFIG_FILES section.
22008#
22009
22010# No need to generate the scripts if there are no CONFIG_FILES.
22011# This happens for instance when ./config.status config.h
22012if test -n "\$CONFIG_FILES"; then
22013  # Protect against being on the right side of a sed subst in config.status.
22014  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22015   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22016s,@SHELL@,$SHELL,;t t
22017s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22018s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22019s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22020s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22021s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22022s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22023s,@exec_prefix@,$exec_prefix,;t t
22024s,@prefix@,$prefix,;t t
22025s,@program_transform_name@,$program_transform_name,;t t
22026s,@bindir@,$bindir,;t t
22027s,@sbindir@,$sbindir,;t t
22028s,@libexecdir@,$libexecdir,;t t
22029s,@datadir@,$datadir,;t t
22030s,@sysconfdir@,$sysconfdir,;t t
22031s,@sharedstatedir@,$sharedstatedir,;t t
22032s,@localstatedir@,$localstatedir,;t t
22033s,@libdir@,$libdir,;t t
22034s,@includedir@,$includedir,;t t
22035s,@oldincludedir@,$oldincludedir,;t t
22036s,@infodir@,$infodir,;t t
22037s,@mandir@,$mandir,;t t
22038s,@build_alias@,$build_alias,;t t
22039s,@host_alias@,$host_alias,;t t
22040s,@target_alias@,$target_alias,;t t
22041s,@DEFS@,$DEFS,;t t
22042s,@ECHO_C@,$ECHO_C,;t t
22043s,@ECHO_N@,$ECHO_N,;t t
22044s,@ECHO_T@,$ECHO_T,;t t
22045s,@LIBS@,$LIBS,;t t
22046s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22047s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22048s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22049s,@CYGPATH_W@,$CYGPATH_W,;t t
22050s,@PACKAGE@,$PACKAGE,;t t
22051s,@VERSION@,$VERSION,;t t
22052s,@ACLOCAL@,$ACLOCAL,;t t
22053s,@AUTOCONF@,$AUTOCONF,;t t
22054s,@AUTOMAKE@,$AUTOMAKE,;t t
22055s,@AUTOHEADER@,$AUTOHEADER,;t t
22056s,@MAKEINFO@,$MAKEINFO,;t t
22057s,@install_sh@,$install_sh,;t t
22058s,@STRIP@,$STRIP,;t t
22059s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22060s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22061s,@mkdir_p@,$mkdir_p,;t t
22062s,@AWK@,$AWK,;t t
22063s,@SET_MAKE@,$SET_MAKE,;t t
22064s,@am__leading_dot@,$am__leading_dot,;t t
22065s,@AMTAR@,$AMTAR,;t t
22066s,@am__tar@,$am__tar,;t t
22067s,@am__untar@,$am__untar,;t t
22068s,@VERSIONINFO@,$VERSIONINFO,;t t
22069s,@CC@,$CC,;t t
22070s,@CFLAGS@,$CFLAGS,;t t
22071s,@LDFLAGS@,$LDFLAGS,;t t
22072s,@CPPFLAGS@,$CPPFLAGS,;t t
22073s,@ac_ct_CC@,$ac_ct_CC,;t t
22074s,@EXEEXT@,$EXEEXT,;t t
22075s,@OBJEXT@,$OBJEXT,;t t
22076s,@DEPDIR@,$DEPDIR,;t t
22077s,@am__include@,$am__include,;t t
22078s,@am__quote@,$am__quote,;t t
22079s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22080s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22081s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22082s,@CCDEPMODE@,$CCDEPMODE,;t t
22083s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22084s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22085s,@WNO_DEPRECATED_DECLARATIONS_TRUE@,$WNO_DEPRECATED_DECLARATIONS_TRUE,;t t
22086s,@WNO_DEPRECATED_DECLARATIONS_FALSE@,$WNO_DEPRECATED_DECLARATIONS_FALSE,;t t
22087s,@build@,$build,;t t
22088s,@build_cpu@,$build_cpu,;t t
22089s,@build_vendor@,$build_vendor,;t t
22090s,@build_os@,$build_os,;t t
22091s,@host@,$host,;t t
22092s,@host_cpu@,$host_cpu,;t t
22093s,@host_vendor@,$host_vendor,;t t
22094s,@host_os@,$host_os,;t t
22095s,@EGREP@,$EGREP,;t t
22096s,@LN_S@,$LN_S,;t t
22097s,@ECHO@,$ECHO,;t t
22098s,@AR@,$AR,;t t
22099s,@ac_ct_AR@,$ac_ct_AR,;t t
22100s,@RANLIB@,$RANLIB,;t t
22101s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22102s,@DLLTOOL@,$DLLTOOL,;t t
22103s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22104s,@AS@,$AS,;t t
22105s,@ac_ct_AS@,$ac_ct_AS,;t t
22106s,@OBJDUMP@,$OBJDUMP,;t t
22107s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22108s,@CPP@,$CPP,;t t
22109s,@CXX@,$CXX,;t t
22110s,@CXXFLAGS@,$CXXFLAGS,;t t
22111s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22112s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22113s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22114s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22115s,@CXXCPP@,$CXXCPP,;t t
22116s,@F77@,$F77,;t t
22117s,@FFLAGS@,$FFLAGS,;t t
22118s,@ac_ct_F77@,$ac_ct_F77,;t t
22119s,@LIBTOOL@,$LIBTOOL,;t t
22120s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
22121s,@LIBM@,$LIBM,;t t
22122s,@AM_CFLAGS@,$AM_CFLAGS,;t t
22123s,@LIBOBJS@,$LIBOBJS,;t t
22124s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22125CEOF
22126
22127_ACEOF
22128
22129  cat >>$CONFIG_STATUS <<\_ACEOF
22130  # Split the substitutions into bite-sized pieces for seds with
22131  # small command number limits, like on Digital OSF/1 and HP-UX.
22132  ac_max_sed_lines=48
22133  ac_sed_frag=1 # Number of current file.
22134  ac_beg=1 # First line for current file.
22135  ac_end=$ac_max_sed_lines # Line after last line for current file.
22136  ac_more_lines=:
22137  ac_sed_cmds=
22138  while $ac_more_lines; do
22139    if test $ac_beg -gt 1; then
22140      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22141    else
22142      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22143    fi
22144    if test ! -s $tmp/subs.frag; then
22145      ac_more_lines=false
22146    else
22147      # The purpose of the label and of the branching condition is to
22148      # speed up the sed processing (if there are no `@' at all, there
22149      # is no need to browse any of the substitutions).
22150      # These are the two extra sed commands mentioned above.
22151      (echo ':t
22152  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22153      if test -z "$ac_sed_cmds"; then
22154	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22155      else
22156	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22157      fi
22158      ac_sed_frag=`expr $ac_sed_frag + 1`
22159      ac_beg=$ac_end
22160      ac_end=`expr $ac_end + $ac_max_sed_lines`
22161    fi
22162  done
22163  if test -z "$ac_sed_cmds"; then
22164    ac_sed_cmds=cat
22165  fi
22166fi # test -n "$CONFIG_FILES"
22167
22168_ACEOF
22169cat >>$CONFIG_STATUS <<\_ACEOF
22170for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22171  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22172  case $ac_file in
22173  - | *:- | *:-:* ) # input from stdin
22174	cat >$tmp/stdin
22175	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22176	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22177  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22178	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22179  * )   ac_file_in=$ac_file.in ;;
22180  esac
22181
22182  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22183  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22184$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22185	 X"$ac_file" : 'X\(//\)[^/]' \| \
22186	 X"$ac_file" : 'X\(//\)$' \| \
22187	 X"$ac_file" : 'X\(/\)' \| \
22188	 .     : '\(.\)' 2>/dev/null ||
22189echo X"$ac_file" |
22190    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22191  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22192  	  /^X\(\/\/\)$/{ s//\1/; q; }
22193  	  /^X\(\/\).*/{ s//\1/; q; }
22194  	  s/.*/./; q'`
22195  { if $as_mkdir_p; then
22196    mkdir -p "$ac_dir"
22197  else
22198    as_dir="$ac_dir"
22199    as_dirs=
22200    while test ! -d "$as_dir"; do
22201      as_dirs="$as_dir $as_dirs"
22202      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22203$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22204	 X"$as_dir" : 'X\(//\)[^/]' \| \
22205	 X"$as_dir" : 'X\(//\)$' \| \
22206	 X"$as_dir" : 'X\(/\)' \| \
22207	 .     : '\(.\)' 2>/dev/null ||
22208echo X"$as_dir" |
22209    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22210  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22211  	  /^X\(\/\/\)$/{ s//\1/; q; }
22212  	  /^X\(\/\).*/{ s//\1/; q; }
22213  	  s/.*/./; q'`
22214    done
22215    test ! -n "$as_dirs" || mkdir $as_dirs
22216  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22217echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22218   { (exit 1); exit 1; }; }; }
22219
22220  ac_builddir=.
22221
22222if test "$ac_dir" != .; then
22223  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22224  # A "../" for each directory in $ac_dir_suffix.
22225  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22226else
22227  ac_dir_suffix= ac_top_builddir=
22228fi
22229
22230case $srcdir in
22231  .)  # No --srcdir option.  We are building in place.
22232    ac_srcdir=.
22233    if test -z "$ac_top_builddir"; then
22234       ac_top_srcdir=.
22235    else
22236       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22237    fi ;;
22238  [\\/]* | ?:[\\/]* )  # Absolute path.
22239    ac_srcdir=$srcdir$ac_dir_suffix;
22240    ac_top_srcdir=$srcdir ;;
22241  *) # Relative path.
22242    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22243    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22244esac
22245
22246# Do not use `cd foo && pwd` to compute absolute paths, because
22247# the directories may not exist.
22248case `pwd` in
22249.) ac_abs_builddir="$ac_dir";;
22250*)
22251  case "$ac_dir" in
22252  .) ac_abs_builddir=`pwd`;;
22253  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22254  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22255  esac;;
22256esac
22257case $ac_abs_builddir in
22258.) ac_abs_top_builddir=${ac_top_builddir}.;;
22259*)
22260  case ${ac_top_builddir}. in
22261  .) ac_abs_top_builddir=$ac_abs_builddir;;
22262  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22263  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22264  esac;;
22265esac
22266case $ac_abs_builddir in
22267.) ac_abs_srcdir=$ac_srcdir;;
22268*)
22269  case $ac_srcdir in
22270  .) ac_abs_srcdir=$ac_abs_builddir;;
22271  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22272  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22273  esac;;
22274esac
22275case $ac_abs_builddir in
22276.) ac_abs_top_srcdir=$ac_top_srcdir;;
22277*)
22278  case $ac_top_srcdir in
22279  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22280  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22281  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22282  esac;;
22283esac
22284
22285
22286  case $INSTALL in
22287  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22288  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22289  esac
22290
22291  if test x"$ac_file" != x-; then
22292    { echo "$as_me:$LINENO: creating $ac_file" >&5
22293echo "$as_me: creating $ac_file" >&6;}
22294    rm -f "$ac_file"
22295  fi
22296  # Let's still pretend it is `configure' which instantiates (i.e., don't
22297  # use $as_me), people would be surprised to read:
22298  #    /* config.h.  Generated by config.status.  */
22299  if test x"$ac_file" = x-; then
22300    configure_input=
22301  else
22302    configure_input="$ac_file.  "
22303  fi
22304  configure_input=$configure_input"Generated from `echo $ac_file_in |
22305				     sed 's,.*/,,'` by configure."
22306
22307  # First look for the input files in the build tree, otherwise in the
22308  # src tree.
22309  ac_file_inputs=`IFS=:
22310    for f in $ac_file_in; do
22311      case $f in
22312      -) echo $tmp/stdin ;;
22313      [\\/$]*)
22314	 # Absolute (can't be DOS-style, as IFS=:)
22315	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22316echo "$as_me: error: cannot find input file: $f" >&2;}
22317   { (exit 1); exit 1; }; }
22318	 echo "$f";;
22319      *) # Relative
22320	 if test -f "$f"; then
22321	   # Build tree
22322	   echo "$f"
22323	 elif test -f "$srcdir/$f"; then
22324	   # Source tree
22325	   echo "$srcdir/$f"
22326	 else
22327	   # /dev/null tree
22328	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22329echo "$as_me: error: cannot find input file: $f" >&2;}
22330   { (exit 1); exit 1; }; }
22331	 fi;;
22332      esac
22333    done` || { (exit 1); exit 1; }
22334_ACEOF
22335cat >>$CONFIG_STATUS <<_ACEOF
22336  sed "$ac_vpsub
22337$extrasub
22338_ACEOF
22339cat >>$CONFIG_STATUS <<\_ACEOF
22340:t
22341/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22342s,@configure_input@,$configure_input,;t t
22343s,@srcdir@,$ac_srcdir,;t t
22344s,@abs_srcdir@,$ac_abs_srcdir,;t t
22345s,@top_srcdir@,$ac_top_srcdir,;t t
22346s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22347s,@builddir@,$ac_builddir,;t t
22348s,@abs_builddir@,$ac_abs_builddir,;t t
22349s,@top_builddir@,$ac_top_builddir,;t t
22350s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22351s,@INSTALL@,$ac_INSTALL,;t t
22352" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22353  rm -f $tmp/stdin
22354  if test x"$ac_file" != x-; then
22355    mv $tmp/out $ac_file
22356  else
22357    cat $tmp/out
22358    rm -f $tmp/out
22359  fi
22360
22361done
22362_ACEOF
22363cat >>$CONFIG_STATUS <<\_ACEOF
22364
22365#
22366# CONFIG_HEADER section.
22367#
22368
22369# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22370# NAME is the cpp macro being defined and VALUE is the value it is being given.
22371#
22372# ac_d sets the value in "#define NAME VALUE" lines.
22373ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
22374ac_dB='[	 ].*$,\1#\2'
22375ac_dC=' '
22376ac_dD=',;t'
22377# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22378ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
22379ac_uB='$,\1#\2define\3'
22380ac_uC=' '
22381ac_uD=',;t'
22382
22383for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22384  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22385  case $ac_file in
22386  - | *:- | *:-:* ) # input from stdin
22387	cat >$tmp/stdin
22388	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22389	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22390  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22391	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22392  * )   ac_file_in=$ac_file.in ;;
22393  esac
22394
22395  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22396echo "$as_me: creating $ac_file" >&6;}
22397
22398  # First look for the input files in the build tree, otherwise in the
22399  # src tree.
22400  ac_file_inputs=`IFS=:
22401    for f in $ac_file_in; do
22402      case $f in
22403      -) echo $tmp/stdin ;;
22404      [\\/$]*)
22405	 # Absolute (can't be DOS-style, as IFS=:)
22406	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22407echo "$as_me: error: cannot find input file: $f" >&2;}
22408   { (exit 1); exit 1; }; }
22409	 # Do quote $f, to prevent DOS paths from being IFS'd.
22410	 echo "$f";;
22411      *) # Relative
22412	 if test -f "$f"; then
22413	   # Build tree
22414	   echo "$f"
22415	 elif test -f "$srcdir/$f"; then
22416	   # Source tree
22417	   echo "$srcdir/$f"
22418	 else
22419	   # /dev/null tree
22420	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22421echo "$as_me: error: cannot find input file: $f" >&2;}
22422   { (exit 1); exit 1; }; }
22423	 fi;;
22424      esac
22425    done` || { (exit 1); exit 1; }
22426  # Remove the trailing spaces.
22427  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
22428
22429_ACEOF
22430
22431# Transform confdefs.h into two sed scripts, `conftest.defines' and
22432# `conftest.undefs', that substitutes the proper values into
22433# config.h.in to produce config.h.  The first handles `#define'
22434# templates, and the second `#undef' templates.
22435# And first: Protect against being on the right side of a sed subst in
22436# config.status.  Protect against being in an unquoted here document
22437# in config.status.
22438rm -f conftest.defines conftest.undefs
22439# Using a here document instead of a string reduces the quoting nightmare.
22440# Putting comments in sed scripts is not portable.
22441#
22442# `end' is used to avoid that the second main sed command (meant for
22443# 0-ary CPP macros) applies to n-ary macro definitions.
22444# See the Autoconf documentation for `clear'.
22445cat >confdef2sed.sed <<\_ACEOF
22446s/[\\&,]/\\&/g
22447s,[\\$`],\\&,g
22448t clear
22449: clear
22450s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22451t end
22452s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22453: end
22454_ACEOF
22455# If some macros were called several times there might be several times
22456# the same #defines, which is useless.  Nevertheless, we may not want to
22457# sort them, since we want the *last* AC-DEFINE to be honored.
22458uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22459sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22460rm -f confdef2sed.sed
22461
22462# This sed command replaces #undef with comments.  This is necessary, for
22463# example, in the case of _POSIX_SOURCE, which is predefined and required
22464# on some systems where configure will not decide to define it.
22465cat >>conftest.undefs <<\_ACEOF
22466s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22467_ACEOF
22468
22469# Break up conftest.defines because some shells have a limit on the size
22470# of here documents, and old seds have small limits too (100 cmds).
22471echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22472echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22473echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22474echo '  :' >>$CONFIG_STATUS
22475rm -f conftest.tail
22476while grep . conftest.defines >/dev/null
22477do
22478  # Write a limited-size here document to $tmp/defines.sed.
22479  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22480  # Speed up: don't consider the non `#define' lines.
22481  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
22482  # Work around the forget-to-reset-the-flag bug.
22483  echo 't clr' >>$CONFIG_STATUS
22484  echo ': clr' >>$CONFIG_STATUS
22485  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22486  echo 'CEOF
22487  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22488  rm -f $tmp/in
22489  mv $tmp/out $tmp/in
22490' >>$CONFIG_STATUS
22491  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22492  rm -f conftest.defines
22493  mv conftest.tail conftest.defines
22494done
22495rm -f conftest.defines
22496echo '  fi # grep' >>$CONFIG_STATUS
22497echo >>$CONFIG_STATUS
22498
22499# Break up conftest.undefs because some shells have a limit on the size
22500# of here documents, and old seds have small limits too (100 cmds).
22501echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22502rm -f conftest.tail
22503while grep . conftest.undefs >/dev/null
22504do
22505  # Write a limited-size here document to $tmp/undefs.sed.
22506  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22507  # Speed up: don't consider the non `#undef'
22508  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
22509  # Work around the forget-to-reset-the-flag bug.
22510  echo 't clr' >>$CONFIG_STATUS
22511  echo ': clr' >>$CONFIG_STATUS
22512  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22513  echo 'CEOF
22514  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22515  rm -f $tmp/in
22516  mv $tmp/out $tmp/in
22517' >>$CONFIG_STATUS
22518  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22519  rm -f conftest.undefs
22520  mv conftest.tail conftest.undefs
22521done
22522rm -f conftest.undefs
22523
22524cat >>$CONFIG_STATUS <<\_ACEOF
22525  # Let's still pretend it is `configure' which instantiates (i.e., don't
22526  # use $as_me), people would be surprised to read:
22527  #    /* config.h.  Generated by config.status.  */
22528  if test x"$ac_file" = x-; then
22529    echo "/* Generated by configure.  */" >$tmp/config.h
22530  else
22531    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22532  fi
22533  cat $tmp/in >>$tmp/config.h
22534  rm -f $tmp/in
22535  if test x"$ac_file" != x-; then
22536    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22537      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22538echo "$as_me: $ac_file is unchanged" >&6;}
22539    else
22540      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22541$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22542	 X"$ac_file" : 'X\(//\)[^/]' \| \
22543	 X"$ac_file" : 'X\(//\)$' \| \
22544	 X"$ac_file" : 'X\(/\)' \| \
22545	 .     : '\(.\)' 2>/dev/null ||
22546echo X"$ac_file" |
22547    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22548  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22549  	  /^X\(\/\/\)$/{ s//\1/; q; }
22550  	  /^X\(\/\).*/{ s//\1/; q; }
22551  	  s/.*/./; q'`
22552      { if $as_mkdir_p; then
22553    mkdir -p "$ac_dir"
22554  else
22555    as_dir="$ac_dir"
22556    as_dirs=
22557    while test ! -d "$as_dir"; do
22558      as_dirs="$as_dir $as_dirs"
22559      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22560$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22561	 X"$as_dir" : 'X\(//\)[^/]' \| \
22562	 X"$as_dir" : 'X\(//\)$' \| \
22563	 X"$as_dir" : 'X\(/\)' \| \
22564	 .     : '\(.\)' 2>/dev/null ||
22565echo X"$as_dir" |
22566    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22567  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22568  	  /^X\(\/\/\)$/{ s//\1/; q; }
22569  	  /^X\(\/\).*/{ s//\1/; q; }
22570  	  s/.*/./; q'`
22571    done
22572    test ! -n "$as_dirs" || mkdir $as_dirs
22573  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22574echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22575   { (exit 1); exit 1; }; }; }
22576
22577      rm -f $ac_file
22578      mv $tmp/config.h $ac_file
22579    fi
22580  else
22581    cat $tmp/config.h
22582    rm -f $tmp/config.h
22583  fi
22584# Compute $ac_file's index in $config_headers.
22585_am_stamp_count=1
22586for _am_header in $config_headers :; do
22587  case $_am_header in
22588    $ac_file | $ac_file:* )
22589      break ;;
22590    * )
22591      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22592  esac
22593done
22594echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22595$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22596	 X$ac_file : 'X\(//\)[^/]' \| \
22597	 X$ac_file : 'X\(//\)$' \| \
22598	 X$ac_file : 'X\(/\)' \| \
22599	 .     : '\(.\)' 2>/dev/null ||
22600echo X$ac_file |
22601    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22602  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22603  	  /^X\(\/\/\)$/{ s//\1/; q; }
22604  	  /^X\(\/\).*/{ s//\1/; q; }
22605  	  s/.*/./; q'`/stamp-h$_am_stamp_count
22606done
22607_ACEOF
22608cat >>$CONFIG_STATUS <<\_ACEOF
22609
22610#
22611# CONFIG_COMMANDS section.
22612#
22613for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22614  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22615  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22616  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22617$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22618	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22619	 X"$ac_dest" : 'X\(//\)$' \| \
22620	 X"$ac_dest" : 'X\(/\)' \| \
22621	 .     : '\(.\)' 2>/dev/null ||
22622echo X"$ac_dest" |
22623    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22624  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22625  	  /^X\(\/\/\)$/{ s//\1/; q; }
22626  	  /^X\(\/\).*/{ s//\1/; q; }
22627  	  s/.*/./; q'`
22628  { if $as_mkdir_p; then
22629    mkdir -p "$ac_dir"
22630  else
22631    as_dir="$ac_dir"
22632    as_dirs=
22633    while test ! -d "$as_dir"; do
22634      as_dirs="$as_dir $as_dirs"
22635      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22636$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22637	 X"$as_dir" : 'X\(//\)[^/]' \| \
22638	 X"$as_dir" : 'X\(//\)$' \| \
22639	 X"$as_dir" : 'X\(/\)' \| \
22640	 .     : '\(.\)' 2>/dev/null ||
22641echo X"$as_dir" |
22642    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22643  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22644  	  /^X\(\/\/\)$/{ s//\1/; q; }
22645  	  /^X\(\/\).*/{ s//\1/; q; }
22646  	  s/.*/./; q'`
22647    done
22648    test ! -n "$as_dirs" || mkdir $as_dirs
22649  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22650echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22651   { (exit 1); exit 1; }; }; }
22652
22653  ac_builddir=.
22654
22655if test "$ac_dir" != .; then
22656  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22657  # A "../" for each directory in $ac_dir_suffix.
22658  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22659else
22660  ac_dir_suffix= ac_top_builddir=
22661fi
22662
22663case $srcdir in
22664  .)  # No --srcdir option.  We are building in place.
22665    ac_srcdir=.
22666    if test -z "$ac_top_builddir"; then
22667       ac_top_srcdir=.
22668    else
22669       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22670    fi ;;
22671  [\\/]* | ?:[\\/]* )  # Absolute path.
22672    ac_srcdir=$srcdir$ac_dir_suffix;
22673    ac_top_srcdir=$srcdir ;;
22674  *) # Relative path.
22675    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22676    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22677esac
22678
22679# Do not use `cd foo && pwd` to compute absolute paths, because
22680# the directories may not exist.
22681case `pwd` in
22682.) ac_abs_builddir="$ac_dir";;
22683*)
22684  case "$ac_dir" in
22685  .) ac_abs_builddir=`pwd`;;
22686  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22687  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22688  esac;;
22689esac
22690case $ac_abs_builddir in
22691.) ac_abs_top_builddir=${ac_top_builddir}.;;
22692*)
22693  case ${ac_top_builddir}. in
22694  .) ac_abs_top_builddir=$ac_abs_builddir;;
22695  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22696  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22697  esac;;
22698esac
22699case $ac_abs_builddir in
22700.) ac_abs_srcdir=$ac_srcdir;;
22701*)
22702  case $ac_srcdir in
22703  .) ac_abs_srcdir=$ac_abs_builddir;;
22704  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22705  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22706  esac;;
22707esac
22708case $ac_abs_builddir in
22709.) ac_abs_top_srcdir=$ac_top_srcdir;;
22710*)
22711  case $ac_top_srcdir in
22712  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22713  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22714  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22715  esac;;
22716esac
22717
22718
22719  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22720echo "$as_me: executing $ac_dest commands" >&6;}
22721  case $ac_dest in
22722    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22723  # Strip MF so we end up with the name of the file.
22724  mf=`echo "$mf" | sed -e 's/:.*$//'`
22725  # Check whether this is an Automake generated Makefile or not.
22726  # We used to match only the files named `Makefile.in', but
22727  # some people rename them; so instead we look at the file content.
22728  # Grep'ing the first line is not enough: some people post-process
22729  # each Makefile.in and add a new line on top of each file to say so.
22730  # So let's grep whole file.
22731  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22732    dirpart=`(dirname "$mf") 2>/dev/null ||
22733$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22734	 X"$mf" : 'X\(//\)[^/]' \| \
22735	 X"$mf" : 'X\(//\)$' \| \
22736	 X"$mf" : 'X\(/\)' \| \
22737	 .     : '\(.\)' 2>/dev/null ||
22738echo X"$mf" |
22739    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22740  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22741  	  /^X\(\/\/\)$/{ s//\1/; q; }
22742  	  /^X\(\/\).*/{ s//\1/; q; }
22743  	  s/.*/./; q'`
22744  else
22745    continue
22746  fi
22747  # Extract the definition of DEPDIR, am__include, and am__quote
22748  # from the Makefile without running `make'.
22749  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22750  test -z "$DEPDIR" && continue
22751  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22752  test -z "am__include" && continue
22753  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22754  # When using ansi2knr, U may be empty or an underscore; expand it
22755  U=`sed -n 's/^U = //p' < "$mf"`
22756  # Find all dependency output files, they are included files with
22757  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22758  # simplest approach to changing $(DEPDIR) to its actual value in the
22759  # expansion.
22760  for file in `sed -n "
22761    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22762       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22763    # Make sure the directory exists.
22764    test -f "$dirpart/$file" && continue
22765    fdir=`(dirname "$file") 2>/dev/null ||
22766$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22767	 X"$file" : 'X\(//\)[^/]' \| \
22768	 X"$file" : 'X\(//\)$' \| \
22769	 X"$file" : 'X\(/\)' \| \
22770	 .     : '\(.\)' 2>/dev/null ||
22771echo X"$file" |
22772    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22773  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22774  	  /^X\(\/\/\)$/{ s//\1/; q; }
22775  	  /^X\(\/\).*/{ s//\1/; q; }
22776  	  s/.*/./; q'`
22777    { if $as_mkdir_p; then
22778    mkdir -p $dirpart/$fdir
22779  else
22780    as_dir=$dirpart/$fdir
22781    as_dirs=
22782    while test ! -d "$as_dir"; do
22783      as_dirs="$as_dir $as_dirs"
22784      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22785$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22786	 X"$as_dir" : 'X\(//\)[^/]' \| \
22787	 X"$as_dir" : 'X\(//\)$' \| \
22788	 X"$as_dir" : 'X\(/\)' \| \
22789	 .     : '\(.\)' 2>/dev/null ||
22790echo X"$as_dir" |
22791    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22792  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22793  	  /^X\(\/\/\)$/{ s//\1/; q; }
22794  	  /^X\(\/\).*/{ s//\1/; q; }
22795  	  s/.*/./; q'`
22796    done
22797    test ! -n "$as_dirs" || mkdir $as_dirs
22798  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22799echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22800   { (exit 1); exit 1; }; }; }
22801
22802    # echo "creating $dirpart/$file"
22803    echo '# dummy' > "$dirpart/$file"
22804  done
22805done
22806 ;;
22807  esac
22808done
22809_ACEOF
22810
22811cat >>$CONFIG_STATUS <<\_ACEOF
22812
22813{ (exit 0); exit 0; }
22814_ACEOF
22815chmod +x $CONFIG_STATUS
22816ac_clean_files=$ac_clean_files_save
22817
22818
22819# configure is writing to config.log, and then calls config.status.
22820# config.status does its own redirection, appending to config.log.
22821# Unfortunately, on DOS this fails, as config.log is still kept open
22822# by configure, so config.status won't be able to write to it; its
22823# output is simply discarded.  So we exec the FD to /dev/null,
22824# effectively closing config.log, so it can be properly (re)opened and
22825# appended to by config.status.  When coming back to configure, we
22826# need to make the FD available again.
22827if test "$no_create" != yes; then
22828  ac_cs_success=:
22829  ac_config_status_args=
22830  test "$silent" = yes &&
22831    ac_config_status_args="$ac_config_status_args --quiet"
22832  exec 5>/dev/null
22833  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22834  exec 5>>config.log
22835  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22836  # would make configure fail if this is the last instruction.
22837  $ac_cs_success || { (exit 1); exit 1; }
22838fi
22839
22840