1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 (OpenPKG-CURRENT).
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428# Factoring default headers for most tests.
429ac_includes_default="\
430#include <stdio.h>
431#if HAVE_SYS_TYPES_H
432# include <sys/types.h>
433#endif
434#if HAVE_SYS_STAT_H
435# include <sys/stat.h>
436#endif
437#if STDC_HEADERS
438# include <stdlib.h>
439# include <stddef.h>
440#else
441# if HAVE_STDLIB_H
442#  include <stdlib.h>
443# endif
444#endif
445#if HAVE_STRING_H
446# if !STDC_HEADERS && HAVE_MEMORY_H
447#  include <memory.h>
448# endif
449# include <string.h>
450#endif
451#if HAVE_STRINGS_H
452# include <strings.h>
453#endif
454#if HAVE_INTTYPES_H
455# include <inttypes.h>
456#else
457# if HAVE_STDINT_H
458#  include <stdint.h>
459# endif
460#endif
461#if HAVE_UNISTD_H
462# include <unistd.h>
463#endif"
464
465ac_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 SA_VERSION_STR SA_VERSION_RAW SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT 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 STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
466ac_subst_files=''
467
468# Initialize some variables set by options.
469ac_init_help=
470ac_init_version=false
471# The variables have the same names as the options, with
472# dashes changed to underlines.
473cache_file=/dev/null
474exec_prefix=NONE
475no_create=
476no_recursion=
477prefix=NONE
478program_prefix=NONE
479program_suffix=NONE
480program_transform_name=s,x,x,
481silent=
482site=
483srcdir=
484verbose=
485x_includes=NONE
486x_libraries=NONE
487
488# Installation directory options.
489# These are left unexpanded so users can "make install exec_prefix=/foo"
490# and all the variables that are supposed to be based on exec_prefix
491# by default will actually change.
492# Use braces instead of parens because sh, perl, etc. also accept them.
493bindir='${exec_prefix}/bin'
494sbindir='${exec_prefix}/sbin'
495libexecdir='${exec_prefix}/libexec'
496datadir='${prefix}/share'
497sysconfdir='${prefix}/etc'
498sharedstatedir='${prefix}/com'
499localstatedir='${prefix}/var'
500libdir='${exec_prefix}/lib'
501includedir='${prefix}/include'
502oldincludedir='/usr/include'
503infodir='${prefix}/info'
504mandir='${prefix}/man'
505
506ac_prev=
507for ac_option
508do
509  # If the previous option needs an argument, assign it.
510  if test -n "$ac_prev"; then
511    eval "$ac_prev=\$ac_option"
512    ac_prev=
513    continue
514  fi
515
516  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518  # Accept the important Cygnus configure options, so we can diagnose typos.
519
520  case $ac_option in
521
522  -bindir | --bindir | --bindi | --bind | --bin | --bi)
523    ac_prev=bindir ;;
524  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525    bindir=$ac_optarg ;;
526
527  -build | --build | --buil | --bui | --bu)
528    ac_prev=build_alias ;;
529  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530    build_alias=$ac_optarg ;;
531
532  -cache-file | --cache-file | --cache-fil | --cache-fi \
533  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534    ac_prev=cache_file ;;
535  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537    cache_file=$ac_optarg ;;
538
539  --config-cache | -C)
540    cache_file=config.cache ;;
541
542  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543    ac_prev=datadir ;;
544  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545  | --da=*)
546    datadir=$ac_optarg ;;
547
548  -disable-* | --disable-*)
549    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550    # Reject names that are not valid shell variable names.
551    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553   { (exit 1); exit 1; }; }
554    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555    eval "enable_$ac_feature=no" ;;
556
557  -enable-* | --enable-*)
558    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559    # Reject names that are not valid shell variable names.
560    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562   { (exit 1); exit 1; }; }
563    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564    case $ac_option in
565      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566      *) ac_optarg=yes ;;
567    esac
568    eval "enable_$ac_feature='$ac_optarg'" ;;
569
570  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572  | --exec | --exe | --ex)
573    ac_prev=exec_prefix ;;
574  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576  | --exec=* | --exe=* | --ex=*)
577    exec_prefix=$ac_optarg ;;
578
579  -gas | --gas | --ga | --g)
580    # Obsolete; use --with-gas.
581    with_gas=yes ;;
582
583  -help | --help | --hel | --he | -h)
584    ac_init_help=long ;;
585  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586    ac_init_help=recursive ;;
587  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588    ac_init_help=short ;;
589
590  -host | --host | --hos | --ho)
591    ac_prev=host_alias ;;
592  -host=* | --host=* | --hos=* | --ho=*)
593    host_alias=$ac_optarg ;;
594
595  -includedir | --includedir | --includedi | --included | --include \
596  | --includ | --inclu | --incl | --inc)
597    ac_prev=includedir ;;
598  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599  | --includ=* | --inclu=* | --incl=* | --inc=*)
600    includedir=$ac_optarg ;;
601
602  -infodir | --infodir | --infodi | --infod | --info | --inf)
603    ac_prev=infodir ;;
604  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605    infodir=$ac_optarg ;;
606
607  -libdir | --libdir | --libdi | --libd)
608    ac_prev=libdir ;;
609  -libdir=* | --libdir=* | --libdi=* | --libd=*)
610    libdir=$ac_optarg ;;
611
612  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613  | --libexe | --libex | --libe)
614    ac_prev=libexecdir ;;
615  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616  | --libexe=* | --libex=* | --libe=*)
617    libexecdir=$ac_optarg ;;
618
619  -localstatedir | --localstatedir | --localstatedi | --localstated \
620  | --localstate | --localstat | --localsta | --localst \
621  | --locals | --local | --loca | --loc | --lo)
622    ac_prev=localstatedir ;;
623  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626    localstatedir=$ac_optarg ;;
627
628  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629    ac_prev=mandir ;;
630  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631    mandir=$ac_optarg ;;
632
633  -nfp | --nfp | --nf)
634    # Obsolete; use --without-fp.
635    with_fp=no ;;
636
637  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638  | --no-cr | --no-c | -n)
639    no_create=yes ;;
640
641  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643    no_recursion=yes ;;
644
645  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647  | --oldin | --oldi | --old | --ol | --o)
648    ac_prev=oldincludedir ;;
649  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652    oldincludedir=$ac_optarg ;;
653
654  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655    ac_prev=prefix ;;
656  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657    prefix=$ac_optarg ;;
658
659  -program-prefix | --program-prefix | --program-prefi | --program-pref \
660  | --program-pre | --program-pr | --program-p)
661    ac_prev=program_prefix ;;
662  -program-prefix=* | --program-prefix=* | --program-prefi=* \
663  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664    program_prefix=$ac_optarg ;;
665
666  -program-suffix | --program-suffix | --program-suffi | --program-suff \
667  | --program-suf | --program-su | --program-s)
668    ac_prev=program_suffix ;;
669  -program-suffix=* | --program-suffix=* | --program-suffi=* \
670  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671    program_suffix=$ac_optarg ;;
672
673  -program-transform-name | --program-transform-name \
674  | --program-transform-nam | --program-transform-na \
675  | --program-transform-n | --program-transform- \
676  | --program-transform | --program-transfor \
677  | --program-transfo | --program-transf \
678  | --program-trans | --program-tran \
679  | --progr-tra | --program-tr | --program-t)
680    ac_prev=program_transform_name ;;
681  -program-transform-name=* | --program-transform-name=* \
682  | --program-transform-nam=* | --program-transform-na=* \
683  | --program-transform-n=* | --program-transform-=* \
684  | --program-transform=* | --program-transfor=* \
685  | --program-transfo=* | --program-transf=* \
686  | --program-trans=* | --program-tran=* \
687  | --progr-tra=* | --program-tr=* | --program-t=*)
688    program_transform_name=$ac_optarg ;;
689
690  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691  | -silent | --silent | --silen | --sile | --sil)
692    silent=yes ;;
693
694  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695    ac_prev=sbindir ;;
696  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697  | --sbi=* | --sb=*)
698    sbindir=$ac_optarg ;;
699
700  -sharedstatedir | --sharedstatedir | --sharedstatedi \
701  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702  | --sharedst | --shareds | --shared | --share | --shar \
703  | --sha | --sh)
704    ac_prev=sharedstatedir ;;
705  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708  | --sha=* | --sh=*)
709    sharedstatedir=$ac_optarg ;;
710
711  -site | --site | --sit)
712    ac_prev=site ;;
713  -site=* | --site=* | --sit=*)
714    site=$ac_optarg ;;
715
716  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717    ac_prev=srcdir ;;
718  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719    srcdir=$ac_optarg ;;
720
721  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722  | --syscon | --sysco | --sysc | --sys | --sy)
723    ac_prev=sysconfdir ;;
724  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726    sysconfdir=$ac_optarg ;;
727
728  -target | --target | --targe | --targ | --tar | --ta | --t)
729    ac_prev=target_alias ;;
730  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731    target_alias=$ac_optarg ;;
732
733  -v | -verbose | --verbose | --verbos | --verbo | --verb)
734    verbose=yes ;;
735
736  -version | --version | --versio | --versi | --vers | -V)
737    ac_init_version=: ;;
738
739  -with-* | --with-*)
740    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741    # Reject names that are not valid shell variable names.
742    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743      { echo "$as_me: error: invalid package name: $ac_package" >&2
744   { (exit 1); exit 1; }; }
745    ac_package=`echo $ac_package| sed 's/-/_/g'`
746    case $ac_option in
747      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748      *) ac_optarg=yes ;;
749    esac
750    eval "with_$ac_package='$ac_optarg'" ;;
751
752  -without-* | --without-*)
753    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754    # Reject names that are not valid shell variable names.
755    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756      { echo "$as_me: error: invalid package name: $ac_package" >&2
757   { (exit 1); exit 1; }; }
758    ac_package=`echo $ac_package | sed 's/-/_/g'`
759    eval "with_$ac_package=no" ;;
760
761  --x)
762    # Obsolete; use --with-x.
763    with_x=yes ;;
764
765  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766  | --x-incl | --x-inc | --x-in | --x-i)
767    ac_prev=x_includes ;;
768  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770    x_includes=$ac_optarg ;;
771
772  -x-libraries | --x-libraries | --x-librarie | --x-librari \
773  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774    ac_prev=x_libraries ;;
775  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777    x_libraries=$ac_optarg ;;
778
779  -*) { echo "$as_me: error: unrecognized option: $ac_option
780Try \`$0 --help' for more information." >&2
781   { (exit 1); exit 1; }; }
782    ;;
783
784  *=*)
785    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786    # Reject names that are not valid shell variable names.
787    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789   { (exit 1); exit 1; }; }
790    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791    eval "$ac_envvar='$ac_optarg'"
792    export $ac_envvar ;;
793
794  *)
795    # FIXME: should be removed in autoconf 3.0.
796    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800    ;;
801
802  esac
803done
804
805if test -n "$ac_prev"; then
806  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807  { echo "$as_me: error: missing argument to $ac_option" >&2
808   { (exit 1); exit 1; }; }
809fi
810
811# Be sure to have absolute paths.
812for ac_var in exec_prefix prefix
813do
814  eval ac_val=$`echo $ac_var`
815  case $ac_val in
816    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818   { (exit 1); exit 1; }; };;
819  esac
820done
821
822# Be sure to have absolute paths.
823for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824	      localstatedir libdir includedir oldincludedir infodir mandir
825do
826  eval ac_val=$`echo $ac_var`
827  case $ac_val in
828    [\\/$]* | ?:[\\/]* ) ;;
829    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830   { (exit 1); exit 1; }; };;
831  esac
832done
833
834# There might be people who depend on the old broken behavior: `$host'
835# used to hold the argument of --host etc.
836# FIXME: To remove some day.
837build=$build_alias
838host=$host_alias
839target=$target_alias
840
841# FIXME: To remove some day.
842if test "x$host_alias" != x; then
843  if test "x$build_alias" = x; then
844    cross_compiling=maybe
845    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846    If a cross compiler is detected then cross compile mode will be used." >&2
847  elif test "x$build_alias" != "x$host_alias"; then
848    cross_compiling=yes
849  fi
850fi
851
852ac_tool_prefix=
853test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855test "$silent" = yes && exec 6>/dev/null
856
857
858# Find the source files, if location was not specified.
859if test -z "$srcdir"; then
860  ac_srcdir_defaulted=yes
861  # Try the directory containing this script, then its parent.
862  ac_confdir=`(dirname "$0") 2>/dev/null ||
863$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864	 X"$0" : 'X\(//\)[^/]' \| \
865	 X"$0" : 'X\(//\)$' \| \
866	 X"$0" : 'X\(/\)' \| \
867	 .     : '\(.\)' 2>/dev/null ||
868echo X"$0" |
869    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871  	  /^X\(\/\/\)$/{ s//\1/; q; }
872  	  /^X\(\/\).*/{ s//\1/; q; }
873  	  s/.*/./; q'`
874  srcdir=$ac_confdir
875  if test ! -r $srcdir/$ac_unique_file; then
876    srcdir=..
877  fi
878else
879  ac_srcdir_defaulted=no
880fi
881if test ! -r $srcdir/$ac_unique_file; then
882  if test "$ac_srcdir_defaulted" = yes; then
883    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884   { (exit 1); exit 1; }; }
885  else
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887   { (exit 1); exit 1; }; }
888  fi
889fi
890(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892   { (exit 1); exit 1; }; }
893srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894ac_env_build_alias_set=${build_alias+set}
895ac_env_build_alias_value=$build_alias
896ac_cv_env_build_alias_set=${build_alias+set}
897ac_cv_env_build_alias_value=$build_alias
898ac_env_host_alias_set=${host_alias+set}
899ac_env_host_alias_value=$host_alias
900ac_cv_env_host_alias_set=${host_alias+set}
901ac_cv_env_host_alias_value=$host_alias
902ac_env_target_alias_set=${target_alias+set}
903ac_env_target_alias_value=$target_alias
904ac_cv_env_target_alias_set=${target_alias+set}
905ac_cv_env_target_alias_value=$target_alias
906ac_env_CC_set=${CC+set}
907ac_env_CC_value=$CC
908ac_cv_env_CC_set=${CC+set}
909ac_cv_env_CC_value=$CC
910ac_env_CFLAGS_set=${CFLAGS+set}
911ac_env_CFLAGS_value=$CFLAGS
912ac_cv_env_CFLAGS_set=${CFLAGS+set}
913ac_cv_env_CFLAGS_value=$CFLAGS
914ac_env_LDFLAGS_set=${LDFLAGS+set}
915ac_env_LDFLAGS_value=$LDFLAGS
916ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917ac_cv_env_LDFLAGS_value=$LDFLAGS
918ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919ac_env_CPPFLAGS_value=$CPPFLAGS
920ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922ac_env_CPP_set=${CPP+set}
923ac_env_CPP_value=$CPP
924ac_cv_env_CPP_set=${CPP+set}
925ac_cv_env_CPP_value=$CPP
926ac_env_CXX_set=${CXX+set}
927ac_env_CXX_value=$CXX
928ac_cv_env_CXX_set=${CXX+set}
929ac_cv_env_CXX_value=$CXX
930ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931ac_env_CXXFLAGS_value=$CXXFLAGS
932ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934ac_env_CXXCPP_set=${CXXCPP+set}
935ac_env_CXXCPP_value=$CXXCPP
936ac_cv_env_CXXCPP_set=${CXXCPP+set}
937ac_cv_env_CXXCPP_value=$CXXCPP
938ac_env_F77_set=${F77+set}
939ac_env_F77_value=$F77
940ac_cv_env_F77_set=${F77+set}
941ac_cv_env_F77_value=$F77
942ac_env_FFLAGS_set=${FFLAGS+set}
943ac_env_FFLAGS_value=$FFLAGS
944ac_cv_env_FFLAGS_set=${FFLAGS+set}
945ac_cv_env_FFLAGS_value=$FFLAGS
946
947#
948# Report the --help message.
949#
950if test "$ac_init_help" = "long"; then
951  # Omit some internal or obsolete options to make the list less imposing.
952  # This message is too long to be a string in the A/UX 3.1 sh.
953  cat <<_ACEOF
954\`configure' configures this package to adapt to many kinds of systems.
955
956Usage: $0 [OPTION]... [VAR=VALUE]...
957
958To assign environment variables (e.g., CC, CFLAGS...), specify them as
959VAR=VALUE.  See below for descriptions of some of the useful variables.
960
961Defaults for the options are specified in brackets.
962
963Configuration:
964  -h, --help              display this help and exit
965      --help=short        display options specific to this package
966      --help=recursive    display the short help of all the included packages
967  -V, --version           display version information and exit
968  -q, --quiet, --silent   do not print \`checking...' messages
969      --cache-file=FILE   cache test results in FILE [disabled]
970  -C, --config-cache      alias for \`--cache-file=config.cache'
971  -n, --no-create         do not create output files
972      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
973
974_ACEOF
975
976  cat <<_ACEOF
977Installation directories:
978  --prefix=PREFIX         install architecture-independent files in PREFIX
979			  [$ac_default_prefix]
980  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
981			  [PREFIX]
982
983By default, \`make install' will install all the files in
984\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
985an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986for instance \`--prefix=\$HOME'.
987
988For better control, use the options below.
989
990Fine tuning of the installation directories:
991  --bindir=DIR           user executables [EPREFIX/bin]
992  --sbindir=DIR          system admin executables [EPREFIX/sbin]
993  --libexecdir=DIR       program executables [EPREFIX/libexec]
994  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
995  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
996  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
997  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
998  --libdir=DIR           object code libraries [EPREFIX/lib]
999  --includedir=DIR       C header files [PREFIX/include]
1000  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1001  --infodir=DIR          info documentation [PREFIX/info]
1002  --mandir=DIR           man documentation [PREFIX/man]
1003_ACEOF
1004
1005  cat <<\_ACEOF
1006
1007System types:
1008  --build=BUILD     configure for building on BUILD [guessed]
1009  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1010_ACEOF
1011fi
1012
1013if test -n "$ac_init_help"; then
1014
1015  cat <<\_ACEOF
1016
1017Optional Features:
1018  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1019  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1020  --enable-debug          build for debugging (default=no)
1021  --enable-shared[=PKGS]
1022                          build shared libraries [default=yes]
1023  --enable-static[=PKGS]
1024                          build static libraries [default=yes]
1025  --enable-fast-install[=PKGS]
1026                          optimize for fast installation [default=yes]
1027  --disable-libtool-lock  avoid locking (might break parallel builds)
1028
1029Optional Packages:
1030  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1031  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1032  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1033  --with-pic              try to use only PIC/non-PIC objects [default=use
1034                          both]
1035  --with-tags[=TAGS]
1036                          include additional configurations [automatic]
1037  --with-ex[=DIR]         build with external OSSP ex library (default=no)
1038
1039Some influential environment variables:
1040  CC          C compiler command
1041  CFLAGS      C compiler flags
1042  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1043              nonstandard directory <lib dir>
1044  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045              headers in a nonstandard directory <include dir>
1046  CPP         C preprocessor
1047  CXX         C++ compiler command
1048  CXXFLAGS    C++ compiler flags
1049  CXXCPP      C++ preprocessor
1050  F77         Fortran 77 compiler command
1051  FFLAGS      Fortran 77 compiler flags
1052
1053Use these variables to override the choices made by `configure' or to help
1054it to find libraries and programs with nonstandard names/locations.
1055
1056_ACEOF
1057fi
1058
1059if test "$ac_init_help" = "recursive"; then
1060  # If there are subdirs, report their specific --help.
1061  ac_popdir=`pwd`
1062  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1063    test -d $ac_dir || continue
1064    ac_builddir=.
1065
1066if test "$ac_dir" != .; then
1067  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1068  # A "../" for each directory in $ac_dir_suffix.
1069  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1070else
1071  ac_dir_suffix= ac_top_builddir=
1072fi
1073
1074case $srcdir in
1075  .)  # No --srcdir option.  We are building in place.
1076    ac_srcdir=.
1077    if test -z "$ac_top_builddir"; then
1078       ac_top_srcdir=.
1079    else
1080       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1081    fi ;;
1082  [\\/]* | ?:[\\/]* )  # Absolute path.
1083    ac_srcdir=$srcdir$ac_dir_suffix;
1084    ac_top_srcdir=$srcdir ;;
1085  *) # Relative path.
1086    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1087    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1088esac
1089
1090# Do not use `cd foo && pwd` to compute absolute paths, because
1091# the directories may not exist.
1092case `pwd` in
1093.) ac_abs_builddir="$ac_dir";;
1094*)
1095  case "$ac_dir" in
1096  .) ac_abs_builddir=`pwd`;;
1097  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1098  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1099  esac;;
1100esac
1101case $ac_abs_builddir in
1102.) ac_abs_top_builddir=${ac_top_builddir}.;;
1103*)
1104  case ${ac_top_builddir}. in
1105  .) ac_abs_top_builddir=$ac_abs_builddir;;
1106  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1107  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1108  esac;;
1109esac
1110case $ac_abs_builddir in
1111.) ac_abs_srcdir=$ac_srcdir;;
1112*)
1113  case $ac_srcdir in
1114  .) ac_abs_srcdir=$ac_abs_builddir;;
1115  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1116  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1117  esac;;
1118esac
1119case $ac_abs_builddir in
1120.) ac_abs_top_srcdir=$ac_top_srcdir;;
1121*)
1122  case $ac_top_srcdir in
1123  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1124  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1125  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1126  esac;;
1127esac
1128
1129    cd $ac_dir
1130    # Check for guested configure; otherwise get Cygnus style configure.
1131    if test -f $ac_srcdir/configure.gnu; then
1132      echo
1133      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1134    elif test -f $ac_srcdir/configure; then
1135      echo
1136      $SHELL $ac_srcdir/configure  --help=recursive
1137    elif test -f $ac_srcdir/configure.ac ||
1138	   test -f $ac_srcdir/configure.in; then
1139      echo
1140      $ac_configure --help
1141    else
1142      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1143    fi
1144    cd $ac_popdir
1145  done
1146fi
1147
1148test -n "$ac_init_help" && exit 0
1149if $ac_init_version; then
1150  cat <<\_ACEOF
1151
1152Copyright (C) 2003 Free Software Foundation, Inc.
1153This configure script is free software; the Free Software Foundation
1154gives unlimited permission to copy, distribute and modify it.
1155_ACEOF
1156  exit 0
1157fi
1158exec 5>config.log
1159cat >&5 <<_ACEOF
1160This file contains any messages produced by compilers while
1161running configure, to aid debugging if configure makes a mistake.
1162
1163It was created by $as_me, which was
1164generated by GNU Autoconf 2.59 (OpenPKG-CURRENT).  Invocation command line was
1165
1166  $ $0 $@
1167
1168_ACEOF
1169{
1170cat <<_ASUNAME
1171## --------- ##
1172## Platform. ##
1173## --------- ##
1174
1175hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1176uname -m = `(uname -m) 2>/dev/null || echo unknown`
1177uname -r = `(uname -r) 2>/dev/null || echo unknown`
1178uname -s = `(uname -s) 2>/dev/null || echo unknown`
1179uname -v = `(uname -v) 2>/dev/null || echo unknown`
1180
1181/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1182/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1183
1184/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1185/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1186/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1187hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1188/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1189/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1190/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1191
1192_ASUNAME
1193
1194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1195for as_dir in $PATH
1196do
1197  IFS=$as_save_IFS
1198  test -z "$as_dir" && as_dir=.
1199  echo "PATH: $as_dir"
1200done
1201
1202} >&5
1203
1204cat >&5 <<_ACEOF
1205
1206
1207## ----------- ##
1208## Core tests. ##
1209## ----------- ##
1210
1211_ACEOF
1212
1213
1214# Keep a trace of the command line.
1215# Strip out --no-create and --no-recursion so they do not pile up.
1216# Strip out --silent because we don't want to record it for future runs.
1217# Also quote any args containing shell meta-characters.
1218# Make two passes to allow for proper duplicate-argument suppression.
1219ac_configure_args=
1220ac_configure_args0=
1221ac_configure_args1=
1222ac_sep=
1223ac_must_keep_next=false
1224for ac_pass in 1 2
1225do
1226  for ac_arg
1227  do
1228    case $ac_arg in
1229    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1230    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231    | -silent | --silent | --silen | --sile | --sil)
1232      continue ;;
1233    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1235    esac
1236    case $ac_pass in
1237    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1238    2)
1239      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1240      if test $ac_must_keep_next = true; then
1241	ac_must_keep_next=false # Got value, back to normal.
1242      else
1243	case $ac_arg in
1244	  *=* | --config-cache | -C | -disable-* | --disable-* \
1245	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1246	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1247	  | -with-* | --with-* | -without-* | --without-* | --x)
1248	    case "$ac_configure_args0 " in
1249	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1250	    esac
1251	    ;;
1252	  -* ) ac_must_keep_next=true ;;
1253	esac
1254      fi
1255      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1256      # Get rid of the leading space.
1257      ac_sep=" "
1258      ;;
1259    esac
1260  done
1261done
1262$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1263$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1264
1265# When interrupted or exit'd, cleanup temporary files, and complete
1266# config.log.  We remove comments because anyway the quotes in there
1267# would cause problems or look ugly.
1268# WARNING: Be sure not to use single quotes in there, as some shells,
1269# such as our DU 5.0 friend, will then `close' the trap.
1270trap 'exit_status=$?
1271  # Save into config.log some information that might help in debugging.
1272  {
1273    echo
1274
1275    cat <<\_ASBOX
1276## ---------------- ##
1277## Cache variables. ##
1278## ---------------- ##
1279_ASBOX
1280    echo
1281    # The following way of writing the cache mishandles newlines in values,
1282{
1283  (set) 2>&1 |
1284    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1285    *ac_space=\ *)
1286      sed -n \
1287	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1288	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1289      ;;
1290    *)
1291      sed -n \
1292	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1293      ;;
1294    esac;
1295}
1296    echo
1297
1298    cat <<\_ASBOX
1299## ----------------- ##
1300## Output variables. ##
1301## ----------------- ##
1302_ASBOX
1303    echo
1304    for ac_var in $ac_subst_vars
1305    do
1306      eval ac_val=$`echo $ac_var`
1307      echo "$ac_var='"'"'$ac_val'"'"'"
1308    done | sort
1309    echo
1310
1311    if test -n "$ac_subst_files"; then
1312      cat <<\_ASBOX
1313## ------------- ##
1314## Output files. ##
1315## ------------- ##
1316_ASBOX
1317      echo
1318      for ac_var in $ac_subst_files
1319      do
1320	eval ac_val=$`echo $ac_var`
1321	echo "$ac_var='"'"'$ac_val'"'"'"
1322      done | sort
1323      echo
1324    fi
1325
1326    if test -s confdefs.h; then
1327      cat <<\_ASBOX
1328## ----------- ##
1329## confdefs.h. ##
1330## ----------- ##
1331_ASBOX
1332      echo
1333      sed "/^$/d" confdefs.h | sort
1334      echo
1335    fi
1336    test "$ac_signal" != 0 &&
1337      echo "$as_me: caught signal $ac_signal"
1338    echo "$as_me: exit $exit_status"
1339  } >&5
1340  rm -f core *.core &&
1341  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1342    exit $exit_status
1343     ' 0
1344for ac_signal in 1 2 13 15; do
1345  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1346done
1347ac_signal=0
1348
1349# confdefs.h avoids OS command line length limits that DEFS can exceed.
1350rm -rf conftest* confdefs.h
1351# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1352echo >confdefs.h
1353
1354# Predefined preprocessor variables.
1355
1356cat >>confdefs.h <<_ACEOF
1357#define PACKAGE_NAME "$PACKAGE_NAME"
1358_ACEOF
1359
1360
1361cat >>confdefs.h <<_ACEOF
1362#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1363_ACEOF
1364
1365
1366cat >>confdefs.h <<_ACEOF
1367#define PACKAGE_VERSION "$PACKAGE_VERSION"
1368_ACEOF
1369
1370
1371cat >>confdefs.h <<_ACEOF
1372#define PACKAGE_STRING "$PACKAGE_STRING"
1373_ACEOF
1374
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1378_ACEOF
1379
1380
1381# Let the site file select an alternate cache file if it wants to.
1382# Prefer explicitly selected file to automatically selected ones.
1383if test -z "$CONFIG_SITE"; then
1384  if test "x$prefix" != xNONE; then
1385    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1386  else
1387    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1388  fi
1389fi
1390for ac_site_file in $CONFIG_SITE; do
1391  if test -r "$ac_site_file"; then
1392    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1393echo "$as_me: loading site script $ac_site_file" >&6;}
1394    sed 's/^/| /' "$ac_site_file" >&5
1395    . "$ac_site_file"
1396  fi
1397done
1398
1399if test -r "$cache_file"; then
1400  # Some versions of bash will fail to source /dev/null (special
1401  # files actually), so we avoid doing that.
1402  if test -f "$cache_file"; then
1403    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1404echo "$as_me: loading cache $cache_file" >&6;}
1405    case $cache_file in
1406      [\\/]* | ?:[\\/]* ) . $cache_file;;
1407      *)                      . ./$cache_file;;
1408    esac
1409  fi
1410else
1411  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1412echo "$as_me: creating cache $cache_file" >&6;}
1413  >$cache_file
1414fi
1415
1416# Check that the precious variables saved in the cache have kept the same
1417# value.
1418ac_cache_corrupted=false
1419for ac_var in `(set) 2>&1 |
1420	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1421  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1422  eval ac_new_set=\$ac_env_${ac_var}_set
1423  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1424  eval ac_new_val="\$ac_env_${ac_var}_value"
1425  case $ac_old_set,$ac_new_set in
1426    set,)
1427      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1428echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1429      ac_cache_corrupted=: ;;
1430    ,set)
1431      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1432echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1433      ac_cache_corrupted=: ;;
1434    ,);;
1435    *)
1436      if test "x$ac_old_val" != "x$ac_new_val"; then
1437	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1438echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1439	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1440echo "$as_me:   former value:  $ac_old_val" >&2;}
1441	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1442echo "$as_me:   current value: $ac_new_val" >&2;}
1443	ac_cache_corrupted=:
1444      fi;;
1445  esac
1446  # Pass precious variables to config.status.
1447  if test "$ac_new_set" = set; then
1448    case $ac_new_val in
1449    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1450      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1451    *) ac_arg=$ac_var=$ac_new_val ;;
1452    esac
1453    case " $ac_configure_args " in
1454      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1455      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1456    esac
1457  fi
1458done
1459if $ac_cache_corrupted; then
1460  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1461echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1462  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1463echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1464   { (exit 1); exit 1; }; }
1465fi
1466
1467ac_ext=c
1468ac_cpp='$CPP $CPPFLAGS'
1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491SA_VERSION_STR=`./shtool version -l txt -d long VERSION`
1492SA_VERSION_RAW=`./shtool version -l txt -d short VERSION`
1493./shtool echo -e "Configuring %BOSSP sa%b (Socket Abstraction), version %B${SA_VERSION_STR}%b"
1494
1495
1496
1497echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1498echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1499set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1500if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1501  echo $ECHO_N "(cached) $ECHO_C" >&6
1502else
1503  cat >conftest.make <<\_ACEOF
1504all:
1505	@echo 'ac_maketemp="$(MAKE)"'
1506_ACEOF
1507# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1508eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1509if test -n "$ac_maketemp"; then
1510  eval ac_cv_prog_make_${ac_make}_set=yes
1511else
1512  eval ac_cv_prog_make_${ac_make}_set=no
1513fi
1514rm -f conftest.make
1515fi
1516if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1517  echo "$as_me:$LINENO: result: yes" >&5
1518echo "${ECHO_T}yes" >&6
1519  SET_MAKE=
1520else
1521  echo "$as_me:$LINENO: result: no" >&5
1522echo "${ECHO_T}no" >&6
1523  SET_MAKE="MAKE=${MAKE-make}"
1524fi
1525
1526ac_ext=c
1527ac_cpp='$CPP $CPPFLAGS'
1528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1530ac_compiler_gnu=$ac_cv_c_compiler_gnu
1531if test -n "$ac_tool_prefix"; then
1532  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1533set dummy ${ac_tool_prefix}gcc; ac_word=$2
1534echo "$as_me:$LINENO: checking for $ac_word" >&5
1535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536if test "${ac_cv_prog_CC+set}" = set; then
1537  echo $ECHO_N "(cached) $ECHO_C" >&6
1538else
1539  if test -n "$CC"; then
1540  ac_cv_prog_CC="$CC" # Let the user override the test.
1541else
1542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543for as_dir in $PATH
1544do
1545  IFS=$as_save_IFS
1546  test -z "$as_dir" && as_dir=.
1547  for ac_exec_ext in '' $ac_executable_extensions; do
1548  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1549    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1550    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551    break 2
1552  fi
1553done
1554done
1555
1556fi
1557fi
1558CC=$ac_cv_prog_CC
1559if test -n "$CC"; then
1560  echo "$as_me:$LINENO: result: $CC" >&5
1561echo "${ECHO_T}$CC" >&6
1562else
1563  echo "$as_me:$LINENO: result: no" >&5
1564echo "${ECHO_T}no" >&6
1565fi
1566
1567fi
1568if test -z "$ac_cv_prog_CC"; then
1569  ac_ct_CC=$CC
1570  # Extract the first word of "gcc", so it can be a program name with args.
1571set dummy gcc; ac_word=$2
1572echo "$as_me:$LINENO: checking for $ac_word" >&5
1573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1575  echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577  if test -n "$ac_ct_CC"; then
1578  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1579else
1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581for as_dir in $PATH
1582do
1583  IFS=$as_save_IFS
1584  test -z "$as_dir" && as_dir=.
1585  for ac_exec_ext in '' $ac_executable_extensions; do
1586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587    ac_cv_prog_ac_ct_CC="gcc"
1588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589    break 2
1590  fi
1591done
1592done
1593
1594fi
1595fi
1596ac_ct_CC=$ac_cv_prog_ac_ct_CC
1597if test -n "$ac_ct_CC"; then
1598  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1599echo "${ECHO_T}$ac_ct_CC" >&6
1600else
1601  echo "$as_me:$LINENO: result: no" >&5
1602echo "${ECHO_T}no" >&6
1603fi
1604
1605  CC=$ac_ct_CC
1606else
1607  CC="$ac_cv_prog_CC"
1608fi
1609
1610if test -z "$CC"; then
1611  if test -n "$ac_tool_prefix"; then
1612  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1613set dummy ${ac_tool_prefix}cc; ac_word=$2
1614echo "$as_me:$LINENO: checking for $ac_word" >&5
1615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1616if test "${ac_cv_prog_CC+set}" = set; then
1617  echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619  if test -n "$CC"; then
1620  ac_cv_prog_CC="$CC" # Let the user override the test.
1621else
1622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623for as_dir in $PATH
1624do
1625  IFS=$as_save_IFS
1626  test -z "$as_dir" && as_dir=.
1627  for ac_exec_ext in '' $ac_executable_extensions; do
1628  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1629    ac_cv_prog_CC="${ac_tool_prefix}cc"
1630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631    break 2
1632  fi
1633done
1634done
1635
1636fi
1637fi
1638CC=$ac_cv_prog_CC
1639if test -n "$CC"; then
1640  echo "$as_me:$LINENO: result: $CC" >&5
1641echo "${ECHO_T}$CC" >&6
1642else
1643  echo "$as_me:$LINENO: result: no" >&5
1644echo "${ECHO_T}no" >&6
1645fi
1646
1647fi
1648if test -z "$ac_cv_prog_CC"; then
1649  ac_ct_CC=$CC
1650  # Extract the first word of "cc", so it can be a program name with args.
1651set dummy cc; ac_word=$2
1652echo "$as_me:$LINENO: checking for $ac_word" >&5
1653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1655  echo $ECHO_N "(cached) $ECHO_C" >&6
1656else
1657  if test -n "$ac_ct_CC"; then
1658  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659else
1660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661for as_dir in $PATH
1662do
1663  IFS=$as_save_IFS
1664  test -z "$as_dir" && as_dir=.
1665  for ac_exec_ext in '' $ac_executable_extensions; do
1666  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1667    ac_cv_prog_ac_ct_CC="cc"
1668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669    break 2
1670  fi
1671done
1672done
1673
1674fi
1675fi
1676ac_ct_CC=$ac_cv_prog_ac_ct_CC
1677if test -n "$ac_ct_CC"; then
1678  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1679echo "${ECHO_T}$ac_ct_CC" >&6
1680else
1681  echo "$as_me:$LINENO: result: no" >&5
1682echo "${ECHO_T}no" >&6
1683fi
1684
1685  CC=$ac_ct_CC
1686else
1687  CC="$ac_cv_prog_CC"
1688fi
1689
1690fi
1691if test -z "$CC"; then
1692  # Extract the first word of "cc", so it can be a program name with args.
1693set dummy cc; ac_word=$2
1694echo "$as_me:$LINENO: checking for $ac_word" >&5
1695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696if test "${ac_cv_prog_CC+set}" = set; then
1697  echo $ECHO_N "(cached) $ECHO_C" >&6
1698else
1699  if test -n "$CC"; then
1700  ac_cv_prog_CC="$CC" # Let the user override the test.
1701else
1702  ac_prog_rejected=no
1703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704for as_dir in $PATH
1705do
1706  IFS=$as_save_IFS
1707  test -z "$as_dir" && as_dir=.
1708  for ac_exec_ext in '' $ac_executable_extensions; do
1709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1710    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1711       ac_prog_rejected=yes
1712       continue
1713     fi
1714    ac_cv_prog_CC="cc"
1715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716    break 2
1717  fi
1718done
1719done
1720
1721if test $ac_prog_rejected = yes; then
1722  # We found a bogon in the path, so make sure we never use it.
1723  set dummy $ac_cv_prog_CC
1724  shift
1725  if test $# != 0; then
1726    # We chose a different compiler from the bogus one.
1727    # However, it has the same basename, so the bogon will be chosen
1728    # first if we set CC to just the basename; use the full file name.
1729    shift
1730    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1731  fi
1732fi
1733fi
1734fi
1735CC=$ac_cv_prog_CC
1736if test -n "$CC"; then
1737  echo "$as_me:$LINENO: result: $CC" >&5
1738echo "${ECHO_T}$CC" >&6
1739else
1740  echo "$as_me:$LINENO: result: no" >&5
1741echo "${ECHO_T}no" >&6
1742fi
1743
1744fi
1745if test -z "$CC"; then
1746  if test -n "$ac_tool_prefix"; then
1747  for ac_prog in cl
1748  do
1749    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1751echo "$as_me:$LINENO: checking for $ac_word" >&5
1752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1753if test "${ac_cv_prog_CC+set}" = set; then
1754  echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756  if test -n "$CC"; then
1757  ac_cv_prog_CC="$CC" # Let the user override the test.
1758else
1759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760for as_dir in $PATH
1761do
1762  IFS=$as_save_IFS
1763  test -z "$as_dir" && as_dir=.
1764  for ac_exec_ext in '' $ac_executable_extensions; do
1765  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1766    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768    break 2
1769  fi
1770done
1771done
1772
1773fi
1774fi
1775CC=$ac_cv_prog_CC
1776if test -n "$CC"; then
1777  echo "$as_me:$LINENO: result: $CC" >&5
1778echo "${ECHO_T}$CC" >&6
1779else
1780  echo "$as_me:$LINENO: result: no" >&5
1781echo "${ECHO_T}no" >&6
1782fi
1783
1784    test -n "$CC" && break
1785  done
1786fi
1787if test -z "$CC"; then
1788  ac_ct_CC=$CC
1789  for ac_prog in cl
1790do
1791  # Extract the first word of "$ac_prog", so it can be a program name with args.
1792set dummy $ac_prog; ac_word=$2
1793echo "$as_me:$LINENO: checking for $ac_word" >&5
1794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1796  echo $ECHO_N "(cached) $ECHO_C" >&6
1797else
1798  if test -n "$ac_ct_CC"; then
1799  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1800else
1801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802for as_dir in $PATH
1803do
1804  IFS=$as_save_IFS
1805  test -z "$as_dir" && as_dir=.
1806  for ac_exec_ext in '' $ac_executable_extensions; do
1807  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808    ac_cv_prog_ac_ct_CC="$ac_prog"
1809    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810    break 2
1811  fi
1812done
1813done
1814
1815fi
1816fi
1817ac_ct_CC=$ac_cv_prog_ac_ct_CC
1818if test -n "$ac_ct_CC"; then
1819  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1820echo "${ECHO_T}$ac_ct_CC" >&6
1821else
1822  echo "$as_me:$LINENO: result: no" >&5
1823echo "${ECHO_T}no" >&6
1824fi
1825
1826  test -n "$ac_ct_CC" && break
1827done
1828
1829  CC=$ac_ct_CC
1830fi
1831
1832fi
1833
1834
1835test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1836See \`config.log' for more details." >&5
1837echo "$as_me: error: no acceptable C compiler found in \$PATH
1838See \`config.log' for more details." >&2;}
1839   { (exit 1); exit 1; }; }
1840
1841# Provide some information about the compiler.
1842echo "$as_me:$LINENO:" \
1843     "checking for C compiler version" >&5
1844ac_compiler=`set X $ac_compile; echo $2`
1845{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1846  (eval $ac_compiler --version </dev/null >&5) 2>&5
1847  ac_status=$?
1848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849  (exit $ac_status); }
1850{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1851  (eval $ac_compiler -v </dev/null >&5) 2>&5
1852  ac_status=$?
1853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854  (exit $ac_status); }
1855{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1856  (eval $ac_compiler -V </dev/null >&5) 2>&5
1857  ac_status=$?
1858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859  (exit $ac_status); }
1860
1861cat >conftest.$ac_ext <<_ACEOF
1862/* confdefs.h.  */
1863_ACEOF
1864cat confdefs.h >>conftest.$ac_ext
1865cat >>conftest.$ac_ext <<_ACEOF
1866/* end confdefs.h.  */
1867
1868int
1869main ()
1870{
1871
1872  ;
1873  return 0;
1874}
1875_ACEOF
1876ac_clean_files_save=$ac_clean_files
1877ac_clean_files="$ac_clean_files a.out a.exe b.out"
1878# Try to create an executable without -o first, disregard a.out.
1879# It will help us diagnose broken compilers, and finding out an intuition
1880# of exeext.
1881echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1882echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1883ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1884if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1885  (eval $ac_link_default) 2>&5
1886  ac_status=$?
1887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888  (exit $ac_status); }; then
1889  # Find the output, starting from the most likely.  This scheme is
1890# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1891# resort.
1892
1893# Be careful to initialize this variable, since it used to be cached.
1894# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1895ac_cv_exeext=
1896# b.out is created by i960 compilers.
1897for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1898do
1899  test -f "$ac_file" || continue
1900  case $ac_file in
1901    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1902	;;
1903    conftest.$ac_ext )
1904	# This is the source file.
1905	;;
1906    [ab].out )
1907	# We found the default executable, but exeext='' is most
1908	# certainly right.
1909	break;;
1910    *.* )
1911	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1912	# FIXME: I believe we export ac_cv_exeext for Libtool,
1913	# but it would be cool to find out if it's true.  Does anybody
1914	# maintain Libtool? --akim.
1915	export ac_cv_exeext
1916	break;;
1917    * )
1918	break;;
1919  esac
1920done
1921else
1922  echo "$as_me: failed program was:" >&5
1923sed 's/^/| /' conftest.$ac_ext >&5
1924
1925{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1926See \`config.log' for more details." >&5
1927echo "$as_me: error: C compiler cannot create executables
1928See \`config.log' for more details." >&2;}
1929   { (exit 77); exit 77; }; }
1930fi
1931
1932ac_exeext=$ac_cv_exeext
1933echo "$as_me:$LINENO: result: $ac_file" >&5
1934echo "${ECHO_T}$ac_file" >&6
1935
1936# Check the compiler produces executables we can run.  If not, either
1937# the compiler is broken, or we cross compile.
1938echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1939echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1940# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1941# If not cross compiling, check that we can run a simple program.
1942if test "$cross_compiling" != yes; then
1943  if { ac_try='./$ac_file'
1944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945  (eval $ac_try) 2>&5
1946  ac_status=$?
1947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948  (exit $ac_status); }; }; then
1949    cross_compiling=no
1950  else
1951    if test "$cross_compiling" = maybe; then
1952	cross_compiling=yes
1953    else
1954	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1955If you meant to cross compile, use \`--host'.
1956See \`config.log' for more details." >&5
1957echo "$as_me: error: cannot run C compiled programs.
1958If you meant to cross compile, use \`--host'.
1959See \`config.log' for more details." >&2;}
1960   { (exit 1); exit 1; }; }
1961    fi
1962  fi
1963fi
1964echo "$as_me:$LINENO: result: yes" >&5
1965echo "${ECHO_T}yes" >&6
1966
1967rm -f a.out a.exe conftest$ac_cv_exeext b.out
1968ac_clean_files=$ac_clean_files_save
1969# Check the compiler produces executables we can run.  If not, either
1970# the compiler is broken, or we cross compile.
1971echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1972echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1973echo "$as_me:$LINENO: result: $cross_compiling" >&5
1974echo "${ECHO_T}$cross_compiling" >&6
1975
1976echo "$as_me:$LINENO: checking for suffix of executables" >&5
1977echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1979  (eval $ac_link) 2>&5
1980  ac_status=$?
1981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982  (exit $ac_status); }; then
1983  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1984# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1985# work properly (i.e., refer to `conftest.exe'), while it won't with
1986# `rm'.
1987for ac_file in conftest.exe conftest conftest.*; do
1988  test -f "$ac_file" || continue
1989  case $ac_file in
1990    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1991    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1992	  export ac_cv_exeext
1993	  break;;
1994    * ) break;;
1995  esac
1996done
1997else
1998  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1999See \`config.log' for more details." >&5
2000echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2001See \`config.log' for more details." >&2;}
2002   { (exit 1); exit 1; }; }
2003fi
2004
2005rm -f conftest$ac_cv_exeext
2006echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2007echo "${ECHO_T}$ac_cv_exeext" >&6
2008
2009rm -f conftest.$ac_ext
2010EXEEXT=$ac_cv_exeext
2011ac_exeext=$EXEEXT
2012echo "$as_me:$LINENO: checking for suffix of object files" >&5
2013echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2014if test "${ac_cv_objext+set}" = set; then
2015  echo $ECHO_N "(cached) $ECHO_C" >&6
2016else
2017  cat >conftest.$ac_ext <<_ACEOF
2018/* confdefs.h.  */
2019_ACEOF
2020cat confdefs.h >>conftest.$ac_ext
2021cat >>conftest.$ac_ext <<_ACEOF
2022/* end confdefs.h.  */
2023
2024int
2025main ()
2026{
2027
2028  ;
2029  return 0;
2030}
2031_ACEOF
2032rm -f conftest.o conftest.obj
2033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034  (eval $ac_compile) 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); }; then
2038  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2039  case $ac_file in
2040    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2041    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2042       break;;
2043  esac
2044done
2045else
2046  echo "$as_me: failed program was:" >&5
2047sed 's/^/| /' conftest.$ac_ext >&5
2048
2049{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2050See \`config.log' for more details." >&5
2051echo "$as_me: error: cannot compute suffix of object files: cannot compile
2052See \`config.log' for more details." >&2;}
2053   { (exit 1); exit 1; }; }
2054fi
2055
2056rm -f conftest.$ac_cv_objext conftest.$ac_ext
2057fi
2058echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2059echo "${ECHO_T}$ac_cv_objext" >&6
2060OBJEXT=$ac_cv_objext
2061ac_objext=$OBJEXT
2062echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2063echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2064if test "${ac_cv_c_compiler_gnu+set}" = set; then
2065  echo $ECHO_N "(cached) $ECHO_C" >&6
2066else
2067  cat >conftest.$ac_ext <<_ACEOF
2068/* confdefs.h.  */
2069_ACEOF
2070cat confdefs.h >>conftest.$ac_ext
2071cat >>conftest.$ac_ext <<_ACEOF
2072/* end confdefs.h.  */
2073
2074int
2075main ()
2076{
2077#ifndef __GNUC__
2078       choke me
2079#endif
2080
2081  ;
2082  return 0;
2083}
2084_ACEOF
2085rm -f conftest.$ac_objext
2086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2087  (eval $ac_compile) 2>conftest.er1
2088  ac_status=$?
2089  grep -v '^ *+' conftest.er1 >conftest.err
2090  rm -f conftest.er1
2091  cat conftest.err >&5
2092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093  (exit $ac_status); } &&
2094	 { ac_try='test -z "$ac_c_werror_flag"
2095			 || test ! -s conftest.err'
2096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097  (eval $ac_try) 2>&5
2098  ac_status=$?
2099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100  (exit $ac_status); }; } &&
2101	 { ac_try='test -s conftest.$ac_objext'
2102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103  (eval $ac_try) 2>&5
2104  ac_status=$?
2105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106  (exit $ac_status); }; }; then
2107  ac_compiler_gnu=yes
2108else
2109  echo "$as_me: failed program was:" >&5
2110sed 's/^/| /' conftest.$ac_ext >&5
2111
2112ac_compiler_gnu=no
2113fi
2114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2115ac_cv_c_compiler_gnu=$ac_compiler_gnu
2116
2117fi
2118echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2119echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2120GCC=`test $ac_compiler_gnu = yes && echo yes`
2121ac_test_CFLAGS=${CFLAGS+set}
2122ac_save_CFLAGS=$CFLAGS
2123CFLAGS="-g"
2124echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2125echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2126if test "${ac_cv_prog_cc_g+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h.  */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h.  */
2135
2136int
2137main ()
2138{
2139
2140  ;
2141  return 0;
2142}
2143_ACEOF
2144rm -f conftest.$ac_objext
2145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2146  (eval $ac_compile) 2>conftest.er1
2147  ac_status=$?
2148  grep -v '^ *+' conftest.er1 >conftest.err
2149  rm -f conftest.er1
2150  cat conftest.err >&5
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); } &&
2153	 { ac_try='test -z "$ac_c_werror_flag"
2154			 || test ! -s conftest.err'
2155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2156  (eval $ac_try) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }; } &&
2160	 { ac_try='test -s conftest.$ac_objext'
2161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162  (eval $ac_try) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; }; then
2166  ac_cv_prog_cc_g=yes
2167else
2168  echo "$as_me: failed program was:" >&5
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171ac_cv_prog_cc_g=no
2172fi
2173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174fi
2175echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2176echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2177if test "$ac_test_CFLAGS" = set; then
2178  CFLAGS=$ac_save_CFLAGS
2179elif test $ac_cv_prog_cc_g = yes; then
2180  if test "$GCC" = yes; then
2181    CFLAGS="-g -O2"
2182  else
2183    CFLAGS="-g"
2184  fi
2185else
2186  if test "$GCC" = yes; then
2187    CFLAGS="-O2"
2188  else
2189    CFLAGS=
2190  fi
2191fi
2192echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2193echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2194if test "${ac_cv_prog_cc_stdc+set}" = set; then
2195  echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197  ac_cv_prog_cc_stdc=no
2198ac_save_CC=$CC
2199cat >conftest.$ac_ext <<_ACEOF
2200/* confdefs.h.  */
2201_ACEOF
2202cat confdefs.h >>conftest.$ac_ext
2203cat >>conftest.$ac_ext <<_ACEOF
2204/* end confdefs.h.  */
2205#include <stdarg.h>
2206#include <stdio.h>
2207#include <sys/types.h>
2208#include <sys/stat.h>
2209/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2210struct buf { int x; };
2211FILE * (*rcsopen) (struct buf *, struct stat *, int);
2212static char *e (p, i)
2213     char **p;
2214     int i;
2215{
2216  return p[i];
2217}
2218static char *f (char * (*g) (char **, int), char **p, ...)
2219{
2220  char *s;
2221  va_list v;
2222  va_start (v,p);
2223  s = g (p, va_arg (v,int));
2224  va_end (v);
2225  return s;
2226}
2227
2228/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2229   function prototypes and stuff, but not '\xHH' hex character constants.
2230   These don't provoke an error unfortunately, instead are silently treated
2231   as 'x'.  The following induces an error, until -std1 is added to get
2232   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2233   array size at least.  It's necessary to write '\x00'==0 to get something
2234   that's true only with -std1.  */
2235int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2236
2237int test (int i, double x);
2238struct s1 {int (*f) (int a);};
2239struct s2 {int (*f) (double a);};
2240int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2241int argc;
2242char **argv;
2243int
2244main ()
2245{
2246return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2247  ;
2248  return 0;
2249}
2250_ACEOF
2251# Don't try gcc -ansi; that turns off useful extensions and
2252# breaks some systems' header files.
2253# AIX			-qlanglvl=ansi
2254# Ultrix and OSF/1	-std1
2255# HP-UX 10.20 and later	-Ae
2256# HP-UX older versions	-Aa -D_HPUX_SOURCE
2257# SVR4			-Xc -D__EXTENSIONS__
2258for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2259do
2260  CC="$ac_save_CC $ac_arg"
2261  rm -f conftest.$ac_objext
2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263  (eval $ac_compile) 2>conftest.er1
2264  ac_status=$?
2265  grep -v '^ *+' conftest.er1 >conftest.err
2266  rm -f conftest.er1
2267  cat conftest.err >&5
2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269  (exit $ac_status); } &&
2270	 { ac_try='test -z "$ac_c_werror_flag"
2271			 || test ! -s conftest.err'
2272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273  (eval $ac_try) 2>&5
2274  ac_status=$?
2275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276  (exit $ac_status); }; } &&
2277	 { ac_try='test -s conftest.$ac_objext'
2278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279  (eval $ac_try) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); }; }; then
2283  ac_cv_prog_cc_stdc=$ac_arg
2284break
2285else
2286  echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289fi
2290rm -f conftest.err conftest.$ac_objext
2291done
2292rm -f conftest.$ac_ext conftest.$ac_objext
2293CC=$ac_save_CC
2294
2295fi
2296
2297case "x$ac_cv_prog_cc_stdc" in
2298  x|xno)
2299    echo "$as_me:$LINENO: result: none needed" >&5
2300echo "${ECHO_T}none needed" >&6 ;;
2301  *)
2302    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2303echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2304    CC="$CC $ac_cv_prog_cc_stdc" ;;
2305esac
2306
2307# Some people use a C++ compiler to compile C.  Since we use `exit',
2308# in C++ we need to declare it.  In case someone uses the same compiler
2309# for both compiling C and C++ we need to have the C++ compiler decide
2310# the declaration of exit, since it's the most demanding environment.
2311cat >conftest.$ac_ext <<_ACEOF
2312#ifndef __cplusplus
2313  choke me
2314#endif
2315_ACEOF
2316rm -f conftest.$ac_objext
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318  (eval $ac_compile) 2>conftest.er1
2319  ac_status=$?
2320  grep -v '^ *+' conftest.er1 >conftest.err
2321  rm -f conftest.er1
2322  cat conftest.err >&5
2323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324  (exit $ac_status); } &&
2325	 { ac_try='test -z "$ac_c_werror_flag"
2326			 || test ! -s conftest.err'
2327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328  (eval $ac_try) 2>&5
2329  ac_status=$?
2330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331  (exit $ac_status); }; } &&
2332	 { ac_try='test -s conftest.$ac_objext'
2333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334  (eval $ac_try) 2>&5
2335  ac_status=$?
2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); }; }; then
2338  for ac_declaration in \
2339   '' \
2340   'extern "C" void std::exit (int) throw (); using std::exit;' \
2341   'extern "C" void std::exit (int); using std::exit;' \
2342   'extern "C" void exit (int) throw ();' \
2343   'extern "C" void exit (int);' \
2344   'void exit (int);'
2345do
2346  cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352$ac_declaration
2353#include <stdlib.h>
2354int
2355main ()
2356{
2357exit (42);
2358  ;
2359  return 0;
2360}
2361_ACEOF
2362rm -f conftest.$ac_objext
2363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364  (eval $ac_compile) 2>conftest.er1
2365  ac_status=$?
2366  grep -v '^ *+' conftest.er1 >conftest.err
2367  rm -f conftest.er1
2368  cat conftest.err >&5
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); } &&
2371	 { ac_try='test -z "$ac_c_werror_flag"
2372			 || test ! -s conftest.err'
2373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2374  (eval $ac_try) 2>&5
2375  ac_status=$?
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); }; } &&
2378	 { ac_try='test -s conftest.$ac_objext'
2379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380  (eval $ac_try) 2>&5
2381  ac_status=$?
2382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383  (exit $ac_status); }; }; then
2384  :
2385else
2386  echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389continue
2390fi
2391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392  cat >conftest.$ac_ext <<_ACEOF
2393/* confdefs.h.  */
2394_ACEOF
2395cat confdefs.h >>conftest.$ac_ext
2396cat >>conftest.$ac_ext <<_ACEOF
2397/* end confdefs.h.  */
2398$ac_declaration
2399int
2400main ()
2401{
2402exit (42);
2403  ;
2404  return 0;
2405}
2406_ACEOF
2407rm -f conftest.$ac_objext
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409  (eval $ac_compile) 2>conftest.er1
2410  ac_status=$?
2411  grep -v '^ *+' conftest.er1 >conftest.err
2412  rm -f conftest.er1
2413  cat conftest.err >&5
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); } &&
2416	 { ac_try='test -z "$ac_c_werror_flag"
2417			 || test ! -s conftest.err'
2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419  (eval $ac_try) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); }; } &&
2423	 { ac_try='test -s conftest.$ac_objext'
2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425  (eval $ac_try) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; }; then
2429  break
2430else
2431  echo "$as_me: failed program was:" >&5
2432sed 's/^/| /' conftest.$ac_ext >&5
2433
2434fi
2435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436done
2437rm -f conftest*
2438if test -n "$ac_declaration"; then
2439  echo '#ifdef __cplusplus' >>confdefs.h
2440  echo $ac_declaration      >>confdefs.h
2441  echo '#endif'             >>confdefs.h
2442fi
2443
2444else
2445  echo "$as_me: failed program was:" >&5
2446sed 's/^/| /' conftest.$ac_ext >&5
2447
2448fi
2449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450ac_ext=c
2451ac_cpp='$CPP $CPPFLAGS'
2452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454ac_compiler_gnu=$ac_cv_c_compiler_gnu
2455
2456
2457# Check whether --enable-debug or --disable-debug was given.
2458if test "${enable_debug+set}" = set; then
2459  enableval="$enable_debug"
2460  if test ".$ac_cv_c_compiler_gnu" = ".yes"; then
2461    case "$CFLAGS" in
2462        *-O* ) ;;
2463           * ) CFLAGS="$CFLAGS -O2" ;;
2464    esac
2465    case "$CFLAGS" in
2466        *-g* ) ;;
2467           * ) CFLAGS="$CFLAGS -g" ;;
2468    esac
2469    case "$CFLAGS" in
2470        *-pipe* ) ;;
2471              * ) echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5
2472echo $ECHO_N "checking whether compiler option(s) -pipe work... $ECHO_C" >&6
2473if test "${ac_cv_compiler_option_pipe+set}" = set; then
2474  echo $ECHO_N "(cached) $ECHO_C" >&6
2475else
2476
2477SAVE_CFLAGS="$CFLAGS"
2478CFLAGS="$CFLAGS -pipe"
2479cat >conftest.$ac_ext <<_ACEOF
2480/* confdefs.h.  */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h.  */
2485
2486int
2487main ()
2488{
2489
2490  ;
2491  return 0;
2492}
2493_ACEOF
2494rm -f conftest.$ac_objext
2495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496  (eval $ac_compile) 2>conftest.er1
2497  ac_status=$?
2498  grep -v '^ *+' conftest.er1 >conftest.err
2499  rm -f conftest.er1
2500  cat conftest.err >&5
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); } &&
2503	 { ac_try='test -z "$ac_c_werror_flag"
2504			 || test ! -s conftest.err'
2505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506  (eval $ac_try) 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; } &&
2510	 { ac_try='test -s conftest.$ac_objext'
2511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512  (eval $ac_try) 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; }; then
2516  ac_cv_compiler_option_pipe=yes
2517else
2518  echo "$as_me: failed program was:" >&5
2519sed 's/^/| /' conftest.$ac_ext >&5
2520
2521ac_cv_compiler_option_pipe=no
2522fi
2523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2524CFLAGS="$SAVE_CFLAGS"
2525
2526fi
2527if test ".$ac_cv_compiler_option_pipe" = .yes; then
2528    CFLAGS="$CFLAGS -pipe"
2529else
2530    :
2531fi
2532echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5
2533echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6
2534 ;;
2535    esac
2536    echo "$as_me:$LINENO: checking whether compiler option(s) -DDEBUG work" >&5
2537echo $ECHO_N "checking whether compiler option(s) -DDEBUG work... $ECHO_C" >&6
2538if test "${ac_cv_compiler_option_defdbg+set}" = set; then
2539  echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541
2542SAVE_CFLAGS="$CFLAGS"
2543CFLAGS="$CFLAGS -DDEBUG"
2544cat >conftest.$ac_ext <<_ACEOF
2545/* confdefs.h.  */
2546_ACEOF
2547cat confdefs.h >>conftest.$ac_ext
2548cat >>conftest.$ac_ext <<_ACEOF
2549/* end confdefs.h.  */
2550
2551int
2552main ()
2553{
2554
2555  ;
2556  return 0;
2557}
2558_ACEOF
2559rm -f conftest.$ac_objext
2560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2561  (eval $ac_compile) 2>conftest.er1
2562  ac_status=$?
2563  grep -v '^ *+' conftest.er1 >conftest.err
2564  rm -f conftest.er1
2565  cat conftest.err >&5
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); } &&
2568	 { ac_try='test -z "$ac_c_werror_flag"
2569			 || test ! -s conftest.err'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; } &&
2575	 { ac_try='test -s conftest.$ac_objext'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; }; then
2581  ac_cv_compiler_option_defdbg=yes
2582else
2583  echo "$as_me: failed program was:" >&5
2584sed 's/^/| /' conftest.$ac_ext >&5
2585
2586ac_cv_compiler_option_defdbg=no
2587fi
2588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589CFLAGS="$SAVE_CFLAGS"
2590
2591fi
2592if test ".$ac_cv_compiler_option_defdbg" = .yes; then
2593    CFLAGS="$CFLAGS -DDEBUG"
2594else
2595    :
2596fi
2597echo "$as_me:$LINENO: result: $ac_cv_compiler_option_defdbg" >&5
2598echo "${ECHO_T}$ac_cv_compiler_option_defdbg" >&6
2599
2600    CFLAGS="$CFLAGS -pedantic"
2601    CFLAGS="$CFLAGS -Wall"
2602    WMORE=""
2603    WMORE="$WMORE -Wbad-function-cast"
2604    WMORE="$WMORE -Wcast-align"
2605    WMORE="$WMORE -Winline"
2606    WMORE="$WMORE -Wmissing-declarations"
2607    WMORE="$WMORE -Wmissing-prototypes"
2608    WMORE="$WMORE -Wmultichar"
2609    WMORE="$WMORE -Wnested-externs"
2610    WMORE="$WMORE -Wno-system-headers"
2611    WMORE="$WMORE -Wpointer-arith"
2612    WMORE="$WMORE -Wredundant-decls"
2613    WMORE="$WMORE -Wshadow"
2614    WMORE="$WMORE -Wstrict-prototypes"
2615    echo "$as_me:$LINENO: checking whether compiler option(s) -W<xxx> work" >&5
2616echo $ECHO_N "checking whether compiler option(s) -W<xxx> work... $ECHO_C" >&6
2617if test "${ac_cv_compiler_option_wmore+set}" = set; then
2618  echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620
2621SAVE_CFLAGS="$CFLAGS"
2622CFLAGS="$CFLAGS $WMORE"
2623cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h.  */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h.  */
2629
2630int
2631main ()
2632{
2633
2634  ;
2635  return 0;
2636}
2637_ACEOF
2638rm -f conftest.$ac_objext
2639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640  (eval $ac_compile) 2>conftest.er1
2641  ac_status=$?
2642  grep -v '^ *+' conftest.er1 >conftest.err
2643  rm -f conftest.er1
2644  cat conftest.err >&5
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); } &&
2647	 { ac_try='test -z "$ac_c_werror_flag"
2648			 || test ! -s conftest.err'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; } &&
2654	 { ac_try='test -s conftest.$ac_objext'
2655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656  (eval $ac_try) 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; }; then
2660  ac_cv_compiler_option_wmore=yes
2661else
2662  echo "$as_me: failed program was:" >&5
2663sed 's/^/| /' conftest.$ac_ext >&5
2664
2665ac_cv_compiler_option_wmore=no
2666fi
2667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2668CFLAGS="$SAVE_CFLAGS"
2669
2670fi
2671if test ".$ac_cv_compiler_option_wmore" = .yes; then
2672    CFLAGS="$CFLAGS $WMORE"
2673else
2674    :
2675fi
2676echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wmore" >&5
2677echo "${ECHO_T}$ac_cv_compiler_option_wmore" >&6
2678
2679    echo "$as_me:$LINENO: checking whether compiler option(s) -Wno-long-long work" >&5
2680echo $ECHO_N "checking whether compiler option(s) -Wno-long-long work... $ECHO_C" >&6
2681if test "${ac_cv_compiler_option_wnolonglong+set}" = set; then
2682  echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
2684
2685SAVE_CFLAGS="$CFLAGS"
2686CFLAGS="$CFLAGS -Wno-long-long"
2687cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693
2694int
2695main ()
2696{
2697
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704  (eval $ac_compile) 2>conftest.er1
2705  ac_status=$?
2706  grep -v '^ *+' conftest.er1 >conftest.err
2707  rm -f conftest.er1
2708  cat conftest.err >&5
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); } &&
2711	 { ac_try='test -z "$ac_c_werror_flag"
2712			 || test ! -s conftest.err'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; } &&
2718	 { ac_try='test -s conftest.$ac_objext'
2719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720  (eval $ac_try) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; }; then
2724  ac_cv_compiler_option_wnolonglong=yes
2725else
2726  echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729ac_cv_compiler_option_wnolonglong=no
2730fi
2731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732CFLAGS="$SAVE_CFLAGS"
2733
2734fi
2735if test ".$ac_cv_compiler_option_wnolonglong" = .yes; then
2736    CFLAGS="$CFLAGS -Wno-long-long"
2737else
2738    :
2739fi
2740echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wnolonglong" >&5
2741echo "${ECHO_T}$ac_cv_compiler_option_wnolonglong" >&6
2742
2743else
2744    case "$CFLAGS" in
2745        *-g* ) ;;
2746           * ) CFLAGS="$CFLAGS -g" ;;
2747    esac
2748fi
2749msg="enabled"
2750
2751else
2752
2753if test ".$ac_cv_c_compiler_gnu" = ".yes"; then
2754case "$CFLAGS" in
2755    *-pipe* ) ;;
2756          * ) echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5
2757echo $ECHO_N "checking whether compiler option(s) -pipe work... $ECHO_C" >&6
2758if test "${ac_cv_compiler_option_pipe+set}" = set; then
2759  echo $ECHO_N "(cached) $ECHO_C" >&6
2760else
2761
2762SAVE_CFLAGS="$CFLAGS"
2763CFLAGS="$CFLAGS -pipe"
2764cat >conftest.$ac_ext <<_ACEOF
2765/* confdefs.h.  */
2766_ACEOF
2767cat confdefs.h >>conftest.$ac_ext
2768cat >>conftest.$ac_ext <<_ACEOF
2769/* end confdefs.h.  */
2770
2771int
2772main ()
2773{
2774
2775  ;
2776  return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781  (eval $ac_compile) 2>conftest.er1
2782  ac_status=$?
2783  grep -v '^ *+' conftest.er1 >conftest.err
2784  rm -f conftest.er1
2785  cat conftest.err >&5
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); } &&
2788	 { ac_try='test -z "$ac_c_werror_flag"
2789			 || test ! -s conftest.err'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; } &&
2795	 { ac_try='test -s conftest.$ac_objext'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; }; then
2801  ac_cv_compiler_option_pipe=yes
2802else
2803  echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
2806ac_cv_compiler_option_pipe=no
2807fi
2808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809CFLAGS="$SAVE_CFLAGS"
2810
2811fi
2812if test ".$ac_cv_compiler_option_pipe" = .yes; then
2813    CFLAGS="$CFLAGS -pipe"
2814else
2815    :
2816fi
2817echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5
2818echo "${ECHO_T}$ac_cv_compiler_option_pipe" >&6
2819 ;;
2820esac
2821fi
2822case "$CFLAGS" in
2823    *-g* ) CFLAGS=`echo "$CFLAGS" |\
2824                   sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;;
2825esac
2826case "$CXXFLAGS" in
2827    *-g* ) CXXFLAGS=`echo "$CXXFLAGS" |\
2828                     sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;;
2829esac
2830msg=disabled
2831
2832fi; echo "$as_me:$LINENO: checking for compilation debug mode" >&5
2833echo $ECHO_N "checking for compilation debug mode... $ECHO_C" >&6
2834echo "$as_me:$LINENO: result: $msg" >&5
2835echo "${ECHO_T}$msg" >&6
2836if test ".$msg" = .enabled; then
2837    enable_shared=no
2838fi
2839
2840
2841# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2842## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
2843## Free Software Foundation, Inc.
2844## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
2845##
2846## This file is free software; the Free Software Foundation gives
2847## unlimited permission to copy and/or distribute it, with or without
2848## modifications, as long as this notice is preserved.
2849
2850# serial 47 AC_PROG_LIBTOOL
2851
2852
2853# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2854# -----------------------------------------------------------
2855# If this macro is not defined by Autoconf, define it here.
2856
2857
2858
2859# AC_PROG_LIBTOOL
2860# ---------------
2861# AC_PROG_LIBTOOL
2862
2863
2864# _AC_PROG_LIBTOOL
2865# ----------------
2866# _AC_PROG_LIBTOOL
2867
2868
2869# AC_LIBTOOL_SETUP
2870# ----------------
2871# AC_LIBTOOL_SETUP
2872
2873
2874# _LT_AC_SYS_COMPILER
2875# -------------------
2876# _LT_AC_SYS_COMPILER
2877
2878
2879# _LT_CC_BASENAME(CC)
2880# -------------------
2881# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
2882
2883
2884
2885# _LT_COMPILER_BOILERPLATE
2886# ------------------------
2887# Check for compiler boilerplate output or warnings with
2888# the simple compiler test code.
2889# _LT_COMPILER_BOILERPLATE
2890
2891
2892# _LT_LINKER_BOILERPLATE
2893# ----------------------
2894# Check for linker boilerplate output or warnings with
2895# the simple link test code.
2896# _LT_LINKER_BOILERPLATE
2897
2898
2899# _LT_AC_SYS_LIBPATH_AIX
2900# ----------------------
2901# Links a minimal program and checks the executable
2902# for the system default hardcoded library path. In most cases,
2903# this is /usr/lib:/lib, but when the MPI compilers are used
2904# the location of the communication and MPI libs are included too.
2905# If we don't find anything, use the default library path according
2906# to the aix ld manual.
2907# _LT_AC_SYS_LIBPATH_AIX
2908
2909
2910# _LT_AC_SHELL_INIT(ARG)
2911# ----------------------
2912# _LT_AC_SHELL_INIT
2913
2914
2915# _LT_AC_PROG_ECHO_BACKSLASH
2916# --------------------------
2917# Add some code to the start of the generated configure script which
2918# will find an echo command which doesn't interpret backslashes.
2919# _LT_AC_PROG_ECHO_BACKSLASH
2920
2921
2922# _LT_AC_LOCK
2923# -----------
2924# _LT_AC_LOCK
2925
2926
2927# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2928#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2929# ----------------------------------------------------------------
2930# Check whether the given compiler option works
2931# AC_LIBTOOL_COMPILER_OPTION
2932
2933
2934# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2935#                          [ACTION-SUCCESS], [ACTION-FAILURE])
2936# ------------------------------------------------------------
2937# Check whether the given compiler option works
2938# AC_LIBTOOL_LINKER_OPTION
2939
2940
2941# AC_LIBTOOL_SYS_MAX_CMD_LEN
2942# --------------------------
2943# AC_LIBTOOL_SYS_MAX_CMD_LEN
2944
2945
2946# _LT_AC_CHECK_DLFCN
2947# --------------------
2948# _LT_AC_CHECK_DLFCN
2949
2950
2951# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2952#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2953# ------------------------------------------------------------------
2954# _LT_AC_TRY_DLOPEN_SELF
2955
2956
2957# AC_LIBTOOL_DLOPEN_SELF
2958# -------------------
2959# AC_LIBTOOL_DLOPEN_SELF
2960
2961
2962# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2963# ---------------------------------
2964# Check to see if options -c and -o are simultaneously supported by compiler
2965# AC_LIBTOOL_PROG_CC_C_O
2966
2967
2968# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2969# -----------------------------------------
2970# Check to see if we can do hard links to lock some files if needed
2971# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2972
2973
2974# AC_LIBTOOL_OBJDIR
2975# -----------------
2976# AC_LIBTOOL_OBJDIR
2977
2978
2979# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2980# ----------------------------------------------
2981# Check hardcoding attributes.
2982# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2983
2984
2985# AC_LIBTOOL_SYS_LIB_STRIP
2986# ------------------------
2987# AC_LIBTOOL_SYS_LIB_STRIP
2988
2989
2990# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2991# -----------------------------
2992# PORTME Fill in your ld.so characteristics
2993# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2994
2995
2996# _LT_AC_TAGCONFIG
2997# ----------------
2998# _LT_AC_TAGCONFIG
2999
3000
3001# AC_LIBTOOL_DLOPEN
3002# -----------------
3003# enable checks for dlopen support
3004# AC_LIBTOOL_DLOPEN
3005
3006
3007# AC_LIBTOOL_WIN32_DLL
3008# --------------------
3009# declare package support for building win32 DLLs
3010# AC_LIBTOOL_WIN32_DLL
3011
3012
3013# AC_ENABLE_SHARED([DEFAULT])
3014# ---------------------------
3015# implement the --enable-shared flag
3016# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3017# AC_ENABLE_SHARED
3018
3019
3020# AC_DISABLE_SHARED
3021# -----------------
3022#- set the default shared flag to --disable-shared
3023# AC_DISABLE_SHARED
3024
3025
3026# AC_ENABLE_STATIC([DEFAULT])
3027# ---------------------------
3028# implement the --enable-static flag
3029# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3030# AC_ENABLE_STATIC
3031
3032
3033# AC_DISABLE_STATIC
3034# -----------------
3035# set the default static flag to --disable-static
3036# AC_DISABLE_STATIC
3037
3038
3039# AC_ENABLE_FAST_INSTALL([DEFAULT])
3040# ---------------------------------
3041# implement the --enable-fast-install flag
3042# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
3043# AC_ENABLE_FAST_INSTALL
3044
3045
3046# AC_DISABLE_FAST_INSTALL
3047# -----------------------
3048# set the default to --disable-fast-install
3049# AC_DISABLE_FAST_INSTALL
3050
3051
3052# AC_LIBTOOL_PICMODE([MODE])
3053# --------------------------
3054# implement the --with-pic flag
3055# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
3056# AC_LIBTOOL_PICMODE
3057
3058
3059# AC_PROG_EGREP
3060# -------------
3061# This is predefined starting with Autoconf 2.54, so this conditional
3062# definition can be removed once we require Autoconf 2.54 or later.
3063
3064
3065
3066# AC_PATH_TOOL_PREFIX
3067# -------------------
3068# find a file program which can recognise shared library
3069# AC_PATH_TOOL_PREFIX
3070
3071
3072# AC_PATH_MAGIC
3073# -------------
3074# find a file program which can recognise a shared library
3075# AC_PATH_MAGIC
3076
3077
3078# AC_PROG_LD
3079# ----------
3080# find the pathname to the GNU or non-GNU linker
3081# AC_PROG_LD
3082
3083
3084# AC_PROG_LD_GNU
3085# --------------
3086# AC_PROG_LD_GNU
3087
3088
3089# AC_PROG_LD_RELOAD_FLAG
3090# ----------------------
3091# find reload flag for linker
3092#   -- PORTME Some linkers may need a different reload flag.
3093# AC_PROG_LD_RELOAD_FLAG
3094
3095
3096# AC_DEPLIBS_CHECK_METHOD
3097# -----------------------
3098# how to check for library dependencies
3099#  -- PORTME fill in with the dynamic library characteristics
3100# AC_DEPLIBS_CHECK_METHOD
3101
3102
3103# AC_PROG_NM
3104# ----------
3105# find the pathname to a BSD-compatible name lister
3106# AC_PROG_NM
3107
3108
3109# AC_CHECK_LIBM
3110# -------------
3111# check for math library
3112# AC_CHECK_LIBM
3113
3114
3115# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3116# -----------------------------------
3117# sets LIBLTDL to the link flags for the libltdl convenience library and
3118# LTDLINCL to the include flags for the libltdl header and adds
3119# --enable-ltdl-convenience to the configure arguments.  Note that
3120# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3121# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
3122# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3123# (note the single quotes!).  If your package is not flat and you're not
3124# using automake, define top_builddir and top_srcdir appropriately in
3125# the Makefiles.
3126# AC_LIBLTDL_CONVENIENCE
3127
3128
3129# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3130# -----------------------------------
3131# sets LIBLTDL to the link flags for the libltdl installable library and
3132# LTDLINCL to the include flags for the libltdl header and adds
3133# --enable-ltdl-install to the configure arguments.  Note that
3134# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
3135# and an installed libltdl is not found, it is assumed to be `libltdl'.
3136# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3137# '${top_srcdir}/' (note the single quotes!).  If your package is not
3138# flat and you're not using automake, define top_builddir and top_srcdir
3139# appropriately in the Makefiles.
3140# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3141# AC_LIBLTDL_INSTALLABLE
3142
3143
3144# AC_LIBTOOL_CXX
3145# --------------
3146# enable support for C++ libraries
3147# AC_LIBTOOL_CXX
3148
3149
3150# _LT_AC_LANG_CXX
3151# ---------------
3152# _LT_AC_LANG_CXX
3153
3154# _LT_AC_PROG_CXXCPP
3155# ---------------
3156# _LT_AC_PROG_CXXCPP
3157
3158# AC_LIBTOOL_F77
3159# --------------
3160# enable support for Fortran 77 libraries
3161# AC_LIBTOOL_F77
3162
3163
3164# _LT_AC_LANG_F77
3165# ---------------
3166# _LT_AC_LANG_F77
3167
3168
3169# AC_LIBTOOL_GCJ
3170# --------------
3171# enable support for GCJ libraries
3172# AC_LIBTOOL_GCJ
3173
3174
3175# _LT_AC_LANG_GCJ
3176# ---------------
3177# _LT_AC_LANG_GCJ
3178
3179
3180# AC_LIBTOOL_RC
3181# --------------
3182# enable support for Windows resource files
3183# AC_LIBTOOL_RC
3184
3185
3186# AC_LIBTOOL_LANG_C_CONFIG
3187# ------------------------
3188# Ensure that the configuration vars for the C compiler are
3189# suitably defined.  Those variables are subsequently used by
3190# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3191
3192# AC_LIBTOOL_LANG_C_CONFIG
3193
3194
3195# AC_LIBTOOL_LANG_CXX_CONFIG
3196# --------------------------
3197# Ensure that the configuration vars for the C compiler are
3198# suitably defined.  Those variables are subsequently used by
3199# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3200
3201# AC_LIBTOOL_LANG_CXX_CONFIG
3202
3203# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3204# ------------------------
3205# Figure out "hidden" library dependencies from verbose
3206# compiler output when linking a shared library.
3207# Parse the compiler output and extract the necessary
3208# objects, libraries and library flags.
3209# AC_LIBTOOL_POSTDEP_PREDEP
3210
3211# AC_LIBTOOL_LANG_F77_CONFIG
3212# ------------------------
3213# Ensure that the configuration vars for the C compiler are
3214# suitably defined.  Those variables are subsequently used by
3215# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3216
3217# AC_LIBTOOL_LANG_F77_CONFIG
3218
3219
3220# AC_LIBTOOL_LANG_GCJ_CONFIG
3221# --------------------------
3222# Ensure that the configuration vars for the C compiler are
3223# suitably defined.  Those variables are subsequently used by
3224# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3225
3226# AC_LIBTOOL_LANG_GCJ_CONFIG
3227
3228
3229# AC_LIBTOOL_LANG_RC_CONFIG
3230# --------------------------
3231# Ensure that the configuration vars for the Windows resource compiler are
3232# suitably defined.  Those variables are subsequently used by
3233# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3234
3235# AC_LIBTOOL_LANG_RC_CONFIG
3236
3237
3238# AC_LIBTOOL_CONFIG([TAGNAME])
3239# ----------------------------
3240# If TAGNAME is not passed, then create an initial libtool script
3241# with a default configuration from the untagged config vars.  Otherwise
3242# add code to config.status for appending the configuration named by
3243# TAGNAME from the matching tagged config vars.
3244# AC_LIBTOOL_CONFIG
3245
3246
3247# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
3248# -------------------------------------------
3249# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3250
3251
3252# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3253# ---------------------------------
3254 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3255
3256
3257# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3258# ---------------------------------------
3259
3260
3261
3262# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
3263# ------------------------------------
3264# See if the linker supports building shared libraries.
3265# AC_LIBTOOL_PROG_LD_SHLIBS
3266
3267
3268# _LT_AC_FILE_LTDLL_C
3269# -------------------
3270# Be careful that the start marker always follows a newline.
3271# _LT_AC_FILE_LTDLL_C
3272
3273
3274# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
3275# ---------------------------------
3276
3277
3278
3279# old names
3280
3281
3282
3283
3284
3285
3286
3287
3288# This is just to silence aclocal about the macro not being used
3289
3290
3291
3292
3293
3294
3295############################################################
3296# NOTE: This macro has been submitted for inclusion into   #
3297#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
3298#  a released version of Autoconf we should remove this    #
3299#  macro and use it instead.                               #
3300############################################################
3301# LT_AC_PROG_SED
3302# --------------
3303# Check for a fully-functional sed program, that truncates
3304# as few characters as possible.  Prefer GNU sed if found.
3305
3306
3307# Check whether --enable-shared or --disable-shared was given.
3308if test "${enable_shared+set}" = set; then
3309  enableval="$enable_shared"
3310  p=${PACKAGE-default}
3311    case $enableval in
3312    yes) enable_shared=yes ;;
3313    no) enable_shared=no ;;
3314    *)
3315      enable_shared=no
3316      # Look at the argument we got.  We use all the common list separators.
3317      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3318      for pkg in $enableval; do
3319	IFS="$lt_save_ifs"
3320	if test "X$pkg" = "X$p"; then
3321	  enable_shared=yes
3322	fi
3323      done
3324      IFS="$lt_save_ifs"
3325      ;;
3326    esac
3327else
3328  enable_shared=yes
3329fi;
3330
3331# Check whether --enable-static or --disable-static was given.
3332if test "${enable_static+set}" = set; then
3333  enableval="$enable_static"
3334  p=${PACKAGE-default}
3335    case $enableval in
3336    yes) enable_static=yes ;;
3337    no) enable_static=no ;;
3338    *)
3339     enable_static=no
3340      # Look at the argument we got.  We use all the common list separators.
3341      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3342      for pkg in $enableval; do
3343	IFS="$lt_save_ifs"
3344	if test "X$pkg" = "X$p"; then
3345	  enable_static=yes
3346	fi
3347      done
3348      IFS="$lt_save_ifs"
3349      ;;
3350    esac
3351else
3352  enable_static=yes
3353fi;
3354
3355# Check whether --enable-fast-install or --disable-fast-install was given.
3356if test "${enable_fast_install+set}" = set; then
3357  enableval="$enable_fast_install"
3358  p=${PACKAGE-default}
3359    case $enableval in
3360    yes) enable_fast_install=yes ;;
3361    no) enable_fast_install=no ;;
3362    *)
3363      enable_fast_install=no
3364      # Look at the argument we got.  We use all the common list separators.
3365      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3366      for pkg in $enableval; do
3367	IFS="$lt_save_ifs"
3368	if test "X$pkg" = "X$p"; then
3369	  enable_fast_install=yes
3370	fi
3371      done
3372      IFS="$lt_save_ifs"
3373      ;;
3374    esac
3375else
3376  enable_fast_install=yes
3377fi;
3378
3379ac_aux_dir=
3380for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3381  if test -f $ac_dir/install-sh; then
3382    ac_aux_dir=$ac_dir
3383    ac_install_sh="$ac_aux_dir/install-sh -c"
3384    break
3385  elif test -f $ac_dir/install.sh; then
3386    ac_aux_dir=$ac_dir
3387    ac_install_sh="$ac_aux_dir/install.sh -c"
3388    break
3389  elif test -f $ac_dir/shtool; then
3390    ac_aux_dir=$ac_dir
3391    ac_install_sh="$ac_aux_dir/shtool install -c"
3392    break
3393  fi
3394done
3395if test -z "$ac_aux_dir"; then
3396  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3397echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3398   { (exit 1); exit 1; }; }
3399fi
3400ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3401ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3402ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3403
3404# Make sure we can run config.sub.
3405$ac_config_sub sun4 >/dev/null 2>&1 ||
3406  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3407echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3408   { (exit 1); exit 1; }; }
3409
3410echo "$as_me:$LINENO: checking build system type" >&5
3411echo $ECHO_N "checking build system type... $ECHO_C" >&6
3412if test "${ac_cv_build+set}" = set; then
3413  echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415  ac_cv_build_alias=$build_alias
3416test -z "$ac_cv_build_alias" &&
3417  ac_cv_build_alias=`$ac_config_guess`
3418test -z "$ac_cv_build_alias" &&
3419  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3420echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3421   { (exit 1); exit 1; }; }
3422ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3423  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3424echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3425   { (exit 1); exit 1; }; }
3426
3427fi
3428echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3429echo "${ECHO_T}$ac_cv_build" >&6
3430build=$ac_cv_build
3431build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3432build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3433build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3434
3435
3436echo "$as_me:$LINENO: checking host system type" >&5
3437echo $ECHO_N "checking host system type... $ECHO_C" >&6
3438if test "${ac_cv_host+set}" = set; then
3439  echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441  ac_cv_host_alias=$host_alias
3442test -z "$ac_cv_host_alias" &&
3443  ac_cv_host_alias=$ac_cv_build_alias
3444ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3445  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3446echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3447   { (exit 1); exit 1; }; }
3448
3449fi
3450echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3451echo "${ECHO_T}$ac_cv_host" >&6
3452host=$ac_cv_host
3453host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3454host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3455host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3456
3457
3458echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3459echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3460if test "${lt_cv_path_SED+set}" = set; then
3461  echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463  # Loop through the user's path and test for sed and gsed.
3464# Then use that list of sed's as ones to test for truncation.
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468  IFS=$as_save_IFS
3469  test -z "$as_dir" && as_dir=.
3470  for lt_ac_prog in sed gsed; do
3471    for ac_exec_ext in '' $ac_executable_extensions; do
3472      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3473        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3474      fi
3475    done
3476  done
3477done
3478lt_ac_max=0
3479lt_ac_count=0
3480# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3481# along with /bin/sed that truncates output.
3482for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3483  test ! -f $lt_ac_sed && continue
3484  cat /dev/null > conftest.in
3485  lt_ac_count=0
3486  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3487  # Check for GNU sed and select it if it is found.
3488  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3489    lt_cv_path_SED=$lt_ac_sed
3490    break
3491  fi
3492  while true; do
3493    cat conftest.in conftest.in >conftest.tmp
3494    mv conftest.tmp conftest.in
3495    cp conftest.in conftest.nl
3496    echo >>conftest.nl
3497    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3498    cmp -s conftest.out conftest.nl || break
3499    # 10000 chars as input seems more than enough
3500    test $lt_ac_count -gt 10 && break
3501    lt_ac_count=`expr $lt_ac_count + 1`
3502    if test $lt_ac_count -gt $lt_ac_max; then
3503      lt_ac_max=$lt_ac_count
3504      lt_cv_path_SED=$lt_ac_sed
3505    fi
3506  done
3507done
3508
3509fi
3510
3511SED=$lt_cv_path_SED
3512echo "$as_me:$LINENO: result: $SED" >&5
3513echo "${ECHO_T}$SED" >&6
3514
3515echo "$as_me:$LINENO: checking for egrep" >&5
3516echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3517if test "${ac_cv_prog_egrep+set}" = set; then
3518  echo $ECHO_N "(cached) $ECHO_C" >&6
3519else
3520  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3521    then ac_cv_prog_egrep='grep -E'
3522    else ac_cv_prog_egrep='egrep'
3523    fi
3524fi
3525echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3526echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3527 EGREP=$ac_cv_prog_egrep
3528
3529
3530
3531# Check whether --with-gnu-ld or --without-gnu-ld was given.
3532if test "${with_gnu_ld+set}" = set; then
3533  withval="$with_gnu_ld"
3534  test "$withval" = no || with_gnu_ld=yes
3535else
3536  with_gnu_ld=no
3537fi;
3538ac_prog=ld
3539if test "$GCC" = yes; then
3540  # Check if gcc -print-prog-name=ld gives a path.
3541  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3542echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3543  case $host in
3544  *-*-mingw*)
3545    # gcc leaves a trailing carriage return which upsets mingw
3546    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3547  *)
3548    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3549  esac
3550  case $ac_prog in
3551    # Accept absolute paths.
3552    [\\/]* | ?:[\\/]*)
3553      re_direlt='/[^/][^/]*/\.\./'
3554      # Canonicalize the pathname of ld
3555      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3556      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3557	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3558      done
3559      test -z "$LD" && LD="$ac_prog"
3560      ;;
3561  "")
3562    # If it fails, then pretend we aren't using GCC.
3563    ac_prog=ld
3564    ;;
3565  *)
3566    # If it is relative, then search for the first ld in PATH.
3567    with_gnu_ld=unknown
3568    ;;
3569  esac
3570elif test "$with_gnu_ld" = yes; then
3571  echo "$as_me:$LINENO: checking for GNU ld" >&5
3572echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3573else
3574  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3575echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3576fi
3577if test "${lt_cv_path_LD+set}" = set; then
3578  echo $ECHO_N "(cached) $ECHO_C" >&6
3579else
3580  if test -z "$LD"; then
3581  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3582  for ac_dir in $PATH; do
3583    IFS="$lt_save_ifs"
3584    test -z "$ac_dir" && ac_dir=.
3585    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3586      lt_cv_path_LD="$ac_dir/$ac_prog"
3587      # Check to see if the program is GNU ld.  I'd rather use --version,
3588      # but apparently some variants of GNU ld only accept -v.
3589      # Break only if it was the GNU/non-GNU ld that we prefer.
3590      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3591      *GNU* | *'with BFD'*)
3592	test "$with_gnu_ld" != no && break
3593	;;
3594      *)
3595	test "$with_gnu_ld" != yes && break
3596	;;
3597      esac
3598    fi
3599  done
3600  IFS="$lt_save_ifs"
3601else
3602  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3603fi
3604fi
3605
3606LD="$lt_cv_path_LD"
3607if test -n "$LD"; then
3608  echo "$as_me:$LINENO: result: $LD" >&5
3609echo "${ECHO_T}$LD" >&6
3610else
3611  echo "$as_me:$LINENO: result: no" >&5
3612echo "${ECHO_T}no" >&6
3613fi
3614test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3615echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3616   { (exit 1); exit 1; }; }
3617echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3618echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3619if test "${lt_cv_prog_gnu_ld+set}" = set; then
3620  echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3623case `$LD -v 2>&1 </dev/null` in
3624*GNU* | *'with BFD'*)
3625  lt_cv_prog_gnu_ld=yes
3626  ;;
3627*)
3628  lt_cv_prog_gnu_ld=no
3629  ;;
3630esac
3631fi
3632echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3633echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3634with_gnu_ld=$lt_cv_prog_gnu_ld
3635
3636
3637echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3638echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3639if test "${lt_cv_ld_reload_flag+set}" = set; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642  lt_cv_ld_reload_flag='-r'
3643fi
3644echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3645echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3646reload_flag=$lt_cv_ld_reload_flag
3647case $reload_flag in
3648"" | " "*) ;;
3649*) reload_flag=" $reload_flag" ;;
3650esac
3651reload_cmds='$LD$reload_flag -o $output$reload_objs'
3652case $host_os in
3653  darwin*)
3654    if test "$GCC" = yes; then
3655      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3656    else
3657      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3658    fi
3659    ;;
3660esac
3661
3662echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3663echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3664if test "${lt_cv_path_NM+set}" = set; then
3665  echo $ECHO_N "(cached) $ECHO_C" >&6
3666else
3667  if test -n "$NM"; then
3668  # Let the user override the test.
3669  lt_cv_path_NM="$NM"
3670else
3671  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3672  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3673    IFS="$lt_save_ifs"
3674    test -z "$ac_dir" && ac_dir=.
3675    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3676    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3677      # Check to see if the nm accepts a BSD-compat flag.
3678      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3679      #   nm: unknown option "B" ignored
3680      # Tru64's nm complains that /dev/null is an invalid object file
3681      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3682      */dev/null* | *'Invalid file or object type'*)
3683	lt_cv_path_NM="$tmp_nm -B"
3684	break
3685        ;;
3686      *)
3687	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3688	*/dev/null*)
3689	  lt_cv_path_NM="$tmp_nm -p"
3690	  break
3691	  ;;
3692	*)
3693	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3694	  continue # so that we can try to find one that supports BSD flags
3695	  ;;
3696	esac
3697      esac
3698    fi
3699  done
3700  IFS="$lt_save_ifs"
3701  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3702fi
3703fi
3704echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3705echo "${ECHO_T}$lt_cv_path_NM" >&6
3706NM="$lt_cv_path_NM"
3707
3708echo "$as_me:$LINENO: checking whether ln -s works" >&5
3709echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3710LN_S=$as_ln_s
3711if test "$LN_S" = "ln -s"; then
3712  echo "$as_me:$LINENO: result: yes" >&5
3713echo "${ECHO_T}yes" >&6
3714else
3715  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3716echo "${ECHO_T}no, using $LN_S" >&6
3717fi
3718
3719echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3720echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3721if test "${lt_cv_deplibs_check_method+set}" = set; then
3722  echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724  lt_cv_file_magic_cmd='$MAGIC_CMD'
3725lt_cv_file_magic_test_file=
3726lt_cv_deplibs_check_method='unknown'
3727# Need to set the preceding variable on all platforms that support
3728# interlibrary dependencies.
3729# 'none' -- dependencies not supported.
3730# `unknown' -- same as none, but documents that we really don't know.
3731# 'pass_all' -- all dependencies passed with no checks.
3732# 'test_compile' -- check by making test program.
3733# 'file_magic [[regex]]' -- check by looking for files in library path
3734# which responds to the $file_magic_cmd with a given extended regex.
3735# If you have `file' or equivalent on your system and you're not sure
3736# whether `pass_all' will *always* work, you probably want this one.
3737
3738case $host_os in
3739aix4* | aix5*)
3740  lt_cv_deplibs_check_method=pass_all
3741  ;;
3742
3743beos*)
3744  lt_cv_deplibs_check_method=pass_all
3745  ;;
3746
3747bsdi[45]*)
3748  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3749  lt_cv_file_magic_cmd='/usr/bin/file -L'
3750  lt_cv_file_magic_test_file=/shlib/libc.so
3751  ;;
3752
3753cygwin*)
3754  # func_win32_libid is a shell function defined in ltmain.sh
3755  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3756  lt_cv_file_magic_cmd='func_win32_libid'
3757  ;;
3758
3759mingw* | pw32*)
3760  # Base MSYS/MinGW do not provide the 'file' command needed by
3761  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3762  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3763  lt_cv_file_magic_cmd='$OBJDUMP -f'
3764  ;;
3765
3766darwin* | rhapsody*)
3767  lt_cv_deplibs_check_method=pass_all
3768  ;;
3769
3770freebsd* | kfreebsd*-gnu | dragonfly*)
3771  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3772    case $host_cpu in
3773    i*86 )
3774      # Not sure whether the presence of OpenBSD here was a mistake.
3775      # Let's accept both of them until this is cleared up.
3776      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3777      lt_cv_file_magic_cmd=/usr/bin/file
3778      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3779      ;;
3780    esac
3781  else
3782    lt_cv_deplibs_check_method=pass_all
3783  fi
3784  ;;
3785
3786gnu*)
3787  lt_cv_deplibs_check_method=pass_all
3788  ;;
3789
3790hpux10.20* | hpux11*)
3791  lt_cv_file_magic_cmd=/usr/bin/file
3792  case $host_cpu in
3793  ia64*)
3794    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3795    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3796    ;;
3797  hppa*64*)
3798    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]'
3799    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3800    ;;
3801  *)
3802    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3803    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3804    ;;
3805  esac
3806  ;;
3807
3808irix5* | irix6* | nonstopux*)
3809  case $LD in
3810  *-32|*"-32 ") libmagic=32-bit;;
3811  *-n32|*"-n32 ") libmagic=N32;;
3812  *-64|*"-64 ") libmagic=64-bit;;
3813  *) libmagic=never-match;;
3814  esac
3815  lt_cv_deplibs_check_method=pass_all
3816  ;;
3817
3818# This must be Linux ELF.
3819linux*)
3820  lt_cv_deplibs_check_method=pass_all
3821  ;;
3822
3823netbsd*)
3824  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3825    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3826  else
3827    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3828  fi
3829  ;;
3830
3831newos6*)
3832  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3833  lt_cv_file_magic_cmd=/usr/bin/file
3834  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3835  ;;
3836
3837nto-qnx*)
3838  lt_cv_deplibs_check_method=unknown
3839  ;;
3840
3841openbsd*)
3842  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3843    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3844  else
3845    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3846  fi
3847  ;;
3848
3849osf3* | osf4* | osf5*)
3850  lt_cv_deplibs_check_method=pass_all
3851  ;;
3852
3853sco3.2v5*)
3854  lt_cv_deplibs_check_method=pass_all
3855  ;;
3856
3857solaris*)
3858  lt_cv_deplibs_check_method=pass_all
3859  ;;
3860
3861sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3862  case $host_vendor in
3863  motorola)
3864    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]'
3865    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3866    ;;
3867  ncr)
3868    lt_cv_deplibs_check_method=pass_all
3869    ;;
3870  sequent)
3871    lt_cv_file_magic_cmd='/bin/file'
3872    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3873    ;;
3874  sni)
3875    lt_cv_file_magic_cmd='/bin/file'
3876    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3877    lt_cv_file_magic_test_file=/lib/libc.so
3878    ;;
3879  siemens)
3880    lt_cv_deplibs_check_method=pass_all
3881    ;;
3882  esac
3883  ;;
3884
3885sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3886  lt_cv_deplibs_check_method=pass_all
3887  ;;
3888esac
3889
3890fi
3891echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3892echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3893file_magic_cmd=$lt_cv_file_magic_cmd
3894deplibs_check_method=$lt_cv_deplibs_check_method
3895test -z "$deplibs_check_method" && deplibs_check_method=unknown
3896
3897
3898
3899
3900# If no C compiler was specified, use CC.
3901LTCC=${LTCC-"$CC"}
3902
3903# Allow CC to be a program name with arguments.
3904compiler=$CC
3905
3906# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3907if test "${enable_libtool_lock+set}" = set; then
3908  enableval="$enable_libtool_lock"
3909
3910fi;
3911test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3912
3913# Some flags need to be propagated to the compiler or linker for good
3914# libtool support.
3915case $host in
3916ia64-*-hpux*)
3917  # Find out which ABI we are using.
3918  echo 'int i;' > conftest.$ac_ext
3919  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3920  (eval $ac_compile) 2>&5
3921  ac_status=$?
3922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923  (exit $ac_status); }; then
3924    case `/usr/bin/file conftest.$ac_objext` in
3925    *ELF-32*)
3926      HPUX_IA64_MODE="32"
3927      ;;
3928    *ELF-64*)
3929      HPUX_IA64_MODE="64"
3930      ;;
3931    esac
3932  fi
3933  rm -rf conftest*
3934  ;;
3935*-*-irix6*)
3936  # Find out which ABI we are using.
3937  echo '#line 3937 "configure"' > conftest.$ac_ext
3938  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939  (eval $ac_compile) 2>&5
3940  ac_status=$?
3941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942  (exit $ac_status); }; then
3943   if test "$lt_cv_prog_gnu_ld" = yes; then
3944    case `/usr/bin/file conftest.$ac_objext` in
3945    *32-bit*)
3946      LD="${LD-ld} -melf32bsmip"
3947      ;;
3948    *N32*)
3949      LD="${LD-ld} -melf32bmipn32"
3950      ;;
3951    *64-bit*)
3952      LD="${LD-ld} -melf64bmip"
3953      ;;
3954    esac
3955   else
3956    case `/usr/bin/file conftest.$ac_objext` in
3957    *32-bit*)
3958      LD="${LD-ld} -32"
3959      ;;
3960    *N32*)
3961      LD="${LD-ld} -n32"
3962      ;;
3963    *64-bit*)
3964      LD="${LD-ld} -64"
3965      ;;
3966    esac
3967   fi
3968  fi
3969  rm -rf conftest*
3970  ;;
3971
3972x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3973  # Find out which ABI we are using.
3974  echo 'int i;' > conftest.$ac_ext
3975  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3976  (eval $ac_compile) 2>&5
3977  ac_status=$?
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); }; then
3980    case `/usr/bin/file conftest.o` in
3981    *32-bit*)
3982      case $host in
3983        x86_64-*linux*)
3984          LD="${LD-ld} -m elf_i386"
3985          ;;
3986        ppc64-*linux*|powerpc64-*linux*)
3987          LD="${LD-ld} -m elf32ppclinux"
3988          ;;
3989        s390x-*linux*)
3990          LD="${LD-ld} -m elf_s390"
3991          ;;
3992        sparc64-*linux*)
3993          LD="${LD-ld} -m elf32_sparc"
3994          ;;
3995      esac
3996      ;;
3997    *64-bit*)
3998      case $host in
3999        x86_64-*linux*)
4000          LD="${LD-ld} -m elf_x86_64"
4001          ;;
4002        ppc*-*linux*|powerpc*-*linux*)
4003          LD="${LD-ld} -m elf64ppc"
4004          ;;
4005        s390*-*linux*)
4006          LD="${LD-ld} -m elf64_s390"
4007          ;;
4008        sparc*-*linux*)
4009          LD="${LD-ld} -m elf64_sparc"
4010          ;;
4011      esac
4012      ;;
4013    esac
4014  fi
4015  rm -rf conftest*
4016  ;;
4017
4018*-*-sco3.2v5*)
4019  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4020  SAVE_CFLAGS="$CFLAGS"
4021  CFLAGS="$CFLAGS -belf"
4022  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4023echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4024if test "${lt_cv_cc_needs_belf+set}" = set; then
4025  echo $ECHO_N "(cached) $ECHO_C" >&6
4026else
4027  ac_ext=c
4028ac_cpp='$CPP $CPPFLAGS'
4029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4031ac_compiler_gnu=$ac_cv_c_compiler_gnu
4032
4033     cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h.  */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h.  */
4039
4040int
4041main ()
4042{
4043
4044  ;
4045  return 0;
4046}
4047_ACEOF
4048rm -f conftest.$ac_objext conftest$ac_exeext
4049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050  (eval $ac_link) 2>conftest.er1
4051  ac_status=$?
4052  grep -v '^ *+' conftest.er1 >conftest.err
4053  rm -f conftest.er1
4054  cat conftest.err >&5
4055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056  (exit $ac_status); } &&
4057	 { ac_try='test -z "$ac_c_werror_flag"
4058			 || test ! -s conftest.err'
4059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4060  (eval $ac_try) 2>&5
4061  ac_status=$?
4062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063  (exit $ac_status); }; } &&
4064	 { ac_try='test -s conftest$ac_exeext'
4065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066  (eval $ac_try) 2>&5
4067  ac_status=$?
4068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069  (exit $ac_status); }; }; then
4070  lt_cv_cc_needs_belf=yes
4071else
4072  echo "$as_me: failed program was:" >&5
4073sed 's/^/| /' conftest.$ac_ext >&5
4074
4075lt_cv_cc_needs_belf=no
4076fi
4077rm -f conftest.err conftest.$ac_objext \
4078      conftest$ac_exeext conftest.$ac_ext
4079     ac_ext=c
4080ac_cpp='$CPP $CPPFLAGS'
4081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084
4085fi
4086echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4087echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4088  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4089    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4090    CFLAGS="$SAVE_CFLAGS"
4091  fi
4092  ;;
4093
4094esac
4095
4096need_locks="$enable_libtool_lock"
4097
4098
4099ac_ext=c
4100ac_cpp='$CPP $CPPFLAGS'
4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4105echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4106# On Suns, sometimes $CPP names a directory.
4107if test -n "$CPP" && test -d "$CPP"; then
4108  CPP=
4109fi
4110if test -z "$CPP"; then
4111  if test "${ac_cv_prog_CPP+set}" = set; then
4112  echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114      # Double quotes because CPP needs to be expanded
4115    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4116    do
4117      ac_preproc_ok=false
4118for ac_c_preproc_warn_flag in '' yes
4119do
4120  # Use a header file that comes with gcc, so configuring glibc
4121  # with a fresh cross-compiler works.
4122  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4123  # <limits.h> exists even on freestanding compilers.
4124  # On the NeXT, cc -E runs the code through the compiler's parser,
4125  # not just through cpp. "Syntax error" is here to catch this case.
4126  cat >conftest.$ac_ext <<_ACEOF
4127/* confdefs.h.  */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
4131/* end confdefs.h.  */
4132#ifdef __STDC__
4133# include <limits.h>
4134#else
4135# include <assert.h>
4136#endif
4137		     Syntax error
4138_ACEOF
4139if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4140  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4141  ac_status=$?
4142  grep -v '^ *+' conftest.er1 >conftest.err
4143  rm -f conftest.er1
4144  cat conftest.err >&5
4145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146  (exit $ac_status); } >/dev/null; then
4147  if test -s conftest.err; then
4148    ac_cpp_err=$ac_c_preproc_warn_flag
4149    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4150  else
4151    ac_cpp_err=
4152  fi
4153else
4154  ac_cpp_err=yes
4155fi
4156if test -z "$ac_cpp_err"; then
4157  :
4158else
4159  echo "$as_me: failed program was:" >&5
4160sed 's/^/| /' conftest.$ac_ext >&5
4161
4162  # Broken: fails on valid input.
4163continue
4164fi
4165rm -f conftest.err conftest.$ac_ext
4166
4167  # OK, works on sane cases.  Now check whether non-existent headers
4168  # can be detected and how.
4169  cat >conftest.$ac_ext <<_ACEOF
4170/* confdefs.h.  */
4171_ACEOF
4172cat confdefs.h >>conftest.$ac_ext
4173cat >>conftest.$ac_ext <<_ACEOF
4174/* end confdefs.h.  */
4175#include <ac_nonexistent.h>
4176_ACEOF
4177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4178  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4179  ac_status=$?
4180  grep -v '^ *+' conftest.er1 >conftest.err
4181  rm -f conftest.er1
4182  cat conftest.err >&5
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); } >/dev/null; then
4185  if test -s conftest.err; then
4186    ac_cpp_err=$ac_c_preproc_warn_flag
4187    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4188  else
4189    ac_cpp_err=
4190  fi
4191else
4192  ac_cpp_err=yes
4193fi
4194if test -z "$ac_cpp_err"; then
4195  # Broken: success on invalid input.
4196continue
4197else
4198  echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201  # Passes both tests.
4202ac_preproc_ok=:
4203break
4204fi
4205rm -f conftest.err conftest.$ac_ext
4206
4207done
4208# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4209rm -f conftest.err conftest.$ac_ext
4210if $ac_preproc_ok; then
4211  break
4212fi
4213
4214    done
4215    ac_cv_prog_CPP=$CPP
4216
4217fi
4218  CPP=$ac_cv_prog_CPP
4219else
4220  ac_cv_prog_CPP=$CPP
4221fi
4222echo "$as_me:$LINENO: result: $CPP" >&5
4223echo "${ECHO_T}$CPP" >&6
4224ac_preproc_ok=false
4225for ac_c_preproc_warn_flag in '' yes
4226do
4227  # Use a header file that comes with gcc, so configuring glibc
4228  # with a fresh cross-compiler works.
4229  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4230  # <limits.h> exists even on freestanding compilers.
4231  # On the NeXT, cc -E runs the code through the compiler's parser,
4232  # not just through cpp. "Syntax error" is here to catch this case.
4233  cat >conftest.$ac_ext <<_ACEOF
4234/* confdefs.h.  */
4235_ACEOF
4236cat confdefs.h >>conftest.$ac_ext
4237cat >>conftest.$ac_ext <<_ACEOF
4238/* end confdefs.h.  */
4239#ifdef __STDC__
4240# include <limits.h>
4241#else
4242# include <assert.h>
4243#endif
4244		     Syntax error
4245_ACEOF
4246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4247  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4248  ac_status=$?
4249  grep -v '^ *+' conftest.er1 >conftest.err
4250  rm -f conftest.er1
4251  cat conftest.err >&5
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); } >/dev/null; then
4254  if test -s conftest.err; then
4255    ac_cpp_err=$ac_c_preproc_warn_flag
4256    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4257  else
4258    ac_cpp_err=
4259  fi
4260else
4261  ac_cpp_err=yes
4262fi
4263if test -z "$ac_cpp_err"; then
4264  :
4265else
4266  echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4269  # Broken: fails on valid input.
4270continue
4271fi
4272rm -f conftest.err conftest.$ac_ext
4273
4274  # OK, works on sane cases.  Now check whether non-existent headers
4275  # can be detected and how.
4276  cat >conftest.$ac_ext <<_ACEOF
4277/* confdefs.h.  */
4278_ACEOF
4279cat confdefs.h >>conftest.$ac_ext
4280cat >>conftest.$ac_ext <<_ACEOF
4281/* end confdefs.h.  */
4282#include <ac_nonexistent.h>
4283_ACEOF
4284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4285  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4286  ac_status=$?
4287  grep -v '^ *+' conftest.er1 >conftest.err
4288  rm -f conftest.er1
4289  cat conftest.err >&5
4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); } >/dev/null; then
4292  if test -s conftest.err; then
4293    ac_cpp_err=$ac_c_preproc_warn_flag
4294    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4295  else
4296    ac_cpp_err=
4297  fi
4298else
4299  ac_cpp_err=yes
4300fi
4301if test -z "$ac_cpp_err"; then
4302  # Broken: success on invalid input.
4303continue
4304else
4305  echo "$as_me: failed program was:" >&5
4306sed 's/^/| /' conftest.$ac_ext >&5
4307
4308  # Passes both tests.
4309ac_preproc_ok=:
4310break
4311fi
4312rm -f conftest.err conftest.$ac_ext
4313
4314done
4315# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4316rm -f conftest.err conftest.$ac_ext
4317if $ac_preproc_ok; then
4318  :
4319else
4320  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4321See \`config.log' for more details." >&5
4322echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4323See \`config.log' for more details." >&2;}
4324   { (exit 1); exit 1; }; }
4325fi
4326
4327ac_ext=c
4328ac_cpp='$CPP $CPPFLAGS'
4329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332
4333
4334echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4335echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4336if test "${ac_cv_header_stdc+set}" = set; then
4337  echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339  cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h.  */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h.  */
4345#include <stdlib.h>
4346#include <stdarg.h>
4347#include <string.h>
4348#include <float.h>
4349
4350int
4351main ()
4352{
4353
4354  ;
4355  return 0;
4356}
4357_ACEOF
4358rm -f conftest.$ac_objext
4359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4360  (eval $ac_compile) 2>conftest.er1
4361  ac_status=$?
4362  grep -v '^ *+' conftest.er1 >conftest.err
4363  rm -f conftest.er1
4364  cat conftest.err >&5
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); } &&
4367	 { ac_try='test -z "$ac_c_werror_flag"
4368			 || test ! -s conftest.err'
4369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370  (eval $ac_try) 2>&5
4371  ac_status=$?
4372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373  (exit $ac_status); }; } &&
4374	 { ac_try='test -s conftest.$ac_objext'
4375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376  (eval $ac_try) 2>&5
4377  ac_status=$?
4378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379  (exit $ac_status); }; }; then
4380  ac_cv_header_stdc=yes
4381else
4382  echo "$as_me: failed program was:" >&5
4383sed 's/^/| /' conftest.$ac_ext >&5
4384
4385ac_cv_header_stdc=no
4386fi
4387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4388
4389if test $ac_cv_header_stdc = yes; then
4390  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4391  cat >conftest.$ac_ext <<_ACEOF
4392/* confdefs.h.  */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h.  */
4397#include <string.h>
4398
4399_ACEOF
4400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4401  $EGREP "memchr" >/dev/null 2>&1; then
4402  :
4403else
4404  ac_cv_header_stdc=no
4405fi
4406rm -f conftest*
4407
4408fi
4409
4410if test $ac_cv_header_stdc = yes; then
4411  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4412  cat >conftest.$ac_ext <<_ACEOF
4413/* confdefs.h.  */
4414_ACEOF
4415cat confdefs.h >>conftest.$ac_ext
4416cat >>conftest.$ac_ext <<_ACEOF
4417/* end confdefs.h.  */
4418#include <stdlib.h>
4419
4420_ACEOF
4421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4422  $EGREP "free" >/dev/null 2>&1; then
4423  :
4424else
4425  ac_cv_header_stdc=no
4426fi
4427rm -f conftest*
4428
4429fi
4430
4431if test $ac_cv_header_stdc = yes; then
4432  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4433  if test "$cross_compiling" = yes; then
4434  :
4435else
4436  cat >conftest.$ac_ext <<_ACEOF
4437/* confdefs.h.  */
4438_ACEOF
4439cat confdefs.h >>conftest.$ac_ext
4440cat >>conftest.$ac_ext <<_ACEOF
4441/* end confdefs.h.  */
4442#include <ctype.h>
4443#if ((' ' & 0x0FF) == 0x020)
4444# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4445# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4446#else
4447# define ISLOWER(c) \
4448		   (('a' <= (c) && (c) <= 'i') \
4449		     || ('j' <= (c) && (c) <= 'r') \
4450		     || ('s' <= (c) && (c) <= 'z'))
4451# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4452#endif
4453
4454#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4455int
4456main ()
4457{
4458  int i;
4459  for (i = 0; i < 256; i++)
4460    if (XOR (islower (i), ISLOWER (i))
4461	|| toupper (i) != TOUPPER (i))
4462      exit(2);
4463  exit (0);
4464}
4465_ACEOF
4466rm -f conftest$ac_exeext
4467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4468  (eval $ac_link) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473  (eval $ac_try) 2>&5
4474  ac_status=$?
4475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476  (exit $ac_status); }; }; then
4477  :
4478else
4479  echo "$as_me: program exited with status $ac_status" >&5
4480echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483( exit $ac_status )
4484ac_cv_header_stdc=no
4485fi
4486rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4487fi
4488fi
4489fi
4490echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4491echo "${ECHO_T}$ac_cv_header_stdc" >&6
4492if test $ac_cv_header_stdc = yes; then
4493
4494cat >>confdefs.h <<\_ACEOF
4495#define STDC_HEADERS 1
4496_ACEOF
4497
4498fi
4499
4500# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4511		  inttypes.h stdint.h unistd.h
4512do
4513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4514echo "$as_me:$LINENO: checking for $ac_header" >&5
4515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4516if eval "test \"\${$as_ac_Header+set}\" = set"; then
4517  echo $ECHO_N "(cached) $ECHO_C" >&6
4518else
4519  cat >conftest.$ac_ext <<_ACEOF
4520/* confdefs.h.  */
4521_ACEOF
4522cat confdefs.h >>conftest.$ac_ext
4523cat >>conftest.$ac_ext <<_ACEOF
4524/* end confdefs.h.  */
4525$ac_includes_default
4526
4527#include <$ac_header>
4528_ACEOF
4529rm -f conftest.$ac_objext
4530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531  (eval $ac_compile) 2>conftest.er1
4532  ac_status=$?
4533  grep -v '^ *+' conftest.er1 >conftest.err
4534  rm -f conftest.er1
4535  cat conftest.err >&5
4536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537  (exit $ac_status); } &&
4538	 { ac_try='test -z "$ac_c_werror_flag"
4539			 || test ! -s conftest.err'
4540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541  (eval $ac_try) 2>&5
4542  ac_status=$?
4543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544  (exit $ac_status); }; } &&
4545	 { ac_try='test -s conftest.$ac_objext'
4546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4547  (eval $ac_try) 2>&5
4548  ac_status=$?
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); }; }; then
4551  eval "$as_ac_Header=yes"
4552else
4553  echo "$as_me: failed program was:" >&5
4554sed 's/^/| /' conftest.$ac_ext >&5
4555
4556eval "$as_ac_Header=no"
4557fi
4558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559fi
4560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4562if test `eval echo '${'$as_ac_Header'}'` = yes; then
4563  cat >>confdefs.h <<_ACEOF
4564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4565_ACEOF
4566
4567fi
4568
4569done
4570
4571
4572
4573for ac_header in dlfcn.h
4574do
4575as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4576if eval "test \"\${$as_ac_Header+set}\" = set"; then
4577  echo "$as_me:$LINENO: checking for $ac_header" >&5
4578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4579if eval "test \"\${$as_ac_Header+set}\" = set"; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581fi
4582echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4583echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4584else
4585  # Is the header compilable?
4586echo "$as_me:$LINENO: checking $ac_header usability" >&5
4587echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4588cat >conftest.$ac_ext <<_ACEOF
4589/* confdefs.h.  */
4590_ACEOF
4591cat confdefs.h >>conftest.$ac_ext
4592cat >>conftest.$ac_ext <<_ACEOF
4593/* end confdefs.h.  */
4594$ac_includes_default
4595#include <$ac_header>
4596_ACEOF
4597rm -f conftest.$ac_objext
4598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599  (eval $ac_compile) 2>conftest.er1
4600  ac_status=$?
4601  grep -v '^ *+' conftest.er1 >conftest.err
4602  rm -f conftest.er1
4603  cat conftest.err >&5
4604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); } &&
4606	 { ac_try='test -z "$ac_c_werror_flag"
4607			 || test ! -s conftest.err'
4608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609  (eval $ac_try) 2>&5
4610  ac_status=$?
4611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612  (exit $ac_status); }; } &&
4613	 { ac_try='test -s conftest.$ac_objext'
4614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4615  (eval $ac_try) 2>&5
4616  ac_status=$?
4617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618  (exit $ac_status); }; }; then
4619  ac_header_compiler=yes
4620else
4621  echo "$as_me: failed program was:" >&5
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
4624ac_header_compiler=no
4625fi
4626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4628echo "${ECHO_T}$ac_header_compiler" >&6
4629
4630# Is the header present?
4631echo "$as_me:$LINENO: checking $ac_header presence" >&5
4632echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4633cat >conftest.$ac_ext <<_ACEOF
4634/* confdefs.h.  */
4635_ACEOF
4636cat confdefs.h >>conftest.$ac_ext
4637cat >>conftest.$ac_ext <<_ACEOF
4638/* end confdefs.h.  */
4639#include <$ac_header>
4640_ACEOF
4641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4642  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4643  ac_status=$?
4644  grep -v '^ *+' conftest.er1 >conftest.err
4645  rm -f conftest.er1
4646  cat conftest.err >&5
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); } >/dev/null; then
4649  if test -s conftest.err; then
4650    ac_cpp_err=$ac_c_preproc_warn_flag
4651    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4652  else
4653    ac_cpp_err=
4654  fi
4655else
4656  ac_cpp_err=yes
4657fi
4658if test -z "$ac_cpp_err"; then
4659  ac_header_preproc=yes
4660else
4661  echo "$as_me: failed program was:" >&5
4662sed 's/^/| /' conftest.$ac_ext >&5
4663
4664  ac_header_preproc=no
4665fi
4666rm -f conftest.err conftest.$ac_ext
4667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4668echo "${ECHO_T}$ac_header_preproc" >&6
4669
4670# So?  What about this header?
4671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4672  yes:no: )
4673    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4674echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4675    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4676echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4677    ac_header_preproc=yes
4678    ;;
4679  no:yes:* )
4680    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4681echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4682    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4683echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4684    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4685echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4686    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4687echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4688    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4690    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4691echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4692    (
4693      cat <<\_ASBOX
4694## ------------------------------------------ ##
4695## Report this to the AC_PACKAGE_NAME lists.  ##
4696## ------------------------------------------ ##
4697_ASBOX
4698    ) |
4699      sed "s/^/$as_me: WARNING:     /" >&2
4700    ;;
4701esac
4702echo "$as_me:$LINENO: checking for $ac_header" >&5
4703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4704if eval "test \"\${$as_ac_Header+set}\" = set"; then
4705  echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
4707  eval "$as_ac_Header=\$ac_header_preproc"
4708fi
4709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4711
4712fi
4713if test `eval echo '${'$as_ac_Header'}'` = yes; then
4714  cat >>confdefs.h <<_ACEOF
4715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4716_ACEOF
4717
4718fi
4719
4720done
4721
4722ac_ext=cc
4723ac_cpp='$CXXCPP $CPPFLAGS'
4724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4727if test -n "$ac_tool_prefix"; then
4728  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4729  do
4730    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4732echo "$as_me:$LINENO: checking for $ac_word" >&5
4733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734if test "${ac_cv_prog_CXX+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737  if test -n "$CXX"; then
4738  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  test -z "$as_dir" && as_dir=.
4745  for ac_exec_ext in '' $ac_executable_extensions; do
4746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752done
4753
4754fi
4755fi
4756CXX=$ac_cv_prog_CXX
4757if test -n "$CXX"; then
4758  echo "$as_me:$LINENO: result: $CXX" >&5
4759echo "${ECHO_T}$CXX" >&6
4760else
4761  echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
4763fi
4764
4765    test -n "$CXX" && break
4766  done
4767fi
4768if test -z "$CXX"; then
4769  ac_ct_CXX=$CXX
4770  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4771do
4772  # Extract the first word of "$ac_prog", so it can be a program name with args.
4773set dummy $ac_prog; ac_word=$2
4774echo "$as_me:$LINENO: checking for $ac_word" >&5
4775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4776if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4777  echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779  if test -n "$ac_ct_CXX"; then
4780  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785  IFS=$as_save_IFS
4786  test -z "$as_dir" && as_dir=.
4787  for ac_exec_ext in '' $ac_executable_extensions; do
4788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789    ac_cv_prog_ac_ct_CXX="$ac_prog"
4790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791    break 2
4792  fi
4793done
4794done
4795
4796fi
4797fi
4798ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4799if test -n "$ac_ct_CXX"; then
4800  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4801echo "${ECHO_T}$ac_ct_CXX" >&6
4802else
4803  echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6
4805fi
4806
4807  test -n "$ac_ct_CXX" && break
4808done
4809test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4810
4811  CXX=$ac_ct_CXX
4812fi
4813
4814
4815# Provide some information about the compiler.
4816echo "$as_me:$LINENO:" \
4817     "checking for C++ compiler version" >&5
4818ac_compiler=`set X $ac_compile; echo $2`
4819{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4820  (eval $ac_compiler --version </dev/null >&5) 2>&5
4821  ac_status=$?
4822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823  (exit $ac_status); }
4824{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4825  (eval $ac_compiler -v </dev/null >&5) 2>&5
4826  ac_status=$?
4827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828  (exit $ac_status); }
4829{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4830  (eval $ac_compiler -V </dev/null >&5) 2>&5
4831  ac_status=$?
4832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833  (exit $ac_status); }
4834
4835echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4836echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4837if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4838  echo $ECHO_N "(cached) $ECHO_C" >&6
4839else
4840  cat >conftest.$ac_ext <<_ACEOF
4841/* confdefs.h.  */
4842_ACEOF
4843cat confdefs.h >>conftest.$ac_ext
4844cat >>conftest.$ac_ext <<_ACEOF
4845/* end confdefs.h.  */
4846
4847int
4848main ()
4849{
4850#ifndef __GNUC__
4851       choke me
4852#endif
4853
4854  ;
4855  return 0;
4856}
4857_ACEOF
4858rm -f conftest.$ac_objext
4859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860  (eval $ac_compile) 2>conftest.er1
4861  ac_status=$?
4862  grep -v '^ *+' conftest.er1 >conftest.err
4863  rm -f conftest.er1
4864  cat conftest.err >&5
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); } &&
4867	 { ac_try='test -z "$ac_cxx_werror_flag"
4868			 || test ! -s conftest.err'
4869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870  (eval $ac_try) 2>&5
4871  ac_status=$?
4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); }; } &&
4874	 { ac_try='test -s conftest.$ac_objext'
4875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876  (eval $ac_try) 2>&5
4877  ac_status=$?
4878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879  (exit $ac_status); }; }; then
4880  ac_compiler_gnu=yes
4881else
4882  echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885ac_compiler_gnu=no
4886fi
4887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4888ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4889
4890fi
4891echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4892echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4893GXX=`test $ac_compiler_gnu = yes && echo yes`
4894ac_test_CXXFLAGS=${CXXFLAGS+set}
4895ac_save_CXXFLAGS=$CXXFLAGS
4896CXXFLAGS="-g"
4897echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4898echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4899if test "${ac_cv_prog_cxx_g+set}" = set; then
4900  echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902  cat >conftest.$ac_ext <<_ACEOF
4903/* confdefs.h.  */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h.  */
4908
4909int
4910main ()
4911{
4912
4913  ;
4914  return 0;
4915}
4916_ACEOF
4917rm -f conftest.$ac_objext
4918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919  (eval $ac_compile) 2>conftest.er1
4920  ac_status=$?
4921  grep -v '^ *+' conftest.er1 >conftest.err
4922  rm -f conftest.er1
4923  cat conftest.err >&5
4924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925  (exit $ac_status); } &&
4926	 { ac_try='test -z "$ac_cxx_werror_flag"
4927			 || test ! -s conftest.err'
4928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929  (eval $ac_try) 2>&5
4930  ac_status=$?
4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932  (exit $ac_status); }; } &&
4933	 { ac_try='test -s conftest.$ac_objext'
4934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935  (eval $ac_try) 2>&5
4936  ac_status=$?
4937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938  (exit $ac_status); }; }; then
4939  ac_cv_prog_cxx_g=yes
4940else
4941  echo "$as_me: failed program was:" >&5
4942sed 's/^/| /' conftest.$ac_ext >&5
4943
4944ac_cv_prog_cxx_g=no
4945fi
4946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947fi
4948echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4949echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4950if test "$ac_test_CXXFLAGS" = set; then
4951  CXXFLAGS=$ac_save_CXXFLAGS
4952elif test $ac_cv_prog_cxx_g = yes; then
4953  if test "$GXX" = yes; then
4954    CXXFLAGS="-g -O2"
4955  else
4956    CXXFLAGS="-g"
4957  fi
4958else
4959  if test "$GXX" = yes; then
4960    CXXFLAGS="-O2"
4961  else
4962    CXXFLAGS=
4963  fi
4964fi
4965for ac_declaration in \
4966   '' \
4967   'extern "C" void std::exit (int) throw (); using std::exit;' \
4968   'extern "C" void std::exit (int); using std::exit;' \
4969   'extern "C" void exit (int) throw ();' \
4970   'extern "C" void exit (int);' \
4971   'void exit (int);'
4972do
4973  cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h.  */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h.  */
4979$ac_declaration
4980#include <stdlib.h>
4981int
4982main ()
4983{
4984exit (42);
4985  ;
4986  return 0;
4987}
4988_ACEOF
4989rm -f conftest.$ac_objext
4990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4991  (eval $ac_compile) 2>conftest.er1
4992  ac_status=$?
4993  grep -v '^ *+' conftest.er1 >conftest.err
4994  rm -f conftest.er1
4995  cat conftest.err >&5
4996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997  (exit $ac_status); } &&
4998	 { ac_try='test -z "$ac_cxx_werror_flag"
4999			 || test ! -s conftest.err'
5000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001  (eval $ac_try) 2>&5
5002  ac_status=$?
5003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004  (exit $ac_status); }; } &&
5005	 { ac_try='test -s conftest.$ac_objext'
5006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007  (eval $ac_try) 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); }; }; then
5011  :
5012else
5013  echo "$as_me: failed program was:" >&5
5014sed 's/^/| /' conftest.$ac_ext >&5
5015
5016continue
5017fi
5018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5019  cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h.  */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h.  */
5025$ac_declaration
5026int
5027main ()
5028{
5029exit (42);
5030  ;
5031  return 0;
5032}
5033_ACEOF
5034rm -f conftest.$ac_objext
5035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036  (eval $ac_compile) 2>conftest.er1
5037  ac_status=$?
5038  grep -v '^ *+' conftest.er1 >conftest.err
5039  rm -f conftest.er1
5040  cat conftest.err >&5
5041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042  (exit $ac_status); } &&
5043	 { ac_try='test -z "$ac_cxx_werror_flag"
5044			 || test ! -s conftest.err'
5045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046  (eval $ac_try) 2>&5
5047  ac_status=$?
5048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049  (exit $ac_status); }; } &&
5050	 { ac_try='test -s conftest.$ac_objext'
5051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052  (eval $ac_try) 2>&5
5053  ac_status=$?
5054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); }; }; then
5056  break
5057else
5058  echo "$as_me: failed program was:" >&5
5059sed 's/^/| /' conftest.$ac_ext >&5
5060
5061fi
5062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5063done
5064rm -f conftest*
5065if test -n "$ac_declaration"; then
5066  echo '#ifdef __cplusplus' >>confdefs.h
5067  echo $ac_declaration      >>confdefs.h
5068  echo '#endif'             >>confdefs.h
5069fi
5070
5071ac_ext=cc
5072ac_cpp='$CXXCPP $CPPFLAGS'
5073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5076
5077
5078
5079if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5080    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5081    (test "X$CXX" != "Xg++"))) ; then
5082  ac_ext=cc
5083ac_cpp='$CXXCPP $CPPFLAGS'
5084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5087echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5088echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5089if test -z "$CXXCPP"; then
5090  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5091  echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093      # Double quotes because CXXCPP needs to be expanded
5094    for CXXCPP in "$CXX -E" "/lib/cpp"
5095    do
5096      ac_preproc_ok=false
5097for ac_cxx_preproc_warn_flag in '' yes
5098do
5099  # Use a header file that comes with gcc, so configuring glibc
5100  # with a fresh cross-compiler works.
5101  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5102  # <limits.h> exists even on freestanding compilers.
5103  # On the NeXT, cc -E runs the code through the compiler's parser,
5104  # not just through cpp. "Syntax error" is here to catch this case.
5105  cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h.  */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h.  */
5111#ifdef __STDC__
5112# include <limits.h>
5113#else
5114# include <assert.h>
5115#endif
5116		     Syntax error
5117_ACEOF
5118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5119  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5120  ac_status=$?
5121  grep -v '^ *+' conftest.er1 >conftest.err
5122  rm -f conftest.er1
5123  cat conftest.err >&5
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); } >/dev/null; then
5126  if test -s conftest.err; then
5127    ac_cpp_err=$ac_cxx_preproc_warn_flag
5128    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5129  else
5130    ac_cpp_err=
5131  fi
5132else
5133  ac_cpp_err=yes
5134fi
5135if test -z "$ac_cpp_err"; then
5136  :
5137else
5138  echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141  # Broken: fails on valid input.
5142continue
5143fi
5144rm -f conftest.err conftest.$ac_ext
5145
5146  # OK, works on sane cases.  Now check whether non-existent headers
5147  # can be detected and how.
5148  cat >conftest.$ac_ext <<_ACEOF
5149/* confdefs.h.  */
5150_ACEOF
5151cat confdefs.h >>conftest.$ac_ext
5152cat >>conftest.$ac_ext <<_ACEOF
5153/* end confdefs.h.  */
5154#include <ac_nonexistent.h>
5155_ACEOF
5156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5157  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5158  ac_status=$?
5159  grep -v '^ *+' conftest.er1 >conftest.err
5160  rm -f conftest.er1
5161  cat conftest.err >&5
5162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163  (exit $ac_status); } >/dev/null; then
5164  if test -s conftest.err; then
5165    ac_cpp_err=$ac_cxx_preproc_warn_flag
5166    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5167  else
5168    ac_cpp_err=
5169  fi
5170else
5171  ac_cpp_err=yes
5172fi
5173if test -z "$ac_cpp_err"; then
5174  # Broken: success on invalid input.
5175continue
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180  # Passes both tests.
5181ac_preproc_ok=:
5182break
5183fi
5184rm -f conftest.err conftest.$ac_ext
5185
5186done
5187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188rm -f conftest.err conftest.$ac_ext
5189if $ac_preproc_ok; then
5190  break
5191fi
5192
5193    done
5194    ac_cv_prog_CXXCPP=$CXXCPP
5195
5196fi
5197  CXXCPP=$ac_cv_prog_CXXCPP
5198else
5199  ac_cv_prog_CXXCPP=$CXXCPP
5200fi
5201echo "$as_me:$LINENO: result: $CXXCPP" >&5
5202echo "${ECHO_T}$CXXCPP" >&6
5203ac_preproc_ok=false
5204for ac_cxx_preproc_warn_flag in '' yes
5205do
5206  # Use a header file that comes with gcc, so configuring glibc
5207  # with a fresh cross-compiler works.
5208  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209  # <limits.h> exists even on freestanding compilers.
5210  # On the NeXT, cc -E runs the code through the compiler's parser,
5211  # not just through cpp. "Syntax error" is here to catch this case.
5212  cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h.  */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h.  */
5218#ifdef __STDC__
5219# include <limits.h>
5220#else
5221# include <assert.h>
5222#endif
5223		     Syntax error
5224_ACEOF
5225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5226  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5227  ac_status=$?
5228  grep -v '^ *+' conftest.er1 >conftest.err
5229  rm -f conftest.er1
5230  cat conftest.err >&5
5231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232  (exit $ac_status); } >/dev/null; then
5233  if test -s conftest.err; then
5234    ac_cpp_err=$ac_cxx_preproc_warn_flag
5235    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5236  else
5237    ac_cpp_err=
5238  fi
5239else
5240  ac_cpp_err=yes
5241fi
5242if test -z "$ac_cpp_err"; then
5243  :
5244else
5245  echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248  # Broken: fails on valid input.
5249continue
5250fi
5251rm -f conftest.err conftest.$ac_ext
5252
5253  # OK, works on sane cases.  Now check whether non-existent headers
5254  # can be detected and how.
5255  cat >conftest.$ac_ext <<_ACEOF
5256/* confdefs.h.  */
5257_ACEOF
5258cat confdefs.h >>conftest.$ac_ext
5259cat >>conftest.$ac_ext <<_ACEOF
5260/* end confdefs.h.  */
5261#include <ac_nonexistent.h>
5262_ACEOF
5263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5265  ac_status=$?
5266  grep -v '^ *+' conftest.er1 >conftest.err
5267  rm -f conftest.er1
5268  cat conftest.err >&5
5269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270  (exit $ac_status); } >/dev/null; then
5271  if test -s conftest.err; then
5272    ac_cpp_err=$ac_cxx_preproc_warn_flag
5273    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5274  else
5275    ac_cpp_err=
5276  fi
5277else
5278  ac_cpp_err=yes
5279fi
5280if test -z "$ac_cpp_err"; then
5281  # Broken: success on invalid input.
5282continue
5283else
5284  echo "$as_me: failed program was:" >&5
5285sed 's/^/| /' conftest.$ac_ext >&5
5286
5287  # Passes both tests.
5288ac_preproc_ok=:
5289break
5290fi
5291rm -f conftest.err conftest.$ac_ext
5292
5293done
5294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295rm -f conftest.err conftest.$ac_ext
5296if $ac_preproc_ok; then
5297  :
5298else
5299  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5300See \`config.log' for more details." >&5
5301echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5302See \`config.log' for more details." >&2;}
5303   { (exit 1); exit 1; }; }
5304fi
5305
5306ac_ext=cc
5307ac_cpp='$CXXCPP $CPPFLAGS'
5308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5311
5312fi
5313
5314
5315ac_ext=f
5316ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5317ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5318ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5319if test -n "$ac_tool_prefix"; then
5320  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5321  do
5322    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5323set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5324echo "$as_me:$LINENO: checking for $ac_word" >&5
5325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326if test "${ac_cv_prog_F77+set}" = set; then
5327  echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329  if test -n "$F77"; then
5330  ac_cv_prog_F77="$F77" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335  IFS=$as_save_IFS
5336  test -z "$as_dir" && as_dir=.
5337  for ac_exec_ext in '' $ac_executable_extensions; do
5338  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341    break 2
5342  fi
5343done
5344done
5345
5346fi
5347fi
5348F77=$ac_cv_prog_F77
5349if test -n "$F77"; then
5350  echo "$as_me:$LINENO: result: $F77" >&5
5351echo "${ECHO_T}$F77" >&6
5352else
5353  echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355fi
5356
5357    test -n "$F77" && break
5358  done
5359fi
5360if test -z "$F77"; then
5361  ac_ct_F77=$F77
5362  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5363do
5364  # Extract the first word of "$ac_prog", so it can be a program name with args.
5365set dummy $ac_prog; ac_word=$2
5366echo "$as_me:$LINENO: checking for $ac_word" >&5
5367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5368if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5369  echo $ECHO_N "(cached) $ECHO_C" >&6
5370else
5371  if test -n "$ac_ct_F77"; then
5372  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5373else
5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375for as_dir in $PATH
5376do
5377  IFS=$as_save_IFS
5378  test -z "$as_dir" && as_dir=.
5379  for ac_exec_ext in '' $ac_executable_extensions; do
5380  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381    ac_cv_prog_ac_ct_F77="$ac_prog"
5382    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5383    break 2
5384  fi
5385done
5386done
5387
5388fi
5389fi
5390ac_ct_F77=$ac_cv_prog_ac_ct_F77
5391if test -n "$ac_ct_F77"; then
5392  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5393echo "${ECHO_T}$ac_ct_F77" >&6
5394else
5395  echo "$as_me:$LINENO: result: no" >&5
5396echo "${ECHO_T}no" >&6
5397fi
5398
5399  test -n "$ac_ct_F77" && break
5400done
5401
5402  F77=$ac_ct_F77
5403fi
5404
5405
5406# Provide some information about the compiler.
5407echo "$as_me:5407:" \
5408     "checking for Fortran 77 compiler version" >&5
5409ac_compiler=`set X $ac_compile; echo $2`
5410{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5411  (eval $ac_compiler --version </dev/null >&5) 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }
5415{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5416  (eval $ac_compiler -v </dev/null >&5) 2>&5
5417  ac_status=$?
5418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419  (exit $ac_status); }
5420{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5421  (eval $ac_compiler -V </dev/null >&5) 2>&5
5422  ac_status=$?
5423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424  (exit $ac_status); }
5425rm -f a.out
5426
5427# If we don't use `.F' as extension, the preprocessor is not run on the
5428# input file.  (Note that this only needs to work for GNU compilers.)
5429ac_save_ext=$ac_ext
5430ac_ext=F
5431echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5432echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5433if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  cat >conftest.$ac_ext <<_ACEOF
5437      program main
5438#ifndef __GNUC__
5439       choke me
5440#endif
5441
5442      end
5443_ACEOF
5444rm -f conftest.$ac_objext
5445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5446  (eval $ac_compile) 2>conftest.er1
5447  ac_status=$?
5448  grep -v '^ *+' conftest.er1 >conftest.err
5449  rm -f conftest.er1
5450  cat conftest.err >&5
5451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452  (exit $ac_status); } &&
5453	 { ac_try='test -z "$ac_f77_werror_flag"
5454			 || test ! -s conftest.err'
5455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5456  (eval $ac_try) 2>&5
5457  ac_status=$?
5458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459  (exit $ac_status); }; } &&
5460	 { ac_try='test -s conftest.$ac_objext'
5461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462  (eval $ac_try) 2>&5
5463  ac_status=$?
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); }; }; then
5466  ac_compiler_gnu=yes
5467else
5468  echo "$as_me: failed program was:" >&5
5469sed 's/^/| /' conftest.$ac_ext >&5
5470
5471ac_compiler_gnu=no
5472fi
5473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5474ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5475
5476fi
5477echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5478echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5479ac_ext=$ac_save_ext
5480ac_test_FFLAGS=${FFLAGS+set}
5481ac_save_FFLAGS=$FFLAGS
5482FFLAGS=
5483echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5484echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5485if test "${ac_cv_prog_f77_g+set}" = set; then
5486  echo $ECHO_N "(cached) $ECHO_C" >&6
5487else
5488  FFLAGS=-g
5489cat >conftest.$ac_ext <<_ACEOF
5490      program main
5491
5492      end
5493_ACEOF
5494rm -f conftest.$ac_objext
5495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5496  (eval $ac_compile) 2>conftest.er1
5497  ac_status=$?
5498  grep -v '^ *+' conftest.er1 >conftest.err
5499  rm -f conftest.er1
5500  cat conftest.err >&5
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); } &&
5503	 { ac_try='test -z "$ac_f77_werror_flag"
5504			 || test ! -s conftest.err'
5505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506  (eval $ac_try) 2>&5
5507  ac_status=$?
5508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509  (exit $ac_status); }; } &&
5510	 { ac_try='test -s conftest.$ac_objext'
5511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512  (eval $ac_try) 2>&5
5513  ac_status=$?
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); }; }; then
5516  ac_cv_prog_f77_g=yes
5517else
5518  echo "$as_me: failed program was:" >&5
5519sed 's/^/| /' conftest.$ac_ext >&5
5520
5521ac_cv_prog_f77_g=no
5522fi
5523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5524
5525fi
5526echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5527echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5528if test "$ac_test_FFLAGS" = set; then
5529  FFLAGS=$ac_save_FFLAGS
5530elif test $ac_cv_prog_f77_g = yes; then
5531  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5532    FFLAGS="-g -O2"
5533  else
5534    FFLAGS="-g"
5535  fi
5536else
5537  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5538    FFLAGS="-O2"
5539  else
5540    FFLAGS=
5541  fi
5542fi
5543
5544G77=`test $ac_compiler_gnu = yes && echo yes`
5545ac_ext=c
5546ac_cpp='$CPP $CPPFLAGS'
5547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550
5551
5552
5553# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5554
5555# find the maximum length of command line arguments
5556echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5557echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5558if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5559  echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561    i=0
5562  teststring="ABCD"
5563
5564  case $build_os in
5565  msdosdjgpp*)
5566    # On DJGPP, this test can blow up pretty badly due to problems in libc
5567    # (any single argument exceeding 2000 bytes causes a buffer overrun
5568    # during glob expansion).  Even if it were fixed, the result of this
5569    # check would be larger than it should be.
5570    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5571    ;;
5572
5573  gnu*)
5574    # Under GNU Hurd, this test is not required because there is
5575    # no limit to the length of command line arguments.
5576    # Libtool will interpret -1 as no limit whatsoever
5577    lt_cv_sys_max_cmd_len=-1;
5578    ;;
5579
5580  cygwin* | mingw*)
5581    # On Win9x/ME, this test blows up -- it succeeds, but takes
5582    # about 5 minutes as the teststring grows exponentially.
5583    # Worse, since 9x/ME are not pre-emptively multitasking,
5584    # you end up with a "frozen" computer, even though with patience
5585    # the test eventually succeeds (with a max line length of 256k).
5586    # Instead, let's just punt: use the minimum linelength reported by
5587    # all of the supported platforms: 8192 (on NT/2K/XP).
5588    lt_cv_sys_max_cmd_len=8192;
5589    ;;
5590
5591  amigaos*)
5592    # On AmigaOS with pdksh, this test takes hours, literally.
5593    # So we just punt and use a minimum line length of 8192.
5594    lt_cv_sys_max_cmd_len=8192;
5595    ;;
5596
5597  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5598    # This has been around since 386BSD, at least.  Likely further.
5599    if test -x /sbin/sysctl; then
5600      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5601    elif test -x /usr/sbin/sysctl; then
5602      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5603    else
5604      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5605    fi
5606    # And add a safety zone
5607    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5608    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5609    ;;
5610  osf*)
5611    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5612    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5613    # nice to cause kernel panics so lets avoid the loop below.
5614    # First set a reasonable default.
5615    lt_cv_sys_max_cmd_len=16384
5616    #
5617    if test -x /sbin/sysconfig; then
5618      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5619        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5620      esac
5621    fi
5622    ;;
5623  *)
5624    # If test is not a shell built-in, we'll probably end up computing a
5625    # maximum length that is only half of the actual maximum length, but
5626    # we can't tell.
5627    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5628    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5629	       = "XX$teststring") >/dev/null 2>&1 &&
5630	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5631	    lt_cv_sys_max_cmd_len=$new_result &&
5632	    test $i != 17 # 1/2 MB should be enough
5633    do
5634      i=`expr $i + 1`
5635      teststring=$teststring$teststring
5636    done
5637    teststring=
5638    # Add a significant safety factor because C++ compilers can tack on massive
5639    # amounts of additional arguments before passing them to the linker.
5640    # It appears as though 1/2 is a usable value.
5641    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5642    ;;
5643  esac
5644
5645fi
5646
5647if test -n $lt_cv_sys_max_cmd_len ; then
5648  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5649echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5650else
5651  echo "$as_me:$LINENO: result: none" >&5
5652echo "${ECHO_T}none" >&6
5653fi
5654
5655
5656
5657
5658# Check for command to grab the raw symbol name followed by C symbol from nm.
5659echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5660echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5661if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5662  echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664
5665# These are sane defaults that work on at least a few old systems.
5666# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5667
5668# Character class describing NM global symbol codes.
5669symcode='[BCDEGRST]'
5670
5671# Regexp to match symbols that can be accessed directly from C.
5672sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5673
5674# Transform an extracted symbol line into a proper C declaration
5675lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5676
5677# Transform an extracted symbol line into symbol name and symbol address
5678lt_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'"
5679
5680# Define system-specific variables.
5681case $host_os in
5682aix*)
5683  symcode='[BCDT]'
5684  ;;
5685cygwin* | mingw* | pw32*)
5686  symcode='[ABCDGISTW]'
5687  ;;
5688hpux*) # Its linker distinguishes data from code symbols
5689  if test "$host_cpu" = ia64; then
5690    symcode='[ABCDEGRST]'
5691  fi
5692  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5693  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'"
5694  ;;
5695linux*)
5696  if test "$host_cpu" = ia64; then
5697    symcode='[ABCDGIRSTW]'
5698    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5699    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'"
5700  fi
5701  ;;
5702irix* | nonstopux*)
5703  symcode='[BCDEGRST]'
5704  ;;
5705osf*)
5706  symcode='[BCDEGQRST]'
5707  ;;
5708solaris* | sysv5*)
5709  symcode='[BDRT]'
5710  ;;
5711sysv4)
5712  symcode='[DFNSTU]'
5713  ;;
5714esac
5715
5716# Handle CRLF in mingw tool chain
5717opt_cr=
5718case $build_os in
5719mingw*)
5720  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5721  ;;
5722esac
5723
5724# If we're using GNU nm, then use its standard symbol codes.
5725case `$NM -V 2>&1` in
5726*GNU* | *'with BFD'*)
5727  symcode='[ABCDGIRSTW]' ;;
5728esac
5729
5730# Try without a prefix undercore, then with it.
5731for ac_symprfx in "" "_"; do
5732
5733  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5734  symxfrm="\\1 $ac_symprfx\\2 \\2"
5735
5736  # Write the raw and C identifiers.
5737  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5738
5739  # Check to see that the pipe works correctly.
5740  pipe_works=no
5741
5742  rm -f conftest*
5743  cat > conftest.$ac_ext <<EOF
5744#ifdef __cplusplus
5745extern "C" {
5746#endif
5747char nm_test_var;
5748void nm_test_func(){}
5749#ifdef __cplusplus
5750}
5751#endif
5752int main(){nm_test_var='a';nm_test_func();return(0);}
5753EOF
5754
5755  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756  (eval $ac_compile) 2>&5
5757  ac_status=$?
5758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759  (exit $ac_status); }; then
5760    # Now try to grab the symbols.
5761    nlist=conftest.nm
5762    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5763  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5764  ac_status=$?
5765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766  (exit $ac_status); } && test -s "$nlist"; then
5767      # Try sorting and uniquifying the output.
5768      if sort "$nlist" | uniq > "$nlist"T; then
5769	mv -f "$nlist"T "$nlist"
5770      else
5771	rm -f "$nlist"T
5772      fi
5773
5774      # Make sure that we snagged all the symbols we need.
5775      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5776	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5777	  cat <<EOF > conftest.$ac_ext
5778#ifdef __cplusplus
5779extern "C" {
5780#endif
5781
5782EOF
5783	  # Now generate the symbol file.
5784	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5785
5786	  cat <<EOF >> conftest.$ac_ext
5787#if defined (__STDC__) && __STDC__
5788# define lt_ptr_t void *
5789#else
5790# define lt_ptr_t char *
5791# define const
5792#endif
5793
5794/* The mapping between symbol names and symbols. */
5795const struct {
5796  const char *name;
5797  lt_ptr_t address;
5798}
5799lt_preloaded_symbols[] =
5800{
5801EOF
5802	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5803	  cat <<\EOF >> conftest.$ac_ext
5804  {0, (lt_ptr_t) 0}
5805};
5806
5807#ifdef __cplusplus
5808}
5809#endif
5810EOF
5811	  # Now try linking the two files.
5812	  mv conftest.$ac_objext conftstm.$ac_objext
5813	  lt_save_LIBS="$LIBS"
5814	  lt_save_CFLAGS="$CFLAGS"
5815	  LIBS="conftstm.$ac_objext"
5816	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5817	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5818  (eval $ac_link) 2>&5
5819  ac_status=$?
5820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5822	    pipe_works=yes
5823	  fi
5824	  LIBS="$lt_save_LIBS"
5825	  CFLAGS="$lt_save_CFLAGS"
5826	else
5827	  echo "cannot find nm_test_func in $nlist" >&5
5828	fi
5829      else
5830	echo "cannot find nm_test_var in $nlist" >&5
5831      fi
5832    else
5833      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5834    fi
5835  else
5836    echo "$progname: failed program was:" >&5
5837    cat conftest.$ac_ext >&5
5838  fi
5839  rm -f conftest* conftst*
5840
5841  # Do not use the global_symbol_pipe unless it works.
5842  if test "$pipe_works" = yes; then
5843    break
5844  else
5845    lt_cv_sys_global_symbol_pipe=
5846  fi
5847done
5848
5849fi
5850
5851if test -z "$lt_cv_sys_global_symbol_pipe"; then
5852  lt_cv_sys_global_symbol_to_cdecl=
5853fi
5854if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5855  echo "$as_me:$LINENO: result: failed" >&5
5856echo "${ECHO_T}failed" >&6
5857else
5858  echo "$as_me:$LINENO: result: ok" >&5
5859echo "${ECHO_T}ok" >&6
5860fi
5861
5862echo "$as_me:$LINENO: checking for objdir" >&5
5863echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5864if test "${lt_cv_objdir+set}" = set; then
5865  echo $ECHO_N "(cached) $ECHO_C" >&6
5866else
5867  rm -f .libs 2>/dev/null
5868mkdir .libs 2>/dev/null
5869if test -d .libs; then
5870  lt_cv_objdir=.libs
5871else
5872  # MS-DOS does not allow filenames that begin with a dot.
5873  lt_cv_objdir=_libs
5874fi
5875rmdir .libs 2>/dev/null
5876fi
5877echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5878echo "${ECHO_T}$lt_cv_objdir" >&6
5879objdir=$lt_cv_objdir
5880
5881
5882
5883
5884
5885case $host_os in
5886aix3*)
5887  # AIX sometimes has problems with the GCC collect2 program.  For some
5888  # reason, if we set the COLLECT_NAMES environment variable, the problems
5889  # vanish in a puff of smoke.
5890  if test "X${COLLECT_NAMES+set}" != Xset; then
5891    COLLECT_NAMES=
5892    export COLLECT_NAMES
5893  fi
5894  ;;
5895esac
5896
5897# Sed substitution that helps us do robust quoting.  It backslashifies
5898# metacharacters that are still active within double-quoted strings.
5899Xsed='sed -e 1s/^X//'
5900sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5901
5902# Same as above, but do not quote variable references.
5903double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5904
5905# Sed substitution to delay expansion of an escaped shell variable in a
5906# double_quote_subst'ed string.
5907delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5908
5909# Sed substitution to avoid accidental globbing in evaled expressions
5910no_glob_subst='s/\*/\\\*/g'
5911
5912# Constants:
5913rm="rm -f"
5914
5915# Global variables:
5916default_ofile=libtool
5917can_build_shared=yes
5918
5919# All known linkers require a `.a' archive for static linking (except MSVC,
5920# which needs '.lib').
5921libext=a
5922ltmain="$ac_aux_dir/ltmain.sh"
5923ofile="$default_ofile"
5924with_gnu_ld="$lt_cv_prog_gnu_ld"
5925
5926if test -n "$ac_tool_prefix"; then
5927  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5928set dummy ${ac_tool_prefix}ar; ac_word=$2
5929echo "$as_me:$LINENO: checking for $ac_word" >&5
5930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931if test "${ac_cv_prog_AR+set}" = set; then
5932  echo $ECHO_N "(cached) $ECHO_C" >&6
5933else
5934  if test -n "$AR"; then
5935  ac_cv_prog_AR="$AR" # Let the user override the test.
5936else
5937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH
5939do
5940  IFS=$as_save_IFS
5941  test -z "$as_dir" && as_dir=.
5942  for ac_exec_ext in '' $ac_executable_extensions; do
5943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944    ac_cv_prog_AR="${ac_tool_prefix}ar"
5945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946    break 2
5947  fi
5948done
5949done
5950
5951fi
5952fi
5953AR=$ac_cv_prog_AR
5954if test -n "$AR"; then
5955  echo "$as_me:$LINENO: result: $AR" >&5
5956echo "${ECHO_T}$AR" >&6
5957else
5958  echo "$as_me:$LINENO: result: no" >&5
5959echo "${ECHO_T}no" >&6
5960fi
5961
5962fi
5963if test -z "$ac_cv_prog_AR"; then
5964  ac_ct_AR=$AR
5965  # Extract the first word of "ar", so it can be a program name with args.
5966set dummy ar; ac_word=$2
5967echo "$as_me:$LINENO: checking for $ac_word" >&5
5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5970  echo $ECHO_N "(cached) $ECHO_C" >&6
5971else
5972  if test -n "$ac_ct_AR"; then
5973  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978  IFS=$as_save_IFS
5979  test -z "$as_dir" && as_dir=.
5980  for ac_exec_ext in '' $ac_executable_extensions; do
5981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982    ac_cv_prog_ac_ct_AR="ar"
5983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984    break 2
5985  fi
5986done
5987done
5988
5989  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5990fi
5991fi
5992ac_ct_AR=$ac_cv_prog_ac_ct_AR
5993if test -n "$ac_ct_AR"; then
5994  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5995echo "${ECHO_T}$ac_ct_AR" >&6
5996else
5997  echo "$as_me:$LINENO: result: no" >&5
5998echo "${ECHO_T}no" >&6
5999fi
6000
6001  AR=$ac_ct_AR
6002else
6003  AR="$ac_cv_prog_AR"
6004fi
6005
6006if test -n "$ac_tool_prefix"; then
6007  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6008set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6009echo "$as_me:$LINENO: checking for $ac_word" >&5
6010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011if test "${ac_cv_prog_RANLIB+set}" = set; then
6012  echo $ECHO_N "(cached) $ECHO_C" >&6
6013else
6014  if test -n "$RANLIB"; then
6015  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020  IFS=$as_save_IFS
6021  test -z "$as_dir" && as_dir=.
6022  for ac_exec_ext in '' $ac_executable_extensions; do
6023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026    break 2
6027  fi
6028done
6029done
6030
6031fi
6032fi
6033RANLIB=$ac_cv_prog_RANLIB
6034if test -n "$RANLIB"; then
6035  echo "$as_me:$LINENO: result: $RANLIB" >&5
6036echo "${ECHO_T}$RANLIB" >&6
6037else
6038  echo "$as_me:$LINENO: result: no" >&5
6039echo "${ECHO_T}no" >&6
6040fi
6041
6042fi
6043if test -z "$ac_cv_prog_RANLIB"; then
6044  ac_ct_RANLIB=$RANLIB
6045  # Extract the first word of "ranlib", so it can be a program name with args.
6046set dummy ranlib; ac_word=$2
6047echo "$as_me:$LINENO: checking for $ac_word" >&5
6048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6050  echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052  if test -n "$ac_ct_RANLIB"; then
6053  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6054else
6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058  IFS=$as_save_IFS
6059  test -z "$as_dir" && as_dir=.
6060  for ac_exec_ext in '' $ac_executable_extensions; do
6061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062    ac_cv_prog_ac_ct_RANLIB="ranlib"
6063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064    break 2
6065  fi
6066done
6067done
6068
6069  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6070fi
6071fi
6072ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6073if test -n "$ac_ct_RANLIB"; then
6074  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6075echo "${ECHO_T}$ac_ct_RANLIB" >&6
6076else
6077  echo "$as_me:$LINENO: result: no" >&5
6078echo "${ECHO_T}no" >&6
6079fi
6080
6081  RANLIB=$ac_ct_RANLIB
6082else
6083  RANLIB="$ac_cv_prog_RANLIB"
6084fi
6085
6086if test -n "$ac_tool_prefix"; then
6087  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6088set dummy ${ac_tool_prefix}strip; ac_word=$2
6089echo "$as_me:$LINENO: checking for $ac_word" >&5
6090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6091if test "${ac_cv_prog_STRIP+set}" = set; then
6092  echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094  if test -n "$STRIP"; then
6095  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100  IFS=$as_save_IFS
6101  test -z "$as_dir" && as_dir=.
6102  for ac_exec_ext in '' $ac_executable_extensions; do
6103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106    break 2
6107  fi
6108done
6109done
6110
6111fi
6112fi
6113STRIP=$ac_cv_prog_STRIP
6114if test -n "$STRIP"; then
6115  echo "$as_me:$LINENO: result: $STRIP" >&5
6116echo "${ECHO_T}$STRIP" >&6
6117else
6118  echo "$as_me:$LINENO: result: no" >&5
6119echo "${ECHO_T}no" >&6
6120fi
6121
6122fi
6123if test -z "$ac_cv_prog_STRIP"; then
6124  ac_ct_STRIP=$STRIP
6125  # Extract the first word of "strip", so it can be a program name with args.
6126set dummy strip; ac_word=$2
6127echo "$as_me:$LINENO: checking for $ac_word" >&5
6128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6129if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6130  echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132  if test -n "$ac_ct_STRIP"; then
6133  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6134else
6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136for as_dir in $PATH
6137do
6138  IFS=$as_save_IFS
6139  test -z "$as_dir" && as_dir=.
6140  for ac_exec_ext in '' $ac_executable_extensions; do
6141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6142    ac_cv_prog_ac_ct_STRIP="strip"
6143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6144    break 2
6145  fi
6146done
6147done
6148
6149  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6150fi
6151fi
6152ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6153if test -n "$ac_ct_STRIP"; then
6154  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6155echo "${ECHO_T}$ac_ct_STRIP" >&6
6156else
6157  echo "$as_me:$LINENO: result: no" >&5
6158echo "${ECHO_T}no" >&6
6159fi
6160
6161  STRIP=$ac_ct_STRIP
6162else
6163  STRIP="$ac_cv_prog_STRIP"
6164fi
6165
6166
6167old_CC="$CC"
6168old_CFLAGS="$CFLAGS"
6169
6170# Set sane defaults for various variables
6171test -z "$AR" && AR=ar
6172test -z "$AR_FLAGS" && AR_FLAGS=cru
6173test -z "$AS" && AS=as
6174test -z "$CC" && CC=cc
6175test -z "$LTCC" && LTCC=$CC
6176test -z "$DLLTOOL" && DLLTOOL=dlltool
6177test -z "$LD" && LD=ld
6178test -z "$LN_S" && LN_S="ln -s"
6179test -z "$MAGIC_CMD" && MAGIC_CMD=file
6180test -z "$NM" && NM=nm
6181test -z "$SED" && SED=sed
6182test -z "$OBJDUMP" && OBJDUMP=objdump
6183test -z "$RANLIB" && RANLIB=:
6184test -z "$STRIP" && STRIP=:
6185test -z "$ac_objext" && ac_objext=o
6186
6187# Determine commands to create old-style static archives.
6188old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6189old_postinstall_cmds='chmod 644 $oldlib'
6190old_postuninstall_cmds=
6191
6192if test -n "$RANLIB"; then
6193  case $host_os in
6194  openbsd*)
6195    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6196    ;;
6197  *)
6198    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6199    ;;
6200  esac
6201  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6202fi
6203
6204for cc_temp in $compiler""; do
6205  case $cc_temp in
6206    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6207    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6208    \-*) ;;
6209    *) break;;
6210  esac
6211done
6212cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6213
6214
6215# Only perform the check for file, if the check method requires it
6216case $deplibs_check_method in
6217file_magic*)
6218  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6219    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6220echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6221if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6222  echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224  case $MAGIC_CMD in
6225[\\/*] |  ?:[\\/]*)
6226  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6227  ;;
6228*)
6229  lt_save_MAGIC_CMD="$MAGIC_CMD"
6230  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6231  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6232  for ac_dir in $ac_dummy; do
6233    IFS="$lt_save_ifs"
6234    test -z "$ac_dir" && ac_dir=.
6235    if test -f $ac_dir/${ac_tool_prefix}file; then
6236      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6237      if test -n "$file_magic_test_file"; then
6238	case $deplibs_check_method in
6239	"file_magic "*)
6240	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6241	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6242	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6243	    $EGREP "$file_magic_regex" > /dev/null; then
6244	    :
6245	  else
6246	    cat <<EOF 1>&2
6247
6248*** Warning: the command libtool uses to detect shared libraries,
6249*** $file_magic_cmd, produces output that libtool cannot recognize.
6250*** The result is that libtool may fail to recognize shared libraries
6251*** as such.  This will affect the creation of libtool libraries that
6252*** depend on shared libraries, but programs linked with such libtool
6253*** libraries will work regardless of this problem.  Nevertheless, you
6254*** may want to report the problem to your system manager and/or to
6255*** bug-libtool@gnu.org
6256
6257EOF
6258	  fi ;;
6259	esac
6260      fi
6261      break
6262    fi
6263  done
6264  IFS="$lt_save_ifs"
6265  MAGIC_CMD="$lt_save_MAGIC_CMD"
6266  ;;
6267esac
6268fi
6269
6270MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6271if test -n "$MAGIC_CMD"; then
6272  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6273echo "${ECHO_T}$MAGIC_CMD" >&6
6274else
6275  echo "$as_me:$LINENO: result: no" >&5
6276echo "${ECHO_T}no" >&6
6277fi
6278
6279if test -z "$lt_cv_path_MAGIC_CMD"; then
6280  if test -n "$ac_tool_prefix"; then
6281    echo "$as_me:$LINENO: checking for file" >&5
6282echo $ECHO_N "checking for file... $ECHO_C" >&6
6283if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6284  echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
6286  case $MAGIC_CMD in
6287[\\/*] |  ?:[\\/]*)
6288  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6289  ;;
6290*)
6291  lt_save_MAGIC_CMD="$MAGIC_CMD"
6292  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6293  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6294  for ac_dir in $ac_dummy; do
6295    IFS="$lt_save_ifs"
6296    test -z "$ac_dir" && ac_dir=.
6297    if test -f $ac_dir/file; then
6298      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6299      if test -n "$file_magic_test_file"; then
6300	case $deplibs_check_method in
6301	"file_magic "*)
6302	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6303	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6304	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6305	    $EGREP "$file_magic_regex" > /dev/null; then
6306	    :
6307	  else
6308	    cat <<EOF 1>&2
6309
6310*** Warning: the command libtool uses to detect shared libraries,
6311*** $file_magic_cmd, produces output that libtool cannot recognize.
6312*** The result is that libtool may fail to recognize shared libraries
6313*** as such.  This will affect the creation of libtool libraries that
6314*** depend on shared libraries, but programs linked with such libtool
6315*** libraries will work regardless of this problem.  Nevertheless, you
6316*** may want to report the problem to your system manager and/or to
6317*** bug-libtool@gnu.org
6318
6319EOF
6320	  fi ;;
6321	esac
6322      fi
6323      break
6324    fi
6325  done
6326  IFS="$lt_save_ifs"
6327  MAGIC_CMD="$lt_save_MAGIC_CMD"
6328  ;;
6329esac
6330fi
6331
6332MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6333if test -n "$MAGIC_CMD"; then
6334  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6335echo "${ECHO_T}$MAGIC_CMD" >&6
6336else
6337  echo "$as_me:$LINENO: result: no" >&5
6338echo "${ECHO_T}no" >&6
6339fi
6340
6341  else
6342    MAGIC_CMD=:
6343  fi
6344fi
6345
6346  fi
6347  ;;
6348esac
6349
6350enable_dlopen=no
6351enable_win32_dll=no
6352
6353# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6354if test "${enable_libtool_lock+set}" = set; then
6355  enableval="$enable_libtool_lock"
6356
6357fi;
6358test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6359
6360
6361# Check whether --with-pic or --without-pic was given.
6362if test "${with_pic+set}" = set; then
6363  withval="$with_pic"
6364  pic_mode="$withval"
6365else
6366  pic_mode=default
6367fi;
6368test -z "$pic_mode" && pic_mode=default
6369
6370# Use C for the default configuration in the libtool script
6371tagname=
6372lt_save_CC="$CC"
6373ac_ext=c
6374ac_cpp='$CPP $CPPFLAGS'
6375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6377ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378
6379
6380# Source file extension for C test sources.
6381ac_ext=c
6382
6383# Object file extension for compiled C test sources.
6384objext=o
6385objext=$objext
6386
6387# Code to be used in simple compile tests
6388lt_simple_compile_test_code="int some_variable = 0;\n"
6389
6390# Code to be used in simple link tests
6391lt_simple_link_test_code='int main(){return(0);}\n'
6392
6393
6394# If no C compiler was specified, use CC.
6395LTCC=${LTCC-"$CC"}
6396
6397# Allow CC to be a program name with arguments.
6398compiler=$CC
6399
6400
6401# save warnings/boilerplate of simple test code
6402ac_outfile=conftest.$ac_objext
6403printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6404eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6405_lt_compiler_boilerplate=`cat conftest.err`
6406$rm conftest*
6407
6408ac_outfile=conftest.$ac_objext
6409printf "$lt_simple_link_test_code" >conftest.$ac_ext
6410eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6411_lt_linker_boilerplate=`cat conftest.err`
6412$rm conftest*
6413
6414
6415#
6416# Check for any special shared library compilation flags.
6417#
6418lt_prog_cc_shlib=
6419if test "$GCC" = no; then
6420  case $host_os in
6421  sco3.2v5*)
6422    lt_prog_cc_shlib='-belf'
6423    ;;
6424  esac
6425fi
6426if test -n "$lt_prog_cc_shlib"; then
6427  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6428echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6429  if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
6430  else
6431    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6432echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6433    lt_cv_prog_cc_can_build_shared=no
6434  fi
6435fi
6436
6437
6438#
6439# Check to make sure the static flag actually works.
6440#
6441echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6442echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6443if test "${lt_prog_compiler_static_works+set}" = set; then
6444  echo $ECHO_N "(cached) $ECHO_C" >&6
6445else
6446  lt_prog_compiler_static_works=no
6447   save_LDFLAGS="$LDFLAGS"
6448   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6449   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6450   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6451     # The linker can only warn and ignore the option if not recognized
6452     # So say no if there are warnings
6453     if test -s conftest.err; then
6454       # Append any errors to the config.log.
6455       cat conftest.err 1>&5
6456       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
6457       $SED '/^$/d' conftest.err >conftest.er2
6458       if diff conftest.exp conftest.er2 >/dev/null; then
6459         lt_prog_compiler_static_works=yes
6460       fi
6461     else
6462       lt_prog_compiler_static_works=yes
6463     fi
6464   fi
6465   $rm conftest*
6466   LDFLAGS="$save_LDFLAGS"
6467
6468fi
6469echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6470echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6471
6472if test x"$lt_prog_compiler_static_works" = xyes; then
6473    :
6474else
6475    lt_prog_compiler_static=
6476fi
6477
6478
6479
6480## CAVEAT EMPTOR:
6481## There is no encapsulation within the following macros, do not change
6482## the running order or otherwise move them around unless you know exactly
6483## what you are doing...
6484
6485lt_prog_compiler_no_builtin_flag=
6486
6487if test "$GCC" = yes; then
6488  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6489
6490
6491echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6492echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6493if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6494  echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496  lt_cv_prog_compiler_rtti_exceptions=no
6497  ac_outfile=conftest.$ac_objext
6498   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6499   lt_compiler_flag="-fno-rtti -fno-exceptions"
6500   # Insert the option either (1) after the last *FLAGS variable, or
6501   # (2) before a word containing "conftest.", or (3) at the end.
6502   # Note that $ac_compile itself does not contain backslashes and begins
6503   # with a dollar sign (not a hyphen), so the echo should work correctly.
6504   # The option is referenced via a variable to avoid confusing sed.
6505   lt_compile=`echo "$ac_compile" | $SED \
6506   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6507   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6508   -e 's:$: $lt_compiler_flag:'`
6509   (eval echo "\"\$as_me:6509: $lt_compile\"" >&5)
6510   (eval "$lt_compile" 2>conftest.err)
6511   ac_status=$?
6512   cat conftest.err >&5
6513   echo "$as_me:6513: \$? = $ac_status" >&5
6514   if (exit $ac_status) && test -s "$ac_outfile"; then
6515     # The compiler can only warn and ignore the option if not recognized
6516     # So say no if there are warnings other than the usual output.
6517     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6518     $SED '/^$/d' conftest.err >conftest.er2
6519     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6520       lt_cv_prog_compiler_rtti_exceptions=yes
6521     fi
6522   fi
6523   $rm conftest*
6524
6525fi
6526echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6527echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6528
6529if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6530    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6531else
6532    :
6533fi
6534
6535fi
6536
6537lt_prog_compiler_wl=
6538lt_prog_compiler_pic=
6539lt_prog_compiler_static=
6540
6541echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6542echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6543
6544  if test "$GCC" = yes; then
6545    lt_prog_compiler_wl='-Wl,'
6546    lt_prog_compiler_static='-static'
6547
6548    case $host_os in
6549      aix*)
6550      # All AIX code is PIC.
6551      if test "$host_cpu" = ia64; then
6552	# AIX 5 now supports IA64 processor
6553	lt_prog_compiler_static='-Bstatic'
6554      fi
6555      ;;
6556
6557    amigaos*)
6558      # FIXME: we need at least 68020 code to build shared libraries, but
6559      # adding the `-m68020' flag to GCC prevents building anything better,
6560      # like `-m68040'.
6561      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6562      ;;
6563
6564    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6565      # PIC is the default for these OSes.
6566      ;;
6567
6568    mingw* | pw32* | os2*)
6569      # This hack is so that the source file can tell whether it is being
6570      # built for inclusion in a dll (and should export symbols for example).
6571      lt_prog_compiler_pic='-DDLL_EXPORT'
6572      ;;
6573
6574    darwin* | rhapsody*)
6575      # PIC is the default on this platform
6576      # Common symbols not allowed in MH_DYLIB files
6577      lt_prog_compiler_pic='-fno-common'
6578      ;;
6579
6580    msdosdjgpp*)
6581      # Just because we use GCC doesn't mean we suddenly get shared libraries
6582      # on systems that don't support them.
6583      lt_prog_compiler_can_build_shared=no
6584      enable_shared=no
6585      ;;
6586
6587    sysv4*MP*)
6588      if test -d /usr/nec; then
6589	lt_prog_compiler_pic=-Kconform_pic
6590      fi
6591      ;;
6592
6593    hpux*)
6594      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6595      # not for PA HP-UX.
6596      case $host_cpu in
6597      hppa*64*|ia64*)
6598	# +Z the default
6599	;;
6600      *)
6601	lt_prog_compiler_pic='-fPIC'
6602	;;
6603      esac
6604      ;;
6605
6606    *)
6607      lt_prog_compiler_pic='-fPIC'
6608      ;;
6609    esac
6610  else
6611    # PORTME Check for flag to pass linker flags through the system compiler.
6612    case $host_os in
6613    aix*)
6614      lt_prog_compiler_wl='-Wl,'
6615      if test "$host_cpu" = ia64; then
6616	# AIX 5 now supports IA64 processor
6617	lt_prog_compiler_static='-Bstatic'
6618      else
6619	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6620      fi
6621      ;;
6622      darwin*)
6623        # PIC is the default on this platform
6624        # Common symbols not allowed in MH_DYLIB files
6625       case $cc_basename in
6626         xlc*)
6627         lt_prog_compiler_pic='-qnocommon'
6628         lt_prog_compiler_wl='-Wl,'
6629         ;;
6630       esac
6631       ;;
6632
6633    mingw* | pw32* | os2*)
6634      # This hack is so that the source file can tell whether it is being
6635      # built for inclusion in a dll (and should export symbols for example).
6636      lt_prog_compiler_pic='-DDLL_EXPORT'
6637      ;;
6638
6639    hpux9* | hpux10* | hpux11*)
6640      lt_prog_compiler_wl='-Wl,'
6641      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6642      # not for PA HP-UX.
6643      case $host_cpu in
6644      hppa*64*|ia64*)
6645	# +Z the default
6646	;;
6647      *)
6648	lt_prog_compiler_pic='+Z'
6649	;;
6650      esac
6651      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6652      lt_prog_compiler_static='${wl}-a ${wl}archive'
6653      ;;
6654
6655    irix5* | irix6* | nonstopux*)
6656      lt_prog_compiler_wl='-Wl,'
6657      # PIC (with -KPIC) is the default.
6658      lt_prog_compiler_static='-non_shared'
6659      ;;
6660
6661    newsos6)
6662      lt_prog_compiler_pic='-KPIC'
6663      lt_prog_compiler_static='-Bstatic'
6664      ;;
6665
6666    linux*)
6667      case $cc_basename in
6668      icc* | ecc*)
6669	lt_prog_compiler_wl='-Wl,'
6670	lt_prog_compiler_pic='-KPIC'
6671	lt_prog_compiler_static='-static'
6672        ;;
6673      pgcc* | pgf77* | pgf90* | pgf95*)
6674        # Portland Group compilers (*not* the Pentium gcc compiler,
6675	# which looks to be a dead project)
6676	lt_prog_compiler_wl='-Wl,'
6677	lt_prog_compiler_pic='-fpic'
6678	lt_prog_compiler_static='-Bstatic'
6679        ;;
6680      ccc*)
6681        lt_prog_compiler_wl='-Wl,'
6682        # All Alpha code is PIC.
6683        lt_prog_compiler_static='-non_shared'
6684        ;;
6685      esac
6686      ;;
6687
6688    osf3* | osf4* | osf5*)
6689      lt_prog_compiler_wl='-Wl,'
6690      # All OSF/1 code is PIC.
6691      lt_prog_compiler_static='-non_shared'
6692      ;;
6693
6694    sco3.2v5*)
6695      lt_prog_compiler_pic='-Kpic'
6696      lt_prog_compiler_static='-dn'
6697      ;;
6698
6699    solaris*)
6700      lt_prog_compiler_pic='-KPIC'
6701      lt_prog_compiler_static='-Bstatic'
6702      case $cc_basename in
6703      f77* | f90* | f95*)
6704	lt_prog_compiler_wl='-Qoption ld ';;
6705      *)
6706	lt_prog_compiler_wl='-Wl,';;
6707      esac
6708      ;;
6709
6710    sunos4*)
6711      lt_prog_compiler_wl='-Qoption ld '
6712      lt_prog_compiler_pic='-PIC'
6713      lt_prog_compiler_static='-Bstatic'
6714      ;;
6715
6716    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6717      lt_prog_compiler_wl='-Wl,'
6718      lt_prog_compiler_pic='-KPIC'
6719      lt_prog_compiler_static='-Bstatic'
6720      ;;
6721
6722    sysv4*MP*)
6723      if test -d /usr/nec ;then
6724	lt_prog_compiler_pic='-Kconform_pic'
6725	lt_prog_compiler_static='-Bstatic'
6726      fi
6727      ;;
6728
6729    unicos*)
6730      lt_prog_compiler_wl='-Wl,'
6731      lt_prog_compiler_can_build_shared=no
6732      ;;
6733
6734    uts4*)
6735      lt_prog_compiler_pic='-pic'
6736      lt_prog_compiler_static='-Bstatic'
6737      ;;
6738
6739    *)
6740      lt_prog_compiler_can_build_shared=no
6741      ;;
6742    esac
6743  fi
6744
6745echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6746echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6747
6748#
6749# Check to make sure the PIC flag actually works.
6750#
6751if test -n "$lt_prog_compiler_pic"; then
6752
6753echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6754echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6755if test "${lt_prog_compiler_pic_works+set}" = set; then
6756  echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758  lt_prog_compiler_pic_works=no
6759  ac_outfile=conftest.$ac_objext
6760   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6761   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6762   # Insert the option either (1) after the last *FLAGS variable, or
6763   # (2) before a word containing "conftest.", or (3) at the end.
6764   # Note that $ac_compile itself does not contain backslashes and begins
6765   # with a dollar sign (not a hyphen), so the echo should work correctly.
6766   # The option is referenced via a variable to avoid confusing sed.
6767   lt_compile=`echo "$ac_compile" | $SED \
6768   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6769   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6770   -e 's:$: $lt_compiler_flag:'`
6771   (eval echo "\"\$as_me:6771: $lt_compile\"" >&5)
6772   (eval "$lt_compile" 2>conftest.err)
6773   ac_status=$?
6774   cat conftest.err >&5
6775   echo "$as_me:6775: \$? = $ac_status" >&5
6776   if (exit $ac_status) && test -s "$ac_outfile"; then
6777     # The compiler can only warn and ignore the option if not recognized
6778     # So say no if there are warnings other than the usual output.
6779     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
6780     $SED '/^$/d' conftest.err >conftest.er2
6781     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6782       lt_prog_compiler_pic_works=yes
6783     fi
6784   fi
6785   $rm conftest*
6786
6787fi
6788echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6789echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6790
6791if test x"$lt_prog_compiler_pic_works" = xyes; then
6792    case $lt_prog_compiler_pic in
6793     "" | " "*) ;;
6794     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6795     esac
6796else
6797    lt_prog_compiler_pic=
6798     lt_prog_compiler_can_build_shared=no
6799fi
6800
6801fi
6802case $host_os in
6803  # For platforms which do not support PIC, -DPIC is meaningless:
6804  *djgpp*)
6805    lt_prog_compiler_pic=
6806    ;;
6807  *)
6808    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6809    ;;
6810esac
6811
6812echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6813echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6814if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6815  echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817  lt_cv_prog_compiler_c_o=no
6818   $rm -r conftest 2>/dev/null
6819   mkdir conftest
6820   cd conftest
6821   mkdir out
6822   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6823
6824   lt_compiler_flag="-o out/conftest2.$ac_objext"
6825   # Insert the option either (1) after the last *FLAGS variable, or
6826   # (2) before a word containing "conftest.", or (3) at the end.
6827   # Note that $ac_compile itself does not contain backslashes and begins
6828   # with a dollar sign (not a hyphen), so the echo should work correctly.
6829   lt_compile=`echo "$ac_compile" | $SED \
6830   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6831   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6832   -e 's:$: $lt_compiler_flag:'`
6833   (eval echo "\"\$as_me:6833: $lt_compile\"" >&5)
6834   (eval "$lt_compile" 2>out/conftest.err)
6835   ac_status=$?
6836   cat out/conftest.err >&5
6837   echo "$as_me:6837: \$? = $ac_status" >&5
6838   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6839   then
6840     # The compiler can only warn and ignore the option if not recognized
6841     # So say no if there are warnings
6842     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
6843     $SED '/^$/d' out/conftest.err >out/conftest.er2
6844     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6845       lt_cv_prog_compiler_c_o=yes
6846     fi
6847   fi
6848   chmod u+w . 2>&5
6849   $rm conftest*
6850   # SGI C++ compiler will create directory out/ii_files/ for
6851   # template instantiation
6852   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6853   $rm out/* && rmdir out
6854   cd ..
6855   rmdir conftest
6856   $rm conftest*
6857
6858fi
6859echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6860echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6861
6862
6863hard_links="nottested"
6864if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6865  # do not overwrite the value of need_locks provided by the user
6866  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6867echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6868  hard_links=yes
6869  $rm conftest*
6870  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6871  touch conftest.a
6872  ln conftest.a conftest.b 2>&5 || hard_links=no
6873  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6874  echo "$as_me:$LINENO: result: $hard_links" >&5
6875echo "${ECHO_T}$hard_links" >&6
6876  if test "$hard_links" = no; then
6877    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6878echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6879    need_locks=warn
6880  fi
6881else
6882  need_locks=no
6883fi
6884
6885echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6886echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6887
6888  runpath_var=
6889  allow_undefined_flag=
6890  enable_shared_with_static_runtimes=no
6891  archive_cmds=
6892  archive_expsym_cmds=
6893  old_archive_From_new_cmds=
6894  old_archive_from_expsyms_cmds=
6895  export_dynamic_flag_spec=
6896  whole_archive_flag_spec=
6897  thread_safe_flag_spec=
6898  hardcode_libdir_flag_spec=
6899  hardcode_libdir_flag_spec_ld=
6900  hardcode_libdir_separator=
6901  hardcode_direct=no
6902  hardcode_minus_L=no
6903  hardcode_shlibpath_var=unsupported
6904  link_all_deplibs=unknown
6905  hardcode_automatic=no
6906  module_cmds=
6907  module_expsym_cmds=
6908  always_export_symbols=no
6909  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6910  # include_expsyms should be a list of space-separated symbols to be *always*
6911  # included in the symbol list
6912  include_expsyms=
6913  # exclude_expsyms can be an extended regexp of symbols to exclude
6914  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6915  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6916  # as well as any symbol that contains `d'.
6917  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6918  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6919  # platforms (ab)use it in PIC code, but their linkers get confused if
6920  # the symbol is explicitly referenced.  Since portable code cannot
6921  # rely on this symbol name, it's probably fine to never include it in
6922  # preloaded symbol tables.
6923  extract_expsyms_cmds=
6924  # Just being paranoid about ensuring that cc_basename is set.
6925  for cc_temp in $compiler""; do
6926  case $cc_temp in
6927    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6928    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6929    \-*) ;;
6930    *) break;;
6931  esac
6932done
6933cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6934
6935  case $host_os in
6936  cygwin* | mingw* | pw32*)
6937    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6938    # When not using gcc, we currently assume that we are using
6939    # Microsoft Visual C++.
6940    if test "$GCC" != yes; then
6941      with_gnu_ld=no
6942    fi
6943    ;;
6944  openbsd*)
6945    with_gnu_ld=no
6946    ;;
6947  esac
6948
6949  ld_shlibs=yes
6950  if test "$with_gnu_ld" = yes; then
6951    # If archive_cmds runs LD, not CC, wlarc should be empty
6952    wlarc='${wl}'
6953
6954    # Set some defaults for GNU ld with shared library support. These
6955    # are reset later if shared libraries are not supported. Putting them
6956    # here allows them to be overridden if necessary.
6957    runpath_var=LD_RUN_PATH
6958    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6959    export_dynamic_flag_spec='${wl}--export-dynamic'
6960    # ancient GNU ld didn't support --whole-archive et. al.
6961    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6962	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6963      else
6964  	whole_archive_flag_spec=
6965    fi
6966    supports_anon_versioning=no
6967    case `$LD -v 2>/dev/null` in
6968      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6969      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6970      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6971      *\ 2.11.*) ;; # other 2.11 versions
6972      *) supports_anon_versioning=yes ;;
6973    esac
6974
6975    # See if GNU ld supports shared libraries.
6976    case $host_os in
6977    aix3* | aix4* | aix5*)
6978      # On AIX/PPC, the GNU linker is very broken
6979      if test "$host_cpu" != ia64; then
6980	ld_shlibs=no
6981	cat <<EOF 1>&2
6982
6983*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6984*** to be unable to reliably create shared libraries on AIX.
6985*** Therefore, libtool is disabling shared libraries support.  If you
6986*** really care for shared libraries, you may want to modify your PATH
6987*** so that a non-GNU linker is found, and then restart.
6988
6989EOF
6990      fi
6991      ;;
6992
6993    amigaos*)
6994      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)'
6995      hardcode_libdir_flag_spec='-L$libdir'
6996      hardcode_minus_L=yes
6997
6998      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6999      # that the semantics of dynamic libraries on AmigaOS, at least up
7000      # to version 4, is to share data among multiple programs linked
7001      # with the same dynamic library.  Since this doesn't match the
7002      # behavior of shared libraries on other platforms, we can't use
7003      # them.
7004      ld_shlibs=no
7005      ;;
7006
7007    beos*)
7008      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7009	allow_undefined_flag=unsupported
7010	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7011	# support --undefined.  This deserves some investigation.  FIXME
7012	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7013      else
7014	ld_shlibs=no
7015      fi
7016      ;;
7017
7018    cygwin* | mingw* | pw32*)
7019      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7020      # as there is no search path for DLLs.
7021      hardcode_libdir_flag_spec='-L$libdir'
7022      allow_undefined_flag=unsupported
7023      always_export_symbols=no
7024      enable_shared_with_static_runtimes=yes
7025      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7026
7027      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7028        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7029	# If the export-symbols file already is a .def file (1st line
7030	# is EXPORTS), use it as is; otherwise, prepend...
7031	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7032	  cp $export_symbols $output_objdir/$soname.def;
7033	else
7034	  echo EXPORTS > $output_objdir/$soname.def;
7035	  cat $export_symbols >> $output_objdir/$soname.def;
7036	fi~
7037	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7038      else
7039	ld_shlibs=no
7040      fi
7041      ;;
7042
7043    linux*)
7044      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7045	tmp_addflag=
7046	case $cc_basename,$host_cpu in
7047	pgcc*)				# Portland Group C compiler
7048	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7049	  tmp_addflag=' $pic_flag'
7050	  ;;
7051	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7052	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7053	  tmp_addflag=' $pic_flag -Mnomain' ;;
7054	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7055	  tmp_addflag=' -i_dynamic' ;;
7056	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7057	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7058	ifc* | ifort*)			# Intel Fortran compiler
7059	  tmp_addflag=' -nofor_main' ;;
7060	esac
7061	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7062
7063	if test $supports_anon_versioning = yes; then
7064	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7065  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7066  $echo "local: *; };" >> $output_objdir/$libname.ver~
7067	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7068	fi
7069      else
7070	ld_shlibs=no
7071      fi
7072      ;;
7073
7074    netbsd*)
7075      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7076	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7077	wlarc=
7078      else
7079	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7080	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7081      fi
7082      ;;
7083
7084    solaris* | sysv5*)
7085      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7086	ld_shlibs=no
7087	cat <<EOF 1>&2
7088
7089*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7090*** create shared libraries on Solaris systems.  Therefore, libtool
7091*** is disabling shared libraries support.  We urge you to upgrade GNU
7092*** binutils to release 2.9.1 or newer.  Another option is to modify
7093*** your PATH or compiler configuration so that the native linker is
7094*** used, and then restart.
7095
7096EOF
7097      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7098	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7099	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7100      else
7101	ld_shlibs=no
7102      fi
7103      ;;
7104
7105    sunos4*)
7106      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7107      wlarc=
7108      hardcode_direct=yes
7109      hardcode_shlibpath_var=no
7110      ;;
7111
7112    *)
7113      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7114	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7115	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7116      else
7117	ld_shlibs=no
7118      fi
7119      ;;
7120    esac
7121
7122    if test "$ld_shlibs" = no; then
7123      runpath_var=
7124      hardcode_libdir_flag_spec=
7125      export_dynamic_flag_spec=
7126      whole_archive_flag_spec=
7127    fi
7128  else
7129    # PORTME fill in a description of your system's linker (not GNU ld)
7130    case $host_os in
7131    aix3*)
7132      allow_undefined_flag=unsupported
7133      always_export_symbols=yes
7134      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'
7135      # Note: this linker hardcodes the directories in LIBPATH if there
7136      # are no directories specified by -L.
7137      hardcode_minus_L=yes
7138      if test "$GCC" = yes && test -z "$link_static_flag"; then
7139	# Neither direct hardcoding nor static linking is supported with a
7140	# broken collect2.
7141	hardcode_direct=unsupported
7142      fi
7143      ;;
7144
7145    aix4* | aix5*)
7146      if test "$host_cpu" = ia64; then
7147	# On IA64, the linker does run time linking by default, so we don't
7148	# have to do anything special.
7149	aix_use_runtimelinking=no
7150	exp_sym_flag='-Bexport'
7151	no_entry_flag=""
7152      else
7153	# If we're using GNU nm, then we don't want the "-C" option.
7154	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7155	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7156	  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'
7157	else
7158	  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'
7159	fi
7160	aix_use_runtimelinking=no
7161
7162	# Test if we are trying to use run time linking or normal
7163	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7164	# need to do runtime linking.
7165	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7166	  for ld_flag in $LDFLAGS; do
7167  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7168  	    aix_use_runtimelinking=yes
7169  	    break
7170  	  fi
7171	  done
7172	esac
7173
7174	exp_sym_flag='-bexport'
7175	no_entry_flag='-bnoentry'
7176      fi
7177
7178      # When large executables or shared objects are built, AIX ld can
7179      # have problems creating the table of contents.  If linking a library
7180      # or program results in "error TOC overflow" add -mminimal-toc to
7181      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7182      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7183
7184      archive_cmds=''
7185      hardcode_direct=yes
7186      hardcode_libdir_separator=':'
7187      link_all_deplibs=yes
7188
7189      if test "$GCC" = yes; then
7190	case $host_os in aix4.[012]|aix4.[012].*)
7191	# We only want to do this on AIX 4.2 and lower, the check
7192	# below for broken collect2 doesn't work under 4.3+
7193	  collect2name=`${CC} -print-prog-name=collect2`
7194	  if test -f "$collect2name" && \
7195  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7196	  then
7197  	  # We have reworked collect2
7198  	  hardcode_direct=yes
7199	  else
7200  	  # We have old collect2
7201  	  hardcode_direct=unsupported
7202  	  # It fails to find uninstalled libraries when the uninstalled
7203  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7204  	  # to unsupported forces relinking
7205  	  hardcode_minus_L=yes
7206  	  hardcode_libdir_flag_spec='-L$libdir'
7207  	  hardcode_libdir_separator=
7208	  fi
7209	esac
7210	shared_flag='-shared'
7211	if test "$aix_use_runtimelinking" = yes; then
7212	  shared_flag="$shared_flag "'${wl}-G'
7213	fi
7214      else
7215	# not using gcc
7216	if test "$host_cpu" = ia64; then
7217  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7218  	# chokes on -Wl,-G. The following line is correct:
7219	  shared_flag='-G'
7220	else
7221  	if test "$aix_use_runtimelinking" = yes; then
7222	    shared_flag='${wl}-G'
7223	  else
7224	    shared_flag='${wl}-bM:SRE'
7225  	fi
7226	fi
7227      fi
7228
7229      # It seems that -bexpall does not export symbols beginning with
7230      # underscore (_), so it is better to generate a list of symbols to export.
7231      always_export_symbols=yes
7232      if test "$aix_use_runtimelinking" = yes; then
7233	# Warning - without using the other runtime loading flags (-brtl),
7234	# -berok will link without error, but may produce a broken library.
7235	allow_undefined_flag='-berok'
7236       # Determine the default libpath from the value encoded in an empty executable.
7237       cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h.  */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h.  */
7243
7244int
7245main ()
7246{
7247
7248  ;
7249  return 0;
7250}
7251_ACEOF
7252rm -f conftest.$ac_objext conftest$ac_exeext
7253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7254  (eval $ac_link) 2>conftest.er1
7255  ac_status=$?
7256  grep -v '^ *+' conftest.er1 >conftest.err
7257  rm -f conftest.er1
7258  cat conftest.err >&5
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); } &&
7261	 { ac_try='test -z "$ac_c_werror_flag"
7262			 || test ! -s conftest.err'
7263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264  (eval $ac_try) 2>&5
7265  ac_status=$?
7266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267  (exit $ac_status); }; } &&
7268	 { ac_try='test -s conftest$ac_exeext'
7269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270  (eval $ac_try) 2>&5
7271  ac_status=$?
7272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273  (exit $ac_status); }; }; then
7274
7275aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7276}'`
7277# Check for a 64-bit object if we didn't find anything.
7278if 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; }
7279}'`; fi
7280else
7281  echo "$as_me: failed program was:" >&5
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
7284fi
7285rm -f conftest.err conftest.$ac_objext \
7286      conftest$ac_exeext conftest.$ac_ext
7287if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7288
7289       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7290	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"
7291       else
7292	if test "$host_cpu" = ia64; then
7293	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7294	  allow_undefined_flag="-z nodefs"
7295	  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"
7296	else
7297	 # Determine the default libpath from the value encoded in an empty executable.
7298	 cat >conftest.$ac_ext <<_ACEOF
7299/* confdefs.h.  */
7300_ACEOF
7301cat confdefs.h >>conftest.$ac_ext
7302cat >>conftest.$ac_ext <<_ACEOF
7303/* end confdefs.h.  */
7304
7305int
7306main ()
7307{
7308
7309  ;
7310  return 0;
7311}
7312_ACEOF
7313rm -f conftest.$ac_objext conftest$ac_exeext
7314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7315  (eval $ac_link) 2>conftest.er1
7316  ac_status=$?
7317  grep -v '^ *+' conftest.er1 >conftest.err
7318  rm -f conftest.er1
7319  cat conftest.err >&5
7320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321  (exit $ac_status); } &&
7322	 { ac_try='test -z "$ac_c_werror_flag"
7323			 || test ! -s conftest.err'
7324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325  (eval $ac_try) 2>&5
7326  ac_status=$?
7327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328  (exit $ac_status); }; } &&
7329	 { ac_try='test -s conftest$ac_exeext'
7330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331  (eval $ac_try) 2>&5
7332  ac_status=$?
7333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334  (exit $ac_status); }; }; then
7335
7336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7337}'`
7338# Check for a 64-bit object if we didn't find anything.
7339if 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; }
7340}'`; fi
7341else
7342  echo "$as_me: failed program was:" >&5
7343sed 's/^/| /' conftest.$ac_ext >&5
7344
7345fi
7346rm -f conftest.err conftest.$ac_objext \
7347      conftest$ac_exeext conftest.$ac_ext
7348if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7349
7350	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7351	  # Warning - without using the other run time loading flags,
7352	  # -berok will link without error, but may produce a broken library.
7353	  no_undefined_flag=' ${wl}-bernotok'
7354	  allow_undefined_flag=' ${wl}-berok'
7355	  # -bexpall does not export symbols beginning with underscore (_)
7356	  always_export_symbols=yes
7357	  # Exported symbols can be pulled into shared objects from archives
7358	  whole_archive_flag_spec=' '
7359	  archive_cmds_need_lc=yes
7360	  # This is similar to how AIX traditionally builds its shared libraries.
7361	  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'
7362	fi
7363      fi
7364      ;;
7365
7366    amigaos*)
7367      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)'
7368      hardcode_libdir_flag_spec='-L$libdir'
7369      hardcode_minus_L=yes
7370      # see comment about different semantics on the GNU ld section
7371      ld_shlibs=no
7372      ;;
7373
7374    bsdi[45]*)
7375      export_dynamic_flag_spec=-rdynamic
7376      ;;
7377
7378    cygwin* | mingw* | pw32*)
7379      # When not using gcc, we currently assume that we are using
7380      # Microsoft Visual C++.
7381      # hardcode_libdir_flag_spec is actually meaningless, as there is
7382      # no search path for DLLs.
7383      hardcode_libdir_flag_spec=' '
7384      allow_undefined_flag=unsupported
7385      # Tell ltmain to make .lib files, not .a files.
7386      libext=lib
7387      # Tell ltmain to make .dll files, not .so files.
7388      shrext_cmds=".dll"
7389      # FIXME: Setting linknames here is a bad hack.
7390      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7391      # The linker will automatically build a .lib file if we build a DLL.
7392      old_archive_From_new_cmds='true'
7393      # FIXME: Should let the user specify the lib program.
7394      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7395      fix_srcfile_path='`cygpath -w "$srcfile"`'
7396      enable_shared_with_static_runtimes=yes
7397      ;;
7398
7399    darwin* | rhapsody*)
7400      case $host_os in
7401        rhapsody* | darwin1.[012])
7402         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7403         ;;
7404       *) # Darwin 1.3 on
7405         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7406           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7407         else
7408           case ${MACOSX_DEPLOYMENT_TARGET} in
7409             10.[012])
7410               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7411               ;;
7412             10.*)
7413               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7414               ;;
7415           esac
7416         fi
7417         ;;
7418      esac
7419      archive_cmds_need_lc=no
7420      hardcode_direct=no
7421      hardcode_automatic=yes
7422      hardcode_shlibpath_var=unsupported
7423      whole_archive_flag_spec=''
7424      link_all_deplibs=yes
7425    if test "$GCC" = yes ; then
7426    	output_verbose_link_cmd='echo'
7427        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7428      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7429      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7430      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}'
7431      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}'
7432    else
7433      case $cc_basename in
7434        xlc*)
7435         output_verbose_link_cmd='echo'
7436         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7437         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7438          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7439         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}'
7440          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}'
7441          ;;
7442       *)
7443         ld_shlibs=no
7444          ;;
7445      esac
7446    fi
7447      ;;
7448
7449    dgux*)
7450      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7451      hardcode_libdir_flag_spec='-L$libdir'
7452      hardcode_shlibpath_var=no
7453      ;;
7454
7455    freebsd1*)
7456      ld_shlibs=no
7457      ;;
7458
7459    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7460    # support.  Future versions do this automatically, but an explicit c++rt0.o
7461    # does not break anything, and helps significantly (at the cost of a little
7462    # extra space).
7463    freebsd2.2*)
7464      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7465      hardcode_libdir_flag_spec='-R$libdir'
7466      hardcode_direct=yes
7467      hardcode_shlibpath_var=no
7468      ;;
7469
7470    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7471    freebsd2*)
7472      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7473      hardcode_direct=yes
7474      hardcode_minus_L=yes
7475      hardcode_shlibpath_var=no
7476      ;;
7477
7478    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7479    freebsd* | kfreebsd*-gnu | dragonfly*)
7480      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7481      hardcode_libdir_flag_spec='-R$libdir'
7482      hardcode_direct=yes
7483      hardcode_shlibpath_var=no
7484      ;;
7485
7486    hpux9*)
7487      if test "$GCC" = yes; then
7488	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'
7489      else
7490	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'
7491      fi
7492      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7493      hardcode_libdir_separator=:
7494      hardcode_direct=yes
7495
7496      # hardcode_minus_L: Not really in the search PATH,
7497      # but as the default location of the library.
7498      hardcode_minus_L=yes
7499      export_dynamic_flag_spec='${wl}-E'
7500      ;;
7501
7502    hpux10* | hpux11*)
7503      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7504	case $host_cpu in
7505	hppa*64*|ia64*)
7506	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7507	  ;;
7508	*)
7509	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7510	  ;;
7511	esac
7512      else
7513	case $host_cpu in
7514	hppa*64*|ia64*)
7515	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7516	  ;;
7517	*)
7518	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7519	  ;;
7520	esac
7521      fi
7522      if test "$with_gnu_ld" = no; then
7523	case $host_cpu in
7524	hppa*64*)
7525	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7526	  hardcode_libdir_flag_spec_ld='+b $libdir'
7527	  hardcode_libdir_separator=:
7528	  hardcode_direct=no
7529	  hardcode_shlibpath_var=no
7530	  ;;
7531	ia64*)
7532	  hardcode_libdir_flag_spec='-L$libdir'
7533	  hardcode_direct=no
7534	  hardcode_shlibpath_var=no
7535
7536	  # hardcode_minus_L: Not really in the search PATH,
7537	  # but as the default location of the library.
7538	  hardcode_minus_L=yes
7539	  ;;
7540	*)
7541	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7542	  hardcode_libdir_separator=:
7543	  hardcode_direct=yes
7544	  export_dynamic_flag_spec='${wl}-E'
7545
7546	  # hardcode_minus_L: Not really in the search PATH,
7547	  # but as the default location of the library.
7548	  hardcode_minus_L=yes
7549	  ;;
7550	esac
7551      fi
7552      ;;
7553
7554    irix5* | irix6* | nonstopux*)
7555      if test "$GCC" = yes; then
7556	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'
7557      else
7558	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'
7559	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7560      fi
7561      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7562      hardcode_libdir_separator=:
7563      link_all_deplibs=yes
7564      ;;
7565
7566    netbsd*)
7567      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7568	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7569      else
7570	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7571      fi
7572      hardcode_libdir_flag_spec='-R$libdir'
7573      hardcode_direct=yes
7574      hardcode_shlibpath_var=no
7575      ;;
7576
7577    newsos6)
7578      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7579      hardcode_direct=yes
7580      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7581      hardcode_libdir_separator=:
7582      hardcode_shlibpath_var=no
7583      ;;
7584
7585    openbsd*)
7586      hardcode_direct=yes
7587      hardcode_shlibpath_var=no
7588      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7589	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7590	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7591	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7592	export_dynamic_flag_spec='${wl}-E'
7593      else
7594       case $host_os in
7595	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7596	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7597	   hardcode_libdir_flag_spec='-R$libdir'
7598	   ;;
7599	 *)
7600	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7601	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7602	   ;;
7603       esac
7604      fi
7605      ;;
7606
7607    os2*)
7608      hardcode_libdir_flag_spec='-L$libdir'
7609      hardcode_minus_L=yes
7610      allow_undefined_flag=unsupported
7611      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'
7612      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7613      ;;
7614
7615    osf3*)
7616      if test "$GCC" = yes; then
7617	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7618	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'
7619      else
7620	allow_undefined_flag=' -expect_unresolved \*'
7621	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'
7622      fi
7623      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7624      hardcode_libdir_separator=:
7625      ;;
7626
7627    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7628      if test "$GCC" = yes; then
7629	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7630	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'
7631	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7632      else
7633	allow_undefined_flag=' -expect_unresolved \*'
7634	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'
7635	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7636	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7637
7638	# Both c and cxx compiler support -rpath directly
7639	hardcode_libdir_flag_spec='-rpath $libdir'
7640      fi
7641      hardcode_libdir_separator=:
7642      ;;
7643
7644    sco3.2v5*)
7645      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7646      hardcode_shlibpath_var=no
7647      export_dynamic_flag_spec='${wl}-Bexport'
7648      runpath_var=LD_RUN_PATH
7649      hardcode_runpath_var=yes
7650      ;;
7651
7652    solaris*)
7653      no_undefined_flag=' -z text'
7654      if test "$GCC" = yes; then
7655	wlarc='${wl}'
7656	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7657	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7658	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7659      else
7660	wlarc=''
7661	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7662	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7663  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7664      fi
7665      hardcode_libdir_flag_spec='-R$libdir'
7666      hardcode_shlibpath_var=no
7667      case $host_os in
7668      solaris2.[0-5] | solaris2.[0-5].*) ;;
7669      *)
7670 	# The compiler driver will combine linker options so we
7671 	# cannot just pass the convience library names through
7672 	# without $wl, iff we do not link with $LD.
7673 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7674 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7675 	case $wlarc in
7676 	'')
7677 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7678 	*)
7679 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7680 	esac ;;
7681      esac
7682      link_all_deplibs=yes
7683      ;;
7684
7685    sunos4*)
7686      if test "x$host_vendor" = xsequent; then
7687	# Use $CC to link under sequent, because it throws in some extra .o
7688	# files that make .init and .fini sections work.
7689	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7690      else
7691	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7692      fi
7693      hardcode_libdir_flag_spec='-L$libdir'
7694      hardcode_direct=yes
7695      hardcode_minus_L=yes
7696      hardcode_shlibpath_var=no
7697      ;;
7698
7699    sysv4)
7700      case $host_vendor in
7701	sni)
7702	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7703	  hardcode_direct=yes # is this really true???
7704	;;
7705	siemens)
7706	  ## LD is ld it makes a PLAMLIB
7707	  ## CC just makes a GrossModule.
7708	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7709	  reload_cmds='$CC -r -o $output$reload_objs'
7710	  hardcode_direct=no
7711        ;;
7712	motorola)
7713	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7714	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7715	;;
7716      esac
7717      runpath_var='LD_RUN_PATH'
7718      hardcode_shlibpath_var=no
7719      ;;
7720
7721    sysv4.3*)
7722      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7723      hardcode_shlibpath_var=no
7724      export_dynamic_flag_spec='-Bexport'
7725      ;;
7726
7727    sysv4*MP*)
7728      if test -d /usr/nec; then
7729	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7730	hardcode_shlibpath_var=no
7731	runpath_var=LD_RUN_PATH
7732	hardcode_runpath_var=yes
7733	ld_shlibs=yes
7734      fi
7735      ;;
7736
7737    sysv4.2uw2*)
7738      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7739      hardcode_direct=yes
7740      hardcode_minus_L=no
7741      hardcode_shlibpath_var=no
7742      hardcode_runpath_var=yes
7743      runpath_var=LD_RUN_PATH
7744      ;;
7745
7746   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7747      no_undefined_flag='${wl}-z ${wl}text'
7748      if test "$GCC" = yes; then
7749	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7750      else
7751	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7752      fi
7753      runpath_var='LD_RUN_PATH'
7754      hardcode_shlibpath_var=no
7755      ;;
7756
7757    sysv5*)
7758      no_undefined_flag=' -z text'
7759      # $CC -shared without GNU ld will not create a library from C++
7760      # object files and a static libstdc++, better avoid it by now
7761      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7762      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7763  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7764      hardcode_libdir_flag_spec=
7765      hardcode_shlibpath_var=no
7766      runpath_var='LD_RUN_PATH'
7767      ;;
7768
7769    uts4*)
7770      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7771      hardcode_libdir_flag_spec='-L$libdir'
7772      hardcode_shlibpath_var=no
7773      ;;
7774
7775    *)
7776      ld_shlibs=no
7777      ;;
7778    esac
7779  fi
7780
7781echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7782echo "${ECHO_T}$ld_shlibs" >&6
7783test "$ld_shlibs" = no && can_build_shared=no
7784
7785variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7786if test "$GCC" = yes; then
7787  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7788fi
7789
7790#
7791# Do we need to explicitly link libc?
7792#
7793case "x$archive_cmds_need_lc" in
7794x|xyes)
7795  # Assume -lc should be added
7796  archive_cmds_need_lc=yes
7797
7798  if test "$enable_shared" = yes && test "$GCC" = yes; then
7799    case $archive_cmds in
7800    *'~'*)
7801      # FIXME: we may have to deal with multi-command sequences.
7802      ;;
7803    '$CC '*)
7804      # Test whether the compiler implicitly links with -lc since on some
7805      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7806      # to ld, don't add -lc before -lgcc.
7807      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7808echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7809      $rm conftest*
7810      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7811
7812      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813  (eval $ac_compile) 2>&5
7814  ac_status=$?
7815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816  (exit $ac_status); } 2>conftest.err; then
7817        soname=conftest
7818        lib=conftest
7819        libobjs=conftest.$ac_objext
7820        deplibs=
7821        wl=$lt_prog_compiler_wl
7822        compiler_flags=-v
7823        linker_flags=-v
7824        verstring=
7825        output_objdir=.
7826        libname=conftest
7827        lt_save_allow_undefined_flag=$allow_undefined_flag
7828        allow_undefined_flag=
7829        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7830  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7831  ac_status=$?
7832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833  (exit $ac_status); }
7834        then
7835	  archive_cmds_need_lc=no
7836        else
7837	  archive_cmds_need_lc=yes
7838        fi
7839        allow_undefined_flag=$lt_save_allow_undefined_flag
7840      else
7841        cat conftest.err 1>&5
7842      fi
7843      $rm conftest*
7844      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7845echo "${ECHO_T}$archive_cmds_need_lc" >&6
7846      ;;
7847    esac
7848  fi
7849  ;;
7850esac
7851
7852echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7853echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7854library_names_spec=
7855libname_spec='lib$name'
7856soname_spec=
7857shrext_cmds=".so"
7858postinstall_cmds=
7859postuninstall_cmds=
7860finish_cmds=
7861finish_eval=
7862shlibpath_var=
7863shlibpath_overrides_runpath=unknown
7864version_type=none
7865dynamic_linker="$host_os ld.so"
7866sys_lib_dlsearch_path_spec="/lib /usr/lib"
7867if test "$GCC" = yes; then
7868  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7869  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7870    # if the path contains ";" then we assume it to be the separator
7871    # otherwise default to the standard path separator (i.e. ":") - it is
7872    # assumed that no part of a normal pathname contains ";" but that should
7873    # okay in the real world where ";" in dirpaths is itself problematic.
7874    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7875  else
7876    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7877  fi
7878else
7879  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7880fi
7881need_lib_prefix=unknown
7882hardcode_into_libs=no
7883
7884# when you set need_version to no, make sure it does not cause -set_version
7885# flags to be left without arguments
7886need_version=unknown
7887
7888case $host_os in
7889aix3*)
7890  version_type=linux
7891  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7892  shlibpath_var=LIBPATH
7893
7894  # AIX 3 has no versioning support, so we append a major version to the name.
7895  soname_spec='${libname}${release}${shared_ext}$major'
7896  ;;
7897
7898aix4* | aix5*)
7899  version_type=linux
7900  need_lib_prefix=no
7901  need_version=no
7902  hardcode_into_libs=yes
7903  if test "$host_cpu" = ia64; then
7904    # AIX 5 supports IA64
7905    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7906    shlibpath_var=LD_LIBRARY_PATH
7907  else
7908    # With GCC up to 2.95.x, collect2 would create an import file
7909    # for dependence libraries.  The import file would start with
7910    # the line `#! .'.  This would cause the generated library to
7911    # depend on `.', always an invalid library.  This was fixed in
7912    # development snapshots of GCC prior to 3.0.
7913    case $host_os in
7914      aix4 | aix4.[01] | aix4.[01].*)
7915      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7916	   echo ' yes '
7917	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7918	:
7919      else
7920	can_build_shared=no
7921      fi
7922      ;;
7923    esac
7924    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7925    # soname into executable. Probably we can add versioning support to
7926    # collect2, so additional links can be useful in future.
7927    if test "$aix_use_runtimelinking" = yes; then
7928      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7929      # instead of lib<name>.a to let people know that these are not
7930      # typical AIX shared libraries.
7931      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7932    else
7933      # We preserve .a as extension for shared libraries through AIX4.2
7934      # and later when we are not doing run time linking.
7935      library_names_spec='${libname}${release}.a $libname.a'
7936      soname_spec='${libname}${release}${shared_ext}$major'
7937    fi
7938    shlibpath_var=LIBPATH
7939  fi
7940  ;;
7941
7942amigaos*)
7943  library_names_spec='$libname.ixlibrary $libname.a'
7944  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7945  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'
7946  ;;
7947
7948beos*)
7949  library_names_spec='${libname}${shared_ext}'
7950  dynamic_linker="$host_os ld.so"
7951  shlibpath_var=LIBRARY_PATH
7952  ;;
7953
7954bsdi[45]*)
7955  version_type=linux
7956  need_version=no
7957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958  soname_spec='${libname}${release}${shared_ext}$major'
7959  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7960  shlibpath_var=LD_LIBRARY_PATH
7961  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7962  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7963  # the default ld.so.conf also contains /usr/contrib/lib and
7964  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7965  # libtool to hard-code these into programs
7966  ;;
7967
7968cygwin* | mingw* | pw32*)
7969  version_type=windows
7970  shrext_cmds=".dll"
7971  need_version=no
7972  need_lib_prefix=no
7973
7974  case $GCC,$host_os in
7975  yes,cygwin* | yes,mingw* | yes,pw32*)
7976    library_names_spec='$libname.dll.a'
7977    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7978    postinstall_cmds='base_file=`basename \${file}`~
7979      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7980      dldir=$destdir/`dirname \$dlpath`~
7981      test -d \$dldir || mkdir -p \$dldir~
7982      $install_prog $dir/$dlname \$dldir/$dlname~
7983      chmod a+x \$dldir/$dlname'
7984    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7985      dlpath=$dir/\$dldll~
7986       $rm \$dlpath'
7987    shlibpath_overrides_runpath=yes
7988
7989    case $host_os in
7990    cygwin*)
7991      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7992      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7993      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7994      ;;
7995    mingw*)
7996      # MinGW DLLs use traditional 'lib' prefix
7997      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7998      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7999      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8000        # It is most probably a Windows format PATH printed by
8001        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8002        # path with ; separators, and with drive letters. We can handle the
8003        # drive letters (cygwin fileutils understands them), so leave them,
8004        # especially as we might pass files found there to a mingw objdump,
8005        # which wouldn't understand a cygwinified path. Ahh.
8006        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8007      else
8008        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8009      fi
8010      ;;
8011    pw32*)
8012      # pw32 DLLs use 'pw' prefix rather than 'lib'
8013      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8014      ;;
8015    esac
8016    ;;
8017
8018  *)
8019    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8020    ;;
8021  esac
8022  dynamic_linker='Win32 ld.exe'
8023  # FIXME: first we should search . and the directory the executable is in
8024  shlibpath_var=PATH
8025  ;;
8026
8027darwin* | rhapsody*)
8028  dynamic_linker="$host_os dyld"
8029  version_type=darwin
8030  need_lib_prefix=no
8031  need_version=no
8032  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8033  soname_spec='${libname}${release}${major}$shared_ext'
8034  shlibpath_overrides_runpath=yes
8035  shlibpath_var=DYLD_LIBRARY_PATH
8036  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8037  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8038  if test "$GCC" = yes; then
8039    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"`
8040  else
8041    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8042  fi
8043  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8044  ;;
8045
8046dgux*)
8047  version_type=linux
8048  need_lib_prefix=no
8049  need_version=no
8050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8051  soname_spec='${libname}${release}${shared_ext}$major'
8052  shlibpath_var=LD_LIBRARY_PATH
8053  ;;
8054
8055freebsd1*)
8056  dynamic_linker=no
8057  ;;
8058
8059kfreebsd*-gnu)
8060  version_type=linux
8061  need_lib_prefix=no
8062  need_version=no
8063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8064  soname_spec='${libname}${release}${shared_ext}$major'
8065  shlibpath_var=LD_LIBRARY_PATH
8066  shlibpath_overrides_runpath=no
8067  hardcode_into_libs=yes
8068  dynamic_linker='GNU ld.so'
8069  ;;
8070
8071freebsd* | dragonfly*)
8072  # DragonFly does not have aout.  When/if they implement a new
8073  # versioning mechanism, adjust this.
8074  if test -x /usr/bin/objformat; then
8075    objformat=`/usr/bin/objformat`
8076  else
8077    case $host_os in
8078    freebsd[123]*) objformat=aout ;;
8079    *) objformat=elf ;;
8080    esac
8081  fi
8082  version_type=freebsd-$objformat
8083  case $version_type in
8084    freebsd-elf*)
8085      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8086      need_version=no
8087      need_lib_prefix=no
8088      ;;
8089    freebsd-*)
8090      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8091      need_version=yes
8092      ;;
8093  esac
8094  shlibpath_var=LD_LIBRARY_PATH
8095  case $host_os in
8096  freebsd2*)
8097    shlibpath_overrides_runpath=yes
8098    ;;
8099  freebsd3.[01]* | freebsdelf3.[01]*)
8100    shlibpath_overrides_runpath=yes
8101    hardcode_into_libs=yes
8102    ;;
8103  *) # from 3.2 on
8104    shlibpath_overrides_runpath=no
8105    hardcode_into_libs=yes
8106    ;;
8107  esac
8108  ;;
8109
8110gnu*)
8111  version_type=linux
8112  need_lib_prefix=no
8113  need_version=no
8114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8115  soname_spec='${libname}${release}${shared_ext}$major'
8116  shlibpath_var=LD_LIBRARY_PATH
8117  hardcode_into_libs=yes
8118  ;;
8119
8120hpux9* | hpux10* | hpux11*)
8121  # Give a soname corresponding to the major version so that dld.sl refuses to
8122  # link against other versions.
8123  version_type=sunos
8124  need_lib_prefix=no
8125  need_version=no
8126  case $host_cpu in
8127  ia64*)
8128    shrext_cmds='.so'
8129    hardcode_into_libs=yes
8130    dynamic_linker="$host_os dld.so"
8131    shlibpath_var=LD_LIBRARY_PATH
8132    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8133    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8134    soname_spec='${libname}${release}${shared_ext}$major'
8135    if test "X$HPUX_IA64_MODE" = X32; then
8136      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8137    else
8138      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8139    fi
8140    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8141    ;;
8142   hppa*64*)
8143     shrext_cmds='.sl'
8144     hardcode_into_libs=yes
8145     dynamic_linker="$host_os dld.sl"
8146     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8147     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8149     soname_spec='${libname}${release}${shared_ext}$major'
8150     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8151     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8152     ;;
8153   *)
8154    shrext_cmds='.sl'
8155    dynamic_linker="$host_os dld.sl"
8156    shlibpath_var=SHLIB_PATH
8157    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8158    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8159    soname_spec='${libname}${release}${shared_ext}$major'
8160    ;;
8161  esac
8162  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8163  postinstall_cmds='chmod 555 $lib'
8164  ;;
8165
8166irix5* | irix6* | nonstopux*)
8167  case $host_os in
8168    nonstopux*) version_type=nonstopux ;;
8169    *)
8170	if test "$lt_cv_prog_gnu_ld" = yes; then
8171		version_type=linux
8172	else
8173		version_type=irix
8174	fi ;;
8175  esac
8176  need_lib_prefix=no
8177  need_version=no
8178  soname_spec='${libname}${release}${shared_ext}$major'
8179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8180  case $host_os in
8181  irix5* | nonstopux*)
8182    libsuff= shlibsuff=
8183    ;;
8184  *)
8185    case $LD in # libtool.m4 will add one of these switches to LD
8186    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8187      libsuff= shlibsuff= libmagic=32-bit;;
8188    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8189      libsuff=32 shlibsuff=N32 libmagic=N32;;
8190    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8191      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8192    *) libsuff= shlibsuff= libmagic=never-match;;
8193    esac
8194    ;;
8195  esac
8196  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8197  shlibpath_overrides_runpath=no
8198  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8199  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8200  hardcode_into_libs=yes
8201  ;;
8202
8203# No shared lib support for Linux oldld, aout, or coff.
8204linux*oldld* | linux*aout* | linux*coff*)
8205  dynamic_linker=no
8206  ;;
8207
8208# This must be Linux ELF.
8209linux*)
8210  version_type=linux
8211  need_lib_prefix=no
8212  need_version=no
8213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8214  soname_spec='${libname}${release}${shared_ext}$major'
8215  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8216  shlibpath_var=LD_LIBRARY_PATH
8217  shlibpath_overrides_runpath=no
8218  # This implies no fast_install, which is unacceptable.
8219  # Some rework will be needed to allow for fast_install
8220  # before this can be enabled.
8221  hardcode_into_libs=yes
8222
8223  # Append ld.so.conf contents to the search path
8224  if test -f /etc/ld.so.conf; then
8225    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8226    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8227  fi
8228
8229  # We used to test for /lib/ld.so.1 and disable shared libraries on
8230  # powerpc, because MkLinux only supported shared libraries with the
8231  # GNU dynamic linker.  Since this was broken with cross compilers,
8232  # most powerpc-linux boxes support dynamic linking these days and
8233  # people can always --disable-shared, the test was removed, and we
8234  # assume the GNU/Linux dynamic linker is in use.
8235  dynamic_linker='GNU/Linux ld.so'
8236  ;;
8237
8238knetbsd*-gnu)
8239  version_type=linux
8240  need_lib_prefix=no
8241  need_version=no
8242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8243  soname_spec='${libname}${release}${shared_ext}$major'
8244  shlibpath_var=LD_LIBRARY_PATH
8245  shlibpath_overrides_runpath=no
8246  hardcode_into_libs=yes
8247  dynamic_linker='GNU ld.so'
8248  ;;
8249
8250netbsd*)
8251  version_type=sunos
8252  need_lib_prefix=no
8253  need_version=no
8254  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8255    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8256    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8257    dynamic_linker='NetBSD (a.out) ld.so'
8258  else
8259    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8260    soname_spec='${libname}${release}${shared_ext}$major'
8261    dynamic_linker='NetBSD ld.elf_so'
8262  fi
8263  shlibpath_var=LD_LIBRARY_PATH
8264  shlibpath_overrides_runpath=yes
8265  hardcode_into_libs=yes
8266  ;;
8267
8268newsos6)
8269  version_type=linux
8270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8271  shlibpath_var=LD_LIBRARY_PATH
8272  shlibpath_overrides_runpath=yes
8273  ;;
8274
8275nto-qnx*)
8276  version_type=linux
8277  need_lib_prefix=no
8278  need_version=no
8279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8280  soname_spec='${libname}${release}${shared_ext}$major'
8281  shlibpath_var=LD_LIBRARY_PATH
8282  shlibpath_overrides_runpath=yes
8283  ;;
8284
8285openbsd*)
8286  version_type=sunos
8287  need_lib_prefix=no
8288  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8289  case $host_os in
8290    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8291    *)                         need_version=no  ;;
8292  esac
8293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8294  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8295  shlibpath_var=LD_LIBRARY_PATH
8296  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8297    case $host_os in
8298      openbsd2.[89] | openbsd2.[89].*)
8299	shlibpath_overrides_runpath=no
8300	;;
8301      *)
8302	shlibpath_overrides_runpath=yes
8303	;;
8304      esac
8305  else
8306    shlibpath_overrides_runpath=yes
8307  fi
8308  ;;
8309
8310os2*)
8311  libname_spec='$name'
8312  shrext_cmds=".dll"
8313  need_lib_prefix=no
8314  library_names_spec='$libname${shared_ext} $libname.a'
8315  dynamic_linker='OS/2 ld.exe'
8316  shlibpath_var=LIBPATH
8317  ;;
8318
8319osf3* | osf4* | osf5*)
8320  version_type=osf
8321  need_lib_prefix=no
8322  need_version=no
8323  soname_spec='${libname}${release}${shared_ext}$major'
8324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8325  shlibpath_var=LD_LIBRARY_PATH
8326  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8327  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8328  ;;
8329
8330sco3.2v5*)
8331  version_type=osf
8332  soname_spec='${libname}${release}${shared_ext}$major'
8333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8334  shlibpath_var=LD_LIBRARY_PATH
8335  ;;
8336
8337solaris*)
8338  version_type=linux
8339  need_lib_prefix=no
8340  need_version=no
8341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8342  soname_spec='${libname}${release}${shared_ext}$major'
8343  shlibpath_var=LD_LIBRARY_PATH
8344  shlibpath_overrides_runpath=yes
8345  hardcode_into_libs=yes
8346  # ldd complains unless libraries are executable
8347  postinstall_cmds='chmod +x $lib'
8348  ;;
8349
8350sunos4*)
8351  version_type=sunos
8352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8353  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8354  shlibpath_var=LD_LIBRARY_PATH
8355  shlibpath_overrides_runpath=yes
8356  if test "$with_gnu_ld" = yes; then
8357    need_lib_prefix=no
8358  fi
8359  need_version=yes
8360  ;;
8361
8362sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8363  version_type=linux
8364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8365  soname_spec='${libname}${release}${shared_ext}$major'
8366  shlibpath_var=LD_LIBRARY_PATH
8367  case $host_vendor in
8368    sni)
8369      shlibpath_overrides_runpath=no
8370      need_lib_prefix=no
8371      export_dynamic_flag_spec='${wl}-Blargedynsym'
8372      runpath_var=LD_RUN_PATH
8373      ;;
8374    siemens)
8375      need_lib_prefix=no
8376      ;;
8377    motorola)
8378      need_lib_prefix=no
8379      need_version=no
8380      shlibpath_overrides_runpath=no
8381      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8382      ;;
8383  esac
8384  ;;
8385
8386sysv4*MP*)
8387  if test -d /usr/nec ;then
8388    version_type=linux
8389    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8390    soname_spec='$libname${shared_ext}.$major'
8391    shlibpath_var=LD_LIBRARY_PATH
8392  fi
8393  ;;
8394
8395uts4*)
8396  version_type=linux
8397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8398  soname_spec='${libname}${release}${shared_ext}$major'
8399  shlibpath_var=LD_LIBRARY_PATH
8400  ;;
8401
8402*)
8403  dynamic_linker=no
8404  ;;
8405esac
8406echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8407echo "${ECHO_T}$dynamic_linker" >&6
8408test "$dynamic_linker" = no && can_build_shared=no
8409
8410echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8411echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8412hardcode_action=
8413if test -n "$hardcode_libdir_flag_spec" || \
8414   test -n "$runpath_var" || \
8415   test "X$hardcode_automatic" = "Xyes" ; then
8416
8417  # We can hardcode non-existant directories.
8418  if test "$hardcode_direct" != no &&
8419     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8420     # have to relink, otherwise we might link with an installed library
8421     # when we should be linking with a yet-to-be-installed one
8422     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8423     test "$hardcode_minus_L" != no; then
8424    # Linking always hardcodes the temporary library directory.
8425    hardcode_action=relink
8426  else
8427    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8428    hardcode_action=immediate
8429  fi
8430else
8431  # We cannot hardcode anything, or else we can only hardcode existing
8432  # directories.
8433  hardcode_action=unsupported
8434fi
8435echo "$as_me:$LINENO: result: $hardcode_action" >&5
8436echo "${ECHO_T}$hardcode_action" >&6
8437
8438if test "$hardcode_action" = relink; then
8439  # Fast installation is not supported
8440  enable_fast_install=no
8441elif test "$shlibpath_overrides_runpath" = yes ||
8442     test "$enable_shared" = no; then
8443  # Fast installation is not necessary
8444  enable_fast_install=needless
8445fi
8446
8447striplib=
8448old_striplib=
8449echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8450echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8451if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8452  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8453  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8454  echo "$as_me:$LINENO: result: yes" >&5
8455echo "${ECHO_T}yes" >&6
8456else
8457# FIXME - insert some real tests, host_os isn't really good enough
8458  case $host_os in
8459   darwin*)
8460       if test -n "$STRIP" ; then
8461         striplib="$STRIP -x"
8462         echo "$as_me:$LINENO: result: yes" >&5
8463echo "${ECHO_T}yes" >&6
8464       else
8465  echo "$as_me:$LINENO: result: no" >&5
8466echo "${ECHO_T}no" >&6
8467fi
8468       ;;
8469   *)
8470  echo "$as_me:$LINENO: result: no" >&5
8471echo "${ECHO_T}no" >&6
8472    ;;
8473  esac
8474fi
8475
8476if test "x$enable_dlopen" != xyes; then
8477  enable_dlopen=unknown
8478  enable_dlopen_self=unknown
8479  enable_dlopen_self_static=unknown
8480else
8481  lt_cv_dlopen=no
8482  lt_cv_dlopen_libs=
8483
8484  case $host_os in
8485  beos*)
8486    lt_cv_dlopen="load_add_on"
8487    lt_cv_dlopen_libs=
8488    lt_cv_dlopen_self=yes
8489    ;;
8490
8491  mingw* | pw32*)
8492    lt_cv_dlopen="LoadLibrary"
8493    lt_cv_dlopen_libs=
8494   ;;
8495
8496  cygwin*)
8497    lt_cv_dlopen="dlopen"
8498    lt_cv_dlopen_libs=
8499   ;;
8500
8501  darwin*)
8502  # if libdl is installed we need to link against it
8503    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8504echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8505if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8506  echo $ECHO_N "(cached) $ECHO_C" >&6
8507else
8508  ac_check_lib_save_LIBS=$LIBS
8509LIBS="-ldl  $LIBS"
8510cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h.  */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h.  */
8516
8517/* Override any gcc2 internal prototype to avoid an error.  */
8518#ifdef __cplusplus
8519extern "C"
8520#endif
8521/* We use char because int might match the return type of a gcc2
8522   builtin and then its argument prototype would still apply.  */
8523char dlopen ();
8524int
8525main ()
8526{
8527dlopen ();
8528  ;
8529  return 0;
8530}
8531_ACEOF
8532rm -f conftest.$ac_objext conftest$ac_exeext
8533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8534  (eval $ac_link) 2>conftest.er1
8535  ac_status=$?
8536  grep -v '^ *+' conftest.er1 >conftest.err
8537  rm -f conftest.er1
8538  cat conftest.err >&5
8539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540  (exit $ac_status); } &&
8541	 { ac_try='test -z "$ac_c_werror_flag"
8542			 || test ! -s conftest.err'
8543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544  (eval $ac_try) 2>&5
8545  ac_status=$?
8546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547  (exit $ac_status); }; } &&
8548	 { ac_try='test -s conftest$ac_exeext'
8549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550  (eval $ac_try) 2>&5
8551  ac_status=$?
8552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553  (exit $ac_status); }; }; then
8554  ac_cv_lib_dl_dlopen=yes
8555else
8556  echo "$as_me: failed program was:" >&5
8557sed 's/^/| /' conftest.$ac_ext >&5
8558
8559ac_cv_lib_dl_dlopen=no
8560fi
8561rm -f conftest.err conftest.$ac_objext \
8562      conftest$ac_exeext conftest.$ac_ext
8563LIBS=$ac_check_lib_save_LIBS
8564fi
8565echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8566echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8567if test $ac_cv_lib_dl_dlopen = yes; then
8568  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8569else
8570
8571    lt_cv_dlopen="dyld"
8572    lt_cv_dlopen_libs=
8573    lt_cv_dlopen_self=yes
8574
8575fi
8576
8577   ;;
8578
8579  *)
8580    echo "$as_me:$LINENO: checking for shl_load" >&5
8581echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8582if test "${ac_cv_func_shl_load+set}" = set; then
8583  echo $ECHO_N "(cached) $ECHO_C" >&6
8584else
8585  cat >conftest.$ac_ext <<_ACEOF
8586/* confdefs.h.  */
8587_ACEOF
8588cat confdefs.h >>conftest.$ac_ext
8589cat >>conftest.$ac_ext <<_ACEOF
8590/* end confdefs.h.  */
8591/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8592   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8593#define shl_load innocuous_shl_load
8594
8595/* System header to define __stub macros and hopefully few prototypes,
8596    which can conflict with char shl_load (); below.
8597    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8598    <limits.h> exists even on freestanding compilers.  */
8599
8600#ifdef __STDC__
8601# include <limits.h>
8602#else
8603# include <assert.h>
8604#endif
8605
8606#undef shl_load
8607
8608/* Override any gcc2 internal prototype to avoid an error.  */
8609#ifdef __cplusplus
8610extern "C"
8611{
8612#endif
8613/* We use char because int might match the return type of a gcc2
8614   builtin and then its argument prototype would still apply.  */
8615char shl_load ();
8616/* The GNU C library defines this for functions which it implements
8617    to always fail with ENOSYS.  Some functions are actually named
8618    something starting with __ and the normal name is an alias.  */
8619#if defined (__stub_shl_load) || defined (__stub___shl_load)
8620choke me
8621#else
8622char (*f) () = shl_load;
8623#endif
8624#ifdef __cplusplus
8625}
8626#endif
8627
8628int
8629main ()
8630{
8631return f != shl_load;
8632  ;
8633  return 0;
8634}
8635_ACEOF
8636rm -f conftest.$ac_objext conftest$ac_exeext
8637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8638  (eval $ac_link) 2>conftest.er1
8639  ac_status=$?
8640  grep -v '^ *+' conftest.er1 >conftest.err
8641  rm -f conftest.er1
8642  cat conftest.err >&5
8643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644  (exit $ac_status); } &&
8645	 { ac_try='test -z "$ac_c_werror_flag"
8646			 || test ! -s conftest.err'
8647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648  (eval $ac_try) 2>&5
8649  ac_status=$?
8650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651  (exit $ac_status); }; } &&
8652	 { ac_try='test -s conftest$ac_exeext'
8653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654  (eval $ac_try) 2>&5
8655  ac_status=$?
8656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657  (exit $ac_status); }; }; then
8658  ac_cv_func_shl_load=yes
8659else
8660  echo "$as_me: failed program was:" >&5
8661sed 's/^/| /' conftest.$ac_ext >&5
8662
8663ac_cv_func_shl_load=no
8664fi
8665rm -f conftest.err conftest.$ac_objext \
8666      conftest$ac_exeext conftest.$ac_ext
8667fi
8668echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8669echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8670if test $ac_cv_func_shl_load = yes; then
8671  lt_cv_dlopen="shl_load"
8672else
8673  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8674echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8675if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8676  echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678  ac_check_lib_save_LIBS=$LIBS
8679LIBS="-ldld  $LIBS"
8680cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h.  */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h.  */
8686
8687/* Override any gcc2 internal prototype to avoid an error.  */
8688#ifdef __cplusplus
8689extern "C"
8690#endif
8691/* We use char because int might match the return type of a gcc2
8692   builtin and then its argument prototype would still apply.  */
8693char shl_load ();
8694int
8695main ()
8696{
8697shl_load ();
8698  ;
8699  return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext conftest$ac_exeext
8703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8704  (eval $ac_link) 2>conftest.er1
8705  ac_status=$?
8706  grep -v '^ *+' conftest.er1 >conftest.err
8707  rm -f conftest.er1
8708  cat conftest.err >&5
8709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710  (exit $ac_status); } &&
8711	 { ac_try='test -z "$ac_c_werror_flag"
8712			 || test ! -s conftest.err'
8713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714  (eval $ac_try) 2>&5
8715  ac_status=$?
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); }; } &&
8718	 { ac_try='test -s conftest$ac_exeext'
8719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720  (eval $ac_try) 2>&5
8721  ac_status=$?
8722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723  (exit $ac_status); }; }; then
8724  ac_cv_lib_dld_shl_load=yes
8725else
8726  echo "$as_me: failed program was:" >&5
8727sed 's/^/| /' conftest.$ac_ext >&5
8728
8729ac_cv_lib_dld_shl_load=no
8730fi
8731rm -f conftest.err conftest.$ac_objext \
8732      conftest$ac_exeext conftest.$ac_ext
8733LIBS=$ac_check_lib_save_LIBS
8734fi
8735echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8736echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8737if test $ac_cv_lib_dld_shl_load = yes; then
8738  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8739else
8740  echo "$as_me:$LINENO: checking for dlopen" >&5
8741echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8742if test "${ac_cv_func_dlopen+set}" = set; then
8743  echo $ECHO_N "(cached) $ECHO_C" >&6
8744else
8745  cat >conftest.$ac_ext <<_ACEOF
8746/* confdefs.h.  */
8747_ACEOF
8748cat confdefs.h >>conftest.$ac_ext
8749cat >>conftest.$ac_ext <<_ACEOF
8750/* end confdefs.h.  */
8751/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8752   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8753#define dlopen innocuous_dlopen
8754
8755/* System header to define __stub macros and hopefully few prototypes,
8756    which can conflict with char dlopen (); below.
8757    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8758    <limits.h> exists even on freestanding compilers.  */
8759
8760#ifdef __STDC__
8761# include <limits.h>
8762#else
8763# include <assert.h>
8764#endif
8765
8766#undef dlopen
8767
8768/* Override any gcc2 internal prototype to avoid an error.  */
8769#ifdef __cplusplus
8770extern "C"
8771{
8772#endif
8773/* We use char because int might match the return type of a gcc2
8774   builtin and then its argument prototype would still apply.  */
8775char dlopen ();
8776/* The GNU C library defines this for functions which it implements
8777    to always fail with ENOSYS.  Some functions are actually named
8778    something starting with __ and the normal name is an alias.  */
8779#if defined (__stub_dlopen) || defined (__stub___dlopen)
8780choke me
8781#else
8782char (*f) () = dlopen;
8783#endif
8784#ifdef __cplusplus
8785}
8786#endif
8787
8788int
8789main ()
8790{
8791return f != dlopen;
8792  ;
8793  return 0;
8794}
8795_ACEOF
8796rm -f conftest.$ac_objext conftest$ac_exeext
8797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798  (eval $ac_link) 2>conftest.er1
8799  ac_status=$?
8800  grep -v '^ *+' conftest.er1 >conftest.err
8801  rm -f conftest.er1
8802  cat conftest.err >&5
8803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804  (exit $ac_status); } &&
8805	 { ac_try='test -z "$ac_c_werror_flag"
8806			 || test ! -s conftest.err'
8807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808  (eval $ac_try) 2>&5
8809  ac_status=$?
8810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811  (exit $ac_status); }; } &&
8812	 { ac_try='test -s conftest$ac_exeext'
8813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814  (eval $ac_try) 2>&5
8815  ac_status=$?
8816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817  (exit $ac_status); }; }; then
8818  ac_cv_func_dlopen=yes
8819else
8820  echo "$as_me: failed program was:" >&5
8821sed 's/^/| /' conftest.$ac_ext >&5
8822
8823ac_cv_func_dlopen=no
8824fi
8825rm -f conftest.err conftest.$ac_objext \
8826      conftest$ac_exeext conftest.$ac_ext
8827fi
8828echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8829echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8830if test $ac_cv_func_dlopen = yes; then
8831  lt_cv_dlopen="dlopen"
8832else
8833  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8834echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8835if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8836  echo $ECHO_N "(cached) $ECHO_C" >&6
8837else
8838  ac_check_lib_save_LIBS=$LIBS
8839LIBS="-ldl  $LIBS"
8840cat >conftest.$ac_ext <<_ACEOF
8841/* confdefs.h.  */
8842_ACEOF
8843cat confdefs.h >>conftest.$ac_ext
8844cat >>conftest.$ac_ext <<_ACEOF
8845/* end confdefs.h.  */
8846
8847/* Override any gcc2 internal prototype to avoid an error.  */
8848#ifdef __cplusplus
8849extern "C"
8850#endif
8851/* We use char because int might match the return type of a gcc2
8852   builtin and then its argument prototype would still apply.  */
8853char dlopen ();
8854int
8855main ()
8856{
8857dlopen ();
8858  ;
8859  return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext conftest$ac_exeext
8863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864  (eval $ac_link) 2>conftest.er1
8865  ac_status=$?
8866  grep -v '^ *+' conftest.er1 >conftest.err
8867  rm -f conftest.er1
8868  cat conftest.err >&5
8869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870  (exit $ac_status); } &&
8871	 { ac_try='test -z "$ac_c_werror_flag"
8872			 || test ! -s conftest.err'
8873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874  (eval $ac_try) 2>&5
8875  ac_status=$?
8876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877  (exit $ac_status); }; } &&
8878	 { ac_try='test -s conftest$ac_exeext'
8879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880  (eval $ac_try) 2>&5
8881  ac_status=$?
8882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883  (exit $ac_status); }; }; then
8884  ac_cv_lib_dl_dlopen=yes
8885else
8886  echo "$as_me: failed program was:" >&5
8887sed 's/^/| /' conftest.$ac_ext >&5
8888
8889ac_cv_lib_dl_dlopen=no
8890fi
8891rm -f conftest.err conftest.$ac_objext \
8892      conftest$ac_exeext conftest.$ac_ext
8893LIBS=$ac_check_lib_save_LIBS
8894fi
8895echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8896echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8897if test $ac_cv_lib_dl_dlopen = yes; then
8898  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8899else
8900  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8901echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8902if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8903  echo $ECHO_N "(cached) $ECHO_C" >&6
8904else
8905  ac_check_lib_save_LIBS=$LIBS
8906LIBS="-lsvld  $LIBS"
8907cat >conftest.$ac_ext <<_ACEOF
8908/* confdefs.h.  */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h.  */
8913
8914/* Override any gcc2 internal prototype to avoid an error.  */
8915#ifdef __cplusplus
8916extern "C"
8917#endif
8918/* We use char because int might match the return type of a gcc2
8919   builtin and then its argument prototype would still apply.  */
8920char dlopen ();
8921int
8922main ()
8923{
8924dlopen ();
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929rm -f conftest.$ac_objext conftest$ac_exeext
8930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8931  (eval $ac_link) 2>conftest.er1
8932  ac_status=$?
8933  grep -v '^ *+' conftest.er1 >conftest.err
8934  rm -f conftest.er1
8935  cat conftest.err >&5
8936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937  (exit $ac_status); } &&
8938	 { ac_try='test -z "$ac_c_werror_flag"
8939			 || test ! -s conftest.err'
8940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941  (eval $ac_try) 2>&5
8942  ac_status=$?
8943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944  (exit $ac_status); }; } &&
8945	 { ac_try='test -s conftest$ac_exeext'
8946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947  (eval $ac_try) 2>&5
8948  ac_status=$?
8949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950  (exit $ac_status); }; }; then
8951  ac_cv_lib_svld_dlopen=yes
8952else
8953  echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5
8955
8956ac_cv_lib_svld_dlopen=no
8957fi
8958rm -f conftest.err conftest.$ac_objext \
8959      conftest$ac_exeext conftest.$ac_ext
8960LIBS=$ac_check_lib_save_LIBS
8961fi
8962echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8963echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8964if test $ac_cv_lib_svld_dlopen = yes; then
8965  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8966else
8967  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8968echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8969if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8970  echo $ECHO_N "(cached) $ECHO_C" >&6
8971else
8972  ac_check_lib_save_LIBS=$LIBS
8973LIBS="-ldld  $LIBS"
8974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h.  */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h.  */
8980
8981/* Override any gcc2 internal prototype to avoid an error.  */
8982#ifdef __cplusplus
8983extern "C"
8984#endif
8985/* We use char because int might match the return type of a gcc2
8986   builtin and then its argument prototype would still apply.  */
8987char dld_link ();
8988int
8989main ()
8990{
8991dld_link ();
8992  ;
8993  return 0;
8994}
8995_ACEOF
8996rm -f conftest.$ac_objext conftest$ac_exeext
8997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998  (eval $ac_link) 2>conftest.er1
8999  ac_status=$?
9000  grep -v '^ *+' conftest.er1 >conftest.err
9001  rm -f conftest.er1
9002  cat conftest.err >&5
9003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004  (exit $ac_status); } &&
9005	 { ac_try='test -z "$ac_c_werror_flag"
9006			 || test ! -s conftest.err'
9007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9008  (eval $ac_try) 2>&5
9009  ac_status=$?
9010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011  (exit $ac_status); }; } &&
9012	 { ac_try='test -s conftest$ac_exeext'
9013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014  (eval $ac_try) 2>&5
9015  ac_status=$?
9016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017  (exit $ac_status); }; }; then
9018  ac_cv_lib_dld_dld_link=yes
9019else
9020  echo "$as_me: failed program was:" >&5
9021sed 's/^/| /' conftest.$ac_ext >&5
9022
9023ac_cv_lib_dld_dld_link=no
9024fi
9025rm -f conftest.err conftest.$ac_objext \
9026      conftest$ac_exeext conftest.$ac_ext
9027LIBS=$ac_check_lib_save_LIBS
9028fi
9029echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9030echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9031if test $ac_cv_lib_dld_dld_link = yes; then
9032  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9033fi
9034
9035
9036fi
9037
9038
9039fi
9040
9041
9042fi
9043
9044
9045fi
9046
9047
9048fi
9049
9050    ;;
9051  esac
9052
9053  if test "x$lt_cv_dlopen" != xno; then
9054    enable_dlopen=yes
9055  else
9056    enable_dlopen=no
9057  fi
9058
9059  case $lt_cv_dlopen in
9060  dlopen)
9061    save_CPPFLAGS="$CPPFLAGS"
9062    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9063
9064    save_LDFLAGS="$LDFLAGS"
9065    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9066
9067    save_LIBS="$LIBS"
9068    LIBS="$lt_cv_dlopen_libs $LIBS"
9069
9070    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9071echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9072if test "${lt_cv_dlopen_self+set}" = set; then
9073  echo $ECHO_N "(cached) $ECHO_C" >&6
9074else
9075  	  if test "$cross_compiling" = yes; then :
9076  lt_cv_dlopen_self=cross
9077else
9078  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9079  lt_status=$lt_dlunknown
9080  cat > conftest.$ac_ext <<EOF
9081#line 9081 "configure"
9082#include "confdefs.h"
9083
9084#if HAVE_DLFCN_H
9085#include <dlfcn.h>
9086#endif
9087
9088#include <stdio.h>
9089
9090#ifdef RTLD_GLOBAL
9091#  define LT_DLGLOBAL		RTLD_GLOBAL
9092#else
9093#  ifdef DL_GLOBAL
9094#    define LT_DLGLOBAL		DL_GLOBAL
9095#  else
9096#    define LT_DLGLOBAL		0
9097#  endif
9098#endif
9099
9100/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9101   find out it does not work in some platform. */
9102#ifndef LT_DLLAZY_OR_NOW
9103#  ifdef RTLD_LAZY
9104#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9105#  else
9106#    ifdef DL_LAZY
9107#      define LT_DLLAZY_OR_NOW		DL_LAZY
9108#    else
9109#      ifdef RTLD_NOW
9110#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9111#      else
9112#        ifdef DL_NOW
9113#          define LT_DLLAZY_OR_NOW	DL_NOW
9114#        else
9115#          define LT_DLLAZY_OR_NOW	0
9116#        endif
9117#      endif
9118#    endif
9119#  endif
9120#endif
9121
9122#ifdef __cplusplus
9123extern "C" void exit (int);
9124#endif
9125
9126void fnord() { int i=42;}
9127int main ()
9128{
9129  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9130  int status = $lt_dlunknown;
9131
9132  if (self)
9133    {
9134      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9135      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9136      /* dlclose (self); */
9137    }
9138
9139    exit (status);
9140}
9141EOF
9142  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143  (eval $ac_link) 2>&5
9144  ac_status=$?
9145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9147    (./conftest; exit; ) >&5 2>/dev/null
9148    lt_status=$?
9149    case x$lt_status in
9150      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9151      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9152      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9153    esac
9154  else :
9155    # compilation failed
9156    lt_cv_dlopen_self=no
9157  fi
9158fi
9159rm -fr conftest*
9160
9161
9162fi
9163echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9164echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9165
9166    if test "x$lt_cv_dlopen_self" = xyes; then
9167      LDFLAGS="$LDFLAGS $link_static_flag"
9168      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9169echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9170if test "${lt_cv_dlopen_self_static+set}" = set; then
9171  echo $ECHO_N "(cached) $ECHO_C" >&6
9172else
9173  	  if test "$cross_compiling" = yes; then :
9174  lt_cv_dlopen_self_static=cross
9175else
9176  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9177  lt_status=$lt_dlunknown
9178  cat > conftest.$ac_ext <<EOF
9179#line 9179 "configure"
9180#include "confdefs.h"
9181
9182#if HAVE_DLFCN_H
9183#include <dlfcn.h>
9184#endif
9185
9186#include <stdio.h>
9187
9188#ifdef RTLD_GLOBAL
9189#  define LT_DLGLOBAL		RTLD_GLOBAL
9190#else
9191#  ifdef DL_GLOBAL
9192#    define LT_DLGLOBAL		DL_GLOBAL
9193#  else
9194#    define LT_DLGLOBAL		0
9195#  endif
9196#endif
9197
9198/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9199   find out it does not work in some platform. */
9200#ifndef LT_DLLAZY_OR_NOW
9201#  ifdef RTLD_LAZY
9202#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9203#  else
9204#    ifdef DL_LAZY
9205#      define LT_DLLAZY_OR_NOW		DL_LAZY
9206#    else
9207#      ifdef RTLD_NOW
9208#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9209#      else
9210#        ifdef DL_NOW
9211#          define LT_DLLAZY_OR_NOW	DL_NOW
9212#        else
9213#          define LT_DLLAZY_OR_NOW	0
9214#        endif
9215#      endif
9216#    endif
9217#  endif
9218#endif
9219
9220#ifdef __cplusplus
9221extern "C" void exit (int);
9222#endif
9223
9224void fnord() { int i=42;}
9225int main ()
9226{
9227  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9228  int status = $lt_dlunknown;
9229
9230  if (self)
9231    {
9232      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9233      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9234      /* dlclose (self); */
9235    }
9236
9237    exit (status);
9238}
9239EOF
9240  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9241  (eval $ac_link) 2>&5
9242  ac_status=$?
9243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9245    (./conftest; exit; ) >&5 2>/dev/null
9246    lt_status=$?
9247    case x$lt_status in
9248      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9249      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9250      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9251    esac
9252  else :
9253    # compilation failed
9254    lt_cv_dlopen_self_static=no
9255  fi
9256fi
9257rm -fr conftest*
9258
9259
9260fi
9261echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9262echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9263    fi
9264
9265    CPPFLAGS="$save_CPPFLAGS"
9266    LDFLAGS="$save_LDFLAGS"
9267    LIBS="$save_LIBS"
9268    ;;
9269  esac
9270
9271  case $lt_cv_dlopen_self in
9272  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9273  *) enable_dlopen_self=unknown ;;
9274  esac
9275
9276  case $lt_cv_dlopen_self_static in
9277  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9278  *) enable_dlopen_self_static=unknown ;;
9279  esac
9280fi
9281
9282
9283# Report which librarie types wil actually be built
9284echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9285echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9286echo "$as_me:$LINENO: result: $can_build_shared" >&5
9287echo "${ECHO_T}$can_build_shared" >&6
9288
9289echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9290echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9291test "$can_build_shared" = "no" && enable_shared=no
9292
9293# On AIX, shared libraries and static libraries use the same namespace, and
9294# are all built from PIC.
9295case $host_os in
9296aix3*)
9297  test "$enable_shared" = yes && enable_static=no
9298  if test -n "$RANLIB"; then
9299    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9300    postinstall_cmds='$RANLIB $lib'
9301  fi
9302  ;;
9303
9304aix4* | aix5*)
9305  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9306    test "$enable_shared" = yes && enable_static=no
9307  fi
9308    ;;
9309esac
9310echo "$as_me:$LINENO: result: $enable_shared" >&5
9311echo "${ECHO_T}$enable_shared" >&6
9312
9313echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9314echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9315# Make sure either enable_shared or enable_static is yes.
9316test "$enable_shared" = yes || enable_static=yes
9317echo "$as_me:$LINENO: result: $enable_static" >&5
9318echo "${ECHO_T}$enable_static" >&6
9319
9320# The else clause should only fire when bootstrapping the
9321# libtool distribution, otherwise you forgot to ship ltmain.sh
9322# with your package, and you will get complaints that there are
9323# no rules to generate ltmain.sh.
9324if test -f "$ltmain"; then
9325  # See if we are running on zsh, and set the options which allow our commands through
9326  # without removal of \ escapes.
9327  if test -n "${ZSH_VERSION+set}" ; then
9328    setopt NO_GLOB_SUBST
9329  fi
9330  # Now quote all the things that may contain metacharacters while being
9331  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9332  # variables and quote the copies for generation of the libtool script.
9333  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9334    SED SHELL STRIP \
9335    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9336    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9337    deplibs_check_method reload_flag reload_cmds need_locks \
9338    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9339    lt_cv_sys_global_symbol_to_c_name_address \
9340    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9341    old_postinstall_cmds old_postuninstall_cmds \
9342    compiler \
9343    CC \
9344    LD \
9345    lt_prog_compiler_wl \
9346    lt_prog_compiler_pic \
9347    lt_prog_compiler_static \
9348    lt_prog_compiler_no_builtin_flag \
9349    export_dynamic_flag_spec \
9350    thread_safe_flag_spec \
9351    whole_archive_flag_spec \
9352    enable_shared_with_static_runtimes \
9353    old_archive_cmds \
9354    old_archive_from_new_cmds \
9355    predep_objects \
9356    postdep_objects \
9357    predeps \
9358    postdeps \
9359    compiler_lib_search_path \
9360    archive_cmds \
9361    archive_expsym_cmds \
9362    postinstall_cmds \
9363    postuninstall_cmds \
9364    old_archive_from_expsyms_cmds \
9365    allow_undefined_flag \
9366    no_undefined_flag \
9367    export_symbols_cmds \
9368    hardcode_libdir_flag_spec \
9369    hardcode_libdir_flag_spec_ld \
9370    hardcode_libdir_separator \
9371    hardcode_automatic \
9372    module_cmds \
9373    module_expsym_cmds \
9374    lt_cv_prog_compiler_c_o \
9375    exclude_expsyms \
9376    include_expsyms; do
9377
9378    case $var in
9379    old_archive_cmds | \
9380    old_archive_from_new_cmds | \
9381    archive_cmds | \
9382    archive_expsym_cmds | \
9383    module_cmds | \
9384    module_expsym_cmds | \
9385    old_archive_from_expsyms_cmds | \
9386    export_symbols_cmds | \
9387    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9388    postinstall_cmds | postuninstall_cmds | \
9389    old_postinstall_cmds | old_postuninstall_cmds | \
9390    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9391      # Double-quote double-evaled strings.
9392      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9393      ;;
9394    *)
9395      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9396      ;;
9397    esac
9398  done
9399
9400  case $lt_echo in
9401  *'\$0 --fallback-echo"')
9402    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9403    ;;
9404  esac
9405
9406cfgfile="${ofile}T"
9407  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9408  $rm -f "$cfgfile"
9409  { echo "$as_me:$LINENO: creating $ofile" >&5
9410echo "$as_me: creating $ofile" >&6;}
9411
9412  cat <<__EOF__ >> "$cfgfile"
9413#! $SHELL
9414
9415# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9416# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9417# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9418#
9419# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9420# Free Software Foundation, Inc.
9421#
9422# This file is part of GNU Libtool:
9423# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9424#
9425# This program is free software; you can redistribute it and/or modify
9426# it under the terms of the GNU General Public License as published by
9427# the Free Software Foundation; either version 2 of the License, or
9428# (at your option) any later version.
9429#
9430# This program is distributed in the hope that it will be useful, but
9431# WITHOUT ANY WARRANTY; without even the implied warranty of
9432# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9433# General Public License for more details.
9434#
9435# You should have received a copy of the GNU General Public License
9436# along with this program; if not, write to the Free Software
9437# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9438#
9439# As a special exception to the GNU General Public License, if you
9440# distribute this file as part of a program that contains a
9441# configuration script generated by Autoconf, you may include it under
9442# the same distribution terms that you use for the rest of that program.
9443
9444# A sed program that does not truncate output.
9445SED=$lt_SED
9446
9447# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9448Xsed="$SED -e 1s/^X//"
9449
9450# The HP-UX ksh and POSIX shell print the target directory to stdout
9451# if CDPATH is set.
9452(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9453
9454# The names of the tagged configurations supported by this script.
9455available_tags=
9456
9457# ### BEGIN LIBTOOL CONFIG
9458
9459# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9460
9461# Shell to use when invoking shell scripts.
9462SHELL=$lt_SHELL
9463
9464# Whether or not to build shared libraries.
9465build_libtool_libs=$enable_shared
9466
9467# Whether or not to build static libraries.
9468build_old_libs=$enable_static
9469
9470# Whether or not to add -lc for building shared libraries.
9471build_libtool_need_lc=$archive_cmds_need_lc
9472
9473# Whether or not to disallow shared libs when runtime libs are static
9474allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9475
9476# Whether or not to optimize for fast installation.
9477fast_install=$enable_fast_install
9478
9479# The host system.
9480host_alias=$host_alias
9481host=$host
9482host_os=$host_os
9483
9484# The build system.
9485build_alias=$build_alias
9486build=$build
9487build_os=$build_os
9488
9489# An echo program that does not interpret backslashes.
9490echo=$lt_echo
9491
9492# The archiver.
9493AR=$lt_AR
9494AR_FLAGS=$lt_AR_FLAGS
9495
9496# A C compiler.
9497LTCC=$lt_LTCC
9498
9499# A language-specific compiler.
9500CC=$lt_compiler
9501
9502# Is the compiler the GNU C compiler?
9503with_gcc=$GCC
9504
9505# An ERE matcher.
9506EGREP=$lt_EGREP
9507
9508# The linker used to build libraries.
9509LD=$lt_LD
9510
9511# Whether we need hard or soft links.
9512LN_S=$lt_LN_S
9513
9514# A BSD-compatible nm program.
9515NM=$lt_NM
9516
9517# A symbol stripping program
9518STRIP=$lt_STRIP
9519
9520# Used to examine libraries when file_magic_cmd begins "file"
9521MAGIC_CMD=$MAGIC_CMD
9522
9523# Used on cygwin: DLL creation program.
9524DLLTOOL="$DLLTOOL"
9525
9526# Used on cygwin: object dumper.
9527OBJDUMP="$OBJDUMP"
9528
9529# Used on cygwin: assembler.
9530AS="$AS"
9531
9532# The name of the directory that contains temporary libtool files.
9533objdir=$objdir
9534
9535# How to create reloadable object files.
9536reload_flag=$lt_reload_flag
9537reload_cmds=$lt_reload_cmds
9538
9539# How to pass a linker flag through the compiler.
9540wl=$lt_lt_prog_compiler_wl
9541
9542# Object file suffix (normally "o").
9543objext="$ac_objext"
9544
9545# Old archive suffix (normally "a").
9546libext="$libext"
9547
9548# Shared library suffix (normally ".so").
9549shrext_cmds='$shrext_cmds'
9550
9551# Executable file suffix (normally "").
9552exeext="$exeext"
9553
9554# Additional compiler flags for building library objects.
9555pic_flag=$lt_lt_prog_compiler_pic
9556pic_mode=$pic_mode
9557
9558# What is the maximum length of a command?
9559max_cmd_len=$lt_cv_sys_max_cmd_len
9560
9561# Does compiler simultaneously support -c and -o options?
9562compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9563
9564# Must we lock files when doing compilation?
9565need_locks=$lt_need_locks
9566
9567# Do we need the lib prefix for modules?
9568need_lib_prefix=$need_lib_prefix
9569
9570# Do we need a version for libraries?
9571need_version=$need_version
9572
9573# Whether dlopen is supported.
9574dlopen_support=$enable_dlopen
9575
9576# Whether dlopen of programs is supported.
9577dlopen_self=$enable_dlopen_self
9578
9579# Whether dlopen of statically linked programs is supported.
9580dlopen_self_static=$enable_dlopen_self_static
9581
9582# Compiler flag to prevent dynamic linking.
9583link_static_flag=$lt_lt_prog_compiler_static
9584
9585# Compiler flag to turn off builtin functions.
9586no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9587
9588# Compiler flag to allow reflexive dlopens.
9589export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9590
9591# Compiler flag to generate shared objects directly from archives.
9592whole_archive_flag_spec=$lt_whole_archive_flag_spec
9593
9594# Compiler flag to generate thread-safe objects.
9595thread_safe_flag_spec=$lt_thread_safe_flag_spec
9596
9597# Library versioning type.
9598version_type=$version_type
9599
9600# Format of library name prefix.
9601libname_spec=$lt_libname_spec
9602
9603# List of archive names.  First name is the real one, the rest are links.
9604# The last name is the one that the linker finds with -lNAME.
9605library_names_spec=$lt_library_names_spec
9606
9607# The coded name of the library, if different from the real name.
9608soname_spec=$lt_soname_spec
9609
9610# Commands used to build and install an old-style archive.
9611RANLIB=$lt_RANLIB
9612old_archive_cmds=$lt_old_archive_cmds
9613old_postinstall_cmds=$lt_old_postinstall_cmds
9614old_postuninstall_cmds=$lt_old_postuninstall_cmds
9615
9616# Create an old-style archive from a shared archive.
9617old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9618
9619# Create a temporary old-style archive to link instead of a shared archive.
9620old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9621
9622# Commands used to build and install a shared archive.
9623archive_cmds=$lt_archive_cmds
9624archive_expsym_cmds=$lt_archive_expsym_cmds
9625postinstall_cmds=$lt_postinstall_cmds
9626postuninstall_cmds=$lt_postuninstall_cmds
9627
9628# Commands used to build a loadable module (assumed same as above if empty)
9629module_cmds=$lt_module_cmds
9630module_expsym_cmds=$lt_module_expsym_cmds
9631
9632# Commands to strip libraries.
9633old_striplib=$lt_old_striplib
9634striplib=$lt_striplib
9635
9636# Dependencies to place before the objects being linked to create a
9637# shared library.
9638predep_objects=$lt_predep_objects
9639
9640# Dependencies to place after the objects being linked to create a
9641# shared library.
9642postdep_objects=$lt_postdep_objects
9643
9644# Dependencies to place before the objects being linked to create a
9645# shared library.
9646predeps=$lt_predeps
9647
9648# Dependencies to place after the objects being linked to create a
9649# shared library.
9650postdeps=$lt_postdeps
9651
9652# The library search path used internally by the compiler when linking
9653# a shared library.
9654compiler_lib_search_path=$lt_compiler_lib_search_path
9655
9656# Method to check whether dependent libraries are shared objects.
9657deplibs_check_method=$lt_deplibs_check_method
9658
9659# Command to use when deplibs_check_method == file_magic.
9660file_magic_cmd=$lt_file_magic_cmd
9661
9662# Flag that allows shared libraries with undefined symbols to be built.
9663allow_undefined_flag=$lt_allow_undefined_flag
9664
9665# Flag that forces no undefined symbols.
9666no_undefined_flag=$lt_no_undefined_flag
9667
9668# Commands used to finish a libtool library installation in a directory.
9669finish_cmds=$lt_finish_cmds
9670
9671# Same as above, but a single script fragment to be evaled but not shown.
9672finish_eval=$lt_finish_eval
9673
9674# Take the output of nm and produce a listing of raw symbols and C names.
9675global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9676
9677# Transform the output of nm in a proper C declaration
9678global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9679
9680# Transform the output of nm in a C name address pair
9681global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9682
9683# This is the shared library runtime path variable.
9684runpath_var=$runpath_var
9685
9686# This is the shared library path variable.
9687shlibpath_var=$shlibpath_var
9688
9689# Is shlibpath searched before the hard-coded library search path?
9690shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9691
9692# How to hardcode a shared library path into an executable.
9693hardcode_action=$hardcode_action
9694
9695# Whether we should hardcode library paths into libraries.
9696hardcode_into_libs=$hardcode_into_libs
9697
9698# Flag to hardcode \$libdir into a binary during linking.
9699# This must work even if \$libdir does not exist.
9700hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9701
9702# If ld is used when linking, flag to hardcode \$libdir into
9703# a binary during linking. This must work even if \$libdir does
9704# not exist.
9705hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9706
9707# Whether we need a single -rpath flag with a separated argument.
9708hardcode_libdir_separator=$lt_hardcode_libdir_separator
9709
9710# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9711# resulting binary.
9712hardcode_direct=$hardcode_direct
9713
9714# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9715# resulting binary.
9716hardcode_minus_L=$hardcode_minus_L
9717
9718# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9719# the resulting binary.
9720hardcode_shlibpath_var=$hardcode_shlibpath_var
9721
9722# Set to yes if building a shared library automatically hardcodes DIR into the library
9723# and all subsequent libraries and executables linked against it.
9724hardcode_automatic=$hardcode_automatic
9725
9726# Variables whose values should be saved in libtool wrapper scripts and
9727# restored at relink time.
9728variables_saved_for_relink="$variables_saved_for_relink"
9729
9730# Whether libtool must link a program against all its dependency libraries.
9731link_all_deplibs=$link_all_deplibs
9732
9733# Compile-time system search path for libraries
9734sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9735
9736# Run-time system search path for libraries
9737sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9738
9739# Fix the shell variable \$srcfile for the compiler.
9740fix_srcfile_path="$fix_srcfile_path"
9741
9742# Set to yes if exported symbols are required.
9743always_export_symbols=$always_export_symbols
9744
9745# The commands to list exported symbols.
9746export_symbols_cmds=$lt_export_symbols_cmds
9747
9748# The commands to extract the exported symbol list from a shared archive.
9749extract_expsyms_cmds=$lt_extract_expsyms_cmds
9750
9751# Symbols that should not be listed in the preloaded symbols.
9752exclude_expsyms=$lt_exclude_expsyms
9753
9754# Symbols that must always be exported.
9755include_expsyms=$lt_include_expsyms
9756
9757# ### END LIBTOOL CONFIG
9758
9759__EOF__
9760
9761
9762  case $host_os in
9763  aix3*)
9764    cat <<\EOF >> "$cfgfile"
9765
9766# AIX sometimes has problems with the GCC collect2 program.  For some
9767# reason, if we set the COLLECT_NAMES environment variable, the problems
9768# vanish in a puff of smoke.
9769if test "X${COLLECT_NAMES+set}" != Xset; then
9770  COLLECT_NAMES=
9771  export COLLECT_NAMES
9772fi
9773EOF
9774    ;;
9775  esac
9776
9777  # We use sed instead of cat because bash on DJGPP gets confused if
9778  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9779  # text mode, it properly converts lines to CR/LF.  This bash problem
9780  # is reportedly fixed, but why not run on old versions too?
9781  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9782
9783  mv -f "$cfgfile" "$ofile" || \
9784    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9785  chmod +x "$ofile"
9786
9787else
9788  # If there is no Makefile yet, we rely on a make rule to execute
9789  # `config.status --recheck' to rerun these tests and create the
9790  # libtool script then.
9791  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9792  if test -f "$ltmain_in"; then
9793    test -f Makefile && make "$ltmain"
9794  fi
9795fi
9796
9797
9798ac_ext=c
9799ac_cpp='$CPP $CPPFLAGS'
9800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9802ac_compiler_gnu=$ac_cv_c_compiler_gnu
9803
9804CC="$lt_save_CC"
9805
9806
9807# Check whether --with-tags or --without-tags was given.
9808if test "${with_tags+set}" = set; then
9809  withval="$with_tags"
9810  tagnames="$withval"
9811fi;
9812
9813if test -f "$ltmain" && test -n "$tagnames"; then
9814  if test ! -f "${ofile}"; then
9815    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9816echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9817  fi
9818
9819  if test -z "$LTCC"; then
9820    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9821    if test -z "$LTCC"; then
9822      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9823echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9824    else
9825      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9826echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9827    fi
9828  fi
9829
9830  # Extract list of available tagged configurations in $ofile.
9831  # Note that this assumes the entire list is on one line.
9832  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9833
9834  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9835  for tagname in $tagnames; do
9836    IFS="$lt_save_ifs"
9837    # Check whether tagname contains only valid characters
9838    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9839    "") ;;
9840    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9841echo "$as_me: error: invalid tag name: $tagname" >&2;}
9842   { (exit 1); exit 1; }; }
9843	;;
9844    esac
9845
9846    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9847    then
9848      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9849echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9850   { (exit 1); exit 1; }; }
9851    fi
9852
9853    # Update the list of available tags.
9854    if test -n "$tagname"; then
9855      echo appending configuration tag \"$tagname\" to $ofile
9856
9857      case $tagname in
9858      CXX)
9859	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9860	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9861	    (test "X$CXX" != "Xg++"))) ; then
9862	  ac_ext=cc
9863ac_cpp='$CXXCPP $CPPFLAGS'
9864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9867
9868
9869
9870
9871archive_cmds_need_lc_CXX=no
9872allow_undefined_flag_CXX=
9873always_export_symbols_CXX=no
9874archive_expsym_cmds_CXX=
9875export_dynamic_flag_spec_CXX=
9876hardcode_direct_CXX=no
9877hardcode_libdir_flag_spec_CXX=
9878hardcode_libdir_flag_spec_ld_CXX=
9879hardcode_libdir_separator_CXX=
9880hardcode_minus_L_CXX=no
9881hardcode_automatic_CXX=no
9882module_cmds_CXX=
9883module_expsym_cmds_CXX=
9884link_all_deplibs_CXX=unknown
9885old_archive_cmds_CXX=$old_archive_cmds
9886no_undefined_flag_CXX=
9887whole_archive_flag_spec_CXX=
9888enable_shared_with_static_runtimes_CXX=no
9889
9890# Dependencies to place before and after the object being linked:
9891predep_objects_CXX=
9892postdep_objects_CXX=
9893predeps_CXX=
9894postdeps_CXX=
9895compiler_lib_search_path_CXX=
9896
9897# Source file extension for C++ test sources.
9898ac_ext=cpp
9899
9900# Object file extension for compiled C++ test sources.
9901objext=o
9902objext_CXX=$objext
9903
9904# Code to be used in simple compile tests
9905lt_simple_compile_test_code="int some_variable = 0;\n"
9906
9907# Code to be used in simple link tests
9908lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9909
9910# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9911
9912# If no C compiler was specified, use CC.
9913LTCC=${LTCC-"$CC"}
9914
9915# Allow CC to be a program name with arguments.
9916compiler=$CC
9917
9918
9919# save warnings/boilerplate of simple test code
9920ac_outfile=conftest.$ac_objext
9921printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9922eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9923_lt_compiler_boilerplate=`cat conftest.err`
9924$rm conftest*
9925
9926ac_outfile=conftest.$ac_objext
9927printf "$lt_simple_link_test_code" >conftest.$ac_ext
9928eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
9929_lt_linker_boilerplate=`cat conftest.err`
9930$rm conftest*
9931
9932
9933# Allow CC to be a program name with arguments.
9934lt_save_CC=$CC
9935lt_save_LD=$LD
9936lt_save_GCC=$GCC
9937GCC=$GXX
9938lt_save_with_gnu_ld=$with_gnu_ld
9939lt_save_path_LD=$lt_cv_path_LD
9940if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9941  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9942else
9943  unset lt_cv_prog_gnu_ld
9944fi
9945if test -n "${lt_cv_path_LDCXX+set}"; then
9946  lt_cv_path_LD=$lt_cv_path_LDCXX
9947else
9948  unset lt_cv_path_LD
9949fi
9950test -z "${LDCXX+set}" || LD=$LDCXX
9951CC=${CXX-"c++"}
9952compiler=$CC
9953compiler_CXX=$CC
9954for cc_temp in $compiler""; do
9955  case $cc_temp in
9956    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9957    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9958    \-*) ;;
9959    *) break;;
9960  esac
9961done
9962cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9963
9964
9965# We don't want -fno-exception wen compiling C++ code, so set the
9966# no_builtin_flag separately
9967if test "$GXX" = yes; then
9968  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9969else
9970  lt_prog_compiler_no_builtin_flag_CXX=
9971fi
9972
9973if test "$GXX" = yes; then
9974  # Set up default GNU C++ configuration
9975
9976
9977# Check whether --with-gnu-ld or --without-gnu-ld was given.
9978if test "${with_gnu_ld+set}" = set; then
9979  withval="$with_gnu_ld"
9980  test "$withval" = no || with_gnu_ld=yes
9981else
9982  with_gnu_ld=no
9983fi;
9984ac_prog=ld
9985if test "$GCC" = yes; then
9986  # Check if gcc -print-prog-name=ld gives a path.
9987  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9988echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9989  case $host in
9990  *-*-mingw*)
9991    # gcc leaves a trailing carriage return which upsets mingw
9992    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9993  *)
9994    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9995  esac
9996  case $ac_prog in
9997    # Accept absolute paths.
9998    [\\/]* | ?:[\\/]*)
9999      re_direlt='/[^/][^/]*/\.\./'
10000      # Canonicalize the pathname of ld
10001      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10002      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10003	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10004      done
10005      test -z "$LD" && LD="$ac_prog"
10006      ;;
10007  "")
10008    # If it fails, then pretend we aren't using GCC.
10009    ac_prog=ld
10010    ;;
10011  *)
10012    # If it is relative, then search for the first ld in PATH.
10013    with_gnu_ld=unknown
10014    ;;
10015  esac
10016elif test "$with_gnu_ld" = yes; then
10017  echo "$as_me:$LINENO: checking for GNU ld" >&5
10018echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10019else
10020  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10021echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10022fi
10023if test "${lt_cv_path_LD+set}" = set; then
10024  echo $ECHO_N "(cached) $ECHO_C" >&6
10025else
10026  if test -z "$LD"; then
10027  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10028  for ac_dir in $PATH; do
10029    IFS="$lt_save_ifs"
10030    test -z "$ac_dir" && ac_dir=.
10031    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10032      lt_cv_path_LD="$ac_dir/$ac_prog"
10033      # Check to see if the program is GNU ld.  I'd rather use --version,
10034      # but apparently some variants of GNU ld only accept -v.
10035      # Break only if it was the GNU/non-GNU ld that we prefer.
10036      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10037      *GNU* | *'with BFD'*)
10038	test "$with_gnu_ld" != no && break
10039	;;
10040      *)
10041	test "$with_gnu_ld" != yes && break
10042	;;
10043      esac
10044    fi
10045  done
10046  IFS="$lt_save_ifs"
10047else
10048  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10049fi
10050fi
10051
10052LD="$lt_cv_path_LD"
10053if test -n "$LD"; then
10054  echo "$as_me:$LINENO: result: $LD" >&5
10055echo "${ECHO_T}$LD" >&6
10056else
10057  echo "$as_me:$LINENO: result: no" >&5
10058echo "${ECHO_T}no" >&6
10059fi
10060test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10061echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10062   { (exit 1); exit 1; }; }
10063echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10064echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10065if test "${lt_cv_prog_gnu_ld+set}" = set; then
10066  echo $ECHO_N "(cached) $ECHO_C" >&6
10067else
10068  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10069case `$LD -v 2>&1 </dev/null` in
10070*GNU* | *'with BFD'*)
10071  lt_cv_prog_gnu_ld=yes
10072  ;;
10073*)
10074  lt_cv_prog_gnu_ld=no
10075  ;;
10076esac
10077fi
10078echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10079echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10080with_gnu_ld=$lt_cv_prog_gnu_ld
10081
10082
10083
10084  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10085  # archiving commands below assume that GNU ld is being used.
10086  if test "$with_gnu_ld" = yes; then
10087    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10088    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'
10089
10090    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10091    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10092
10093    # If archive_cmds runs LD, not CC, wlarc should be empty
10094    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10095    #     investigate it a little bit more. (MM)
10096    wlarc='${wl}'
10097
10098    # ancient GNU ld didn't support --whole-archive et. al.
10099    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10100	grep 'no-whole-archive' > /dev/null; then
10101      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10102    else
10103      whole_archive_flag_spec_CXX=
10104    fi
10105  else
10106    with_gnu_ld=no
10107    wlarc=
10108
10109    # A generic and very simple default shared library creation
10110    # command for GNU C++ for the case where it uses the native
10111    # linker, instead of GNU ld.  If possible, this setting should
10112    # overridden to take advantage of the native linker features on
10113    # the platform it is being used on.
10114    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10115  fi
10116
10117  # Commands to make compiler produce verbose output that lists
10118  # what "hidden" libraries, object files and flags are used when
10119  # linking a shared library.
10120  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10121
10122else
10123  GXX=no
10124  with_gnu_ld=no
10125  wlarc=
10126fi
10127
10128# PORTME: fill in a description of your system's C++ link characteristics
10129echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10130echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10131ld_shlibs_CXX=yes
10132case $host_os in
10133  aix3*)
10134    # FIXME: insert proper C++ library support
10135    ld_shlibs_CXX=no
10136    ;;
10137  aix4* | aix5*)
10138    if test "$host_cpu" = ia64; then
10139      # On IA64, the linker does run time linking by default, so we don't
10140      # have to do anything special.
10141      aix_use_runtimelinking=no
10142      exp_sym_flag='-Bexport'
10143      no_entry_flag=""
10144    else
10145      aix_use_runtimelinking=no
10146
10147      # Test if we are trying to use run time linking or normal
10148      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10149      # need to do runtime linking.
10150      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10151	for ld_flag in $LDFLAGS; do
10152	  case $ld_flag in
10153	  *-brtl*)
10154	    aix_use_runtimelinking=yes
10155	    break
10156	    ;;
10157	  esac
10158	done
10159      esac
10160
10161      exp_sym_flag='-bexport'
10162      no_entry_flag='-bnoentry'
10163    fi
10164
10165    # When large executables or shared objects are built, AIX ld can
10166    # have problems creating the table of contents.  If linking a library
10167    # or program results in "error TOC overflow" add -mminimal-toc to
10168    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10169    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10170
10171    archive_cmds_CXX=''
10172    hardcode_direct_CXX=yes
10173    hardcode_libdir_separator_CXX=':'
10174    link_all_deplibs_CXX=yes
10175
10176    if test "$GXX" = yes; then
10177      case $host_os in aix4.[012]|aix4.[012].*)
10178      # We only want to do this on AIX 4.2 and lower, the check
10179      # below for broken collect2 doesn't work under 4.3+
10180	collect2name=`${CC} -print-prog-name=collect2`
10181	if test -f "$collect2name" && \
10182	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10183	then
10184	  # We have reworked collect2
10185	  hardcode_direct_CXX=yes
10186	else
10187	  # We have old collect2
10188	  hardcode_direct_CXX=unsupported
10189	  # It fails to find uninstalled libraries when the uninstalled
10190	  # path is not listed in the libpath.  Setting hardcode_minus_L
10191	  # to unsupported forces relinking
10192	  hardcode_minus_L_CXX=yes
10193	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10194	  hardcode_libdir_separator_CXX=
10195	fi
10196      esac
10197      shared_flag='-shared'
10198      if test "$aix_use_runtimelinking" = yes; then
10199	shared_flag="$shared_flag "'${wl}-G'
10200      fi
10201    else
10202      # not using gcc
10203      if test "$host_cpu" = ia64; then
10204	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10205	# chokes on -Wl,-G. The following line is correct:
10206	shared_flag='-G'
10207      else
10208	if test "$aix_use_runtimelinking" = yes; then
10209	  shared_flag='${wl}-G'
10210	else
10211	  shared_flag='${wl}-bM:SRE'
10212	fi
10213      fi
10214    fi
10215
10216    # It seems that -bexpall does not export symbols beginning with
10217    # underscore (_), so it is better to generate a list of symbols to export.
10218    always_export_symbols_CXX=yes
10219    if test "$aix_use_runtimelinking" = yes; then
10220      # Warning - without using the other runtime loading flags (-brtl),
10221      # -berok will link without error, but may produce a broken library.
10222      allow_undefined_flag_CXX='-berok'
10223      # Determine the default libpath from the value encoded in an empty executable.
10224      cat >conftest.$ac_ext <<_ACEOF
10225/* confdefs.h.  */
10226_ACEOF
10227cat confdefs.h >>conftest.$ac_ext
10228cat >>conftest.$ac_ext <<_ACEOF
10229/* end confdefs.h.  */
10230
10231int
10232main ()
10233{
10234
10235  ;
10236  return 0;
10237}
10238_ACEOF
10239rm -f conftest.$ac_objext conftest$ac_exeext
10240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241  (eval $ac_link) 2>conftest.er1
10242  ac_status=$?
10243  grep -v '^ *+' conftest.er1 >conftest.err
10244  rm -f conftest.er1
10245  cat conftest.err >&5
10246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247  (exit $ac_status); } &&
10248	 { ac_try='test -z "$ac_cxx_werror_flag"
10249			 || test ! -s conftest.err'
10250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251  (eval $ac_try) 2>&5
10252  ac_status=$?
10253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254  (exit $ac_status); }; } &&
10255	 { ac_try='test -s conftest$ac_exeext'
10256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257  (eval $ac_try) 2>&5
10258  ac_status=$?
10259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260  (exit $ac_status); }; }; then
10261
10262aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10263}'`
10264# Check for a 64-bit object if we didn't find anything.
10265if 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; }
10266}'`; fi
10267else
10268  echo "$as_me: failed program was:" >&5
10269sed 's/^/| /' conftest.$ac_ext >&5
10270
10271fi
10272rm -f conftest.err conftest.$ac_objext \
10273      conftest$ac_exeext conftest.$ac_ext
10274if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10275
10276      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10277
10278      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"
10279     else
10280      if test "$host_cpu" = ia64; then
10281	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10282	allow_undefined_flag_CXX="-z nodefs"
10283	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"
10284      else
10285	# Determine the default libpath from the value encoded in an empty executable.
10286	cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h.  */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h.  */
10292
10293int
10294main ()
10295{
10296
10297  ;
10298  return 0;
10299}
10300_ACEOF
10301rm -f conftest.$ac_objext conftest$ac_exeext
10302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303  (eval $ac_link) 2>conftest.er1
10304  ac_status=$?
10305  grep -v '^ *+' conftest.er1 >conftest.err
10306  rm -f conftest.er1
10307  cat conftest.err >&5
10308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); } &&
10310	 { ac_try='test -z "$ac_cxx_werror_flag"
10311			 || test ! -s conftest.err'
10312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313  (eval $ac_try) 2>&5
10314  ac_status=$?
10315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316  (exit $ac_status); }; } &&
10317	 { ac_try='test -s conftest$ac_exeext'
10318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319  (eval $ac_try) 2>&5
10320  ac_status=$?
10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322  (exit $ac_status); }; }; then
10323
10324aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10325}'`
10326# Check for a 64-bit object if we didn't find anything.
10327if 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; }
10328}'`; fi
10329else
10330  echo "$as_me: failed program was:" >&5
10331sed 's/^/| /' conftest.$ac_ext >&5
10332
10333fi
10334rm -f conftest.err conftest.$ac_objext \
10335      conftest$ac_exeext conftest.$ac_ext
10336if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10337
10338	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10339	# Warning - without using the other run time loading flags,
10340	# -berok will link without error, but may produce a broken library.
10341	no_undefined_flag_CXX=' ${wl}-bernotok'
10342	allow_undefined_flag_CXX=' ${wl}-berok'
10343	# -bexpall does not export symbols beginning with underscore (_)
10344	always_export_symbols_CXX=yes
10345	# Exported symbols can be pulled into shared objects from archives
10346	whole_archive_flag_spec_CXX=' '
10347	archive_cmds_need_lc_CXX=yes
10348	# This is similar to how AIX traditionally builds its shared libraries.
10349	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'
10350      fi
10351    fi
10352    ;;
10353  chorus*)
10354    case $cc_basename in
10355      *)
10356	# FIXME: insert proper C++ library support
10357	ld_shlibs_CXX=no
10358	;;
10359    esac
10360    ;;
10361
10362
10363  cygwin* | mingw* | pw32*)
10364    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10365    # as there is no search path for DLLs.
10366    hardcode_libdir_flag_spec_CXX='-L$libdir'
10367    allow_undefined_flag_CXX=unsupported
10368    always_export_symbols_CXX=no
10369    enable_shared_with_static_runtimes_CXX=yes
10370
10371    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10372      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'
10373      # If the export-symbols file already is a .def file (1st line
10374      # is EXPORTS), use it as is; otherwise, prepend...
10375      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10376	cp $export_symbols $output_objdir/$soname.def;
10377      else
10378	echo EXPORTS > $output_objdir/$soname.def;
10379	cat $export_symbols >> $output_objdir/$soname.def;
10380      fi~
10381      $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'
10382    else
10383      ld_shlibs_CXX=no
10384    fi
10385  ;;
10386      darwin* | rhapsody*)
10387        case $host_os in
10388        rhapsody* | darwin1.[012])
10389         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10390         ;;
10391       *) # Darwin 1.3 on
10392         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10393           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10394         else
10395           case ${MACOSX_DEPLOYMENT_TARGET} in
10396             10.[012])
10397               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10398               ;;
10399             10.*)
10400               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10401               ;;
10402           esac
10403         fi
10404         ;;
10405        esac
10406      archive_cmds_need_lc_CXX=no
10407      hardcode_direct_CXX=no
10408      hardcode_automatic_CXX=yes
10409      hardcode_shlibpath_var_CXX=unsupported
10410      whole_archive_flag_spec_CXX=''
10411      link_all_deplibs_CXX=yes
10412
10413    if test "$GXX" = yes ; then
10414      lt_int_apple_cc_single_mod=no
10415      output_verbose_link_cmd='echo'
10416      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10417       lt_int_apple_cc_single_mod=yes
10418      fi
10419      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10420       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10421      else
10422          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'
10423        fi
10424        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10425        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10426          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10427            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}'
10428          else
10429            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}'
10430          fi
10431            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}'
10432      else
10433      case $cc_basename in
10434        xlc*)
10435         output_verbose_link_cmd='echo'
10436          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'
10437          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10438          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10439          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}'
10440          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}'
10441          ;;
10442       *)
10443         ld_shlibs_CXX=no
10444          ;;
10445      esac
10446      fi
10447        ;;
10448
10449  dgux*)
10450    case $cc_basename in
10451      ec++*)
10452	# FIXME: insert proper C++ library support
10453	ld_shlibs_CXX=no
10454	;;
10455      ghcx*)
10456	# Green Hills C++ Compiler
10457	# FIXME: insert proper C++ library support
10458	ld_shlibs_CXX=no
10459	;;
10460      *)
10461	# FIXME: insert proper C++ library support
10462	ld_shlibs_CXX=no
10463	;;
10464    esac
10465    ;;
10466  freebsd[12]*)
10467    # C++ shared libraries reported to be fairly broken before switch to ELF
10468    ld_shlibs_CXX=no
10469    ;;
10470  freebsd-elf*)
10471    archive_cmds_need_lc_CXX=no
10472    ;;
10473  freebsd* | kfreebsd*-gnu | dragonfly*)
10474    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10475    # conventions
10476    ld_shlibs_CXX=yes
10477    ;;
10478  gnu*)
10479    ;;
10480  hpux9*)
10481    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10482    hardcode_libdir_separator_CXX=:
10483    export_dynamic_flag_spec_CXX='${wl}-E'
10484    hardcode_direct_CXX=yes
10485    hardcode_minus_L_CXX=yes # Not in the search PATH,
10486				# but as the default
10487				# location of the library.
10488
10489    case $cc_basename in
10490    CC*)
10491      # FIXME: insert proper C++ library support
10492      ld_shlibs_CXX=no
10493      ;;
10494    aCC*)
10495      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'
10496      # Commands to make compiler produce verbose output that lists
10497      # what "hidden" libraries, object files and flags are used when
10498      # linking a shared library.
10499      #
10500      # There doesn't appear to be a way to prevent this compiler from
10501      # explicitly linking system object files so we need to strip them
10502      # from the output so that they don't get included in the library
10503      # dependencies.
10504      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'
10505      ;;
10506    *)
10507      if test "$GXX" = yes; then
10508        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'
10509      else
10510        # FIXME: insert proper C++ library support
10511        ld_shlibs_CXX=no
10512      fi
10513      ;;
10514    esac
10515    ;;
10516  hpux10*|hpux11*)
10517    if test $with_gnu_ld = no; then
10518      case $host_cpu in
10519      hppa*64*)
10520	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10521	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10522	hardcode_libdir_separator_CXX=:
10523        ;;
10524      ia64*)
10525	hardcode_libdir_flag_spec_CXX='-L$libdir'
10526        ;;
10527      *)
10528	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10529	hardcode_libdir_separator_CXX=:
10530	export_dynamic_flag_spec_CXX='${wl}-E'
10531        ;;
10532      esac
10533    fi
10534    case $host_cpu in
10535    hppa*64*)
10536      hardcode_direct_CXX=no
10537      hardcode_shlibpath_var_CXX=no
10538      ;;
10539    ia64*)
10540      hardcode_direct_CXX=no
10541      hardcode_shlibpath_var_CXX=no
10542      hardcode_minus_L_CXX=yes # Not in the search PATH,
10543					      # but as the default
10544					      # location of the library.
10545      ;;
10546    *)
10547      hardcode_direct_CXX=yes
10548      hardcode_minus_L_CXX=yes # Not in the search PATH,
10549					      # but as the default
10550					      # location of the library.
10551      ;;
10552    esac
10553
10554    case $cc_basename in
10555      CC*)
10556	# FIXME: insert proper C++ library support
10557	ld_shlibs_CXX=no
10558	;;
10559      aCC*)
10560	case $host_cpu in
10561	hppa*64*|ia64*)
10562	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10563	  ;;
10564	*)
10565	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10566	  ;;
10567	esac
10568	# Commands to make compiler produce verbose output that lists
10569	# what "hidden" libraries, object files and flags are used when
10570	# linking a shared library.
10571	#
10572	# There doesn't appear to be a way to prevent this compiler from
10573	# explicitly linking system object files so we need to strip them
10574	# from the output so that they don't get included in the library
10575	# dependencies.
10576	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'
10577	;;
10578      *)
10579	if test "$GXX" = yes; then
10580	  if test $with_gnu_ld = no; then
10581	    case $host_cpu in
10582	    ia64*|hppa*64*)
10583	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10584	      ;;
10585	    *)
10586	      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'
10587	      ;;
10588	    esac
10589	  fi
10590	else
10591	  # FIXME: insert proper C++ library support
10592	  ld_shlibs_CXX=no
10593	fi
10594	;;
10595    esac
10596    ;;
10597  irix5* | irix6*)
10598    case $cc_basename in
10599      CC*)
10600	# SGI C++
10601	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10602
10603	# Archives containing C++ object files must be created using
10604	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10605	# necessary to make sure instantiated templates are included
10606	# in the archive.
10607	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10608	;;
10609      *)
10610	if test "$GXX" = yes; then
10611	  if test "$with_gnu_ld" = no; then
10612	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10613	  else
10614	    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'
10615	  fi
10616	fi
10617	link_all_deplibs_CXX=yes
10618	;;
10619    esac
10620    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10621    hardcode_libdir_separator_CXX=:
10622    ;;
10623  linux*)
10624    case $cc_basename in
10625      KCC*)
10626	# Kuck and Associates, Inc. (KAI) C++ Compiler
10627
10628	# KCC will only create a shared library if the output file
10629	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10630	# to its proper name (with version) after linking.
10631	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'
10632	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'
10633	# Commands to make compiler produce verbose output that lists
10634	# what "hidden" libraries, object files and flags are used when
10635	# linking a shared library.
10636	#
10637	# There doesn't appear to be a way to prevent this compiler from
10638	# explicitly linking system object files so we need to strip them
10639	# from the output so that they don't get included in the library
10640	# dependencies.
10641	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'
10642
10643	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10644	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10645
10646	# Archives containing C++ object files must be created using
10647	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10648	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10649	;;
10650      icpc*)
10651	# Intel C++
10652	with_gnu_ld=yes
10653	# version 8.0 and above of icpc choke on multiply defined symbols
10654	# if we add $predep_objects and $postdep_objects, however 7.1 and
10655	# earlier do not add the objects themselves.
10656	case `$CC -V 2>&1` in
10657	*"Version 7."*)
10658  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10659  	  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'
10660	  ;;
10661	*)  # Version 8.0 or newer
10662	  tmp_idyn=
10663	  case $host_cpu in
10664	    ia64*) tmp_idyn=' -i_dynamic';;
10665	  esac
10666  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10667	  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'
10668	  ;;
10669	esac
10670	archive_cmds_need_lc_CXX=no
10671	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10672	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10673	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10674	;;
10675      pgCC*)
10676        # Portland Group C++ compiler
10677	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10678  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10679
10680	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10681	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10682	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10683        ;;
10684      cxx*)
10685	# Compaq C++
10686	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10687	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'
10688
10689	runpath_var=LD_RUN_PATH
10690	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10691	hardcode_libdir_separator_CXX=:
10692
10693	# Commands to make compiler produce verbose output that lists
10694	# what "hidden" libraries, object files and flags are used when
10695	# linking a shared library.
10696	#
10697	# There doesn't appear to be a way to prevent this compiler from
10698	# explicitly linking system object files so we need to strip them
10699	# from the output so that they don't get included in the library
10700	# dependencies.
10701	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'
10702	;;
10703    esac
10704    ;;
10705  lynxos*)
10706    # FIXME: insert proper C++ library support
10707    ld_shlibs_CXX=no
10708    ;;
10709  m88k*)
10710    # FIXME: insert proper C++ library support
10711    ld_shlibs_CXX=no
10712    ;;
10713  mvs*)
10714    case $cc_basename in
10715      cxx*)
10716	# FIXME: insert proper C++ library support
10717	ld_shlibs_CXX=no
10718	;;
10719      *)
10720	# FIXME: insert proper C++ library support
10721	ld_shlibs_CXX=no
10722	;;
10723    esac
10724    ;;
10725  netbsd*)
10726    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10727      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10728      wlarc=
10729      hardcode_libdir_flag_spec_CXX='-R$libdir'
10730      hardcode_direct_CXX=yes
10731      hardcode_shlibpath_var_CXX=no
10732    fi
10733    # Workaround some broken pre-1.5 toolchains
10734    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10735    ;;
10736  openbsd2*)
10737    # C++ shared libraries are fairly broken
10738    ld_shlibs_CXX=no
10739    ;;
10740  openbsd*)
10741    hardcode_direct_CXX=yes
10742    hardcode_shlibpath_var_CXX=no
10743    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10744    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10745    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10746      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10747      export_dynamic_flag_spec_CXX='${wl}-E'
10748      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10749    fi
10750    output_verbose_link_cmd='echo'
10751    ;;
10752  osf3*)
10753    case $cc_basename in
10754      KCC*)
10755	# Kuck and Associates, Inc. (KAI) C++ Compiler
10756
10757	# KCC will only create a shared library if the output file
10758	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10759	# to its proper name (with version) after linking.
10760	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'
10761
10762	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10763	hardcode_libdir_separator_CXX=:
10764
10765	# Archives containing C++ object files must be created using
10766	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10767	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10768
10769	;;
10770      RCC*)
10771	# Rational C++ 2.4.1
10772	# FIXME: insert proper C++ library support
10773	ld_shlibs_CXX=no
10774	;;
10775      cxx*)
10776	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10777	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10778
10779	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10780	hardcode_libdir_separator_CXX=:
10781
10782	# Commands to make compiler produce verbose output that lists
10783	# what "hidden" libraries, object files and flags are used when
10784	# linking a shared library.
10785	#
10786	# There doesn't appear to be a way to prevent this compiler from
10787	# explicitly linking system object files so we need to strip them
10788	# from the output so that they don't get included in the library
10789	# dependencies.
10790	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'
10791	;;
10792      *)
10793	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10794	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10795	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10796
10797	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10798	  hardcode_libdir_separator_CXX=:
10799
10800	  # Commands to make compiler produce verbose output that lists
10801	  # what "hidden" libraries, object files and flags are used when
10802	  # linking a shared library.
10803	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10804
10805	else
10806	  # FIXME: insert proper C++ library support
10807	  ld_shlibs_CXX=no
10808	fi
10809	;;
10810    esac
10811    ;;
10812  osf4* | osf5*)
10813    case $cc_basename in
10814      KCC*)
10815	# Kuck and Associates, Inc. (KAI) C++ Compiler
10816
10817	# KCC will only create a shared library if the output file
10818	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10819	# to its proper name (with version) after linking.
10820	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'
10821
10822	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10823	hardcode_libdir_separator_CXX=:
10824
10825	# Archives containing C++ object files must be created using
10826	# the KAI C++ compiler.
10827	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10828	;;
10829      RCC*)
10830	# Rational C++ 2.4.1
10831	# FIXME: insert proper C++ library support
10832	ld_shlibs_CXX=no
10833	;;
10834      cxx*)
10835	allow_undefined_flag_CXX=' -expect_unresolved \*'
10836	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10837	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10838	  echo "-hidden">> $lib.exp~
10839	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10840	  $rm $lib.exp'
10841
10842	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10843	hardcode_libdir_separator_CXX=:
10844
10845	# Commands to make compiler produce verbose output that lists
10846	# what "hidden" libraries, object files and flags are used when
10847	# linking a shared library.
10848	#
10849	# There doesn't appear to be a way to prevent this compiler from
10850	# explicitly linking system object files so we need to strip them
10851	# from the output so that they don't get included in the library
10852	# dependencies.
10853	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'
10854	;;
10855      *)
10856	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10857	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10858	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10859
10860	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10861	  hardcode_libdir_separator_CXX=:
10862
10863	  # Commands to make compiler produce verbose output that lists
10864	  # what "hidden" libraries, object files and flags are used when
10865	  # linking a shared library.
10866	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10867
10868	else
10869	  # FIXME: insert proper C++ library support
10870	  ld_shlibs_CXX=no
10871	fi
10872	;;
10873    esac
10874    ;;
10875  psos*)
10876    # FIXME: insert proper C++ library support
10877    ld_shlibs_CXX=no
10878    ;;
10879  sco*)
10880    archive_cmds_need_lc_CXX=no
10881    case $cc_basename in
10882      CC*)
10883	# FIXME: insert proper C++ library support
10884	ld_shlibs_CXX=no
10885	;;
10886      *)
10887	# FIXME: insert proper C++ library support
10888	ld_shlibs_CXX=no
10889	;;
10890    esac
10891    ;;
10892  sunos4*)
10893    case $cc_basename in
10894      CC*)
10895	# Sun C++ 4.x
10896	# FIXME: insert proper C++ library support
10897	ld_shlibs_CXX=no
10898	;;
10899      lcc*)
10900	# Lucid
10901	# FIXME: insert proper C++ library support
10902	ld_shlibs_CXX=no
10903	;;
10904      *)
10905	# FIXME: insert proper C++ library support
10906	ld_shlibs_CXX=no
10907	;;
10908    esac
10909    ;;
10910  solaris*)
10911    case $cc_basename in
10912      CC*)
10913	# Sun C++ 4.2, 5.x and Centerline C++
10914        archive_cmds_need_lc_CXX=yes
10915	no_undefined_flag_CXX=' -zdefs'
10916	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10917	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10918	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10919
10920	hardcode_libdir_flag_spec_CXX='-R$libdir'
10921	hardcode_shlibpath_var_CXX=no
10922	case $host_os in
10923	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10924	  *)
10925	    # The C++ compiler is used as linker so we must use $wl
10926	    # flag to pass the commands to the underlying system
10927	    # linker. We must also pass each convience library through
10928	    # to the system linker between allextract/defaultextract.
10929	    # The C++ compiler will combine linker options so we
10930	    # cannot just pass the convience library names through
10931	    # without $wl.
10932	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10933	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10934	    ;;
10935	esac
10936	link_all_deplibs_CXX=yes
10937
10938	output_verbose_link_cmd='echo'
10939
10940	# Archives containing C++ object files must be created using
10941	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10942	# necessary to make sure instantiated templates are included
10943	# in the archive.
10944	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10945	;;
10946      gcx*)
10947	# Green Hills C++ Compiler
10948	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10949
10950	# The C++ compiler must be used to create the archive.
10951	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10952	;;
10953      *)
10954	# GNU C++ compiler with Solaris linker
10955	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10956	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10957	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10958	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10959	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10960		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10961
10962	    # Commands to make compiler produce verbose output that lists
10963	    # what "hidden" libraries, object files and flags are used when
10964	    # linking a shared library.
10965	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10966	  else
10967	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10968	    # platform.
10969	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10970	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10971		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10972
10973	    # Commands to make compiler produce verbose output that lists
10974	    # what "hidden" libraries, object files and flags are used when
10975	    # linking a shared library.
10976	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10977	  fi
10978
10979	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10980	fi
10981	;;
10982    esac
10983    ;;
10984  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10985    archive_cmds_need_lc_CXX=no
10986    ;;
10987  tandem*)
10988    case $cc_basename in
10989      NCC*)
10990	# NonStop-UX NCC 3.20
10991	# FIXME: insert proper C++ library support
10992	ld_shlibs_CXX=no
10993	;;
10994      *)
10995	# FIXME: insert proper C++ library support
10996	ld_shlibs_CXX=no
10997	;;
10998    esac
10999    ;;
11000  vxworks*)
11001    # FIXME: insert proper C++ library support
11002    ld_shlibs_CXX=no
11003    ;;
11004  *)
11005    # FIXME: insert proper C++ library support
11006    ld_shlibs_CXX=no
11007    ;;
11008esac
11009echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11010echo "${ECHO_T}$ld_shlibs_CXX" >&6
11011test "$ld_shlibs_CXX" = no && can_build_shared=no
11012
11013GCC_CXX="$GXX"
11014LD_CXX="$LD"
11015
11016## CAVEAT EMPTOR:
11017## There is no encapsulation within the following macros, do not change
11018## the running order or otherwise move them around unless you know exactly
11019## what you are doing...
11020
11021cat > conftest.$ac_ext <<EOF
11022class Foo
11023{
11024public:
11025  Foo (void) { a = 0; }
11026private:
11027  int a;
11028};
11029EOF
11030
11031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11032  (eval $ac_compile) 2>&5
11033  ac_status=$?
11034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035  (exit $ac_status); }; then
11036  # Parse the compiler output and extract the necessary
11037  # objects, libraries and library flags.
11038
11039  # Sentinel used to keep track of whether or not we are before
11040  # the conftest object file.
11041  pre_test_object_deps_done=no
11042
11043  # The `*' in the case matches for architectures that use `case' in
11044  # $output_verbose_cmd can trigger glob expansion during the loop
11045  # eval without this substitution.
11046  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11047
11048  for p in `eval $output_verbose_link_cmd`; do
11049    case $p in
11050
11051    -L* | -R* | -l*)
11052       # Some compilers place space between "-{L,R}" and the path.
11053       # Remove the space.
11054       if test $p = "-L" \
11055	  || test $p = "-R"; then
11056	 prev=$p
11057	 continue
11058       else
11059	 prev=
11060       fi
11061
11062       if test "$pre_test_object_deps_done" = no; then
11063	 case $p in
11064	 -L* | -R*)
11065	   # Internal compiler library paths should come after those
11066	   # provided the user.  The postdeps already come after the
11067	   # user supplied libs so there is no need to process them.
11068	   if test -z "$compiler_lib_search_path_CXX"; then
11069	     compiler_lib_search_path_CXX="${prev}${p}"
11070	   else
11071	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11072	   fi
11073	   ;;
11074	 # The "-l" case would never come before the object being
11075	 # linked, so don't bother handling this case.
11076	 esac
11077       else
11078	 if test -z "$postdeps_CXX"; then
11079	   postdeps_CXX="${prev}${p}"
11080	 else
11081	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11082	 fi
11083       fi
11084       ;;
11085
11086    *.$objext)
11087       # This assumes that the test object file only shows up
11088       # once in the compiler output.
11089       if test "$p" = "conftest.$objext"; then
11090	 pre_test_object_deps_done=yes
11091	 continue
11092       fi
11093
11094       if test "$pre_test_object_deps_done" = no; then
11095	 if test -z "$predep_objects_CXX"; then
11096	   predep_objects_CXX="$p"
11097	 else
11098	   predep_objects_CXX="$predep_objects_CXX $p"
11099	 fi
11100       else
11101	 if test -z "$postdep_objects_CXX"; then
11102	   postdep_objects_CXX="$p"
11103	 else
11104	   postdep_objects_CXX="$postdep_objects_CXX $p"
11105	 fi
11106       fi
11107       ;;
11108
11109    *) ;; # Ignore the rest.
11110
11111    esac
11112  done
11113
11114  # Clean up.
11115  rm -f a.out a.exe
11116else
11117  echo "libtool.m4: error: problem compiling CXX test program"
11118fi
11119
11120$rm -f confest.$objext
11121
11122# PORTME: override above test on systems where it is broken
11123case $host_os in
11124solaris*)
11125  case $cc_basename in
11126  CC*)
11127    # Adding this requires a known-good setup of shared libraries for
11128    # Sun compiler versions before 5.6, else PIC objects from an old
11129    # archive will be linked into the output, leading to subtle bugs.
11130    postdeps_CXX='-lCstd -lCrun'
11131    ;;
11132  esac
11133esac
11134
11135
11136case " $postdeps_CXX " in
11137*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11138esac
11139
11140lt_prog_compiler_wl_CXX=
11141lt_prog_compiler_pic_CXX=
11142lt_prog_compiler_static_CXX=
11143
11144echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11145echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11146
11147  # C++ specific cases for pic, static, wl, etc.
11148  if test "$GXX" = yes; then
11149    lt_prog_compiler_wl_CXX='-Wl,'
11150    lt_prog_compiler_static_CXX='-static'
11151
11152    case $host_os in
11153    aix*)
11154      # All AIX code is PIC.
11155      if test "$host_cpu" = ia64; then
11156	# AIX 5 now supports IA64 processor
11157	lt_prog_compiler_static_CXX='-Bstatic'
11158      fi
11159      ;;
11160    amigaos*)
11161      # FIXME: we need at least 68020 code to build shared libraries, but
11162      # adding the `-m68020' flag to GCC prevents building anything better,
11163      # like `-m68040'.
11164      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11165      ;;
11166    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11167      # PIC is the default for these OSes.
11168      ;;
11169    mingw* | os2* | pw32*)
11170      # This hack is so that the source file can tell whether it is being
11171      # built for inclusion in a dll (and should export symbols for example).
11172      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11173      ;;
11174    darwin* | rhapsody*)
11175      # PIC is the default on this platform
11176      # Common symbols not allowed in MH_DYLIB files
11177      lt_prog_compiler_pic_CXX='-fno-common'
11178      ;;
11179    *djgpp*)
11180      # DJGPP does not support shared libraries at all
11181      lt_prog_compiler_pic_CXX=
11182      ;;
11183    sysv4*MP*)
11184      if test -d /usr/nec; then
11185	lt_prog_compiler_pic_CXX=-Kconform_pic
11186      fi
11187      ;;
11188    hpux*)
11189      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11190      # not for PA HP-UX.
11191      case $host_cpu in
11192      hppa*64*|ia64*)
11193	;;
11194      *)
11195	lt_prog_compiler_pic_CXX='-fPIC'
11196	;;
11197      esac
11198      ;;
11199    *)
11200      lt_prog_compiler_pic_CXX='-fPIC'
11201      ;;
11202    esac
11203  else
11204    case $host_os in
11205      aix4* | aix5*)
11206	# All AIX code is PIC.
11207	if test "$host_cpu" = ia64; then
11208	  # AIX 5 now supports IA64 processor
11209	  lt_prog_compiler_static_CXX='-Bstatic'
11210	else
11211	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11212	fi
11213	;;
11214      chorus*)
11215	case $cc_basename in
11216	cxch68*)
11217	  # Green Hills C++ Compiler
11218	  # _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"
11219	  ;;
11220	esac
11221	;;
11222       darwin*)
11223         # PIC is the default on this platform
11224         # Common symbols not allowed in MH_DYLIB files
11225         case $cc_basename in
11226           xlc*)
11227           lt_prog_compiler_pic_CXX='-qnocommon'
11228           lt_prog_compiler_wl_CXX='-Wl,'
11229           ;;
11230         esac
11231       ;;
11232      dgux*)
11233	case $cc_basename in
11234	  ec++*)
11235	    lt_prog_compiler_pic_CXX='-KPIC'
11236	    ;;
11237	  ghcx*)
11238	    # Green Hills C++ Compiler
11239	    lt_prog_compiler_pic_CXX='-pic'
11240	    ;;
11241	  *)
11242	    ;;
11243	esac
11244	;;
11245      freebsd* | kfreebsd*-gnu | dragonfly*)
11246	# FreeBSD uses GNU C++
11247	;;
11248      hpux9* | hpux10* | hpux11*)
11249	case $cc_basename in
11250	  CC*)
11251	    lt_prog_compiler_wl_CXX='-Wl,'
11252	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11253	    if test "$host_cpu" != ia64; then
11254	      lt_prog_compiler_pic_CXX='+Z'
11255	    fi
11256	    ;;
11257	  aCC*)
11258	    lt_prog_compiler_wl_CXX='-Wl,'
11259	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11260	    case $host_cpu in
11261	    hppa*64*|ia64*)
11262	      # +Z the default
11263	      ;;
11264	    *)
11265	      lt_prog_compiler_pic_CXX='+Z'
11266	      ;;
11267	    esac
11268	    ;;
11269	  *)
11270	    ;;
11271	esac
11272	;;
11273      irix5* | irix6* | nonstopux*)
11274	case $cc_basename in
11275	  CC*)
11276	    lt_prog_compiler_wl_CXX='-Wl,'
11277	    lt_prog_compiler_static_CXX='-non_shared'
11278	    # CC pic flag -KPIC is the default.
11279	    ;;
11280	  *)
11281	    ;;
11282	esac
11283	;;
11284      linux*)
11285	case $cc_basename in
11286	  KCC*)
11287	    # KAI C++ Compiler
11288	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11289	    lt_prog_compiler_pic_CXX='-fPIC'
11290	    ;;
11291	  icpc* | ecpc*)
11292	    # Intel C++
11293	    lt_prog_compiler_wl_CXX='-Wl,'
11294	    lt_prog_compiler_pic_CXX='-KPIC'
11295	    lt_prog_compiler_static_CXX='-static'
11296	    ;;
11297	  pgCC*)
11298	    # Portland Group C++ compiler.
11299	    lt_prog_compiler_wl_CXX='-Wl,'
11300	    lt_prog_compiler_pic_CXX='-fpic'
11301	    lt_prog_compiler_static_CXX='-Bstatic'
11302	    ;;
11303	  cxx*)
11304	    # Compaq C++
11305	    # Make sure the PIC flag is empty.  It appears that all Alpha
11306	    # Linux and Compaq Tru64 Unix objects are PIC.
11307	    lt_prog_compiler_pic_CXX=
11308	    lt_prog_compiler_static_CXX='-non_shared'
11309	    ;;
11310	  *)
11311	    ;;
11312	esac
11313	;;
11314      lynxos*)
11315	;;
11316      m88k*)
11317	;;
11318      mvs*)
11319	case $cc_basename in
11320	  cxx*)
11321	    lt_prog_compiler_pic_CXX='-W c,exportall'
11322	    ;;
11323	  *)
11324	    ;;
11325	esac
11326	;;
11327      netbsd*)
11328	;;
11329      osf3* | osf4* | osf5*)
11330	case $cc_basename in
11331	  KCC*)
11332	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11333	    ;;
11334	  RCC*)
11335	    # Rational C++ 2.4.1
11336	    lt_prog_compiler_pic_CXX='-pic'
11337	    ;;
11338	  cxx*)
11339	    # Digital/Compaq C++
11340	    lt_prog_compiler_wl_CXX='-Wl,'
11341	    # Make sure the PIC flag is empty.  It appears that all Alpha
11342	    # Linux and Compaq Tru64 Unix objects are PIC.
11343	    lt_prog_compiler_pic_CXX=
11344	    lt_prog_compiler_static_CXX='-non_shared'
11345	    ;;
11346	  *)
11347	    ;;
11348	esac
11349	;;
11350      psos*)
11351	;;
11352      sco*)
11353	case $cc_basename in
11354	  CC*)
11355	    lt_prog_compiler_pic_CXX='-fPIC'
11356	    ;;
11357	  *)
11358	    ;;
11359	esac
11360	;;
11361      solaris*)
11362	case $cc_basename in
11363	  CC*)
11364	    # Sun C++ 4.2, 5.x and Centerline C++
11365	    lt_prog_compiler_pic_CXX='-KPIC'
11366	    lt_prog_compiler_static_CXX='-Bstatic'
11367	    lt_prog_compiler_wl_CXX='-Qoption ld '
11368	    ;;
11369	  gcx*)
11370	    # Green Hills C++ Compiler
11371	    lt_prog_compiler_pic_CXX='-PIC'
11372	    ;;
11373	  *)
11374	    ;;
11375	esac
11376	;;
11377      sunos4*)
11378	case $cc_basename in
11379	  CC*)
11380	    # Sun C++ 4.x
11381	    lt_prog_compiler_pic_CXX='-pic'
11382	    lt_prog_compiler_static_CXX='-Bstatic'
11383	    ;;
11384	  lcc*)
11385	    # Lucid
11386	    lt_prog_compiler_pic_CXX='-pic'
11387	    ;;
11388	  *)
11389	    ;;
11390	esac
11391	;;
11392      tandem*)
11393	case $cc_basename in
11394	  NCC*)
11395	    # NonStop-UX NCC 3.20
11396	    lt_prog_compiler_pic_CXX='-KPIC'
11397	    ;;
11398	  *)
11399	    ;;
11400	esac
11401	;;
11402      unixware*)
11403	;;
11404      vxworks*)
11405	;;
11406      *)
11407	lt_prog_compiler_can_build_shared_CXX=no
11408	;;
11409    esac
11410  fi
11411
11412echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11413echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11414
11415#
11416# Check to make sure the PIC flag actually works.
11417#
11418if test -n "$lt_prog_compiler_pic_CXX"; then
11419
11420echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11421echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11422if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11423  echo $ECHO_N "(cached) $ECHO_C" >&6
11424else
11425  lt_prog_compiler_pic_works_CXX=no
11426  ac_outfile=conftest.$ac_objext
11427   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11428   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11429   # Insert the option either (1) after the last *FLAGS variable, or
11430   # (2) before a word containing "conftest.", or (3) at the end.
11431   # Note that $ac_compile itself does not contain backslashes and begins
11432   # with a dollar sign (not a hyphen), so the echo should work correctly.
11433   # The option is referenced via a variable to avoid confusing sed.
11434   lt_compile=`echo "$ac_compile" | $SED \
11435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11437   -e 's:$: $lt_compiler_flag:'`
11438   (eval echo "\"\$as_me:11438: $lt_compile\"" >&5)
11439   (eval "$lt_compile" 2>conftest.err)
11440   ac_status=$?
11441   cat conftest.err >&5
11442   echo "$as_me:11442: \$? = $ac_status" >&5
11443   if (exit $ac_status) && test -s "$ac_outfile"; then
11444     # The compiler can only warn and ignore the option if not recognized
11445     # So say no if there are warnings other than the usual output.
11446     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11447     $SED '/^$/d' conftest.err >conftest.er2
11448     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11449       lt_prog_compiler_pic_works_CXX=yes
11450     fi
11451   fi
11452   $rm conftest*
11453
11454fi
11455echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11456echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11457
11458if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11459    case $lt_prog_compiler_pic_CXX in
11460     "" | " "*) ;;
11461     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11462     esac
11463else
11464    lt_prog_compiler_pic_CXX=
11465     lt_prog_compiler_can_build_shared_CXX=no
11466fi
11467
11468fi
11469case $host_os in
11470  # For platforms which do not support PIC, -DPIC is meaningless:
11471  *djgpp*)
11472    lt_prog_compiler_pic_CXX=
11473    ;;
11474  *)
11475    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11476    ;;
11477esac
11478
11479echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11480echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11481if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11482  echo $ECHO_N "(cached) $ECHO_C" >&6
11483else
11484  lt_cv_prog_compiler_c_o_CXX=no
11485   $rm -r conftest 2>/dev/null
11486   mkdir conftest
11487   cd conftest
11488   mkdir out
11489   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11490
11491   lt_compiler_flag="-o out/conftest2.$ac_objext"
11492   # Insert the option either (1) after the last *FLAGS variable, or
11493   # (2) before a word containing "conftest.", or (3) at the end.
11494   # Note that $ac_compile itself does not contain backslashes and begins
11495   # with a dollar sign (not a hyphen), so the echo should work correctly.
11496   lt_compile=`echo "$ac_compile" | $SED \
11497   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11498   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11499   -e 's:$: $lt_compiler_flag:'`
11500   (eval echo "\"\$as_me:11500: $lt_compile\"" >&5)
11501   (eval "$lt_compile" 2>out/conftest.err)
11502   ac_status=$?
11503   cat out/conftest.err >&5
11504   echo "$as_me:11504: \$? = $ac_status" >&5
11505   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11506   then
11507     # The compiler can only warn and ignore the option if not recognized
11508     # So say no if there are warnings
11509     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
11510     $SED '/^$/d' out/conftest.err >out/conftest.er2
11511     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11512       lt_cv_prog_compiler_c_o_CXX=yes
11513     fi
11514   fi
11515   chmod u+w . 2>&5
11516   $rm conftest*
11517   # SGI C++ compiler will create directory out/ii_files/ for
11518   # template instantiation
11519   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11520   $rm out/* && rmdir out
11521   cd ..
11522   rmdir conftest
11523   $rm conftest*
11524
11525fi
11526echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11527echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11528
11529
11530hard_links="nottested"
11531if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11532  # do not overwrite the value of need_locks provided by the user
11533  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11534echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11535  hard_links=yes
11536  $rm conftest*
11537  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11538  touch conftest.a
11539  ln conftest.a conftest.b 2>&5 || hard_links=no
11540  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11541  echo "$as_me:$LINENO: result: $hard_links" >&5
11542echo "${ECHO_T}$hard_links" >&6
11543  if test "$hard_links" = no; then
11544    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11545echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11546    need_locks=warn
11547  fi
11548else
11549  need_locks=no
11550fi
11551
11552echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11553echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11554
11555  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11556  case $host_os in
11557  aix4* | aix5*)
11558    # If we're using GNU nm, then we don't want the "-C" option.
11559    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11560    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11561      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'
11562    else
11563      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'
11564    fi
11565    ;;
11566  pw32*)
11567    export_symbols_cmds_CXX="$ltdll_cmds"
11568  ;;
11569  cygwin* | mingw*)
11570    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'
11571  ;;
11572  *)
11573    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11574  ;;
11575  esac
11576
11577echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11578echo "${ECHO_T}$ld_shlibs_CXX" >&6
11579test "$ld_shlibs_CXX" = no && can_build_shared=no
11580
11581variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11582if test "$GCC" = yes; then
11583  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11584fi
11585
11586#
11587# Do we need to explicitly link libc?
11588#
11589case "x$archive_cmds_need_lc_CXX" in
11590x|xyes)
11591  # Assume -lc should be added
11592  archive_cmds_need_lc_CXX=yes
11593
11594  if test "$enable_shared" = yes && test "$GCC" = yes; then
11595    case $archive_cmds_CXX in
11596    *'~'*)
11597      # FIXME: we may have to deal with multi-command sequences.
11598      ;;
11599    '$CC '*)
11600      # Test whether the compiler implicitly links with -lc since on some
11601      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11602      # to ld, don't add -lc before -lgcc.
11603      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11604echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11605      $rm conftest*
11606      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11607
11608      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11609  (eval $ac_compile) 2>&5
11610  ac_status=$?
11611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612  (exit $ac_status); } 2>conftest.err; then
11613        soname=conftest
11614        lib=conftest
11615        libobjs=conftest.$ac_objext
11616        deplibs=
11617        wl=$lt_prog_compiler_wl_CXX
11618        compiler_flags=-v
11619        linker_flags=-v
11620        verstring=
11621        output_objdir=.
11622        libname=conftest
11623        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11624        allow_undefined_flag_CXX=
11625        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11626  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11627  ac_status=$?
11628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629  (exit $ac_status); }
11630        then
11631	  archive_cmds_need_lc_CXX=no
11632        else
11633	  archive_cmds_need_lc_CXX=yes
11634        fi
11635        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11636      else
11637        cat conftest.err 1>&5
11638      fi
11639      $rm conftest*
11640      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11641echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11642      ;;
11643    esac
11644  fi
11645  ;;
11646esac
11647
11648echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11649echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11650library_names_spec=
11651libname_spec='lib$name'
11652soname_spec=
11653shrext_cmds=".so"
11654postinstall_cmds=
11655postuninstall_cmds=
11656finish_cmds=
11657finish_eval=
11658shlibpath_var=
11659shlibpath_overrides_runpath=unknown
11660version_type=none
11661dynamic_linker="$host_os ld.so"
11662sys_lib_dlsearch_path_spec="/lib /usr/lib"
11663if test "$GCC" = yes; then
11664  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11665  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11666    # if the path contains ";" then we assume it to be the separator
11667    # otherwise default to the standard path separator (i.e. ":") - it is
11668    # assumed that no part of a normal pathname contains ";" but that should
11669    # okay in the real world where ";" in dirpaths is itself problematic.
11670    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11671  else
11672    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11673  fi
11674else
11675  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11676fi
11677need_lib_prefix=unknown
11678hardcode_into_libs=no
11679
11680# when you set need_version to no, make sure it does not cause -set_version
11681# flags to be left without arguments
11682need_version=unknown
11683
11684case $host_os in
11685aix3*)
11686  version_type=linux
11687  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11688  shlibpath_var=LIBPATH
11689
11690  # AIX 3 has no versioning support, so we append a major version to the name.
11691  soname_spec='${libname}${release}${shared_ext}$major'
11692  ;;
11693
11694aix4* | aix5*)
11695  version_type=linux
11696  need_lib_prefix=no
11697  need_version=no
11698  hardcode_into_libs=yes
11699  if test "$host_cpu" = ia64; then
11700    # AIX 5 supports IA64
11701    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11702    shlibpath_var=LD_LIBRARY_PATH
11703  else
11704    # With GCC up to 2.95.x, collect2 would create an import file
11705    # for dependence libraries.  The import file would start with
11706    # the line `#! .'.  This would cause the generated library to
11707    # depend on `.', always an invalid library.  This was fixed in
11708    # development snapshots of GCC prior to 3.0.
11709    case $host_os in
11710      aix4 | aix4.[01] | aix4.[01].*)
11711      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11712	   echo ' yes '
11713	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11714	:
11715      else
11716	can_build_shared=no
11717      fi
11718      ;;
11719    esac
11720    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11721    # soname into executable. Probably we can add versioning support to
11722    # collect2, so additional links can be useful in future.
11723    if test "$aix_use_runtimelinking" = yes; then
11724      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11725      # instead of lib<name>.a to let people know that these are not
11726      # typical AIX shared libraries.
11727      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11728    else
11729      # We preserve .a as extension for shared libraries through AIX4.2
11730      # and later when we are not doing run time linking.
11731      library_names_spec='${libname}${release}.a $libname.a'
11732      soname_spec='${libname}${release}${shared_ext}$major'
11733    fi
11734    shlibpath_var=LIBPATH
11735  fi
11736  ;;
11737
11738amigaos*)
11739  library_names_spec='$libname.ixlibrary $libname.a'
11740  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11741  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'
11742  ;;
11743
11744beos*)
11745  library_names_spec='${libname}${shared_ext}'
11746  dynamic_linker="$host_os ld.so"
11747  shlibpath_var=LIBRARY_PATH
11748  ;;
11749
11750bsdi[45]*)
11751  version_type=linux
11752  need_version=no
11753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754  soname_spec='${libname}${release}${shared_ext}$major'
11755  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11756  shlibpath_var=LD_LIBRARY_PATH
11757  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11758  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11759  # the default ld.so.conf also contains /usr/contrib/lib and
11760  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11761  # libtool to hard-code these into programs
11762  ;;
11763
11764cygwin* | mingw* | pw32*)
11765  version_type=windows
11766  shrext_cmds=".dll"
11767  need_version=no
11768  need_lib_prefix=no
11769
11770  case $GCC,$host_os in
11771  yes,cygwin* | yes,mingw* | yes,pw32*)
11772    library_names_spec='$libname.dll.a'
11773    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11774    postinstall_cmds='base_file=`basename \${file}`~
11775      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11776      dldir=$destdir/`dirname \$dlpath`~
11777      test -d \$dldir || mkdir -p \$dldir~
11778      $install_prog $dir/$dlname \$dldir/$dlname~
11779      chmod a+x \$dldir/$dlname'
11780    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11781      dlpath=$dir/\$dldll~
11782       $rm \$dlpath'
11783    shlibpath_overrides_runpath=yes
11784
11785    case $host_os in
11786    cygwin*)
11787      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11788      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11789      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11790      ;;
11791    mingw*)
11792      # MinGW DLLs use traditional 'lib' prefix
11793      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11794      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11795      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11796        # It is most probably a Windows format PATH printed by
11797        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11798        # path with ; separators, and with drive letters. We can handle the
11799        # drive letters (cygwin fileutils understands them), so leave them,
11800        # especially as we might pass files found there to a mingw objdump,
11801        # which wouldn't understand a cygwinified path. Ahh.
11802        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11803      else
11804        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11805      fi
11806      ;;
11807    pw32*)
11808      # pw32 DLLs use 'pw' prefix rather than 'lib'
11809      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11810      ;;
11811    esac
11812    ;;
11813
11814  *)
11815    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11816    ;;
11817  esac
11818  dynamic_linker='Win32 ld.exe'
11819  # FIXME: first we should search . and the directory the executable is in
11820  shlibpath_var=PATH
11821  ;;
11822
11823darwin* | rhapsody*)
11824  dynamic_linker="$host_os dyld"
11825  version_type=darwin
11826  need_lib_prefix=no
11827  need_version=no
11828  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11829  soname_spec='${libname}${release}${major}$shared_ext'
11830  shlibpath_overrides_runpath=yes
11831  shlibpath_var=DYLD_LIBRARY_PATH
11832  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11833  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11834  if test "$GCC" = yes; then
11835    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"`
11836  else
11837    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11838  fi
11839  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11840  ;;
11841
11842dgux*)
11843  version_type=linux
11844  need_lib_prefix=no
11845  need_version=no
11846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11847  soname_spec='${libname}${release}${shared_ext}$major'
11848  shlibpath_var=LD_LIBRARY_PATH
11849  ;;
11850
11851freebsd1*)
11852  dynamic_linker=no
11853  ;;
11854
11855kfreebsd*-gnu)
11856  version_type=linux
11857  need_lib_prefix=no
11858  need_version=no
11859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11860  soname_spec='${libname}${release}${shared_ext}$major'
11861  shlibpath_var=LD_LIBRARY_PATH
11862  shlibpath_overrides_runpath=no
11863  hardcode_into_libs=yes
11864  dynamic_linker='GNU ld.so'
11865  ;;
11866
11867freebsd* | dragonfly*)
11868  # DragonFly does not have aout.  When/if they implement a new
11869  # versioning mechanism, adjust this.
11870  if test -x /usr/bin/objformat; then
11871    objformat=`/usr/bin/objformat`
11872  else
11873    case $host_os in
11874    freebsd[123]*) objformat=aout ;;
11875    *) objformat=elf ;;
11876    esac
11877  fi
11878  version_type=freebsd-$objformat
11879  case $version_type in
11880    freebsd-elf*)
11881      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11882      need_version=no
11883      need_lib_prefix=no
11884      ;;
11885    freebsd-*)
11886      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11887      need_version=yes
11888      ;;
11889  esac
11890  shlibpath_var=LD_LIBRARY_PATH
11891  case $host_os in
11892  freebsd2*)
11893    shlibpath_overrides_runpath=yes
11894    ;;
11895  freebsd3.[01]* | freebsdelf3.[01]*)
11896    shlibpath_overrides_runpath=yes
11897    hardcode_into_libs=yes
11898    ;;
11899  *) # from 3.2 on
11900    shlibpath_overrides_runpath=no
11901    hardcode_into_libs=yes
11902    ;;
11903  esac
11904  ;;
11905
11906gnu*)
11907  version_type=linux
11908  need_lib_prefix=no
11909  need_version=no
11910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11911  soname_spec='${libname}${release}${shared_ext}$major'
11912  shlibpath_var=LD_LIBRARY_PATH
11913  hardcode_into_libs=yes
11914  ;;
11915
11916hpux9* | hpux10* | hpux11*)
11917  # Give a soname corresponding to the major version so that dld.sl refuses to
11918  # link against other versions.
11919  version_type=sunos
11920  need_lib_prefix=no
11921  need_version=no
11922  case $host_cpu in
11923  ia64*)
11924    shrext_cmds='.so'
11925    hardcode_into_libs=yes
11926    dynamic_linker="$host_os dld.so"
11927    shlibpath_var=LD_LIBRARY_PATH
11928    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930    soname_spec='${libname}${release}${shared_ext}$major'
11931    if test "X$HPUX_IA64_MODE" = X32; then
11932      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11933    else
11934      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11935    fi
11936    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11937    ;;
11938   hppa*64*)
11939     shrext_cmds='.sl'
11940     hardcode_into_libs=yes
11941     dynamic_linker="$host_os dld.sl"
11942     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11945     soname_spec='${libname}${release}${shared_ext}$major'
11946     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11947     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11948     ;;
11949   *)
11950    shrext_cmds='.sl'
11951    dynamic_linker="$host_os dld.sl"
11952    shlibpath_var=SHLIB_PATH
11953    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11954    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955    soname_spec='${libname}${release}${shared_ext}$major'
11956    ;;
11957  esac
11958  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11959  postinstall_cmds='chmod 555 $lib'
11960  ;;
11961
11962irix5* | irix6* | nonstopux*)
11963  case $host_os in
11964    nonstopux*) version_type=nonstopux ;;
11965    *)
11966	if test "$lt_cv_prog_gnu_ld" = yes; then
11967		version_type=linux
11968	else
11969		version_type=irix
11970	fi ;;
11971  esac
11972  need_lib_prefix=no
11973  need_version=no
11974  soname_spec='${libname}${release}${shared_ext}$major'
11975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11976  case $host_os in
11977  irix5* | nonstopux*)
11978    libsuff= shlibsuff=
11979    ;;
11980  *)
11981    case $LD in # libtool.m4 will add one of these switches to LD
11982    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11983      libsuff= shlibsuff= libmagic=32-bit;;
11984    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11985      libsuff=32 shlibsuff=N32 libmagic=N32;;
11986    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11987      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11988    *) libsuff= shlibsuff= libmagic=never-match;;
11989    esac
11990    ;;
11991  esac
11992  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11993  shlibpath_overrides_runpath=no
11994  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11995  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11996  hardcode_into_libs=yes
11997  ;;
11998
11999# No shared lib support for Linux oldld, aout, or coff.
12000linux*oldld* | linux*aout* | linux*coff*)
12001  dynamic_linker=no
12002  ;;
12003
12004# This must be Linux ELF.
12005linux*)
12006  version_type=linux
12007  need_lib_prefix=no
12008  need_version=no
12009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12010  soname_spec='${libname}${release}${shared_ext}$major'
12011  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12012  shlibpath_var=LD_LIBRARY_PATH
12013  shlibpath_overrides_runpath=no
12014  # This implies no fast_install, which is unacceptable.
12015  # Some rework will be needed to allow for fast_install
12016  # before this can be enabled.
12017  hardcode_into_libs=yes
12018
12019  # Append ld.so.conf contents to the search path
12020  if test -f /etc/ld.so.conf; then
12021    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12022    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12023  fi
12024
12025  # We used to test for /lib/ld.so.1 and disable shared libraries on
12026  # powerpc, because MkLinux only supported shared libraries with the
12027  # GNU dynamic linker.  Since this was broken with cross compilers,
12028  # most powerpc-linux boxes support dynamic linking these days and
12029  # people can always --disable-shared, the test was removed, and we
12030  # assume the GNU/Linux dynamic linker is in use.
12031  dynamic_linker='GNU/Linux ld.so'
12032  ;;
12033
12034knetbsd*-gnu)
12035  version_type=linux
12036  need_lib_prefix=no
12037  need_version=no
12038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12039  soname_spec='${libname}${release}${shared_ext}$major'
12040  shlibpath_var=LD_LIBRARY_PATH
12041  shlibpath_overrides_runpath=no
12042  hardcode_into_libs=yes
12043  dynamic_linker='GNU ld.so'
12044  ;;
12045
12046netbsd*)
12047  version_type=sunos
12048  need_lib_prefix=no
12049  need_version=no
12050  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12051    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12052    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12053    dynamic_linker='NetBSD (a.out) ld.so'
12054  else
12055    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12056    soname_spec='${libname}${release}${shared_ext}$major'
12057    dynamic_linker='NetBSD ld.elf_so'
12058  fi
12059  shlibpath_var=LD_LIBRARY_PATH
12060  shlibpath_overrides_runpath=yes
12061  hardcode_into_libs=yes
12062  ;;
12063
12064newsos6)
12065  version_type=linux
12066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067  shlibpath_var=LD_LIBRARY_PATH
12068  shlibpath_overrides_runpath=yes
12069  ;;
12070
12071nto-qnx*)
12072  version_type=linux
12073  need_lib_prefix=no
12074  need_version=no
12075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076  soname_spec='${libname}${release}${shared_ext}$major'
12077  shlibpath_var=LD_LIBRARY_PATH
12078  shlibpath_overrides_runpath=yes
12079  ;;
12080
12081openbsd*)
12082  version_type=sunos
12083  need_lib_prefix=no
12084  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12085  case $host_os in
12086    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12087    *)                         need_version=no  ;;
12088  esac
12089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12090  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12091  shlibpath_var=LD_LIBRARY_PATH
12092  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12093    case $host_os in
12094      openbsd2.[89] | openbsd2.[89].*)
12095	shlibpath_overrides_runpath=no
12096	;;
12097      *)
12098	shlibpath_overrides_runpath=yes
12099	;;
12100      esac
12101  else
12102    shlibpath_overrides_runpath=yes
12103  fi
12104  ;;
12105
12106os2*)
12107  libname_spec='$name'
12108  shrext_cmds=".dll"
12109  need_lib_prefix=no
12110  library_names_spec='$libname${shared_ext} $libname.a'
12111  dynamic_linker='OS/2 ld.exe'
12112  shlibpath_var=LIBPATH
12113  ;;
12114
12115osf3* | osf4* | osf5*)
12116  version_type=osf
12117  need_lib_prefix=no
12118  need_version=no
12119  soname_spec='${libname}${release}${shared_ext}$major'
12120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12121  shlibpath_var=LD_LIBRARY_PATH
12122  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12123  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12124  ;;
12125
12126sco3.2v5*)
12127  version_type=osf
12128  soname_spec='${libname}${release}${shared_ext}$major'
12129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130  shlibpath_var=LD_LIBRARY_PATH
12131  ;;
12132
12133solaris*)
12134  version_type=linux
12135  need_lib_prefix=no
12136  need_version=no
12137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12138  soname_spec='${libname}${release}${shared_ext}$major'
12139  shlibpath_var=LD_LIBRARY_PATH
12140  shlibpath_overrides_runpath=yes
12141  hardcode_into_libs=yes
12142  # ldd complains unless libraries are executable
12143  postinstall_cmds='chmod +x $lib'
12144  ;;
12145
12146sunos4*)
12147  version_type=sunos
12148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12149  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12150  shlibpath_var=LD_LIBRARY_PATH
12151  shlibpath_overrides_runpath=yes
12152  if test "$with_gnu_ld" = yes; then
12153    need_lib_prefix=no
12154  fi
12155  need_version=yes
12156  ;;
12157
12158sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12159  version_type=linux
12160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12161  soname_spec='${libname}${release}${shared_ext}$major'
12162  shlibpath_var=LD_LIBRARY_PATH
12163  case $host_vendor in
12164    sni)
12165      shlibpath_overrides_runpath=no
12166      need_lib_prefix=no
12167      export_dynamic_flag_spec='${wl}-Blargedynsym'
12168      runpath_var=LD_RUN_PATH
12169      ;;
12170    siemens)
12171      need_lib_prefix=no
12172      ;;
12173    motorola)
12174      need_lib_prefix=no
12175      need_version=no
12176      shlibpath_overrides_runpath=no
12177      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12178      ;;
12179  esac
12180  ;;
12181
12182sysv4*MP*)
12183  if test -d /usr/nec ;then
12184    version_type=linux
12185    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12186    soname_spec='$libname${shared_ext}.$major'
12187    shlibpath_var=LD_LIBRARY_PATH
12188  fi
12189  ;;
12190
12191uts4*)
12192  version_type=linux
12193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12194  soname_spec='${libname}${release}${shared_ext}$major'
12195  shlibpath_var=LD_LIBRARY_PATH
12196  ;;
12197
12198*)
12199  dynamic_linker=no
12200  ;;
12201esac
12202echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12203echo "${ECHO_T}$dynamic_linker" >&6
12204test "$dynamic_linker" = no && can_build_shared=no
12205
12206echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12207echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12208hardcode_action_CXX=
12209if test -n "$hardcode_libdir_flag_spec_CXX" || \
12210   test -n "$runpath_var_CXX" || \
12211   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12212
12213  # We can hardcode non-existant directories.
12214  if test "$hardcode_direct_CXX" != no &&
12215     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12216     # have to relink, otherwise we might link with an installed library
12217     # when we should be linking with a yet-to-be-installed one
12218     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12219     test "$hardcode_minus_L_CXX" != no; then
12220    # Linking always hardcodes the temporary library directory.
12221    hardcode_action_CXX=relink
12222  else
12223    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12224    hardcode_action_CXX=immediate
12225  fi
12226else
12227  # We cannot hardcode anything, or else we can only hardcode existing
12228  # directories.
12229  hardcode_action_CXX=unsupported
12230fi
12231echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12232echo "${ECHO_T}$hardcode_action_CXX" >&6
12233
12234if test "$hardcode_action_CXX" = relink; then
12235  # Fast installation is not supported
12236  enable_fast_install=no
12237elif test "$shlibpath_overrides_runpath" = yes ||
12238     test "$enable_shared" = no; then
12239  # Fast installation is not necessary
12240  enable_fast_install=needless
12241fi
12242
12243striplib=
12244old_striplib=
12245echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12246echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12247if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12248  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12249  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12250  echo "$as_me:$LINENO: result: yes" >&5
12251echo "${ECHO_T}yes" >&6
12252else
12253# FIXME - insert some real tests, host_os isn't really good enough
12254  case $host_os in
12255   darwin*)
12256       if test -n "$STRIP" ; then
12257         striplib="$STRIP -x"
12258         echo "$as_me:$LINENO: result: yes" >&5
12259echo "${ECHO_T}yes" >&6
12260       else
12261  echo "$as_me:$LINENO: result: no" >&5
12262echo "${ECHO_T}no" >&6
12263fi
12264       ;;
12265   *)
12266  echo "$as_me:$LINENO: result: no" >&5
12267echo "${ECHO_T}no" >&6
12268    ;;
12269  esac
12270fi
12271
12272if test "x$enable_dlopen" != xyes; then
12273  enable_dlopen=unknown
12274  enable_dlopen_self=unknown
12275  enable_dlopen_self_static=unknown
12276else
12277  lt_cv_dlopen=no
12278  lt_cv_dlopen_libs=
12279
12280  case $host_os in
12281  beos*)
12282    lt_cv_dlopen="load_add_on"
12283    lt_cv_dlopen_libs=
12284    lt_cv_dlopen_self=yes
12285    ;;
12286
12287  mingw* | pw32*)
12288    lt_cv_dlopen="LoadLibrary"
12289    lt_cv_dlopen_libs=
12290   ;;
12291
12292  cygwin*)
12293    lt_cv_dlopen="dlopen"
12294    lt_cv_dlopen_libs=
12295   ;;
12296
12297  darwin*)
12298  # if libdl is installed we need to link against it
12299    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12300echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12301if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12302  echo $ECHO_N "(cached) $ECHO_C" >&6
12303else
12304  ac_check_lib_save_LIBS=$LIBS
12305LIBS="-ldl  $LIBS"
12306cat >conftest.$ac_ext <<_ACEOF
12307/* confdefs.h.  */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h.  */
12312
12313/* Override any gcc2 internal prototype to avoid an error.  */
12314#ifdef __cplusplus
12315extern "C"
12316#endif
12317/* We use char because int might match the return type of a gcc2
12318   builtin and then its argument prototype would still apply.  */
12319char dlopen ();
12320int
12321main ()
12322{
12323dlopen ();
12324  ;
12325  return 0;
12326}
12327_ACEOF
12328rm -f conftest.$ac_objext conftest$ac_exeext
12329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330  (eval $ac_link) 2>conftest.er1
12331  ac_status=$?
12332  grep -v '^ *+' conftest.er1 >conftest.err
12333  rm -f conftest.er1
12334  cat conftest.err >&5
12335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336  (exit $ac_status); } &&
12337	 { ac_try='test -z "$ac_cxx_werror_flag"
12338			 || test ! -s conftest.err'
12339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12340  (eval $ac_try) 2>&5
12341  ac_status=$?
12342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343  (exit $ac_status); }; } &&
12344	 { ac_try='test -s conftest$ac_exeext'
12345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346  (eval $ac_try) 2>&5
12347  ac_status=$?
12348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349  (exit $ac_status); }; }; then
12350  ac_cv_lib_dl_dlopen=yes
12351else
12352  echo "$as_me: failed program was:" >&5
12353sed 's/^/| /' conftest.$ac_ext >&5
12354
12355ac_cv_lib_dl_dlopen=no
12356fi
12357rm -f conftest.err conftest.$ac_objext \
12358      conftest$ac_exeext conftest.$ac_ext
12359LIBS=$ac_check_lib_save_LIBS
12360fi
12361echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12362echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12363if test $ac_cv_lib_dl_dlopen = yes; then
12364  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12365else
12366
12367    lt_cv_dlopen="dyld"
12368    lt_cv_dlopen_libs=
12369    lt_cv_dlopen_self=yes
12370
12371fi
12372
12373   ;;
12374
12375  *)
12376    echo "$as_me:$LINENO: checking for shl_load" >&5
12377echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12378if test "${ac_cv_func_shl_load+set}" = set; then
12379  echo $ECHO_N "(cached) $ECHO_C" >&6
12380else
12381  cat >conftest.$ac_ext <<_ACEOF
12382/* confdefs.h.  */
12383_ACEOF
12384cat confdefs.h >>conftest.$ac_ext
12385cat >>conftest.$ac_ext <<_ACEOF
12386/* end confdefs.h.  */
12387/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12388   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12389#define shl_load innocuous_shl_load
12390
12391/* System header to define __stub macros and hopefully few prototypes,
12392    which can conflict with char shl_load (); below.
12393    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12394    <limits.h> exists even on freestanding compilers.  */
12395
12396#ifdef __STDC__
12397# include <limits.h>
12398#else
12399# include <assert.h>
12400#endif
12401
12402#undef shl_load
12403
12404/* Override any gcc2 internal prototype to avoid an error.  */
12405#ifdef __cplusplus
12406extern "C"
12407{
12408#endif
12409/* We use char because int might match the return type of a gcc2
12410   builtin and then its argument prototype would still apply.  */
12411char shl_load ();
12412/* The GNU C library defines this for functions which it implements
12413    to always fail with ENOSYS.  Some functions are actually named
12414    something starting with __ and the normal name is an alias.  */
12415#if defined (__stub_shl_load) || defined (__stub___shl_load)
12416choke me
12417#else
12418char (*f) () = shl_load;
12419#endif
12420#ifdef __cplusplus
12421}
12422#endif
12423
12424int
12425main ()
12426{
12427return f != shl_load;
12428  ;
12429  return 0;
12430}
12431_ACEOF
12432rm -f conftest.$ac_objext conftest$ac_exeext
12433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12434  (eval $ac_link) 2>conftest.er1
12435  ac_status=$?
12436  grep -v '^ *+' conftest.er1 >conftest.err
12437  rm -f conftest.er1
12438  cat conftest.err >&5
12439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440  (exit $ac_status); } &&
12441	 { ac_try='test -z "$ac_cxx_werror_flag"
12442			 || test ! -s conftest.err'
12443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444  (eval $ac_try) 2>&5
12445  ac_status=$?
12446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447  (exit $ac_status); }; } &&
12448	 { ac_try='test -s conftest$ac_exeext'
12449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450  (eval $ac_try) 2>&5
12451  ac_status=$?
12452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453  (exit $ac_status); }; }; then
12454  ac_cv_func_shl_load=yes
12455else
12456  echo "$as_me: failed program was:" >&5
12457sed 's/^/| /' conftest.$ac_ext >&5
12458
12459ac_cv_func_shl_load=no
12460fi
12461rm -f conftest.err conftest.$ac_objext \
12462      conftest$ac_exeext conftest.$ac_ext
12463fi
12464echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12465echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12466if test $ac_cv_func_shl_load = yes; then
12467  lt_cv_dlopen="shl_load"
12468else
12469  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12470echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12471if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12472  echo $ECHO_N "(cached) $ECHO_C" >&6
12473else
12474  ac_check_lib_save_LIBS=$LIBS
12475LIBS="-ldld  $LIBS"
12476cat >conftest.$ac_ext <<_ACEOF
12477/* confdefs.h.  */
12478_ACEOF
12479cat confdefs.h >>conftest.$ac_ext
12480cat >>conftest.$ac_ext <<_ACEOF
12481/* end confdefs.h.  */
12482
12483/* Override any gcc2 internal prototype to avoid an error.  */
12484#ifdef __cplusplus
12485extern "C"
12486#endif
12487/* We use char because int might match the return type of a gcc2
12488   builtin and then its argument prototype would still apply.  */
12489char shl_load ();
12490int
12491main ()
12492{
12493shl_load ();
12494  ;
12495  return 0;
12496}
12497_ACEOF
12498rm -f conftest.$ac_objext conftest$ac_exeext
12499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12500  (eval $ac_link) 2>conftest.er1
12501  ac_status=$?
12502  grep -v '^ *+' conftest.er1 >conftest.err
12503  rm -f conftest.er1
12504  cat conftest.err >&5
12505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506  (exit $ac_status); } &&
12507	 { ac_try='test -z "$ac_cxx_werror_flag"
12508			 || test ! -s conftest.err'
12509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510  (eval $ac_try) 2>&5
12511  ac_status=$?
12512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513  (exit $ac_status); }; } &&
12514	 { ac_try='test -s conftest$ac_exeext'
12515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516  (eval $ac_try) 2>&5
12517  ac_status=$?
12518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519  (exit $ac_status); }; }; then
12520  ac_cv_lib_dld_shl_load=yes
12521else
12522  echo "$as_me: failed program was:" >&5
12523sed 's/^/| /' conftest.$ac_ext >&5
12524
12525ac_cv_lib_dld_shl_load=no
12526fi
12527rm -f conftest.err conftest.$ac_objext \
12528      conftest$ac_exeext conftest.$ac_ext
12529LIBS=$ac_check_lib_save_LIBS
12530fi
12531echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12532echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12533if test $ac_cv_lib_dld_shl_load = yes; then
12534  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12535else
12536  echo "$as_me:$LINENO: checking for dlopen" >&5
12537echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12538if test "${ac_cv_func_dlopen+set}" = set; then
12539  echo $ECHO_N "(cached) $ECHO_C" >&6
12540else
12541  cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h.  */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h.  */
12547/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12548   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12549#define dlopen innocuous_dlopen
12550
12551/* System header to define __stub macros and hopefully few prototypes,
12552    which can conflict with char dlopen (); below.
12553    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12554    <limits.h> exists even on freestanding compilers.  */
12555
12556#ifdef __STDC__
12557# include <limits.h>
12558#else
12559# include <assert.h>
12560#endif
12561
12562#undef dlopen
12563
12564/* Override any gcc2 internal prototype to avoid an error.  */
12565#ifdef __cplusplus
12566extern "C"
12567{
12568#endif
12569/* We use char because int might match the return type of a gcc2
12570   builtin and then its argument prototype would still apply.  */
12571char dlopen ();
12572/* The GNU C library defines this for functions which it implements
12573    to always fail with ENOSYS.  Some functions are actually named
12574    something starting with __ and the normal name is an alias.  */
12575#if defined (__stub_dlopen) || defined (__stub___dlopen)
12576choke me
12577#else
12578char (*f) () = dlopen;
12579#endif
12580#ifdef __cplusplus
12581}
12582#endif
12583
12584int
12585main ()
12586{
12587return f != dlopen;
12588  ;
12589  return 0;
12590}
12591_ACEOF
12592rm -f conftest.$ac_objext conftest$ac_exeext
12593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12594  (eval $ac_link) 2>conftest.er1
12595  ac_status=$?
12596  grep -v '^ *+' conftest.er1 >conftest.err
12597  rm -f conftest.er1
12598  cat conftest.err >&5
12599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600  (exit $ac_status); } &&
12601	 { ac_try='test -z "$ac_cxx_werror_flag"
12602			 || test ! -s conftest.err'
12603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604  (eval $ac_try) 2>&5
12605  ac_status=$?
12606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607  (exit $ac_status); }; } &&
12608	 { ac_try='test -s conftest$ac_exeext'
12609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610  (eval $ac_try) 2>&5
12611  ac_status=$?
12612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613  (exit $ac_status); }; }; then
12614  ac_cv_func_dlopen=yes
12615else
12616  echo "$as_me: failed program was:" >&5
12617sed 's/^/| /' conftest.$ac_ext >&5
12618
12619ac_cv_func_dlopen=no
12620fi
12621rm -f conftest.err conftest.$ac_objext \
12622      conftest$ac_exeext conftest.$ac_ext
12623fi
12624echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12625echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12626if test $ac_cv_func_dlopen = yes; then
12627  lt_cv_dlopen="dlopen"
12628else
12629  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12630echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12631if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12632  echo $ECHO_N "(cached) $ECHO_C" >&6
12633else
12634  ac_check_lib_save_LIBS=$LIBS
12635LIBS="-ldl  $LIBS"
12636cat >conftest.$ac_ext <<_ACEOF
12637/* confdefs.h.  */
12638_ACEOF
12639cat confdefs.h >>conftest.$ac_ext
12640cat >>conftest.$ac_ext <<_ACEOF
12641/* end confdefs.h.  */
12642
12643/* Override any gcc2 internal prototype to avoid an error.  */
12644#ifdef __cplusplus
12645extern "C"
12646#endif
12647/* We use char because int might match the return type of a gcc2
12648   builtin and then its argument prototype would still apply.  */
12649char dlopen ();
12650int
12651main ()
12652{
12653dlopen ();
12654  ;
12655  return 0;
12656}
12657_ACEOF
12658rm -f conftest.$ac_objext conftest$ac_exeext
12659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660  (eval $ac_link) 2>conftest.er1
12661  ac_status=$?
12662  grep -v '^ *+' conftest.er1 >conftest.err
12663  rm -f conftest.er1
12664  cat conftest.err >&5
12665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666  (exit $ac_status); } &&
12667	 { ac_try='test -z "$ac_cxx_werror_flag"
12668			 || test ! -s conftest.err'
12669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670  (eval $ac_try) 2>&5
12671  ac_status=$?
12672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673  (exit $ac_status); }; } &&
12674	 { ac_try='test -s conftest$ac_exeext'
12675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676  (eval $ac_try) 2>&5
12677  ac_status=$?
12678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679  (exit $ac_status); }; }; then
12680  ac_cv_lib_dl_dlopen=yes
12681else
12682  echo "$as_me: failed program was:" >&5
12683sed 's/^/| /' conftest.$ac_ext >&5
12684
12685ac_cv_lib_dl_dlopen=no
12686fi
12687rm -f conftest.err conftest.$ac_objext \
12688      conftest$ac_exeext conftest.$ac_ext
12689LIBS=$ac_check_lib_save_LIBS
12690fi
12691echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12692echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12693if test $ac_cv_lib_dl_dlopen = yes; then
12694  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12695else
12696  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12697echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12698if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12699  echo $ECHO_N "(cached) $ECHO_C" >&6
12700else
12701  ac_check_lib_save_LIBS=$LIBS
12702LIBS="-lsvld  $LIBS"
12703cat >conftest.$ac_ext <<_ACEOF
12704/* confdefs.h.  */
12705_ACEOF
12706cat confdefs.h >>conftest.$ac_ext
12707cat >>conftest.$ac_ext <<_ACEOF
12708/* end confdefs.h.  */
12709
12710/* Override any gcc2 internal prototype to avoid an error.  */
12711#ifdef __cplusplus
12712extern "C"
12713#endif
12714/* We use char because int might match the return type of a gcc2
12715   builtin and then its argument prototype would still apply.  */
12716char dlopen ();
12717int
12718main ()
12719{
12720dlopen ();
12721  ;
12722  return 0;
12723}
12724_ACEOF
12725rm -f conftest.$ac_objext conftest$ac_exeext
12726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12727  (eval $ac_link) 2>conftest.er1
12728  ac_status=$?
12729  grep -v '^ *+' conftest.er1 >conftest.err
12730  rm -f conftest.er1
12731  cat conftest.err >&5
12732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733  (exit $ac_status); } &&
12734	 { ac_try='test -z "$ac_cxx_werror_flag"
12735			 || test ! -s conftest.err'
12736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737  (eval $ac_try) 2>&5
12738  ac_status=$?
12739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740  (exit $ac_status); }; } &&
12741	 { ac_try='test -s conftest$ac_exeext'
12742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743  (eval $ac_try) 2>&5
12744  ac_status=$?
12745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746  (exit $ac_status); }; }; then
12747  ac_cv_lib_svld_dlopen=yes
12748else
12749  echo "$as_me: failed program was:" >&5
12750sed 's/^/| /' conftest.$ac_ext >&5
12751
12752ac_cv_lib_svld_dlopen=no
12753fi
12754rm -f conftest.err conftest.$ac_objext \
12755      conftest$ac_exeext conftest.$ac_ext
12756LIBS=$ac_check_lib_save_LIBS
12757fi
12758echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12759echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12760if test $ac_cv_lib_svld_dlopen = yes; then
12761  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12762else
12763  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12764echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12765if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12766  echo $ECHO_N "(cached) $ECHO_C" >&6
12767else
12768  ac_check_lib_save_LIBS=$LIBS
12769LIBS="-ldld  $LIBS"
12770cat >conftest.$ac_ext <<_ACEOF
12771/* confdefs.h.  */
12772_ACEOF
12773cat confdefs.h >>conftest.$ac_ext
12774cat >>conftest.$ac_ext <<_ACEOF
12775/* end confdefs.h.  */
12776
12777/* Override any gcc2 internal prototype to avoid an error.  */
12778#ifdef __cplusplus
12779extern "C"
12780#endif
12781/* We use char because int might match the return type of a gcc2
12782   builtin and then its argument prototype would still apply.  */
12783char dld_link ();
12784int
12785main ()
12786{
12787dld_link ();
12788  ;
12789  return 0;
12790}
12791_ACEOF
12792rm -f conftest.$ac_objext conftest$ac_exeext
12793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12794  (eval $ac_link) 2>conftest.er1
12795  ac_status=$?
12796  grep -v '^ *+' conftest.er1 >conftest.err
12797  rm -f conftest.er1
12798  cat conftest.err >&5
12799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800  (exit $ac_status); } &&
12801	 { ac_try='test -z "$ac_cxx_werror_flag"
12802			 || test ! -s conftest.err'
12803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804  (eval $ac_try) 2>&5
12805  ac_status=$?
12806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807  (exit $ac_status); }; } &&
12808	 { ac_try='test -s conftest$ac_exeext'
12809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810  (eval $ac_try) 2>&5
12811  ac_status=$?
12812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813  (exit $ac_status); }; }; then
12814  ac_cv_lib_dld_dld_link=yes
12815else
12816  echo "$as_me: failed program was:" >&5
12817sed 's/^/| /' conftest.$ac_ext >&5
12818
12819ac_cv_lib_dld_dld_link=no
12820fi
12821rm -f conftest.err conftest.$ac_objext \
12822      conftest$ac_exeext conftest.$ac_ext
12823LIBS=$ac_check_lib_save_LIBS
12824fi
12825echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12826echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12827if test $ac_cv_lib_dld_dld_link = yes; then
12828  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12829fi
12830
12831
12832fi
12833
12834
12835fi
12836
12837
12838fi
12839
12840
12841fi
12842
12843
12844fi
12845
12846    ;;
12847  esac
12848
12849  if test "x$lt_cv_dlopen" != xno; then
12850    enable_dlopen=yes
12851  else
12852    enable_dlopen=no
12853  fi
12854
12855  case $lt_cv_dlopen in
12856  dlopen)
12857    save_CPPFLAGS="$CPPFLAGS"
12858    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12859
12860    save_LDFLAGS="$LDFLAGS"
12861    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12862
12863    save_LIBS="$LIBS"
12864    LIBS="$lt_cv_dlopen_libs $LIBS"
12865
12866    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12867echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12868if test "${lt_cv_dlopen_self+set}" = set; then
12869  echo $ECHO_N "(cached) $ECHO_C" >&6
12870else
12871  	  if test "$cross_compiling" = yes; then :
12872  lt_cv_dlopen_self=cross
12873else
12874  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12875  lt_status=$lt_dlunknown
12876  cat > conftest.$ac_ext <<EOF
12877#line 12877 "configure"
12878#include "confdefs.h"
12879
12880#if HAVE_DLFCN_H
12881#include <dlfcn.h>
12882#endif
12883
12884#include <stdio.h>
12885
12886#ifdef RTLD_GLOBAL
12887#  define LT_DLGLOBAL		RTLD_GLOBAL
12888#else
12889#  ifdef DL_GLOBAL
12890#    define LT_DLGLOBAL		DL_GLOBAL
12891#  else
12892#    define LT_DLGLOBAL		0
12893#  endif
12894#endif
12895
12896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12897   find out it does not work in some platform. */
12898#ifndef LT_DLLAZY_OR_NOW
12899#  ifdef RTLD_LAZY
12900#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12901#  else
12902#    ifdef DL_LAZY
12903#      define LT_DLLAZY_OR_NOW		DL_LAZY
12904#    else
12905#      ifdef RTLD_NOW
12906#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12907#      else
12908#        ifdef DL_NOW
12909#          define LT_DLLAZY_OR_NOW	DL_NOW
12910#        else
12911#          define LT_DLLAZY_OR_NOW	0
12912#        endif
12913#      endif
12914#    endif
12915#  endif
12916#endif
12917
12918#ifdef __cplusplus
12919extern "C" void exit (int);
12920#endif
12921
12922void fnord() { int i=42;}
12923int main ()
12924{
12925  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12926  int status = $lt_dlunknown;
12927
12928  if (self)
12929    {
12930      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12931      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12932      /* dlclose (self); */
12933    }
12934
12935    exit (status);
12936}
12937EOF
12938  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12939  (eval $ac_link) 2>&5
12940  ac_status=$?
12941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12943    (./conftest; exit; ) >&5 2>/dev/null
12944    lt_status=$?
12945    case x$lt_status in
12946      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12947      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12948      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12949    esac
12950  else :
12951    # compilation failed
12952    lt_cv_dlopen_self=no
12953  fi
12954fi
12955rm -fr conftest*
12956
12957
12958fi
12959echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12960echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12961
12962    if test "x$lt_cv_dlopen_self" = xyes; then
12963      LDFLAGS="$LDFLAGS $link_static_flag"
12964      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12965echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12966if test "${lt_cv_dlopen_self_static+set}" = set; then
12967  echo $ECHO_N "(cached) $ECHO_C" >&6
12968else
12969  	  if test "$cross_compiling" = yes; then :
12970  lt_cv_dlopen_self_static=cross
12971else
12972  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12973  lt_status=$lt_dlunknown
12974  cat > conftest.$ac_ext <<EOF
12975#line 12975 "configure"
12976#include "confdefs.h"
12977
12978#if HAVE_DLFCN_H
12979#include <dlfcn.h>
12980#endif
12981
12982#include <stdio.h>
12983
12984#ifdef RTLD_GLOBAL
12985#  define LT_DLGLOBAL		RTLD_GLOBAL
12986#else
12987#  ifdef DL_GLOBAL
12988#    define LT_DLGLOBAL		DL_GLOBAL
12989#  else
12990#    define LT_DLGLOBAL		0
12991#  endif
12992#endif
12993
12994/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12995   find out it does not work in some platform. */
12996#ifndef LT_DLLAZY_OR_NOW
12997#  ifdef RTLD_LAZY
12998#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12999#  else
13000#    ifdef DL_LAZY
13001#      define LT_DLLAZY_OR_NOW		DL_LAZY
13002#    else
13003#      ifdef RTLD_NOW
13004#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13005#      else
13006#        ifdef DL_NOW
13007#          define LT_DLLAZY_OR_NOW	DL_NOW
13008#        else
13009#          define LT_DLLAZY_OR_NOW	0
13010#        endif
13011#      endif
13012#    endif
13013#  endif
13014#endif
13015
13016#ifdef __cplusplus
13017extern "C" void exit (int);
13018#endif
13019
13020void fnord() { int i=42;}
13021int main ()
13022{
13023  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13024  int status = $lt_dlunknown;
13025
13026  if (self)
13027    {
13028      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13029      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13030      /* dlclose (self); */
13031    }
13032
13033    exit (status);
13034}
13035EOF
13036  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13037  (eval $ac_link) 2>&5
13038  ac_status=$?
13039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13041    (./conftest; exit; ) >&5 2>/dev/null
13042    lt_status=$?
13043    case x$lt_status in
13044      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13045      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13046      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13047    esac
13048  else :
13049    # compilation failed
13050    lt_cv_dlopen_self_static=no
13051  fi
13052fi
13053rm -fr conftest*
13054
13055
13056fi
13057echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13058echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13059    fi
13060
13061    CPPFLAGS="$save_CPPFLAGS"
13062    LDFLAGS="$save_LDFLAGS"
13063    LIBS="$save_LIBS"
13064    ;;
13065  esac
13066
13067  case $lt_cv_dlopen_self in
13068  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13069  *) enable_dlopen_self=unknown ;;
13070  esac
13071
13072  case $lt_cv_dlopen_self_static in
13073  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13074  *) enable_dlopen_self_static=unknown ;;
13075  esac
13076fi
13077
13078
13079# The else clause should only fire when bootstrapping the
13080# libtool distribution, otherwise you forgot to ship ltmain.sh
13081# with your package, and you will get complaints that there are
13082# no rules to generate ltmain.sh.
13083if test -f "$ltmain"; then
13084  # See if we are running on zsh, and set the options which allow our commands through
13085  # without removal of \ escapes.
13086  if test -n "${ZSH_VERSION+set}" ; then
13087    setopt NO_GLOB_SUBST
13088  fi
13089  # Now quote all the things that may contain metacharacters while being
13090  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13091  # variables and quote the copies for generation of the libtool script.
13092  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13093    SED SHELL STRIP \
13094    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13095    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13096    deplibs_check_method reload_flag reload_cmds need_locks \
13097    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13098    lt_cv_sys_global_symbol_to_c_name_address \
13099    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13100    old_postinstall_cmds old_postuninstall_cmds \
13101    compiler_CXX \
13102    CC_CXX \
13103    LD_CXX \
13104    lt_prog_compiler_wl_CXX \
13105    lt_prog_compiler_pic_CXX \
13106    lt_prog_compiler_static_CXX \
13107    lt_prog_compiler_no_builtin_flag_CXX \
13108    export_dynamic_flag_spec_CXX \
13109    thread_safe_flag_spec_CXX \
13110    whole_archive_flag_spec_CXX \
13111    enable_shared_with_static_runtimes_CXX \
13112    old_archive_cmds_CXX \
13113    old_archive_from_new_cmds_CXX \
13114    predep_objects_CXX \
13115    postdep_objects_CXX \
13116    predeps_CXX \
13117    postdeps_CXX \
13118    compiler_lib_search_path_CXX \
13119    archive_cmds_CXX \
13120    archive_expsym_cmds_CXX \
13121    postinstall_cmds_CXX \
13122    postuninstall_cmds_CXX \
13123    old_archive_from_expsyms_cmds_CXX \
13124    allow_undefined_flag_CXX \
13125    no_undefined_flag_CXX \
13126    export_symbols_cmds_CXX \
13127    hardcode_libdir_flag_spec_CXX \
13128    hardcode_libdir_flag_spec_ld_CXX \
13129    hardcode_libdir_separator_CXX \
13130    hardcode_automatic_CXX \
13131    module_cmds_CXX \
13132    module_expsym_cmds_CXX \
13133    lt_cv_prog_compiler_c_o_CXX \
13134    exclude_expsyms_CXX \
13135    include_expsyms_CXX; do
13136
13137    case $var in
13138    old_archive_cmds_CXX | \
13139    old_archive_from_new_cmds_CXX | \
13140    archive_cmds_CXX | \
13141    archive_expsym_cmds_CXX | \
13142    module_cmds_CXX | \
13143    module_expsym_cmds_CXX | \
13144    old_archive_from_expsyms_cmds_CXX | \
13145    export_symbols_cmds_CXX | \
13146    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13147    postinstall_cmds | postuninstall_cmds | \
13148    old_postinstall_cmds | old_postuninstall_cmds | \
13149    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13150      # Double-quote double-evaled strings.
13151      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13152      ;;
13153    *)
13154      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13155      ;;
13156    esac
13157  done
13158
13159  case $lt_echo in
13160  *'\$0 --fallback-echo"')
13161    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13162    ;;
13163  esac
13164
13165cfgfile="$ofile"
13166
13167  cat <<__EOF__ >> "$cfgfile"
13168# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13169
13170# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13171
13172# Shell to use when invoking shell scripts.
13173SHELL=$lt_SHELL
13174
13175# Whether or not to build shared libraries.
13176build_libtool_libs=$enable_shared
13177
13178# Whether or not to build static libraries.
13179build_old_libs=$enable_static
13180
13181# Whether or not to add -lc for building shared libraries.
13182build_libtool_need_lc=$archive_cmds_need_lc_CXX
13183
13184# Whether or not to disallow shared libs when runtime libs are static
13185allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13186
13187# Whether or not to optimize for fast installation.
13188fast_install=$enable_fast_install
13189
13190# The host system.
13191host_alias=$host_alias
13192host=$host
13193host_os=$host_os
13194
13195# The build system.
13196build_alias=$build_alias
13197build=$build
13198build_os=$build_os
13199
13200# An echo program that does not interpret backslashes.
13201echo=$lt_echo
13202
13203# The archiver.
13204AR=$lt_AR
13205AR_FLAGS=$lt_AR_FLAGS
13206
13207# A C compiler.
13208LTCC=$lt_LTCC
13209
13210# A language-specific compiler.
13211CC=$lt_compiler_CXX
13212
13213# Is the compiler the GNU C compiler?
13214with_gcc=$GCC_CXX
13215
13216# An ERE matcher.
13217EGREP=$lt_EGREP
13218
13219# The linker used to build libraries.
13220LD=$lt_LD_CXX
13221
13222# Whether we need hard or soft links.
13223LN_S=$lt_LN_S
13224
13225# A BSD-compatible nm program.
13226NM=$lt_NM
13227
13228# A symbol stripping program
13229STRIP=$lt_STRIP
13230
13231# Used to examine libraries when file_magic_cmd begins "file"
13232MAGIC_CMD=$MAGIC_CMD
13233
13234# Used on cygwin: DLL creation program.
13235DLLTOOL="$DLLTOOL"
13236
13237# Used on cygwin: object dumper.
13238OBJDUMP="$OBJDUMP"
13239
13240# Used on cygwin: assembler.
13241AS="$AS"
13242
13243# The name of the directory that contains temporary libtool files.
13244objdir=$objdir
13245
13246# How to create reloadable object files.
13247reload_flag=$lt_reload_flag
13248reload_cmds=$lt_reload_cmds
13249
13250# How to pass a linker flag through the compiler.
13251wl=$lt_lt_prog_compiler_wl_CXX
13252
13253# Object file suffix (normally "o").
13254objext="$ac_objext"
13255
13256# Old archive suffix (normally "a").
13257libext="$libext"
13258
13259# Shared library suffix (normally ".so").
13260shrext_cmds='$shrext_cmds'
13261
13262# Executable file suffix (normally "").
13263exeext="$exeext"
13264
13265# Additional compiler flags for building library objects.
13266pic_flag=$lt_lt_prog_compiler_pic_CXX
13267pic_mode=$pic_mode
13268
13269# What is the maximum length of a command?
13270max_cmd_len=$lt_cv_sys_max_cmd_len
13271
13272# Does compiler simultaneously support -c and -o options?
13273compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13274
13275# Must we lock files when doing compilation?
13276need_locks=$lt_need_locks
13277
13278# Do we need the lib prefix for modules?
13279need_lib_prefix=$need_lib_prefix
13280
13281# Do we need a version for libraries?
13282need_version=$need_version
13283
13284# Whether dlopen is supported.
13285dlopen_support=$enable_dlopen
13286
13287# Whether dlopen of programs is supported.
13288dlopen_self=$enable_dlopen_self
13289
13290# Whether dlopen of statically linked programs is supported.
13291dlopen_self_static=$enable_dlopen_self_static
13292
13293# Compiler flag to prevent dynamic linking.
13294link_static_flag=$lt_lt_prog_compiler_static_CXX
13295
13296# Compiler flag to turn off builtin functions.
13297no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13298
13299# Compiler flag to allow reflexive dlopens.
13300export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13301
13302# Compiler flag to generate shared objects directly from archives.
13303whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13304
13305# Compiler flag to generate thread-safe objects.
13306thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13307
13308# Library versioning type.
13309version_type=$version_type
13310
13311# Format of library name prefix.
13312libname_spec=$lt_libname_spec
13313
13314# List of archive names.  First name is the real one, the rest are links.
13315# The last name is the one that the linker finds with -lNAME.
13316library_names_spec=$lt_library_names_spec
13317
13318# The coded name of the library, if different from the real name.
13319soname_spec=$lt_soname_spec
13320
13321# Commands used to build and install an old-style archive.
13322RANLIB=$lt_RANLIB
13323old_archive_cmds=$lt_old_archive_cmds_CXX
13324old_postinstall_cmds=$lt_old_postinstall_cmds
13325old_postuninstall_cmds=$lt_old_postuninstall_cmds
13326
13327# Create an old-style archive from a shared archive.
13328old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13329
13330# Create a temporary old-style archive to link instead of a shared archive.
13331old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13332
13333# Commands used to build and install a shared archive.
13334archive_cmds=$lt_archive_cmds_CXX
13335archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13336postinstall_cmds=$lt_postinstall_cmds
13337postuninstall_cmds=$lt_postuninstall_cmds
13338
13339# Commands used to build a loadable module (assumed same as above if empty)
13340module_cmds=$lt_module_cmds_CXX
13341module_expsym_cmds=$lt_module_expsym_cmds_CXX
13342
13343# Commands to strip libraries.
13344old_striplib=$lt_old_striplib
13345striplib=$lt_striplib
13346
13347# Dependencies to place before the objects being linked to create a
13348# shared library.
13349predep_objects=$lt_predep_objects_CXX
13350
13351# Dependencies to place after the objects being linked to create a
13352# shared library.
13353postdep_objects=$lt_postdep_objects_CXX
13354
13355# Dependencies to place before the objects being linked to create a
13356# shared library.
13357predeps=$lt_predeps_CXX
13358
13359# Dependencies to place after the objects being linked to create a
13360# shared library.
13361postdeps=$lt_postdeps_CXX
13362
13363# The library search path used internally by the compiler when linking
13364# a shared library.
13365compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13366
13367# Method to check whether dependent libraries are shared objects.
13368deplibs_check_method=$lt_deplibs_check_method
13369
13370# Command to use when deplibs_check_method == file_magic.
13371file_magic_cmd=$lt_file_magic_cmd
13372
13373# Flag that allows shared libraries with undefined symbols to be built.
13374allow_undefined_flag=$lt_allow_undefined_flag_CXX
13375
13376# Flag that forces no undefined symbols.
13377no_undefined_flag=$lt_no_undefined_flag_CXX
13378
13379# Commands used to finish a libtool library installation in a directory.
13380finish_cmds=$lt_finish_cmds
13381
13382# Same as above, but a single script fragment to be evaled but not shown.
13383finish_eval=$lt_finish_eval
13384
13385# Take the output of nm and produce a listing of raw symbols and C names.
13386global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13387
13388# Transform the output of nm in a proper C declaration
13389global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13390
13391# Transform the output of nm in a C name address pair
13392global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13393
13394# This is the shared library runtime path variable.
13395runpath_var=$runpath_var
13396
13397# This is the shared library path variable.
13398shlibpath_var=$shlibpath_var
13399
13400# Is shlibpath searched before the hard-coded library search path?
13401shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13402
13403# How to hardcode a shared library path into an executable.
13404hardcode_action=$hardcode_action_CXX
13405
13406# Whether we should hardcode library paths into libraries.
13407hardcode_into_libs=$hardcode_into_libs
13408
13409# Flag to hardcode \$libdir into a binary during linking.
13410# This must work even if \$libdir does not exist.
13411hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13412
13413# If ld is used when linking, flag to hardcode \$libdir into
13414# a binary during linking. This must work even if \$libdir does
13415# not exist.
13416hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13417
13418# Whether we need a single -rpath flag with a separated argument.
13419hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13420
13421# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13422# resulting binary.
13423hardcode_direct=$hardcode_direct_CXX
13424
13425# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13426# resulting binary.
13427hardcode_minus_L=$hardcode_minus_L_CXX
13428
13429# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13430# the resulting binary.
13431hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13432
13433# Set to yes if building a shared library automatically hardcodes DIR into the library
13434# and all subsequent libraries and executables linked against it.
13435hardcode_automatic=$hardcode_automatic_CXX
13436
13437# Variables whose values should be saved in libtool wrapper scripts and
13438# restored at relink time.
13439variables_saved_for_relink="$variables_saved_for_relink"
13440
13441# Whether libtool must link a program against all its dependency libraries.
13442link_all_deplibs=$link_all_deplibs_CXX
13443
13444# Compile-time system search path for libraries
13445sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13446
13447# Run-time system search path for libraries
13448sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13449
13450# Fix the shell variable \$srcfile for the compiler.
13451fix_srcfile_path="$fix_srcfile_path_CXX"
13452
13453# Set to yes if exported symbols are required.
13454always_export_symbols=$always_export_symbols_CXX
13455
13456# The commands to list exported symbols.
13457export_symbols_cmds=$lt_export_symbols_cmds_CXX
13458
13459# The commands to extract the exported symbol list from a shared archive.
13460extract_expsyms_cmds=$lt_extract_expsyms_cmds
13461
13462# Symbols that should not be listed in the preloaded symbols.
13463exclude_expsyms=$lt_exclude_expsyms_CXX
13464
13465# Symbols that must always be exported.
13466include_expsyms=$lt_include_expsyms_CXX
13467
13468# ### END LIBTOOL TAG CONFIG: $tagname
13469
13470__EOF__
13471
13472
13473else
13474  # If there is no Makefile yet, we rely on a make rule to execute
13475  # `config.status --recheck' to rerun these tests and create the
13476  # libtool script then.
13477  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13478  if test -f "$ltmain_in"; then
13479    test -f Makefile && make "$ltmain"
13480  fi
13481fi
13482
13483
13484ac_ext=c
13485ac_cpp='$CPP $CPPFLAGS'
13486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13488ac_compiler_gnu=$ac_cv_c_compiler_gnu
13489
13490CC=$lt_save_CC
13491LDCXX=$LD
13492LD=$lt_save_LD
13493GCC=$lt_save_GCC
13494with_gnu_ldcxx=$with_gnu_ld
13495with_gnu_ld=$lt_save_with_gnu_ld
13496lt_cv_path_LDCXX=$lt_cv_path_LD
13497lt_cv_path_LD=$lt_save_path_LD
13498lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13499lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13500
13501	else
13502	  tagname=""
13503	fi
13504	;;
13505
13506      F77)
13507	if test -n "$F77" && test "X$F77" != "Xno"; then
13508
13509ac_ext=f
13510ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13511ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13513
13514
13515archive_cmds_need_lc_F77=no
13516allow_undefined_flag_F77=
13517always_export_symbols_F77=no
13518archive_expsym_cmds_F77=
13519export_dynamic_flag_spec_F77=
13520hardcode_direct_F77=no
13521hardcode_libdir_flag_spec_F77=
13522hardcode_libdir_flag_spec_ld_F77=
13523hardcode_libdir_separator_F77=
13524hardcode_minus_L_F77=no
13525hardcode_automatic_F77=no
13526module_cmds_F77=
13527module_expsym_cmds_F77=
13528link_all_deplibs_F77=unknown
13529old_archive_cmds_F77=$old_archive_cmds
13530no_undefined_flag_F77=
13531whole_archive_flag_spec_F77=
13532enable_shared_with_static_runtimes_F77=no
13533
13534# Source file extension for f77 test sources.
13535ac_ext=f
13536
13537# Object file extension for compiled f77 test sources.
13538objext=o
13539objext_F77=$objext
13540
13541# Code to be used in simple compile tests
13542lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13543
13544# Code to be used in simple link tests
13545lt_simple_link_test_code="      program t\n      end\n"
13546
13547# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13548
13549# If no C compiler was specified, use CC.
13550LTCC=${LTCC-"$CC"}
13551
13552# Allow CC to be a program name with arguments.
13553compiler=$CC
13554
13555
13556# save warnings/boilerplate of simple test code
13557ac_outfile=conftest.$ac_objext
13558printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13559eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13560_lt_compiler_boilerplate=`cat conftest.err`
13561$rm conftest*
13562
13563ac_outfile=conftest.$ac_objext
13564printf "$lt_simple_link_test_code" >conftest.$ac_ext
13565eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13566_lt_linker_boilerplate=`cat conftest.err`
13567$rm conftest*
13568
13569
13570# Allow CC to be a program name with arguments.
13571lt_save_CC="$CC"
13572CC=${F77-"f77"}
13573compiler=$CC
13574compiler_F77=$CC
13575for cc_temp in $compiler""; do
13576  case $cc_temp in
13577    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13578    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13579    \-*) ;;
13580    *) break;;
13581  esac
13582done
13583cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13584
13585
13586echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13587echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13588echo "$as_me:$LINENO: result: $can_build_shared" >&5
13589echo "${ECHO_T}$can_build_shared" >&6
13590
13591echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13592echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13593test "$can_build_shared" = "no" && enable_shared=no
13594
13595# On AIX, shared libraries and static libraries use the same namespace, and
13596# are all built from PIC.
13597case $host_os in
13598aix3*)
13599  test "$enable_shared" = yes && enable_static=no
13600  if test -n "$RANLIB"; then
13601    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13602    postinstall_cmds='$RANLIB $lib'
13603  fi
13604  ;;
13605aix4* | aix5*)
13606  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13607    test "$enable_shared" = yes && enable_static=no
13608  fi
13609  ;;
13610esac
13611echo "$as_me:$LINENO: result: $enable_shared" >&5
13612echo "${ECHO_T}$enable_shared" >&6
13613
13614echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13615echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13616# Make sure either enable_shared or enable_static is yes.
13617test "$enable_shared" = yes || enable_static=yes
13618echo "$as_me:$LINENO: result: $enable_static" >&5
13619echo "${ECHO_T}$enable_static" >&6
13620
13621test "$ld_shlibs_F77" = no && can_build_shared=no
13622
13623GCC_F77="$G77"
13624LD_F77="$LD"
13625
13626lt_prog_compiler_wl_F77=
13627lt_prog_compiler_pic_F77=
13628lt_prog_compiler_static_F77=
13629
13630echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13631echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13632
13633  if test "$GCC" = yes; then
13634    lt_prog_compiler_wl_F77='-Wl,'
13635    lt_prog_compiler_static_F77='-static'
13636
13637    case $host_os in
13638      aix*)
13639      # All AIX code is PIC.
13640      if test "$host_cpu" = ia64; then
13641	# AIX 5 now supports IA64 processor
13642	lt_prog_compiler_static_F77='-Bstatic'
13643      fi
13644      ;;
13645
13646    amigaos*)
13647      # FIXME: we need at least 68020 code to build shared libraries, but
13648      # adding the `-m68020' flag to GCC prevents building anything better,
13649      # like `-m68040'.
13650      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13651      ;;
13652
13653    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13654      # PIC is the default for these OSes.
13655      ;;
13656
13657    mingw* | pw32* | os2*)
13658      # This hack is so that the source file can tell whether it is being
13659      # built for inclusion in a dll (and should export symbols for example).
13660      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13661      ;;
13662
13663    darwin* | rhapsody*)
13664      # PIC is the default on this platform
13665      # Common symbols not allowed in MH_DYLIB files
13666      lt_prog_compiler_pic_F77='-fno-common'
13667      ;;
13668
13669    msdosdjgpp*)
13670      # Just because we use GCC doesn't mean we suddenly get shared libraries
13671      # on systems that don't support them.
13672      lt_prog_compiler_can_build_shared_F77=no
13673      enable_shared=no
13674      ;;
13675
13676    sysv4*MP*)
13677      if test -d /usr/nec; then
13678	lt_prog_compiler_pic_F77=-Kconform_pic
13679      fi
13680      ;;
13681
13682    hpux*)
13683      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13684      # not for PA HP-UX.
13685      case $host_cpu in
13686      hppa*64*|ia64*)
13687	# +Z the default
13688	;;
13689      *)
13690	lt_prog_compiler_pic_F77='-fPIC'
13691	;;
13692      esac
13693      ;;
13694
13695    *)
13696      lt_prog_compiler_pic_F77='-fPIC'
13697      ;;
13698    esac
13699  else
13700    # PORTME Check for flag to pass linker flags through the system compiler.
13701    case $host_os in
13702    aix*)
13703      lt_prog_compiler_wl_F77='-Wl,'
13704      if test "$host_cpu" = ia64; then
13705	# AIX 5 now supports IA64 processor
13706	lt_prog_compiler_static_F77='-Bstatic'
13707      else
13708	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13709      fi
13710      ;;
13711      darwin*)
13712        # PIC is the default on this platform
13713        # Common symbols not allowed in MH_DYLIB files
13714       case $cc_basename in
13715         xlc*)
13716         lt_prog_compiler_pic_F77='-qnocommon'
13717         lt_prog_compiler_wl_F77='-Wl,'
13718         ;;
13719       esac
13720       ;;
13721
13722    mingw* | pw32* | os2*)
13723      # This hack is so that the source file can tell whether it is being
13724      # built for inclusion in a dll (and should export symbols for example).
13725      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13726      ;;
13727
13728    hpux9* | hpux10* | hpux11*)
13729      lt_prog_compiler_wl_F77='-Wl,'
13730      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13731      # not for PA HP-UX.
13732      case $host_cpu in
13733      hppa*64*|ia64*)
13734	# +Z the default
13735	;;
13736      *)
13737	lt_prog_compiler_pic_F77='+Z'
13738	;;
13739      esac
13740      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13741      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13742      ;;
13743
13744    irix5* | irix6* | nonstopux*)
13745      lt_prog_compiler_wl_F77='-Wl,'
13746      # PIC (with -KPIC) is the default.
13747      lt_prog_compiler_static_F77='-non_shared'
13748      ;;
13749
13750    newsos6)
13751      lt_prog_compiler_pic_F77='-KPIC'
13752      lt_prog_compiler_static_F77='-Bstatic'
13753      ;;
13754
13755    linux*)
13756      case $cc_basename in
13757      icc* | ecc*)
13758	lt_prog_compiler_wl_F77='-Wl,'
13759	lt_prog_compiler_pic_F77='-KPIC'
13760	lt_prog_compiler_static_F77='-static'
13761        ;;
13762      pgcc* | pgf77* | pgf90* | pgf95*)
13763        # Portland Group compilers (*not* the Pentium gcc compiler,
13764	# which looks to be a dead project)
13765	lt_prog_compiler_wl_F77='-Wl,'
13766	lt_prog_compiler_pic_F77='-fpic'
13767	lt_prog_compiler_static_F77='-Bstatic'
13768        ;;
13769      ccc*)
13770        lt_prog_compiler_wl_F77='-Wl,'
13771        # All Alpha code is PIC.
13772        lt_prog_compiler_static_F77='-non_shared'
13773        ;;
13774      esac
13775      ;;
13776
13777    osf3* | osf4* | osf5*)
13778      lt_prog_compiler_wl_F77='-Wl,'
13779      # All OSF/1 code is PIC.
13780      lt_prog_compiler_static_F77='-non_shared'
13781      ;;
13782
13783    sco3.2v5*)
13784      lt_prog_compiler_pic_F77='-Kpic'
13785      lt_prog_compiler_static_F77='-dn'
13786      ;;
13787
13788    solaris*)
13789      lt_prog_compiler_pic_F77='-KPIC'
13790      lt_prog_compiler_static_F77='-Bstatic'
13791      case $cc_basename in
13792      f77* | f90* | f95*)
13793	lt_prog_compiler_wl_F77='-Qoption ld ';;
13794      *)
13795	lt_prog_compiler_wl_F77='-Wl,';;
13796      esac
13797      ;;
13798
13799    sunos4*)
13800      lt_prog_compiler_wl_F77='-Qoption ld '
13801      lt_prog_compiler_pic_F77='-PIC'
13802      lt_prog_compiler_static_F77='-Bstatic'
13803      ;;
13804
13805    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13806      lt_prog_compiler_wl_F77='-Wl,'
13807      lt_prog_compiler_pic_F77='-KPIC'
13808      lt_prog_compiler_static_F77='-Bstatic'
13809      ;;
13810
13811    sysv4*MP*)
13812      if test -d /usr/nec ;then
13813	lt_prog_compiler_pic_F77='-Kconform_pic'
13814	lt_prog_compiler_static_F77='-Bstatic'
13815      fi
13816      ;;
13817
13818    unicos*)
13819      lt_prog_compiler_wl_F77='-Wl,'
13820      lt_prog_compiler_can_build_shared_F77=no
13821      ;;
13822
13823    uts4*)
13824      lt_prog_compiler_pic_F77='-pic'
13825      lt_prog_compiler_static_F77='-Bstatic'
13826      ;;
13827
13828    *)
13829      lt_prog_compiler_can_build_shared_F77=no
13830      ;;
13831    esac
13832  fi
13833
13834echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13835echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13836
13837#
13838# Check to make sure the PIC flag actually works.
13839#
13840if test -n "$lt_prog_compiler_pic_F77"; then
13841
13842echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13843echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13844if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13845  echo $ECHO_N "(cached) $ECHO_C" >&6
13846else
13847  lt_prog_compiler_pic_works_F77=no
13848  ac_outfile=conftest.$ac_objext
13849   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13850   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13851   # Insert the option either (1) after the last *FLAGS variable, or
13852   # (2) before a word containing "conftest.", or (3) at the end.
13853   # Note that $ac_compile itself does not contain backslashes and begins
13854   # with a dollar sign (not a hyphen), so the echo should work correctly.
13855   # The option is referenced via a variable to avoid confusing sed.
13856   lt_compile=`echo "$ac_compile" | $SED \
13857   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13858   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13859   -e 's:$: $lt_compiler_flag:'`
13860   (eval echo "\"\$as_me:13860: $lt_compile\"" >&5)
13861   (eval "$lt_compile" 2>conftest.err)
13862   ac_status=$?
13863   cat conftest.err >&5
13864   echo "$as_me:13864: \$? = $ac_status" >&5
13865   if (exit $ac_status) && test -s "$ac_outfile"; then
13866     # The compiler can only warn and ignore the option if not recognized
13867     # So say no if there are warnings other than the usual output.
13868     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13869     $SED '/^$/d' conftest.err >conftest.er2
13870     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13871       lt_prog_compiler_pic_works_F77=yes
13872     fi
13873   fi
13874   $rm conftest*
13875
13876fi
13877echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13878echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13879
13880if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13881    case $lt_prog_compiler_pic_F77 in
13882     "" | " "*) ;;
13883     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13884     esac
13885else
13886    lt_prog_compiler_pic_F77=
13887     lt_prog_compiler_can_build_shared_F77=no
13888fi
13889
13890fi
13891case $host_os in
13892  # For platforms which do not support PIC, -DPIC is meaningless:
13893  *djgpp*)
13894    lt_prog_compiler_pic_F77=
13895    ;;
13896  *)
13897    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13898    ;;
13899esac
13900
13901echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13902echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13903if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13904  echo $ECHO_N "(cached) $ECHO_C" >&6
13905else
13906  lt_cv_prog_compiler_c_o_F77=no
13907   $rm -r conftest 2>/dev/null
13908   mkdir conftest
13909   cd conftest
13910   mkdir out
13911   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13912
13913   lt_compiler_flag="-o out/conftest2.$ac_objext"
13914   # Insert the option either (1) after the last *FLAGS variable, or
13915   # (2) before a word containing "conftest.", or (3) at the end.
13916   # Note that $ac_compile itself does not contain backslashes and begins
13917   # with a dollar sign (not a hyphen), so the echo should work correctly.
13918   lt_compile=`echo "$ac_compile" | $SED \
13919   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13920   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13921   -e 's:$: $lt_compiler_flag:'`
13922   (eval echo "\"\$as_me:13922: $lt_compile\"" >&5)
13923   (eval "$lt_compile" 2>out/conftest.err)
13924   ac_status=$?
13925   cat out/conftest.err >&5
13926   echo "$as_me:13926: \$? = $ac_status" >&5
13927   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13928   then
13929     # The compiler can only warn and ignore the option if not recognized
13930     # So say no if there are warnings
13931     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13932     $SED '/^$/d' out/conftest.err >out/conftest.er2
13933     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13934       lt_cv_prog_compiler_c_o_F77=yes
13935     fi
13936   fi
13937   chmod u+w . 2>&5
13938   $rm conftest*
13939   # SGI C++ compiler will create directory out/ii_files/ for
13940   # template instantiation
13941   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13942   $rm out/* && rmdir out
13943   cd ..
13944   rmdir conftest
13945   $rm conftest*
13946
13947fi
13948echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13949echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13950
13951
13952hard_links="nottested"
13953if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13954  # do not overwrite the value of need_locks provided by the user
13955  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13956echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13957  hard_links=yes
13958  $rm conftest*
13959  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13960  touch conftest.a
13961  ln conftest.a conftest.b 2>&5 || hard_links=no
13962  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13963  echo "$as_me:$LINENO: result: $hard_links" >&5
13964echo "${ECHO_T}$hard_links" >&6
13965  if test "$hard_links" = no; then
13966    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13967echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13968    need_locks=warn
13969  fi
13970else
13971  need_locks=no
13972fi
13973
13974echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13975echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13976
13977  runpath_var=
13978  allow_undefined_flag_F77=
13979  enable_shared_with_static_runtimes_F77=no
13980  archive_cmds_F77=
13981  archive_expsym_cmds_F77=
13982  old_archive_From_new_cmds_F77=
13983  old_archive_from_expsyms_cmds_F77=
13984  export_dynamic_flag_spec_F77=
13985  whole_archive_flag_spec_F77=
13986  thread_safe_flag_spec_F77=
13987  hardcode_libdir_flag_spec_F77=
13988  hardcode_libdir_flag_spec_ld_F77=
13989  hardcode_libdir_separator_F77=
13990  hardcode_direct_F77=no
13991  hardcode_minus_L_F77=no
13992  hardcode_shlibpath_var_F77=unsupported
13993  link_all_deplibs_F77=unknown
13994  hardcode_automatic_F77=no
13995  module_cmds_F77=
13996  module_expsym_cmds_F77=
13997  always_export_symbols_F77=no
13998  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13999  # include_expsyms should be a list of space-separated symbols to be *always*
14000  # included in the symbol list
14001  include_expsyms_F77=
14002  # exclude_expsyms can be an extended regexp of symbols to exclude
14003  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14004  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14005  # as well as any symbol that contains `d'.
14006  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14007  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14008  # platforms (ab)use it in PIC code, but their linkers get confused if
14009  # the symbol is explicitly referenced.  Since portable code cannot
14010  # rely on this symbol name, it's probably fine to never include it in
14011  # preloaded symbol tables.
14012  extract_expsyms_cmds=
14013  # Just being paranoid about ensuring that cc_basename is set.
14014  for cc_temp in $compiler""; do
14015  case $cc_temp in
14016    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14017    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14018    \-*) ;;
14019    *) break;;
14020  esac
14021done
14022cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14023
14024  case $host_os in
14025  cygwin* | mingw* | pw32*)
14026    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14027    # When not using gcc, we currently assume that we are using
14028    # Microsoft Visual C++.
14029    if test "$GCC" != yes; then
14030      with_gnu_ld=no
14031    fi
14032    ;;
14033  openbsd*)
14034    with_gnu_ld=no
14035    ;;
14036  esac
14037
14038  ld_shlibs_F77=yes
14039  if test "$with_gnu_ld" = yes; then
14040    # If archive_cmds runs LD, not CC, wlarc should be empty
14041    wlarc='${wl}'
14042
14043    # Set some defaults for GNU ld with shared library support. These
14044    # are reset later if shared libraries are not supported. Putting them
14045    # here allows them to be overridden if necessary.
14046    runpath_var=LD_RUN_PATH
14047    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14048    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14049    # ancient GNU ld didn't support --whole-archive et. al.
14050    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14051	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14052      else
14053  	whole_archive_flag_spec_F77=
14054    fi
14055    supports_anon_versioning=no
14056    case `$LD -v 2>/dev/null` in
14057      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14058      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14059      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14060      *\ 2.11.*) ;; # other 2.11 versions
14061      *) supports_anon_versioning=yes ;;
14062    esac
14063
14064    # See if GNU ld supports shared libraries.
14065    case $host_os in
14066    aix3* | aix4* | aix5*)
14067      # On AIX/PPC, the GNU linker is very broken
14068      if test "$host_cpu" != ia64; then
14069	ld_shlibs_F77=no
14070	cat <<EOF 1>&2
14071
14072*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14073*** to be unable to reliably create shared libraries on AIX.
14074*** Therefore, libtool is disabling shared libraries support.  If you
14075*** really care for shared libraries, you may want to modify your PATH
14076*** so that a non-GNU linker is found, and then restart.
14077
14078EOF
14079      fi
14080      ;;
14081
14082    amigaos*)
14083      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)'
14084      hardcode_libdir_flag_spec_F77='-L$libdir'
14085      hardcode_minus_L_F77=yes
14086
14087      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14088      # that the semantics of dynamic libraries on AmigaOS, at least up
14089      # to version 4, is to share data among multiple programs linked
14090      # with the same dynamic library.  Since this doesn't match the
14091      # behavior of shared libraries on other platforms, we can't use
14092      # them.
14093      ld_shlibs_F77=no
14094      ;;
14095
14096    beos*)
14097      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14098	allow_undefined_flag_F77=unsupported
14099	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14100	# support --undefined.  This deserves some investigation.  FIXME
14101	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14102      else
14103	ld_shlibs_F77=no
14104      fi
14105      ;;
14106
14107    cygwin* | mingw* | pw32*)
14108      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14109      # as there is no search path for DLLs.
14110      hardcode_libdir_flag_spec_F77='-L$libdir'
14111      allow_undefined_flag_F77=unsupported
14112      always_export_symbols_F77=no
14113      enable_shared_with_static_runtimes_F77=yes
14114      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14115
14116      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14117        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14118	# If the export-symbols file already is a .def file (1st line
14119	# is EXPORTS), use it as is; otherwise, prepend...
14120	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14121	  cp $export_symbols $output_objdir/$soname.def;
14122	else
14123	  echo EXPORTS > $output_objdir/$soname.def;
14124	  cat $export_symbols >> $output_objdir/$soname.def;
14125	fi~
14126	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14127      else
14128	ld_shlibs_F77=no
14129      fi
14130      ;;
14131
14132    linux*)
14133      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14134	tmp_addflag=
14135	case $cc_basename,$host_cpu in
14136	pgcc*)				# Portland Group C compiler
14137	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14138	  tmp_addflag=' $pic_flag'
14139	  ;;
14140	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14141	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14142	  tmp_addflag=' $pic_flag -Mnomain' ;;
14143	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14144	  tmp_addflag=' -i_dynamic' ;;
14145	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14146	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14147	ifc* | ifort*)			# Intel Fortran compiler
14148	  tmp_addflag=' -nofor_main' ;;
14149	esac
14150	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14151
14152	if test $supports_anon_versioning = yes; then
14153	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14154  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14155  $echo "local: *; };" >> $output_objdir/$libname.ver~
14156	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14157	fi
14158      else
14159	ld_shlibs_F77=no
14160      fi
14161      ;;
14162
14163    netbsd*)
14164      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14165	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14166	wlarc=
14167      else
14168	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14169	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14170      fi
14171      ;;
14172
14173    solaris* | sysv5*)
14174      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14175	ld_shlibs_F77=no
14176	cat <<EOF 1>&2
14177
14178*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14179*** create shared libraries on Solaris systems.  Therefore, libtool
14180*** is disabling shared libraries support.  We urge you to upgrade GNU
14181*** binutils to release 2.9.1 or newer.  Another option is to modify
14182*** your PATH or compiler configuration so that the native linker is
14183*** used, and then restart.
14184
14185EOF
14186      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14187	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14188	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14189      else
14190	ld_shlibs_F77=no
14191      fi
14192      ;;
14193
14194    sunos4*)
14195      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14196      wlarc=
14197      hardcode_direct_F77=yes
14198      hardcode_shlibpath_var_F77=no
14199      ;;
14200
14201    *)
14202      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14203	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14204	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14205      else
14206	ld_shlibs_F77=no
14207      fi
14208      ;;
14209    esac
14210
14211    if test "$ld_shlibs_F77" = no; then
14212      runpath_var=
14213      hardcode_libdir_flag_spec_F77=
14214      export_dynamic_flag_spec_F77=
14215      whole_archive_flag_spec_F77=
14216    fi
14217  else
14218    # PORTME fill in a description of your system's linker (not GNU ld)
14219    case $host_os in
14220    aix3*)
14221      allow_undefined_flag_F77=unsupported
14222      always_export_symbols_F77=yes
14223      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'
14224      # Note: this linker hardcodes the directories in LIBPATH if there
14225      # are no directories specified by -L.
14226      hardcode_minus_L_F77=yes
14227      if test "$GCC" = yes && test -z "$link_static_flag"; then
14228	# Neither direct hardcoding nor static linking is supported with a
14229	# broken collect2.
14230	hardcode_direct_F77=unsupported
14231      fi
14232      ;;
14233
14234    aix4* | aix5*)
14235      if test "$host_cpu" = ia64; then
14236	# On IA64, the linker does run time linking by default, so we don't
14237	# have to do anything special.
14238	aix_use_runtimelinking=no
14239	exp_sym_flag='-Bexport'
14240	no_entry_flag=""
14241      else
14242	# If we're using GNU nm, then we don't want the "-C" option.
14243	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14244	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14245	  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'
14246	else
14247	  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'
14248	fi
14249	aix_use_runtimelinking=no
14250
14251	# Test if we are trying to use run time linking or normal
14252	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14253	# need to do runtime linking.
14254	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14255	  for ld_flag in $LDFLAGS; do
14256  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14257  	    aix_use_runtimelinking=yes
14258  	    break
14259  	  fi
14260	  done
14261	esac
14262
14263	exp_sym_flag='-bexport'
14264	no_entry_flag='-bnoentry'
14265      fi
14266
14267      # When large executables or shared objects are built, AIX ld can
14268      # have problems creating the table of contents.  If linking a library
14269      # or program results in "error TOC overflow" add -mminimal-toc to
14270      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14271      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14272
14273      archive_cmds_F77=''
14274      hardcode_direct_F77=yes
14275      hardcode_libdir_separator_F77=':'
14276      link_all_deplibs_F77=yes
14277
14278      if test "$GCC" = yes; then
14279	case $host_os in aix4.[012]|aix4.[012].*)
14280	# We only want to do this on AIX 4.2 and lower, the check
14281	# below for broken collect2 doesn't work under 4.3+
14282	  collect2name=`${CC} -print-prog-name=collect2`
14283	  if test -f "$collect2name" && \
14284  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14285	  then
14286  	  # We have reworked collect2
14287  	  hardcode_direct_F77=yes
14288	  else
14289  	  # We have old collect2
14290  	  hardcode_direct_F77=unsupported
14291  	  # It fails to find uninstalled libraries when the uninstalled
14292  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14293  	  # to unsupported forces relinking
14294  	  hardcode_minus_L_F77=yes
14295  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14296  	  hardcode_libdir_separator_F77=
14297	  fi
14298	esac
14299	shared_flag='-shared'
14300	if test "$aix_use_runtimelinking" = yes; then
14301	  shared_flag="$shared_flag "'${wl}-G'
14302	fi
14303      else
14304	# not using gcc
14305	if test "$host_cpu" = ia64; then
14306  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14307  	# chokes on -Wl,-G. The following line is correct:
14308	  shared_flag='-G'
14309	else
14310  	if test "$aix_use_runtimelinking" = yes; then
14311	    shared_flag='${wl}-G'
14312	  else
14313	    shared_flag='${wl}-bM:SRE'
14314  	fi
14315	fi
14316      fi
14317
14318      # It seems that -bexpall does not export symbols beginning with
14319      # underscore (_), so it is better to generate a list of symbols to export.
14320      always_export_symbols_F77=yes
14321      if test "$aix_use_runtimelinking" = yes; then
14322	# Warning - without using the other runtime loading flags (-brtl),
14323	# -berok will link without error, but may produce a broken library.
14324	allow_undefined_flag_F77='-berok'
14325       # Determine the default libpath from the value encoded in an empty executable.
14326       cat >conftest.$ac_ext <<_ACEOF
14327      program main
14328
14329      end
14330_ACEOF
14331rm -f conftest.$ac_objext conftest$ac_exeext
14332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14333  (eval $ac_link) 2>conftest.er1
14334  ac_status=$?
14335  grep -v '^ *+' conftest.er1 >conftest.err
14336  rm -f conftest.er1
14337  cat conftest.err >&5
14338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339  (exit $ac_status); } &&
14340	 { ac_try='test -z "$ac_f77_werror_flag"
14341			 || test ! -s conftest.err'
14342  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343  (eval $ac_try) 2>&5
14344  ac_status=$?
14345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346  (exit $ac_status); }; } &&
14347	 { ac_try='test -s conftest$ac_exeext'
14348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349  (eval $ac_try) 2>&5
14350  ac_status=$?
14351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352  (exit $ac_status); }; }; then
14353
14354aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14355}'`
14356# Check for a 64-bit object if we didn't find anything.
14357if 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; }
14358}'`; fi
14359else
14360  echo "$as_me: failed program was:" >&5
14361sed 's/^/| /' conftest.$ac_ext >&5
14362
14363fi
14364rm -f conftest.err conftest.$ac_objext \
14365      conftest$ac_exeext conftest.$ac_ext
14366if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14367
14368       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14369	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"
14370       else
14371	if test "$host_cpu" = ia64; then
14372	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14373	  allow_undefined_flag_F77="-z nodefs"
14374	  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"
14375	else
14376	 # Determine the default libpath from the value encoded in an empty executable.
14377	 cat >conftest.$ac_ext <<_ACEOF
14378      program main
14379
14380      end
14381_ACEOF
14382rm -f conftest.$ac_objext conftest$ac_exeext
14383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14384  (eval $ac_link) 2>conftest.er1
14385  ac_status=$?
14386  grep -v '^ *+' conftest.er1 >conftest.err
14387  rm -f conftest.er1
14388  cat conftest.err >&5
14389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390  (exit $ac_status); } &&
14391	 { ac_try='test -z "$ac_f77_werror_flag"
14392			 || test ! -s conftest.err'
14393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394  (eval $ac_try) 2>&5
14395  ac_status=$?
14396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397  (exit $ac_status); }; } &&
14398	 { ac_try='test -s conftest$ac_exeext'
14399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400  (eval $ac_try) 2>&5
14401  ac_status=$?
14402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403  (exit $ac_status); }; }; then
14404
14405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14406}'`
14407# Check for a 64-bit object if we didn't find anything.
14408if 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; }
14409}'`; fi
14410else
14411  echo "$as_me: failed program was:" >&5
14412sed 's/^/| /' conftest.$ac_ext >&5
14413
14414fi
14415rm -f conftest.err conftest.$ac_objext \
14416      conftest$ac_exeext conftest.$ac_ext
14417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14418
14419	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14420	  # Warning - without using the other run time loading flags,
14421	  # -berok will link without error, but may produce a broken library.
14422	  no_undefined_flag_F77=' ${wl}-bernotok'
14423	  allow_undefined_flag_F77=' ${wl}-berok'
14424	  # -bexpall does not export symbols beginning with underscore (_)
14425	  always_export_symbols_F77=yes
14426	  # Exported symbols can be pulled into shared objects from archives
14427	  whole_archive_flag_spec_F77=' '
14428	  archive_cmds_need_lc_F77=yes
14429	  # This is similar to how AIX traditionally builds its shared libraries.
14430	  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'
14431	fi
14432      fi
14433      ;;
14434
14435    amigaos*)
14436      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)'
14437      hardcode_libdir_flag_spec_F77='-L$libdir'
14438      hardcode_minus_L_F77=yes
14439      # see comment about different semantics on the GNU ld section
14440      ld_shlibs_F77=no
14441      ;;
14442
14443    bsdi[45]*)
14444      export_dynamic_flag_spec_F77=-rdynamic
14445      ;;
14446
14447    cygwin* | mingw* | pw32*)
14448      # When not using gcc, we currently assume that we are using
14449      # Microsoft Visual C++.
14450      # hardcode_libdir_flag_spec is actually meaningless, as there is
14451      # no search path for DLLs.
14452      hardcode_libdir_flag_spec_F77=' '
14453      allow_undefined_flag_F77=unsupported
14454      # Tell ltmain to make .lib files, not .a files.
14455      libext=lib
14456      # Tell ltmain to make .dll files, not .so files.
14457      shrext_cmds=".dll"
14458      # FIXME: Setting linknames here is a bad hack.
14459      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14460      # The linker will automatically build a .lib file if we build a DLL.
14461      old_archive_From_new_cmds_F77='true'
14462      # FIXME: Should let the user specify the lib program.
14463      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14464      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14465      enable_shared_with_static_runtimes_F77=yes
14466      ;;
14467
14468    darwin* | rhapsody*)
14469      case $host_os in
14470        rhapsody* | darwin1.[012])
14471         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14472         ;;
14473       *) # Darwin 1.3 on
14474         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14475           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14476         else
14477           case ${MACOSX_DEPLOYMENT_TARGET} in
14478             10.[012])
14479               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14480               ;;
14481             10.*)
14482               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14483               ;;
14484           esac
14485         fi
14486         ;;
14487      esac
14488      archive_cmds_need_lc_F77=no
14489      hardcode_direct_F77=no
14490      hardcode_automatic_F77=yes
14491      hardcode_shlibpath_var_F77=unsupported
14492      whole_archive_flag_spec_F77=''
14493      link_all_deplibs_F77=yes
14494    if test "$GCC" = yes ; then
14495    	output_verbose_link_cmd='echo'
14496        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14497      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14498      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14499      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}'
14500      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}'
14501    else
14502      case $cc_basename in
14503        xlc*)
14504         output_verbose_link_cmd='echo'
14505         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14506         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14507          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14508         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}'
14509          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}'
14510          ;;
14511       *)
14512         ld_shlibs_F77=no
14513          ;;
14514      esac
14515    fi
14516      ;;
14517
14518    dgux*)
14519      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14520      hardcode_libdir_flag_spec_F77='-L$libdir'
14521      hardcode_shlibpath_var_F77=no
14522      ;;
14523
14524    freebsd1*)
14525      ld_shlibs_F77=no
14526      ;;
14527
14528    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14529    # support.  Future versions do this automatically, but an explicit c++rt0.o
14530    # does not break anything, and helps significantly (at the cost of a little
14531    # extra space).
14532    freebsd2.2*)
14533      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14534      hardcode_libdir_flag_spec_F77='-R$libdir'
14535      hardcode_direct_F77=yes
14536      hardcode_shlibpath_var_F77=no
14537      ;;
14538
14539    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14540    freebsd2*)
14541      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14542      hardcode_direct_F77=yes
14543      hardcode_minus_L_F77=yes
14544      hardcode_shlibpath_var_F77=no
14545      ;;
14546
14547    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14548    freebsd* | kfreebsd*-gnu | dragonfly*)
14549      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14550      hardcode_libdir_flag_spec_F77='-R$libdir'
14551      hardcode_direct_F77=yes
14552      hardcode_shlibpath_var_F77=no
14553      ;;
14554
14555    hpux9*)
14556      if test "$GCC" = yes; then
14557	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'
14558      else
14559	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'
14560      fi
14561      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14562      hardcode_libdir_separator_F77=:
14563      hardcode_direct_F77=yes
14564
14565      # hardcode_minus_L: Not really in the search PATH,
14566      # but as the default location of the library.
14567      hardcode_minus_L_F77=yes
14568      export_dynamic_flag_spec_F77='${wl}-E'
14569      ;;
14570
14571    hpux10* | hpux11*)
14572      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14573	case $host_cpu in
14574	hppa*64*|ia64*)
14575	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14576	  ;;
14577	*)
14578	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14579	  ;;
14580	esac
14581      else
14582	case $host_cpu in
14583	hppa*64*|ia64*)
14584	  archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14585	  ;;
14586	*)
14587	  archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14588	  ;;
14589	esac
14590      fi
14591      if test "$with_gnu_ld" = no; then
14592	case $host_cpu in
14593	hppa*64*)
14594	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14595	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14596	  hardcode_libdir_separator_F77=:
14597	  hardcode_direct_F77=no
14598	  hardcode_shlibpath_var_F77=no
14599	  ;;
14600	ia64*)
14601	  hardcode_libdir_flag_spec_F77='-L$libdir'
14602	  hardcode_direct_F77=no
14603	  hardcode_shlibpath_var_F77=no
14604
14605	  # hardcode_minus_L: Not really in the search PATH,
14606	  # but as the default location of the library.
14607	  hardcode_minus_L_F77=yes
14608	  ;;
14609	*)
14610	  hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14611	  hardcode_libdir_separator_F77=:
14612	  hardcode_direct_F77=yes
14613	  export_dynamic_flag_spec_F77='${wl}-E'
14614
14615	  # hardcode_minus_L: Not really in the search PATH,
14616	  # but as the default location of the library.
14617	  hardcode_minus_L_F77=yes
14618	  ;;
14619	esac
14620      fi
14621      ;;
14622
14623    irix5* | irix6* | nonstopux*)
14624      if test "$GCC" = yes; then
14625	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'
14626      else
14627	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'
14628	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14629      fi
14630      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14631      hardcode_libdir_separator_F77=:
14632      link_all_deplibs_F77=yes
14633      ;;
14634
14635    netbsd*)
14636      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14637	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14638      else
14639	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14640      fi
14641      hardcode_libdir_flag_spec_F77='-R$libdir'
14642      hardcode_direct_F77=yes
14643      hardcode_shlibpath_var_F77=no
14644      ;;
14645
14646    newsos6)
14647      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14648      hardcode_direct_F77=yes
14649      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14650      hardcode_libdir_separator_F77=:
14651      hardcode_shlibpath_var_F77=no
14652      ;;
14653
14654    openbsd*)
14655      hardcode_direct_F77=yes
14656      hardcode_shlibpath_var_F77=no
14657      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14658	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14659	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14660	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14661	export_dynamic_flag_spec_F77='${wl}-E'
14662      else
14663       case $host_os in
14664	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14665	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14666	   hardcode_libdir_flag_spec_F77='-R$libdir'
14667	   ;;
14668	 *)
14669	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14670	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14671	   ;;
14672       esac
14673      fi
14674      ;;
14675
14676    os2*)
14677      hardcode_libdir_flag_spec_F77='-L$libdir'
14678      hardcode_minus_L_F77=yes
14679      allow_undefined_flag_F77=unsupported
14680      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'
14681      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14682      ;;
14683
14684    osf3*)
14685      if test "$GCC" = yes; then
14686	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14687	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'
14688      else
14689	allow_undefined_flag_F77=' -expect_unresolved \*'
14690	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'
14691      fi
14692      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14693      hardcode_libdir_separator_F77=:
14694      ;;
14695
14696    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14697      if test "$GCC" = yes; then
14698	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14699	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'
14700	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14701      else
14702	allow_undefined_flag_F77=' -expect_unresolved \*'
14703	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'
14704	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~
14705	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14706
14707	# Both c and cxx compiler support -rpath directly
14708	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14709      fi
14710      hardcode_libdir_separator_F77=:
14711      ;;
14712
14713    sco3.2v5*)
14714      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14715      hardcode_shlibpath_var_F77=no
14716      export_dynamic_flag_spec_F77='${wl}-Bexport'
14717      runpath_var=LD_RUN_PATH
14718      hardcode_runpath_var=yes
14719      ;;
14720
14721    solaris*)
14722      no_undefined_flag_F77=' -z text'
14723      if test "$GCC" = yes; then
14724	wlarc='${wl}'
14725	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14726	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14727	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14728      else
14729	wlarc=''
14730	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14731	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14732  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14733      fi
14734      hardcode_libdir_flag_spec_F77='-R$libdir'
14735      hardcode_shlibpath_var_F77=no
14736      case $host_os in
14737      solaris2.[0-5] | solaris2.[0-5].*) ;;
14738      *)
14739 	# The compiler driver will combine linker options so we
14740 	# cannot just pass the convience library names through
14741 	# without $wl, iff we do not link with $LD.
14742 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14743 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14744 	case $wlarc in
14745 	'')
14746 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14747 	*)
14748 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14749 	esac ;;
14750      esac
14751      link_all_deplibs_F77=yes
14752      ;;
14753
14754    sunos4*)
14755      if test "x$host_vendor" = xsequent; then
14756	# Use $CC to link under sequent, because it throws in some extra .o
14757	# files that make .init and .fini sections work.
14758	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14759      else
14760	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14761      fi
14762      hardcode_libdir_flag_spec_F77='-L$libdir'
14763      hardcode_direct_F77=yes
14764      hardcode_minus_L_F77=yes
14765      hardcode_shlibpath_var_F77=no
14766      ;;
14767
14768    sysv4)
14769      case $host_vendor in
14770	sni)
14771	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14772	  hardcode_direct_F77=yes # is this really true???
14773	;;
14774	siemens)
14775	  ## LD is ld it makes a PLAMLIB
14776	  ## CC just makes a GrossModule.
14777	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14778	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14779	  hardcode_direct_F77=no
14780        ;;
14781	motorola)
14782	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14784	;;
14785      esac
14786      runpath_var='LD_RUN_PATH'
14787      hardcode_shlibpath_var_F77=no
14788      ;;
14789
14790    sysv4.3*)
14791      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14792      hardcode_shlibpath_var_F77=no
14793      export_dynamic_flag_spec_F77='-Bexport'
14794      ;;
14795
14796    sysv4*MP*)
14797      if test -d /usr/nec; then
14798	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14799	hardcode_shlibpath_var_F77=no
14800	runpath_var=LD_RUN_PATH
14801	hardcode_runpath_var=yes
14802	ld_shlibs_F77=yes
14803      fi
14804      ;;
14805
14806    sysv4.2uw2*)
14807      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14808      hardcode_direct_F77=yes
14809      hardcode_minus_L_F77=no
14810      hardcode_shlibpath_var_F77=no
14811      hardcode_runpath_var=yes
14812      runpath_var=LD_RUN_PATH
14813      ;;
14814
14815   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14816      no_undefined_flag_F77='${wl}-z ${wl}text'
14817      if test "$GCC" = yes; then
14818	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14819      else
14820	archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14821      fi
14822      runpath_var='LD_RUN_PATH'
14823      hardcode_shlibpath_var_F77=no
14824      ;;
14825
14826    sysv5*)
14827      no_undefined_flag_F77=' -z text'
14828      # $CC -shared without GNU ld will not create a library from C++
14829      # object files and a static libstdc++, better avoid it by now
14830      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14831      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14832  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14833      hardcode_libdir_flag_spec_F77=
14834      hardcode_shlibpath_var_F77=no
14835      runpath_var='LD_RUN_PATH'
14836      ;;
14837
14838    uts4*)
14839      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14840      hardcode_libdir_flag_spec_F77='-L$libdir'
14841      hardcode_shlibpath_var_F77=no
14842      ;;
14843
14844    *)
14845      ld_shlibs_F77=no
14846      ;;
14847    esac
14848  fi
14849
14850echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14851echo "${ECHO_T}$ld_shlibs_F77" >&6
14852test "$ld_shlibs_F77" = no && can_build_shared=no
14853
14854variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14855if test "$GCC" = yes; then
14856  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14857fi
14858
14859#
14860# Do we need to explicitly link libc?
14861#
14862case "x$archive_cmds_need_lc_F77" in
14863x|xyes)
14864  # Assume -lc should be added
14865  archive_cmds_need_lc_F77=yes
14866
14867  if test "$enable_shared" = yes && test "$GCC" = yes; then
14868    case $archive_cmds_F77 in
14869    *'~'*)
14870      # FIXME: we may have to deal with multi-command sequences.
14871      ;;
14872    '$CC '*)
14873      # Test whether the compiler implicitly links with -lc since on some
14874      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14875      # to ld, don't add -lc before -lgcc.
14876      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14877echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14878      $rm conftest*
14879      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14880
14881      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14882  (eval $ac_compile) 2>&5
14883  ac_status=$?
14884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885  (exit $ac_status); } 2>conftest.err; then
14886        soname=conftest
14887        lib=conftest
14888        libobjs=conftest.$ac_objext
14889        deplibs=
14890        wl=$lt_prog_compiler_wl_F77
14891        compiler_flags=-v
14892        linker_flags=-v
14893        verstring=
14894        output_objdir=.
14895        libname=conftest
14896        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14897        allow_undefined_flag_F77=
14898        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14899  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14900  ac_status=$?
14901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902  (exit $ac_status); }
14903        then
14904	  archive_cmds_need_lc_F77=no
14905        else
14906	  archive_cmds_need_lc_F77=yes
14907        fi
14908        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14909      else
14910        cat conftest.err 1>&5
14911      fi
14912      $rm conftest*
14913      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14914echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14915      ;;
14916    esac
14917  fi
14918  ;;
14919esac
14920
14921echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14922echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14923library_names_spec=
14924libname_spec='lib$name'
14925soname_spec=
14926shrext_cmds=".so"
14927postinstall_cmds=
14928postuninstall_cmds=
14929finish_cmds=
14930finish_eval=
14931shlibpath_var=
14932shlibpath_overrides_runpath=unknown
14933version_type=none
14934dynamic_linker="$host_os ld.so"
14935sys_lib_dlsearch_path_spec="/lib /usr/lib"
14936if test "$GCC" = yes; then
14937  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14938  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14939    # if the path contains ";" then we assume it to be the separator
14940    # otherwise default to the standard path separator (i.e. ":") - it is
14941    # assumed that no part of a normal pathname contains ";" but that should
14942    # okay in the real world where ";" in dirpaths is itself problematic.
14943    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14944  else
14945    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14946  fi
14947else
14948  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14949fi
14950need_lib_prefix=unknown
14951hardcode_into_libs=no
14952
14953# when you set need_version to no, make sure it does not cause -set_version
14954# flags to be left without arguments
14955need_version=unknown
14956
14957case $host_os in
14958aix3*)
14959  version_type=linux
14960  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14961  shlibpath_var=LIBPATH
14962
14963  # AIX 3 has no versioning support, so we append a major version to the name.
14964  soname_spec='${libname}${release}${shared_ext}$major'
14965  ;;
14966
14967aix4* | aix5*)
14968  version_type=linux
14969  need_lib_prefix=no
14970  need_version=no
14971  hardcode_into_libs=yes
14972  if test "$host_cpu" = ia64; then
14973    # AIX 5 supports IA64
14974    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14975    shlibpath_var=LD_LIBRARY_PATH
14976  else
14977    # With GCC up to 2.95.x, collect2 would create an import file
14978    # for dependence libraries.  The import file would start with
14979    # the line `#! .'.  This would cause the generated library to
14980    # depend on `.', always an invalid library.  This was fixed in
14981    # development snapshots of GCC prior to 3.0.
14982    case $host_os in
14983      aix4 | aix4.[01] | aix4.[01].*)
14984      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14985	   echo ' yes '
14986	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14987	:
14988      else
14989	can_build_shared=no
14990      fi
14991      ;;
14992    esac
14993    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14994    # soname into executable. Probably we can add versioning support to
14995    # collect2, so additional links can be useful in future.
14996    if test "$aix_use_runtimelinking" = yes; then
14997      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14998      # instead of lib<name>.a to let people know that these are not
14999      # typical AIX shared libraries.
15000      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001    else
15002      # We preserve .a as extension for shared libraries through AIX4.2
15003      # and later when we are not doing run time linking.
15004      library_names_spec='${libname}${release}.a $libname.a'
15005      soname_spec='${libname}${release}${shared_ext}$major'
15006    fi
15007    shlibpath_var=LIBPATH
15008  fi
15009  ;;
15010
15011amigaos*)
15012  library_names_spec='$libname.ixlibrary $libname.a'
15013  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15014  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'
15015  ;;
15016
15017beos*)
15018  library_names_spec='${libname}${shared_ext}'
15019  dynamic_linker="$host_os ld.so"
15020  shlibpath_var=LIBRARY_PATH
15021  ;;
15022
15023bsdi[45]*)
15024  version_type=linux
15025  need_version=no
15026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027  soname_spec='${libname}${release}${shared_ext}$major'
15028  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15029  shlibpath_var=LD_LIBRARY_PATH
15030  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15031  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15032  # the default ld.so.conf also contains /usr/contrib/lib and
15033  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15034  # libtool to hard-code these into programs
15035  ;;
15036
15037cygwin* | mingw* | pw32*)
15038  version_type=windows
15039  shrext_cmds=".dll"
15040  need_version=no
15041  need_lib_prefix=no
15042
15043  case $GCC,$host_os in
15044  yes,cygwin* | yes,mingw* | yes,pw32*)
15045    library_names_spec='$libname.dll.a'
15046    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15047    postinstall_cmds='base_file=`basename \${file}`~
15048      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15049      dldir=$destdir/`dirname \$dlpath`~
15050      test -d \$dldir || mkdir -p \$dldir~
15051      $install_prog $dir/$dlname \$dldir/$dlname~
15052      chmod a+x \$dldir/$dlname'
15053    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15054      dlpath=$dir/\$dldll~
15055       $rm \$dlpath'
15056    shlibpath_overrides_runpath=yes
15057
15058    case $host_os in
15059    cygwin*)
15060      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15061      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15062      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15063      ;;
15064    mingw*)
15065      # MinGW DLLs use traditional 'lib' prefix
15066      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15067      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15068      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15069        # It is most probably a Windows format PATH printed by
15070        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15071        # path with ; separators, and with drive letters. We can handle the
15072        # drive letters (cygwin fileutils understands them), so leave them,
15073        # especially as we might pass files found there to a mingw objdump,
15074        # which wouldn't understand a cygwinified path. Ahh.
15075        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15076      else
15077        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15078      fi
15079      ;;
15080    pw32*)
15081      # pw32 DLLs use 'pw' prefix rather than 'lib'
15082      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15083      ;;
15084    esac
15085    ;;
15086
15087  *)
15088    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15089    ;;
15090  esac
15091  dynamic_linker='Win32 ld.exe'
15092  # FIXME: first we should search . and the directory the executable is in
15093  shlibpath_var=PATH
15094  ;;
15095
15096darwin* | rhapsody*)
15097  dynamic_linker="$host_os dyld"
15098  version_type=darwin
15099  need_lib_prefix=no
15100  need_version=no
15101  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15102  soname_spec='${libname}${release}${major}$shared_ext'
15103  shlibpath_overrides_runpath=yes
15104  shlibpath_var=DYLD_LIBRARY_PATH
15105  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15106  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15107  if test "$GCC" = yes; then
15108    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"`
15109  else
15110    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15111  fi
15112  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15113  ;;
15114
15115dgux*)
15116  version_type=linux
15117  need_lib_prefix=no
15118  need_version=no
15119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15120  soname_spec='${libname}${release}${shared_ext}$major'
15121  shlibpath_var=LD_LIBRARY_PATH
15122  ;;
15123
15124freebsd1*)
15125  dynamic_linker=no
15126  ;;
15127
15128kfreebsd*-gnu)
15129  version_type=linux
15130  need_lib_prefix=no
15131  need_version=no
15132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15133  soname_spec='${libname}${release}${shared_ext}$major'
15134  shlibpath_var=LD_LIBRARY_PATH
15135  shlibpath_overrides_runpath=no
15136  hardcode_into_libs=yes
15137  dynamic_linker='GNU ld.so'
15138  ;;
15139
15140freebsd* | dragonfly*)
15141  # DragonFly does not have aout.  When/if they implement a new
15142  # versioning mechanism, adjust this.
15143  if test -x /usr/bin/objformat; then
15144    objformat=`/usr/bin/objformat`
15145  else
15146    case $host_os in
15147    freebsd[123]*) objformat=aout ;;
15148    *) objformat=elf ;;
15149    esac
15150  fi
15151  version_type=freebsd-$objformat
15152  case $version_type in
15153    freebsd-elf*)
15154      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15155      need_version=no
15156      need_lib_prefix=no
15157      ;;
15158    freebsd-*)
15159      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15160      need_version=yes
15161      ;;
15162  esac
15163  shlibpath_var=LD_LIBRARY_PATH
15164  case $host_os in
15165  freebsd2*)
15166    shlibpath_overrides_runpath=yes
15167    ;;
15168  freebsd3.[01]* | freebsdelf3.[01]*)
15169    shlibpath_overrides_runpath=yes
15170    hardcode_into_libs=yes
15171    ;;
15172  *) # from 3.2 on
15173    shlibpath_overrides_runpath=no
15174    hardcode_into_libs=yes
15175    ;;
15176  esac
15177  ;;
15178
15179gnu*)
15180  version_type=linux
15181  need_lib_prefix=no
15182  need_version=no
15183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15184  soname_spec='${libname}${release}${shared_ext}$major'
15185  shlibpath_var=LD_LIBRARY_PATH
15186  hardcode_into_libs=yes
15187  ;;
15188
15189hpux9* | hpux10* | hpux11*)
15190  # Give a soname corresponding to the major version so that dld.sl refuses to
15191  # link against other versions.
15192  version_type=sunos
15193  need_lib_prefix=no
15194  need_version=no
15195  case $host_cpu in
15196  ia64*)
15197    shrext_cmds='.so'
15198    hardcode_into_libs=yes
15199    dynamic_linker="$host_os dld.so"
15200    shlibpath_var=LD_LIBRARY_PATH
15201    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15202    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203    soname_spec='${libname}${release}${shared_ext}$major'
15204    if test "X$HPUX_IA64_MODE" = X32; then
15205      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15206    else
15207      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15208    fi
15209    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15210    ;;
15211   hppa*64*)
15212     shrext_cmds='.sl'
15213     hardcode_into_libs=yes
15214     dynamic_linker="$host_os dld.sl"
15215     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15216     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218     soname_spec='${libname}${release}${shared_ext}$major'
15219     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15220     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15221     ;;
15222   *)
15223    shrext_cmds='.sl'
15224    dynamic_linker="$host_os dld.sl"
15225    shlibpath_var=SHLIB_PATH
15226    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15227    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228    soname_spec='${libname}${release}${shared_ext}$major'
15229    ;;
15230  esac
15231  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15232  postinstall_cmds='chmod 555 $lib'
15233  ;;
15234
15235irix5* | irix6* | nonstopux*)
15236  case $host_os in
15237    nonstopux*) version_type=nonstopux ;;
15238    *)
15239	if test "$lt_cv_prog_gnu_ld" = yes; then
15240		version_type=linux
15241	else
15242		version_type=irix
15243	fi ;;
15244  esac
15245  need_lib_prefix=no
15246  need_version=no
15247  soname_spec='${libname}${release}${shared_ext}$major'
15248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15249  case $host_os in
15250  irix5* | nonstopux*)
15251    libsuff= shlibsuff=
15252    ;;
15253  *)
15254    case $LD in # libtool.m4 will add one of these switches to LD
15255    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15256      libsuff= shlibsuff= libmagic=32-bit;;
15257    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15258      libsuff=32 shlibsuff=N32 libmagic=N32;;
15259    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15260      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15261    *) libsuff= shlibsuff= libmagic=never-match;;
15262    esac
15263    ;;
15264  esac
15265  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15266  shlibpath_overrides_runpath=no
15267  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15268  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15269  hardcode_into_libs=yes
15270  ;;
15271
15272# No shared lib support for Linux oldld, aout, or coff.
15273linux*oldld* | linux*aout* | linux*coff*)
15274  dynamic_linker=no
15275  ;;
15276
15277# This must be Linux ELF.
15278linux*)
15279  version_type=linux
15280  need_lib_prefix=no
15281  need_version=no
15282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283  soname_spec='${libname}${release}${shared_ext}$major'
15284  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15285  shlibpath_var=LD_LIBRARY_PATH
15286  shlibpath_overrides_runpath=no
15287  # This implies no fast_install, which is unacceptable.
15288  # Some rework will be needed to allow for fast_install
15289  # before this can be enabled.
15290  hardcode_into_libs=yes
15291
15292  # Append ld.so.conf contents to the search path
15293  if test -f /etc/ld.so.conf; then
15294    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15295    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15296  fi
15297
15298  # We used to test for /lib/ld.so.1 and disable shared libraries on
15299  # powerpc, because MkLinux only supported shared libraries with the
15300  # GNU dynamic linker.  Since this was broken with cross compilers,
15301  # most powerpc-linux boxes support dynamic linking these days and
15302  # people can always --disable-shared, the test was removed, and we
15303  # assume the GNU/Linux dynamic linker is in use.
15304  dynamic_linker='GNU/Linux ld.so'
15305  ;;
15306
15307knetbsd*-gnu)
15308  version_type=linux
15309  need_lib_prefix=no
15310  need_version=no
15311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15312  soname_spec='${libname}${release}${shared_ext}$major'
15313  shlibpath_var=LD_LIBRARY_PATH
15314  shlibpath_overrides_runpath=no
15315  hardcode_into_libs=yes
15316  dynamic_linker='GNU ld.so'
15317  ;;
15318
15319netbsd*)
15320  version_type=sunos
15321  need_lib_prefix=no
15322  need_version=no
15323  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15324    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15325    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15326    dynamic_linker='NetBSD (a.out) ld.so'
15327  else
15328    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15329    soname_spec='${libname}${release}${shared_ext}$major'
15330    dynamic_linker='NetBSD ld.elf_so'
15331  fi
15332  shlibpath_var=LD_LIBRARY_PATH
15333  shlibpath_overrides_runpath=yes
15334  hardcode_into_libs=yes
15335  ;;
15336
15337newsos6)
15338  version_type=linux
15339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340  shlibpath_var=LD_LIBRARY_PATH
15341  shlibpath_overrides_runpath=yes
15342  ;;
15343
15344nto-qnx*)
15345  version_type=linux
15346  need_lib_prefix=no
15347  need_version=no
15348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349  soname_spec='${libname}${release}${shared_ext}$major'
15350  shlibpath_var=LD_LIBRARY_PATH
15351  shlibpath_overrides_runpath=yes
15352  ;;
15353
15354openbsd*)
15355  version_type=sunos
15356  need_lib_prefix=no
15357  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15358  case $host_os in
15359    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15360    *)                         need_version=no  ;;
15361  esac
15362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15363  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15364  shlibpath_var=LD_LIBRARY_PATH
15365  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15366    case $host_os in
15367      openbsd2.[89] | openbsd2.[89].*)
15368	shlibpath_overrides_runpath=no
15369	;;
15370      *)
15371	shlibpath_overrides_runpath=yes
15372	;;
15373      esac
15374  else
15375    shlibpath_overrides_runpath=yes
15376  fi
15377  ;;
15378
15379os2*)
15380  libname_spec='$name'
15381  shrext_cmds=".dll"
15382  need_lib_prefix=no
15383  library_names_spec='$libname${shared_ext} $libname.a'
15384  dynamic_linker='OS/2 ld.exe'
15385  shlibpath_var=LIBPATH
15386  ;;
15387
15388osf3* | osf4* | osf5*)
15389  version_type=osf
15390  need_lib_prefix=no
15391  need_version=no
15392  soname_spec='${libname}${release}${shared_ext}$major'
15393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394  shlibpath_var=LD_LIBRARY_PATH
15395  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15396  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15397  ;;
15398
15399sco3.2v5*)
15400  version_type=osf
15401  soname_spec='${libname}${release}${shared_ext}$major'
15402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15403  shlibpath_var=LD_LIBRARY_PATH
15404  ;;
15405
15406solaris*)
15407  version_type=linux
15408  need_lib_prefix=no
15409  need_version=no
15410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15411  soname_spec='${libname}${release}${shared_ext}$major'
15412  shlibpath_var=LD_LIBRARY_PATH
15413  shlibpath_overrides_runpath=yes
15414  hardcode_into_libs=yes
15415  # ldd complains unless libraries are executable
15416  postinstall_cmds='chmod +x $lib'
15417  ;;
15418
15419sunos4*)
15420  version_type=sunos
15421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15422  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15423  shlibpath_var=LD_LIBRARY_PATH
15424  shlibpath_overrides_runpath=yes
15425  if test "$with_gnu_ld" = yes; then
15426    need_lib_prefix=no
15427  fi
15428  need_version=yes
15429  ;;
15430
15431sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15432  version_type=linux
15433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434  soname_spec='${libname}${release}${shared_ext}$major'
15435  shlibpath_var=LD_LIBRARY_PATH
15436  case $host_vendor in
15437    sni)
15438      shlibpath_overrides_runpath=no
15439      need_lib_prefix=no
15440      export_dynamic_flag_spec='${wl}-Blargedynsym'
15441      runpath_var=LD_RUN_PATH
15442      ;;
15443    siemens)
15444      need_lib_prefix=no
15445      ;;
15446    motorola)
15447      need_lib_prefix=no
15448      need_version=no
15449      shlibpath_overrides_runpath=no
15450      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15451      ;;
15452  esac
15453  ;;
15454
15455sysv4*MP*)
15456  if test -d /usr/nec ;then
15457    version_type=linux
15458    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15459    soname_spec='$libname${shared_ext}.$major'
15460    shlibpath_var=LD_LIBRARY_PATH
15461  fi
15462  ;;
15463
15464uts4*)
15465  version_type=linux
15466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467  soname_spec='${libname}${release}${shared_ext}$major'
15468  shlibpath_var=LD_LIBRARY_PATH
15469  ;;
15470
15471*)
15472  dynamic_linker=no
15473  ;;
15474esac
15475echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15476echo "${ECHO_T}$dynamic_linker" >&6
15477test "$dynamic_linker" = no && can_build_shared=no
15478
15479echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15480echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15481hardcode_action_F77=
15482if test -n "$hardcode_libdir_flag_spec_F77" || \
15483   test -n "$runpath_var_F77" || \
15484   test "X$hardcode_automatic_F77" = "Xyes" ; then
15485
15486  # We can hardcode non-existant directories.
15487  if test "$hardcode_direct_F77" != no &&
15488     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15489     # have to relink, otherwise we might link with an installed library
15490     # when we should be linking with a yet-to-be-installed one
15491     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15492     test "$hardcode_minus_L_F77" != no; then
15493    # Linking always hardcodes the temporary library directory.
15494    hardcode_action_F77=relink
15495  else
15496    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15497    hardcode_action_F77=immediate
15498  fi
15499else
15500  # We cannot hardcode anything, or else we can only hardcode existing
15501  # directories.
15502  hardcode_action_F77=unsupported
15503fi
15504echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15505echo "${ECHO_T}$hardcode_action_F77" >&6
15506
15507if test "$hardcode_action_F77" = relink; then
15508  # Fast installation is not supported
15509  enable_fast_install=no
15510elif test "$shlibpath_overrides_runpath" = yes ||
15511     test "$enable_shared" = no; then
15512  # Fast installation is not necessary
15513  enable_fast_install=needless
15514fi
15515
15516striplib=
15517old_striplib=
15518echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15519echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15520if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15521  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15522  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15523  echo "$as_me:$LINENO: result: yes" >&5
15524echo "${ECHO_T}yes" >&6
15525else
15526# FIXME - insert some real tests, host_os isn't really good enough
15527  case $host_os in
15528   darwin*)
15529       if test -n "$STRIP" ; then
15530         striplib="$STRIP -x"
15531         echo "$as_me:$LINENO: result: yes" >&5
15532echo "${ECHO_T}yes" >&6
15533       else
15534  echo "$as_me:$LINENO: result: no" >&5
15535echo "${ECHO_T}no" >&6
15536fi
15537       ;;
15538   *)
15539  echo "$as_me:$LINENO: result: no" >&5
15540echo "${ECHO_T}no" >&6
15541    ;;
15542  esac
15543fi
15544
15545
15546
15547# The else clause should only fire when bootstrapping the
15548# libtool distribution, otherwise you forgot to ship ltmain.sh
15549# with your package, and you will get complaints that there are
15550# no rules to generate ltmain.sh.
15551if test -f "$ltmain"; then
15552  # See if we are running on zsh, and set the options which allow our commands through
15553  # without removal of \ escapes.
15554  if test -n "${ZSH_VERSION+set}" ; then
15555    setopt NO_GLOB_SUBST
15556  fi
15557  # Now quote all the things that may contain metacharacters while being
15558  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15559  # variables and quote the copies for generation of the libtool script.
15560  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15561    SED SHELL STRIP \
15562    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15563    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15564    deplibs_check_method reload_flag reload_cmds need_locks \
15565    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15566    lt_cv_sys_global_symbol_to_c_name_address \
15567    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15568    old_postinstall_cmds old_postuninstall_cmds \
15569    compiler_F77 \
15570    CC_F77 \
15571    LD_F77 \
15572    lt_prog_compiler_wl_F77 \
15573    lt_prog_compiler_pic_F77 \
15574    lt_prog_compiler_static_F77 \
15575    lt_prog_compiler_no_builtin_flag_F77 \
15576    export_dynamic_flag_spec_F77 \
15577    thread_safe_flag_spec_F77 \
15578    whole_archive_flag_spec_F77 \
15579    enable_shared_with_static_runtimes_F77 \
15580    old_archive_cmds_F77 \
15581    old_archive_from_new_cmds_F77 \
15582    predep_objects_F77 \
15583    postdep_objects_F77 \
15584    predeps_F77 \
15585    postdeps_F77 \
15586    compiler_lib_search_path_F77 \
15587    archive_cmds_F77 \
15588    archive_expsym_cmds_F77 \
15589    postinstall_cmds_F77 \
15590    postuninstall_cmds_F77 \
15591    old_archive_from_expsyms_cmds_F77 \
15592    allow_undefined_flag_F77 \
15593    no_undefined_flag_F77 \
15594    export_symbols_cmds_F77 \
15595    hardcode_libdir_flag_spec_F77 \
15596    hardcode_libdir_flag_spec_ld_F77 \
15597    hardcode_libdir_separator_F77 \
15598    hardcode_automatic_F77 \
15599    module_cmds_F77 \
15600    module_expsym_cmds_F77 \
15601    lt_cv_prog_compiler_c_o_F77 \
15602    exclude_expsyms_F77 \
15603    include_expsyms_F77; do
15604
15605    case $var in
15606    old_archive_cmds_F77 | \
15607    old_archive_from_new_cmds_F77 | \
15608    archive_cmds_F77 | \
15609    archive_expsym_cmds_F77 | \
15610    module_cmds_F77 | \
15611    module_expsym_cmds_F77 | \
15612    old_archive_from_expsyms_cmds_F77 | \
15613    export_symbols_cmds_F77 | \
15614    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15615    postinstall_cmds | postuninstall_cmds | \
15616    old_postinstall_cmds | old_postuninstall_cmds | \
15617    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15618      # Double-quote double-evaled strings.
15619      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15620      ;;
15621    *)
15622      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15623      ;;
15624    esac
15625  done
15626
15627  case $lt_echo in
15628  *'\$0 --fallback-echo"')
15629    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15630    ;;
15631  esac
15632
15633cfgfile="$ofile"
15634
15635  cat <<__EOF__ >> "$cfgfile"
15636# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15637
15638# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15639
15640# Shell to use when invoking shell scripts.
15641SHELL=$lt_SHELL
15642
15643# Whether or not to build shared libraries.
15644build_libtool_libs=$enable_shared
15645
15646# Whether or not to build static libraries.
15647build_old_libs=$enable_static
15648
15649# Whether or not to add -lc for building shared libraries.
15650build_libtool_need_lc=$archive_cmds_need_lc_F77
15651
15652# Whether or not to disallow shared libs when runtime libs are static
15653allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15654
15655# Whether or not to optimize for fast installation.
15656fast_install=$enable_fast_install
15657
15658# The host system.
15659host_alias=$host_alias
15660host=$host
15661host_os=$host_os
15662
15663# The build system.
15664build_alias=$build_alias
15665build=$build
15666build_os=$build_os
15667
15668# An echo program that does not interpret backslashes.
15669echo=$lt_echo
15670
15671# The archiver.
15672AR=$lt_AR
15673AR_FLAGS=$lt_AR_FLAGS
15674
15675# A C compiler.
15676LTCC=$lt_LTCC
15677
15678# A language-specific compiler.
15679CC=$lt_compiler_F77
15680
15681# Is the compiler the GNU C compiler?
15682with_gcc=$GCC_F77
15683
15684# An ERE matcher.
15685EGREP=$lt_EGREP
15686
15687# The linker used to build libraries.
15688LD=$lt_LD_F77
15689
15690# Whether we need hard or soft links.
15691LN_S=$lt_LN_S
15692
15693# A BSD-compatible nm program.
15694NM=$lt_NM
15695
15696# A symbol stripping program
15697STRIP=$lt_STRIP
15698
15699# Used to examine libraries when file_magic_cmd begins "file"
15700MAGIC_CMD=$MAGIC_CMD
15701
15702# Used on cygwin: DLL creation program.
15703DLLTOOL="$DLLTOOL"
15704
15705# Used on cygwin: object dumper.
15706OBJDUMP="$OBJDUMP"
15707
15708# Used on cygwin: assembler.
15709AS="$AS"
15710
15711# The name of the directory that contains temporary libtool files.
15712objdir=$objdir
15713
15714# How to create reloadable object files.
15715reload_flag=$lt_reload_flag
15716reload_cmds=$lt_reload_cmds
15717
15718# How to pass a linker flag through the compiler.
15719wl=$lt_lt_prog_compiler_wl_F77
15720
15721# Object file suffix (normally "o").
15722objext="$ac_objext"
15723
15724# Old archive suffix (normally "a").
15725libext="$libext"
15726
15727# Shared library suffix (normally ".so").
15728shrext_cmds='$shrext_cmds'
15729
15730# Executable file suffix (normally "").
15731exeext="$exeext"
15732
15733# Additional compiler flags for building library objects.
15734pic_flag=$lt_lt_prog_compiler_pic_F77
15735pic_mode=$pic_mode
15736
15737# What is the maximum length of a command?
15738max_cmd_len=$lt_cv_sys_max_cmd_len
15739
15740# Does compiler simultaneously support -c and -o options?
15741compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15742
15743# Must we lock files when doing compilation?
15744need_locks=$lt_need_locks
15745
15746# Do we need the lib prefix for modules?
15747need_lib_prefix=$need_lib_prefix
15748
15749# Do we need a version for libraries?
15750need_version=$need_version
15751
15752# Whether dlopen is supported.
15753dlopen_support=$enable_dlopen
15754
15755# Whether dlopen of programs is supported.
15756dlopen_self=$enable_dlopen_self
15757
15758# Whether dlopen of statically linked programs is supported.
15759dlopen_self_static=$enable_dlopen_self_static
15760
15761# Compiler flag to prevent dynamic linking.
15762link_static_flag=$lt_lt_prog_compiler_static_F77
15763
15764# Compiler flag to turn off builtin functions.
15765no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15766
15767# Compiler flag to allow reflexive dlopens.
15768export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15769
15770# Compiler flag to generate shared objects directly from archives.
15771whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15772
15773# Compiler flag to generate thread-safe objects.
15774thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15775
15776# Library versioning type.
15777version_type=$version_type
15778
15779# Format of library name prefix.
15780libname_spec=$lt_libname_spec
15781
15782# List of archive names.  First name is the real one, the rest are links.
15783# The last name is the one that the linker finds with -lNAME.
15784library_names_spec=$lt_library_names_spec
15785
15786# The coded name of the library, if different from the real name.
15787soname_spec=$lt_soname_spec
15788
15789# Commands used to build and install an old-style archive.
15790RANLIB=$lt_RANLIB
15791old_archive_cmds=$lt_old_archive_cmds_F77
15792old_postinstall_cmds=$lt_old_postinstall_cmds
15793old_postuninstall_cmds=$lt_old_postuninstall_cmds
15794
15795# Create an old-style archive from a shared archive.
15796old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15797
15798# Create a temporary old-style archive to link instead of a shared archive.
15799old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15800
15801# Commands used to build and install a shared archive.
15802archive_cmds=$lt_archive_cmds_F77
15803archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15804postinstall_cmds=$lt_postinstall_cmds
15805postuninstall_cmds=$lt_postuninstall_cmds
15806
15807# Commands used to build a loadable module (assumed same as above if empty)
15808module_cmds=$lt_module_cmds_F77
15809module_expsym_cmds=$lt_module_expsym_cmds_F77
15810
15811# Commands to strip libraries.
15812old_striplib=$lt_old_striplib
15813striplib=$lt_striplib
15814
15815# Dependencies to place before the objects being linked to create a
15816# shared library.
15817predep_objects=$lt_predep_objects_F77
15818
15819# Dependencies to place after the objects being linked to create a
15820# shared library.
15821postdep_objects=$lt_postdep_objects_F77
15822
15823# Dependencies to place before the objects being linked to create a
15824# shared library.
15825predeps=$lt_predeps_F77
15826
15827# Dependencies to place after the objects being linked to create a
15828# shared library.
15829postdeps=$lt_postdeps_F77
15830
15831# The library search path used internally by the compiler when linking
15832# a shared library.
15833compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15834
15835# Method to check whether dependent libraries are shared objects.
15836deplibs_check_method=$lt_deplibs_check_method
15837
15838# Command to use when deplibs_check_method == file_magic.
15839file_magic_cmd=$lt_file_magic_cmd
15840
15841# Flag that allows shared libraries with undefined symbols to be built.
15842allow_undefined_flag=$lt_allow_undefined_flag_F77
15843
15844# Flag that forces no undefined symbols.
15845no_undefined_flag=$lt_no_undefined_flag_F77
15846
15847# Commands used to finish a libtool library installation in a directory.
15848finish_cmds=$lt_finish_cmds
15849
15850# Same as above, but a single script fragment to be evaled but not shown.
15851finish_eval=$lt_finish_eval
15852
15853# Take the output of nm and produce a listing of raw symbols and C names.
15854global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15855
15856# Transform the output of nm in a proper C declaration
15857global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15858
15859# Transform the output of nm in a C name address pair
15860global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15861
15862# This is the shared library runtime path variable.
15863runpath_var=$runpath_var
15864
15865# This is the shared library path variable.
15866shlibpath_var=$shlibpath_var
15867
15868# Is shlibpath searched before the hard-coded library search path?
15869shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15870
15871# How to hardcode a shared library path into an executable.
15872hardcode_action=$hardcode_action_F77
15873
15874# Whether we should hardcode library paths into libraries.
15875hardcode_into_libs=$hardcode_into_libs
15876
15877# Flag to hardcode \$libdir into a binary during linking.
15878# This must work even if \$libdir does not exist.
15879hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15880
15881# If ld is used when linking, flag to hardcode \$libdir into
15882# a binary during linking. This must work even if \$libdir does
15883# not exist.
15884hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15885
15886# Whether we need a single -rpath flag with a separated argument.
15887hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15888
15889# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15890# resulting binary.
15891hardcode_direct=$hardcode_direct_F77
15892
15893# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15894# resulting binary.
15895hardcode_minus_L=$hardcode_minus_L_F77
15896
15897# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15898# the resulting binary.
15899hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15900
15901# Set to yes if building a shared library automatically hardcodes DIR into the library
15902# and all subsequent libraries and executables linked against it.
15903hardcode_automatic=$hardcode_automatic_F77
15904
15905# Variables whose values should be saved in libtool wrapper scripts and
15906# restored at relink time.
15907variables_saved_for_relink="$variables_saved_for_relink"
15908
15909# Whether libtool must link a program against all its dependency libraries.
15910link_all_deplibs=$link_all_deplibs_F77
15911
15912# Compile-time system search path for libraries
15913sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15914
15915# Run-time system search path for libraries
15916sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15917
15918# Fix the shell variable \$srcfile for the compiler.
15919fix_srcfile_path="$fix_srcfile_path_F77"
15920
15921# Set to yes if exported symbols are required.
15922always_export_symbols=$always_export_symbols_F77
15923
15924# The commands to list exported symbols.
15925export_symbols_cmds=$lt_export_symbols_cmds_F77
15926
15927# The commands to extract the exported symbol list from a shared archive.
15928extract_expsyms_cmds=$lt_extract_expsyms_cmds
15929
15930# Symbols that should not be listed in the preloaded symbols.
15931exclude_expsyms=$lt_exclude_expsyms_F77
15932
15933# Symbols that must always be exported.
15934include_expsyms=$lt_include_expsyms_F77
15935
15936# ### END LIBTOOL TAG CONFIG: $tagname
15937
15938__EOF__
15939
15940
15941else
15942  # If there is no Makefile yet, we rely on a make rule to execute
15943  # `config.status --recheck' to rerun these tests and create the
15944  # libtool script then.
15945  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15946  if test -f "$ltmain_in"; then
15947    test -f Makefile && make "$ltmain"
15948  fi
15949fi
15950
15951
15952ac_ext=c
15953ac_cpp='$CPP $CPPFLAGS'
15954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15956ac_compiler_gnu=$ac_cv_c_compiler_gnu
15957
15958CC="$lt_save_CC"
15959
15960	else
15961	  tagname=""
15962	fi
15963	;;
15964
15965      GCJ)
15966	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15967
15968
15969
15970# Source file extension for Java test sources.
15971ac_ext=java
15972
15973# Object file extension for compiled Java test sources.
15974objext=o
15975objext_GCJ=$objext
15976
15977# Code to be used in simple compile tests
15978lt_simple_compile_test_code="class foo {}\n"
15979
15980# Code to be used in simple link tests
15981lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15982
15983# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15984
15985# If no C compiler was specified, use CC.
15986LTCC=${LTCC-"$CC"}
15987
15988# Allow CC to be a program name with arguments.
15989compiler=$CC
15990
15991
15992# save warnings/boilerplate of simple test code
15993ac_outfile=conftest.$ac_objext
15994printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15995eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15996_lt_compiler_boilerplate=`cat conftest.err`
15997$rm conftest*
15998
15999ac_outfile=conftest.$ac_objext
16000printf "$lt_simple_link_test_code" >conftest.$ac_ext
16001eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16002_lt_linker_boilerplate=`cat conftest.err`
16003$rm conftest*
16004
16005
16006# Allow CC to be a program name with arguments.
16007lt_save_CC="$CC"
16008CC=${GCJ-"gcj"}
16009compiler=$CC
16010compiler_GCJ=$CC
16011for cc_temp in $compiler""; do
16012  case $cc_temp in
16013    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16014    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16015    \-*) ;;
16016    *) break;;
16017  esac
16018done
16019cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16020
16021
16022# GCJ did not exist at the time GCC didn't implicitly link libc in.
16023archive_cmds_need_lc_GCJ=no
16024
16025old_archive_cmds_GCJ=$old_archive_cmds
16026
16027## CAVEAT EMPTOR:
16028## There is no encapsulation within the following macros, do not change
16029## the running order or otherwise move them around unless you know exactly
16030## what you are doing...
16031
16032lt_prog_compiler_no_builtin_flag_GCJ=
16033
16034if test "$GCC" = yes; then
16035  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16036
16037
16038echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16039echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16040if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16041  echo $ECHO_N "(cached) $ECHO_C" >&6
16042else
16043  lt_cv_prog_compiler_rtti_exceptions=no
16044  ac_outfile=conftest.$ac_objext
16045   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16046   lt_compiler_flag="-fno-rtti -fno-exceptions"
16047   # Insert the option either (1) after the last *FLAGS variable, or
16048   # (2) before a word containing "conftest.", or (3) at the end.
16049   # Note that $ac_compile itself does not contain backslashes and begins
16050   # with a dollar sign (not a hyphen), so the echo should work correctly.
16051   # The option is referenced via a variable to avoid confusing sed.
16052   lt_compile=`echo "$ac_compile" | $SED \
16053   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16054   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16055   -e 's:$: $lt_compiler_flag:'`
16056   (eval echo "\"\$as_me:16056: $lt_compile\"" >&5)
16057   (eval "$lt_compile" 2>conftest.err)
16058   ac_status=$?
16059   cat conftest.err >&5
16060   echo "$as_me:16060: \$? = $ac_status" >&5
16061   if (exit $ac_status) && test -s "$ac_outfile"; then
16062     # The compiler can only warn and ignore the option if not recognized
16063     # So say no if there are warnings other than the usual output.
16064     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16065     $SED '/^$/d' conftest.err >conftest.er2
16066     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16067       lt_cv_prog_compiler_rtti_exceptions=yes
16068     fi
16069   fi
16070   $rm conftest*
16071
16072fi
16073echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16074echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16075
16076if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16077    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16078else
16079    :
16080fi
16081
16082fi
16083
16084lt_prog_compiler_wl_GCJ=
16085lt_prog_compiler_pic_GCJ=
16086lt_prog_compiler_static_GCJ=
16087
16088echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16089echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16090
16091  if test "$GCC" = yes; then
16092    lt_prog_compiler_wl_GCJ='-Wl,'
16093    lt_prog_compiler_static_GCJ='-static'
16094
16095    case $host_os in
16096      aix*)
16097      # All AIX code is PIC.
16098      if test "$host_cpu" = ia64; then
16099	# AIX 5 now supports IA64 processor
16100	lt_prog_compiler_static_GCJ='-Bstatic'
16101      fi
16102      ;;
16103
16104    amigaos*)
16105      # FIXME: we need at least 68020 code to build shared libraries, but
16106      # adding the `-m68020' flag to GCC prevents building anything better,
16107      # like `-m68040'.
16108      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16109      ;;
16110
16111    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16112      # PIC is the default for these OSes.
16113      ;;
16114
16115    mingw* | pw32* | os2*)
16116      # This hack is so that the source file can tell whether it is being
16117      # built for inclusion in a dll (and should export symbols for example).
16118      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16119      ;;
16120
16121    darwin* | rhapsody*)
16122      # PIC is the default on this platform
16123      # Common symbols not allowed in MH_DYLIB files
16124      lt_prog_compiler_pic_GCJ='-fno-common'
16125      ;;
16126
16127    msdosdjgpp*)
16128      # Just because we use GCC doesn't mean we suddenly get shared libraries
16129      # on systems that don't support them.
16130      lt_prog_compiler_can_build_shared_GCJ=no
16131      enable_shared=no
16132      ;;
16133
16134    sysv4*MP*)
16135      if test -d /usr/nec; then
16136	lt_prog_compiler_pic_GCJ=-Kconform_pic
16137      fi
16138      ;;
16139
16140    hpux*)
16141      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16142      # not for PA HP-UX.
16143      case $host_cpu in
16144      hppa*64*|ia64*)
16145	# +Z the default
16146	;;
16147      *)
16148	lt_prog_compiler_pic_GCJ='-fPIC'
16149	;;
16150      esac
16151      ;;
16152
16153    *)
16154      lt_prog_compiler_pic_GCJ='-fPIC'
16155      ;;
16156    esac
16157  else
16158    # PORTME Check for flag to pass linker flags through the system compiler.
16159    case $host_os in
16160    aix*)
16161      lt_prog_compiler_wl_GCJ='-Wl,'
16162      if test "$host_cpu" = ia64; then
16163	# AIX 5 now supports IA64 processor
16164	lt_prog_compiler_static_GCJ='-Bstatic'
16165      else
16166	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16167      fi
16168      ;;
16169      darwin*)
16170        # PIC is the default on this platform
16171        # Common symbols not allowed in MH_DYLIB files
16172       case $cc_basename in
16173         xlc*)
16174         lt_prog_compiler_pic_GCJ='-qnocommon'
16175         lt_prog_compiler_wl_GCJ='-Wl,'
16176         ;;
16177       esac
16178       ;;
16179
16180    mingw* | pw32* | os2*)
16181      # This hack is so that the source file can tell whether it is being
16182      # built for inclusion in a dll (and should export symbols for example).
16183      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16184      ;;
16185
16186    hpux9* | hpux10* | hpux11*)
16187      lt_prog_compiler_wl_GCJ='-Wl,'
16188      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16189      # not for PA HP-UX.
16190      case $host_cpu in
16191      hppa*64*|ia64*)
16192	# +Z the default
16193	;;
16194      *)
16195	lt_prog_compiler_pic_GCJ='+Z'
16196	;;
16197      esac
16198      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16199      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16200      ;;
16201
16202    irix5* | irix6* | nonstopux*)
16203      lt_prog_compiler_wl_GCJ='-Wl,'
16204      # PIC (with -KPIC) is the default.
16205      lt_prog_compiler_static_GCJ='-non_shared'
16206      ;;
16207
16208    newsos6)
16209      lt_prog_compiler_pic_GCJ='-KPIC'
16210      lt_prog_compiler_static_GCJ='-Bstatic'
16211      ;;
16212
16213    linux*)
16214      case $cc_basename in
16215      icc* | ecc*)
16216	lt_prog_compiler_wl_GCJ='-Wl,'
16217	lt_prog_compiler_pic_GCJ='-KPIC'
16218	lt_prog_compiler_static_GCJ='-static'
16219        ;;
16220      pgcc* | pgf77* | pgf90* | pgf95*)
16221        # Portland Group compilers (*not* the Pentium gcc compiler,
16222	# which looks to be a dead project)
16223	lt_prog_compiler_wl_GCJ='-Wl,'
16224	lt_prog_compiler_pic_GCJ='-fpic'
16225	lt_prog_compiler_static_GCJ='-Bstatic'
16226        ;;
16227      ccc*)
16228        lt_prog_compiler_wl_GCJ='-Wl,'
16229        # All Alpha code is PIC.
16230        lt_prog_compiler_static_GCJ='-non_shared'
16231        ;;
16232      esac
16233      ;;
16234
16235    osf3* | osf4* | osf5*)
16236      lt_prog_compiler_wl_GCJ='-Wl,'
16237      # All OSF/1 code is PIC.
16238      lt_prog_compiler_static_GCJ='-non_shared'
16239      ;;
16240
16241    sco3.2v5*)
16242      lt_prog_compiler_pic_GCJ='-Kpic'
16243      lt_prog_compiler_static_GCJ='-dn'
16244      ;;
16245
16246    solaris*)
16247      lt_prog_compiler_pic_GCJ='-KPIC'
16248      lt_prog_compiler_static_GCJ='-Bstatic'
16249      case $cc_basename in
16250      f77* | f90* | f95*)
16251	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16252      *)
16253	lt_prog_compiler_wl_GCJ='-Wl,';;
16254      esac
16255      ;;
16256
16257    sunos4*)
16258      lt_prog_compiler_wl_GCJ='-Qoption ld '
16259      lt_prog_compiler_pic_GCJ='-PIC'
16260      lt_prog_compiler_static_GCJ='-Bstatic'
16261      ;;
16262
16263    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16264      lt_prog_compiler_wl_GCJ='-Wl,'
16265      lt_prog_compiler_pic_GCJ='-KPIC'
16266      lt_prog_compiler_static_GCJ='-Bstatic'
16267      ;;
16268
16269    sysv4*MP*)
16270      if test -d /usr/nec ;then
16271	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16272	lt_prog_compiler_static_GCJ='-Bstatic'
16273      fi
16274      ;;
16275
16276    unicos*)
16277      lt_prog_compiler_wl_GCJ='-Wl,'
16278      lt_prog_compiler_can_build_shared_GCJ=no
16279      ;;
16280
16281    uts4*)
16282      lt_prog_compiler_pic_GCJ='-pic'
16283      lt_prog_compiler_static_GCJ='-Bstatic'
16284      ;;
16285
16286    *)
16287      lt_prog_compiler_can_build_shared_GCJ=no
16288      ;;
16289    esac
16290  fi
16291
16292echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16293echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16294
16295#
16296# Check to make sure the PIC flag actually works.
16297#
16298if test -n "$lt_prog_compiler_pic_GCJ"; then
16299
16300echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16301echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16302if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16303  echo $ECHO_N "(cached) $ECHO_C" >&6
16304else
16305  lt_prog_compiler_pic_works_GCJ=no
16306  ac_outfile=conftest.$ac_objext
16307   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16308   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16309   # Insert the option either (1) after the last *FLAGS variable, or
16310   # (2) before a word containing "conftest.", or (3) at the end.
16311   # Note that $ac_compile itself does not contain backslashes and begins
16312   # with a dollar sign (not a hyphen), so the echo should work correctly.
16313   # The option is referenced via a variable to avoid confusing sed.
16314   lt_compile=`echo "$ac_compile" | $SED \
16315   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16316   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16317   -e 's:$: $lt_compiler_flag:'`
16318   (eval echo "\"\$as_me:16318: $lt_compile\"" >&5)
16319   (eval "$lt_compile" 2>conftest.err)
16320   ac_status=$?
16321   cat conftest.err >&5
16322   echo "$as_me:16322: \$? = $ac_status" >&5
16323   if (exit $ac_status) && test -s "$ac_outfile"; then
16324     # The compiler can only warn and ignore the option if not recognized
16325     # So say no if there are warnings other than the usual output.
16326     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16327     $SED '/^$/d' conftest.err >conftest.er2
16328     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16329       lt_prog_compiler_pic_works_GCJ=yes
16330     fi
16331   fi
16332   $rm conftest*
16333
16334fi
16335echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16336echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16337
16338if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16339    case $lt_prog_compiler_pic_GCJ in
16340     "" | " "*) ;;
16341     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16342     esac
16343else
16344    lt_prog_compiler_pic_GCJ=
16345     lt_prog_compiler_can_build_shared_GCJ=no
16346fi
16347
16348fi
16349case $host_os in
16350  # For platforms which do not support PIC, -DPIC is meaningless:
16351  *djgpp*)
16352    lt_prog_compiler_pic_GCJ=
16353    ;;
16354  *)
16355    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16356    ;;
16357esac
16358
16359echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16360echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16361if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16362  echo $ECHO_N "(cached) $ECHO_C" >&6
16363else
16364  lt_cv_prog_compiler_c_o_GCJ=no
16365   $rm -r conftest 2>/dev/null
16366   mkdir conftest
16367   cd conftest
16368   mkdir out
16369   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16370
16371   lt_compiler_flag="-o out/conftest2.$ac_objext"
16372   # Insert the option either (1) after the last *FLAGS variable, or
16373   # (2) before a word containing "conftest.", or (3) at the end.
16374   # Note that $ac_compile itself does not contain backslashes and begins
16375   # with a dollar sign (not a hyphen), so the echo should work correctly.
16376   lt_compile=`echo "$ac_compile" | $SED \
16377   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16378   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16379   -e 's:$: $lt_compiler_flag:'`
16380   (eval echo "\"\$as_me:16380: $lt_compile\"" >&5)
16381   (eval "$lt_compile" 2>out/conftest.err)
16382   ac_status=$?
16383   cat out/conftest.err >&5
16384   echo "$as_me:16384: \$? = $ac_status" >&5
16385   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16386   then
16387     # The compiler can only warn and ignore the option if not recognized
16388     # So say no if there are warnings
16389     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16390     $SED '/^$/d' out/conftest.err >out/conftest.er2
16391     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16392       lt_cv_prog_compiler_c_o_GCJ=yes
16393     fi
16394   fi
16395   chmod u+w . 2>&5
16396   $rm conftest*
16397   # SGI C++ compiler will create directory out/ii_files/ for
16398   # template instantiation
16399   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16400   $rm out/* && rmdir out
16401   cd ..
16402   rmdir conftest
16403   $rm conftest*
16404
16405fi
16406echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16407echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16408
16409
16410hard_links="nottested"
16411if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16412  # do not overwrite the value of need_locks provided by the user
16413  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16414echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16415  hard_links=yes
16416  $rm conftest*
16417  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16418  touch conftest.a
16419  ln conftest.a conftest.b 2>&5 || hard_links=no
16420  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16421  echo "$as_me:$LINENO: result: $hard_links" >&5
16422echo "${ECHO_T}$hard_links" >&6
16423  if test "$hard_links" = no; then
16424    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16425echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16426    need_locks=warn
16427  fi
16428else
16429  need_locks=no
16430fi
16431
16432echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16433echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16434
16435  runpath_var=
16436  allow_undefined_flag_GCJ=
16437  enable_shared_with_static_runtimes_GCJ=no
16438  archive_cmds_GCJ=
16439  archive_expsym_cmds_GCJ=
16440  old_archive_From_new_cmds_GCJ=
16441  old_archive_from_expsyms_cmds_GCJ=
16442  export_dynamic_flag_spec_GCJ=
16443  whole_archive_flag_spec_GCJ=
16444  thread_safe_flag_spec_GCJ=
16445  hardcode_libdir_flag_spec_GCJ=
16446  hardcode_libdir_flag_spec_ld_GCJ=
16447  hardcode_libdir_separator_GCJ=
16448  hardcode_direct_GCJ=no
16449  hardcode_minus_L_GCJ=no
16450  hardcode_shlibpath_var_GCJ=unsupported
16451  link_all_deplibs_GCJ=unknown
16452  hardcode_automatic_GCJ=no
16453  module_cmds_GCJ=
16454  module_expsym_cmds_GCJ=
16455  always_export_symbols_GCJ=no
16456  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16457  # include_expsyms should be a list of space-separated symbols to be *always*
16458  # included in the symbol list
16459  include_expsyms_GCJ=
16460  # exclude_expsyms can be an extended regexp of symbols to exclude
16461  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16462  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16463  # as well as any symbol that contains `d'.
16464  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16465  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16466  # platforms (ab)use it in PIC code, but their linkers get confused if
16467  # the symbol is explicitly referenced.  Since portable code cannot
16468  # rely on this symbol name, it's probably fine to never include it in
16469  # preloaded symbol tables.
16470  extract_expsyms_cmds=
16471  # Just being paranoid about ensuring that cc_basename is set.
16472  for cc_temp in $compiler""; do
16473  case $cc_temp in
16474    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16475    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16476    \-*) ;;
16477    *) break;;
16478  esac
16479done
16480cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16481
16482  case $host_os in
16483  cygwin* | mingw* | pw32*)
16484    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16485    # When not using gcc, we currently assume that we are using
16486    # Microsoft Visual C++.
16487    if test "$GCC" != yes; then
16488      with_gnu_ld=no
16489    fi
16490    ;;
16491  openbsd*)
16492    with_gnu_ld=no
16493    ;;
16494  esac
16495
16496  ld_shlibs_GCJ=yes
16497  if test "$with_gnu_ld" = yes; then
16498    # If archive_cmds runs LD, not CC, wlarc should be empty
16499    wlarc='${wl}'
16500
16501    # Set some defaults for GNU ld with shared library support. These
16502    # are reset later if shared libraries are not supported. Putting them
16503    # here allows them to be overridden if necessary.
16504    runpath_var=LD_RUN_PATH
16505    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16506    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16507    # ancient GNU ld didn't support --whole-archive et. al.
16508    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16509	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16510      else
16511  	whole_archive_flag_spec_GCJ=
16512    fi
16513    supports_anon_versioning=no
16514    case `$LD -v 2>/dev/null` in
16515      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16516      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16517      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16518      *\ 2.11.*) ;; # other 2.11 versions
16519      *) supports_anon_versioning=yes ;;
16520    esac
16521
16522    # See if GNU ld supports shared libraries.
16523    case $host_os in
16524    aix3* | aix4* | aix5*)
16525      # On AIX/PPC, the GNU linker is very broken
16526      if test "$host_cpu" != ia64; then
16527	ld_shlibs_GCJ=no
16528	cat <<EOF 1>&2
16529
16530*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16531*** to be unable to reliably create shared libraries on AIX.
16532*** Therefore, libtool is disabling shared libraries support.  If you
16533*** really care for shared libraries, you may want to modify your PATH
16534*** so that a non-GNU linker is found, and then restart.
16535
16536EOF
16537      fi
16538      ;;
16539
16540    amigaos*)
16541      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)'
16542      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16543      hardcode_minus_L_GCJ=yes
16544
16545      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16546      # that the semantics of dynamic libraries on AmigaOS, at least up
16547      # to version 4, is to share data among multiple programs linked
16548      # with the same dynamic library.  Since this doesn't match the
16549      # behavior of shared libraries on other platforms, we can't use
16550      # them.
16551      ld_shlibs_GCJ=no
16552      ;;
16553
16554    beos*)
16555      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16556	allow_undefined_flag_GCJ=unsupported
16557	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16558	# support --undefined.  This deserves some investigation.  FIXME
16559	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16560      else
16561	ld_shlibs_GCJ=no
16562      fi
16563      ;;
16564
16565    cygwin* | mingw* | pw32*)
16566      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16567      # as there is no search path for DLLs.
16568      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16569      allow_undefined_flag_GCJ=unsupported
16570      always_export_symbols_GCJ=no
16571      enable_shared_with_static_runtimes_GCJ=yes
16572      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16573
16574      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16575        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16576	# If the export-symbols file already is a .def file (1st line
16577	# is EXPORTS), use it as is; otherwise, prepend...
16578	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16579	  cp $export_symbols $output_objdir/$soname.def;
16580	else
16581	  echo EXPORTS > $output_objdir/$soname.def;
16582	  cat $export_symbols >> $output_objdir/$soname.def;
16583	fi~
16584	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16585      else
16586	ld_shlibs_GCJ=no
16587      fi
16588      ;;
16589
16590    linux*)
16591      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16592	tmp_addflag=
16593	case $cc_basename,$host_cpu in
16594	pgcc*)				# Portland Group C compiler
16595	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16596	  tmp_addflag=' $pic_flag'
16597	  ;;
16598	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16599	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16600	  tmp_addflag=' $pic_flag -Mnomain' ;;
16601	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16602	  tmp_addflag=' -i_dynamic' ;;
16603	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16604	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16605	ifc* | ifort*)			# Intel Fortran compiler
16606	  tmp_addflag=' -nofor_main' ;;
16607	esac
16608	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16609
16610	if test $supports_anon_versioning = yes; then
16611	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16612  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16613  $echo "local: *; };" >> $output_objdir/$libname.ver~
16614	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16615	fi
16616      else
16617	ld_shlibs_GCJ=no
16618      fi
16619      ;;
16620
16621    netbsd*)
16622      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16623	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16624	wlarc=
16625      else
16626	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16627	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16628      fi
16629      ;;
16630
16631    solaris* | sysv5*)
16632      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16633	ld_shlibs_GCJ=no
16634	cat <<EOF 1>&2
16635
16636*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16637*** create shared libraries on Solaris systems.  Therefore, libtool
16638*** is disabling shared libraries support.  We urge you to upgrade GNU
16639*** binutils to release 2.9.1 or newer.  Another option is to modify
16640*** your PATH or compiler configuration so that the native linker is
16641*** used, and then restart.
16642
16643EOF
16644      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16645	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16646	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16647      else
16648	ld_shlibs_GCJ=no
16649      fi
16650      ;;
16651
16652    sunos4*)
16653      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16654      wlarc=
16655      hardcode_direct_GCJ=yes
16656      hardcode_shlibpath_var_GCJ=no
16657      ;;
16658
16659    *)
16660      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16661	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16662	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16663      else
16664	ld_shlibs_GCJ=no
16665      fi
16666      ;;
16667    esac
16668
16669    if test "$ld_shlibs_GCJ" = no; then
16670      runpath_var=
16671      hardcode_libdir_flag_spec_GCJ=
16672      export_dynamic_flag_spec_GCJ=
16673      whole_archive_flag_spec_GCJ=
16674    fi
16675  else
16676    # PORTME fill in a description of your system's linker (not GNU ld)
16677    case $host_os in
16678    aix3*)
16679      allow_undefined_flag_GCJ=unsupported
16680      always_export_symbols_GCJ=yes
16681      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'
16682      # Note: this linker hardcodes the directories in LIBPATH if there
16683      # are no directories specified by -L.
16684      hardcode_minus_L_GCJ=yes
16685      if test "$GCC" = yes && test -z "$link_static_flag"; then
16686	# Neither direct hardcoding nor static linking is supported with a
16687	# broken collect2.
16688	hardcode_direct_GCJ=unsupported
16689      fi
16690      ;;
16691
16692    aix4* | aix5*)
16693      if test "$host_cpu" = ia64; then
16694	# On IA64, the linker does run time linking by default, so we don't
16695	# have to do anything special.
16696	aix_use_runtimelinking=no
16697	exp_sym_flag='-Bexport'
16698	no_entry_flag=""
16699      else
16700	# If we're using GNU nm, then we don't want the "-C" option.
16701	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16702	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16703	  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'
16704	else
16705	  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'
16706	fi
16707	aix_use_runtimelinking=no
16708
16709	# Test if we are trying to use run time linking or normal
16710	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16711	# need to do runtime linking.
16712	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16713	  for ld_flag in $LDFLAGS; do
16714  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16715  	    aix_use_runtimelinking=yes
16716  	    break
16717  	  fi
16718	  done
16719	esac
16720
16721	exp_sym_flag='-bexport'
16722	no_entry_flag='-bnoentry'
16723      fi
16724
16725      # When large executables or shared objects are built, AIX ld can
16726      # have problems creating the table of contents.  If linking a library
16727      # or program results in "error TOC overflow" add -mminimal-toc to
16728      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16729      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16730
16731      archive_cmds_GCJ=''
16732      hardcode_direct_GCJ=yes
16733      hardcode_libdir_separator_GCJ=':'
16734      link_all_deplibs_GCJ=yes
16735
16736      if test "$GCC" = yes; then
16737	case $host_os in aix4.[012]|aix4.[012].*)
16738	# We only want to do this on AIX 4.2 and lower, the check
16739	# below for broken collect2 doesn't work under 4.3+
16740	  collect2name=`${CC} -print-prog-name=collect2`
16741	  if test -f "$collect2name" && \
16742  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16743	  then
16744  	  # We have reworked collect2
16745  	  hardcode_direct_GCJ=yes
16746	  else
16747  	  # We have old collect2
16748  	  hardcode_direct_GCJ=unsupported
16749  	  # It fails to find uninstalled libraries when the uninstalled
16750  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16751  	  # to unsupported forces relinking
16752  	  hardcode_minus_L_GCJ=yes
16753  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16754  	  hardcode_libdir_separator_GCJ=
16755	  fi
16756	esac
16757	shared_flag='-shared'
16758	if test "$aix_use_runtimelinking" = yes; then
16759	  shared_flag="$shared_flag "'${wl}-G'
16760	fi
16761      else
16762	# not using gcc
16763	if test "$host_cpu" = ia64; then
16764  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16765  	# chokes on -Wl,-G. The following line is correct:
16766	  shared_flag='-G'
16767	else
16768  	if test "$aix_use_runtimelinking" = yes; then
16769	    shared_flag='${wl}-G'
16770	  else
16771	    shared_flag='${wl}-bM:SRE'
16772  	fi
16773	fi
16774      fi
16775
16776      # It seems that -bexpall does not export symbols beginning with
16777      # underscore (_), so it is better to generate a list of symbols to export.
16778      always_export_symbols_GCJ=yes
16779      if test "$aix_use_runtimelinking" = yes; then
16780	# Warning - without using the other runtime loading flags (-brtl),
16781	# -berok will link without error, but may produce a broken library.
16782	allow_undefined_flag_GCJ='-berok'
16783       # Determine the default libpath from the value encoded in an empty executable.
16784       cat >conftest.$ac_ext <<_ACEOF
16785/* confdefs.h.  */
16786_ACEOF
16787cat confdefs.h >>conftest.$ac_ext
16788cat >>conftest.$ac_ext <<_ACEOF
16789/* end confdefs.h.  */
16790
16791int
16792main ()
16793{
16794
16795  ;
16796  return 0;
16797}
16798_ACEOF
16799rm -f conftest.$ac_objext conftest$ac_exeext
16800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16801  (eval $ac_link) 2>conftest.er1
16802  ac_status=$?
16803  grep -v '^ *+' conftest.er1 >conftest.err
16804  rm -f conftest.er1
16805  cat conftest.err >&5
16806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807  (exit $ac_status); } &&
16808	 { ac_try='test -z "$ac_c_werror_flag"
16809			 || test ! -s conftest.err'
16810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16811  (eval $ac_try) 2>&5
16812  ac_status=$?
16813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814  (exit $ac_status); }; } &&
16815	 { ac_try='test -s conftest$ac_exeext'
16816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817  (eval $ac_try) 2>&5
16818  ac_status=$?
16819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820  (exit $ac_status); }; }; then
16821
16822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16823}'`
16824# Check for a 64-bit object if we didn't find anything.
16825if 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; }
16826}'`; fi
16827else
16828  echo "$as_me: failed program was:" >&5
16829sed 's/^/| /' conftest.$ac_ext >&5
16830
16831fi
16832rm -f conftest.err conftest.$ac_objext \
16833      conftest$ac_exeext conftest.$ac_ext
16834if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16835
16836       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16837	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"
16838       else
16839	if test "$host_cpu" = ia64; then
16840	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16841	  allow_undefined_flag_GCJ="-z nodefs"
16842	  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"
16843	else
16844	 # Determine the default libpath from the value encoded in an empty executable.
16845	 cat >conftest.$ac_ext <<_ACEOF
16846/* confdefs.h.  */
16847_ACEOF
16848cat confdefs.h >>conftest.$ac_ext
16849cat >>conftest.$ac_ext <<_ACEOF
16850/* end confdefs.h.  */
16851
16852int
16853main ()
16854{
16855
16856  ;
16857  return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext conftest$ac_exeext
16861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16862  (eval $ac_link) 2>conftest.er1
16863  ac_status=$?
16864  grep -v '^ *+' conftest.er1 >conftest.err
16865  rm -f conftest.er1
16866  cat conftest.err >&5
16867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868  (exit $ac_status); } &&
16869	 { ac_try='test -z "$ac_c_werror_flag"
16870			 || test ! -s conftest.err'
16871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16872  (eval $ac_try) 2>&5
16873  ac_status=$?
16874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875  (exit $ac_status); }; } &&
16876	 { ac_try='test -s conftest$ac_exeext'
16877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878  (eval $ac_try) 2>&5
16879  ac_status=$?
16880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881  (exit $ac_status); }; }; then
16882
16883aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16884}'`
16885# Check for a 64-bit object if we didn't find anything.
16886if 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; }
16887}'`; fi
16888else
16889  echo "$as_me: failed program was:" >&5
16890sed 's/^/| /' conftest.$ac_ext >&5
16891
16892fi
16893rm -f conftest.err conftest.$ac_objext \
16894      conftest$ac_exeext conftest.$ac_ext
16895if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16896
16897	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16898	  # Warning - without using the other run time loading flags,
16899	  # -berok will link without error, but may produce a broken library.
16900	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16901	  allow_undefined_flag_GCJ=' ${wl}-berok'
16902	  # -bexpall does not export symbols beginning with underscore (_)
16903	  always_export_symbols_GCJ=yes
16904	  # Exported symbols can be pulled into shared objects from archives
16905	  whole_archive_flag_spec_GCJ=' '
16906	  archive_cmds_need_lc_GCJ=yes
16907	  # This is similar to how AIX traditionally builds its shared libraries.
16908	  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'
16909	fi
16910      fi
16911      ;;
16912
16913    amigaos*)
16914      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)'
16915      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16916      hardcode_minus_L_GCJ=yes
16917      # see comment about different semantics on the GNU ld section
16918      ld_shlibs_GCJ=no
16919      ;;
16920
16921    bsdi[45]*)
16922      export_dynamic_flag_spec_GCJ=-rdynamic
16923      ;;
16924
16925    cygwin* | mingw* | pw32*)
16926      # When not using gcc, we currently assume that we are using
16927      # Microsoft Visual C++.
16928      # hardcode_libdir_flag_spec is actually meaningless, as there is
16929      # no search path for DLLs.
16930      hardcode_libdir_flag_spec_GCJ=' '
16931      allow_undefined_flag_GCJ=unsupported
16932      # Tell ltmain to make .lib files, not .a files.
16933      libext=lib
16934      # Tell ltmain to make .dll files, not .so files.
16935      shrext_cmds=".dll"
16936      # FIXME: Setting linknames here is a bad hack.
16937      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16938      # The linker will automatically build a .lib file if we build a DLL.
16939      old_archive_From_new_cmds_GCJ='true'
16940      # FIXME: Should let the user specify the lib program.
16941      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16942      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16943      enable_shared_with_static_runtimes_GCJ=yes
16944      ;;
16945
16946    darwin* | rhapsody*)
16947      case $host_os in
16948        rhapsody* | darwin1.[012])
16949         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16950         ;;
16951       *) # Darwin 1.3 on
16952         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16953           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16954         else
16955           case ${MACOSX_DEPLOYMENT_TARGET} in
16956             10.[012])
16957               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16958               ;;
16959             10.*)
16960               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16961               ;;
16962           esac
16963         fi
16964         ;;
16965      esac
16966      archive_cmds_need_lc_GCJ=no
16967      hardcode_direct_GCJ=no
16968      hardcode_automatic_GCJ=yes
16969      hardcode_shlibpath_var_GCJ=unsupported
16970      whole_archive_flag_spec_GCJ=''
16971      link_all_deplibs_GCJ=yes
16972    if test "$GCC" = yes ; then
16973    	output_verbose_link_cmd='echo'
16974        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16975      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16976      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16977      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}'
16978      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}'
16979    else
16980      case $cc_basename in
16981        xlc*)
16982         output_verbose_link_cmd='echo'
16983         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16984         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16985          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16986         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}'
16987          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}'
16988          ;;
16989       *)
16990         ld_shlibs_GCJ=no
16991          ;;
16992      esac
16993    fi
16994      ;;
16995
16996    dgux*)
16997      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16998      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16999      hardcode_shlibpath_var_GCJ=no
17000      ;;
17001
17002    freebsd1*)
17003      ld_shlibs_GCJ=no
17004      ;;
17005
17006    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17007    # support.  Future versions do this automatically, but an explicit c++rt0.o
17008    # does not break anything, and helps significantly (at the cost of a little
17009    # extra space).
17010    freebsd2.2*)
17011      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17012      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17013      hardcode_direct_GCJ=yes
17014      hardcode_shlibpath_var_GCJ=no
17015      ;;
17016
17017    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17018    freebsd2*)
17019      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17020      hardcode_direct_GCJ=yes
17021      hardcode_minus_L_GCJ=yes
17022      hardcode_shlibpath_var_GCJ=no
17023      ;;
17024
17025    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17026    freebsd* | kfreebsd*-gnu | dragonfly*)
17027      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17028      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17029      hardcode_direct_GCJ=yes
17030      hardcode_shlibpath_var_GCJ=no
17031      ;;
17032
17033    hpux9*)
17034      if test "$GCC" = yes; then
17035	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'
17036      else
17037	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'
17038      fi
17039      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17040      hardcode_libdir_separator_GCJ=:
17041      hardcode_direct_GCJ=yes
17042
17043      # hardcode_minus_L: Not really in the search PATH,
17044      # but as the default location of the library.
17045      hardcode_minus_L_GCJ=yes
17046      export_dynamic_flag_spec_GCJ='${wl}-E'
17047      ;;
17048
17049    hpux10* | hpux11*)
17050      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17051	case $host_cpu in
17052	hppa*64*|ia64*)
17053	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17054	  ;;
17055	*)
17056	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17057	  ;;
17058	esac
17059      else
17060	case $host_cpu in
17061	hppa*64*|ia64*)
17062	  archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17063	  ;;
17064	*)
17065	  archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17066	  ;;
17067	esac
17068      fi
17069      if test "$with_gnu_ld" = no; then
17070	case $host_cpu in
17071	hppa*64*)
17072	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17073	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17074	  hardcode_libdir_separator_GCJ=:
17075	  hardcode_direct_GCJ=no
17076	  hardcode_shlibpath_var_GCJ=no
17077	  ;;
17078	ia64*)
17079	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17080	  hardcode_direct_GCJ=no
17081	  hardcode_shlibpath_var_GCJ=no
17082
17083	  # hardcode_minus_L: Not really in the search PATH,
17084	  # but as the default location of the library.
17085	  hardcode_minus_L_GCJ=yes
17086	  ;;
17087	*)
17088	  hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17089	  hardcode_libdir_separator_GCJ=:
17090	  hardcode_direct_GCJ=yes
17091	  export_dynamic_flag_spec_GCJ='${wl}-E'
17092
17093	  # hardcode_minus_L: Not really in the search PATH,
17094	  # but as the default location of the library.
17095	  hardcode_minus_L_GCJ=yes
17096	  ;;
17097	esac
17098      fi
17099      ;;
17100
17101    irix5* | irix6* | nonstopux*)
17102      if test "$GCC" = yes; then
17103	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'
17104      else
17105	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'
17106	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17107      fi
17108      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17109      hardcode_libdir_separator_GCJ=:
17110      link_all_deplibs_GCJ=yes
17111      ;;
17112
17113    netbsd*)
17114      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17115	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17116      else
17117	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17118      fi
17119      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17120      hardcode_direct_GCJ=yes
17121      hardcode_shlibpath_var_GCJ=no
17122      ;;
17123
17124    newsos6)
17125      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17126      hardcode_direct_GCJ=yes
17127      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17128      hardcode_libdir_separator_GCJ=:
17129      hardcode_shlibpath_var_GCJ=no
17130      ;;
17131
17132    openbsd*)
17133      hardcode_direct_GCJ=yes
17134      hardcode_shlibpath_var_GCJ=no
17135      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17136	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17137	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17138	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17139	export_dynamic_flag_spec_GCJ='${wl}-E'
17140      else
17141       case $host_os in
17142	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17143	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17144	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17145	   ;;
17146	 *)
17147	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17148	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17149	   ;;
17150       esac
17151      fi
17152      ;;
17153
17154    os2*)
17155      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17156      hardcode_minus_L_GCJ=yes
17157      allow_undefined_flag_GCJ=unsupported
17158      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'
17159      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17160      ;;
17161
17162    osf3*)
17163      if test "$GCC" = yes; then
17164	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17165	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'
17166      else
17167	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17168	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'
17169      fi
17170      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17171      hardcode_libdir_separator_GCJ=:
17172      ;;
17173
17174    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17175      if test "$GCC" = yes; then
17176	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17177	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'
17178	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17179      else
17180	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17181	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'
17182	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~
17183	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17184
17185	# Both c and cxx compiler support -rpath directly
17186	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17187      fi
17188      hardcode_libdir_separator_GCJ=:
17189      ;;
17190
17191    sco3.2v5*)
17192      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17193      hardcode_shlibpath_var_GCJ=no
17194      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17195      runpath_var=LD_RUN_PATH
17196      hardcode_runpath_var=yes
17197      ;;
17198
17199    solaris*)
17200      no_undefined_flag_GCJ=' -z text'
17201      if test "$GCC" = yes; then
17202	wlarc='${wl}'
17203	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17204	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17205	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17206      else
17207	wlarc=''
17208	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17209	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17210  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17211      fi
17212      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17213      hardcode_shlibpath_var_GCJ=no
17214      case $host_os in
17215      solaris2.[0-5] | solaris2.[0-5].*) ;;
17216      *)
17217 	# The compiler driver will combine linker options so we
17218 	# cannot just pass the convience library names through
17219 	# without $wl, iff we do not link with $LD.
17220 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17221 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17222 	case $wlarc in
17223 	'')
17224 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17225 	*)
17226 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17227 	esac ;;
17228      esac
17229      link_all_deplibs_GCJ=yes
17230      ;;
17231
17232    sunos4*)
17233      if test "x$host_vendor" = xsequent; then
17234	# Use $CC to link under sequent, because it throws in some extra .o
17235	# files that make .init and .fini sections work.
17236	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17237      else
17238	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17239      fi
17240      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17241      hardcode_direct_GCJ=yes
17242      hardcode_minus_L_GCJ=yes
17243      hardcode_shlibpath_var_GCJ=no
17244      ;;
17245
17246    sysv4)
17247      case $host_vendor in
17248	sni)
17249	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250	  hardcode_direct_GCJ=yes # is this really true???
17251	;;
17252	siemens)
17253	  ## LD is ld it makes a PLAMLIB
17254	  ## CC just makes a GrossModule.
17255	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17256	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17257	  hardcode_direct_GCJ=no
17258        ;;
17259	motorola)
17260	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17261	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17262	;;
17263      esac
17264      runpath_var='LD_RUN_PATH'
17265      hardcode_shlibpath_var_GCJ=no
17266      ;;
17267
17268    sysv4.3*)
17269      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17270      hardcode_shlibpath_var_GCJ=no
17271      export_dynamic_flag_spec_GCJ='-Bexport'
17272      ;;
17273
17274    sysv4*MP*)
17275      if test -d /usr/nec; then
17276	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17277	hardcode_shlibpath_var_GCJ=no
17278	runpath_var=LD_RUN_PATH
17279	hardcode_runpath_var=yes
17280	ld_shlibs_GCJ=yes
17281      fi
17282      ;;
17283
17284    sysv4.2uw2*)
17285      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17286      hardcode_direct_GCJ=yes
17287      hardcode_minus_L_GCJ=no
17288      hardcode_shlibpath_var_GCJ=no
17289      hardcode_runpath_var=yes
17290      runpath_var=LD_RUN_PATH
17291      ;;
17292
17293   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17294      no_undefined_flag_GCJ='${wl}-z ${wl}text'
17295      if test "$GCC" = yes; then
17296	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17297      else
17298	archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17299      fi
17300      runpath_var='LD_RUN_PATH'
17301      hardcode_shlibpath_var_GCJ=no
17302      ;;
17303
17304    sysv5*)
17305      no_undefined_flag_GCJ=' -z text'
17306      # $CC -shared without GNU ld will not create a library from C++
17307      # object files and a static libstdc++, better avoid it by now
17308      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17309      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17310  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17311      hardcode_libdir_flag_spec_GCJ=
17312      hardcode_shlibpath_var_GCJ=no
17313      runpath_var='LD_RUN_PATH'
17314      ;;
17315
17316    uts4*)
17317      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17318      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17319      hardcode_shlibpath_var_GCJ=no
17320      ;;
17321
17322    *)
17323      ld_shlibs_GCJ=no
17324      ;;
17325    esac
17326  fi
17327
17328echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17329echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17330test "$ld_shlibs_GCJ" = no && can_build_shared=no
17331
17332variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17333if test "$GCC" = yes; then
17334  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17335fi
17336
17337#
17338# Do we need to explicitly link libc?
17339#
17340case "x$archive_cmds_need_lc_GCJ" in
17341x|xyes)
17342  # Assume -lc should be added
17343  archive_cmds_need_lc_GCJ=yes
17344
17345  if test "$enable_shared" = yes && test "$GCC" = yes; then
17346    case $archive_cmds_GCJ in
17347    *'~'*)
17348      # FIXME: we may have to deal with multi-command sequences.
17349      ;;
17350    '$CC '*)
17351      # Test whether the compiler implicitly links with -lc since on some
17352      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17353      # to ld, don't add -lc before -lgcc.
17354      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17355echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17356      $rm conftest*
17357      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17358
17359      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17360  (eval $ac_compile) 2>&5
17361  ac_status=$?
17362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363  (exit $ac_status); } 2>conftest.err; then
17364        soname=conftest
17365        lib=conftest
17366        libobjs=conftest.$ac_objext
17367        deplibs=
17368        wl=$lt_prog_compiler_wl_GCJ
17369        compiler_flags=-v
17370        linker_flags=-v
17371        verstring=
17372        output_objdir=.
17373        libname=conftest
17374        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17375        allow_undefined_flag_GCJ=
17376        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17377  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17378  ac_status=$?
17379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380  (exit $ac_status); }
17381        then
17382	  archive_cmds_need_lc_GCJ=no
17383        else
17384	  archive_cmds_need_lc_GCJ=yes
17385        fi
17386        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17387      else
17388        cat conftest.err 1>&5
17389      fi
17390      $rm conftest*
17391      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17392echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17393      ;;
17394    esac
17395  fi
17396  ;;
17397esac
17398
17399echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17401library_names_spec=
17402libname_spec='lib$name'
17403soname_spec=
17404shrext_cmds=".so"
17405postinstall_cmds=
17406postuninstall_cmds=
17407finish_cmds=
17408finish_eval=
17409shlibpath_var=
17410shlibpath_overrides_runpath=unknown
17411version_type=none
17412dynamic_linker="$host_os ld.so"
17413sys_lib_dlsearch_path_spec="/lib /usr/lib"
17414if test "$GCC" = yes; then
17415  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17416  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17417    # if the path contains ";" then we assume it to be the separator
17418    # otherwise default to the standard path separator (i.e. ":") - it is
17419    # assumed that no part of a normal pathname contains ";" but that should
17420    # okay in the real world where ";" in dirpaths is itself problematic.
17421    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17422  else
17423    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17424  fi
17425else
17426  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17427fi
17428need_lib_prefix=unknown
17429hardcode_into_libs=no
17430
17431# when you set need_version to no, make sure it does not cause -set_version
17432# flags to be left without arguments
17433need_version=unknown
17434
17435case $host_os in
17436aix3*)
17437  version_type=linux
17438  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17439  shlibpath_var=LIBPATH
17440
17441  # AIX 3 has no versioning support, so we append a major version to the name.
17442  soname_spec='${libname}${release}${shared_ext}$major'
17443  ;;
17444
17445aix4* | aix5*)
17446  version_type=linux
17447  need_lib_prefix=no
17448  need_version=no
17449  hardcode_into_libs=yes
17450  if test "$host_cpu" = ia64; then
17451    # AIX 5 supports IA64
17452    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17453    shlibpath_var=LD_LIBRARY_PATH
17454  else
17455    # With GCC up to 2.95.x, collect2 would create an import file
17456    # for dependence libraries.  The import file would start with
17457    # the line `#! .'.  This would cause the generated library to
17458    # depend on `.', always an invalid library.  This was fixed in
17459    # development snapshots of GCC prior to 3.0.
17460    case $host_os in
17461      aix4 | aix4.[01] | aix4.[01].*)
17462      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17463	   echo ' yes '
17464	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17465	:
17466      else
17467	can_build_shared=no
17468      fi
17469      ;;
17470    esac
17471    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17472    # soname into executable. Probably we can add versioning support to
17473    # collect2, so additional links can be useful in future.
17474    if test "$aix_use_runtimelinking" = yes; then
17475      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17476      # instead of lib<name>.a to let people know that these are not
17477      # typical AIX shared libraries.
17478      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17479    else
17480      # We preserve .a as extension for shared libraries through AIX4.2
17481      # and later when we are not doing run time linking.
17482      library_names_spec='${libname}${release}.a $libname.a'
17483      soname_spec='${libname}${release}${shared_ext}$major'
17484    fi
17485    shlibpath_var=LIBPATH
17486  fi
17487  ;;
17488
17489amigaos*)
17490  library_names_spec='$libname.ixlibrary $libname.a'
17491  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17492  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'
17493  ;;
17494
17495beos*)
17496  library_names_spec='${libname}${shared_ext}'
17497  dynamic_linker="$host_os ld.so"
17498  shlibpath_var=LIBRARY_PATH
17499  ;;
17500
17501bsdi[45]*)
17502  version_type=linux
17503  need_version=no
17504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505  soname_spec='${libname}${release}${shared_ext}$major'
17506  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17507  shlibpath_var=LD_LIBRARY_PATH
17508  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17509  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17510  # the default ld.so.conf also contains /usr/contrib/lib and
17511  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17512  # libtool to hard-code these into programs
17513  ;;
17514
17515cygwin* | mingw* | pw32*)
17516  version_type=windows
17517  shrext_cmds=".dll"
17518  need_version=no
17519  need_lib_prefix=no
17520
17521  case $GCC,$host_os in
17522  yes,cygwin* | yes,mingw* | yes,pw32*)
17523    library_names_spec='$libname.dll.a'
17524    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17525    postinstall_cmds='base_file=`basename \${file}`~
17526      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17527      dldir=$destdir/`dirname \$dlpath`~
17528      test -d \$dldir || mkdir -p \$dldir~
17529      $install_prog $dir/$dlname \$dldir/$dlname~
17530      chmod a+x \$dldir/$dlname'
17531    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17532      dlpath=$dir/\$dldll~
17533       $rm \$dlpath'
17534    shlibpath_overrides_runpath=yes
17535
17536    case $host_os in
17537    cygwin*)
17538      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17539      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17540      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17541      ;;
17542    mingw*)
17543      # MinGW DLLs use traditional 'lib' prefix
17544      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17545      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17546      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17547        # It is most probably a Windows format PATH printed by
17548        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17549        # path with ; separators, and with drive letters. We can handle the
17550        # drive letters (cygwin fileutils understands them), so leave them,
17551        # especially as we might pass files found there to a mingw objdump,
17552        # which wouldn't understand a cygwinified path. Ahh.
17553        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17554      else
17555        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17556      fi
17557      ;;
17558    pw32*)
17559      # pw32 DLLs use 'pw' prefix rather than 'lib'
17560      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17561      ;;
17562    esac
17563    ;;
17564
17565  *)
17566    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17567    ;;
17568  esac
17569  dynamic_linker='Win32 ld.exe'
17570  # FIXME: first we should search . and the directory the executable is in
17571  shlibpath_var=PATH
17572  ;;
17573
17574darwin* | rhapsody*)
17575  dynamic_linker="$host_os dyld"
17576  version_type=darwin
17577  need_lib_prefix=no
17578  need_version=no
17579  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17580  soname_spec='${libname}${release}${major}$shared_ext'
17581  shlibpath_overrides_runpath=yes
17582  shlibpath_var=DYLD_LIBRARY_PATH
17583  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17584  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17585  if test "$GCC" = yes; then
17586    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"`
17587  else
17588    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17589  fi
17590  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17591  ;;
17592
17593dgux*)
17594  version_type=linux
17595  need_lib_prefix=no
17596  need_version=no
17597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17598  soname_spec='${libname}${release}${shared_ext}$major'
17599  shlibpath_var=LD_LIBRARY_PATH
17600  ;;
17601
17602freebsd1*)
17603  dynamic_linker=no
17604  ;;
17605
17606kfreebsd*-gnu)
17607  version_type=linux
17608  need_lib_prefix=no
17609  need_version=no
17610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17611  soname_spec='${libname}${release}${shared_ext}$major'
17612  shlibpath_var=LD_LIBRARY_PATH
17613  shlibpath_overrides_runpath=no
17614  hardcode_into_libs=yes
17615  dynamic_linker='GNU ld.so'
17616  ;;
17617
17618freebsd* | dragonfly*)
17619  # DragonFly does not have aout.  When/if they implement a new
17620  # versioning mechanism, adjust this.
17621  if test -x /usr/bin/objformat; then
17622    objformat=`/usr/bin/objformat`
17623  else
17624    case $host_os in
17625    freebsd[123]*) objformat=aout ;;
17626    *) objformat=elf ;;
17627    esac
17628  fi
17629  version_type=freebsd-$objformat
17630  case $version_type in
17631    freebsd-elf*)
17632      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17633      need_version=no
17634      need_lib_prefix=no
17635      ;;
17636    freebsd-*)
17637      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17638      need_version=yes
17639      ;;
17640  esac
17641  shlibpath_var=LD_LIBRARY_PATH
17642  case $host_os in
17643  freebsd2*)
17644    shlibpath_overrides_runpath=yes
17645    ;;
17646  freebsd3.[01]* | freebsdelf3.[01]*)
17647    shlibpath_overrides_runpath=yes
17648    hardcode_into_libs=yes
17649    ;;
17650  *) # from 3.2 on
17651    shlibpath_overrides_runpath=no
17652    hardcode_into_libs=yes
17653    ;;
17654  esac
17655  ;;
17656
17657gnu*)
17658  version_type=linux
17659  need_lib_prefix=no
17660  need_version=no
17661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17662  soname_spec='${libname}${release}${shared_ext}$major'
17663  shlibpath_var=LD_LIBRARY_PATH
17664  hardcode_into_libs=yes
17665  ;;
17666
17667hpux9* | hpux10* | hpux11*)
17668  # Give a soname corresponding to the major version so that dld.sl refuses to
17669  # link against other versions.
17670  version_type=sunos
17671  need_lib_prefix=no
17672  need_version=no
17673  case $host_cpu in
17674  ia64*)
17675    shrext_cmds='.so'
17676    hardcode_into_libs=yes
17677    dynamic_linker="$host_os dld.so"
17678    shlibpath_var=LD_LIBRARY_PATH
17679    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17681    soname_spec='${libname}${release}${shared_ext}$major'
17682    if test "X$HPUX_IA64_MODE" = X32; then
17683      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17684    else
17685      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17686    fi
17687    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17688    ;;
17689   hppa*64*)
17690     shrext_cmds='.sl'
17691     hardcode_into_libs=yes
17692     dynamic_linker="$host_os dld.sl"
17693     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17694     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17696     soname_spec='${libname}${release}${shared_ext}$major'
17697     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17698     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17699     ;;
17700   *)
17701    shrext_cmds='.sl'
17702    dynamic_linker="$host_os dld.sl"
17703    shlibpath_var=SHLIB_PATH
17704    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17705    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17706    soname_spec='${libname}${release}${shared_ext}$major'
17707    ;;
17708  esac
17709  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17710  postinstall_cmds='chmod 555 $lib'
17711  ;;
17712
17713irix5* | irix6* | nonstopux*)
17714  case $host_os in
17715    nonstopux*) version_type=nonstopux ;;
17716    *)
17717	if test "$lt_cv_prog_gnu_ld" = yes; then
17718		version_type=linux
17719	else
17720		version_type=irix
17721	fi ;;
17722  esac
17723  need_lib_prefix=no
17724  need_version=no
17725  soname_spec='${libname}${release}${shared_ext}$major'
17726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17727  case $host_os in
17728  irix5* | nonstopux*)
17729    libsuff= shlibsuff=
17730    ;;
17731  *)
17732    case $LD in # libtool.m4 will add one of these switches to LD
17733    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17734      libsuff= shlibsuff= libmagic=32-bit;;
17735    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17736      libsuff=32 shlibsuff=N32 libmagic=N32;;
17737    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17738      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17739    *) libsuff= shlibsuff= libmagic=never-match;;
17740    esac
17741    ;;
17742  esac
17743  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17744  shlibpath_overrides_runpath=no
17745  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17746  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17747  hardcode_into_libs=yes
17748  ;;
17749
17750# No shared lib support for Linux oldld, aout, or coff.
17751linux*oldld* | linux*aout* | linux*coff*)
17752  dynamic_linker=no
17753  ;;
17754
17755# This must be Linux ELF.
17756linux*)
17757  version_type=linux
17758  need_lib_prefix=no
17759  need_version=no
17760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17761  soname_spec='${libname}${release}${shared_ext}$major'
17762  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17763  shlibpath_var=LD_LIBRARY_PATH
17764  shlibpath_overrides_runpath=no
17765  # This implies no fast_install, which is unacceptable.
17766  # Some rework will be needed to allow for fast_install
17767  # before this can be enabled.
17768  hardcode_into_libs=yes
17769
17770  # Append ld.so.conf contents to the search path
17771  if test -f /etc/ld.so.conf; then
17772    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17773    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17774  fi
17775
17776  # We used to test for /lib/ld.so.1 and disable shared libraries on
17777  # powerpc, because MkLinux only supported shared libraries with the
17778  # GNU dynamic linker.  Since this was broken with cross compilers,
17779  # most powerpc-linux boxes support dynamic linking these days and
17780  # people can always --disable-shared, the test was removed, and we
17781  # assume the GNU/Linux dynamic linker is in use.
17782  dynamic_linker='GNU/Linux ld.so'
17783  ;;
17784
17785knetbsd*-gnu)
17786  version_type=linux
17787  need_lib_prefix=no
17788  need_version=no
17789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17790  soname_spec='${libname}${release}${shared_ext}$major'
17791  shlibpath_var=LD_LIBRARY_PATH
17792  shlibpath_overrides_runpath=no
17793  hardcode_into_libs=yes
17794  dynamic_linker='GNU ld.so'
17795  ;;
17796
17797netbsd*)
17798  version_type=sunos
17799  need_lib_prefix=no
17800  need_version=no
17801  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17802    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17803    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17804    dynamic_linker='NetBSD (a.out) ld.so'
17805  else
17806    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17807    soname_spec='${libname}${release}${shared_ext}$major'
17808    dynamic_linker='NetBSD ld.elf_so'
17809  fi
17810  shlibpath_var=LD_LIBRARY_PATH
17811  shlibpath_overrides_runpath=yes
17812  hardcode_into_libs=yes
17813  ;;
17814
17815newsos6)
17816  version_type=linux
17817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818  shlibpath_var=LD_LIBRARY_PATH
17819  shlibpath_overrides_runpath=yes
17820  ;;
17821
17822nto-qnx*)
17823  version_type=linux
17824  need_lib_prefix=no
17825  need_version=no
17826  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17827  soname_spec='${libname}${release}${shared_ext}$major'
17828  shlibpath_var=LD_LIBRARY_PATH
17829  shlibpath_overrides_runpath=yes
17830  ;;
17831
17832openbsd*)
17833  version_type=sunos
17834  need_lib_prefix=no
17835  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17836  case $host_os in
17837    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17838    *)                         need_version=no  ;;
17839  esac
17840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17841  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17842  shlibpath_var=LD_LIBRARY_PATH
17843  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17844    case $host_os in
17845      openbsd2.[89] | openbsd2.[89].*)
17846	shlibpath_overrides_runpath=no
17847	;;
17848      *)
17849	shlibpath_overrides_runpath=yes
17850	;;
17851      esac
17852  else
17853    shlibpath_overrides_runpath=yes
17854  fi
17855  ;;
17856
17857os2*)
17858  libname_spec='$name'
17859  shrext_cmds=".dll"
17860  need_lib_prefix=no
17861  library_names_spec='$libname${shared_ext} $libname.a'
17862  dynamic_linker='OS/2 ld.exe'
17863  shlibpath_var=LIBPATH
17864  ;;
17865
17866osf3* | osf4* | osf5*)
17867  version_type=osf
17868  need_lib_prefix=no
17869  need_version=no
17870  soname_spec='${libname}${release}${shared_ext}$major'
17871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17872  shlibpath_var=LD_LIBRARY_PATH
17873  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17874  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17875  ;;
17876
17877sco3.2v5*)
17878  version_type=osf
17879  soname_spec='${libname}${release}${shared_ext}$major'
17880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881  shlibpath_var=LD_LIBRARY_PATH
17882  ;;
17883
17884solaris*)
17885  version_type=linux
17886  need_lib_prefix=no
17887  need_version=no
17888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17889  soname_spec='${libname}${release}${shared_ext}$major'
17890  shlibpath_var=LD_LIBRARY_PATH
17891  shlibpath_overrides_runpath=yes
17892  hardcode_into_libs=yes
17893  # ldd complains unless libraries are executable
17894  postinstall_cmds='chmod +x $lib'
17895  ;;
17896
17897sunos4*)
17898  version_type=sunos
17899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17900  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17901  shlibpath_var=LD_LIBRARY_PATH
17902  shlibpath_overrides_runpath=yes
17903  if test "$with_gnu_ld" = yes; then
17904    need_lib_prefix=no
17905  fi
17906  need_version=yes
17907  ;;
17908
17909sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17910  version_type=linux
17911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17912  soname_spec='${libname}${release}${shared_ext}$major'
17913  shlibpath_var=LD_LIBRARY_PATH
17914  case $host_vendor in
17915    sni)
17916      shlibpath_overrides_runpath=no
17917      need_lib_prefix=no
17918      export_dynamic_flag_spec='${wl}-Blargedynsym'
17919      runpath_var=LD_RUN_PATH
17920      ;;
17921    siemens)
17922      need_lib_prefix=no
17923      ;;
17924    motorola)
17925      need_lib_prefix=no
17926      need_version=no
17927      shlibpath_overrides_runpath=no
17928      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17929      ;;
17930  esac
17931  ;;
17932
17933sysv4*MP*)
17934  if test -d /usr/nec ;then
17935    version_type=linux
17936    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17937    soname_spec='$libname${shared_ext}.$major'
17938    shlibpath_var=LD_LIBRARY_PATH
17939  fi
17940  ;;
17941
17942uts4*)
17943  version_type=linux
17944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945  soname_spec='${libname}${release}${shared_ext}$major'
17946  shlibpath_var=LD_LIBRARY_PATH
17947  ;;
17948
17949*)
17950  dynamic_linker=no
17951  ;;
17952esac
17953echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17954echo "${ECHO_T}$dynamic_linker" >&6
17955test "$dynamic_linker" = no && can_build_shared=no
17956
17957echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17958echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17959hardcode_action_GCJ=
17960if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17961   test -n "$runpath_var_GCJ" || \
17962   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17963
17964  # We can hardcode non-existant directories.
17965  if test "$hardcode_direct_GCJ" != no &&
17966     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17967     # have to relink, otherwise we might link with an installed library
17968     # when we should be linking with a yet-to-be-installed one
17969     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17970     test "$hardcode_minus_L_GCJ" != no; then
17971    # Linking always hardcodes the temporary library directory.
17972    hardcode_action_GCJ=relink
17973  else
17974    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17975    hardcode_action_GCJ=immediate
17976  fi
17977else
17978  # We cannot hardcode anything, or else we can only hardcode existing
17979  # directories.
17980  hardcode_action_GCJ=unsupported
17981fi
17982echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17983echo "${ECHO_T}$hardcode_action_GCJ" >&6
17984
17985if test "$hardcode_action_GCJ" = relink; then
17986  # Fast installation is not supported
17987  enable_fast_install=no
17988elif test "$shlibpath_overrides_runpath" = yes ||
17989     test "$enable_shared" = no; then
17990  # Fast installation is not necessary
17991  enable_fast_install=needless
17992fi
17993
17994striplib=
17995old_striplib=
17996echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17997echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17998if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17999  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18000  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18001  echo "$as_me:$LINENO: result: yes" >&5
18002echo "${ECHO_T}yes" >&6
18003else
18004# FIXME - insert some real tests, host_os isn't really good enough
18005  case $host_os in
18006   darwin*)
18007       if test -n "$STRIP" ; then
18008         striplib="$STRIP -x"
18009         echo "$as_me:$LINENO: result: yes" >&5
18010echo "${ECHO_T}yes" >&6
18011       else
18012  echo "$as_me:$LINENO: result: no" >&5
18013echo "${ECHO_T}no" >&6
18014fi
18015       ;;
18016   *)
18017  echo "$as_me:$LINENO: result: no" >&5
18018echo "${ECHO_T}no" >&6
18019    ;;
18020  esac
18021fi
18022
18023if test "x$enable_dlopen" != xyes; then
18024  enable_dlopen=unknown
18025  enable_dlopen_self=unknown
18026  enable_dlopen_self_static=unknown
18027else
18028  lt_cv_dlopen=no
18029  lt_cv_dlopen_libs=
18030
18031  case $host_os in
18032  beos*)
18033    lt_cv_dlopen="load_add_on"
18034    lt_cv_dlopen_libs=
18035    lt_cv_dlopen_self=yes
18036    ;;
18037
18038  mingw* | pw32*)
18039    lt_cv_dlopen="LoadLibrary"
18040    lt_cv_dlopen_libs=
18041   ;;
18042
18043  cygwin*)
18044    lt_cv_dlopen="dlopen"
18045    lt_cv_dlopen_libs=
18046   ;;
18047
18048  darwin*)
18049  # if libdl is installed we need to link against it
18050    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18051echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18052if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18053  echo $ECHO_N "(cached) $ECHO_C" >&6
18054else
18055  ac_check_lib_save_LIBS=$LIBS
18056LIBS="-ldl  $LIBS"
18057cat >conftest.$ac_ext <<_ACEOF
18058/* confdefs.h.  */
18059_ACEOF
18060cat confdefs.h >>conftest.$ac_ext
18061cat >>conftest.$ac_ext <<_ACEOF
18062/* end confdefs.h.  */
18063
18064/* Override any gcc2 internal prototype to avoid an error.  */
18065#ifdef __cplusplus
18066extern "C"
18067#endif
18068/* We use char because int might match the return type of a gcc2
18069   builtin and then its argument prototype would still apply.  */
18070char dlopen ();
18071int
18072main ()
18073{
18074dlopen ();
18075  ;
18076  return 0;
18077}
18078_ACEOF
18079rm -f conftest.$ac_objext conftest$ac_exeext
18080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18081  (eval $ac_link) 2>conftest.er1
18082  ac_status=$?
18083  grep -v '^ *+' conftest.er1 >conftest.err
18084  rm -f conftest.er1
18085  cat conftest.err >&5
18086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087  (exit $ac_status); } &&
18088	 { ac_try='test -z "$ac_c_werror_flag"
18089			 || test ! -s conftest.err'
18090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091  (eval $ac_try) 2>&5
18092  ac_status=$?
18093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094  (exit $ac_status); }; } &&
18095	 { ac_try='test -s conftest$ac_exeext'
18096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097  (eval $ac_try) 2>&5
18098  ac_status=$?
18099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100  (exit $ac_status); }; }; then
18101  ac_cv_lib_dl_dlopen=yes
18102else
18103  echo "$as_me: failed program was:" >&5
18104sed 's/^/| /' conftest.$ac_ext >&5
18105
18106ac_cv_lib_dl_dlopen=no
18107fi
18108rm -f conftest.err conftest.$ac_objext \
18109      conftest$ac_exeext conftest.$ac_ext
18110LIBS=$ac_check_lib_save_LIBS
18111fi
18112echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18113echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18114if test $ac_cv_lib_dl_dlopen = yes; then
18115  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18116else
18117
18118    lt_cv_dlopen="dyld"
18119    lt_cv_dlopen_libs=
18120    lt_cv_dlopen_self=yes
18121
18122fi
18123
18124   ;;
18125
18126  *)
18127    echo "$as_me:$LINENO: checking for shl_load" >&5
18128echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18129if test "${ac_cv_func_shl_load+set}" = set; then
18130  echo $ECHO_N "(cached) $ECHO_C" >&6
18131else
18132  cat >conftest.$ac_ext <<_ACEOF
18133/* confdefs.h.  */
18134_ACEOF
18135cat confdefs.h >>conftest.$ac_ext
18136cat >>conftest.$ac_ext <<_ACEOF
18137/* end confdefs.h.  */
18138/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18139   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18140#define shl_load innocuous_shl_load
18141
18142/* System header to define __stub macros and hopefully few prototypes,
18143    which can conflict with char shl_load (); below.
18144    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18145    <limits.h> exists even on freestanding compilers.  */
18146
18147#ifdef __STDC__
18148# include <limits.h>
18149#else
18150# include <assert.h>
18151#endif
18152
18153#undef shl_load
18154
18155/* Override any gcc2 internal prototype to avoid an error.  */
18156#ifdef __cplusplus
18157extern "C"
18158{
18159#endif
18160/* We use char because int might match the return type of a gcc2
18161   builtin and then its argument prototype would still apply.  */
18162char shl_load ();
18163/* The GNU C library defines this for functions which it implements
18164    to always fail with ENOSYS.  Some functions are actually named
18165    something starting with __ and the normal name is an alias.  */
18166#if defined (__stub_shl_load) || defined (__stub___shl_load)
18167choke me
18168#else
18169char (*f) () = shl_load;
18170#endif
18171#ifdef __cplusplus
18172}
18173#endif
18174
18175int
18176main ()
18177{
18178return f != shl_load;
18179  ;
18180  return 0;
18181}
18182_ACEOF
18183rm -f conftest.$ac_objext conftest$ac_exeext
18184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18185  (eval $ac_link) 2>conftest.er1
18186  ac_status=$?
18187  grep -v '^ *+' conftest.er1 >conftest.err
18188  rm -f conftest.er1
18189  cat conftest.err >&5
18190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191  (exit $ac_status); } &&
18192	 { ac_try='test -z "$ac_c_werror_flag"
18193			 || test ! -s conftest.err'
18194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18195  (eval $ac_try) 2>&5
18196  ac_status=$?
18197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198  (exit $ac_status); }; } &&
18199	 { ac_try='test -s conftest$ac_exeext'
18200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201  (eval $ac_try) 2>&5
18202  ac_status=$?
18203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204  (exit $ac_status); }; }; then
18205  ac_cv_func_shl_load=yes
18206else
18207  echo "$as_me: failed program was:" >&5
18208sed 's/^/| /' conftest.$ac_ext >&5
18209
18210ac_cv_func_shl_load=no
18211fi
18212rm -f conftest.err conftest.$ac_objext \
18213      conftest$ac_exeext conftest.$ac_ext
18214fi
18215echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18216echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18217if test $ac_cv_func_shl_load = yes; then
18218  lt_cv_dlopen="shl_load"
18219else
18220  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18221echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18222if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18223  echo $ECHO_N "(cached) $ECHO_C" >&6
18224else
18225  ac_check_lib_save_LIBS=$LIBS
18226LIBS="-ldld  $LIBS"
18227cat >conftest.$ac_ext <<_ACEOF
18228/* confdefs.h.  */
18229_ACEOF
18230cat confdefs.h >>conftest.$ac_ext
18231cat >>conftest.$ac_ext <<_ACEOF
18232/* end confdefs.h.  */
18233
18234/* Override any gcc2 internal prototype to avoid an error.  */
18235#ifdef __cplusplus
18236extern "C"
18237#endif
18238/* We use char because int might match the return type of a gcc2
18239   builtin and then its argument prototype would still apply.  */
18240char shl_load ();
18241int
18242main ()
18243{
18244shl_load ();
18245  ;
18246  return 0;
18247}
18248_ACEOF
18249rm -f conftest.$ac_objext conftest$ac_exeext
18250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18251  (eval $ac_link) 2>conftest.er1
18252  ac_status=$?
18253  grep -v '^ *+' conftest.er1 >conftest.err
18254  rm -f conftest.er1
18255  cat conftest.err >&5
18256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257  (exit $ac_status); } &&
18258	 { ac_try='test -z "$ac_c_werror_flag"
18259			 || test ! -s conftest.err'
18260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261  (eval $ac_try) 2>&5
18262  ac_status=$?
18263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264  (exit $ac_status); }; } &&
18265	 { ac_try='test -s conftest$ac_exeext'
18266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267  (eval $ac_try) 2>&5
18268  ac_status=$?
18269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270  (exit $ac_status); }; }; then
18271  ac_cv_lib_dld_shl_load=yes
18272else
18273  echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276ac_cv_lib_dld_shl_load=no
18277fi
18278rm -f conftest.err conftest.$ac_objext \
18279      conftest$ac_exeext conftest.$ac_ext
18280LIBS=$ac_check_lib_save_LIBS
18281fi
18282echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18283echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18284if test $ac_cv_lib_dld_shl_load = yes; then
18285  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18286else
18287  echo "$as_me:$LINENO: checking for dlopen" >&5
18288echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18289if test "${ac_cv_func_dlopen+set}" = set; then
18290  echo $ECHO_N "(cached) $ECHO_C" >&6
18291else
18292  cat >conftest.$ac_ext <<_ACEOF
18293/* confdefs.h.  */
18294_ACEOF
18295cat confdefs.h >>conftest.$ac_ext
18296cat >>conftest.$ac_ext <<_ACEOF
18297/* end confdefs.h.  */
18298/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18299   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18300#define dlopen innocuous_dlopen
18301
18302/* System header to define __stub macros and hopefully few prototypes,
18303    which can conflict with char dlopen (); below.
18304    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18305    <limits.h> exists even on freestanding compilers.  */
18306
18307#ifdef __STDC__
18308# include <limits.h>
18309#else
18310# include <assert.h>
18311#endif
18312
18313#undef dlopen
18314
18315/* Override any gcc2 internal prototype to avoid an error.  */
18316#ifdef __cplusplus
18317extern "C"
18318{
18319#endif
18320/* We use char because int might match the return type of a gcc2
18321   builtin and then its argument prototype would still apply.  */
18322char dlopen ();
18323/* The GNU C library defines this for functions which it implements
18324    to always fail with ENOSYS.  Some functions are actually named
18325    something starting with __ and the normal name is an alias.  */
18326#if defined (__stub_dlopen) || defined (__stub___dlopen)
18327choke me
18328#else
18329char (*f) () = dlopen;
18330#endif
18331#ifdef __cplusplus
18332}
18333#endif
18334
18335int
18336main ()
18337{
18338return f != dlopen;
18339  ;
18340  return 0;
18341}
18342_ACEOF
18343rm -f conftest.$ac_objext conftest$ac_exeext
18344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18345  (eval $ac_link) 2>conftest.er1
18346  ac_status=$?
18347  grep -v '^ *+' conftest.er1 >conftest.err
18348  rm -f conftest.er1
18349  cat conftest.err >&5
18350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351  (exit $ac_status); } &&
18352	 { ac_try='test -z "$ac_c_werror_flag"
18353			 || test ! -s conftest.err'
18354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355  (eval $ac_try) 2>&5
18356  ac_status=$?
18357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358  (exit $ac_status); }; } &&
18359	 { ac_try='test -s conftest$ac_exeext'
18360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361  (eval $ac_try) 2>&5
18362  ac_status=$?
18363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364  (exit $ac_status); }; }; then
18365  ac_cv_func_dlopen=yes
18366else
18367  echo "$as_me: failed program was:" >&5
18368sed 's/^/| /' conftest.$ac_ext >&5
18369
18370ac_cv_func_dlopen=no
18371fi
18372rm -f conftest.err conftest.$ac_objext \
18373      conftest$ac_exeext conftest.$ac_ext
18374fi
18375echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18376echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18377if test $ac_cv_func_dlopen = yes; then
18378  lt_cv_dlopen="dlopen"
18379else
18380  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18381echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18382if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18383  echo $ECHO_N "(cached) $ECHO_C" >&6
18384else
18385  ac_check_lib_save_LIBS=$LIBS
18386LIBS="-ldl  $LIBS"
18387cat >conftest.$ac_ext <<_ACEOF
18388/* confdefs.h.  */
18389_ACEOF
18390cat confdefs.h >>conftest.$ac_ext
18391cat >>conftest.$ac_ext <<_ACEOF
18392/* end confdefs.h.  */
18393
18394/* Override any gcc2 internal prototype to avoid an error.  */
18395#ifdef __cplusplus
18396extern "C"
18397#endif
18398/* We use char because int might match the return type of a gcc2
18399   builtin and then its argument prototype would still apply.  */
18400char dlopen ();
18401int
18402main ()
18403{
18404dlopen ();
18405  ;
18406  return 0;
18407}
18408_ACEOF
18409rm -f conftest.$ac_objext conftest$ac_exeext
18410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18411  (eval $ac_link) 2>conftest.er1
18412  ac_status=$?
18413  grep -v '^ *+' conftest.er1 >conftest.err
18414  rm -f conftest.er1
18415  cat conftest.err >&5
18416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417  (exit $ac_status); } &&
18418	 { ac_try='test -z "$ac_c_werror_flag"
18419			 || test ! -s conftest.err'
18420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18421  (eval $ac_try) 2>&5
18422  ac_status=$?
18423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424  (exit $ac_status); }; } &&
18425	 { ac_try='test -s conftest$ac_exeext'
18426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427  (eval $ac_try) 2>&5
18428  ac_status=$?
18429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430  (exit $ac_status); }; }; then
18431  ac_cv_lib_dl_dlopen=yes
18432else
18433  echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
18436ac_cv_lib_dl_dlopen=no
18437fi
18438rm -f conftest.err conftest.$ac_objext \
18439      conftest$ac_exeext conftest.$ac_ext
18440LIBS=$ac_check_lib_save_LIBS
18441fi
18442echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18443echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18444if test $ac_cv_lib_dl_dlopen = yes; then
18445  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18446else
18447  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18448echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18449if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18450  echo $ECHO_N "(cached) $ECHO_C" >&6
18451else
18452  ac_check_lib_save_LIBS=$LIBS
18453LIBS="-lsvld  $LIBS"
18454cat >conftest.$ac_ext <<_ACEOF
18455/* confdefs.h.  */
18456_ACEOF
18457cat confdefs.h >>conftest.$ac_ext
18458cat >>conftest.$ac_ext <<_ACEOF
18459/* end confdefs.h.  */
18460
18461/* Override any gcc2 internal prototype to avoid an error.  */
18462#ifdef __cplusplus
18463extern "C"
18464#endif
18465/* We use char because int might match the return type of a gcc2
18466   builtin and then its argument prototype would still apply.  */
18467char dlopen ();
18468int
18469main ()
18470{
18471dlopen ();
18472  ;
18473  return 0;
18474}
18475_ACEOF
18476rm -f conftest.$ac_objext conftest$ac_exeext
18477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18478  (eval $ac_link) 2>conftest.er1
18479  ac_status=$?
18480  grep -v '^ *+' conftest.er1 >conftest.err
18481  rm -f conftest.er1
18482  cat conftest.err >&5
18483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484  (exit $ac_status); } &&
18485	 { ac_try='test -z "$ac_c_werror_flag"
18486			 || test ! -s conftest.err'
18487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488  (eval $ac_try) 2>&5
18489  ac_status=$?
18490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491  (exit $ac_status); }; } &&
18492	 { ac_try='test -s conftest$ac_exeext'
18493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18494  (eval $ac_try) 2>&5
18495  ac_status=$?
18496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18497  (exit $ac_status); }; }; then
18498  ac_cv_lib_svld_dlopen=yes
18499else
18500  echo "$as_me: failed program was:" >&5
18501sed 's/^/| /' conftest.$ac_ext >&5
18502
18503ac_cv_lib_svld_dlopen=no
18504fi
18505rm -f conftest.err conftest.$ac_objext \
18506      conftest$ac_exeext conftest.$ac_ext
18507LIBS=$ac_check_lib_save_LIBS
18508fi
18509echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18510echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18511if test $ac_cv_lib_svld_dlopen = yes; then
18512  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18513else
18514  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18515echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18516if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18517  echo $ECHO_N "(cached) $ECHO_C" >&6
18518else
18519  ac_check_lib_save_LIBS=$LIBS
18520LIBS="-ldld  $LIBS"
18521cat >conftest.$ac_ext <<_ACEOF
18522/* confdefs.h.  */
18523_ACEOF
18524cat confdefs.h >>conftest.$ac_ext
18525cat >>conftest.$ac_ext <<_ACEOF
18526/* end confdefs.h.  */
18527
18528/* Override any gcc2 internal prototype to avoid an error.  */
18529#ifdef __cplusplus
18530extern "C"
18531#endif
18532/* We use char because int might match the return type of a gcc2
18533   builtin and then its argument prototype would still apply.  */
18534char dld_link ();
18535int
18536main ()
18537{
18538dld_link ();
18539  ;
18540  return 0;
18541}
18542_ACEOF
18543rm -f conftest.$ac_objext conftest$ac_exeext
18544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545  (eval $ac_link) 2>conftest.er1
18546  ac_status=$?
18547  grep -v '^ *+' conftest.er1 >conftest.err
18548  rm -f conftest.er1
18549  cat conftest.err >&5
18550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551  (exit $ac_status); } &&
18552	 { ac_try='test -z "$ac_c_werror_flag"
18553			 || test ! -s conftest.err'
18554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555  (eval $ac_try) 2>&5
18556  ac_status=$?
18557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558  (exit $ac_status); }; } &&
18559	 { ac_try='test -s conftest$ac_exeext'
18560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561  (eval $ac_try) 2>&5
18562  ac_status=$?
18563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564  (exit $ac_status); }; }; then
18565  ac_cv_lib_dld_dld_link=yes
18566else
18567  echo "$as_me: failed program was:" >&5
18568sed 's/^/| /' conftest.$ac_ext >&5
18569
18570ac_cv_lib_dld_dld_link=no
18571fi
18572rm -f conftest.err conftest.$ac_objext \
18573      conftest$ac_exeext conftest.$ac_ext
18574LIBS=$ac_check_lib_save_LIBS
18575fi
18576echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18577echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18578if test $ac_cv_lib_dld_dld_link = yes; then
18579  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18580fi
18581
18582
18583fi
18584
18585
18586fi
18587
18588
18589fi
18590
18591
18592fi
18593
18594
18595fi
18596
18597    ;;
18598  esac
18599
18600  if test "x$lt_cv_dlopen" != xno; then
18601    enable_dlopen=yes
18602  else
18603    enable_dlopen=no
18604  fi
18605
18606  case $lt_cv_dlopen in
18607  dlopen)
18608    save_CPPFLAGS="$CPPFLAGS"
18609    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18610
18611    save_LDFLAGS="$LDFLAGS"
18612    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18613
18614    save_LIBS="$LIBS"
18615    LIBS="$lt_cv_dlopen_libs $LIBS"
18616
18617    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18618echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18619if test "${lt_cv_dlopen_self+set}" = set; then
18620  echo $ECHO_N "(cached) $ECHO_C" >&6
18621else
18622  	  if test "$cross_compiling" = yes; then :
18623  lt_cv_dlopen_self=cross
18624else
18625  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18626  lt_status=$lt_dlunknown
18627  cat > conftest.$ac_ext <<EOF
18628#line 18628 "configure"
18629#include "confdefs.h"
18630
18631#if HAVE_DLFCN_H
18632#include <dlfcn.h>
18633#endif
18634
18635#include <stdio.h>
18636
18637#ifdef RTLD_GLOBAL
18638#  define LT_DLGLOBAL		RTLD_GLOBAL
18639#else
18640#  ifdef DL_GLOBAL
18641#    define LT_DLGLOBAL		DL_GLOBAL
18642#  else
18643#    define LT_DLGLOBAL		0
18644#  endif
18645#endif
18646
18647/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18648   find out it does not work in some platform. */
18649#ifndef LT_DLLAZY_OR_NOW
18650#  ifdef RTLD_LAZY
18651#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18652#  else
18653#    ifdef DL_LAZY
18654#      define LT_DLLAZY_OR_NOW		DL_LAZY
18655#    else
18656#      ifdef RTLD_NOW
18657#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18658#      else
18659#        ifdef DL_NOW
18660#          define LT_DLLAZY_OR_NOW	DL_NOW
18661#        else
18662#          define LT_DLLAZY_OR_NOW	0
18663#        endif
18664#      endif
18665#    endif
18666#  endif
18667#endif
18668
18669#ifdef __cplusplus
18670extern "C" void exit (int);
18671#endif
18672
18673void fnord() { int i=42;}
18674int main ()
18675{
18676  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18677  int status = $lt_dlunknown;
18678
18679  if (self)
18680    {
18681      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18682      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18683      /* dlclose (self); */
18684    }
18685
18686    exit (status);
18687}
18688EOF
18689  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690  (eval $ac_link) 2>&5
18691  ac_status=$?
18692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18694    (./conftest; exit; ) >&5 2>/dev/null
18695    lt_status=$?
18696    case x$lt_status in
18697      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18698      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18699      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18700    esac
18701  else :
18702    # compilation failed
18703    lt_cv_dlopen_self=no
18704  fi
18705fi
18706rm -fr conftest*
18707
18708
18709fi
18710echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18711echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18712
18713    if test "x$lt_cv_dlopen_self" = xyes; then
18714      LDFLAGS="$LDFLAGS $link_static_flag"
18715      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18716echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18717if test "${lt_cv_dlopen_self_static+set}" = set; then
18718  echo $ECHO_N "(cached) $ECHO_C" >&6
18719else
18720  	  if test "$cross_compiling" = yes; then :
18721  lt_cv_dlopen_self_static=cross
18722else
18723  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18724  lt_status=$lt_dlunknown
18725  cat > conftest.$ac_ext <<EOF
18726#line 18726 "configure"
18727#include "confdefs.h"
18728
18729#if HAVE_DLFCN_H
18730#include <dlfcn.h>
18731#endif
18732
18733#include <stdio.h>
18734
18735#ifdef RTLD_GLOBAL
18736#  define LT_DLGLOBAL		RTLD_GLOBAL
18737#else
18738#  ifdef DL_GLOBAL
18739#    define LT_DLGLOBAL		DL_GLOBAL
18740#  else
18741#    define LT_DLGLOBAL		0
18742#  endif
18743#endif
18744
18745/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18746   find out it does not work in some platform. */
18747#ifndef LT_DLLAZY_OR_NOW
18748#  ifdef RTLD_LAZY
18749#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18750#  else
18751#    ifdef DL_LAZY
18752#      define LT_DLLAZY_OR_NOW		DL_LAZY
18753#    else
18754#      ifdef RTLD_NOW
18755#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18756#      else
18757#        ifdef DL_NOW
18758#          define LT_DLLAZY_OR_NOW	DL_NOW
18759#        else
18760#          define LT_DLLAZY_OR_NOW	0
18761#        endif
18762#      endif
18763#    endif
18764#  endif
18765#endif
18766
18767#ifdef __cplusplus
18768extern "C" void exit (int);
18769#endif
18770
18771void fnord() { int i=42;}
18772int main ()
18773{
18774  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18775  int status = $lt_dlunknown;
18776
18777  if (self)
18778    {
18779      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18780      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18781      /* dlclose (self); */
18782    }
18783
18784    exit (status);
18785}
18786EOF
18787  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18788  (eval $ac_link) 2>&5
18789  ac_status=$?
18790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18792    (./conftest; exit; ) >&5 2>/dev/null
18793    lt_status=$?
18794    case x$lt_status in
18795      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18796      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18797      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18798    esac
18799  else :
18800    # compilation failed
18801    lt_cv_dlopen_self_static=no
18802  fi
18803fi
18804rm -fr conftest*
18805
18806
18807fi
18808echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18809echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18810    fi
18811
18812    CPPFLAGS="$save_CPPFLAGS"
18813    LDFLAGS="$save_LDFLAGS"
18814    LIBS="$save_LIBS"
18815    ;;
18816  esac
18817
18818  case $lt_cv_dlopen_self in
18819  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18820  *) enable_dlopen_self=unknown ;;
18821  esac
18822
18823  case $lt_cv_dlopen_self_static in
18824  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18825  *) enable_dlopen_self_static=unknown ;;
18826  esac
18827fi
18828
18829
18830# The else clause should only fire when bootstrapping the
18831# libtool distribution, otherwise you forgot to ship ltmain.sh
18832# with your package, and you will get complaints that there are
18833# no rules to generate ltmain.sh.
18834if test -f "$ltmain"; then
18835  # See if we are running on zsh, and set the options which allow our commands through
18836  # without removal of \ escapes.
18837  if test -n "${ZSH_VERSION+set}" ; then
18838    setopt NO_GLOB_SUBST
18839  fi
18840  # Now quote all the things that may contain metacharacters while being
18841  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18842  # variables and quote the copies for generation of the libtool script.
18843  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18844    SED SHELL STRIP \
18845    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18846    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18847    deplibs_check_method reload_flag reload_cmds need_locks \
18848    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18849    lt_cv_sys_global_symbol_to_c_name_address \
18850    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18851    old_postinstall_cmds old_postuninstall_cmds \
18852    compiler_GCJ \
18853    CC_GCJ \
18854    LD_GCJ \
18855    lt_prog_compiler_wl_GCJ \
18856    lt_prog_compiler_pic_GCJ \
18857    lt_prog_compiler_static_GCJ \
18858    lt_prog_compiler_no_builtin_flag_GCJ \
18859    export_dynamic_flag_spec_GCJ \
18860    thread_safe_flag_spec_GCJ \
18861    whole_archive_flag_spec_GCJ \
18862    enable_shared_with_static_runtimes_GCJ \
18863    old_archive_cmds_GCJ \
18864    old_archive_from_new_cmds_GCJ \
18865    predep_objects_GCJ \
18866    postdep_objects_GCJ \
18867    predeps_GCJ \
18868    postdeps_GCJ \
18869    compiler_lib_search_path_GCJ \
18870    archive_cmds_GCJ \
18871    archive_expsym_cmds_GCJ \
18872    postinstall_cmds_GCJ \
18873    postuninstall_cmds_GCJ \
18874    old_archive_from_expsyms_cmds_GCJ \
18875    allow_undefined_flag_GCJ \
18876    no_undefined_flag_GCJ \
18877    export_symbols_cmds_GCJ \
18878    hardcode_libdir_flag_spec_GCJ \
18879    hardcode_libdir_flag_spec_ld_GCJ \
18880    hardcode_libdir_separator_GCJ \
18881    hardcode_automatic_GCJ \
18882    module_cmds_GCJ \
18883    module_expsym_cmds_GCJ \
18884    lt_cv_prog_compiler_c_o_GCJ \
18885    exclude_expsyms_GCJ \
18886    include_expsyms_GCJ; do
18887
18888    case $var in
18889    old_archive_cmds_GCJ | \
18890    old_archive_from_new_cmds_GCJ | \
18891    archive_cmds_GCJ | \
18892    archive_expsym_cmds_GCJ | \
18893    module_cmds_GCJ | \
18894    module_expsym_cmds_GCJ | \
18895    old_archive_from_expsyms_cmds_GCJ | \
18896    export_symbols_cmds_GCJ | \
18897    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18898    postinstall_cmds | postuninstall_cmds | \
18899    old_postinstall_cmds | old_postuninstall_cmds | \
18900    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18901      # Double-quote double-evaled strings.
18902      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18903      ;;
18904    *)
18905      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18906      ;;
18907    esac
18908  done
18909
18910  case $lt_echo in
18911  *'\$0 --fallback-echo"')
18912    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18913    ;;
18914  esac
18915
18916cfgfile="$ofile"
18917
18918  cat <<__EOF__ >> "$cfgfile"
18919# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18920
18921# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18922
18923# Shell to use when invoking shell scripts.
18924SHELL=$lt_SHELL
18925
18926# Whether or not to build shared libraries.
18927build_libtool_libs=$enable_shared
18928
18929# Whether or not to build static libraries.
18930build_old_libs=$enable_static
18931
18932# Whether or not to add -lc for building shared libraries.
18933build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18934
18935# Whether or not to disallow shared libs when runtime libs are static
18936allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18937
18938# Whether or not to optimize for fast installation.
18939fast_install=$enable_fast_install
18940
18941# The host system.
18942host_alias=$host_alias
18943host=$host
18944host_os=$host_os
18945
18946# The build system.
18947build_alias=$build_alias
18948build=$build
18949build_os=$build_os
18950
18951# An echo program that does not interpret backslashes.
18952echo=$lt_echo
18953
18954# The archiver.
18955AR=$lt_AR
18956AR_FLAGS=$lt_AR_FLAGS
18957
18958# A C compiler.
18959LTCC=$lt_LTCC
18960
18961# A language-specific compiler.
18962CC=$lt_compiler_GCJ
18963
18964# Is the compiler the GNU C compiler?
18965with_gcc=$GCC_GCJ
18966
18967# An ERE matcher.
18968EGREP=$lt_EGREP
18969
18970# The linker used to build libraries.
18971LD=$lt_LD_GCJ
18972
18973# Whether we need hard or soft links.
18974LN_S=$lt_LN_S
18975
18976# A BSD-compatible nm program.
18977NM=$lt_NM
18978
18979# A symbol stripping program
18980STRIP=$lt_STRIP
18981
18982# Used to examine libraries when file_magic_cmd begins "file"
18983MAGIC_CMD=$MAGIC_CMD
18984
18985# Used on cygwin: DLL creation program.
18986DLLTOOL="$DLLTOOL"
18987
18988# Used on cygwin: object dumper.
18989OBJDUMP="$OBJDUMP"
18990
18991# Used on cygwin: assembler.
18992AS="$AS"
18993
18994# The name of the directory that contains temporary libtool files.
18995objdir=$objdir
18996
18997# How to create reloadable object files.
18998reload_flag=$lt_reload_flag
18999reload_cmds=$lt_reload_cmds
19000
19001# How to pass a linker flag through the compiler.
19002wl=$lt_lt_prog_compiler_wl_GCJ
19003
19004# Object file suffix (normally "o").
19005objext="$ac_objext"
19006
19007# Old archive suffix (normally "a").
19008libext="$libext"
19009
19010# Shared library suffix (normally ".so").
19011shrext_cmds='$shrext_cmds'
19012
19013# Executable file suffix (normally "").
19014exeext="$exeext"
19015
19016# Additional compiler flags for building library objects.
19017pic_flag=$lt_lt_prog_compiler_pic_GCJ
19018pic_mode=$pic_mode
19019
19020# What is the maximum length of a command?
19021max_cmd_len=$lt_cv_sys_max_cmd_len
19022
19023# Does compiler simultaneously support -c and -o options?
19024compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19025
19026# Must we lock files when doing compilation?
19027need_locks=$lt_need_locks
19028
19029# Do we need the lib prefix for modules?
19030need_lib_prefix=$need_lib_prefix
19031
19032# Do we need a version for libraries?
19033need_version=$need_version
19034
19035# Whether dlopen is supported.
19036dlopen_support=$enable_dlopen
19037
19038# Whether dlopen of programs is supported.
19039dlopen_self=$enable_dlopen_self
19040
19041# Whether dlopen of statically linked programs is supported.
19042dlopen_self_static=$enable_dlopen_self_static
19043
19044# Compiler flag to prevent dynamic linking.
19045link_static_flag=$lt_lt_prog_compiler_static_GCJ
19046
19047# Compiler flag to turn off builtin functions.
19048no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19049
19050# Compiler flag to allow reflexive dlopens.
19051export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19052
19053# Compiler flag to generate shared objects directly from archives.
19054whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19055
19056# Compiler flag to generate thread-safe objects.
19057thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19058
19059# Library versioning type.
19060version_type=$version_type
19061
19062# Format of library name prefix.
19063libname_spec=$lt_libname_spec
19064
19065# List of archive names.  First name is the real one, the rest are links.
19066# The last name is the one that the linker finds with -lNAME.
19067library_names_spec=$lt_library_names_spec
19068
19069# The coded name of the library, if different from the real name.
19070soname_spec=$lt_soname_spec
19071
19072# Commands used to build and install an old-style archive.
19073RANLIB=$lt_RANLIB
19074old_archive_cmds=$lt_old_archive_cmds_GCJ
19075old_postinstall_cmds=$lt_old_postinstall_cmds
19076old_postuninstall_cmds=$lt_old_postuninstall_cmds
19077
19078# Create an old-style archive from a shared archive.
19079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19080
19081# Create a temporary old-style archive to link instead of a shared archive.
19082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19083
19084# Commands used to build and install a shared archive.
19085archive_cmds=$lt_archive_cmds_GCJ
19086archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19087postinstall_cmds=$lt_postinstall_cmds
19088postuninstall_cmds=$lt_postuninstall_cmds
19089
19090# Commands used to build a loadable module (assumed same as above if empty)
19091module_cmds=$lt_module_cmds_GCJ
19092module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19093
19094# Commands to strip libraries.
19095old_striplib=$lt_old_striplib
19096striplib=$lt_striplib
19097
19098# Dependencies to place before the objects being linked to create a
19099# shared library.
19100predep_objects=$lt_predep_objects_GCJ
19101
19102# Dependencies to place after the objects being linked to create a
19103# shared library.
19104postdep_objects=$lt_postdep_objects_GCJ
19105
19106# Dependencies to place before the objects being linked to create a
19107# shared library.
19108predeps=$lt_predeps_GCJ
19109
19110# Dependencies to place after the objects being linked to create a
19111# shared library.
19112postdeps=$lt_postdeps_GCJ
19113
19114# The library search path used internally by the compiler when linking
19115# a shared library.
19116compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19117
19118# Method to check whether dependent libraries are shared objects.
19119deplibs_check_method=$lt_deplibs_check_method
19120
19121# Command to use when deplibs_check_method == file_magic.
19122file_magic_cmd=$lt_file_magic_cmd
19123
19124# Flag that allows shared libraries with undefined symbols to be built.
19125allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19126
19127# Flag that forces no undefined symbols.
19128no_undefined_flag=$lt_no_undefined_flag_GCJ
19129
19130# Commands used to finish a libtool library installation in a directory.
19131finish_cmds=$lt_finish_cmds
19132
19133# Same as above, but a single script fragment to be evaled but not shown.
19134finish_eval=$lt_finish_eval
19135
19136# Take the output of nm and produce a listing of raw symbols and C names.
19137global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19138
19139# Transform the output of nm in a proper C declaration
19140global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19141
19142# Transform the output of nm in a C name address pair
19143global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19144
19145# This is the shared library runtime path variable.
19146runpath_var=$runpath_var
19147
19148# This is the shared library path variable.
19149shlibpath_var=$shlibpath_var
19150
19151# Is shlibpath searched before the hard-coded library search path?
19152shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19153
19154# How to hardcode a shared library path into an executable.
19155hardcode_action=$hardcode_action_GCJ
19156
19157# Whether we should hardcode library paths into libraries.
19158hardcode_into_libs=$hardcode_into_libs
19159
19160# Flag to hardcode \$libdir into a binary during linking.
19161# This must work even if \$libdir does not exist.
19162hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19163
19164# If ld is used when linking, flag to hardcode \$libdir into
19165# a binary during linking. This must work even if \$libdir does
19166# not exist.
19167hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19168
19169# Whether we need a single -rpath flag with a separated argument.
19170hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19171
19172# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19173# resulting binary.
19174hardcode_direct=$hardcode_direct_GCJ
19175
19176# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19177# resulting binary.
19178hardcode_minus_L=$hardcode_minus_L_GCJ
19179
19180# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19181# the resulting binary.
19182hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19183
19184# Set to yes if building a shared library automatically hardcodes DIR into the library
19185# and all subsequent libraries and executables linked against it.
19186hardcode_automatic=$hardcode_automatic_GCJ
19187
19188# Variables whose values should be saved in libtool wrapper scripts and
19189# restored at relink time.
19190variables_saved_for_relink="$variables_saved_for_relink"
19191
19192# Whether libtool must link a program against all its dependency libraries.
19193link_all_deplibs=$link_all_deplibs_GCJ
19194
19195# Compile-time system search path for libraries
19196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19197
19198# Run-time system search path for libraries
19199sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19200
19201# Fix the shell variable \$srcfile for the compiler.
19202fix_srcfile_path="$fix_srcfile_path_GCJ"
19203
19204# Set to yes if exported symbols are required.
19205always_export_symbols=$always_export_symbols_GCJ
19206
19207# The commands to list exported symbols.
19208export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19209
19210# The commands to extract the exported symbol list from a shared archive.
19211extract_expsyms_cmds=$lt_extract_expsyms_cmds
19212
19213# Symbols that should not be listed in the preloaded symbols.
19214exclude_expsyms=$lt_exclude_expsyms_GCJ
19215
19216# Symbols that must always be exported.
19217include_expsyms=$lt_include_expsyms_GCJ
19218
19219# ### END LIBTOOL TAG CONFIG: $tagname
19220
19221__EOF__
19222
19223
19224else
19225  # If there is no Makefile yet, we rely on a make rule to execute
19226  # `config.status --recheck' to rerun these tests and create the
19227  # libtool script then.
19228  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19229  if test -f "$ltmain_in"; then
19230    test -f Makefile && make "$ltmain"
19231  fi
19232fi
19233
19234
19235ac_ext=c
19236ac_cpp='$CPP $CPPFLAGS'
19237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19239ac_compiler_gnu=$ac_cv_c_compiler_gnu
19240
19241CC="$lt_save_CC"
19242
19243	else
19244	  tagname=""
19245	fi
19246	;;
19247
19248      RC)
19249
19250
19251
19252# Source file extension for RC test sources.
19253ac_ext=rc
19254
19255# Object file extension for compiled RC test sources.
19256objext=o
19257objext_RC=$objext
19258
19259# Code to be used in simple compile tests
19260lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19261
19262# Code to be used in simple link tests
19263lt_simple_link_test_code="$lt_simple_compile_test_code"
19264
19265# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19266
19267# If no C compiler was specified, use CC.
19268LTCC=${LTCC-"$CC"}
19269
19270# Allow CC to be a program name with arguments.
19271compiler=$CC
19272
19273
19274# save warnings/boilerplate of simple test code
19275ac_outfile=conftest.$ac_objext
19276printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19277eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19278_lt_compiler_boilerplate=`cat conftest.err`
19279$rm conftest*
19280
19281ac_outfile=conftest.$ac_objext
19282printf "$lt_simple_link_test_code" >conftest.$ac_ext
19283eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19284_lt_linker_boilerplate=`cat conftest.err`
19285$rm conftest*
19286
19287
19288# Allow CC to be a program name with arguments.
19289lt_save_CC="$CC"
19290CC=${RC-"windres"}
19291compiler=$CC
19292compiler_RC=$CC
19293for cc_temp in $compiler""; do
19294  case $cc_temp in
19295    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19296    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19297    \-*) ;;
19298    *) break;;
19299  esac
19300done
19301cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19302
19303lt_cv_prog_compiler_c_o_RC=yes
19304
19305# The else clause should only fire when bootstrapping the
19306# libtool distribution, otherwise you forgot to ship ltmain.sh
19307# with your package, and you will get complaints that there are
19308# no rules to generate ltmain.sh.
19309if test -f "$ltmain"; then
19310  # See if we are running on zsh, and set the options which allow our commands through
19311  # without removal of \ escapes.
19312  if test -n "${ZSH_VERSION+set}" ; then
19313    setopt NO_GLOB_SUBST
19314  fi
19315  # Now quote all the things that may contain metacharacters while being
19316  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19317  # variables and quote the copies for generation of the libtool script.
19318  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19319    SED SHELL STRIP \
19320    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19321    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19322    deplibs_check_method reload_flag reload_cmds need_locks \
19323    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19324    lt_cv_sys_global_symbol_to_c_name_address \
19325    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19326    old_postinstall_cmds old_postuninstall_cmds \
19327    compiler_RC \
19328    CC_RC \
19329    LD_RC \
19330    lt_prog_compiler_wl_RC \
19331    lt_prog_compiler_pic_RC \
19332    lt_prog_compiler_static_RC \
19333    lt_prog_compiler_no_builtin_flag_RC \
19334    export_dynamic_flag_spec_RC \
19335    thread_safe_flag_spec_RC \
19336    whole_archive_flag_spec_RC \
19337    enable_shared_with_static_runtimes_RC \
19338    old_archive_cmds_RC \
19339    old_archive_from_new_cmds_RC \
19340    predep_objects_RC \
19341    postdep_objects_RC \
19342    predeps_RC \
19343    postdeps_RC \
19344    compiler_lib_search_path_RC \
19345    archive_cmds_RC \
19346    archive_expsym_cmds_RC \
19347    postinstall_cmds_RC \
19348    postuninstall_cmds_RC \
19349    old_archive_from_expsyms_cmds_RC \
19350    allow_undefined_flag_RC \
19351    no_undefined_flag_RC \
19352    export_symbols_cmds_RC \
19353    hardcode_libdir_flag_spec_RC \
19354    hardcode_libdir_flag_spec_ld_RC \
19355    hardcode_libdir_separator_RC \
19356    hardcode_automatic_RC \
19357    module_cmds_RC \
19358    module_expsym_cmds_RC \
19359    lt_cv_prog_compiler_c_o_RC \
19360    exclude_expsyms_RC \
19361    include_expsyms_RC; do
19362
19363    case $var in
19364    old_archive_cmds_RC | \
19365    old_archive_from_new_cmds_RC | \
19366    archive_cmds_RC | \
19367    archive_expsym_cmds_RC | \
19368    module_cmds_RC | \
19369    module_expsym_cmds_RC | \
19370    old_archive_from_expsyms_cmds_RC | \
19371    export_symbols_cmds_RC | \
19372    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19373    postinstall_cmds | postuninstall_cmds | \
19374    old_postinstall_cmds | old_postuninstall_cmds | \
19375    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19376      # Double-quote double-evaled strings.
19377      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19378      ;;
19379    *)
19380      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19381      ;;
19382    esac
19383  done
19384
19385  case $lt_echo in
19386  *'\$0 --fallback-echo"')
19387    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19388    ;;
19389  esac
19390
19391cfgfile="$ofile"
19392
19393  cat <<__EOF__ >> "$cfgfile"
19394# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19395
19396# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19397
19398# Shell to use when invoking shell scripts.
19399SHELL=$lt_SHELL
19400
19401# Whether or not to build shared libraries.
19402build_libtool_libs=$enable_shared
19403
19404# Whether or not to build static libraries.
19405build_old_libs=$enable_static
19406
19407# Whether or not to add -lc for building shared libraries.
19408build_libtool_need_lc=$archive_cmds_need_lc_RC
19409
19410# Whether or not to disallow shared libs when runtime libs are static
19411allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19412
19413# Whether or not to optimize for fast installation.
19414fast_install=$enable_fast_install
19415
19416# The host system.
19417host_alias=$host_alias
19418host=$host
19419host_os=$host_os
19420
19421# The build system.
19422build_alias=$build_alias
19423build=$build
19424build_os=$build_os
19425
19426# An echo program that does not interpret backslashes.
19427echo=$lt_echo
19428
19429# The archiver.
19430AR=$lt_AR
19431AR_FLAGS=$lt_AR_FLAGS
19432
19433# A C compiler.
19434LTCC=$lt_LTCC
19435
19436# A language-specific compiler.
19437CC=$lt_compiler_RC
19438
19439# Is the compiler the GNU C compiler?
19440with_gcc=$GCC_RC
19441
19442# An ERE matcher.
19443EGREP=$lt_EGREP
19444
19445# The linker used to build libraries.
19446LD=$lt_LD_RC
19447
19448# Whether we need hard or soft links.
19449LN_S=$lt_LN_S
19450
19451# A BSD-compatible nm program.
19452NM=$lt_NM
19453
19454# A symbol stripping program
19455STRIP=$lt_STRIP
19456
19457# Used to examine libraries when file_magic_cmd begins "file"
19458MAGIC_CMD=$MAGIC_CMD
19459
19460# Used on cygwin: DLL creation program.
19461DLLTOOL="$DLLTOOL"
19462
19463# Used on cygwin: object dumper.
19464OBJDUMP="$OBJDUMP"
19465
19466# Used on cygwin: assembler.
19467AS="$AS"
19468
19469# The name of the directory that contains temporary libtool files.
19470objdir=$objdir
19471
19472# How to create reloadable object files.
19473reload_flag=$lt_reload_flag
19474reload_cmds=$lt_reload_cmds
19475
19476# How to pass a linker flag through the compiler.
19477wl=$lt_lt_prog_compiler_wl_RC
19478
19479# Object file suffix (normally "o").
19480objext="$ac_objext"
19481
19482# Old archive suffix (normally "a").
19483libext="$libext"
19484
19485# Shared library suffix (normally ".so").
19486shrext_cmds='$shrext_cmds'
19487
19488# Executable file suffix (normally "").
19489exeext="$exeext"
19490
19491# Additional compiler flags for building library objects.
19492pic_flag=$lt_lt_prog_compiler_pic_RC
19493pic_mode=$pic_mode
19494
19495# What is the maximum length of a command?
19496max_cmd_len=$lt_cv_sys_max_cmd_len
19497
19498# Does compiler simultaneously support -c and -o options?
19499compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19500
19501# Must we lock files when doing compilation?
19502need_locks=$lt_need_locks
19503
19504# Do we need the lib prefix for modules?
19505need_lib_prefix=$need_lib_prefix
19506
19507# Do we need a version for libraries?
19508need_version=$need_version
19509
19510# Whether dlopen is supported.
19511dlopen_support=$enable_dlopen
19512
19513# Whether dlopen of programs is supported.
19514dlopen_self=$enable_dlopen_self
19515
19516# Whether dlopen of statically linked programs is supported.
19517dlopen_self_static=$enable_dlopen_self_static
19518
19519# Compiler flag to prevent dynamic linking.
19520link_static_flag=$lt_lt_prog_compiler_static_RC
19521
19522# Compiler flag to turn off builtin functions.
19523no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19524
19525# Compiler flag to allow reflexive dlopens.
19526export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19527
19528# Compiler flag to generate shared objects directly from archives.
19529whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19530
19531# Compiler flag to generate thread-safe objects.
19532thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19533
19534# Library versioning type.
19535version_type=$version_type
19536
19537# Format of library name prefix.
19538libname_spec=$lt_libname_spec
19539
19540# List of archive names.  First name is the real one, the rest are links.
19541# The last name is the one that the linker finds with -lNAME.
19542library_names_spec=$lt_library_names_spec
19543
19544# The coded name of the library, if different from the real name.
19545soname_spec=$lt_soname_spec
19546
19547# Commands used to build and install an old-style archive.
19548RANLIB=$lt_RANLIB
19549old_archive_cmds=$lt_old_archive_cmds_RC
19550old_postinstall_cmds=$lt_old_postinstall_cmds
19551old_postuninstall_cmds=$lt_old_postuninstall_cmds
19552
19553# Create an old-style archive from a shared archive.
19554old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19555
19556# Create a temporary old-style archive to link instead of a shared archive.
19557old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19558
19559# Commands used to build and install a shared archive.
19560archive_cmds=$lt_archive_cmds_RC
19561archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19562postinstall_cmds=$lt_postinstall_cmds
19563postuninstall_cmds=$lt_postuninstall_cmds
19564
19565# Commands used to build a loadable module (assumed same as above if empty)
19566module_cmds=$lt_module_cmds_RC
19567module_expsym_cmds=$lt_module_expsym_cmds_RC
19568
19569# Commands to strip libraries.
19570old_striplib=$lt_old_striplib
19571striplib=$lt_striplib
19572
19573# Dependencies to place before the objects being linked to create a
19574# shared library.
19575predep_objects=$lt_predep_objects_RC
19576
19577# Dependencies to place after the objects being linked to create a
19578# shared library.
19579postdep_objects=$lt_postdep_objects_RC
19580
19581# Dependencies to place before the objects being linked to create a
19582# shared library.
19583predeps=$lt_predeps_RC
19584
19585# Dependencies to place after the objects being linked to create a
19586# shared library.
19587postdeps=$lt_postdeps_RC
19588
19589# The library search path used internally by the compiler when linking
19590# a shared library.
19591compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19592
19593# Method to check whether dependent libraries are shared objects.
19594deplibs_check_method=$lt_deplibs_check_method
19595
19596# Command to use when deplibs_check_method == file_magic.
19597file_magic_cmd=$lt_file_magic_cmd
19598
19599# Flag that allows shared libraries with undefined symbols to be built.
19600allow_undefined_flag=$lt_allow_undefined_flag_RC
19601
19602# Flag that forces no undefined symbols.
19603no_undefined_flag=$lt_no_undefined_flag_RC
19604
19605# Commands used to finish a libtool library installation in a directory.
19606finish_cmds=$lt_finish_cmds
19607
19608# Same as above, but a single script fragment to be evaled but not shown.
19609finish_eval=$lt_finish_eval
19610
19611# Take the output of nm and produce a listing of raw symbols and C names.
19612global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19613
19614# Transform the output of nm in a proper C declaration
19615global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19616
19617# Transform the output of nm in a C name address pair
19618global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19619
19620# This is the shared library runtime path variable.
19621runpath_var=$runpath_var
19622
19623# This is the shared library path variable.
19624shlibpath_var=$shlibpath_var
19625
19626# Is shlibpath searched before the hard-coded library search path?
19627shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19628
19629# How to hardcode a shared library path into an executable.
19630hardcode_action=$hardcode_action_RC
19631
19632# Whether we should hardcode library paths into libraries.
19633hardcode_into_libs=$hardcode_into_libs
19634
19635# Flag to hardcode \$libdir into a binary during linking.
19636# This must work even if \$libdir does not exist.
19637hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19638
19639# If ld is used when linking, flag to hardcode \$libdir into
19640# a binary during linking. This must work even if \$libdir does
19641# not exist.
19642hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19643
19644# Whether we need a single -rpath flag with a separated argument.
19645hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19646
19647# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19648# resulting binary.
19649hardcode_direct=$hardcode_direct_RC
19650
19651# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19652# resulting binary.
19653hardcode_minus_L=$hardcode_minus_L_RC
19654
19655# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19656# the resulting binary.
19657hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19658
19659# Set to yes if building a shared library automatically hardcodes DIR into the library
19660# and all subsequent libraries and executables linked against it.
19661hardcode_automatic=$hardcode_automatic_RC
19662
19663# Variables whose values should be saved in libtool wrapper scripts and
19664# restored at relink time.
19665variables_saved_for_relink="$variables_saved_for_relink"
19666
19667# Whether libtool must link a program against all its dependency libraries.
19668link_all_deplibs=$link_all_deplibs_RC
19669
19670# Compile-time system search path for libraries
19671sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19672
19673# Run-time system search path for libraries
19674sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19675
19676# Fix the shell variable \$srcfile for the compiler.
19677fix_srcfile_path="$fix_srcfile_path_RC"
19678
19679# Set to yes if exported symbols are required.
19680always_export_symbols=$always_export_symbols_RC
19681
19682# The commands to list exported symbols.
19683export_symbols_cmds=$lt_export_symbols_cmds_RC
19684
19685# The commands to extract the exported symbol list from a shared archive.
19686extract_expsyms_cmds=$lt_extract_expsyms_cmds
19687
19688# Symbols that should not be listed in the preloaded symbols.
19689exclude_expsyms=$lt_exclude_expsyms_RC
19690
19691# Symbols that must always be exported.
19692include_expsyms=$lt_include_expsyms_RC
19693
19694# ### END LIBTOOL TAG CONFIG: $tagname
19695
19696__EOF__
19697
19698
19699else
19700  # If there is no Makefile yet, we rely on a make rule to execute
19701  # `config.status --recheck' to rerun these tests and create the
19702  # libtool script then.
19703  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19704  if test -f "$ltmain_in"; then
19705    test -f Makefile && make "$ltmain"
19706  fi
19707fi
19708
19709
19710ac_ext=c
19711ac_cpp='$CPP $CPPFLAGS'
19712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714ac_compiler_gnu=$ac_cv_c_compiler_gnu
19715
19716CC="$lt_save_CC"
19717
19718	;;
19719
19720      *)
19721	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19722echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19723   { (exit 1); exit 1; }; }
19724	;;
19725      esac
19726
19727      # Append the new tag name to the list of available tags.
19728      if test -n "$tagname" ; then
19729      available_tags="$available_tags $tagname"
19730    fi
19731    fi
19732  done
19733  IFS="$lt_save_ifs"
19734
19735  # Now substitute the updated list of available tags.
19736  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19737    mv "${ofile}T" "$ofile"
19738    chmod +x "$ofile"
19739  else
19740    rm -f "${ofile}T"
19741    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19742echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19743   { (exit 1); exit 1; }; }
19744  fi
19745fi
19746
19747
19748
19749# This can be used to rebuild libtool when needed
19750LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19751
19752# Always use our own libtool.
19753LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19754
19755# Prevent multiple expansion
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798    #   make sure libnsl and libsocket are linked in if they exist
19799
19800echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
19801echo $ECHO_N "checking for gethostname in -lnsl... $ECHO_C" >&6
19802if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
19803  echo $ECHO_N "(cached) $ECHO_C" >&6
19804else
19805  ac_check_lib_save_LIBS=$LIBS
19806LIBS="-lnsl  $LIBS"
19807cat >conftest.$ac_ext <<_ACEOF
19808/* confdefs.h.  */
19809_ACEOF
19810cat confdefs.h >>conftest.$ac_ext
19811cat >>conftest.$ac_ext <<_ACEOF
19812/* end confdefs.h.  */
19813
19814/* Override any gcc2 internal prototype to avoid an error.  */
19815#ifdef __cplusplus
19816extern "C"
19817#endif
19818/* We use char because int might match the return type of a gcc2
19819   builtin and then its argument prototype would still apply.  */
19820char gethostname ();
19821int
19822main ()
19823{
19824gethostname ();
19825  ;
19826  return 0;
19827}
19828_ACEOF
19829rm -f conftest.$ac_objext conftest$ac_exeext
19830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19831  (eval $ac_link) 2>conftest.er1
19832  ac_status=$?
19833  grep -v '^ *+' conftest.er1 >conftest.err
19834  rm -f conftest.er1
19835  cat conftest.err >&5
19836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837  (exit $ac_status); } &&
19838	 { ac_try='test -z "$ac_c_werror_flag"
19839			 || test ! -s conftest.err'
19840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841  (eval $ac_try) 2>&5
19842  ac_status=$?
19843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844  (exit $ac_status); }; } &&
19845	 { ac_try='test -s conftest$ac_exeext'
19846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847  (eval $ac_try) 2>&5
19848  ac_status=$?
19849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850  (exit $ac_status); }; }; then
19851  ac_cv_lib_nsl_gethostname=yes
19852else
19853  echo "$as_me: failed program was:" >&5
19854sed 's/^/| /' conftest.$ac_ext >&5
19855
19856ac_cv_lib_nsl_gethostname=no
19857fi
19858rm -f conftest.err conftest.$ac_objext \
19859      conftest$ac_exeext conftest.$ac_ext
19860LIBS=$ac_check_lib_save_LIBS
19861fi
19862echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
19863echo "${ECHO_T}$ac_cv_lib_nsl_gethostname" >&6
19864if test $ac_cv_lib_nsl_gethostname = yes; then
19865  cat >>confdefs.h <<_ACEOF
19866#define HAVE_LIBNSL 1
19867_ACEOF
19868
19869  LIBS="-lnsl $LIBS"
19870
19871fi
19872
19873    if test ".`echo $LIBS | grep nsl`" = .; then
19874
19875echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19876echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19877if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19878  echo $ECHO_N "(cached) $ECHO_C" >&6
19879else
19880  ac_check_lib_save_LIBS=$LIBS
19881LIBS="-lnsl  $LIBS"
19882cat >conftest.$ac_ext <<_ACEOF
19883/* confdefs.h.  */
19884_ACEOF
19885cat confdefs.h >>conftest.$ac_ext
19886cat >>conftest.$ac_ext <<_ACEOF
19887/* end confdefs.h.  */
19888
19889/* Override any gcc2 internal prototype to avoid an error.  */
19890#ifdef __cplusplus
19891extern "C"
19892#endif
19893/* We use char because int might match the return type of a gcc2
19894   builtin and then its argument prototype would still apply.  */
19895char gethostbyname ();
19896int
19897main ()
19898{
19899gethostbyname ();
19900  ;
19901  return 0;
19902}
19903_ACEOF
19904rm -f conftest.$ac_objext conftest$ac_exeext
19905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19906  (eval $ac_link) 2>conftest.er1
19907  ac_status=$?
19908  grep -v '^ *+' conftest.er1 >conftest.err
19909  rm -f conftest.er1
19910  cat conftest.err >&5
19911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912  (exit $ac_status); } &&
19913	 { ac_try='test -z "$ac_c_werror_flag"
19914			 || test ! -s conftest.err'
19915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916  (eval $ac_try) 2>&5
19917  ac_status=$?
19918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919  (exit $ac_status); }; } &&
19920	 { ac_try='test -s conftest$ac_exeext'
19921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922  (eval $ac_try) 2>&5
19923  ac_status=$?
19924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925  (exit $ac_status); }; }; then
19926  ac_cv_lib_nsl_gethostbyname=yes
19927else
19928  echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
19931ac_cv_lib_nsl_gethostbyname=no
19932fi
19933rm -f conftest.err conftest.$ac_objext \
19934      conftest$ac_exeext conftest.$ac_ext
19935LIBS=$ac_check_lib_save_LIBS
19936fi
19937echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19938echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19939if test $ac_cv_lib_nsl_gethostbyname = yes; then
19940  cat >>confdefs.h <<_ACEOF
19941#define HAVE_LIBNSL 1
19942_ACEOF
19943
19944  LIBS="-lnsl $LIBS"
19945
19946fi
19947
19948    fi
19949
19950echo "$as_me:$LINENO: checking for accept in -lsocket" >&5
19951echo $ECHO_N "checking for accept in -lsocket... $ECHO_C" >&6
19952if test "${ac_cv_lib_socket_accept+set}" = set; then
19953  echo $ECHO_N "(cached) $ECHO_C" >&6
19954else
19955  ac_check_lib_save_LIBS=$LIBS
19956LIBS="-lsocket  $LIBS"
19957cat >conftest.$ac_ext <<_ACEOF
19958/* confdefs.h.  */
19959_ACEOF
19960cat confdefs.h >>conftest.$ac_ext
19961cat >>conftest.$ac_ext <<_ACEOF
19962/* end confdefs.h.  */
19963
19964/* Override any gcc2 internal prototype to avoid an error.  */
19965#ifdef __cplusplus
19966extern "C"
19967#endif
19968/* We use char because int might match the return type of a gcc2
19969   builtin and then its argument prototype would still apply.  */
19970char accept ();
19971int
19972main ()
19973{
19974accept ();
19975  ;
19976  return 0;
19977}
19978_ACEOF
19979rm -f conftest.$ac_objext conftest$ac_exeext
19980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19981  (eval $ac_link) 2>conftest.er1
19982  ac_status=$?
19983  grep -v '^ *+' conftest.er1 >conftest.err
19984  rm -f conftest.er1
19985  cat conftest.err >&5
19986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987  (exit $ac_status); } &&
19988	 { ac_try='test -z "$ac_c_werror_flag"
19989			 || test ! -s conftest.err'
19990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19991  (eval $ac_try) 2>&5
19992  ac_status=$?
19993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994  (exit $ac_status); }; } &&
19995	 { ac_try='test -s conftest$ac_exeext'
19996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997  (eval $ac_try) 2>&5
19998  ac_status=$?
19999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000  (exit $ac_status); }; }; then
20001  ac_cv_lib_socket_accept=yes
20002else
20003  echo "$as_me: failed program was:" >&5
20004sed 's/^/| /' conftest.$ac_ext >&5
20005
20006ac_cv_lib_socket_accept=no
20007fi
20008rm -f conftest.err conftest.$ac_objext \
20009      conftest$ac_exeext conftest.$ac_ext
20010LIBS=$ac_check_lib_save_LIBS
20011fi
20012echo "$as_me:$LINENO: result: $ac_cv_lib_socket_accept" >&5
20013echo "${ECHO_T}$ac_cv_lib_socket_accept" >&6
20014if test $ac_cv_lib_socket_accept = yes; then
20015  cat >>confdefs.h <<_ACEOF
20016#define HAVE_LIBSOCKET 1
20017_ACEOF
20018
20019  LIBS="-lsocket $LIBS"
20020
20021fi
20022
20023
20024    #   make sure some platforms find their IPv6 library
20025
20026echo "$as_me:$LINENO: checking for getaddrinfo in -linet6" >&5
20027echo $ECHO_N "checking for getaddrinfo in -linet6... $ECHO_C" >&6
20028if test "${ac_cv_lib_inet6_getaddrinfo+set}" = set; then
20029  echo $ECHO_N "(cached) $ECHO_C" >&6
20030else
20031  ac_check_lib_save_LIBS=$LIBS
20032LIBS="-linet6  $LIBS"
20033cat >conftest.$ac_ext <<_ACEOF
20034/* confdefs.h.  */
20035_ACEOF
20036cat confdefs.h >>conftest.$ac_ext
20037cat >>conftest.$ac_ext <<_ACEOF
20038/* end confdefs.h.  */
20039
20040/* Override any gcc2 internal prototype to avoid an error.  */
20041#ifdef __cplusplus
20042extern "C"
20043#endif
20044/* We use char because int might match the return type of a gcc2
20045   builtin and then its argument prototype would still apply.  */
20046char getaddrinfo ();
20047int
20048main ()
20049{
20050getaddrinfo ();
20051  ;
20052  return 0;
20053}
20054_ACEOF
20055rm -f conftest.$ac_objext conftest$ac_exeext
20056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20057  (eval $ac_link) 2>conftest.er1
20058  ac_status=$?
20059  grep -v '^ *+' conftest.er1 >conftest.err
20060  rm -f conftest.er1
20061  cat conftest.err >&5
20062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063  (exit $ac_status); } &&
20064	 { ac_try='test -z "$ac_c_werror_flag"
20065			 || test ! -s conftest.err'
20066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067  (eval $ac_try) 2>&5
20068  ac_status=$?
20069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070  (exit $ac_status); }; } &&
20071	 { ac_try='test -s conftest$ac_exeext'
20072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073  (eval $ac_try) 2>&5
20074  ac_status=$?
20075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076  (exit $ac_status); }; }; then
20077  ac_cv_lib_inet6_getaddrinfo=yes
20078else
20079  echo "$as_me: failed program was:" >&5
20080sed 's/^/| /' conftest.$ac_ext >&5
20081
20082ac_cv_lib_inet6_getaddrinfo=no
20083fi
20084rm -f conftest.err conftest.$ac_objext \
20085      conftest$ac_exeext conftest.$ac_ext
20086LIBS=$ac_check_lib_save_LIBS
20087fi
20088echo "$as_me:$LINENO: result: $ac_cv_lib_inet6_getaddrinfo" >&5
20089echo "${ECHO_T}$ac_cv_lib_inet6_getaddrinfo" >&6
20090if test $ac_cv_lib_inet6_getaddrinfo = yes; then
20091  cat >>confdefs.h <<_ACEOF
20092#define HAVE_LIBINET6 1
20093_ACEOF
20094
20095  LIBS="-linet6 $LIBS"
20096
20097fi
20098
20099
20100    #   check for system headers
20101
20102
20103
20104
20105
20106for ac_header in string.h sys/types.h sys/socket.h netdb.h netinet/in.h
20107do
20108as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20109if eval "test \"\${$as_ac_Header+set}\" = set"; then
20110  echo "$as_me:$LINENO: checking for $ac_header" >&5
20111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20112if eval "test \"\${$as_ac_Header+set}\" = set"; then
20113  echo $ECHO_N "(cached) $ECHO_C" >&6
20114fi
20115echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20116echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20117else
20118  # Is the header compilable?
20119echo "$as_me:$LINENO: checking $ac_header usability" >&5
20120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20121cat >conftest.$ac_ext <<_ACEOF
20122/* confdefs.h.  */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h.  */
20127$ac_includes_default
20128#include <$ac_header>
20129_ACEOF
20130rm -f conftest.$ac_objext
20131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20132  (eval $ac_compile) 2>conftest.er1
20133  ac_status=$?
20134  grep -v '^ *+' conftest.er1 >conftest.err
20135  rm -f conftest.er1
20136  cat conftest.err >&5
20137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138  (exit $ac_status); } &&
20139	 { ac_try='test -z "$ac_c_werror_flag"
20140			 || test ! -s conftest.err'
20141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142  (eval $ac_try) 2>&5
20143  ac_status=$?
20144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145  (exit $ac_status); }; } &&
20146	 { ac_try='test -s conftest.$ac_objext'
20147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148  (eval $ac_try) 2>&5
20149  ac_status=$?
20150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151  (exit $ac_status); }; }; then
20152  ac_header_compiler=yes
20153else
20154  echo "$as_me: failed program was:" >&5
20155sed 's/^/| /' conftest.$ac_ext >&5
20156
20157ac_header_compiler=no
20158fi
20159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20160echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20161echo "${ECHO_T}$ac_header_compiler" >&6
20162
20163# Is the header present?
20164echo "$as_me:$LINENO: checking $ac_header presence" >&5
20165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20166cat >conftest.$ac_ext <<_ACEOF
20167/* confdefs.h.  */
20168_ACEOF
20169cat confdefs.h >>conftest.$ac_ext
20170cat >>conftest.$ac_ext <<_ACEOF
20171/* end confdefs.h.  */
20172#include <$ac_header>
20173_ACEOF
20174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20175  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20176  ac_status=$?
20177  grep -v '^ *+' conftest.er1 >conftest.err
20178  rm -f conftest.er1
20179  cat conftest.err >&5
20180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181  (exit $ac_status); } >/dev/null; then
20182  if test -s conftest.err; then
20183    ac_cpp_err=$ac_c_preproc_warn_flag
20184    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20185  else
20186    ac_cpp_err=
20187  fi
20188else
20189  ac_cpp_err=yes
20190fi
20191if test -z "$ac_cpp_err"; then
20192  ac_header_preproc=yes
20193else
20194  echo "$as_me: failed program was:" >&5
20195sed 's/^/| /' conftest.$ac_ext >&5
20196
20197  ac_header_preproc=no
20198fi
20199rm -f conftest.err conftest.$ac_ext
20200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20201echo "${ECHO_T}$ac_header_preproc" >&6
20202
20203# So?  What about this header?
20204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20205  yes:no: )
20206    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20208    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20209echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20210    ac_header_preproc=yes
20211    ;;
20212  no:yes:* )
20213    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20215    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20216echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20217    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20218echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20219    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20220echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20221    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20222echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20223    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20224echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20225    (
20226      cat <<\_ASBOX
20227## ------------------------------------------ ##
20228## Report this to the AC_PACKAGE_NAME lists.  ##
20229## ------------------------------------------ ##
20230_ASBOX
20231    ) |
20232      sed "s/^/$as_me: WARNING:     /" >&2
20233    ;;
20234esac
20235echo "$as_me:$LINENO: checking for $ac_header" >&5
20236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20237if eval "test \"\${$as_ac_Header+set}\" = set"; then
20238  echo $ECHO_N "(cached) $ECHO_C" >&6
20239else
20240  eval "$as_ac_Header=\$ac_header_preproc"
20241fi
20242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20244
20245fi
20246if test `eval echo '${'$as_ac_Header'}'` = yes; then
20247  cat >>confdefs.h <<_ACEOF
20248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20249_ACEOF
20250
20251fi
20252
20253done
20254
20255
20256    #   check for system functions
20257
20258
20259
20260
20261
20262
20263
20264for ac_func in inet_addr inet_aton inet_pton inet_ntoa inet_ntop snprintf getaddrinfo
20265do
20266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20267echo "$as_me:$LINENO: checking for $ac_func" >&5
20268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20269if eval "test \"\${$as_ac_var+set}\" = set"; then
20270  echo $ECHO_N "(cached) $ECHO_C" >&6
20271else
20272  cat >conftest.$ac_ext <<_ACEOF
20273/* confdefs.h.  */
20274_ACEOF
20275cat confdefs.h >>conftest.$ac_ext
20276cat >>conftest.$ac_ext <<_ACEOF
20277/* end confdefs.h.  */
20278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20279   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20280#define $ac_func innocuous_$ac_func
20281
20282/* System header to define __stub macros and hopefully few prototypes,
20283    which can conflict with char $ac_func (); below.
20284    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20285    <limits.h> exists even on freestanding compilers.  */
20286
20287#ifdef __STDC__
20288# include <limits.h>
20289#else
20290# include <assert.h>
20291#endif
20292
20293#undef $ac_func
20294
20295/* Override any gcc2 internal prototype to avoid an error.  */
20296#ifdef __cplusplus
20297extern "C"
20298{
20299#endif
20300/* We use char because int might match the return type of a gcc2
20301   builtin and then its argument prototype would still apply.  */
20302char $ac_func ();
20303/* The GNU C library defines this for functions which it implements
20304    to always fail with ENOSYS.  Some functions are actually named
20305    something starting with __ and the normal name is an alias.  */
20306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20307choke me
20308#else
20309char (*f) () = $ac_func;
20310#endif
20311#ifdef __cplusplus
20312}
20313#endif
20314
20315int
20316main ()
20317{
20318return f != $ac_func;
20319  ;
20320  return 0;
20321}
20322_ACEOF
20323rm -f conftest.$ac_objext conftest$ac_exeext
20324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20325  (eval $ac_link) 2>conftest.er1
20326  ac_status=$?
20327  grep -v '^ *+' conftest.er1 >conftest.err
20328  rm -f conftest.er1
20329  cat conftest.err >&5
20330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331  (exit $ac_status); } &&
20332	 { ac_try='test -z "$ac_c_werror_flag"
20333			 || test ! -s conftest.err'
20334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335  (eval $ac_try) 2>&5
20336  ac_status=$?
20337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338  (exit $ac_status); }; } &&
20339	 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20345  eval "$as_ac_var=yes"
20346else
20347  echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
20350eval "$as_ac_var=no"
20351fi
20352rm -f conftest.err conftest.$ac_objext \
20353      conftest$ac_exeext conftest.$ac_ext
20354fi
20355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20357if test `eval echo '${'$as_ac_var'}'` = yes; then
20358  cat >>confdefs.h <<_ACEOF
20359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20360_ACEOF
20361
20362fi
20363done
20364
20365
20366                echo "$as_me:$LINENO: checking for typedef socklen_t" >&5
20367echo $ECHO_N "checking for typedef socklen_t... $ECHO_C" >&6
20368    if test "${ac_cv_typedef_socklen_t+set}" = set; then
20369  echo $ECHO_N "(cached) $ECHO_C" >&6
20370else
20371
20372        cat >conftest.$ac_ext <<_ACEOF
20373/* confdefs.h.  */
20374_ACEOF
20375cat confdefs.h >>conftest.$ac_ext
20376cat >>conftest.$ac_ext <<_ACEOF
20377/* end confdefs.h.  */
20378
20379#include <sys/socket.h>
20380_ACEOF
20381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20382  $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20383  ac_cv_typedef_socklen_t=yes
20384else
20385  ac_cv_typedef_socklen_t=no
20386
20387fi
20388rm -f conftest*
20389
20390
20391fi
20392    echo "$as_me:$LINENO: result: $ac_cv_typedef_socklen_t" >&5
20393echo "${ECHO_T}$ac_cv_typedef_socklen_t" >&6
20394    if test $ac_cv_typedef_socklen_t = yes; then
20395
20396cat >>confdefs.h <<\_ACEOF
20397#define HAVE_SOCKLEN_T 1
20398_ACEOF
20399
20400    fi
20401
20402            echo "$as_me:$LINENO: checking for typedef ssize_t" >&5
20403echo $ECHO_N "checking for typedef ssize_t... $ECHO_C" >&6
20404    if test "${ac_cv_typedef_ssize_t+set}" = set; then
20405  echo $ECHO_N "(cached) $ECHO_C" >&6
20406else
20407
20408        cat >conftest.$ac_ext <<_ACEOF
20409/* confdefs.h.  */
20410_ACEOF
20411cat confdefs.h >>conftest.$ac_ext
20412cat >>conftest.$ac_ext <<_ACEOF
20413/* end confdefs.h.  */
20414
20415#include <sys/types.h>
20416_ACEOF
20417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20418  $EGREP "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20419  ac_cv_typedef_ssize_t=yes
20420else
20421  ac_cv_typedef_ssize_t=no
20422
20423fi
20424rm -f conftest*
20425
20426
20427fi
20428    echo "$as_me:$LINENO: result: $ac_cv_typedef_ssize_t" >&5
20429echo "${ECHO_T}$ac_cv_typedef_ssize_t" >&6
20430    if test $ac_cv_typedef_ssize_t = yes; then
20431
20432cat >>confdefs.h <<\_ACEOF
20433#define HAVE_SSIZE_T 1
20434_ACEOF
20435
20436    fi
20437
20438
20439echo "$as_me:$LINENO: checking whether to use SO_RCVTIMEO with setsockopt(2)" >&5
20440echo $ECHO_N "checking whether to use SO_RCVTIMEO with setsockopt(2)... $ECHO_C" >&6
20441if test "$cross_compiling" = yes; then
20442  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20443See \`config.log' for more details." >&5
20444echo "$as_me: error: cannot run test program while cross compiling
20445See \`config.log' for more details." >&2;}
20446   { (exit 1); exit 1; }; }
20447else
20448  cat >conftest.$ac_ext <<_ACEOF
20449/* confdefs.h.  */
20450_ACEOF
20451cat confdefs.h >>conftest.$ac_ext
20452cat >>conftest.$ac_ext <<_ACEOF
20453/* end confdefs.h.  */
20454
20455#include <sys/types.h>
20456#include <sys/socket.h>
20457#include <sys/time.h>
20458
20459int main(void)
20460{
20461    int s;
20462    struct timeval timeo;
20463    timeo.tv_sec  = 3;
20464    timeo.tv_usec = 3;
20465
20466#ifndef SO_RCVTIMEO
20467    exit(3);
20468#else
20469    if ((s = socket(PF_INET, SOCK_STREAM, 0)) == -1)
20470        exit(2);
20471
20472    /* fails on Solaris 2.6,8,9,10 and Debian 2.2 because
20473       SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
20474    if (setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (void *)&timeo, sizeof(timeo)) == -1)
20475        exit(1);
20476
20477    exit(0);
20478#endif
20479}
20480
20481
20482_ACEOF
20483rm -f conftest$ac_exeext
20484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20485  (eval $ac_link) 2>&5
20486  ac_status=$?
20487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490  (eval $ac_try) 2>&5
20491  ac_status=$?
20492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493  (exit $ac_status); }; }; then
20494   echo "$as_me:$LINENO: result: yes" >&5
20495echo "${ECHO_T}yes" >&6
20496cat >>confdefs.h <<\_ACEOF
20497#define USE_SO_RCVTIMEO 1
20498_ACEOF
20499
20500
20501else
20502  echo "$as_me: program exited with status $ac_status" >&5
20503echo "$as_me: failed program was:" >&5
20504sed 's/^/| /' conftest.$ac_ext >&5
20505
20506( exit $ac_status )
20507 echo "$as_me:$LINENO: result: no" >&5
20508echo "${ECHO_T}no" >&6
20509
20510fi
20511rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20512fi
20513
20514
20515echo "$as_me:$LINENO: checking whether to use SO_SNDTIMEO with setsockopt(2)" >&5
20516echo $ECHO_N "checking whether to use SO_SNDTIMEO with setsockopt(2)... $ECHO_C" >&6
20517if test "$cross_compiling" = yes; then
20518  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20519See \`config.log' for more details." >&5
20520echo "$as_me: error: cannot run test program while cross compiling
20521See \`config.log' for more details." >&2;}
20522   { (exit 1); exit 1; }; }
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
20531#include <sys/types.h>
20532#include <sys/socket.h>
20533#include <sys/time.h>
20534
20535int main(void)
20536{
20537    int s;
20538    struct timeval timeo;
20539    timeo.tv_sec  = 3;
20540    timeo.tv_usec = 3;
20541
20542#ifndef SO_SNDTIMEO
20543    exit(3);
20544#else
20545    if ((s = socket(PF_INET, SOCK_STREAM, 0)) == -1)
20546        exit(2);
20547
20548    /* fails on Solaris 2.6,8,9,10 and Debian 2.2 because
20549       SO_RCVTIMEO|SO_SNDTIMEO are defined but not implemented */
20550    if (setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, (void *)&timeo, sizeof(timeo)) == -1)
20551        exit(1);
20552
20553    exit(0);
20554#endif
20555}
20556
20557
20558_ACEOF
20559rm -f conftest$ac_exeext
20560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20561  (eval $ac_link) 2>&5
20562  ac_status=$?
20563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566  (eval $ac_try) 2>&5
20567  ac_status=$?
20568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569  (exit $ac_status); }; }; then
20570   echo "$as_me:$LINENO: result: yes" >&5
20571echo "${ECHO_T}yes" >&6
20572cat >>confdefs.h <<\_ACEOF
20573#define USE_SO_SNDTIMEO 1
20574_ACEOF
20575
20576
20577else
20578  echo "$as_me: program exited with status $ac_status" >&5
20579echo "$as_me: failed program was:" >&5
20580sed 's/^/| /' conftest.$ac_ext >&5
20581
20582( exit $ac_status )
20583 echo "$as_me:$LINENO: result: no" >&5
20584echo "${ECHO_T}no" >&6
20585
20586fi
20587rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20588fi
20589
20590
20591
20592    echo "$as_me:$LINENO: checking for va_copy() function" >&5
20593echo $ECHO_N "checking for va_copy() function... $ECHO_C" >&6
20594    if test "${ac_cv_va_copy+set}" = set; then
20595  echo $ECHO_N "(cached) $ECHO_C" >&6
20596else
20597
20598    ac_cv_va_copy=""
20599
20600
20601
20602    if test ".$ac_cv_va_copy" = .; then
20603        if test "$cross_compiling" = yes; then
20604  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20605See \`config.log' for more details." >&5
20606echo "$as_me: error: cannot run test program while cross compiling
20607See \`config.log' for more details." >&2;}
20608   { (exit 1); exit 1; }; }
20609else
20610  cat >conftest.$ac_ext <<_ACEOF
20611/* confdefs.h.  */
20612_ACEOF
20613cat confdefs.h >>conftest.$ac_ext
20614cat >>conftest.$ac_ext <<_ACEOF
20615/* end confdefs.h.  */
20616
20617#include <stdlib.h>
20618#include <stdarg.h>
20619#include <string.h>
20620#define DO_VA_COPY(d, s) va_copy((d), (s))
20621void test(char *str, ...)
20622{
20623    va_list ap, ap2;
20624    int i;
20625    va_start(ap, str);
20626    DO_VA_COPY(ap2, ap);
20627    for (i = 1; i <= 9; i++) {
20628        int k = (int)va_arg(ap, int);
20629        if (k != i)
20630            abort();
20631    }
20632    DO_VA_COPY(ap, ap2);
20633    for (i = 1; i <= 9; i++) {
20634        int k = (int)va_arg(ap, int);
20635        if (k != i)
20636            abort();
20637    }
20638    va_end(ap);
20639}
20640int main(int argc, char *argv[])
20641{
20642    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20643    exit(0);
20644}
20645
20646_ACEOF
20647rm -f conftest$ac_exeext
20648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20649  (eval $ac_link) 2>&5
20650  ac_status=$?
20651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654  (eval $ac_try) 2>&5
20655  ac_status=$?
20656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657  (exit $ac_status); }; }; then
20658  ac_cv_va_copy="C99"
20659else
20660  echo "$as_me: program exited with status $ac_status" >&5
20661echo "$as_me: failed program was:" >&5
20662sed 's/^/| /' conftest.$ac_ext >&5
20663
20664fi
20665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20666fi
20667    fi
20668
20669
20670
20671
20672    if test ".$ac_cv_va_copy" = .; then
20673        if test "$cross_compiling" = yes; then
20674  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20675See \`config.log' for more details." >&5
20676echo "$as_me: error: cannot run test program while cross compiling
20677See \`config.log' for more details." >&2;}
20678   { (exit 1); exit 1; }; }
20679else
20680  cat >conftest.$ac_ext <<_ACEOF
20681/* confdefs.h.  */
20682_ACEOF
20683cat confdefs.h >>conftest.$ac_ext
20684cat >>conftest.$ac_ext <<_ACEOF
20685/* end confdefs.h.  */
20686
20687#include <stdlib.h>
20688#include <stdarg.h>
20689#include <string.h>
20690#define DO_VA_COPY(d, s) VA_COPY((d), (s))
20691void test(char *str, ...)
20692{
20693    va_list ap, ap2;
20694    int i;
20695    va_start(ap, str);
20696    DO_VA_COPY(ap2, ap);
20697    for (i = 1; i <= 9; i++) {
20698        int k = (int)va_arg(ap, int);
20699        if (k != i)
20700            abort();
20701    }
20702    DO_VA_COPY(ap, ap2);
20703    for (i = 1; i <= 9; i++) {
20704        int k = (int)va_arg(ap, int);
20705        if (k != i)
20706            abort();
20707    }
20708    va_end(ap);
20709}
20710int main(int argc, char *argv[])
20711{
20712    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20713    exit(0);
20714}
20715
20716_ACEOF
20717rm -f conftest$ac_exeext
20718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20719  (eval $ac_link) 2>&5
20720  ac_status=$?
20721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724  (eval $ac_try) 2>&5
20725  ac_status=$?
20726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727  (exit $ac_status); }; }; then
20728  ac_cv_va_copy="GCM"
20729else
20730  echo "$as_me: program exited with status $ac_status" >&5
20731echo "$as_me: failed program was:" >&5
20732sed 's/^/| /' conftest.$ac_ext >&5
20733
20734fi
20735rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20736fi
20737    fi
20738
20739
20740
20741
20742    if test ".$ac_cv_va_copy" = .; then
20743        if test "$cross_compiling" = yes; then
20744  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20745See \`config.log' for more details." >&5
20746echo "$as_me: error: cannot run test program while cross compiling
20747See \`config.log' for more details." >&2;}
20748   { (exit 1); exit 1; }; }
20749else
20750  cat >conftest.$ac_ext <<_ACEOF
20751/* confdefs.h.  */
20752_ACEOF
20753cat confdefs.h >>conftest.$ac_ext
20754cat >>conftest.$ac_ext <<_ACEOF
20755/* end confdefs.h.  */
20756
20757#include <stdlib.h>
20758#include <stdarg.h>
20759#include <string.h>
20760#define DO_VA_COPY(d, s) __va_copy((d), (s))
20761void test(char *str, ...)
20762{
20763    va_list ap, ap2;
20764    int i;
20765    va_start(ap, str);
20766    DO_VA_COPY(ap2, ap);
20767    for (i = 1; i <= 9; i++) {
20768        int k = (int)va_arg(ap, int);
20769        if (k != i)
20770            abort();
20771    }
20772    DO_VA_COPY(ap, ap2);
20773    for (i = 1; i <= 9; i++) {
20774        int k = (int)va_arg(ap, int);
20775        if (k != i)
20776            abort();
20777    }
20778    va_end(ap);
20779}
20780int main(int argc, char *argv[])
20781{
20782    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20783    exit(0);
20784}
20785
20786_ACEOF
20787rm -f conftest$ac_exeext
20788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20789  (eval $ac_link) 2>&5
20790  ac_status=$?
20791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794  (eval $ac_try) 2>&5
20795  ac_status=$?
20796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797  (exit $ac_status); }; }; then
20798  ac_cv_va_copy="GCH"
20799else
20800  echo "$as_me: program exited with status $ac_status" >&5
20801echo "$as_me: failed program was:" >&5
20802sed 's/^/| /' conftest.$ac_ext >&5
20803
20804fi
20805rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20806fi
20807    fi
20808
20809
20810
20811
20812    if test ".$ac_cv_va_copy" = .; then
20813        if test "$cross_compiling" = yes; then
20814  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20815See \`config.log' for more details." >&5
20816echo "$as_me: error: cannot run test program while cross compiling
20817See \`config.log' for more details." >&2;}
20818   { (exit 1); exit 1; }; }
20819else
20820  cat >conftest.$ac_ext <<_ACEOF
20821/* confdefs.h.  */
20822_ACEOF
20823cat confdefs.h >>conftest.$ac_ext
20824cat >>conftest.$ac_ext <<_ACEOF
20825/* end confdefs.h.  */
20826
20827#include <stdlib.h>
20828#include <stdarg.h>
20829#include <string.h>
20830#define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
20831void test(char *str, ...)
20832{
20833    va_list ap, ap2;
20834    int i;
20835    va_start(ap, str);
20836    DO_VA_COPY(ap2, ap);
20837    for (i = 1; i <= 9; i++) {
20838        int k = (int)va_arg(ap, int);
20839        if (k != i)
20840            abort();
20841    }
20842    DO_VA_COPY(ap, ap2);
20843    for (i = 1; i <= 9; i++) {
20844        int k = (int)va_arg(ap, int);
20845        if (k != i)
20846            abort();
20847    }
20848    va_end(ap);
20849}
20850int main(int argc, char *argv[])
20851{
20852    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20853    exit(0);
20854}
20855
20856_ACEOF
20857rm -f conftest$ac_exeext
20858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20859  (eval $ac_link) 2>&5
20860  ac_status=$?
20861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864  (eval $ac_try) 2>&5
20865  ac_status=$?
20866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867  (exit $ac_status); }; }; then
20868  ac_cv_va_copy="GCB"
20869else
20870  echo "$as_me: program exited with status $ac_status" >&5
20871echo "$as_me: failed program was:" >&5
20872sed 's/^/| /' conftest.$ac_ext >&5
20873
20874fi
20875rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20876fi
20877    fi
20878
20879
20880
20881
20882    if test ".$ac_cv_va_copy" = .; then
20883        if test "$cross_compiling" = yes; then
20884  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20885See \`config.log' for more details." >&5
20886echo "$as_me: error: cannot run test program while cross compiling
20887See \`config.log' for more details." >&2;}
20888   { (exit 1); exit 1; }; }
20889else
20890  cat >conftest.$ac_ext <<_ACEOF
20891/* confdefs.h.  */
20892_ACEOF
20893cat confdefs.h >>conftest.$ac_ext
20894cat >>conftest.$ac_ext <<_ACEOF
20895/* end confdefs.h.  */
20896
20897#include <stdlib.h>
20898#include <stdarg.h>
20899#include <string.h>
20900#define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
20901void test(char *str, ...)
20902{
20903    va_list ap, ap2;
20904    int i;
20905    va_start(ap, str);
20906    DO_VA_COPY(ap2, ap);
20907    for (i = 1; i <= 9; i++) {
20908        int k = (int)va_arg(ap, int);
20909        if (k != i)
20910            abort();
20911    }
20912    DO_VA_COPY(ap, ap2);
20913    for (i = 1; i <= 9; i++) {
20914        int k = (int)va_arg(ap, int);
20915        if (k != i)
20916            abort();
20917    }
20918    va_end(ap);
20919}
20920int main(int argc, char *argv[])
20921{
20922    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20923    exit(0);
20924}
20925
20926_ACEOF
20927rm -f conftest$ac_exeext
20928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20929  (eval $ac_link) 2>&5
20930  ac_status=$?
20931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934  (eval $ac_try) 2>&5
20935  ac_status=$?
20936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937  (exit $ac_status); }; }; then
20938  ac_cv_va_copy="ASS"
20939else
20940  echo "$as_me: program exited with status $ac_status" >&5
20941echo "$as_me: failed program was:" >&5
20942sed 's/^/| /' conftest.$ac_ext >&5
20943
20944fi
20945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20946fi
20947    fi
20948
20949
20950
20951
20952    if test ".$ac_cv_va_copy" = .; then
20953        if test "$cross_compiling" = yes; then
20954  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20955See \`config.log' for more details." >&5
20956echo "$as_me: error: cannot run test program while cross compiling
20957See \`config.log' for more details." >&2;}
20958   { (exit 1); exit 1; }; }
20959else
20960  cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h.  */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h.  */
20966
20967#include <stdlib.h>
20968#include <stdarg.h>
20969#include <string.h>
20970#define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
20971void test(char *str, ...)
20972{
20973    va_list ap, ap2;
20974    int i;
20975    va_start(ap, str);
20976    DO_VA_COPY(ap2, ap);
20977    for (i = 1; i <= 9; i++) {
20978        int k = (int)va_arg(ap, int);
20979        if (k != i)
20980            abort();
20981    }
20982    DO_VA_COPY(ap, ap2);
20983    for (i = 1; i <= 9; i++) {
20984        int k = (int)va_arg(ap, int);
20985        if (k != i)
20986            abort();
20987    }
20988    va_end(ap);
20989}
20990int main(int argc, char *argv[])
20991{
20992    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
20993    exit(0);
20994}
20995
20996_ACEOF
20997rm -f conftest$ac_exeext
20998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20999  (eval $ac_link) 2>&5
21000  ac_status=$?
21001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004  (eval $ac_try) 2>&5
21005  ac_status=$?
21006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007  (exit $ac_status); }; }; then
21008  ac_cv_va_copy="ASP"
21009else
21010  echo "$as_me: program exited with status $ac_status" >&5
21011echo "$as_me: failed program was:" >&5
21012sed 's/^/| /' conftest.$ac_ext >&5
21013
21014fi
21015rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21016fi
21017    fi
21018
21019
21020
21021
21022    if test ".$ac_cv_va_copy" = .; then
21023        if test "$cross_compiling" = yes; then
21024  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21025See \`config.log' for more details." >&5
21026echo "$as_me: error: cannot run test program while cross compiling
21027See \`config.log' for more details." >&2;}
21028   { (exit 1); exit 1; }; }
21029else
21030  cat >conftest.$ac_ext <<_ACEOF
21031/* confdefs.h.  */
21032_ACEOF
21033cat confdefs.h >>conftest.$ac_ext
21034cat >>conftest.$ac_ext <<_ACEOF
21035/* end confdefs.h.  */
21036
21037#include <stdlib.h>
21038#include <stdarg.h>
21039#include <string.h>
21040#define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s))
21041void test(char *str, ...)
21042{
21043    va_list ap, ap2;
21044    int i;
21045    va_start(ap, str);
21046    DO_VA_COPY(ap2, ap);
21047    for (i = 1; i <= 9; i++) {
21048        int k = (int)va_arg(ap, int);
21049        if (k != i)
21050            abort();
21051    }
21052    DO_VA_COPY(ap, ap2);
21053    for (i = 1; i <= 9; i++) {
21054        int k = (int)va_arg(ap, int);
21055        if (k != i)
21056            abort();
21057    }
21058    va_end(ap);
21059}
21060int main(int argc, char *argv[])
21061{
21062    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21063    exit(0);
21064}
21065
21066_ACEOF
21067rm -f conftest$ac_exeext
21068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21069  (eval $ac_link) 2>&5
21070  ac_status=$?
21071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074  (eval $ac_try) 2>&5
21075  ac_status=$?
21076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077  (exit $ac_status); }; }; then
21078  ac_cv_va_copy="CPS"
21079else
21080  echo "$as_me: program exited with status $ac_status" >&5
21081echo "$as_me: failed program was:" >&5
21082sed 's/^/| /' conftest.$ac_ext >&5
21083
21084fi
21085rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21086fi
21087    fi
21088
21089
21090
21091
21092    if test ".$ac_cv_va_copy" = .; then
21093        if test "$cross_compiling" = yes; then
21094  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21095See \`config.log' for more details." >&5
21096echo "$as_me: error: cannot run test program while cross compiling
21097See \`config.log' for more details." >&2;}
21098   { (exit 1); exit 1; }; }
21099else
21100  cat >conftest.$ac_ext <<_ACEOF
21101/* confdefs.h.  */
21102_ACEOF
21103cat confdefs.h >>conftest.$ac_ext
21104cat >>conftest.$ac_ext <<_ACEOF
21105/* end confdefs.h.  */
21106
21107#include <stdlib.h>
21108#include <stdarg.h>
21109#include <string.h>
21110#define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s))
21111void test(char *str, ...)
21112{
21113    va_list ap, ap2;
21114    int i;
21115    va_start(ap, str);
21116    DO_VA_COPY(ap2, ap);
21117    for (i = 1; i <= 9; i++) {
21118        int k = (int)va_arg(ap, int);
21119        if (k != i)
21120            abort();
21121    }
21122    DO_VA_COPY(ap, ap2);
21123    for (i = 1; i <= 9; i++) {
21124        int k = (int)va_arg(ap, int);
21125        if (k != i)
21126            abort();
21127    }
21128    va_end(ap);
21129}
21130int main(int argc, char *argv[])
21131{
21132    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
21133    exit(0);
21134}
21135
21136_ACEOF
21137rm -f conftest$ac_exeext
21138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21139  (eval $ac_link) 2>&5
21140  ac_status=$?
21141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144  (eval $ac_try) 2>&5
21145  ac_status=$?
21146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147  (exit $ac_status); }; }; then
21148  ac_cv_va_copy="CPP"
21149else
21150  echo "$as_me: program exited with status $ac_status" >&5
21151echo "$as_me: failed program was:" >&5
21152sed 's/^/| /' conftest.$ac_ext >&5
21153
21154fi
21155rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21156fi
21157    fi
21158
21159    if test ".$ac_cv_va_copy" = .; then
21160        { { echo "$as_me:$LINENO: error: no working implementation found" >&5
21161echo "$as_me: error: no working implementation found" >&2;}
21162   { (exit 1); exit 1; }; }
21163    fi
21164
21165fi
21166
21167    if test ".$ac_cv_va_copy" = ".C99"; then
21168
21169cat >>confdefs.h <<\_ACEOF
21170#define HAVE_VA_COPY 1
21171_ACEOF
21172
21173  fi
21174
21175cat >>confdefs.h <<_ACEOF
21176#define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
21177_ACEOF
21178
21179
21180
21181    if test ".$ac_cv_va_copy" = ".C99"; then
21182      echo "$as_me:$LINENO: result: yes" >&5
21183echo "${ECHO_T}yes" >&6
21184  else
21185      echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
21186echo "${ECHO_T}no (using fallback implementation)" >&6
21187  fi
21188
21189
21190
21191
21192# Check whether --with-ex or --without-ex was given.
21193if test "${with_ex+set}" = set; then
21194  withval="$with_ex"
21195      if test ".$with_ex" = .yes; then
21196        #   via config script in PATH
21197        ex_version=`(ex-config --version) 2>/dev/null`
21198        if test ".$ex_version" != .; then
21199            CPPFLAGS="$CPPFLAGS `ex-config --cflags`"
21200            CFLAGS="$CFLAGS `ex-config --cflags`"
21201            LDFLAGS="$LDFLAGS `ex-config --ldflags`"
21202        fi
21203    else
21204        if test -d "$with_ex"; then
21205            found=0
21206            #   via config script
21207            for dir in $with_ex/bin $with_ex; do
21208                if test -f "$dir/ex-config" && test ! -f "$dir/ex-config.in"; then
21209                    ex_version=`($dir/ex-config --version) 2>/dev/null`
21210                    if test ".$ex_version" != .; then
21211                        CPPFLAGS="$CPPFLAGS `$dir/ex-config --cflags`"
21212                        CFLAGS="$CFLAGS `$dir/ex-config --cflags`"
21213                        LDFLAGS="$LDFLAGS `$dir/ex-config --ldflags`"
21214                        found=1
21215                        break
21216                    fi
21217                fi
21218            done
21219            #   in standard sub-areas
21220            if test ".$found" = .0; then
21221                for dir in $with_ex/include/ex $with_ex/include $with_ex; do
21222                    if test -f "$dir/ex.h"; then
21223                        CPPFLAGS="$CPPFLAGS -I$dir"
21224                        CFLAGS="$CFLAGS -I$dir"
21225                        found=1
21226                        break
21227                    fi
21228                done
21229                for dir in $with_ex/lib/ex $with_ex/lib $with_ex; do
21230                    if test -f "$dir/libex.la" && test -d "$dir/.libs"; then
21231                        LDFLAGS="$LDFLAGS -L$dir -L$dir/.libs"
21232                        found=1
21233                        break
21234                    elif test -f "$dir/libex.a" || test -f "$dir/libex.so"; then
21235                        LDFLAGS="$LDFLAGS -L$dir"
21236                        found=1
21237                        break
21238                    fi
21239                done
21240            fi
21241            #   in any sub-area
21242            if test ".$found" = .0; then
21243                for file in x `find $with_ex -name "ex.h" -type f -print`; do
21244                    test .$file = .x && continue
21245                    dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`
21246                    CPPFLAGS="$CPPFLAGS -I$dir"
21247                    CFLAGS="$CFLAGS -I$dir"
21248                done
21249                for file in x `find $with_ex -name "libex.[aso]" -type f -print`; do
21250                    test .$file = .x && continue
21251                    dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`
21252                    LDFLAGS="$LDFLAGS -L$dir"
21253                done
21254            fi
21255        fi
21256    fi
21257
21258for ac_header in ex.h
21259do
21260as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21261if eval "test \"\${$as_ac_Header+set}\" = set"; then
21262  echo "$as_me:$LINENO: checking for $ac_header" >&5
21263echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21264if eval "test \"\${$as_ac_Header+set}\" = set"; then
21265  echo $ECHO_N "(cached) $ECHO_C" >&6
21266fi
21267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21269else
21270  # Is the header compilable?
21271echo "$as_me:$LINENO: checking $ac_header usability" >&5
21272echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21273cat >conftest.$ac_ext <<_ACEOF
21274/* confdefs.h.  */
21275_ACEOF
21276cat confdefs.h >>conftest.$ac_ext
21277cat >>conftest.$ac_ext <<_ACEOF
21278/* end confdefs.h.  */
21279$ac_includes_default
21280#include <$ac_header>
21281_ACEOF
21282rm -f conftest.$ac_objext
21283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21284  (eval $ac_compile) 2>conftest.er1
21285  ac_status=$?
21286  grep -v '^ *+' conftest.er1 >conftest.err
21287  rm -f conftest.er1
21288  cat conftest.err >&5
21289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290  (exit $ac_status); } &&
21291	 { ac_try='test -z "$ac_c_werror_flag"
21292			 || test ! -s conftest.err'
21293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294  (eval $ac_try) 2>&5
21295  ac_status=$?
21296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297  (exit $ac_status); }; } &&
21298	 { ac_try='test -s conftest.$ac_objext'
21299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300  (eval $ac_try) 2>&5
21301  ac_status=$?
21302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303  (exit $ac_status); }; }; then
21304  ac_header_compiler=yes
21305else
21306  echo "$as_me: failed program was:" >&5
21307sed 's/^/| /' conftest.$ac_ext >&5
21308
21309ac_header_compiler=no
21310fi
21311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21312echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21313echo "${ECHO_T}$ac_header_compiler" >&6
21314
21315# Is the header present?
21316echo "$as_me:$LINENO: checking $ac_header presence" >&5
21317echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21318cat >conftest.$ac_ext <<_ACEOF
21319/* confdefs.h.  */
21320_ACEOF
21321cat confdefs.h >>conftest.$ac_ext
21322cat >>conftest.$ac_ext <<_ACEOF
21323/* end confdefs.h.  */
21324#include <$ac_header>
21325_ACEOF
21326if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21327  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21328  ac_status=$?
21329  grep -v '^ *+' conftest.er1 >conftest.err
21330  rm -f conftest.er1
21331  cat conftest.err >&5
21332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333  (exit $ac_status); } >/dev/null; then
21334  if test -s conftest.err; then
21335    ac_cpp_err=$ac_c_preproc_warn_flag
21336    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21337  else
21338    ac_cpp_err=
21339  fi
21340else
21341  ac_cpp_err=yes
21342fi
21343if test -z "$ac_cpp_err"; then
21344  ac_header_preproc=yes
21345else
21346  echo "$as_me: failed program was:" >&5
21347sed 's/^/| /' conftest.$ac_ext >&5
21348
21349  ac_header_preproc=no
21350fi
21351rm -f conftest.err conftest.$ac_ext
21352echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21353echo "${ECHO_T}$ac_header_preproc" >&6
21354
21355# So?  What about this header?
21356case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21357  yes:no: )
21358    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21359echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21360    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21361echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21362    ac_header_preproc=yes
21363    ;;
21364  no:yes:* )
21365    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21366echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21367    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21368echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21369    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21370echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21371    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21372echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21373    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21374echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21375    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21376echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21377    (
21378      cat <<\_ASBOX
21379## ------------------------------------------ ##
21380## Report this to the AC_PACKAGE_NAME lists.  ##
21381## ------------------------------------------ ##
21382_ASBOX
21383    ) |
21384      sed "s/^/$as_me: WARNING:     /" >&2
21385    ;;
21386esac
21387echo "$as_me:$LINENO: checking for $ac_header" >&5
21388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21389if eval "test \"\${$as_ac_Header+set}\" = set"; then
21390  echo $ECHO_N "(cached) $ECHO_C" >&6
21391else
21392  eval "$as_ac_Header=\$ac_header_preproc"
21393fi
21394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21396
21397fi
21398if test `eval echo '${'$as_ac_Header'}'` = yes; then
21399  cat >>confdefs.h <<_ACEOF
21400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21401_ACEOF
21402
21403fi
21404
21405done
21406
21407
21408echo "$as_me:$LINENO: checking for __ex_ctx in -lex" >&5
21409echo $ECHO_N "checking for __ex_ctx in -lex... $ECHO_C" >&6
21410if test "${ac_cv_lib_ex___ex_ctx+set}" = set; then
21411  echo $ECHO_N "(cached) $ECHO_C" >&6
21412else
21413  ac_check_lib_save_LIBS=$LIBS
21414LIBS="-lex  $LIBS"
21415cat >conftest.$ac_ext <<_ACEOF
21416/* confdefs.h.  */
21417_ACEOF
21418cat confdefs.h >>conftest.$ac_ext
21419cat >>conftest.$ac_ext <<_ACEOF
21420/* end confdefs.h.  */
21421
21422/* Override any gcc2 internal prototype to avoid an error.  */
21423#ifdef __cplusplus
21424extern "C"
21425#endif
21426/* We use char because int might match the return type of a gcc2
21427   builtin and then its argument prototype would still apply.  */
21428char __ex_ctx ();
21429int
21430main ()
21431{
21432__ex_ctx ();
21433  ;
21434  return 0;
21435}
21436_ACEOF
21437rm -f conftest.$ac_objext conftest$ac_exeext
21438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21439  (eval $ac_link) 2>conftest.er1
21440  ac_status=$?
21441  grep -v '^ *+' conftest.er1 >conftest.err
21442  rm -f conftest.er1
21443  cat conftest.err >&5
21444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445  (exit $ac_status); } &&
21446	 { ac_try='test -z "$ac_c_werror_flag"
21447			 || test ! -s conftest.err'
21448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449  (eval $ac_try) 2>&5
21450  ac_status=$?
21451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452  (exit $ac_status); }; } &&
21453	 { ac_try='test -s conftest$ac_exeext'
21454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455  (eval $ac_try) 2>&5
21456  ac_status=$?
21457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458  (exit $ac_status); }; }; then
21459  ac_cv_lib_ex___ex_ctx=yes
21460else
21461  echo "$as_me: failed program was:" >&5
21462sed 's/^/| /' conftest.$ac_ext >&5
21463
21464ac_cv_lib_ex___ex_ctx=no
21465fi
21466rm -f conftest.err conftest.$ac_objext \
21467      conftest$ac_exeext conftest.$ac_ext
21468LIBS=$ac_check_lib_save_LIBS
21469fi
21470echo "$as_me:$LINENO: result: $ac_cv_lib_ex___ex_ctx" >&5
21471echo "${ECHO_T}$ac_cv_lib_ex___ex_ctx" >&6
21472if test $ac_cv_lib_ex___ex_ctx = yes; then
21473  cat >>confdefs.h <<_ACEOF
21474#define HAVE_LIBEX 1
21475_ACEOF
21476
21477  LIBS="-lex $LIBS"
21478
21479fi
21480
21481    with_ex=yes
21482    ac_var="ac_cv_header_`echo ex.h | sed 'y%./+-%__p_%'`"
21483    eval "ac_val=\$$ac_var"
21484    if test ".$ac_val" != .yes; then
21485        with_ex=no
21486    fi
21487    if test ".$ac_cv_lib_ex___ex_ctx" != .yes; then
21488        with_ex=no
21489    fi
21490    if test ".$with_ex" = .no; then
21491        { { echo "$as_me:$LINENO: error: Unable to find OSSP ex library" >&5
21492echo "$as_me: error: Unable to find OSSP ex library" >&2;}
21493   { (exit 1); exit 1; }; }
21494    fi
21495
21496else
21497  if test ".$with_ex" = .; then
21498    with_ex=no
21499fi
21500
21501fi; echo "$as_me:$LINENO: checking whether to build against external OSSP ex library" >&5
21502echo $ECHO_N "checking whether to build against external OSSP ex library... $ECHO_C" >&6
21503if test ".$with_ex" = .yes; then
21504
21505cat >>confdefs.h <<\_ACEOF
21506#define WITH_EX 1
21507_ACEOF
21508
21509else
21510    :
21511fi
21512echo "$as_me:$LINENO: result: $with_ex" >&5
21513echo "${ECHO_T}$with_ex" >&6
21514
21515
21516          ac_config_headers="$ac_config_headers config.h"
21517
21518                              ac_config_files="$ac_config_files Makefile sa-config sa.pc"
21519
21520          ac_config_commands="$ac_config_commands adjustment"
21521
21522cat >confcache <<\_ACEOF
21523# This file is a shell script that caches the results of configure
21524# tests run on this system so they can be shared between configure
21525# scripts and configure runs, see configure's option --config-cache.
21526# It is not useful on other systems.  If it contains results you don't
21527# want to keep, you may remove or edit it.
21528#
21529# config.status only pays attention to the cache file if you give it
21530# the --recheck option to rerun configure.
21531#
21532# `ac_cv_env_foo' variables (set or unset) will be overridden when
21533# loading this file, other *unset* `ac_cv_foo' will be assigned the
21534# following values.
21535
21536_ACEOF
21537
21538# The following way of writing the cache mishandles newlines in values,
21539# but we know of no workaround that is simple, portable, and efficient.
21540# So, don't put newlines in cache variables' values.
21541# Ultrix sh set writes to stderr and can't be redirected directly,
21542# and sets the high bit in the cache file unless we assign to the vars.
21543{
21544  (set) 2>&1 |
21545    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21546    *ac_space=\ *)
21547      # `set' does not quote correctly, so add quotes (double-quote
21548      # substitution turns \\\\ into \\, and sed turns \\ into \).
21549      sed -n \
21550	"s/'/'\\\\''/g;
21551	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21552      ;;
21553    *)
21554      # `set' quotes correctly as required by POSIX, so do not add quotes.
21555      sed -n \
21556	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21557      ;;
21558    esac;
21559} |
21560  sed '
21561     t clear
21562     : clear
21563     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21564     t end
21565     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21566     : end' >>confcache
21567if diff $cache_file confcache >/dev/null 2>&1; then :; else
21568  if test -w $cache_file; then
21569    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21570    cat confcache >$cache_file
21571  else
21572    echo "not updating unwritable cache $cache_file"
21573  fi
21574fi
21575rm -f confcache
21576
21577test "x$prefix" = xNONE && prefix=$ac_default_prefix
21578# Let make expand exec_prefix.
21579test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21580
21581# VPATH may cause trouble with some makes, so we remove $(srcdir),
21582# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21583# trailing colons and then remove the whole line if VPATH becomes empty
21584# (actually we leave an empty line to preserve line numbers).
21585if test "x$srcdir" = x.; then
21586  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21587s/:*\$(srcdir):*/:/;
21588s/:*\${srcdir}:*/:/;
21589s/:*@srcdir@:*/:/;
21590s/^\([^=]*=[	 ]*\):*/\1/;
21591s/:*$//;
21592s/^[^=]*=[	 ]*$//;
21593}'
21594fi
21595
21596DEFS=-DHAVE_CONFIG_H
21597
21598ac_libobjs=
21599ac_ltlibobjs=
21600for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21601  # 1. Remove the extension, and $U if already installed.
21602  ac_i=`echo "$ac_i" |
21603	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21604  # 2. Add them.
21605  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21606  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21607done
21608LIBOBJS=$ac_libobjs
21609
21610LTLIBOBJS=$ac_ltlibobjs
21611
21612
21613
21614: ${CONFIG_STATUS=./config.status}
21615ac_clean_files_save=$ac_clean_files
21616ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21617{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21618echo "$as_me: creating $CONFIG_STATUS" >&6;}
21619cat >$CONFIG_STATUS <<_ACEOF
21620#! $SHELL
21621# Generated by $as_me.
21622# Run this file to recreate the current configuration.
21623# Compiler output produced by configure, useful for debugging
21624# configure, is in config.log if it exists.
21625
21626debug=false
21627ac_cs_recheck=false
21628ac_cs_silent=false
21629SHELL=\${CONFIG_SHELL-$SHELL}
21630_ACEOF
21631
21632cat >>$CONFIG_STATUS <<\_ACEOF
21633## --------------------- ##
21634## M4sh Initialization.  ##
21635## --------------------- ##
21636
21637# Be Bourne compatible
21638if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21639  emulate sh
21640  NULLCMD=:
21641  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21642  # is contrary to our usage.  Disable this feature.
21643  alias -g '${1+"$@"}'='"$@"'
21644elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21645  set -o posix
21646fi
21647DUALCASE=1; export DUALCASE # for MKS sh
21648
21649# Support unset when possible.
21650if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21651  as_unset=unset
21652else
21653  as_unset=false
21654fi
21655
21656
21657# Work around bugs in pre-3.0 UWIN ksh.
21658$as_unset ENV MAIL MAILPATH
21659PS1='$ '
21660PS2='> '
21661PS4='+ '
21662
21663# NLS nuisances.
21664for as_var in \
21665  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21666  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21667  LC_TELEPHONE LC_TIME
21668do
21669  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21670    eval $as_var=C; export $as_var
21671  else
21672    $as_unset $as_var
21673  fi
21674done
21675
21676# Required to use basename.
21677if expr a : '\(a\)' >/dev/null 2>&1; then
21678  as_expr=expr
21679else
21680  as_expr=false
21681fi
21682
21683if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21684  as_basename=basename
21685else
21686  as_basename=false
21687fi
21688
21689
21690# Name of the executable.
21691as_me=`$as_basename "$0" ||
21692$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21693	 X"$0" : 'X\(//\)$' \| \
21694	 X"$0" : 'X\(/\)$' \| \
21695	 .     : '\(.\)' 2>/dev/null ||
21696echo X/"$0" |
21697    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21698  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21699  	  /^X\/\(\/\).*/{ s//\1/; q; }
21700  	  s/.*/./; q'`
21701
21702
21703# PATH needs CR, and LINENO needs CR and PATH.
21704# Avoid depending upon Character Ranges.
21705as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21706as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21707as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21708as_cr_digits='0123456789'
21709as_cr_alnum=$as_cr_Letters$as_cr_digits
21710
21711# The user is always right.
21712if test "${PATH_SEPARATOR+set}" != set; then
21713  echo "#! /bin/sh" >conf$$.sh
21714  echo  "exit 0"   >>conf$$.sh
21715  chmod +x conf$$.sh
21716  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21717    PATH_SEPARATOR=';'
21718  else
21719    PATH_SEPARATOR=:
21720  fi
21721  rm -f conf$$.sh
21722fi
21723
21724
21725  as_lineno_1=$LINENO
21726  as_lineno_2=$LINENO
21727  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21728  test "x$as_lineno_1" != "x$as_lineno_2" &&
21729  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21730  # Find who we are.  Look in the path if we contain no path at all
21731  # relative or not.
21732  case $0 in
21733    *[\\/]* ) as_myself=$0 ;;
21734    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21735for as_dir in $PATH
21736do
21737  IFS=$as_save_IFS
21738  test -z "$as_dir" && as_dir=.
21739  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21740done
21741
21742       ;;
21743  esac
21744  # We did not find ourselves, most probably we were run as `sh COMMAND'
21745  # in which case we are not to be found in the path.
21746  if test "x$as_myself" = x; then
21747    as_myself=$0
21748  fi
21749  if test ! -f "$as_myself"; then
21750    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21751echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21752   { (exit 1); exit 1; }; }
21753  fi
21754  case $CONFIG_SHELL in
21755  '')
21756    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21757for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21758do
21759  IFS=$as_save_IFS
21760  test -z "$as_dir" && as_dir=.
21761  for as_base in sh bash ksh sh5; do
21762	 case $as_dir in
21763	 /*)
21764	   if ("$as_dir/$as_base" -c '
21765  as_lineno_1=$LINENO
21766  as_lineno_2=$LINENO
21767  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21768  test "x$as_lineno_1" != "x$as_lineno_2" &&
21769  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21770	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21771	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21772	     CONFIG_SHELL=$as_dir/$as_base
21773	     export CONFIG_SHELL
21774	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21775	   fi;;
21776	 esac
21777       done
21778done
21779;;
21780  esac
21781
21782  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21783  # uniformly replaced by the line number.  The first 'sed' inserts a
21784  # line-number line before each line; the second 'sed' does the real
21785  # work.  The second script uses 'N' to pair each line-number line
21786  # with the numbered line, and appends trailing '-' during
21787  # substitution so that $LINENO is not a special case at line end.
21788  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21789  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21790  sed '=' <$as_myself |
21791    sed '
21792      N
21793      s,$,-,
21794      : loop
21795      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21796      t loop
21797      s,-$,,
21798      s,^['$as_cr_digits']*\n,,
21799    ' >$as_me.lineno &&
21800  chmod +x $as_me.lineno ||
21801    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21802echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21803   { (exit 1); exit 1; }; }
21804
21805  # Don't try to exec as it changes $[0], causing all sort of problems
21806  # (the dirname of $[0] is not the place where we might find the
21807  # original and so on.  Autoconf is especially sensible to this).
21808  . ./$as_me.lineno
21809  # Exit status is that of the last command.
21810  exit
21811}
21812
21813
21814case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21815  *c*,-n*) ECHO_N= ECHO_C='
21816' ECHO_T='	' ;;
21817  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21818  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21819esac
21820
21821if expr a : '\(a\)' >/dev/null 2>&1; then
21822  as_expr=expr
21823else
21824  as_expr=false
21825fi
21826
21827rm -f conf$$ conf$$.exe conf$$.file
21828echo >conf$$.file
21829if ln -s conf$$.file conf$$ 2>/dev/null; then
21830  # We could just check for DJGPP; but this test a) works b) is more generic
21831  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21832  if test -f conf$$.exe; then
21833    # Don't use ln at all; we don't have any links
21834    as_ln_s='cp -p'
21835  else
21836    as_ln_s='ln -s'
21837  fi
21838elif ln conf$$.file conf$$ 2>/dev/null; then
21839  as_ln_s=ln
21840else
21841  as_ln_s='cp -p'
21842fi
21843rm -f conf$$ conf$$.exe conf$$.file
21844
21845if mkdir -p . 2>/dev/null; then
21846  as_mkdir_p=:
21847else
21848  test -d ./-p && rmdir ./-p
21849  as_mkdir_p=false
21850fi
21851
21852as_executable_p="test -f"
21853
21854# Sed expression to map a string onto a valid CPP name.
21855as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21856
21857# Sed expression to map a string onto a valid variable name.
21858as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21859
21860
21861# IFS
21862# We need space, tab and new line, in precisely that order.
21863as_nl='
21864'
21865IFS=" 	$as_nl"
21866
21867# CDPATH.
21868$as_unset CDPATH
21869
21870exec 6>&1
21871
21872# Open the log real soon, to keep \$[0] and so on meaningful, and to
21873# report actual input values of CONFIG_FILES etc. instead of their
21874# values after options handling.  Logging --version etc. is OK.
21875exec 5>>config.log
21876{
21877  echo
21878  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21879## Running $as_me. ##
21880_ASBOX
21881} >&5
21882cat >&5 <<_CSEOF
21883
21884This file was extended by $as_me, which was
21885generated by GNU Autoconf 2.59 (OpenPKG-CURRENT).  Invocation command line was
21886
21887  CONFIG_FILES    = $CONFIG_FILES
21888  CONFIG_HEADERS  = $CONFIG_HEADERS
21889  CONFIG_LINKS    = $CONFIG_LINKS
21890  CONFIG_COMMANDS = $CONFIG_COMMANDS
21891  $ $0 $@
21892
21893_CSEOF
21894echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21895echo >&5
21896_ACEOF
21897
21898# Files that config.status was made for.
21899if test -n "$ac_config_files"; then
21900  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21901fi
21902
21903if test -n "$ac_config_headers"; then
21904  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21905fi
21906
21907if test -n "$ac_config_links"; then
21908  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21909fi
21910
21911if test -n "$ac_config_commands"; then
21912  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21913fi
21914
21915cat >>$CONFIG_STATUS <<\_ACEOF
21916
21917ac_cs_usage="\
21918\`$as_me' instantiates files from templates according to the
21919current configuration.
21920
21921Usage: $0 [OPTIONS] [FILE]...
21922
21923  -h, --help       print this help, then exit
21924  -V, --version    print version number, then exit
21925  -q, --quiet      do not print progress messages
21926  -d, --debug      don't remove temporary files
21927      --recheck    update $as_me by reconfiguring in the same conditions
21928  --file=FILE[:TEMPLATE]
21929		   instantiate the configuration file FILE
21930  --header=FILE[:TEMPLATE]
21931		   instantiate the configuration header FILE
21932
21933Configuration files:
21934$config_files
21935
21936Configuration headers:
21937$config_headers
21938
21939Configuration commands:
21940$config_commands
21941
21942Report bugs to <bug-autoconf@gnu.org>."
21943_ACEOF
21944
21945cat >>$CONFIG_STATUS <<_ACEOF
21946ac_cs_version="\\
21947config.status
21948configured by $0, generated by GNU Autoconf 2.59 (OpenPKG-CURRENT),
21949  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21950
21951Copyright (C) 2003 Free Software Foundation, Inc.
21952This config.status script is free software; the Free Software Foundation
21953gives unlimited permission to copy, distribute and modify it."
21954srcdir=$srcdir
21955_ACEOF
21956
21957cat >>$CONFIG_STATUS <<\_ACEOF
21958# If no file are specified by the user, then we need to provide default
21959# value.  By we need to know if files were specified by the user.
21960ac_need_defaults=:
21961while test $# != 0
21962do
21963  case $1 in
21964  --*=*)
21965    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21966    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21967    ac_shift=:
21968    ;;
21969  -*)
21970    ac_option=$1
21971    ac_optarg=$2
21972    ac_shift=shift
21973    ;;
21974  *) # This is not an option, so the user has probably given explicit
21975     # arguments.
21976     ac_option=$1
21977     ac_need_defaults=false;;
21978  esac
21979
21980  case $ac_option in
21981  # Handling of the options.
21982_ACEOF
21983cat >>$CONFIG_STATUS <<\_ACEOF
21984  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21985    ac_cs_recheck=: ;;
21986  --version | --vers* | -V )
21987    echo "$ac_cs_version"; exit 0 ;;
21988  --he | --h)
21989    # Conflict between --help and --header
21990    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21991Try \`$0 --help' for more information." >&5
21992echo "$as_me: error: ambiguous option: $1
21993Try \`$0 --help' for more information." >&2;}
21994   { (exit 1); exit 1; }; };;
21995  --help | --hel | -h )
21996    echo "$ac_cs_usage"; exit 0 ;;
21997  --debug | --d* | -d )
21998    debug=: ;;
21999  --file | --fil | --fi | --f )
22000    $ac_shift
22001    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22002    ac_need_defaults=false;;
22003  --header | --heade | --head | --hea )
22004    $ac_shift
22005    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22006    ac_need_defaults=false;;
22007  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22008  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22009    ac_cs_silent=: ;;
22010
22011  # This is an error.
22012  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22013Try \`$0 --help' for more information." >&5
22014echo "$as_me: error: unrecognized option: $1
22015Try \`$0 --help' for more information." >&2;}
22016   { (exit 1); exit 1; }; } ;;
22017
22018  *) ac_config_targets="$ac_config_targets $1" ;;
22019
22020  esac
22021  shift
22022done
22023
22024ac_configure_extra_args=
22025
22026if $ac_cs_silent; then
22027  exec 6>/dev/null
22028  ac_configure_extra_args="$ac_configure_extra_args --silent"
22029fi
22030
22031_ACEOF
22032cat >>$CONFIG_STATUS <<_ACEOF
22033if \$ac_cs_recheck; then
22034  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22035  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22036fi
22037
22038_ACEOF
22039
22040
22041
22042
22043
22044cat >>$CONFIG_STATUS <<\_ACEOF
22045for ac_config_target in $ac_config_targets
22046do
22047  case "$ac_config_target" in
22048  # Handling of arguments.
22049  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22050  "sa-config" ) CONFIG_FILES="$CONFIG_FILES sa-config" ;;
22051  "sa.pc" ) CONFIG_FILES="$CONFIG_FILES sa.pc" ;;
22052  "adjustment" ) CONFIG_COMMANDS="$CONFIG_COMMANDS adjustment" ;;
22053  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22054  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22055echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22056   { (exit 1); exit 1; }; };;
22057  esac
22058done
22059
22060# If the user did not use the arguments to specify the items to instantiate,
22061# then the envvar interface is used.  Set only those that are not.
22062# We use the long form for the default assignment because of an extremely
22063# bizarre bug on SunOS 4.1.3.
22064if $ac_need_defaults; then
22065  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22066  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22067  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22068fi
22069
22070# Have a temporary directory for convenience.  Make it in the build tree
22071# simply because there is no reason to put it here, and in addition,
22072# creating and moving files from /tmp can sometimes cause problems.
22073# Create a temporary directory, and hook for its removal unless debugging.
22074$debug ||
22075{
22076  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22077  trap '{ (exit 1); exit 1; }' 1 2 13 15
22078}
22079
22080# Create a (secure) tmp directory for tmp files.
22081
22082{
22083  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22084  test -n "$tmp" && test -d "$tmp"
22085}  ||
22086{
22087  tmp=./confstat$$-$RANDOM
22088  (umask 077 && mkdir $tmp)
22089} ||
22090{
22091   echo "$me: cannot create a temporary directory in ." >&2
22092   { (exit 1); exit 1; }
22093}
22094
22095_ACEOF
22096
22097cat >>$CONFIG_STATUS <<_ACEOF
22098
22099#
22100# CONFIG_FILES section.
22101#
22102
22103# No need to generate the scripts if there are no CONFIG_FILES.
22104# This happens for instance when ./config.status config.h
22105if test -n "\$CONFIG_FILES"; then
22106  # Protect against being on the right side of a sed subst in config.status.
22107  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22108   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22109s,@SHELL@,$SHELL,;t t
22110s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22111s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22112s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22113s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22114s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22115s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22116s,@exec_prefix@,$exec_prefix,;t t
22117s,@prefix@,$prefix,;t t
22118s,@program_transform_name@,$program_transform_name,;t t
22119s,@bindir@,$bindir,;t t
22120s,@sbindir@,$sbindir,;t t
22121s,@libexecdir@,$libexecdir,;t t
22122s,@datadir@,$datadir,;t t
22123s,@sysconfdir@,$sysconfdir,;t t
22124s,@sharedstatedir@,$sharedstatedir,;t t
22125s,@localstatedir@,$localstatedir,;t t
22126s,@libdir@,$libdir,;t t
22127s,@includedir@,$includedir,;t t
22128s,@oldincludedir@,$oldincludedir,;t t
22129s,@infodir@,$infodir,;t t
22130s,@mandir@,$mandir,;t t
22131s,@build_alias@,$build_alias,;t t
22132s,@host_alias@,$host_alias,;t t
22133s,@target_alias@,$target_alias,;t t
22134s,@DEFS@,$DEFS,;t t
22135s,@ECHO_C@,$ECHO_C,;t t
22136s,@ECHO_N@,$ECHO_N,;t t
22137s,@ECHO_T@,$ECHO_T,;t t
22138s,@LIBS@,$LIBS,;t t
22139s,@SA_VERSION_STR@,$SA_VERSION_STR,;t t
22140s,@SA_VERSION_RAW@,$SA_VERSION_RAW,;t t
22141s,@SET_MAKE@,$SET_MAKE,;t t
22142s,@CC@,$CC,;t t
22143s,@CFLAGS@,$CFLAGS,;t t
22144s,@LDFLAGS@,$LDFLAGS,;t t
22145s,@CPPFLAGS@,$CPPFLAGS,;t t
22146s,@ac_ct_CC@,$ac_ct_CC,;t t
22147s,@EXEEXT@,$EXEEXT,;t t
22148s,@OBJEXT@,$OBJEXT,;t t
22149s,@build@,$build,;t t
22150s,@build_cpu@,$build_cpu,;t t
22151s,@build_vendor@,$build_vendor,;t t
22152s,@build_os@,$build_os,;t t
22153s,@host@,$host,;t t
22154s,@host_cpu@,$host_cpu,;t t
22155s,@host_vendor@,$host_vendor,;t t
22156s,@host_os@,$host_os,;t t
22157s,@EGREP@,$EGREP,;t t
22158s,@LN_S@,$LN_S,;t t
22159s,@ECHO@,$ECHO,;t t
22160s,@AR@,$AR,;t t
22161s,@ac_ct_AR@,$ac_ct_AR,;t t
22162s,@RANLIB@,$RANLIB,;t t
22163s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22164s,@STRIP@,$STRIP,;t t
22165s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22166s,@CPP@,$CPP,;t t
22167s,@CXX@,$CXX,;t t
22168s,@CXXFLAGS@,$CXXFLAGS,;t t
22169s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22170s,@CXXCPP@,$CXXCPP,;t t
22171s,@F77@,$F77,;t t
22172s,@FFLAGS@,$FFLAGS,;t t
22173s,@ac_ct_F77@,$ac_ct_F77,;t t
22174s,@LIBTOOL@,$LIBTOOL,;t t
22175s,@LIBOBJS@,$LIBOBJS,;t t
22176s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22177CEOF
22178
22179_ACEOF
22180
22181  cat >>$CONFIG_STATUS <<\_ACEOF
22182  # Split the substitutions into bite-sized pieces for seds with
22183  # small command number limits, like on Digital OSF/1 and HP-UX.
22184  ac_max_sed_lines=48
22185  ac_sed_frag=1 # Number of current file.
22186  ac_beg=1 # First line for current file.
22187  ac_end=$ac_max_sed_lines # Line after last line for current file.
22188  ac_more_lines=:
22189  ac_sed_cmds=
22190  while $ac_more_lines; do
22191    if test $ac_beg -gt 1; then
22192      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22193    else
22194      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22195    fi
22196    if test ! -s $tmp/subs.frag; then
22197      ac_more_lines=false
22198    else
22199      # The purpose of the label and of the branching condition is to
22200      # speed up the sed processing (if there are no `@' at all, there
22201      # is no need to browse any of the substitutions).
22202      # These are the two extra sed commands mentioned above.
22203      (echo ':t
22204  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22205      if test -z "$ac_sed_cmds"; then
22206	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22207      else
22208	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22209      fi
22210      ac_sed_frag=`expr $ac_sed_frag + 1`
22211      ac_beg=$ac_end
22212      ac_end=`expr $ac_end + $ac_max_sed_lines`
22213    fi
22214  done
22215  if test -z "$ac_sed_cmds"; then
22216    ac_sed_cmds=cat
22217  fi
22218fi # test -n "$CONFIG_FILES"
22219
22220_ACEOF
22221cat >>$CONFIG_STATUS <<\_ACEOF
22222for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22223  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22224  case $ac_file in
22225  - | *:- | *:-:* ) # input from stdin
22226	cat >$tmp/stdin
22227	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22228	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22229  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22230	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22231  * )   ac_file_in=$ac_file.in ;;
22232  esac
22233
22234  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22235  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22237	 X"$ac_file" : 'X\(//\)[^/]' \| \
22238	 X"$ac_file" : 'X\(//\)$' \| \
22239	 X"$ac_file" : 'X\(/\)' \| \
22240	 .     : '\(.\)' 2>/dev/null ||
22241echo X"$ac_file" |
22242    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22243  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22244  	  /^X\(\/\/\)$/{ s//\1/; q; }
22245  	  /^X\(\/\).*/{ s//\1/; q; }
22246  	  s/.*/./; q'`
22247  { if $as_mkdir_p; then
22248    mkdir -p "$ac_dir"
22249  else
22250    as_dir="$ac_dir"
22251    as_dirs=
22252    while test ! -d "$as_dir"; do
22253      as_dirs="$as_dir $as_dirs"
22254      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22255$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22256	 X"$as_dir" : 'X\(//\)[^/]' \| \
22257	 X"$as_dir" : 'X\(//\)$' \| \
22258	 X"$as_dir" : 'X\(/\)' \| \
22259	 .     : '\(.\)' 2>/dev/null ||
22260echo X"$as_dir" |
22261    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22262  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22263  	  /^X\(\/\/\)$/{ s//\1/; q; }
22264  	  /^X\(\/\).*/{ s//\1/; q; }
22265  	  s/.*/./; q'`
22266    done
22267    test ! -n "$as_dirs" || mkdir $as_dirs
22268  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22269echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22270   { (exit 1); exit 1; }; }; }
22271
22272  ac_builddir=.
22273
22274if test "$ac_dir" != .; then
22275  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22276  # A "../" for each directory in $ac_dir_suffix.
22277  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22278else
22279  ac_dir_suffix= ac_top_builddir=
22280fi
22281
22282case $srcdir in
22283  .)  # No --srcdir option.  We are building in place.
22284    ac_srcdir=.
22285    if test -z "$ac_top_builddir"; then
22286       ac_top_srcdir=.
22287    else
22288       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22289    fi ;;
22290  [\\/]* | ?:[\\/]* )  # Absolute path.
22291    ac_srcdir=$srcdir$ac_dir_suffix;
22292    ac_top_srcdir=$srcdir ;;
22293  *) # Relative path.
22294    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22295    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22296esac
22297
22298# Do not use `cd foo && pwd` to compute absolute paths, because
22299# the directories may not exist.
22300case `pwd` in
22301.) ac_abs_builddir="$ac_dir";;
22302*)
22303  case "$ac_dir" in
22304  .) ac_abs_builddir=`pwd`;;
22305  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22306  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22307  esac;;
22308esac
22309case $ac_abs_builddir in
22310.) ac_abs_top_builddir=${ac_top_builddir}.;;
22311*)
22312  case ${ac_top_builddir}. in
22313  .) ac_abs_top_builddir=$ac_abs_builddir;;
22314  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22315  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22316  esac;;
22317esac
22318case $ac_abs_builddir in
22319.) ac_abs_srcdir=$ac_srcdir;;
22320*)
22321  case $ac_srcdir in
22322  .) ac_abs_srcdir=$ac_abs_builddir;;
22323  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22324  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22325  esac;;
22326esac
22327case $ac_abs_builddir in
22328.) ac_abs_top_srcdir=$ac_top_srcdir;;
22329*)
22330  case $ac_top_srcdir in
22331  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22332  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22333  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22334  esac;;
22335esac
22336
22337
22338
22339  if test x"$ac_file" != x-; then
22340    { echo "$as_me:$LINENO: creating $ac_file" >&5
22341echo "$as_me: creating $ac_file" >&6;}
22342    rm -f "$ac_file"
22343  fi
22344  # Let's still pretend it is `configure' which instantiates (i.e., don't
22345  # use $as_me), people would be surprised to read:
22346  #    /* config.h.  Generated by config.status.  */
22347  if test x"$ac_file" = x-; then
22348    configure_input=
22349  else
22350    configure_input="$ac_file.  "
22351  fi
22352  configure_input=$configure_input"Generated from `echo $ac_file_in |
22353				     sed 's,.*/,,'` by configure."
22354
22355  # First look for the input files in the build tree, otherwise in the
22356  # src tree.
22357  ac_file_inputs=`IFS=:
22358    for f in $ac_file_in; do
22359      case $f in
22360      -) echo $tmp/stdin ;;
22361      [\\/$]*)
22362	 # Absolute (can't be DOS-style, as IFS=:)
22363	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22364echo "$as_me: error: cannot find input file: $f" >&2;}
22365   { (exit 1); exit 1; }; }
22366	 echo "$f";;
22367      *) # Relative
22368	 if test -f "$f"; then
22369	   # Build tree
22370	   echo "$f"
22371	 elif test -f "$srcdir/$f"; then
22372	   # Source tree
22373	   echo "$srcdir/$f"
22374	 else
22375	   # /dev/null tree
22376	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22377echo "$as_me: error: cannot find input file: $f" >&2;}
22378   { (exit 1); exit 1; }; }
22379	 fi;;
22380      esac
22381    done` || { (exit 1); exit 1; }
22382_ACEOF
22383cat >>$CONFIG_STATUS <<_ACEOF
22384  sed "$ac_vpsub
22385$extrasub
22386_ACEOF
22387cat >>$CONFIG_STATUS <<\_ACEOF
22388:t
22389/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22390s,@configure_input@,$configure_input,;t t
22391s,@srcdir@,$ac_srcdir,;t t
22392s,@abs_srcdir@,$ac_abs_srcdir,;t t
22393s,@top_srcdir@,$ac_top_srcdir,;t t
22394s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22395s,@builddir@,$ac_builddir,;t t
22396s,@abs_builddir@,$ac_abs_builddir,;t t
22397s,@top_builddir@,$ac_top_builddir,;t t
22398s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22399" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22400  rm -f $tmp/stdin
22401  if test x"$ac_file" != x-; then
22402    mv $tmp/out $ac_file
22403  else
22404    cat $tmp/out
22405    rm -f $tmp/out
22406  fi
22407
22408done
22409_ACEOF
22410cat >>$CONFIG_STATUS <<\_ACEOF
22411
22412#
22413# CONFIG_HEADER section.
22414#
22415
22416# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22417# NAME is the cpp macro being defined and VALUE is the value it is being given.
22418#
22419# ac_d sets the value in "#define NAME VALUE" lines.
22420ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
22421ac_dB='[	 ].*$,\1#\2'
22422ac_dC=' '
22423ac_dD=',;t'
22424# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22425ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
22426ac_uB='$,\1#\2define\3'
22427ac_uC=' '
22428ac_uD=',;t'
22429
22430for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22431  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22432  case $ac_file in
22433  - | *:- | *:-:* ) # input from stdin
22434	cat >$tmp/stdin
22435	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22436	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22437  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22438	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22439  * )   ac_file_in=$ac_file.in ;;
22440  esac
22441
22442  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22443echo "$as_me: creating $ac_file" >&6;}
22444
22445  # First look for the input files in the build tree, otherwise in the
22446  # src tree.
22447  ac_file_inputs=`IFS=:
22448    for f in $ac_file_in; do
22449      case $f in
22450      -) echo $tmp/stdin ;;
22451      [\\/$]*)
22452	 # Absolute (can't be DOS-style, as IFS=:)
22453	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22454echo "$as_me: error: cannot find input file: $f" >&2;}
22455   { (exit 1); exit 1; }; }
22456	 # Do quote $f, to prevent DOS paths from being IFS'd.
22457	 echo "$f";;
22458      *) # Relative
22459	 if test -f "$f"; then
22460	   # Build tree
22461	   echo "$f"
22462	 elif test -f "$srcdir/$f"; then
22463	   # Source tree
22464	   echo "$srcdir/$f"
22465	 else
22466	   # /dev/null tree
22467	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22468echo "$as_me: error: cannot find input file: $f" >&2;}
22469   { (exit 1); exit 1; }; }
22470	 fi;;
22471      esac
22472    done` || { (exit 1); exit 1; }
22473  # Remove the trailing spaces.
22474  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
22475
22476_ACEOF
22477
22478# Transform confdefs.h into two sed scripts, `conftest.defines' and
22479# `conftest.undefs', that substitutes the proper values into
22480# config.h.in to produce config.h.  The first handles `#define'
22481# templates, and the second `#undef' templates.
22482# And first: Protect against being on the right side of a sed subst in
22483# config.status.  Protect against being in an unquoted here document
22484# in config.status.
22485rm -f conftest.defines conftest.undefs
22486# Using a here document instead of a string reduces the quoting nightmare.
22487# Putting comments in sed scripts is not portable.
22488#
22489# `end' is used to avoid that the second main sed command (meant for
22490# 0-ary CPP macros) applies to n-ary macro definitions.
22491# See the Autoconf documentation for `clear'.
22492cat >confdef2sed.sed <<\_ACEOF
22493s/[\\&,]/\\&/g
22494s,[\\$`],\\&,g
22495t clear
22496: clear
22497s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22498t end
22499s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22500: end
22501_ACEOF
22502# If some macros were called several times there might be several times
22503# the same #defines, which is useless.  Nevertheless, we may not want to
22504# sort them, since we want the *last* AC-DEFINE to be honored.
22505uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22506sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22507rm -f confdef2sed.sed
22508
22509# This sed command replaces #undef with comments.  This is necessary, for
22510# example, in the case of _POSIX_SOURCE, which is predefined and required
22511# on some systems where configure will not decide to define it.
22512cat >>conftest.undefs <<\_ACEOF
22513s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22514_ACEOF
22515
22516# Break up conftest.defines because some shells have a limit on the size
22517# of here documents, and old seds have small limits too (100 cmds).
22518echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22519echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22520echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22521echo '  :' >>$CONFIG_STATUS
22522rm -f conftest.tail
22523while grep . conftest.defines >/dev/null
22524do
22525  # Write a limited-size here document to $tmp/defines.sed.
22526  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22527  # Speed up: don't consider the non `#define' lines.
22528  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
22529  # Work around the forget-to-reset-the-flag bug.
22530  echo 't clr' >>$CONFIG_STATUS
22531  echo ': clr' >>$CONFIG_STATUS
22532  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22533  echo 'CEOF
22534  sed -f $tmp/defines.sed $tmp/in >$tmp/out
22535  rm -f $tmp/in
22536  mv $tmp/out $tmp/in
22537' >>$CONFIG_STATUS
22538  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22539  rm -f conftest.defines
22540  mv conftest.tail conftest.defines
22541done
22542rm -f conftest.defines
22543echo '  fi # grep' >>$CONFIG_STATUS
22544echo >>$CONFIG_STATUS
22545
22546# Break up conftest.undefs because some shells have a limit on the size
22547# of here documents, and old seds have small limits too (100 cmds).
22548echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22549rm -f conftest.tail
22550while grep . conftest.undefs >/dev/null
22551do
22552  # Write a limited-size here document to $tmp/undefs.sed.
22553  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22554  # Speed up: don't consider the non `#undef'
22555  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
22556  # Work around the forget-to-reset-the-flag bug.
22557  echo 't clr' >>$CONFIG_STATUS
22558  echo ': clr' >>$CONFIG_STATUS
22559  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22560  echo 'CEOF
22561  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22562  rm -f $tmp/in
22563  mv $tmp/out $tmp/in
22564' >>$CONFIG_STATUS
22565  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22566  rm -f conftest.undefs
22567  mv conftest.tail conftest.undefs
22568done
22569rm -f conftest.undefs
22570
22571cat >>$CONFIG_STATUS <<\_ACEOF
22572  # Let's still pretend it is `configure' which instantiates (i.e., don't
22573  # use $as_me), people would be surprised to read:
22574  #    /* config.h.  Generated by config.status.  */
22575  if test x"$ac_file" = x-; then
22576    echo "/* Generated by configure.  */" >$tmp/config.h
22577  else
22578    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22579  fi
22580  cat $tmp/in >>$tmp/config.h
22581  rm -f $tmp/in
22582  if test x"$ac_file" != x-; then
22583    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22584      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22585echo "$as_me: $ac_file is unchanged" >&6;}
22586    else
22587      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22588$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22589	 X"$ac_file" : 'X\(//\)[^/]' \| \
22590	 X"$ac_file" : 'X\(//\)$' \| \
22591	 X"$ac_file" : 'X\(/\)' \| \
22592	 .     : '\(.\)' 2>/dev/null ||
22593echo X"$ac_file" |
22594    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22595  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22596  	  /^X\(\/\/\)$/{ s//\1/; q; }
22597  	  /^X\(\/\).*/{ s//\1/; q; }
22598  	  s/.*/./; q'`
22599      { if $as_mkdir_p; then
22600    mkdir -p "$ac_dir"
22601  else
22602    as_dir="$ac_dir"
22603    as_dirs=
22604    while test ! -d "$as_dir"; do
22605      as_dirs="$as_dir $as_dirs"
22606      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22607$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22608	 X"$as_dir" : 'X\(//\)[^/]' \| \
22609	 X"$as_dir" : 'X\(//\)$' \| \
22610	 X"$as_dir" : 'X\(/\)' \| \
22611	 .     : '\(.\)' 2>/dev/null ||
22612echo X"$as_dir" |
22613    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22614  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22615  	  /^X\(\/\/\)$/{ s//\1/; q; }
22616  	  /^X\(\/\).*/{ s//\1/; q; }
22617  	  s/.*/./; q'`
22618    done
22619    test ! -n "$as_dirs" || mkdir $as_dirs
22620  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22621echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22622   { (exit 1); exit 1; }; }; }
22623
22624      rm -f $ac_file
22625      mv $tmp/config.h $ac_file
22626    fi
22627  else
22628    cat $tmp/config.h
22629    rm -f $tmp/config.h
22630  fi
22631done
22632_ACEOF
22633cat >>$CONFIG_STATUS <<\_ACEOF
22634
22635#
22636# CONFIG_COMMANDS section.
22637#
22638for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22639  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22640  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22641  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22642$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22643	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22644	 X"$ac_dest" : 'X\(//\)$' \| \
22645	 X"$ac_dest" : 'X\(/\)' \| \
22646	 .     : '\(.\)' 2>/dev/null ||
22647echo X"$ac_dest" |
22648    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22649  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22650  	  /^X\(\/\/\)$/{ s//\1/; q; }
22651  	  /^X\(\/\).*/{ s//\1/; q; }
22652  	  s/.*/./; q'`
22653  { if $as_mkdir_p; then
22654    mkdir -p "$ac_dir"
22655  else
22656    as_dir="$ac_dir"
22657    as_dirs=
22658    while test ! -d "$as_dir"; do
22659      as_dirs="$as_dir $as_dirs"
22660      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22662	 X"$as_dir" : 'X\(//\)[^/]' \| \
22663	 X"$as_dir" : 'X\(//\)$' \| \
22664	 X"$as_dir" : 'X\(/\)' \| \
22665	 .     : '\(.\)' 2>/dev/null ||
22666echo X"$as_dir" |
22667    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22668  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22669  	  /^X\(\/\/\)$/{ s//\1/; q; }
22670  	  /^X\(\/\).*/{ s//\1/; q; }
22671  	  s/.*/./; q'`
22672    done
22673    test ! -n "$as_dirs" || mkdir $as_dirs
22674  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22675echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22676   { (exit 1); exit 1; }; }; }
22677
22678  ac_builddir=.
22679
22680if test "$ac_dir" != .; then
22681  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22682  # A "../" for each directory in $ac_dir_suffix.
22683  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22684else
22685  ac_dir_suffix= ac_top_builddir=
22686fi
22687
22688case $srcdir in
22689  .)  # No --srcdir option.  We are building in place.
22690    ac_srcdir=.
22691    if test -z "$ac_top_builddir"; then
22692       ac_top_srcdir=.
22693    else
22694       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22695    fi ;;
22696  [\\/]* | ?:[\\/]* )  # Absolute path.
22697    ac_srcdir=$srcdir$ac_dir_suffix;
22698    ac_top_srcdir=$srcdir ;;
22699  *) # Relative path.
22700    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22701    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22702esac
22703
22704# Do not use `cd foo && pwd` to compute absolute paths, because
22705# the directories may not exist.
22706case `pwd` in
22707.) ac_abs_builddir="$ac_dir";;
22708*)
22709  case "$ac_dir" in
22710  .) ac_abs_builddir=`pwd`;;
22711  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22712  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22713  esac;;
22714esac
22715case $ac_abs_builddir in
22716.) ac_abs_top_builddir=${ac_top_builddir}.;;
22717*)
22718  case ${ac_top_builddir}. in
22719  .) ac_abs_top_builddir=$ac_abs_builddir;;
22720  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22721  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22722  esac;;
22723esac
22724case $ac_abs_builddir in
22725.) ac_abs_srcdir=$ac_srcdir;;
22726*)
22727  case $ac_srcdir in
22728  .) ac_abs_srcdir=$ac_abs_builddir;;
22729  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22730  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22731  esac;;
22732esac
22733case $ac_abs_builddir in
22734.) ac_abs_top_srcdir=$ac_top_srcdir;;
22735*)
22736  case $ac_top_srcdir in
22737  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22738  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22739  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22740  esac;;
22741esac
22742
22743
22744  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22745echo "$as_me: executing $ac_dest commands" >&6;}
22746  case $ac_dest in
22747    adjustment ) chmod a+x sa-config ;;
22748  esac
22749done
22750_ACEOF
22751
22752cat >>$CONFIG_STATUS <<\_ACEOF
22753
22754{ (exit 0); exit 0; }
22755_ACEOF
22756chmod +x $CONFIG_STATUS
22757ac_clean_files=$ac_clean_files_save
22758
22759
22760# configure is writing to config.log, and then calls config.status.
22761# config.status does its own redirection, appending to config.log.
22762# Unfortunately, on DOS this fails, as config.log is still kept open
22763# by configure, so config.status won't be able to write to it; its
22764# output is simply discarded.  So we exec the FD to /dev/null,
22765# effectively closing config.log, so it can be properly (re)opened and
22766# appended to by config.status.  When coming back to configure, we
22767# need to make the FD available again.
22768if test "$no_create" != yes; then
22769  ac_cs_success=:
22770  ac_config_status_args=
22771  test "$silent" = yes &&
22772    ac_config_status_args="$ac_config_status_args --quiet"
22773  exec 5>/dev/null
22774  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22775  exec 5>>config.log
22776  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22777  # would make configure fail if this is the last instruction.
22778  $ac_cs_success || { (exit 1); exit 1; }
22779fi
22780
22781
22782