source: ThirdParty/Blas/trunk/configure @ 99

Last change on this file since 99 was 99, checked in by andreasw, 14 years ago

removed -DNDEBUG from FFLAGS

  • Property svn:executable set to *
File size: 680.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyBlas 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS LDFLAGS ac_ct_F77 EXEEXT OBJEXT MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE CC CFLAGS CPPFLAGS ac_ct_CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LT_LDFLAGS RPATH_FLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
917ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
918ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
919ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
920ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
921ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
922ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
923ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
924ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
925ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
926ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
927ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
928ac_env_F77_set=${F77+set}
929ac_env_F77_value=$F77
930ac_cv_env_F77_set=${F77+set}
931ac_cv_env_F77_value=$F77
932ac_env_FFLAGS_set=${FFLAGS+set}
933ac_env_FFLAGS_value=$FFLAGS
934ac_cv_env_FFLAGS_set=${FFLAGS+set}
935ac_cv_env_FFLAGS_value=$FFLAGS
936ac_env_LDFLAGS_set=${LDFLAGS+set}
937ac_env_LDFLAGS_value=$LDFLAGS
938ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
939ac_cv_env_LDFLAGS_value=$LDFLAGS
940ac_env_MPIF77_set=${MPIF77+set}
941ac_env_MPIF77_value=$MPIF77
942ac_cv_env_MPIF77_set=${MPIF77+set}
943ac_cv_env_MPIF77_value=$MPIF77
944ac_env_CC_set=${CC+set}
945ac_env_CC_value=$CC
946ac_cv_env_CC_set=${CC+set}
947ac_cv_env_CC_value=$CC
948ac_env_CFLAGS_set=${CFLAGS+set}
949ac_env_CFLAGS_value=$CFLAGS
950ac_cv_env_CFLAGS_set=${CFLAGS+set}
951ac_cv_env_CFLAGS_value=$CFLAGS
952ac_env_CPPFLAGS_set=${CPPFLAGS+set}
953ac_env_CPPFLAGS_value=$CPPFLAGS
954ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
955ac_cv_env_CPPFLAGS_value=$CPPFLAGS
956ac_env_CPP_set=${CPP+set}
957ac_env_CPP_value=$CPP
958ac_cv_env_CPP_set=${CPP+set}
959ac_cv_env_CPP_value=$CPP
960ac_env_CXX_set=${CXX+set}
961ac_env_CXX_value=$CXX
962ac_cv_env_CXX_set=${CXX+set}
963ac_cv_env_CXX_value=$CXX
964ac_env_CXXFLAGS_set=${CXXFLAGS+set}
965ac_env_CXXFLAGS_value=$CXXFLAGS
966ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
967ac_cv_env_CXXFLAGS_value=$CXXFLAGS
968ac_env_CXXCPP_set=${CXXCPP+set}
969ac_env_CXXCPP_value=$CXXCPP
970ac_cv_env_CXXCPP_set=${CXXCPP+set}
971ac_cv_env_CXXCPP_value=$CXXCPP
972
973#
974# Report the --help message.
975#
976if test "$ac_init_help" = "long"; then
977  # Omit some internal or obsolete options to make the list less imposing.
978  # This message is too long to be a string in the A/UX 3.1 sh.
979  cat <<_ACEOF
980\`configure' configures ThirdPartyBlas 0.0 to adapt to many kinds of systems.
981
982Usage: $0 [OPTION]... [VAR=VALUE]...
983
984To assign environment variables (e.g., CC, CFLAGS...), specify them as
985VAR=VALUE.  See below for descriptions of some of the useful variables.
986
987Defaults for the options are specified in brackets.
988
989Configuration:
990  -h, --help              display this help and exit
991      --help=short        display options specific to this package
992      --help=recursive    display the short help of all the included packages
993  -V, --version           display version information and exit
994  -q, --quiet, --silent   do not print \`checking...' messages
995      --cache-file=FILE   cache test results in FILE [disabled]
996  -C, --config-cache      alias for \`--cache-file=config.cache'
997  -n, --no-create         do not create output files
998      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
999
1000_ACEOF
1001
1002  cat <<_ACEOF
1003Installation directories:
1004  --prefix=PREFIX         install architecture-independent files in PREFIX
1005                          [$ac_default_prefix]
1006  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1007                          [PREFIX]
1008
1009By default, \`make install' will install all the files in
1010\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1011an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1012for instance \`--prefix=\$HOME'.
1013
1014For better control, use the options below.
1015
1016Fine tuning of the installation directories:
1017  --bindir=DIR           user executables [EPREFIX/bin]
1018  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1019  --libexecdir=DIR       program executables [EPREFIX/libexec]
1020  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1021  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1022  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1023  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1024  --libdir=DIR           object code libraries [EPREFIX/lib]
1025  --includedir=DIR       C header files [PREFIX/include]
1026  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1027  --infodir=DIR          info documentation [PREFIX/info]
1028  --mandir=DIR           man documentation [PREFIX/man]
1029_ACEOF
1030
1031  cat <<\_ACEOF
1032
1033Program names:
1034  --program-prefix=PREFIX            prepend PREFIX to installed program names
1035  --program-suffix=SUFFIX            append SUFFIX to installed program names
1036  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1037
1038System types:
1039  --build=BUILD     configure for building on BUILD [guessed]
1040  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1041_ACEOF
1042fi
1043
1044if test -n "$ac_init_help"; then
1045  case $ac_init_help in
1046     short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";;
1047   esac
1048  cat <<\_ACEOF
1049
1050Optional Features:
1051  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1052  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1053  --enable-debug          compile all projects with debug options tests
1054  --enable-debug-blas compile this project (Blas) with debug options
1055  --enable-static[=PKGS]
1056                          build static libraries [default=no]
1057  --enable-maintainer-mode  enable make rules and dependencies not useful
1058                          (and sometimes confusing) to the casual installer
1059  --disable-dependency-tracking  speeds up one-time build
1060  --enable-dependency-tracking   do not reject slow dependency extractors
1061  --enable-shared[=PKGS]
1062                          build shared libraries [default=yes]
1063  --enable-fast-install[=PKGS]
1064                          optimize for fast installation [default=yes]
1065  --disable-libtool-lock  avoid locking (might break parallel builds)
1066
1067Optional Packages:
1068  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1069  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1070  --with-blas-verbosity specify the debug verbosity level for project Blas
1071  --with-blas-checklevel specify the sanity check level for project Blas
1072  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1073  --with-pic              try to use only PIC/non-PIC objects [default=use
1074                          both]
1075  --with-tags[=TAGS]
1076                          include additional configurations [automatic]
1077
1078Some influential environment variables:
1079  ADD_FFLAGS  Additional Fortran compiler options
1080  DBG_FFLAGS  Debug Fortran compiler options
1081  OPT_FFLAGS  Optimize Fortran compiler options
1082  F77         Fortran 77 compiler command
1083  FFLAGS      Fortran 77 compiler flags
1084  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1085              nonstandard directory <lib dir>
1086  MPIF77      Fortran MPI Compiler
1087  CC          C compiler command
1088  CFLAGS      C compiler flags
1089  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090              headers in a nonstandard directory <include dir>
1091  CPP         C preprocessor
1092  CXX         C++ compiler command
1093  CXXFLAGS    C++ compiler flags
1094  CXXCPP      C++ preprocessor
1095
1096Use these variables to override the choices made by `configure' or to help
1097it to find libraries and programs with nonstandard names/locations.
1098
1099Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1100_ACEOF
1101fi
1102
1103if test "$ac_init_help" = "recursive"; then
1104  # If there are subdirs, report their specific --help.
1105  ac_popdir=`pwd`
1106  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1107    test -d $ac_dir || continue
1108    ac_builddir=.
1109
1110if test "$ac_dir" != .; then
1111  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1112  # A "../" for each directory in $ac_dir_suffix.
1113  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1114else
1115  ac_dir_suffix= ac_top_builddir=
1116fi
1117
1118case $srcdir in
1119  .)  # No --srcdir option.  We are building in place.
1120    ac_srcdir=.
1121    if test -z "$ac_top_builddir"; then
1122       ac_top_srcdir=.
1123    else
1124       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1125    fi ;;
1126  [\\/]* | ?:[\\/]* )  # Absolute path.
1127    ac_srcdir=$srcdir$ac_dir_suffix;
1128    ac_top_srcdir=$srcdir ;;
1129  *) # Relative path.
1130    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1131    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1132esac
1133
1134# Do not use `cd foo && pwd` to compute absolute paths, because
1135# the directories may not exist.
1136case `pwd` in
1137.) ac_abs_builddir="$ac_dir";;
1138*)
1139  case "$ac_dir" in
1140  .) ac_abs_builddir=`pwd`;;
1141  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1142  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1143  esac;;
1144esac
1145case $ac_abs_builddir in
1146.) ac_abs_top_builddir=${ac_top_builddir}.;;
1147*)
1148  case ${ac_top_builddir}. in
1149  .) ac_abs_top_builddir=$ac_abs_builddir;;
1150  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1151  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1152  esac;;
1153esac
1154case $ac_abs_builddir in
1155.) ac_abs_srcdir=$ac_srcdir;;
1156*)
1157  case $ac_srcdir in
1158  .) ac_abs_srcdir=$ac_abs_builddir;;
1159  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1160  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1161  esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_top_srcdir=$ac_top_srcdir;;
1165*)
1166  case $ac_top_srcdir in
1167  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1168  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1169  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1170  esac;;
1171esac
1172
1173    cd $ac_dir
1174    # Check for guested configure; otherwise get Cygnus style configure.
1175    if test -f $ac_srcdir/configure.gnu; then
1176      echo
1177      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1178    elif test -f $ac_srcdir/configure; then
1179      echo
1180      $SHELL $ac_srcdir/configure  --help=recursive
1181    elif test -f $ac_srcdir/configure.ac ||
1182           test -f $ac_srcdir/configure.in; then
1183      echo
1184      $ac_configure --help
1185    else
1186      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1187    fi
1188    cd $ac_popdir
1189  done
1190fi
1191
1192test -n "$ac_init_help" && exit 0
1193if $ac_init_version; then
1194  cat <<\_ACEOF
1195ThirdPartyBlas configure 0.0
1196generated by GNU Autoconf 2.59
1197
1198Copyright (C) 2003 Free Software Foundation, Inc.
1199This configure script is free software; the Free Software Foundation
1200gives unlimited permission to copy, distribute and modify it.
1201
1202
1203Copyright 2006 International Business Machines and others.
1204All Rights Reserved.
1205This file is part of the open source package Coin which is distributed
1206under the Common Public License.
1207_ACEOF
1208  exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
1215It was created by ThirdPartyBlas $as_me 0.0, which was
1216generated by GNU Autoconf 2.59.  Invocation command line was
1217
1218  $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1235
1236/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1237/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1240/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1241/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1242/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249  IFS=$as_save_IFS
1250  test -z "$as_dir" && as_dir=.
1251  echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278  for ac_arg
1279  do
1280    case $ac_arg in
1281    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283    | -silent | --silent | --silen | --sile | --sil)
1284      continue ;;
1285    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287    esac
1288    case $ac_pass in
1289    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290    2)
1291      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292      if test $ac_must_keep_next = true; then
1293        ac_must_keep_next=false # Got value, back to normal.
1294      else
1295        case $ac_arg in
1296          *=* | --config-cache | -C | -disable-* | --disable-* \
1297          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299          | -with-* | --with-* | -without-* | --without-* | --x)
1300            case "$ac_configure_args0 " in
1301              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302            esac
1303            ;;
1304          -* ) ac_must_keep_next=true ;;
1305        esac
1306      fi
1307      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308      # Get rid of the leading space.
1309      ac_sep=" "
1310      ;;
1311    esac
1312  done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log.  We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323  # Save into config.log some information that might help in debugging.
1324  {
1325    echo
1326
1327    cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332    echo
1333    # The following way of writing the cache mishandles newlines in values,
1334{
1335  (set) 2>&1 |
1336    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337    *ac_space=\ *)
1338      sed -n \
1339        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1341      ;;
1342    *)
1343      sed -n \
1344        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1345      ;;
1346    esac;
1347}
1348    echo
1349
1350    cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355    echo
1356    for ac_var in $ac_subst_vars
1357    do
1358      eval ac_val=$`echo $ac_var`
1359      echo "$ac_var='"'"'$ac_val'"'"'"
1360    done | sort
1361    echo
1362
1363    if test -n "$ac_subst_files"; then
1364      cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369      echo
1370      for ac_var in $ac_subst_files
1371      do
1372        eval ac_val=$`echo $ac_var`
1373        echo "$ac_var='"'"'$ac_val'"'"'"
1374      done | sort
1375      echo
1376    fi
1377
1378    if test -s confdefs.h; then
1379      cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384      echo
1385      sed "/^$/d" confdefs.h | sort
1386      echo
1387    fi
1388    test "$ac_signal" != 0 &&
1389      echo "$as_me: caught signal $ac_signal"
1390    echo "$as_me: exit $exit_status"
1391  } >&5
1392  rm -f core *.core &&
1393  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394    exit $exit_status
1395     ' 0
1396for ac_signal in 1 2 13 15; do
1397  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436  if test "x$prefix" != xNONE; then
1437    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438  else
1439    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440  fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443  if test -r "$ac_site_file"; then
1444    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446    sed 's/^/| /' "$ac_site_file" >&5
1447    . "$ac_site_file"
1448  fi
1449done
1450
1451if test -r "$cache_file"; then
1452  # Some versions of bash will fail to source /dev/null (special
1453  # files actually), so we avoid doing that.
1454  if test -f "$cache_file"; then
1455    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457    case $cache_file in
1458      [\\/]* | ?:[\\/]* ) . $cache_file;;
1459      *)                      . ./$cache_file;;
1460    esac
1461  fi
1462else
1463  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465  >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
1472               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1473  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474  eval ac_new_set=\$ac_env_${ac_var}_set
1475  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476  eval ac_new_val="\$ac_env_${ac_var}_value"
1477  case $ac_old_set,$ac_new_set in
1478    set,)
1479      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481      ac_cache_corrupted=: ;;
1482    ,set)
1483      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485      ac_cache_corrupted=: ;;
1486    ,);;
1487    *)
1488      if test "x$ac_old_val" != "x$ac_new_val"; then
1489        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1491        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1492echo "$as_me:   former value:  $ac_old_val" >&2;}
1493        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1494echo "$as_me:   current value: $ac_new_val" >&2;}
1495        ac_cache_corrupted=:
1496      fi;;
1497  esac
1498  # Pass precious variables to config.status.
1499  if test "$ac_new_set" = set; then
1500    case $ac_new_val in
1501    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503    *) ac_arg=$ac_var=$ac_new_val ;;
1504    esac
1505    case " $ac_configure_args " in
1506      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1507      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508    esac
1509  fi
1510done
1511if $ac_cache_corrupted; then
1512  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516   { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554# List one file in the package so that the configure script can test
1555# whether the package is actually there
1556
1557
1558# Where should everything be installed by default?  Here, we want it
1559# to be installed directly in 'bin', 'lib', 'include' subdirectories
1560# of the directory where configure is run.  The default would be
1561# /usr/local.
1562
1563
1564# Initialize the ADDLIBS variable
1565ADDLIBS='-lm'
1566
1567
1568# Initialize the FADDLIBS variable (which is to be used with a fortran
1569# compiler and will not include FLIBS)
1570FADDLIBS=
1571
1572
1573# A useful makefile conditional that is always false
1574
1575
1576if false; then
1577  ALWAYS_FALSE_TRUE=
1578  ALWAYS_FALSE_FALSE='#'
1579else
1580  ALWAYS_FALSE_TRUE='#'
1581  ALWAYS_FALSE_FALSE=
1582fi
1583
1584
1585# We set the following variable so that we know later in AC_COIN_FINALIZE
1586# that we are in a project main directory
1587coin_projectdir=yes
1588
1589
1590#############################################################################
1591#                         Standard build tool stuff                         #
1592#############################################################################
1593
1594# Get the system type
1595ac_aux_dir=
1596for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1597  if test -f $ac_dir/install-sh; then
1598    ac_aux_dir=$ac_dir
1599    ac_install_sh="$ac_aux_dir/install-sh -c"
1600    break
1601  elif test -f $ac_dir/install.sh; then
1602    ac_aux_dir=$ac_dir
1603    ac_install_sh="$ac_aux_dir/install.sh -c"
1604    break
1605  elif test -f $ac_dir/shtool; then
1606    ac_aux_dir=$ac_dir
1607    ac_install_sh="$ac_aux_dir/shtool install -c"
1608    break
1609  fi
1610done
1611if test -z "$ac_aux_dir"; then
1612  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1613echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1614   { (exit 1); exit 1; }; }
1615fi
1616ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1617ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1618ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1619
1620# Make sure we can run config.sub.
1621$ac_config_sub sun4 >/dev/null 2>&1 ||
1622  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1623echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1624   { (exit 1); exit 1; }; }
1625
1626echo "$as_me:$LINENO: checking build system type" >&5
1627echo $ECHO_N "checking build system type... $ECHO_C" >&6
1628if test "${ac_cv_build+set}" = set; then
1629  echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631  ac_cv_build_alias=$build_alias
1632test -z "$ac_cv_build_alias" &&
1633  ac_cv_build_alias=`$ac_config_guess`
1634test -z "$ac_cv_build_alias" &&
1635  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1636echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1637   { (exit 1); exit 1; }; }
1638ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1639  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1641   { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1645echo "${ECHO_T}$ac_cv_build" >&6
1646build=$ac_cv_build
1647build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652
1653# Check if user wants to produce debugging code
1654
1655echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1656echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1657
1658# Check whether --enable-debug or --disable-debug was given.
1659if test "${enable_debug+set}" = set; then
1660  enableval="$enable_debug"
1661  case "${enableval}" in
1662   yes) coin_debug_compile=true
1663        enable_shared=no
1664        ;;
1665   no)  coin_debug_compile=false
1666        ;;
1667   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1668echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1669   { (exit 1); exit 1; }; }
1670        ;;
1671esac
1672else
1673  coin_debug_compile=false
1674fi;
1675
1676# Check whether --enable-debug-blas or --disable-debug-blas was given.
1677if test "${enable_debug_blas+set}" = set; then
1678  enableval="$enable_debug_blas"
1679  case "${enableval}" in
1680    yes) coin_debug_compile=true
1681         enable_shared=no
1682         ;;
1683    no)  coin_debug_compile=false
1684         ;;
1685    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1686echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1687   { (exit 1); exit 1; }; }
1688         ;;
1689 esac
1690else
1691  :
1692fi;
1693
1694 # m4_ifvaln([Blas],
1695
1696if test $coin_debug_compile = true; then
1697  echo "$as_me:$LINENO: result: yes" >&5
1698echo "${ECHO_T}yes" >&6
1699else
1700  echo "$as_me:$LINENO: result: no" >&5
1701echo "${ECHO_T}no" >&6
1702fi
1703
1704
1705# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1706if test "${with_blas_verbosity+set}" = set; then
1707  withval="$with_blas_verbosity"
1708  coin_blas_verbosity=$withval
1709else
1710  coin_blas_verbosity=0
1711fi;
1712
1713cat >>confdefs.h <<_ACEOF
1714#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1715_ACEOF
1716
1717
1718
1719# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1720if test "${with_blas_checklevel+set}" = set; then
1721  withval="$with_blas_checklevel"
1722  coin_blas_checklevel=$withval
1723else
1724  coin_blas_checklevel=0
1725fi;
1726
1727cat >>confdefs.h <<_ACEOF
1728#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1729_ACEOF
1730
1731
1732# We use the following variable to have a string with the upper case
1733# version of the project name
1734COIN_PRJCT=BLAS
1735
1736
1737 # m4_ifvaln([Blas],
1738
1739
1740
1741# Get the name of the Fortran compiler and appropriate compiler options
1742case $build in
1743  *-mingw*)
1744    if test "${LD+set}" = set; then :; else
1745      LD=link
1746    fi
1747    ;;
1748esac
1749
1750
1751
1752ac_ext=f
1753ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1754ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1756
1757
1758
1759
1760
1761
1762coin_has_f77=yes
1763
1764save_fflags="$FFLAGS"
1765case $build in
1766  *-cygwin* | *-mingw*)
1767             comps="gfortran g77 ifort fl32" ;;
1768  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
1769esac
1770
1771# We delete the cached value, since the test might not have been
1772# performed with out choise of compilers earlier
1773$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
1774ac_ext=f
1775ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1776ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1777ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1778if test -n "$ac_tool_prefix"; then
1779  for ac_prog in $comps
1780  do
1781    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1782set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1783echo "$as_me:$LINENO: checking for $ac_word" >&5
1784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785if test "${ac_cv_prog_F77+set}" = set; then
1786  echo $ECHO_N "(cached) $ECHO_C" >&6
1787else
1788  if test -n "$F77"; then
1789  ac_cv_prog_F77="$F77" # Let the user override the test.
1790else
1791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792for as_dir in $PATH
1793do
1794  IFS=$as_save_IFS
1795  test -z "$as_dir" && as_dir=.
1796  for ac_exec_ext in '' $ac_executable_extensions; do
1797  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
1799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800    break 2
1801  fi
1802done
1803done
1804
1805fi
1806fi
1807F77=$ac_cv_prog_F77
1808if test -n "$F77"; then
1809  echo "$as_me:$LINENO: result: $F77" >&5
1810echo "${ECHO_T}$F77" >&6
1811else
1812  echo "$as_me:$LINENO: result: no" >&5
1813echo "${ECHO_T}no" >&6
1814fi
1815
1816    test -n "$F77" && break
1817  done
1818fi
1819if test -z "$F77"; then
1820  ac_ct_F77=$F77
1821  for ac_prog in $comps
1822do
1823  # Extract the first word of "$ac_prog", so it can be a program name with args.
1824set dummy $ac_prog; ac_word=$2
1825echo "$as_me:$LINENO: checking for $ac_word" >&5
1826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
1828  echo $ECHO_N "(cached) $ECHO_C" >&6
1829else
1830  if test -n "$ac_ct_F77"; then
1831  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
1832else
1833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1834for as_dir in $PATH
1835do
1836  IFS=$as_save_IFS
1837  test -z "$as_dir" && as_dir=.
1838  for ac_exec_ext in '' $ac_executable_extensions; do
1839  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1840    ac_cv_prog_ac_ct_F77="$ac_prog"
1841    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1842    break 2
1843  fi
1844done
1845done
1846
1847fi
1848fi
1849ac_ct_F77=$ac_cv_prog_ac_ct_F77
1850if test -n "$ac_ct_F77"; then
1851  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
1852echo "${ECHO_T}$ac_ct_F77" >&6
1853else
1854  echo "$as_me:$LINENO: result: no" >&5
1855echo "${ECHO_T}no" >&6
1856fi
1857
1858  test -n "$ac_ct_F77" && break
1859done
1860
1861  F77=$ac_ct_F77
1862fi
1863
1864
1865# Provide some information about the compiler.
1866echo "$as_me:1866:" \
1867     "checking for Fortran 77 compiler version" >&5
1868ac_compiler=`set X $ac_compile; echo $2`
1869{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1870  (eval $ac_compiler --version </dev/null >&5) 2>&5
1871  ac_status=$?
1872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873  (exit $ac_status); }
1874{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1875  (eval $ac_compiler -v </dev/null >&5) 2>&5
1876  ac_status=$?
1877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1878  (exit $ac_status); }
1879{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1880  (eval $ac_compiler -V </dev/null >&5) 2>&5
1881  ac_status=$?
1882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883  (exit $ac_status); }
1884rm -f a.out
1885
1886cat >conftest.$ac_ext <<_ACEOF
1887      program main
1888
1889      end
1890_ACEOF
1891ac_clean_files_save=$ac_clean_files
1892ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893# Try to create an executable without -o first, disregard a.out.
1894# It will help us diagnose broken compilers, and finding out an intuition
1895# of exeext.
1896echo "$as_me:$LINENO: checking for Fortran 77 compiler default output file name" >&5
1897echo $ECHO_N "checking for Fortran 77 compiler default output file name... $ECHO_C" >&6
1898ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900  (eval $ac_link_default) 2>&5
1901  ac_status=$?
1902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903  (exit $ac_status); }; then
1904  # Find the output, starting from the most likely.  This scheme is
1905# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906# resort.
1907
1908# Be careful to initialize this variable, since it used to be cached.
1909# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1910ac_cv_exeext=
1911# b.out is created by i960 compilers.
1912for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1913do
1914  test -f "$ac_file" || continue
1915  case $ac_file in
1916    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1917        ;;
1918    conftest.$ac_ext )
1919        # This is the source file.
1920        ;;
1921    [ab].out )
1922        # We found the default executable, but exeext='' is most
1923        # certainly right.
1924        break;;
1925    *.* )
1926        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927        # FIXME: I believe we export ac_cv_exeext for Libtool,
1928        # but it would be cool to find out if it's true.  Does anybody
1929        # maintain Libtool? --akim.
1930        export ac_cv_exeext
1931        break;;
1932    * )
1933        break;;
1934  esac
1935done
1936else
1937  echo "$as_me: failed program was:" >&5
1938sed 's/^/| /' conftest.$ac_ext >&5
1939
1940{ { echo "$as_me:$LINENO: error: Fortran 77 compiler cannot create executables
1941See \`config.log' for more details." >&5
1942echo "$as_me: error: Fortran 77 compiler cannot create executables
1943See \`config.log' for more details." >&2;}
1944   { (exit 77); exit 77; }; }
1945fi
1946
1947ac_exeext=$ac_cv_exeext
1948echo "$as_me:$LINENO: result: $ac_file" >&5
1949echo "${ECHO_T}$ac_file" >&6
1950
1951# Check the compiler produces executables we can run.  If not, either
1952# the compiler is broken, or we cross compile.
1953echo "$as_me:$LINENO: checking whether the Fortran 77 compiler works" >&5
1954echo $ECHO_N "checking whether the Fortran 77 compiler works... $ECHO_C" >&6
1955# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956# If not cross compiling, check that we can run a simple program.
1957if test "$cross_compiling" != yes; then
1958  if { ac_try='./$ac_file'
1959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960  (eval $ac_try) 2>&5
1961  ac_status=$?
1962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963  (exit $ac_status); }; }; then
1964    cross_compiling=no
1965  else
1966    if test "$cross_compiling" = maybe; then
1967        cross_compiling=yes
1968    else
1969        { { echo "$as_me:$LINENO: error: cannot run Fortran 77 compiled programs.
1970If you meant to cross compile, use \`--host'.
1971See \`config.log' for more details." >&5
1972echo "$as_me: error: cannot run Fortran 77 compiled programs.
1973If you meant to cross compile, use \`--host'.
1974See \`config.log' for more details." >&2;}
1975   { (exit 1); exit 1; }; }
1976    fi
1977  fi
1978fi
1979echo "$as_me:$LINENO: result: yes" >&5
1980echo "${ECHO_T}yes" >&6
1981
1982rm -f a.out a.exe conftest$ac_cv_exeext b.out
1983ac_clean_files=$ac_clean_files_save
1984# Check the compiler produces executables we can run.  If not, either
1985# the compiler is broken, or we cross compile.
1986echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1987echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1988echo "$as_me:$LINENO: result: $cross_compiling" >&5
1989echo "${ECHO_T}$cross_compiling" >&6
1990
1991echo "$as_me:$LINENO: checking for suffix of executables" >&5
1992echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1994  (eval $ac_link) 2>&5
1995  ac_status=$?
1996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997  (exit $ac_status); }; then
1998  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1999# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2000# work properly (i.e., refer to `conftest.exe'), while it won't with
2001# `rm'.
2002for ac_file in conftest.exe conftest conftest.*; do
2003  test -f "$ac_file" || continue
2004  case $ac_file in
2005    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2006    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2007          export ac_cv_exeext
2008          break;;
2009    * ) break;;
2010  esac
2011done
2012else
2013  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2014See \`config.log' for more details." >&5
2015echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2016See \`config.log' for more details." >&2;}
2017   { (exit 1); exit 1; }; }
2018fi
2019
2020rm -f conftest$ac_cv_exeext
2021echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2022echo "${ECHO_T}$ac_cv_exeext" >&6
2023
2024rm -f conftest.$ac_ext
2025EXEEXT=$ac_cv_exeext
2026ac_exeext=$EXEEXT
2027echo "$as_me:$LINENO: checking for suffix of object files" >&5
2028echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2029if test "${ac_cv_objext+set}" = set; then
2030  echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032  cat >conftest.$ac_ext <<_ACEOF
2033      program main
2034
2035      end
2036_ACEOF
2037rm -f conftest.o conftest.obj
2038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039  (eval $ac_compile) 2>&5
2040  ac_status=$?
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); }; then
2043  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2044  case $ac_file in
2045    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2046    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2047       break;;
2048  esac
2049done
2050else
2051  echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2055See \`config.log' for more details." >&5
2056echo "$as_me: error: cannot compute suffix of object files: cannot compile
2057See \`config.log' for more details." >&2;}
2058   { (exit 1); exit 1; }; }
2059fi
2060
2061rm -f conftest.$ac_cv_objext conftest.$ac_ext
2062fi
2063echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2064echo "${ECHO_T}$ac_cv_objext" >&6
2065OBJEXT=$ac_cv_objext
2066ac_objext=$OBJEXT
2067# If we don't use `.F' as extension, the preprocessor is not run on the
2068# input file.  (Note that this only needs to work for GNU compilers.)
2069ac_save_ext=$ac_ext
2070ac_ext=F
2071echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
2072echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
2073if test "${ac_cv_f77_compiler_gnu+set}" = set; then
2074  echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076  cat >conftest.$ac_ext <<_ACEOF
2077      program main
2078#ifndef __GNUC__
2079       choke me
2080#endif
2081
2082      end
2083_ACEOF
2084rm -f conftest.$ac_objext
2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086  (eval $ac_compile) 2>conftest.er1
2087  ac_status=$?
2088  grep -v '^ *+' conftest.er1 >conftest.err
2089  rm -f conftest.er1
2090  cat conftest.err >&5
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); } &&
2093         { ac_try='test -z "$ac_f77_werror_flag"
2094                         || test ! -s conftest.err'
2095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096  (eval $ac_try) 2>&5
2097  ac_status=$?
2098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099  (exit $ac_status); }; } &&
2100         { ac_try='test -s conftest.$ac_objext'
2101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102  (eval $ac_try) 2>&5
2103  ac_status=$?
2104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105  (exit $ac_status); }; }; then
2106  ac_compiler_gnu=yes
2107else
2108  echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111ac_compiler_gnu=no
2112fi
2113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2114ac_cv_f77_compiler_gnu=$ac_compiler_gnu
2115
2116fi
2117echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
2118echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
2119ac_ext=$ac_save_ext
2120ac_test_FFLAGS=${FFLAGS+set}
2121ac_save_FFLAGS=$FFLAGS
2122FFLAGS=
2123echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
2124echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
2125if test "${ac_cv_prog_f77_g+set}" = set; then
2126  echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128  FFLAGS=-g
2129cat >conftest.$ac_ext <<_ACEOF
2130      program main
2131
2132      end
2133_ACEOF
2134rm -f conftest.$ac_objext
2135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136  (eval $ac_compile) 2>conftest.er1
2137  ac_status=$?
2138  grep -v '^ *+' conftest.er1 >conftest.err
2139  rm -f conftest.er1
2140  cat conftest.err >&5
2141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142  (exit $ac_status); } &&
2143         { ac_try='test -z "$ac_f77_werror_flag"
2144                         || test ! -s conftest.err'
2145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146  (eval $ac_try) 2>&5
2147  ac_status=$?
2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149  (exit $ac_status); }; } &&
2150         { ac_try='test -s conftest.$ac_objext'
2151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152  (eval $ac_try) 2>&5
2153  ac_status=$?
2154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155  (exit $ac_status); }; }; then
2156  ac_cv_prog_f77_g=yes
2157else
2158  echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
2160
2161ac_cv_prog_f77_g=no
2162fi
2163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164
2165fi
2166echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
2167echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
2168if test "$ac_test_FFLAGS" = set; then
2169  FFLAGS=$ac_save_FFLAGS
2170elif test $ac_cv_prog_f77_g = yes; then
2171  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2172    FFLAGS="-g -O2"
2173  else
2174    FFLAGS="-g"
2175  fi
2176else
2177  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
2178    FFLAGS="-O2"
2179  else
2180    FFLAGS=
2181  fi
2182fi
2183
2184G77=`test $ac_compiler_gnu = yes && echo yes`
2185ac_ext=f
2186ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2187ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2189
2190FFLAGS="$save_fflags"
2191
2192# Check if a project specific FFLAGS variable has been set
2193if test x$COIN_PRJCT != x; then
2194  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
2195  if test x$coin_tmp = xset; then
2196    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
2197  fi
2198fi
2199
2200if test x"$FFLAGS" = x; then
2201
2202  coin_add_fflags=
2203  coin_opt_fflags=
2204  coin_dbg_fflags=
2205  coin_warn_fflags=
2206
2207  if test "$G77" = "yes"; then
2208    coin_opt_fflags="-O3 -fomit-frame-pointer"
2209    coin_add_fflags="-pipe"
2210    coin_dbg_fflags="-g"
2211    case $build in
2212      *-cygwin*)
2213        FFLAGS="-mno-cygwin"
2214        cat >conftest.$ac_ext <<_ACEOF
2215      program main
2216      write(*,*) 'Hello world'
2217      end
2218_ACEOF
2219rm -f conftest.$ac_objext conftest$ac_exeext
2220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2221  (eval $ac_link) 2>conftest.er1
2222  ac_status=$?
2223  grep -v '^ *+' conftest.er1 >conftest.err
2224  rm -f conftest.er1
2225  cat conftest.err >&5
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); } &&
2228         { ac_try='test -z "$ac_f77_werror_flag"
2229                         || test ! -s conftest.err'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; } &&
2235         { ac_try='test -s conftest$ac_exeext'
2236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237  (eval $ac_try) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; }; then
2241  coin_add_fflags="-mno-cygwin $coin_add_fflags"
2242else
2243  echo "$as_me: failed program was:" >&5
2244sed 's/^/| /' conftest.$ac_ext >&5
2245
2246fi
2247rm -f conftest.err conftest.$ac_objext \
2248      conftest$ac_exeext conftest.$ac_ext
2249        FFLAGS=
2250      ;;
2251    esac
2252  else
2253    case $build in
2254      *-cygwin* | *-mingw*)
2255        case $F77 in
2256          ifort* | */ifort*)
2257            coin_opt_fflags='-O3'
2258            coin_add_fflags='-nologo -MT'
2259            coin_dbg_fflags='-debug'
2260          ;;
2261        esac
2262        ;;
2263      *-linux-*)
2264        case $F77 in
2265          ifc* | */ifc* | ifort* | */ifort*)
2266            coin_opt_fflags="-O3 -ip"
2267            coin_add_fflags="-cm -w90 -w95"
2268            coin_dbg_fflags="-g -CA -CB -CS"
2269            # Check if -i_dynamic is necessary (for new glibc library)
2270            FFLAGS=
2271            cat >conftest.$ac_ext <<_ACEOF
2272      program main
2273      write(*,*) 'Hello world'
2274      end
2275_ACEOF
2276rm -f conftest.$ac_objext conftest$ac_exeext
2277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2278  (eval $ac_link) 2>conftest.er1
2279  ac_status=$?
2280  grep -v '^ *+' conftest.er1 >conftest.err
2281  rm -f conftest.er1
2282  cat conftest.err >&5
2283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284  (exit $ac_status); } &&
2285         { ac_try='test -z "$ac_f77_werror_flag"
2286                         || test ! -s conftest.err'
2287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288  (eval $ac_try) 2>&5
2289  ac_status=$?
2290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291  (exit $ac_status); }; } &&
2292         { ac_try='test -s conftest$ac_exeext'
2293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294  (eval $ac_try) 2>&5
2295  ac_status=$?
2296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297  (exit $ac_status); }; }; then
2298  :
2299else
2300  echo "$as_me: failed program was:" >&5
2301sed 's/^/| /' conftest.$ac_ext >&5
2302
2303coin_add_fflags="-i_dynamic $coin_add_fflags"
2304fi
2305rm -f conftest.err conftest.$ac_objext \
2306      conftest$ac_exeext conftest.$ac_ext
2307            ;;
2308          pgf77* | */pgf77* | pgf90* | */pgf90*)
2309            coin_opt_fflags="-fast"
2310            coin_add_fflags="-Kieee -pc 64"
2311            coin_dbg_fflags="-g"
2312          ;;
2313        esac
2314        ;;
2315      *-ibm-*)
2316        case "$F77" in
2317          xlf* | */xlf* | mpxlf* | */mpxlf* )
2318            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2319            coin_add_fflags="-bmaxdata:0x80000000"
2320            coin_dbg_fflags="-g -C"
2321            ;;
2322        esac
2323        ;;
2324      *-hp-*)
2325        coin_opt_fflags="+O3"
2326        coin_add_fflags="+U77"
2327        coin_dbg_fflags="-C -g"
2328        ;;
2329      *-sun-*)
2330        coin_opt_fflags="-O4"
2331        coin_dbg_fflags="-g"
2332        ;;
2333      *-sgi-*)
2334        coin_opt_fflags="-O5 -OPT:Olimit=0"
2335        coin_dbg_fflags="-g"
2336        ;;
2337    esac
2338  fi
2339
2340  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
2341    coin_dbg_fflags="-g"
2342  fi
2343
2344  if test -z "$coin_opt_fflags"; then
2345    # Try if -O option works if nothing else is set
2346    FFLAGS=-O
2347    cat >conftest.$ac_ext <<_ACEOF
2348      program main
2349      integer i
2350      end
2351_ACEOF
2352rm -f conftest.$ac_objext conftest$ac_exeext
2353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2354  (eval $ac_link) 2>conftest.er1
2355  ac_status=$?
2356  grep -v '^ *+' conftest.er1 >conftest.err
2357  rm -f conftest.er1
2358  cat conftest.err >&5
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); } &&
2361         { ac_try='test -z "$ac_f77_werror_flag"
2362                         || test ! -s conftest.err'
2363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364  (eval $ac_try) 2>&5
2365  ac_status=$?
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); }; } &&
2368         { ac_try='test -s conftest$ac_exeext'
2369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370  (eval $ac_try) 2>&5
2371  ac_status=$?
2372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }; }; then
2374  coin_opt_fflags="-O"
2375else
2376  echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5
2378
2379fi
2380rm -f conftest.err conftest.$ac_objext \
2381      conftest$ac_exeext conftest.$ac_ext
2382  fi
2383
2384  if test x${DBG_FFLAGS+set} != xset; then
2385    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
2386  fi
2387  if test x${OPT_FFLAGS+set} != xset; then
2388    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
2389  fi
2390
2391  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
2392  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
2393
2394  if test "$coin_debug_compile" = "true"; then
2395    FFLAGS="$DBG_FFLAGS"
2396  else
2397    FFLAGS="$OPT_FFLAGS"
2398  fi
2399else
2400  FFLAGS="$FFLAGS $ADD_FFLAGS"
2401  if test x${DBG_FFLAGS+set} != xset; then
2402    DBG_FFLAGS="$FFLAGS"
2403  fi
2404  if test x${OPT_FFLAGS+set} != xset; then
2405    OPT_FFLAGS="$FFLAGS"
2406  fi
2407fi
2408
2409# Try if FFLAGS works
2410cat >conftest.$ac_ext <<_ACEOF
2411      program main
2412      integer i
2413      end
2414_ACEOF
2415rm -f conftest.$ac_objext conftest$ac_exeext
2416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2417  (eval $ac_link) 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424         { ac_try='test -z "$ac_f77_werror_flag"
2425                         || test ! -s conftest.err'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; } &&
2431         { ac_try='test -s conftest$ac_exeext'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; }; then
2437  :
2438else
2439  echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442FFLAGS=
2443fi
2444rm -f conftest.err conftest.$ac_objext \
2445      conftest$ac_exeext conftest.$ac_ext
2446if test -z "$FFLAGS"; then
2447  { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
2448echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
2449  FFLAGS='-O'
2450  cat >conftest.$ac_ext <<_ACEOF
2451      program main
2452      integer i
2453      end
2454_ACEOF
2455rm -f conftest.$ac_objext conftest$ac_exeext
2456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2457  (eval $ac_link) 2>conftest.er1
2458  ac_status=$?
2459  grep -v '^ *+' conftest.er1 >conftest.err
2460  rm -f conftest.er1
2461  cat conftest.err >&5
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); } &&
2464         { ac_try='test -z "$ac_f77_werror_flag"
2465                         || test ! -s conftest.err'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; } &&
2471         { ac_try='test -s conftest$ac_exeext'
2472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473  (eval $ac_try) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); }; }; then
2477  :
2478else
2479  echo "$as_me: failed program was:" >&5
2480sed 's/^/| /' conftest.$ac_ext >&5
2481
2482FFLAGS=
2483fi
2484rm -f conftest.err conftest.$ac_objext \
2485      conftest$ac_exeext conftest.$ac_ext
2486  if test -z "$FFLAGS"; then
2487    { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
2488echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
2489  fi
2490fi
2491
2492{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
2493echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
2494
2495
2496if test x"$MPIF77" = x; then :; else
2497  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
2498echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
2499  F77="$MPIF77"
2500fi
2501
2502case "$F77" in
2503  ifort*)
2504    case $build in
2505  *-mingw*)
2506    if test "${LD+set}" = set; then :; else
2507      LD=link
2508    fi
2509    ;;
2510esac
2511
2512    ;;
2513esac
2514
2515ac_ext=c
2516ac_cpp='$CPP $CPPFLAGS'
2517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520
2521
2522
2523# Initialize autotools
2524
2525# On Cygwin, building DLLs doesn't work
2526case $build in
2527  *-cygwin*)
2528    coin_disable_shared=yes
2529    platform=Cygwin
2530  ;;
2531  *-mingw*)
2532    coin_disable_shared=yes
2533    platform="Msys"
2534#    case "$CXX" in
2535#      cl*)
2536#        coin_disable_shared=yes
2537#        platform="Msys with cl"
2538#    ;;
2539#    esac
2540  ;;
2541esac
2542if test x"$coin_disable_shared" = xyes; then
2543  if test x"$enable_shared" = xyes; then
2544    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
2545echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
2546  fi
2547  enable_shared=no
2548fi
2549# By default, we only want the shared objects to be compiled
2550# Check whether --enable-static or --disable-static was given.
2551if test "${enable_static+set}" = set; then
2552  enableval="$enable_static"
2553  p=${PACKAGE-default}
2554    case $enableval in
2555    yes) enable_static=yes ;;
2556    no) enable_static=no ;;
2557    *)
2558     enable_static=no
2559      # Look at the argument we got.  We use all the common list separators.
2560      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2561      for pkg in $enableval; do
2562        IFS="$lt_save_ifs"
2563        if test "X$pkg" = "X$p"; then
2564          enable_static=yes
2565        fi
2566      done
2567      IFS="$lt_save_ifs"
2568      ;;
2569    esac
2570else
2571  enable_static=no
2572fi;
2573
2574
2575
2576echo "$as_me:$LINENO: checking for egrep" >&5
2577echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2578if test "${ac_cv_prog_egrep+set}" = set; then
2579  echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2582    then ac_cv_prog_egrep='grep -E'
2583    else ac_cv_prog_egrep='egrep'
2584    fi
2585fi
2586echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2587echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2588 EGREP=$ac_cv_prog_egrep
2589
2590
2591am__api_version="1.9"
2592# Find a good install program.  We prefer a C program (faster),
2593# so one script is as good as another.  But avoid the broken or
2594# incompatible versions:
2595# SysV /etc/install, /usr/sbin/install
2596# SunOS /usr/etc/install
2597# IRIX /sbin/install
2598# AIX /bin/install
2599# AmigaOS /C/install, which installs bootblocks on floppy discs
2600# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2601# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2602# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2603# OS/2's system install, which has a completely different semantic
2604# ./install, which can be erroneously created by make from ./install.sh.
2605echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2606echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2607if test -z "$INSTALL"; then
2608if test "${ac_cv_path_install+set}" = set; then
2609  echo $ECHO_N "(cached) $ECHO_C" >&6
2610else
2611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616  # Account for people who put trailing slashes in PATH elements.
2617case $as_dir/ in
2618  ./ | .// | /cC/* | \
2619  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2620  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2621  /usr/ucb/* ) ;;
2622  *)
2623    # OSF1 and SCO ODT 3.0 have their own names for install.
2624    # Don't use installbsd from OSF since it installs stuff as root
2625    # by default.
2626    for ac_prog in ginstall scoinst install; do
2627      for ac_exec_ext in '' $ac_executable_extensions; do
2628        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2629          if test $ac_prog = install &&
2630            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2631            # AIX install.  It has an incompatible calling convention.
2632            :
2633          elif test $ac_prog = install &&
2634            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2635            # program-specific install script used by HP pwplus--don't use.
2636            :
2637          else
2638            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2639            break 3
2640          fi
2641        fi
2642      done
2643    done
2644    ;;
2645esac
2646done
2647
2648
2649fi
2650  if test "${ac_cv_path_install+set}" = set; then
2651    INSTALL=$ac_cv_path_install
2652  else
2653    # As a last resort, use the slow shell script.  We don't cache a
2654    # path for INSTALL within a source directory, because that will
2655    # break other packages using the cache if that directory is
2656    # removed, or if the path is relative.
2657    INSTALL=$ac_install_sh
2658  fi
2659fi
2660echo "$as_me:$LINENO: result: $INSTALL" >&5
2661echo "${ECHO_T}$INSTALL" >&6
2662
2663# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2664# It thinks the first close brace ends the variable substitution.
2665test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2666
2667test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2668
2669test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2670
2671echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2672echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2673# Just in case
2674sleep 1
2675echo timestamp > conftest.file
2676# Do `set' in a subshell so we don't clobber the current shell's
2677# arguments.  Must try -L first in case configure is actually a
2678# symlink; some systems play weird games with the mod time of symlinks
2679# (eg FreeBSD returns the mod time of the symlink's containing
2680# directory).
2681if (
2682   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2683   if test "$*" = "X"; then
2684      # -L didn't work.
2685      set X `ls -t $srcdir/configure conftest.file`
2686   fi
2687   rm -f conftest.file
2688   if test "$*" != "X $srcdir/configure conftest.file" \
2689      && test "$*" != "X conftest.file $srcdir/configure"; then
2690
2691      # If neither matched, then we have a broken ls.  This can happen
2692      # if, for instance, CONFIG_SHELL is bash and it inherits a
2693      # broken ls alias from the environment.  This has actually
2694      # happened.  Such a system could not be considered "sane".
2695      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2696alias in your environment" >&5
2697echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2698alias in your environment" >&2;}
2699   { (exit 1); exit 1; }; }
2700   fi
2701
2702   test "$2" = conftest.file
2703   )
2704then
2705   # Ok.
2706   :
2707else
2708   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2709Check your system clock" >&5
2710echo "$as_me: error: newly created file is older than distributed files!
2711Check your system clock" >&2;}
2712   { (exit 1); exit 1; }; }
2713fi
2714echo "$as_me:$LINENO: result: yes" >&5
2715echo "${ECHO_T}yes" >&6
2716test "$program_prefix" != NONE &&
2717  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2718# Use a double $ so make ignores it.
2719test "$program_suffix" != NONE &&
2720  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2721# Double any \ or $.  echo might interpret backslashes.
2722# By default was `s,x,x', remove it if useless.
2723cat <<\_ACEOF >conftest.sed
2724s/[\\$]/&&/g;s/;s,x,x,$//
2725_ACEOF
2726program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2727rm conftest.sed
2728
2729# expand $ac_aux_dir to an absolute path
2730am_aux_dir=`cd $ac_aux_dir && pwd`
2731
2732test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2733# Use eval to expand $SHELL
2734if eval "$MISSING --run true"; then
2735  am_missing_run="$MISSING --run "
2736else
2737  am_missing_run=
2738  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2739echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2740fi
2741
2742if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2743  # We used to keeping the `.' as first argument, in order to
2744  # allow $(mkdir_p) to be used without argument.  As in
2745  #   $(mkdir_p) $(somedir)
2746  # where $(somedir) is conditionally defined.  However this is wrong
2747  # for two reasons:
2748  #  1. if the package is installed by a user who cannot write `.'
2749  #     make install will fail,
2750  #  2. the above comment should most certainly read
2751  #     $(mkdir_p) $(DESTDIR)$(somedir)
2752  #     so it does not work when $(somedir) is undefined and
2753  #     $(DESTDIR) is not.
2754  #  To support the latter case, we have to write
2755  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2756  #  so the `.' trick is pointless.
2757  mkdir_p='mkdir -p --'
2758else
2759  # On NextStep and OpenStep, the `mkdir' command does not
2760  # recognize any option.  It will interpret all options as
2761  # directories to create, and then abort because `.' already
2762  # exists.
2763  for d in ./-p ./--version;
2764  do
2765    test -d $d && rmdir $d
2766  done
2767  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2768  if test -f "$ac_aux_dir/mkinstalldirs"; then
2769    mkdir_p='$(mkinstalldirs)'
2770  else
2771    mkdir_p='$(install_sh) -d'
2772  fi
2773fi
2774
2775for ac_prog in gawk mawk nawk awk
2776do
2777  # Extract the first word of "$ac_prog", so it can be a program name with args.
2778set dummy $ac_prog; ac_word=$2
2779echo "$as_me:$LINENO: checking for $ac_word" >&5
2780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781if test "${ac_cv_prog_AWK+set}" = set; then
2782  echo $ECHO_N "(cached) $ECHO_C" >&6
2783else
2784  if test -n "$AWK"; then
2785  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  test -z "$as_dir" && as_dir=.
2792  for ac_exec_ext in '' $ac_executable_extensions; do
2793  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794    ac_cv_prog_AWK="$ac_prog"
2795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2796    break 2
2797  fi
2798done
2799done
2800
2801fi
2802fi
2803AWK=$ac_cv_prog_AWK
2804if test -n "$AWK"; then
2805  echo "$as_me:$LINENO: result: $AWK" >&5
2806echo "${ECHO_T}$AWK" >&6
2807else
2808  echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6
2810fi
2811
2812  test -n "$AWK" && break
2813done
2814
2815echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2816echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2817set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2818if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2819  echo $ECHO_N "(cached) $ECHO_C" >&6
2820else
2821  cat >conftest.make <<\_ACEOF
2822all:
2823        @echo 'ac_maketemp="$(MAKE)"'
2824_ACEOF
2825# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2826eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2827if test -n "$ac_maketemp"; then
2828  eval ac_cv_prog_make_${ac_make}_set=yes
2829else
2830  eval ac_cv_prog_make_${ac_make}_set=no
2831fi
2832rm -f conftest.make
2833fi
2834if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2835  echo "$as_me:$LINENO: result: yes" >&5
2836echo "${ECHO_T}yes" >&6
2837  SET_MAKE=
2838else
2839  echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6
2841  SET_MAKE="MAKE=${MAKE-make}"
2842fi
2843
2844rm -rf .tst 2>/dev/null
2845mkdir .tst 2>/dev/null
2846if test -d .tst; then
2847  am__leading_dot=.
2848else
2849  am__leading_dot=_
2850fi
2851rmdir .tst 2>/dev/null
2852
2853DEPDIR="${am__leading_dot}deps"
2854
2855          ac_config_commands="$ac_config_commands depfiles"
2856
2857
2858am_make=${MAKE-make}
2859cat > confinc << 'END'
2860am__doit:
2861        @echo done
2862.PHONY: am__doit
2863END
2864# If we don't find an include directive, just comment out the code.
2865echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2866echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2867am__include="#"
2868am__quote=
2869_am_result=none
2870# First try GNU make style include.
2871echo "include confinc" > confmf
2872# We grep out `Entering directory' and `Leaving directory'
2873# messages which can occur if `w' ends up in MAKEFLAGS.
2874# In particular we don't look at `^make:' because GNU make might
2875# be invoked under some other name (usually "gmake"), in which
2876# case it prints its new name instead of `make'.
2877if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2878   am__include=include
2879   am__quote=
2880   _am_result=GNU
2881fi
2882# Now try BSD make style include.
2883if test "$am__include" = "#"; then
2884   echo '.include "confinc"' > confmf
2885   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2886      am__include=.include
2887      am__quote="\""
2888      _am_result=BSD
2889   fi
2890fi
2891
2892
2893echo "$as_me:$LINENO: result: $_am_result" >&5
2894echo "${ECHO_T}$_am_result" >&6
2895rm -f confinc confmf
2896
2897# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2898if test "${enable_dependency_tracking+set}" = set; then
2899  enableval="$enable_dependency_tracking"
2900
2901fi;
2902if test "x$enable_dependency_tracking" != xno; then
2903  am_depcomp="$ac_aux_dir/depcomp"
2904  AMDEPBACKSLASH='\'
2905fi
2906
2907
2908if test "x$enable_dependency_tracking" != xno; then
2909  AMDEP_TRUE=
2910  AMDEP_FALSE='#'
2911else
2912  AMDEP_TRUE='#'
2913  AMDEP_FALSE=
2914fi
2915
2916
2917
2918ac_ext=c
2919ac_cpp='$CPP $CPPFLAGS'
2920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922ac_compiler_gnu=$ac_cv_c_compiler_gnu
2923if test -n "$ac_tool_prefix"; then
2924  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2925set dummy ${ac_tool_prefix}gcc; ac_word=$2
2926echo "$as_me:$LINENO: checking for $ac_word" >&5
2927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2928if test "${ac_cv_prog_CC+set}" = set; then
2929  echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931  if test -n "$CC"; then
2932  ac_cv_prog_CC="$CC" # Let the user override the test.
2933else
2934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935for as_dir in $PATH
2936do
2937  IFS=$as_save_IFS
2938  test -z "$as_dir" && as_dir=.
2939  for ac_exec_ext in '' $ac_executable_extensions; do
2940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2943    break 2
2944  fi
2945done
2946done
2947
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
2952  echo "$as_me:$LINENO: result: $CC" >&5
2953echo "${ECHO_T}$CC" >&6
2954else
2955  echo "$as_me:$LINENO: result: no" >&5
2956echo "${ECHO_T}no" >&6
2957fi
2958
2959fi
2960if test -z "$ac_cv_prog_CC"; then
2961  ac_ct_CC=$CC
2962  # Extract the first word of "gcc", so it can be a program name with args.
2963set dummy gcc; ac_word=$2
2964echo "$as_me:$LINENO: checking for $ac_word" >&5
2965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2967  echo $ECHO_N "(cached) $ECHO_C" >&6
2968else
2969  if test -n "$ac_ct_CC"; then
2970  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971else
2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973for as_dir in $PATH
2974do
2975  IFS=$as_save_IFS
2976  test -z "$as_dir" && as_dir=.
2977  for ac_exec_ext in '' $ac_executable_extensions; do
2978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979    ac_cv_prog_ac_ct_CC="gcc"
2980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981    break 2
2982  fi
2983done
2984done
2985
2986fi
2987fi
2988ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989if test -n "$ac_ct_CC"; then
2990  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2991echo "${ECHO_T}$ac_ct_CC" >&6
2992else
2993  echo "$as_me:$LINENO: result: no" >&5
2994echo "${ECHO_T}no" >&6
2995fi
2996
2997  CC=$ac_ct_CC
2998else
2999  CC="$ac_cv_prog_CC"
3000fi
3001
3002if test -z "$CC"; then
3003  if test -n "$ac_tool_prefix"; then
3004  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3005set dummy ${ac_tool_prefix}cc; ac_word=$2
3006echo "$as_me:$LINENO: checking for $ac_word" >&5
3007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3008if test "${ac_cv_prog_CC+set}" = set; then
3009  echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011  if test -n "$CC"; then
3012  ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017  IFS=$as_save_IFS
3018  test -z "$as_dir" && as_dir=.
3019  for ac_exec_ext in '' $ac_executable_extensions; do
3020  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021    ac_cv_prog_CC="${ac_tool_prefix}cc"
3022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3023    break 2
3024  fi
3025done
3026done
3027
3028fi
3029fi
3030CC=$ac_cv_prog_CC
3031if test -n "$CC"; then
3032  echo "$as_me:$LINENO: result: $CC" >&5
3033echo "${ECHO_T}$CC" >&6
3034else
3035  echo "$as_me:$LINENO: result: no" >&5
3036echo "${ECHO_T}no" >&6
3037fi
3038
3039fi
3040if test -z "$ac_cv_prog_CC"; then
3041  ac_ct_CC=$CC
3042  # Extract the first word of "cc", so it can be a program name with args.
3043set dummy cc; ac_word=$2
3044echo "$as_me:$LINENO: checking for $ac_word" >&5
3045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047  echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049  if test -n "$ac_ct_CC"; then
3050  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057  for ac_exec_ext in '' $ac_executable_extensions; do
3058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059    ac_cv_prog_ac_ct_CC="cc"
3060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063done
3064done
3065
3066fi
3067fi
3068ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069if test -n "$ac_ct_CC"; then
3070  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3071echo "${ECHO_T}$ac_ct_CC" >&6
3072else
3073  echo "$as_me:$LINENO: result: no" >&5
3074echo "${ECHO_T}no" >&6
3075fi
3076
3077  CC=$ac_ct_CC
3078else
3079  CC="$ac_cv_prog_CC"
3080fi
3081
3082fi
3083if test -z "$CC"; then
3084  # Extract the first word of "cc", so it can be a program name with args.
3085set dummy cc; ac_word=$2
3086echo "$as_me:$LINENO: checking for $ac_word" >&5
3087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3088if test "${ac_cv_prog_CC+set}" = set; then
3089  echo $ECHO_N "(cached) $ECHO_C" >&6
3090else
3091  if test -n "$CC"; then
3092  ac_cv_prog_CC="$CC" # Let the user override the test.
3093else
3094  ac_prog_rejected=no
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098  IFS=$as_save_IFS
3099  test -z "$as_dir" && as_dir=.
3100  for ac_exec_ext in '' $ac_executable_extensions; do
3101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3103       ac_prog_rejected=yes
3104       continue
3105     fi
3106    ac_cv_prog_CC="cc"
3107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108    break 2
3109  fi
3110done
3111done
3112
3113if test $ac_prog_rejected = yes; then
3114  # We found a bogon in the path, so make sure we never use it.
3115  set dummy $ac_cv_prog_CC
3116  shift
3117  if test $# != 0; then
3118    # We chose a different compiler from the bogus one.
3119    # However, it has the same basename, so the bogon will be chosen
3120    # first if we set CC to just the basename; use the full file name.
3121    shift
3122    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3123  fi
3124fi
3125fi
3126fi
3127CC=$ac_cv_prog_CC
3128if test -n "$CC"; then
3129  echo "$as_me:$LINENO: result: $CC" >&5
3130echo "${ECHO_T}$CC" >&6
3131else
3132  echo "$as_me:$LINENO: result: no" >&5
3133echo "${ECHO_T}no" >&6
3134fi
3135
3136fi
3137if test -z "$CC"; then
3138  if test -n "$ac_tool_prefix"; then
3139  for ac_prog in cl
3140  do
3141    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3142set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3143echo "$as_me:$LINENO: checking for $ac_word" >&5
3144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145if test "${ac_cv_prog_CC+set}" = set; then
3146  echo $ECHO_N "(cached) $ECHO_C" >&6
3147else
3148  if test -n "$CC"; then
3149  ac_cv_prog_CC="$CC" # Let the user override the test.
3150else
3151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152for as_dir in $PATH
3153do
3154  IFS=$as_save_IFS
3155  test -z "$as_dir" && as_dir=.
3156  for ac_exec_ext in '' $ac_executable_extensions; do
3157  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3159    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160    break 2
3161  fi
3162done
3163done
3164
3165fi
3166fi
3167CC=$ac_cv_prog_CC
3168if test -n "$CC"; then
3169  echo "$as_me:$LINENO: result: $CC" >&5
3170echo "${ECHO_T}$CC" >&6
3171else
3172  echo "$as_me:$LINENO: result: no" >&5
3173echo "${ECHO_T}no" >&6
3174fi
3175
3176    test -n "$CC" && break
3177  done
3178fi
3179if test -z "$CC"; then
3180  ac_ct_CC=$CC
3181  for ac_prog in cl
3182do
3183  # Extract the first word of "$ac_prog", so it can be a program name with args.
3184set dummy $ac_prog; ac_word=$2
3185echo "$as_me:$LINENO: checking for $ac_word" >&5
3186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3188  echo $ECHO_N "(cached) $ECHO_C" >&6
3189else
3190  if test -n "$ac_ct_CC"; then
3191  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196  IFS=$as_save_IFS
3197  test -z "$as_dir" && as_dir=.
3198  for ac_exec_ext in '' $ac_executable_extensions; do
3199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200    ac_cv_prog_ac_ct_CC="$ac_prog"
3201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202    break 2
3203  fi
3204done
3205done
3206
3207fi
3208fi
3209ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210if test -n "$ac_ct_CC"; then
3211  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3212echo "${ECHO_T}$ac_ct_CC" >&6
3213else
3214  echo "$as_me:$LINENO: result: no" >&5
3215echo "${ECHO_T}no" >&6
3216fi
3217
3218  test -n "$ac_ct_CC" && break
3219done
3220
3221  CC=$ac_ct_CC
3222fi
3223
3224fi
3225
3226
3227test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3228See \`config.log' for more details." >&5
3229echo "$as_me: error: no acceptable C compiler found in \$PATH
3230See \`config.log' for more details." >&2;}
3231   { (exit 1); exit 1; }; }
3232
3233# Provide some information about the compiler.
3234echo "$as_me:$LINENO:" \
3235     "checking for C compiler version" >&5
3236ac_compiler=`set X $ac_compile; echo $2`
3237{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3238  (eval $ac_compiler --version </dev/null >&5) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }
3242{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3243  (eval $ac_compiler -v </dev/null >&5) 2>&5
3244  ac_status=$?
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); }
3247{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3248  (eval $ac_compiler -V </dev/null >&5) 2>&5
3249  ac_status=$?
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); }
3252
3253echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3254echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3255if test "${ac_cv_c_compiler_gnu+set}" = set; then
3256  echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258  cat >conftest.$ac_ext <<_ACEOF
3259/* confdefs.h.  */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h.  */
3264
3265int
3266main ()
3267{
3268#ifndef __GNUC__
3269       choke me
3270#endif
3271
3272  ;
3273  return 0;
3274}
3275_ACEOF
3276rm -f conftest.$ac_objext
3277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3278  (eval $ac_compile) 2>conftest.er1
3279  ac_status=$?
3280  grep -v '^ *+' conftest.er1 >conftest.err
3281  rm -f conftest.er1
3282  cat conftest.err >&5
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); } &&
3285         { ac_try='test -z "$ac_c_werror_flag"
3286                         || test ! -s conftest.err'
3287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288  (eval $ac_try) 2>&5
3289  ac_status=$?
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }; } &&
3292         { ac_try='test -s conftest.$ac_objext'
3293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3294  (eval $ac_try) 2>&5
3295  ac_status=$?
3296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297  (exit $ac_status); }; }; then
3298  ac_compiler_gnu=yes
3299else
3300  echo "$as_me: failed program was:" >&5
3301sed 's/^/| /' conftest.$ac_ext >&5
3302
3303ac_compiler_gnu=no
3304fi
3305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3306ac_cv_c_compiler_gnu=$ac_compiler_gnu
3307
3308fi
3309echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3310echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3311GCC=`test $ac_compiler_gnu = yes && echo yes`
3312ac_test_CFLAGS=${CFLAGS+set}
3313ac_save_CFLAGS=$CFLAGS
3314CFLAGS="-g"
3315echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3316echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3317if test "${ac_cv_prog_cc_g+set}" = set; then
3318  echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320  cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h.  */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h.  */
3326
3327int
3328main ()
3329{
3330
3331  ;
3332  return 0;
3333}
3334_ACEOF
3335rm -f conftest.$ac_objext
3336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337  (eval $ac_compile) 2>conftest.er1
3338  ac_status=$?
3339  grep -v '^ *+' conftest.er1 >conftest.err
3340  rm -f conftest.er1
3341  cat conftest.err >&5
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); } &&
3344         { ac_try='test -z "$ac_c_werror_flag"
3345                         || test ! -s conftest.err'
3346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347  (eval $ac_try) 2>&5
3348  ac_status=$?
3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); }; } &&
3351         { ac_try='test -s conftest.$ac_objext'
3352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353  (eval $ac_try) 2>&5
3354  ac_status=$?
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); }; }; then
3357  ac_cv_prog_cc_g=yes
3358else
3359  echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362ac_cv_prog_cc_g=no
3363fi
3364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3365fi
3366echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3367echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3368if test "$ac_test_CFLAGS" = set; then
3369  CFLAGS=$ac_save_CFLAGS
3370elif test $ac_cv_prog_cc_g = yes; then
3371  if test "$GCC" = yes; then
3372    CFLAGS="-g -O2"
3373  else
3374    CFLAGS="-g"
3375  fi
3376else
3377  if test "$GCC" = yes; then
3378    CFLAGS="-O2"
3379  else
3380    CFLAGS=
3381  fi
3382fi
3383echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3384echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3385if test "${ac_cv_prog_cc_stdc+set}" = set; then
3386  echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388  ac_cv_prog_cc_stdc=no
3389ac_save_CC=$CC
3390cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h.  */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h.  */
3396#include <stdarg.h>
3397#include <stdio.h>
3398#include <sys/types.h>
3399#include <sys/stat.h>
3400/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3401struct buf { int x; };
3402FILE * (*rcsopen) (struct buf *, struct stat *, int);
3403static char *e (p, i)
3404     char **p;
3405     int i;
3406{
3407  return p[i];
3408}
3409static char *f (char * (*g) (char **, int), char **p, ...)
3410{
3411  char *s;
3412  va_list v;
3413  va_start (v,p);
3414  s = g (p, va_arg (v,int));
3415  va_end (v);
3416  return s;
3417}
3418
3419/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3420   function prototypes and stuff, but not '\xHH' hex character constants.
3421   These don't provoke an error unfortunately, instead are silently treated
3422   as 'x'.  The following induces an error, until -std1 is added to get
3423   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3424   array size at least.  It's necessary to write '\x00'==0 to get something
3425   that's true only with -std1.  */
3426int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3427
3428int test (int i, double x);
3429struct s1 {int (*f) (int a);};
3430struct s2 {int (*f) (double a);};
3431int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3432int argc;
3433char **argv;
3434int
3435main ()
3436{
3437return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3438  ;
3439  return 0;
3440}
3441_ACEOF
3442# Don't try gcc -ansi; that turns off useful extensions and
3443# breaks some systems' header files.
3444# AIX                   -qlanglvl=ansi
3445# Ultrix and OSF/1      -std1
3446# HP-UX 10.20 and later -Ae
3447# HP-UX older versions  -Aa -D_HPUX_SOURCE
3448# SVR4                  -Xc -D__EXTENSIONS__
3449for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3450do
3451  CC="$ac_save_CC $ac_arg"
3452  rm -f conftest.$ac_objext
3453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454  (eval $ac_compile) 2>conftest.er1
3455  ac_status=$?
3456  grep -v '^ *+' conftest.er1 >conftest.err
3457  rm -f conftest.er1
3458  cat conftest.err >&5
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); } &&
3461         { ac_try='test -z "$ac_c_werror_flag"
3462                         || test ! -s conftest.err'
3463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464  (eval $ac_try) 2>&5
3465  ac_status=$?
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); }; } &&
3468         { ac_try='test -s conftest.$ac_objext'
3469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470  (eval $ac_try) 2>&5
3471  ac_status=$?
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); }; }; then
3474  ac_cv_prog_cc_stdc=$ac_arg
3475break
3476else
3477  echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480fi
3481rm -f conftest.err conftest.$ac_objext
3482done
3483rm -f conftest.$ac_ext conftest.$ac_objext
3484CC=$ac_save_CC
3485
3486fi
3487
3488case "x$ac_cv_prog_cc_stdc" in
3489  x|xno)
3490    echo "$as_me:$LINENO: result: none needed" >&5
3491echo "${ECHO_T}none needed" >&6 ;;
3492  *)
3493    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3494echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3495    CC="$CC $ac_cv_prog_cc_stdc" ;;
3496esac
3497
3498# Some people use a C++ compiler to compile C.  Since we use `exit',
3499# in C++ we need to declare it.  In case someone uses the same compiler
3500# for both compiling C and C++ we need to have the C++ compiler decide
3501# the declaration of exit, since it's the most demanding environment.
3502cat >conftest.$ac_ext <<_ACEOF
3503#ifndef __cplusplus
3504  choke me
3505#endif
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509  (eval $ac_compile) 2>conftest.er1
3510  ac_status=$?
3511  grep -v '^ *+' conftest.er1 >conftest.err
3512  rm -f conftest.er1
3513  cat conftest.err >&5
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); } &&
3516         { ac_try='test -z "$ac_c_werror_flag"
3517                         || test ! -s conftest.err'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; } &&
3523         { ac_try='test -s conftest.$ac_objext'
3524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525  (eval $ac_try) 2>&5
3526  ac_status=$?
3527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); }; }; then
3529  for ac_declaration in \
3530   '' \
3531   'extern "C" void std::exit (int) throw (); using std::exit;' \
3532   'extern "C" void std::exit (int); using std::exit;' \
3533   'extern "C" void exit (int) throw ();' \
3534   'extern "C" void exit (int);' \
3535   'void exit (int);'
3536do
3537  cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h.  */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h.  */
3543$ac_declaration
3544#include <stdlib.h>
3545int
3546main ()
3547{
3548exit (42);
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555  (eval $ac_compile) 2>conftest.er1
3556  ac_status=$?
3557  grep -v '^ *+' conftest.er1 >conftest.err
3558  rm -f conftest.er1
3559  cat conftest.err >&5
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); } &&
3562         { ac_try='test -z "$ac_c_werror_flag"
3563                         || test ! -s conftest.err'
3564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565  (eval $ac_try) 2>&5
3566  ac_status=$?
3567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568  (exit $ac_status); }; } &&
3569         { ac_try='test -s conftest.$ac_objext'
3570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571  (eval $ac_try) 2>&5
3572  ac_status=$?
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); }; }; then
3575  :
3576else
3577  echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580continue
3581fi
3582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3583  cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h.  */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h.  */
3589$ac_declaration
3590int
3591main ()
3592{
3593exit (42);
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext
3599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600  (eval $ac_compile) 2>conftest.er1
3601  ac_status=$?
3602  grep -v '^ *+' conftest.er1 >conftest.err
3603  rm -f conftest.er1
3604  cat conftest.err >&5
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); } &&
3607         { ac_try='test -z "$ac_c_werror_flag"
3608                         || test ! -s conftest.err'
3609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610  (eval $ac_try) 2>&5
3611  ac_status=$?
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); }; } &&
3614         { ac_try='test -s conftest.$ac_objext'
3615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616  (eval $ac_try) 2>&5
3617  ac_status=$?
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); }; }; then
3620  break
3621else
3622  echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625fi
3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627done
3628rm -f conftest*
3629if test -n "$ac_declaration"; then
3630  echo '#ifdef __cplusplus' >>confdefs.h
3631  echo $ac_declaration      >>confdefs.h
3632  echo '#endif'             >>confdefs.h
3633fi
3634
3635else
3636  echo "$as_me: failed program was:" >&5
3637sed 's/^/| /' conftest.$ac_ext >&5
3638
3639fi
3640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3641ac_ext=c
3642ac_cpp='$CPP $CPPFLAGS'
3643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3645ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646
3647depcc="$CC"   am_compiler_list=
3648
3649echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3650echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3651if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3652  echo $ECHO_N "(cached) $ECHO_C" >&6
3653else
3654  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3655  # We make a subdir and do the tests there.  Otherwise we can end up
3656  # making bogus files that we don't know about and never remove.  For
3657  # instance it was reported that on HP-UX the gcc test will end up
3658  # making a dummy file named `D' -- because `-MD' means `put the output
3659  # in D'.
3660  mkdir conftest.dir
3661  # Copy depcomp to subdir because otherwise we won't find it if we're
3662  # using a relative directory.
3663  cp "$am_depcomp" conftest.dir
3664  cd conftest.dir
3665  # We will build objects and dependencies in a subdirectory because
3666  # it helps to detect inapplicable dependency modes.  For instance
3667  # both Tru64's cc and ICC support -MD to output dependencies as a
3668  # side effect of compilation, but ICC will put the dependencies in
3669  # the current directory while Tru64 will put them in the object
3670  # directory.
3671  mkdir sub
3672
3673  am_cv_CC_dependencies_compiler_type=none
3674  if test "$am_compiler_list" = ""; then
3675     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3676  fi
3677  for depmode in $am_compiler_list; do
3678    # Setup a source with many dependencies, because some compilers
3679    # like to wrap large dependency lists on column 80 (with \), and
3680    # we should not choose a depcomp mode which is confused by this.
3681    #
3682    # We need to recreate these files for each test, as the compiler may
3683    # overwrite some of them when testing with obscure command lines.
3684    # This happens at least with the AIX C compiler.
3685    : > sub/conftest.c
3686    for i in 1 2 3 4 5 6; do
3687      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3688      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3689      # Solaris 8's {/usr,}/bin/sh.
3690      touch sub/conftst$i.h
3691    done
3692    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3693
3694    case $depmode in
3695    nosideeffect)
3696      # after this tag, mechanisms are not by side-effect, so they'll
3697      # only be used when explicitly requested
3698      if test "x$enable_dependency_tracking" = xyes; then
3699        continue
3700      else
3701        break
3702      fi
3703      ;;
3704    none) break ;;
3705    esac
3706    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3707    # mode.  It turns out that the SunPro C++ compiler does not properly
3708    # handle `-M -o', and we need to detect this.
3709    if depmode=$depmode \
3710       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3711       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3712       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3713         >/dev/null 2>conftest.err &&
3714       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3715       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3716       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3717      # icc doesn't choke on unknown options, it will just issue warnings
3718      # or remarks (even with -Werror).  So we grep stderr for any message
3719      # that says an option was ignored or not supported.
3720      # When given -MP, icc 7.0 and 7.1 complain thusly:
3721      #   icc: Command line warning: ignoring option '-M'; no argument required
3722      # The diagnosis changed in icc 8.0:
3723      #   icc: Command line remark: option '-MP' not supported
3724      if (grep 'ignoring option' conftest.err ||
3725          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3726        am_cv_CC_dependencies_compiler_type=$depmode
3727        break
3728      fi
3729    fi
3730  done
3731
3732  cd ..
3733  rm -rf conftest.dir
3734else
3735  am_cv_CC_dependencies_compiler_type=none
3736fi
3737
3738fi
3739echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3740echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3741CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3742
3743
3744
3745if
3746  test "x$enable_dependency_tracking" != xno \
3747  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3748  am__fastdepCC_TRUE=
3749  am__fastdepCC_FALSE='#'
3750else
3751  am__fastdepCC_TRUE='#'
3752  am__fastdepCC_FALSE=
3753fi
3754
3755
3756
3757ac_ext=c
3758ac_cpp='$CPP $CPPFLAGS'
3759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762
3763if test x"" = x; then
3764  hdr="#include <dlfcn.h>"
3765else
3766  hdr=""
3767fi
3768
3769for ac_header in dlfcn.h
3770do
3771as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3772echo "$as_me:$LINENO: checking for $ac_header" >&5
3773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3774if eval "test \"\${$as_ac_Header+set}\" = set"; then
3775  echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777  cat >conftest.$ac_ext <<_ACEOF
3778/* confdefs.h.  */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h.  */
3783$hdr
3784
3785#include <$ac_header>
3786_ACEOF
3787rm -f conftest.$ac_objext
3788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3789  (eval $ac_compile) 2>conftest.er1
3790  ac_status=$?
3791  grep -v '^ *+' conftest.er1 >conftest.err
3792  rm -f conftest.er1
3793  cat conftest.err >&5
3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795  (exit $ac_status); } &&
3796         { ac_try='test -z "$ac_c_werror_flag"
3797                         || test ! -s conftest.err'
3798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3799  (eval $ac_try) 2>&5
3800  ac_status=$?
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); }; } &&
3803         { ac_try='test -s conftest.$ac_objext'
3804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805  (eval $ac_try) 2>&5
3806  ac_status=$?
3807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); }; }; then
3809  eval "$as_ac_Header=yes"
3810else
3811  echo "$as_me: failed program was:" >&5
3812sed 's/^/| /' conftest.$ac_ext >&5
3813
3814eval "$as_ac_Header=no"
3815fi
3816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3817fi
3818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3820if test `eval echo '${'$as_ac_Header'}'` = yes; then
3821  cat >>confdefs.h <<_ACEOF
3822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3823_ACEOF
3824
3825fi
3826
3827done
3828
3829
3830ac_ext=c
3831ac_cpp='$CPP $CPPFLAGS'
3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836
3837# Check whether --enable-shared or --disable-shared was given.
3838if test "${enable_shared+set}" = set; then
3839  enableval="$enable_shared"
3840  p=${PACKAGE-default}
3841    case $enableval in
3842    yes) enable_shared=yes ;;
3843    no) enable_shared=no ;;
3844    *)
3845      enable_shared=no
3846      # Look at the argument we got.  We use all the common list separators.
3847      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3848      for pkg in $enableval; do
3849        IFS="$lt_save_ifs"
3850        if test "X$pkg" = "X$p"; then
3851          enable_shared=yes
3852        fi
3853      done
3854      IFS="$lt_save_ifs"
3855      ;;
3856    esac
3857else
3858  enable_shared=yes
3859fi;
3860
3861# Check whether --enable-fast-install or --disable-fast-install was given.
3862if test "${enable_fast_install+set}" = set; then
3863  enableval="$enable_fast_install"
3864  p=${PACKAGE-default}
3865    case $enableval in
3866    yes) enable_fast_install=yes ;;
3867    no) enable_fast_install=no ;;
3868    *)
3869      enable_fast_install=no
3870      # Look at the argument we got.  We use all the common list separators.
3871      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3872      for pkg in $enableval; do
3873        IFS="$lt_save_ifs"
3874        if test "X$pkg" = "X$p"; then
3875          enable_fast_install=yes
3876        fi
3877      done
3878      IFS="$lt_save_ifs"
3879      ;;
3880    esac
3881else
3882  enable_fast_install=yes
3883fi;
3884
3885echo "$as_me:$LINENO: checking host system type" >&5
3886echo $ECHO_N "checking host system type... $ECHO_C" >&6
3887if test "${ac_cv_host+set}" = set; then
3888  echo $ECHO_N "(cached) $ECHO_C" >&6
3889else
3890  ac_cv_host_alias=$host_alias
3891test -z "$ac_cv_host_alias" &&
3892  ac_cv_host_alias=$ac_cv_build_alias
3893ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3894  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3895echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3896   { (exit 1); exit 1; }; }
3897
3898fi
3899echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3900echo "${ECHO_T}$ac_cv_host" >&6
3901host=$ac_cv_host
3902host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3903host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3904host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3905
3906
3907echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3908echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3909if test "${lt_cv_path_SED+set}" = set; then
3910  echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912  # Loop through the user's path and test for sed and gsed.
3913# Then use that list of sed's as ones to test for truncation.
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917  IFS=$as_save_IFS
3918  test -z "$as_dir" && as_dir=.
3919  for lt_ac_prog in sed gsed; do
3920    for ac_exec_ext in '' $ac_executable_extensions; do
3921      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3922        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3923      fi
3924    done
3925  done
3926done
3927lt_ac_max=0
3928lt_ac_count=0
3929# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3930# along with /bin/sed that truncates output.
3931for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3932  test ! -f $lt_ac_sed && continue
3933  cat /dev/null > conftest.in
3934  lt_ac_count=0
3935  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3936  # Check for GNU sed and select it if it is found.
3937  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3938    lt_cv_path_SED=$lt_ac_sed
3939    break
3940  fi
3941  while true; do
3942    cat conftest.in conftest.in >conftest.tmp
3943    mv conftest.tmp conftest.in
3944    cp conftest.in conftest.nl
3945    echo >>conftest.nl
3946    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3947    cmp -s conftest.out conftest.nl || break
3948    # 10000 chars as input seems more than enough
3949    test $lt_ac_count -gt 10 && break
3950    lt_ac_count=`expr $lt_ac_count + 1`
3951    if test $lt_ac_count -gt $lt_ac_max; then
3952      lt_ac_max=$lt_ac_count
3953      lt_cv_path_SED=$lt_ac_sed
3954    fi
3955  done
3956done
3957
3958fi
3959
3960SED=$lt_cv_path_SED
3961echo "$as_me:$LINENO: result: $SED" >&5
3962echo "${ECHO_T}$SED" >&6
3963
3964
3965# Check whether --with-gnu-ld or --without-gnu-ld was given.
3966if test "${with_gnu_ld+set}" = set; then
3967  withval="$with_gnu_ld"
3968  test "$withval" = no || with_gnu_ld=yes
3969else
3970  with_gnu_ld=no
3971fi;
3972ac_prog=ld
3973if test "$GCC" = yes; then
3974  # Check if gcc -print-prog-name=ld gives a path.
3975  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3976echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3977  case $host in
3978  *-*-mingw*)
3979    # gcc leaves a trailing carriage return which upsets mingw
3980    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3981  *)
3982    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3983  esac
3984  case $ac_prog in
3985    # Accept absolute paths.
3986    [\\/]* | ?:[\\/]*)
3987      re_direlt='/[^/][^/]*/\.\./'
3988      # Canonicalize the pathname of ld
3989      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3990      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3991        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3992      done
3993      test -z "$LD" && LD="$ac_prog"
3994      ;;
3995  "")
3996    # If it fails, then pretend we aren't using GCC.
3997    ac_prog=ld
3998    ;;
3999  *)
4000    # If it is relative, then search for the first ld in PATH.
4001    with_gnu_ld=unknown
4002    ;;
4003  esac
4004elif test "$with_gnu_ld" = yes; then
4005  echo "$as_me:$LINENO: checking for GNU ld" >&5
4006echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4007else
4008  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4009echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4010fi
4011if test "${lt_cv_path_LD+set}" = set; then
4012  echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014  if test -z "$LD"; then
4015  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4016  for ac_dir in $PATH; do
4017    IFS="$lt_save_ifs"
4018    test -z "$ac_dir" && ac_dir=.
4019    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4020      lt_cv_path_LD="$ac_dir/$ac_prog"
4021      # Check to see if the program is GNU ld.  I'd rather use --version,
4022      # but apparently some variants of GNU ld only accept -v.
4023      # Break only if it was the GNU/non-GNU ld that we prefer.
4024      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4025      *GNU* | *'with BFD'*)
4026        test "$with_gnu_ld" != no && break
4027        ;;
4028      *)
4029        test "$with_gnu_ld" != yes && break
4030        ;;
4031      esac
4032    fi
4033  done
4034  IFS="$lt_save_ifs"
4035else
4036  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4037fi
4038fi
4039
4040LD="$lt_cv_path_LD"
4041if test -n "$LD"; then
4042  echo "$as_me:$LINENO: result: $LD" >&5
4043echo "${ECHO_T}$LD" >&6
4044else
4045  echo "$as_me:$LINENO: result: no" >&5
4046echo "${ECHO_T}no" >&6
4047fi
4048test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4049echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4050   { (exit 1); exit 1; }; }
4051echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4052echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4053if test "${lt_cv_prog_gnu_ld+set}" = set; then
4054  echo $ECHO_N "(cached) $ECHO_C" >&6
4055else
4056  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4057case `$LD -v 2>&1 </dev/null` in
4058*GNU* | *'with BFD'*)
4059  lt_cv_prog_gnu_ld=yes
4060  ;;
4061*)
4062  lt_cv_prog_gnu_ld=no
4063  ;;
4064esac
4065fi
4066echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4067echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4068with_gnu_ld=$lt_cv_prog_gnu_ld
4069
4070
4071echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4072echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4073if test "${lt_cv_ld_reload_flag+set}" = set; then
4074  echo $ECHO_N "(cached) $ECHO_C" >&6
4075else
4076  lt_cv_ld_reload_flag='-r'
4077fi
4078echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4079echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4080reload_flag=$lt_cv_ld_reload_flag
4081case $reload_flag in
4082"" | " "*) ;;
4083*) reload_flag=" $reload_flag" ;;
4084esac
4085reload_cmds='$LD$reload_flag -o $output$reload_objs'
4086case $host_os in
4087  darwin*)
4088    if test "$GCC" = yes; then
4089      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4090    else
4091      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4092    fi
4093    ;;
4094esac
4095
4096echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4097echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4098if test "${lt_cv_path_NM+set}" = set; then
4099  echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101  if test -n "$NM"; then
4102  # Let the user override the test.
4103  lt_cv_path_NM="$NM"
4104else
4105  lt_nm_to_check="${ac_tool_prefix}nm"
4106  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4107    lt_nm_to_check="$lt_nm_to_check nm"
4108  fi
4109  for lt_tmp_nm in $lt_nm_to_check; do
4110    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4111    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4112      IFS="$lt_save_ifs"
4113      test -z "$ac_dir" && ac_dir=.
4114      tmp_nm="$ac_dir/$lt_tmp_nm"
4115      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4116        # Check to see if the nm accepts a BSD-compat flag.
4117        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4118        #   nm: unknown option "B" ignored
4119        # Tru64's nm complains that /dev/null is an invalid object file
4120        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4121        */dev/null* | *'Invalid file or object type'*)
4122          lt_cv_path_NM="$tmp_nm -B"
4123          break
4124          ;;
4125        *)
4126          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4127          */dev/null*)
4128            lt_cv_path_NM="$tmp_nm -p"
4129            break
4130            ;;
4131          *)
4132            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4133            continue # so that we can try to find one that supports BSD flags
4134            ;;
4135          esac
4136          ;;
4137        esac
4138      fi
4139    done
4140    IFS="$lt_save_ifs"
4141  done
4142  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4143fi
4144fi
4145echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4146echo "${ECHO_T}$lt_cv_path_NM" >&6
4147NM="$lt_cv_path_NM"
4148
4149echo "$as_me:$LINENO: checking whether ln -s works" >&5
4150echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4151LN_S=$as_ln_s
4152if test "$LN_S" = "ln -s"; then
4153  echo "$as_me:$LINENO: result: yes" >&5
4154echo "${ECHO_T}yes" >&6
4155else
4156  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4157echo "${ECHO_T}no, using $LN_S" >&6
4158fi
4159
4160echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4161echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4162if test "${lt_cv_deplibs_check_method+set}" = set; then
4163  echo $ECHO_N "(cached) $ECHO_C" >&6
4164else
4165  lt_cv_file_magic_cmd='$MAGIC_CMD'
4166lt_cv_file_magic_test_file=
4167lt_cv_deplibs_check_method='unknown'
4168# Need to set the preceding variable on all platforms that support
4169# interlibrary dependencies.
4170# 'none' -- dependencies not supported.
4171# `unknown' -- same as none, but documents that we really don't know.
4172# 'pass_all' -- all dependencies passed with no checks.
4173# 'test_compile' -- check by making test program.
4174# 'file_magic [[regex]]' -- check by looking for files in library path
4175# which responds to the $file_magic_cmd with a given extended regex.
4176# If you have `file' or equivalent on your system and you're not sure
4177# whether `pass_all' will *always* work, you probably want this one.
4178
4179case $host_os in
4180aix4* | aix5*)
4181  lt_cv_deplibs_check_method=pass_all
4182  ;;
4183
4184beos*)
4185  lt_cv_deplibs_check_method=pass_all
4186  ;;
4187
4188bsdi[45]*)
4189  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4190  lt_cv_file_magic_cmd='/usr/bin/file -L'
4191  lt_cv_file_magic_test_file=/shlib/libc.so
4192  ;;
4193
4194cygwin*)
4195  # func_win32_libid is a shell function defined in ltmain.sh
4196  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4197  lt_cv_file_magic_cmd='func_win32_libid'
4198  ;;
4199
4200mingw* | pw32*)
4201  # Base MSYS/MinGW do not provide the 'file' command needed by
4202  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4203  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4204  lt_cv_file_magic_cmd='$OBJDUMP -f'
4205  ;;
4206
4207darwin* | rhapsody*)
4208  lt_cv_deplibs_check_method=pass_all
4209  ;;
4210
4211freebsd* | kfreebsd*-gnu | dragonfly*)
4212  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4213    case $host_cpu in
4214    i*86 )
4215      # Not sure whether the presence of OpenBSD here was a mistake.
4216      # Let's accept both of them until this is cleared up.
4217      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4218      lt_cv_file_magic_cmd=/usr/bin/file
4219      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4220      ;;
4221    esac
4222  else
4223    lt_cv_deplibs_check_method=pass_all
4224  fi
4225  ;;
4226
4227gnu*)
4228  lt_cv_deplibs_check_method=pass_all
4229  ;;
4230
4231hpux10.20* | hpux11*)
4232  lt_cv_file_magic_cmd=/usr/bin/file
4233  case $host_cpu in
4234  ia64*)
4235    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4236    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4237    ;;
4238  hppa*64*)
4239    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]'
4240    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4241    ;;
4242  *)
4243    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4244    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4245    ;;
4246  esac
4247  ;;
4248
4249interix3*)
4250  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4251  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4252  ;;
4253
4254irix5* | irix6* | nonstopux*)
4255  case $LD in
4256  *-32|*"-32 ") libmagic=32-bit;;
4257  *-n32|*"-n32 ") libmagic=N32;;
4258  *-64|*"-64 ") libmagic=64-bit;;
4259  *) libmagic=never-match;;
4260  esac
4261  lt_cv_deplibs_check_method=pass_all
4262  ;;
4263
4264# This must be Linux ELF.
4265linux*)
4266  lt_cv_deplibs_check_method=pass_all
4267  ;;
4268
4269netbsd*)
4270  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4271    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4272  else
4273    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4274  fi
4275  ;;
4276
4277newos6*)
4278  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4279  lt_cv_file_magic_cmd=/usr/bin/file
4280  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4281  ;;
4282
4283nto-qnx*)
4284  lt_cv_deplibs_check_method=unknown
4285  ;;
4286
4287openbsd*)
4288  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4289    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4290  else
4291    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4292  fi
4293  ;;
4294
4295osf3* | osf4* | osf5*)
4296  lt_cv_deplibs_check_method=pass_all
4297  ;;
4298
4299solaris*)
4300  lt_cv_deplibs_check_method=pass_all
4301  ;;
4302
4303sysv4 | sysv4.3*)
4304  case $host_vendor in
4305  motorola)
4306    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]'
4307    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4308    ;;
4309  ncr)
4310    lt_cv_deplibs_check_method=pass_all
4311    ;;
4312  sequent)
4313    lt_cv_file_magic_cmd='/bin/file'
4314    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4315    ;;
4316  sni)
4317    lt_cv_file_magic_cmd='/bin/file'
4318    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4319    lt_cv_file_magic_test_file=/lib/libc.so
4320    ;;
4321  siemens)
4322    lt_cv_deplibs_check_method=pass_all
4323    ;;
4324  pc)
4325    lt_cv_deplibs_check_method=pass_all
4326    ;;
4327  esac
4328  ;;
4329
4330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4331  lt_cv_deplibs_check_method=pass_all
4332  ;;
4333esac
4334
4335fi
4336echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4337echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4338file_magic_cmd=$lt_cv_file_magic_cmd
4339deplibs_check_method=$lt_cv_deplibs_check_method
4340test -z "$deplibs_check_method" && deplibs_check_method=unknown
4341
4342
4343
4344
4345# If no C compiler was specified, use CC.
4346LTCC=${LTCC-"$CC"}
4347
4348# If no C compiler flags were specified, use CFLAGS.
4349LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4350
4351# Allow CC to be a program name with arguments.
4352compiler=$CC
4353
4354# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4355if test "${enable_libtool_lock+set}" = set; then
4356  enableval="$enable_libtool_lock"
4357
4358fi;
4359test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4360
4361# Some flags need to be propagated to the compiler or linker for good
4362# libtool support.
4363case $host in
4364ia64-*-hpux*)
4365  # Find out which ABI we are using.
4366  echo 'int i;' > conftest.$ac_ext
4367  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368  (eval $ac_compile) 2>&5
4369  ac_status=$?
4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); }; then
4372    case `/usr/bin/file conftest.$ac_objext` in
4373    *ELF-32*)
4374      HPUX_IA64_MODE="32"
4375      ;;
4376    *ELF-64*)
4377      HPUX_IA64_MODE="64"
4378      ;;
4379    esac
4380  fi
4381  rm -rf conftest*
4382  ;;
4383*-*-irix6*)
4384  # Find out which ABI we are using.
4385  echo '#line 4385 "configure"' > conftest.$ac_ext
4386  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387  (eval $ac_compile) 2>&5
4388  ac_status=$?
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); }; then
4391   if test "$lt_cv_prog_gnu_ld" = yes; then
4392    case `/usr/bin/file conftest.$ac_objext` in
4393    *32-bit*)
4394      LD="${LD-ld} -melf32bsmip"
4395      ;;
4396    *N32*)
4397      LD="${LD-ld} -melf32bmipn32"
4398      ;;
4399    *64-bit*)
4400      LD="${LD-ld} -melf64bmip"
4401      ;;
4402    esac
4403   else
4404    case `/usr/bin/file conftest.$ac_objext` in
4405    *32-bit*)
4406      LD="${LD-ld} -32"
4407      ;;
4408    *N32*)
4409      LD="${LD-ld} -n32"
4410      ;;
4411    *64-bit*)
4412      LD="${LD-ld} -64"
4413      ;;
4414    esac
4415   fi
4416  fi
4417  rm -rf conftest*
4418  ;;
4419
4420x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4421  # Find out which ABI we are using.
4422  echo 'int i;' > conftest.$ac_ext
4423  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4424  (eval $ac_compile) 2>&5
4425  ac_status=$?
4426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427  (exit $ac_status); }; then
4428    case `/usr/bin/file conftest.o` in
4429    *32-bit*)
4430      case $host in
4431        x86_64-*linux*)
4432          LD="${LD-ld} -m elf_i386"
4433          ;;
4434        ppc64-*linux*|powerpc64-*linux*)
4435          LD="${LD-ld} -m elf32ppclinux"
4436          ;;
4437        s390x-*linux*)
4438          LD="${LD-ld} -m elf_s390"
4439          ;;
4440        sparc64-*linux*)
4441          LD="${LD-ld} -m elf32_sparc"
4442          ;;
4443      esac
4444      ;;
4445    *64-bit*)
4446      case $host in
4447        x86_64-*linux*)
4448          LD="${LD-ld} -m elf_x86_64"
4449          ;;
4450        ppc*-*linux*|powerpc*-*linux*)
4451          LD="${LD-ld} -m elf64ppc"
4452          ;;
4453        s390*-*linux*)
4454          LD="${LD-ld} -m elf64_s390"
4455          ;;
4456        sparc*-*linux*)
4457          LD="${LD-ld} -m elf64_sparc"
4458          ;;
4459      esac
4460      ;;
4461    esac
4462  fi
4463  rm -rf conftest*
4464  ;;
4465
4466*-*-sco3.2v5*)
4467  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4468  SAVE_CFLAGS="$CFLAGS"
4469  CFLAGS="$CFLAGS -belf"
4470  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4471echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4472if test "${lt_cv_cc_needs_belf+set}" = set; then
4473  echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475  ac_ext=c
4476ac_cpp='$CPP $CPPFLAGS'
4477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479ac_compiler_gnu=$ac_cv_c_compiler_gnu
4480
4481     cat >conftest.$ac_ext <<_ACEOF
4482/* confdefs.h.  */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4486/* end confdefs.h.  */
4487
4488int
4489main ()
4490{
4491
4492  ;
4493  return 0;
4494}
4495_ACEOF
4496rm -f conftest.$ac_objext conftest$ac_exeext
4497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4498  (eval $ac_link) 2>conftest.er1
4499  ac_status=$?
4500  grep -v '^ *+' conftest.er1 >conftest.err
4501  rm -f conftest.er1
4502  cat conftest.err >&5
4503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504  (exit $ac_status); } &&
4505         { ac_try='test -z "$ac_c_werror_flag"
4506                         || test ! -s conftest.err'
4507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508  (eval $ac_try) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; } &&
4512         { ac_try='test -s conftest$ac_exeext'
4513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514  (eval $ac_try) 2>&5
4515  ac_status=$?
4516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517  (exit $ac_status); }; }; then
4518  lt_cv_cc_needs_belf=yes
4519else
4520  echo "$as_me: failed program was:" >&5
4521sed 's/^/| /' conftest.$ac_ext >&5
4522
4523lt_cv_cc_needs_belf=no
4524fi
4525rm -f conftest.err conftest.$ac_objext \
4526      conftest$ac_exeext conftest.$ac_ext
4527     ac_ext=c
4528ac_cpp='$CPP $CPPFLAGS'
4529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4531ac_compiler_gnu=$ac_cv_c_compiler_gnu
4532
4533fi
4534echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4535echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4536  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4537    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4538    CFLAGS="$SAVE_CFLAGS"
4539  fi
4540  ;;
4541sparc*-*solaris*)
4542  # Find out which ABI we are using.
4543  echo 'int i;' > conftest.$ac_ext
4544  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4545  (eval $ac_compile) 2>&5
4546  ac_status=$?
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); }; then
4549    case `/usr/bin/file conftest.o` in
4550    *64-bit*)
4551      case $lt_cv_prog_gnu_ld in
4552      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4553      *)    LD="${LD-ld} -64" ;;
4554      esac
4555      ;;
4556    esac
4557  fi
4558  rm -rf conftest*
4559  ;;
4560
4561
4562esac
4563
4564need_locks="$enable_libtool_lock"
4565
4566
4567ac_ext=c
4568ac_cpp='$CPP $CPPFLAGS'
4569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4573echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4574# On Suns, sometimes $CPP names a directory.
4575if test -n "$CPP" && test -d "$CPP"; then
4576  CPP=
4577fi
4578if test -z "$CPP"; then
4579  if test "${ac_cv_prog_CPP+set}" = set; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582      # Double quotes because CPP needs to be expanded
4583    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4584    do
4585      ac_preproc_ok=false
4586for ac_c_preproc_warn_flag in '' yes
4587do
4588  # Use a header file that comes with gcc, so configuring glibc
4589  # with a fresh cross-compiler works.
4590  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4591  # <limits.h> exists even on freestanding compilers.
4592  # On the NeXT, cc -E runs the code through the compiler's parser,
4593  # not just through cpp. "Syntax error" is here to catch this case.
4594  cat >conftest.$ac_ext <<_ACEOF
4595/* confdefs.h.  */
4596_ACEOF
4597cat confdefs.h >>conftest.$ac_ext
4598cat >>conftest.$ac_ext <<_ACEOF
4599/* end confdefs.h.  */
4600#ifdef __STDC__
4601# include <limits.h>
4602#else
4603# include <assert.h>
4604#endif
4605                     Syntax error
4606_ACEOF
4607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4608  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4609  ac_status=$?
4610  grep -v '^ *+' conftest.er1 >conftest.err
4611  rm -f conftest.er1
4612  cat conftest.err >&5
4613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614  (exit $ac_status); } >/dev/null; then
4615  if test -s conftest.err; then
4616    ac_cpp_err=$ac_c_preproc_warn_flag
4617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4618  else
4619    ac_cpp_err=
4620  fi
4621else
4622  ac_cpp_err=yes
4623fi
4624if test -z "$ac_cpp_err"; then
4625  :
4626else
4627  echo "$as_me: failed program was:" >&5
4628sed 's/^/| /' conftest.$ac_ext >&5
4629
4630  # Broken: fails on valid input.
4631continue
4632fi
4633rm -f conftest.err conftest.$ac_ext
4634
4635  # OK, works on sane cases.  Now check whether non-existent headers
4636  # can be detected and how.
4637  cat >conftest.$ac_ext <<_ACEOF
4638/* confdefs.h.  */
4639_ACEOF
4640cat confdefs.h >>conftest.$ac_ext
4641cat >>conftest.$ac_ext <<_ACEOF
4642/* end confdefs.h.  */
4643#include <ac_nonexistent.h>
4644_ACEOF
4645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647  ac_status=$?
4648  grep -v '^ *+' conftest.er1 >conftest.err
4649  rm -f conftest.er1
4650  cat conftest.err >&5
4651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652  (exit $ac_status); } >/dev/null; then
4653  if test -s conftest.err; then
4654    ac_cpp_err=$ac_c_preproc_warn_flag
4655    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4656  else
4657    ac_cpp_err=
4658  fi
4659else
4660  ac_cpp_err=yes
4661fi
4662if test -z "$ac_cpp_err"; then
4663  # Broken: success on invalid input.
4664continue
4665else
4666  echo "$as_me: failed program was:" >&5
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
4669  # Passes both tests.
4670ac_preproc_ok=:
4671break
4672fi
4673rm -f conftest.err conftest.$ac_ext
4674
4675done
4676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4677rm -f conftest.err conftest.$ac_ext
4678if $ac_preproc_ok; then
4679  break
4680fi
4681
4682    done
4683    ac_cv_prog_CPP=$CPP
4684
4685fi
4686  CPP=$ac_cv_prog_CPP
4687else
4688  ac_cv_prog_CPP=$CPP
4689fi
4690echo "$as_me:$LINENO: result: $CPP" >&5
4691echo "${ECHO_T}$CPP" >&6
4692ac_preproc_ok=false
4693for ac_c_preproc_warn_flag in '' yes
4694do
4695  # Use a header file that comes with gcc, so configuring glibc
4696  # with a fresh cross-compiler works.
4697  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4698  # <limits.h> exists even on freestanding compilers.
4699  # On the NeXT, cc -E runs the code through the compiler's parser,
4700  # not just through cpp. "Syntax error" is here to catch this case.
4701  cat >conftest.$ac_ext <<_ACEOF
4702/* confdefs.h.  */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h.  */
4707#ifdef __STDC__
4708# include <limits.h>
4709#else
4710# include <assert.h>
4711#endif
4712                     Syntax error
4713_ACEOF
4714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4715  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4716  ac_status=$?
4717  grep -v '^ *+' conftest.er1 >conftest.err
4718  rm -f conftest.er1
4719  cat conftest.err >&5
4720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721  (exit $ac_status); } >/dev/null; then
4722  if test -s conftest.err; then
4723    ac_cpp_err=$ac_c_preproc_warn_flag
4724    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4725  else
4726    ac_cpp_err=
4727  fi
4728else
4729  ac_cpp_err=yes
4730fi
4731if test -z "$ac_cpp_err"; then
4732  :
4733else
4734  echo "$as_me: failed program was:" >&5
4735sed 's/^/| /' conftest.$ac_ext >&5
4736
4737  # Broken: fails on valid input.
4738continue
4739fi
4740rm -f conftest.err conftest.$ac_ext
4741
4742  # OK, works on sane cases.  Now check whether non-existent headers
4743  # can be detected and how.
4744  cat >conftest.$ac_ext <<_ACEOF
4745/* confdefs.h.  */
4746_ACEOF
4747cat confdefs.h >>conftest.$ac_ext
4748cat >>conftest.$ac_ext <<_ACEOF
4749/* end confdefs.h.  */
4750#include <ac_nonexistent.h>
4751_ACEOF
4752if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4753  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4754  ac_status=$?
4755  grep -v '^ *+' conftest.er1 >conftest.err
4756  rm -f conftest.er1
4757  cat conftest.err >&5
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); } >/dev/null; then
4760  if test -s conftest.err; then
4761    ac_cpp_err=$ac_c_preproc_warn_flag
4762    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4763  else
4764    ac_cpp_err=
4765  fi
4766else
4767  ac_cpp_err=yes
4768fi
4769if test -z "$ac_cpp_err"; then
4770  # Broken: success on invalid input.
4771continue
4772else
4773  echo "$as_me: failed program was:" >&5
4774sed 's/^/| /' conftest.$ac_ext >&5
4775
4776  # Passes both tests.
4777ac_preproc_ok=:
4778break
4779fi
4780rm -f conftest.err conftest.$ac_ext
4781
4782done
4783# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4784rm -f conftest.err conftest.$ac_ext
4785if $ac_preproc_ok; then
4786  :
4787else
4788  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4789See \`config.log' for more details." >&5
4790echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4791See \`config.log' for more details." >&2;}
4792   { (exit 1); exit 1; }; }
4793fi
4794
4795ac_ext=c
4796ac_cpp='$CPP $CPPFLAGS'
4797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4799ac_compiler_gnu=$ac_cv_c_compiler_gnu
4800
4801
4802echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4803echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4804if test "${ac_cv_header_stdc+set}" = set; then
4805  echo $ECHO_N "(cached) $ECHO_C" >&6
4806else
4807  cat >conftest.$ac_ext <<_ACEOF
4808/* confdefs.h.  */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h.  */
4813#include <stdlib.h>
4814#include <stdarg.h>
4815#include <string.h>
4816#include <float.h>
4817
4818int
4819main ()
4820{
4821
4822  ;
4823  return 0;
4824}
4825_ACEOF
4826rm -f conftest.$ac_objext
4827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4828  (eval $ac_compile) 2>conftest.er1
4829  ac_status=$?
4830  grep -v '^ *+' conftest.er1 >conftest.err
4831  rm -f conftest.er1
4832  cat conftest.err >&5
4833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834  (exit $ac_status); } &&
4835         { ac_try='test -z "$ac_c_werror_flag"
4836                         || test ! -s conftest.err'
4837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838  (eval $ac_try) 2>&5
4839  ac_status=$?
4840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); }; } &&
4842         { ac_try='test -s conftest.$ac_objext'
4843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844  (eval $ac_try) 2>&5
4845  ac_status=$?
4846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847  (exit $ac_status); }; }; then
4848  ac_cv_header_stdc=yes
4849else
4850  echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853ac_cv_header_stdc=no
4854fi
4855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4856
4857if test $ac_cv_header_stdc = yes; then
4858  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4859  cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h.  */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h.  */
4865#include <string.h>
4866
4867_ACEOF
4868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4869  $EGREP "memchr" >/dev/null 2>&1; then
4870  :
4871else
4872  ac_cv_header_stdc=no
4873fi
4874rm -f conftest*
4875
4876fi
4877
4878if test $ac_cv_header_stdc = yes; then
4879  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4880  cat >conftest.$ac_ext <<_ACEOF
4881/* confdefs.h.  */
4882_ACEOF
4883cat confdefs.h >>conftest.$ac_ext
4884cat >>conftest.$ac_ext <<_ACEOF
4885/* end confdefs.h.  */
4886#include <stdlib.h>
4887
4888_ACEOF
4889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4890  $EGREP "free" >/dev/null 2>&1; then
4891  :
4892else
4893  ac_cv_header_stdc=no
4894fi
4895rm -f conftest*
4896
4897fi
4898
4899if test $ac_cv_header_stdc = yes; then
4900  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4901  if test "$cross_compiling" = yes; then
4902  :
4903else
4904  cat >conftest.$ac_ext <<_ACEOF
4905/* confdefs.h.  */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h.  */
4910#include <ctype.h>
4911#if ((' ' & 0x0FF) == 0x020)
4912# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4913# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4914#else
4915# define ISLOWER(c) \
4916                   (('a' <= (c) && (c) <= 'i') \
4917                     || ('j' <= (c) && (c) <= 'r') \
4918                     || ('s' <= (c) && (c) <= 'z'))
4919# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4920#endif
4921
4922#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4923int
4924main ()
4925{
4926  int i;
4927  for (i = 0; i < 256; i++)
4928    if (XOR (islower (i), ISLOWER (i))
4929        || toupper (i) != TOUPPER (i))
4930      exit(2);
4931  exit (0);
4932}
4933_ACEOF
4934rm -f conftest$ac_exeext
4935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4936  (eval $ac_link) 2>&5
4937  ac_status=$?
4938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941  (eval $ac_try) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); }; }; then
4945  :
4946else
4947  echo "$as_me: program exited with status $ac_status" >&5
4948echo "$as_me: failed program was:" >&5
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951( exit $ac_status )
4952ac_cv_header_stdc=no
4953fi
4954rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4955fi
4956fi
4957fi
4958echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4959echo "${ECHO_T}$ac_cv_header_stdc" >&6
4960if test $ac_cv_header_stdc = yes; then
4961
4962cat >>confdefs.h <<\_ACEOF
4963#define STDC_HEADERS 1
4964_ACEOF
4965
4966fi
4967
4968# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4979                  inttypes.h stdint.h unistd.h
4980do
4981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982echo "$as_me:$LINENO: checking for $ac_header" >&5
4983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4984if eval "test \"\${$as_ac_Header+set}\" = set"; then
4985  echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987  cat >conftest.$ac_ext <<_ACEOF
4988/* confdefs.h.  */
4989_ACEOF
4990cat confdefs.h >>conftest.$ac_ext
4991cat >>conftest.$ac_ext <<_ACEOF
4992/* end confdefs.h.  */
4993$ac_includes_default
4994
4995#include <$ac_header>
4996_ACEOF
4997rm -f conftest.$ac_objext
4998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999  (eval $ac_compile) 2>conftest.er1
5000  ac_status=$?
5001  grep -v '^ *+' conftest.er1 >conftest.err
5002  rm -f conftest.er1
5003  cat conftest.err >&5
5004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005  (exit $ac_status); } &&
5006         { ac_try='test -z "$ac_c_werror_flag"
5007                         || test ! -s conftest.err'
5008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009  (eval $ac_try) 2>&5
5010  ac_status=$?
5011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012  (exit $ac_status); }; } &&
5013         { ac_try='test -s conftest.$ac_objext'
5014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5015  (eval $ac_try) 2>&5
5016  ac_status=$?
5017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018  (exit $ac_status); }; }; then
5019  eval "$as_ac_Header=yes"
5020else
5021  echo "$as_me: failed program was:" >&5
5022sed 's/^/| /' conftest.$ac_ext >&5
5023
5024eval "$as_ac_Header=no"
5025fi
5026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5027fi
5028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5030if test `eval echo '${'$as_ac_Header'}'` = yes; then
5031  cat >>confdefs.h <<_ACEOF
5032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5033_ACEOF
5034
5035fi
5036
5037done
5038
5039
5040
5041for ac_header in dlfcn.h
5042do
5043as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5044if eval "test \"\${$as_ac_Header+set}\" = set"; then
5045  echo "$as_me:$LINENO: checking for $ac_header" >&5
5046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5047if eval "test \"\${$as_ac_Header+set}\" = set"; then
5048  echo $ECHO_N "(cached) $ECHO_C" >&6
5049fi
5050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5052else
5053  # Is the header compilable?
5054echo "$as_me:$LINENO: checking $ac_header usability" >&5
5055echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5056cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h.  */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h.  */
5062$ac_includes_default
5063#include <$ac_header>
5064_ACEOF
5065rm -f conftest.$ac_objext
5066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5067  (eval $ac_compile) 2>conftest.er1
5068  ac_status=$?
5069  grep -v '^ *+' conftest.er1 >conftest.err
5070  rm -f conftest.er1
5071  cat conftest.err >&5
5072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073  (exit $ac_status); } &&
5074         { ac_try='test -z "$ac_c_werror_flag"
5075                         || test ! -s conftest.err'
5076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077  (eval $ac_try) 2>&5
5078  ac_status=$?
5079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080  (exit $ac_status); }; } &&
5081         { ac_try='test -s conftest.$ac_objext'
5082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083  (eval $ac_try) 2>&5
5084  ac_status=$?
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); }; }; then
5087  ac_header_compiler=yes
5088else
5089  echo "$as_me: failed program was:" >&5
5090sed 's/^/| /' conftest.$ac_ext >&5
5091
5092ac_header_compiler=no
5093fi
5094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5095echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5096echo "${ECHO_T}$ac_header_compiler" >&6
5097
5098# Is the header present?
5099echo "$as_me:$LINENO: checking $ac_header presence" >&5
5100echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5101cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107#include <$ac_header>
5108_ACEOF
5109if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5110  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5111  ac_status=$?
5112  grep -v '^ *+' conftest.er1 >conftest.err
5113  rm -f conftest.er1
5114  cat conftest.err >&5
5115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116  (exit $ac_status); } >/dev/null; then
5117  if test -s conftest.err; then
5118    ac_cpp_err=$ac_c_preproc_warn_flag
5119    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5120  else
5121    ac_cpp_err=
5122  fi
5123else
5124  ac_cpp_err=yes
5125fi
5126if test -z "$ac_cpp_err"; then
5127  ac_header_preproc=yes
5128else
5129  echo "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
5131
5132  ac_header_preproc=no
5133fi
5134rm -f conftest.err conftest.$ac_ext
5135echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5136echo "${ECHO_T}$ac_header_preproc" >&6
5137
5138# So?  What about this header?
5139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5140  yes:no: )
5141    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5142echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5143    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5144echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5145    ac_header_preproc=yes
5146    ;;
5147  no:yes:* )
5148    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5149echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5150    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5151echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5152    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5153echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5154    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5155echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5156    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5157echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5158    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5159echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5160    (
5161      cat <<\_ASBOX
5162## --------------------------------------------------------------- ##
5163## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5164## --------------------------------------------------------------- ##
5165_ASBOX
5166    ) |
5167      sed "s/^/$as_me: WARNING:     /" >&2
5168    ;;
5169esac
5170echo "$as_me:$LINENO: checking for $ac_header" >&5
5171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5172if eval "test \"\${$as_ac_Header+set}\" = set"; then
5173  echo $ECHO_N "(cached) $ECHO_C" >&6
5174else
5175  eval "$as_ac_Header=\$ac_header_preproc"
5176fi
5177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5179
5180fi
5181if test `eval echo '${'$as_ac_Header'}'` = yes; then
5182  cat >>confdefs.h <<_ACEOF
5183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184_ACEOF
5185
5186fi
5187
5188done
5189
5190ac_ext=cc
5191ac_cpp='$CXXCPP $CPPFLAGS'
5192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5195if test -n "$ac_tool_prefix"; then
5196  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5197  do
5198    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5199set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5200echo "$as_me:$LINENO: checking for $ac_word" >&5
5201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202if test "${ac_cv_prog_CXX+set}" = set; then
5203  echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205  if test -n "$CXX"; then
5206  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211  IFS=$as_save_IFS
5212  test -z "$as_dir" && as_dir=.
5213  for ac_exec_ext in '' $ac_executable_extensions; do
5214  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217    break 2
5218  fi
5219done
5220done
5221
5222fi
5223fi
5224CXX=$ac_cv_prog_CXX
5225if test -n "$CXX"; then
5226  echo "$as_me:$LINENO: result: $CXX" >&5
5227echo "${ECHO_T}$CXX" >&6
5228else
5229  echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231fi
5232
5233    test -n "$CXX" && break
5234  done
5235fi
5236if test -z "$CXX"; then
5237  ac_ct_CXX=$CXX
5238  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5239do
5240  # Extract the first word of "$ac_prog", so it can be a program name with args.
5241set dummy $ac_prog; ac_word=$2
5242echo "$as_me:$LINENO: checking for $ac_word" >&5
5243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5245  echo $ECHO_N "(cached) $ECHO_C" >&6
5246else
5247  if test -n "$ac_ct_CXX"; then
5248  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253  IFS=$as_save_IFS
5254  test -z "$as_dir" && as_dir=.
5255  for ac_exec_ext in '' $ac_executable_extensions; do
5256  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257    ac_cv_prog_ac_ct_CXX="$ac_prog"
5258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259    break 2
5260  fi
5261done
5262done
5263
5264fi
5265fi
5266ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5267if test -n "$ac_ct_CXX"; then
5268  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5269echo "${ECHO_T}$ac_ct_CXX" >&6
5270else
5271  echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273fi
5274
5275  test -n "$ac_ct_CXX" && break
5276done
5277test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5278
5279  CXX=$ac_ct_CXX
5280fi
5281
5282
5283# Provide some information about the compiler.
5284echo "$as_me:$LINENO:" \
5285     "checking for C++ compiler version" >&5
5286ac_compiler=`set X $ac_compile; echo $2`
5287{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5288  (eval $ac_compiler --version </dev/null >&5) 2>&5
5289  ac_status=$?
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); }
5292{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5293  (eval $ac_compiler -v </dev/null >&5) 2>&5
5294  ac_status=$?
5295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296  (exit $ac_status); }
5297{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5298  (eval $ac_compiler -V </dev/null >&5) 2>&5
5299  ac_status=$?
5300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301  (exit $ac_status); }
5302
5303echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5304echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5305if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5306  echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308  cat >conftest.$ac_ext <<_ACEOF
5309/* confdefs.h.  */
5310_ACEOF
5311cat confdefs.h >>conftest.$ac_ext
5312cat >>conftest.$ac_ext <<_ACEOF
5313/* end confdefs.h.  */
5314
5315int
5316main ()
5317{
5318#ifndef __GNUC__
5319       choke me
5320#endif
5321
5322  ;
5323  return 0;
5324}
5325_ACEOF
5326rm -f conftest.$ac_objext
5327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328  (eval $ac_compile) 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } &&
5335         { ac_try='test -z "$ac_cxx_werror_flag"
5336                         || test ! -s conftest.err'
5337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338  (eval $ac_try) 2>&5
5339  ac_status=$?
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); }; } &&
5342         { ac_try='test -s conftest.$ac_objext'
5343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344  (eval $ac_try) 2>&5
5345  ac_status=$?
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); }; }; then
5348  ac_compiler_gnu=yes
5349else
5350  echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353ac_compiler_gnu=no
5354fi
5355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5356ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5357
5358fi
5359echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5360echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5361GXX=`test $ac_compiler_gnu = yes && echo yes`
5362ac_test_CXXFLAGS=${CXXFLAGS+set}
5363ac_save_CXXFLAGS=$CXXFLAGS
5364CXXFLAGS="-g"
5365echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5366echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5367if test "${ac_cv_prog_cxx_g+set}" = set; then
5368  echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370  cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376
5377int
5378main ()
5379{
5380
5381  ;
5382  return 0;
5383}
5384_ACEOF
5385rm -f conftest.$ac_objext
5386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387  (eval $ac_compile) 2>conftest.er1
5388  ac_status=$?
5389  grep -v '^ *+' conftest.er1 >conftest.err
5390  rm -f conftest.er1
5391  cat conftest.err >&5
5392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393  (exit $ac_status); } &&
5394         { ac_try='test -z "$ac_cxx_werror_flag"
5395                         || test ! -s conftest.err'
5396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397  (eval $ac_try) 2>&5
5398  ac_status=$?
5399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400  (exit $ac_status); }; } &&
5401         { ac_try='test -s conftest.$ac_objext'
5402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403  (eval $ac_try) 2>&5
5404  ac_status=$?
5405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406  (exit $ac_status); }; }; then
5407  ac_cv_prog_cxx_g=yes
5408else
5409  echo "$as_me: failed program was:" >&5
5410sed 's/^/| /' conftest.$ac_ext >&5
5411
5412ac_cv_prog_cxx_g=no
5413fi
5414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5415fi
5416echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5417echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5418if test "$ac_test_CXXFLAGS" = set; then
5419  CXXFLAGS=$ac_save_CXXFLAGS
5420elif test $ac_cv_prog_cxx_g = yes; then
5421  if test "$GXX" = yes; then
5422    CXXFLAGS="-g -O2"
5423  else
5424    CXXFLAGS="-g"
5425  fi
5426else
5427  if test "$GXX" = yes; then
5428    CXXFLAGS="-O2"
5429  else
5430    CXXFLAGS=
5431  fi
5432fi
5433for ac_declaration in \
5434   '' \
5435   'extern "C" void std::exit (int) throw (); using std::exit;' \
5436   'extern "C" void std::exit (int); using std::exit;' \
5437   'extern "C" void exit (int) throw ();' \
5438   'extern "C" void exit (int);' \
5439   'void exit (int);'
5440do
5441  cat >conftest.$ac_ext <<_ACEOF
5442/* confdefs.h.  */
5443_ACEOF
5444cat confdefs.h >>conftest.$ac_ext
5445cat >>conftest.$ac_ext <<_ACEOF
5446/* end confdefs.h.  */
5447$ac_declaration
5448#include <stdlib.h>
5449int
5450main ()
5451{
5452exit (42);
5453  ;
5454  return 0;
5455}
5456_ACEOF
5457rm -f conftest.$ac_objext
5458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5459  (eval $ac_compile) 2>conftest.er1
5460  ac_status=$?
5461  grep -v '^ *+' conftest.er1 >conftest.err
5462  rm -f conftest.er1
5463  cat conftest.err >&5
5464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465  (exit $ac_status); } &&
5466         { ac_try='test -z "$ac_cxx_werror_flag"
5467                         || test ! -s conftest.err'
5468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469  (eval $ac_try) 2>&5
5470  ac_status=$?
5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472  (exit $ac_status); }; } &&
5473         { ac_try='test -s conftest.$ac_objext'
5474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475  (eval $ac_try) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }; }; then
5479  :
5480else
5481  echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484continue
5485fi
5486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5487  cat >conftest.$ac_ext <<_ACEOF
5488/* confdefs.h.  */
5489_ACEOF
5490cat confdefs.h >>conftest.$ac_ext
5491cat >>conftest.$ac_ext <<_ACEOF
5492/* end confdefs.h.  */
5493$ac_declaration
5494int
5495main ()
5496{
5497exit (42);
5498  ;
5499  return 0;
5500}
5501_ACEOF
5502rm -f conftest.$ac_objext
5503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5504  (eval $ac_compile) 2>conftest.er1
5505  ac_status=$?
5506  grep -v '^ *+' conftest.er1 >conftest.err
5507  rm -f conftest.er1
5508  cat conftest.err >&5
5509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510  (exit $ac_status); } &&
5511         { ac_try='test -z "$ac_cxx_werror_flag"
5512                         || test ! -s conftest.err'
5513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5514  (eval $ac_try) 2>&5
5515  ac_status=$?
5516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517  (exit $ac_status); }; } &&
5518         { ac_try='test -s conftest.$ac_objext'
5519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5520  (eval $ac_try) 2>&5
5521  ac_status=$?
5522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523  (exit $ac_status); }; }; then
5524  break
5525else
5526  echo "$as_me: failed program was:" >&5
5527sed 's/^/| /' conftest.$ac_ext >&5
5528
5529fi
5530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531done
5532rm -f conftest*
5533if test -n "$ac_declaration"; then
5534  echo '#ifdef __cplusplus' >>confdefs.h
5535  echo $ac_declaration      >>confdefs.h
5536  echo '#endif'             >>confdefs.h
5537fi
5538
5539ac_ext=cc
5540ac_cpp='$CXXCPP $CPPFLAGS'
5541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5544
5545depcc="$CXX"  am_compiler_list=
5546
5547echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5548echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5549if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5550  echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5553  # We make a subdir and do the tests there.  Otherwise we can end up
5554  # making bogus files that we don't know about and never remove.  For
5555  # instance it was reported that on HP-UX the gcc test will end up
5556  # making a dummy file named `D' -- because `-MD' means `put the output
5557  # in D'.
5558  mkdir conftest.dir
5559  # Copy depcomp to subdir because otherwise we won't find it if we're
5560  # using a relative directory.
5561  cp "$am_depcomp" conftest.dir
5562  cd conftest.dir
5563  # We will build objects and dependencies in a subdirectory because
5564  # it helps to detect inapplicable dependency modes.  For instance
5565  # both Tru64's cc and ICC support -MD to output dependencies as a
5566  # side effect of compilation, but ICC will put the dependencies in
5567  # the current directory while Tru64 will put them in the object
5568  # directory.
5569  mkdir sub
5570
5571  am_cv_CXX_dependencies_compiler_type=none
5572  if test "$am_compiler_list" = ""; then
5573     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5574  fi
5575  for depmode in $am_compiler_list; do
5576    # Setup a source with many dependencies, because some compilers
5577    # like to wrap large dependency lists on column 80 (with \), and
5578    # we should not choose a depcomp mode which is confused by this.
5579    #
5580    # We need to recreate these files for each test, as the compiler may
5581    # overwrite some of them when testing with obscure command lines.
5582    # This happens at least with the AIX C compiler.
5583    : > sub/conftest.c
5584    for i in 1 2 3 4 5 6; do
5585      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5586      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5587      # Solaris 8's {/usr,}/bin/sh.
5588      touch sub/conftst$i.h
5589    done
5590    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5591
5592    case $depmode in
5593    nosideeffect)
5594      # after this tag, mechanisms are not by side-effect, so they'll
5595      # only be used when explicitly requested
5596      if test "x$enable_dependency_tracking" = xyes; then
5597        continue
5598      else
5599        break
5600      fi
5601      ;;
5602    none) break ;;
5603    esac
5604    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5605    # mode.  It turns out that the SunPro C++ compiler does not properly
5606    # handle `-M -o', and we need to detect this.
5607    if depmode=$depmode \
5608       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5609       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5610       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5611         >/dev/null 2>conftest.err &&
5612       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5613       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5614       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5615      # icc doesn't choke on unknown options, it will just issue warnings
5616      # or remarks (even with -Werror).  So we grep stderr for any message
5617      # that says an option was ignored or not supported.
5618      # When given -MP, icc 7.0 and 7.1 complain thusly:
5619      #   icc: Command line warning: ignoring option '-M'; no argument required
5620      # The diagnosis changed in icc 8.0:
5621      #   icc: Command line remark: option '-MP' not supported
5622      if (grep 'ignoring option' conftest.err ||
5623          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5624        am_cv_CXX_dependencies_compiler_type=$depmode
5625        break
5626      fi
5627    fi
5628  done
5629
5630  cd ..
5631  rm -rf conftest.dir
5632else
5633  am_cv_CXX_dependencies_compiler_type=none
5634fi
5635
5636fi
5637echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5638echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5639CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5640
5641
5642
5643if
5644  test "x$enable_dependency_tracking" != xno \
5645  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5646  am__fastdepCXX_TRUE=
5647  am__fastdepCXX_FALSE='#'
5648else
5649  am__fastdepCXX_TRUE='#'
5650  am__fastdepCXX_FALSE=
5651fi
5652
5653
5654
5655
5656if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5657    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5658    (test "X$CXX" != "Xg++"))) ; then
5659  ac_ext=cc
5660ac_cpp='$CXXCPP $CPPFLAGS'
5661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5664echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5665echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5666if test -z "$CXXCPP"; then
5667  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5668  echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670      # Double quotes because CXXCPP needs to be expanded
5671    for CXXCPP in "$CXX -E" "/lib/cpp"
5672    do
5673      ac_preproc_ok=false
5674for ac_cxx_preproc_warn_flag in '' yes
5675do
5676  # Use a header file that comes with gcc, so configuring glibc
5677  # with a fresh cross-compiler works.
5678  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5679  # <limits.h> exists even on freestanding compilers.
5680  # On the NeXT, cc -E runs the code through the compiler's parser,
5681  # not just through cpp. "Syntax error" is here to catch this case.
5682  cat >conftest.$ac_ext <<_ACEOF
5683/* confdefs.h.  */
5684_ACEOF
5685cat confdefs.h >>conftest.$ac_ext
5686cat >>conftest.$ac_ext <<_ACEOF
5687/* end confdefs.h.  */
5688#ifdef __STDC__
5689# include <limits.h>
5690#else
5691# include <assert.h>
5692#endif
5693                     Syntax error
5694_ACEOF
5695if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5696  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5697  ac_status=$?
5698  grep -v '^ *+' conftest.er1 >conftest.err
5699  rm -f conftest.er1
5700  cat conftest.err >&5
5701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702  (exit $ac_status); } >/dev/null; then
5703  if test -s conftest.err; then
5704    ac_cpp_err=$ac_cxx_preproc_warn_flag
5705    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5706  else
5707    ac_cpp_err=
5708  fi
5709else
5710  ac_cpp_err=yes
5711fi
5712if test -z "$ac_cpp_err"; then
5713  :
5714else
5715  echo "$as_me: failed program was:" >&5
5716sed 's/^/| /' conftest.$ac_ext >&5
5717
5718  # Broken: fails on valid input.
5719continue
5720fi
5721rm -f conftest.err conftest.$ac_ext
5722
5723  # OK, works on sane cases.  Now check whether non-existent headers
5724  # can be detected and how.
5725  cat >conftest.$ac_ext <<_ACEOF
5726/* confdefs.h.  */
5727_ACEOF
5728cat confdefs.h >>conftest.$ac_ext
5729cat >>conftest.$ac_ext <<_ACEOF
5730/* end confdefs.h.  */
5731#include <ac_nonexistent.h>
5732_ACEOF
5733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5734  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5735  ac_status=$?
5736  grep -v '^ *+' conftest.er1 >conftest.err
5737  rm -f conftest.er1
5738  cat conftest.err >&5
5739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740  (exit $ac_status); } >/dev/null; then
5741  if test -s conftest.err; then
5742    ac_cpp_err=$ac_cxx_preproc_warn_flag
5743    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5744  else
5745    ac_cpp_err=
5746  fi
5747else
5748  ac_cpp_err=yes
5749fi
5750if test -z "$ac_cpp_err"; then
5751  # Broken: success on invalid input.
5752continue
5753else
5754  echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757  # Passes both tests.
5758ac_preproc_ok=:
5759break
5760fi
5761rm -f conftest.err conftest.$ac_ext
5762
5763done
5764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5765rm -f conftest.err conftest.$ac_ext
5766if $ac_preproc_ok; then
5767  break
5768fi
5769
5770    done
5771    ac_cv_prog_CXXCPP=$CXXCPP
5772
5773fi
5774  CXXCPP=$ac_cv_prog_CXXCPP
5775else
5776  ac_cv_prog_CXXCPP=$CXXCPP
5777fi
5778echo "$as_me:$LINENO: result: $CXXCPP" >&5
5779echo "${ECHO_T}$CXXCPP" >&6
5780ac_preproc_ok=false
5781for ac_cxx_preproc_warn_flag in '' yes
5782do
5783  # Use a header file that comes with gcc, so configuring glibc
5784  # with a fresh cross-compiler works.
5785  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5786  # <limits.h> exists even on freestanding compilers.
5787  # On the NeXT, cc -E runs the code through the compiler's parser,
5788  # not just through cpp. "Syntax error" is here to catch this case.
5789  cat >conftest.$ac_ext <<_ACEOF
5790/* confdefs.h.  */
5791_ACEOF
5792cat confdefs.h >>conftest.$ac_ext
5793cat >>conftest.$ac_ext <<_ACEOF
5794/* end confdefs.h.  */
5795#ifdef __STDC__
5796# include <limits.h>
5797#else
5798# include <assert.h>
5799#endif
5800                     Syntax error
5801_ACEOF
5802if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5803  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5804  ac_status=$?
5805  grep -v '^ *+' conftest.er1 >conftest.err
5806  rm -f conftest.er1
5807  cat conftest.err >&5
5808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809  (exit $ac_status); } >/dev/null; then
5810  if test -s conftest.err; then
5811    ac_cpp_err=$ac_cxx_preproc_warn_flag
5812    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5813  else
5814    ac_cpp_err=
5815  fi
5816else
5817  ac_cpp_err=yes
5818fi
5819if test -z "$ac_cpp_err"; then
5820  :
5821else
5822  echo "$as_me: failed program was:" >&5
5823sed 's/^/| /' conftest.$ac_ext >&5
5824
5825  # Broken: fails on valid input.
5826continue
5827fi
5828rm -f conftest.err conftest.$ac_ext
5829
5830  # OK, works on sane cases.  Now check whether non-existent headers
5831  # can be detected and how.
5832  cat >conftest.$ac_ext <<_ACEOF
5833/* confdefs.h.  */
5834_ACEOF
5835cat confdefs.h >>conftest.$ac_ext
5836cat >>conftest.$ac_ext <<_ACEOF
5837/* end confdefs.h.  */
5838#include <ac_nonexistent.h>
5839_ACEOF
5840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5841  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5842  ac_status=$?
5843  grep -v '^ *+' conftest.er1 >conftest.err
5844  rm -f conftest.er1
5845  cat conftest.err >&5
5846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847  (exit $ac_status); } >/dev/null; then
5848  if test -s conftest.err; then
5849    ac_cpp_err=$ac_cxx_preproc_warn_flag
5850    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5851  else
5852    ac_cpp_err=
5853  fi
5854else
5855  ac_cpp_err=yes
5856fi
5857if test -z "$ac_cpp_err"; then
5858  # Broken: success on invalid input.
5859continue
5860else
5861  echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
5864  # Passes both tests.
5865ac_preproc_ok=:
5866break
5867fi
5868rm -f conftest.err conftest.$ac_ext
5869
5870done
5871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5872rm -f conftest.err conftest.$ac_ext
5873if $ac_preproc_ok; then
5874  :
5875else
5876  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5877See \`config.log' for more details." >&5
5878echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5879See \`config.log' for more details." >&2;}
5880   { (exit 1); exit 1; }; }
5881fi
5882
5883ac_ext=cc
5884ac_cpp='$CXXCPP $CPPFLAGS'
5885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5888
5889fi
5890
5891
5892
5893# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5894
5895# find the maximum length of command line arguments
5896echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5897echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5898if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5899  echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901    i=0
5902  teststring="ABCD"
5903
5904  case $build_os in
5905  msdosdjgpp*)
5906    # On DJGPP, this test can blow up pretty badly due to problems in libc
5907    # (any single argument exceeding 2000 bytes causes a buffer overrun
5908    # during glob expansion).  Even if it were fixed, the result of this
5909    # check would be larger than it should be.
5910    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5911    ;;
5912
5913  gnu*)
5914    # Under GNU Hurd, this test is not required because there is
5915    # no limit to the length of command line arguments.
5916    # Libtool will interpret -1 as no limit whatsoever
5917    lt_cv_sys_max_cmd_len=-1;
5918    ;;
5919
5920  cygwin* | mingw*)
5921    # On Win9x/ME, this test blows up -- it succeeds, but takes
5922    # about 5 minutes as the teststring grows exponentially.
5923    # Worse, since 9x/ME are not pre-emptively multitasking,
5924    # you end up with a "frozen" computer, even though with patience
5925    # the test eventually succeeds (with a max line length of 256k).
5926    # Instead, let's just punt: use the minimum linelength reported by
5927    # all of the supported platforms: 8192 (on NT/2K/XP).
5928    lt_cv_sys_max_cmd_len=8192;
5929    ;;
5930
5931  amigaos*)
5932    # On AmigaOS with pdksh, this test takes hours, literally.
5933    # So we just punt and use a minimum line length of 8192.
5934    lt_cv_sys_max_cmd_len=8192;
5935    ;;
5936
5937  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5938    # This has been around since 386BSD, at least.  Likely further.
5939    if test -x /sbin/sysctl; then
5940      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5941    elif test -x /usr/sbin/sysctl; then
5942      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5943    else
5944      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5945    fi
5946    # And add a safety zone
5947    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5948    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5949    ;;
5950
5951  interix*)
5952    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5953    lt_cv_sys_max_cmd_len=196608
5954    ;;
5955
5956  osf*)
5957    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5958    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5959    # nice to cause kernel panics so lets avoid the loop below.
5960    # First set a reasonable default.
5961    lt_cv_sys_max_cmd_len=16384
5962    #
5963    if test -x /sbin/sysconfig; then
5964      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5965        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5966      esac
5967    fi
5968    ;;
5969  sco3.2v5*)
5970    lt_cv_sys_max_cmd_len=102400
5971    ;;
5972  sysv5* | sco5v6* | sysv4.2uw2*)
5973    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5974    if test -n "$kargmax"; then
5975      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5976    else
5977      lt_cv_sys_max_cmd_len=32768
5978    fi
5979    ;;
5980  *)
5981    # If test is not a shell built-in, we'll probably end up computing a
5982    # maximum length that is only half of the actual maximum length, but
5983    # we can't tell.
5984    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5985    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5986               = "XX$teststring") >/dev/null 2>&1 &&
5987            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5988            lt_cv_sys_max_cmd_len=$new_result &&
5989            test $i != 17 # 1/2 MB should be enough
5990    do
5991      i=`expr $i + 1`
5992      teststring=$teststring$teststring
5993    done
5994    teststring=
5995    # Add a significant safety factor because C++ compilers can tack on massive
5996    # amounts of additional arguments before passing them to the linker.
5997    # It appears as though 1/2 is a usable value.
5998    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5999    ;;
6000  esac
6001
6002fi
6003
6004if test -n $lt_cv_sys_max_cmd_len ; then
6005  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6006echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6007else
6008  echo "$as_me:$LINENO: result: none" >&5
6009echo "${ECHO_T}none" >&6
6010fi
6011
6012
6013
6014
6015# Check for command to grab the raw symbol name followed by C symbol from nm.
6016echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6017echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6018if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6019  echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021
6022# These are sane defaults that work on at least a few old systems.
6023# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6024
6025# Character class describing NM global symbol codes.
6026symcode='[BCDEGRST]'
6027
6028# Regexp to match symbols that can be accessed directly from C.
6029sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6030
6031# Transform an extracted symbol line into a proper C declaration
6032lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6033
6034# Transform an extracted symbol line into symbol name and symbol address
6035lt_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'"
6036
6037# Define system-specific variables.
6038case $host_os in
6039aix*)
6040  symcode='[BCDT]'
6041  ;;
6042cygwin* | mingw* | pw32*)
6043  symcode='[ABCDGISTW]'
6044  ;;
6045hpux*) # Its linker distinguishes data from code symbols
6046  if test "$host_cpu" = ia64; then
6047    symcode='[ABCDEGRST]'
6048  fi
6049  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6050  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'"
6051  ;;
6052linux*)
6053  if test "$host_cpu" = ia64; then
6054    symcode='[ABCDGIRSTW]'
6055    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6056    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'"
6057  fi
6058  ;;
6059irix* | nonstopux*)
6060  symcode='[BCDEGRST]'
6061  ;;
6062osf*)
6063  symcode='[BCDEGQRST]'
6064  ;;
6065solaris*)
6066  symcode='[BDRT]'
6067  ;;
6068sco3.2v5*)
6069  symcode='[DT]'
6070  ;;
6071sysv4.2uw2*)
6072  symcode='[DT]'
6073  ;;
6074sysv5* | sco5v6* | unixware* | OpenUNIX*)
6075  symcode='[ABDT]'
6076  ;;
6077sysv4)
6078  symcode='[DFNSTU]'
6079  ;;
6080esac
6081
6082# Handle CRLF in mingw tool chain
6083opt_cr=
6084case $build_os in
6085mingw*)
6086  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6087  ;;
6088esac
6089
6090# If we're using GNU nm, then use its standard symbol codes.
6091case `$NM -V 2>&1` in
6092*GNU* | *'with BFD'*)
6093  symcode='[ABCDGIRSTW]' ;;
6094esac
6095
6096# Try without a prefix undercore, then with it.
6097for ac_symprfx in "" "_"; do
6098
6099  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6100  symxfrm="\\1 $ac_symprfx\\2 \\2"
6101
6102  # Write the raw and C identifiers.
6103  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6104
6105  # Check to see that the pipe works correctly.
6106  pipe_works=no
6107
6108  rm -f conftest*
6109  cat > conftest.$ac_ext <<EOF
6110#ifdef __cplusplus
6111extern "C" {
6112#endif
6113char nm_test_var;
6114void nm_test_func(){}
6115#ifdef __cplusplus
6116}
6117#endif
6118int main(){nm_test_var='a';nm_test_func();return(0);}
6119EOF
6120
6121  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122  (eval $ac_compile) 2>&5
6123  ac_status=$?
6124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125  (exit $ac_status); }; then
6126    # Now try to grab the symbols.
6127    nlist=conftest.nm
6128    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6129  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6130  ac_status=$?
6131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132  (exit $ac_status); } && test -s "$nlist"; then
6133      # Try sorting and uniquifying the output.
6134      if sort "$nlist" | uniq > "$nlist"T; then
6135        mv -f "$nlist"T "$nlist"
6136      else
6137        rm -f "$nlist"T
6138      fi
6139
6140      # Make sure that we snagged all the symbols we need.
6141      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6142        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6143          cat <<EOF > conftest.$ac_ext
6144#ifdef __cplusplus
6145extern "C" {
6146#endif
6147
6148EOF
6149          # Now generate the symbol file.
6150          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6151
6152          cat <<EOF >> conftest.$ac_ext
6153#if defined (__STDC__) && __STDC__
6154# define lt_ptr_t void *
6155#else
6156# define lt_ptr_t char *
6157# define const
6158#endif
6159
6160/* The mapping between symbol names and symbols. */
6161const struct {
6162  const char *name;
6163  lt_ptr_t address;
6164}
6165lt_preloaded_symbols[] =
6166{
6167EOF
6168          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6169          cat <<\EOF >> conftest.$ac_ext
6170  {0, (lt_ptr_t) 0}
6171};
6172
6173#ifdef __cplusplus
6174}
6175#endif
6176EOF
6177          # Now try linking the two files.
6178          mv conftest.$ac_objext conftstm.$ac_objext
6179          lt_save_LIBS="$LIBS"
6180          lt_save_CFLAGS="$CFLAGS"
6181          LIBS="conftstm.$ac_objext"
6182          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6183          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184  (eval $ac_link) 2>&5
6185  ac_status=$?
6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6188            pipe_works=yes
6189          fi
6190          LIBS="$lt_save_LIBS"
6191          CFLAGS="$lt_save_CFLAGS"
6192        else
6193          echo "cannot find nm_test_func in $nlist" >&5
6194        fi
6195      else
6196        echo "cannot find nm_test_var in $nlist" >&5
6197      fi
6198    else
6199      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6200    fi
6201  else
6202    echo "$progname: failed program was:" >&5
6203    cat conftest.$ac_ext >&5
6204  fi
6205  rm -f conftest* conftst*
6206
6207  # Do not use the global_symbol_pipe unless it works.
6208  if test "$pipe_works" = yes; then
6209    break
6210  else
6211    lt_cv_sys_global_symbol_pipe=
6212  fi
6213done
6214
6215fi
6216
6217if test -z "$lt_cv_sys_global_symbol_pipe"; then
6218  lt_cv_sys_global_symbol_to_cdecl=
6219fi
6220if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6221  echo "$as_me:$LINENO: result: failed" >&5
6222echo "${ECHO_T}failed" >&6
6223else
6224  echo "$as_me:$LINENO: result: ok" >&5
6225echo "${ECHO_T}ok" >&6
6226fi
6227
6228echo "$as_me:$LINENO: checking for objdir" >&5
6229echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6230if test "${lt_cv_objdir+set}" = set; then
6231  echo $ECHO_N "(cached) $ECHO_C" >&6
6232else
6233  rm -f .libs 2>/dev/null
6234mkdir .libs 2>/dev/null
6235if test -d .libs; then
6236  lt_cv_objdir=.libs
6237else
6238  # MS-DOS does not allow filenames that begin with a dot.
6239  lt_cv_objdir=_libs
6240fi
6241rmdir .libs 2>/dev/null
6242fi
6243echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6244echo "${ECHO_T}$lt_cv_objdir" >&6
6245objdir=$lt_cv_objdir
6246
6247
6248
6249
6250
6251case $host_os in
6252aix3*)
6253  # AIX sometimes has problems with the GCC collect2 program.  For some
6254  # reason, if we set the COLLECT_NAMES environment variable, the problems
6255  # vanish in a puff of smoke.
6256  if test "X${COLLECT_NAMES+set}" != Xset; then
6257    COLLECT_NAMES=
6258    export COLLECT_NAMES
6259  fi
6260  ;;
6261esac
6262
6263# Sed substitution that helps us do robust quoting.  It backslashifies
6264# metacharacters that are still active within double-quoted strings.
6265Xsed='sed -e 1s/^X//'
6266sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6267
6268# Same as above, but do not quote variable references.
6269double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6270
6271# Sed substitution to delay expansion of an escaped shell variable in a
6272# double_quote_subst'ed string.
6273delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6274
6275# Sed substitution to avoid accidental globbing in evaled expressions
6276no_glob_subst='s/\*/\\\*/g'
6277
6278# Constants:
6279rm="rm -f"
6280
6281# Global variables:
6282default_ofile=libtool
6283can_build_shared=yes
6284
6285# All known linkers require a `.a' archive for static linking (except MSVC,
6286# which needs '.lib').
6287libext=a
6288ltmain="$ac_aux_dir/ltmain.sh"
6289ofile="$default_ofile"
6290with_gnu_ld="$lt_cv_prog_gnu_ld"
6291
6292if test -n "$ac_tool_prefix"; then
6293  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6294set dummy ${ac_tool_prefix}ar; ac_word=$2
6295echo "$as_me:$LINENO: checking for $ac_word" >&5
6296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6297if test "${ac_cv_prog_AR+set}" = set; then
6298  echo $ECHO_N "(cached) $ECHO_C" >&6
6299else
6300  if test -n "$AR"; then
6301  ac_cv_prog_AR="$AR" # Let the user override the test.
6302else
6303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304for as_dir in $PATH
6305do
6306  IFS=$as_save_IFS
6307  test -z "$as_dir" && as_dir=.
6308  for ac_exec_ext in '' $ac_executable_extensions; do
6309  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310    ac_cv_prog_AR="${ac_tool_prefix}ar"
6311    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6312    break 2
6313  fi
6314done
6315done
6316
6317fi
6318fi
6319AR=$ac_cv_prog_AR
6320if test -n "$AR"; then
6321  echo "$as_me:$LINENO: result: $AR" >&5
6322echo "${ECHO_T}$AR" >&6
6323else
6324  echo "$as_me:$LINENO: result: no" >&5
6325echo "${ECHO_T}no" >&6
6326fi
6327
6328fi
6329if test -z "$ac_cv_prog_AR"; then
6330  ac_ct_AR=$AR
6331  # Extract the first word of "ar", so it can be a program name with args.
6332set dummy ar; ac_word=$2
6333echo "$as_me:$LINENO: checking for $ac_word" >&5
6334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6335if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6336  echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338  if test -n "$ac_ct_AR"; then
6339  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6340else
6341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342for as_dir in $PATH
6343do
6344  IFS=$as_save_IFS
6345  test -z "$as_dir" && as_dir=.
6346  for ac_exec_ext in '' $ac_executable_extensions; do
6347  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6348    ac_cv_prog_ac_ct_AR="ar"
6349    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6350    break 2
6351  fi
6352done
6353done
6354
6355  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6356fi
6357fi
6358ac_ct_AR=$ac_cv_prog_ac_ct_AR
6359if test -n "$ac_ct_AR"; then
6360  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6361echo "${ECHO_T}$ac_ct_AR" >&6
6362else
6363  echo "$as_me:$LINENO: result: no" >&5
6364echo "${ECHO_T}no" >&6
6365fi
6366
6367  AR=$ac_ct_AR
6368else
6369  AR="$ac_cv_prog_AR"
6370fi
6371
6372if test -n "$ac_tool_prefix"; then
6373  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6375echo "$as_me:$LINENO: checking for $ac_word" >&5
6376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6377if test "${ac_cv_prog_RANLIB+set}" = set; then
6378  echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380  if test -n "$RANLIB"; then
6381  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6382else
6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386  IFS=$as_save_IFS
6387  test -z "$as_dir" && as_dir=.
6388  for ac_exec_ext in '' $ac_executable_extensions; do
6389  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6390    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6392    break 2
6393  fi
6394done
6395done
6396
6397fi
6398fi
6399RANLIB=$ac_cv_prog_RANLIB
6400if test -n "$RANLIB"; then
6401  echo "$as_me:$LINENO: result: $RANLIB" >&5
6402echo "${ECHO_T}$RANLIB" >&6
6403else
6404  echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6
6406fi
6407
6408fi
6409if test -z "$ac_cv_prog_RANLIB"; then
6410  ac_ct_RANLIB=$RANLIB
6411  # Extract the first word of "ranlib", so it can be a program name with args.
6412set dummy ranlib; ac_word=$2
6413echo "$as_me:$LINENO: checking for $ac_word" >&5
6414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6415if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6416  echo $ECHO_N "(cached) $ECHO_C" >&6
6417else
6418  if test -n "$ac_ct_RANLIB"; then
6419  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6420else
6421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422for as_dir in $PATH
6423do
6424  IFS=$as_save_IFS
6425  test -z "$as_dir" && as_dir=.
6426  for ac_exec_ext in '' $ac_executable_extensions; do
6427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428    ac_cv_prog_ac_ct_RANLIB="ranlib"
6429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430    break 2
6431  fi
6432done
6433done
6434
6435  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6436fi
6437fi
6438ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6439if test -n "$ac_ct_RANLIB"; then
6440  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6441echo "${ECHO_T}$ac_ct_RANLIB" >&6
6442else
6443  echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445fi
6446
6447  RANLIB=$ac_ct_RANLIB
6448else
6449  RANLIB="$ac_cv_prog_RANLIB"
6450fi
6451
6452if test -n "$ac_tool_prefix"; then
6453  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6454set dummy ${ac_tool_prefix}strip; ac_word=$2
6455echo "$as_me:$LINENO: checking for $ac_word" >&5
6456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6457if test "${ac_cv_prog_STRIP+set}" = set; then
6458  echo $ECHO_N "(cached) $ECHO_C" >&6
6459else
6460  if test -n "$STRIP"; then
6461  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6462else
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH
6465do
6466  IFS=$as_save_IFS
6467  test -z "$as_dir" && as_dir=.
6468  for ac_exec_ext in '' $ac_executable_extensions; do
6469  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472    break 2
6473  fi
6474done
6475done
6476
6477fi
6478fi
6479STRIP=$ac_cv_prog_STRIP
6480if test -n "$STRIP"; then
6481  echo "$as_me:$LINENO: result: $STRIP" >&5
6482echo "${ECHO_T}$STRIP" >&6
6483else
6484  echo "$as_me:$LINENO: result: no" >&5
6485echo "${ECHO_T}no" >&6
6486fi
6487
6488fi
6489if test -z "$ac_cv_prog_STRIP"; then
6490  ac_ct_STRIP=$STRIP
6491  # Extract the first word of "strip", so it can be a program name with args.
6492set dummy strip; ac_word=$2
6493echo "$as_me:$LINENO: checking for $ac_word" >&5
6494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6495if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498  if test -n "$ac_ct_STRIP"; then
6499  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6500else
6501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502for as_dir in $PATH
6503do
6504  IFS=$as_save_IFS
6505  test -z "$as_dir" && as_dir=.
6506  for ac_exec_ext in '' $ac_executable_extensions; do
6507  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508    ac_cv_prog_ac_ct_STRIP="strip"
6509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6510    break 2
6511  fi
6512done
6513done
6514
6515  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6516fi
6517fi
6518ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6519if test -n "$ac_ct_STRIP"; then
6520  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6521echo "${ECHO_T}$ac_ct_STRIP" >&6
6522else
6523  echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
6525fi
6526
6527  STRIP=$ac_ct_STRIP
6528else
6529  STRIP="$ac_cv_prog_STRIP"
6530fi
6531
6532
6533old_CC="$CC"
6534old_CFLAGS="$CFLAGS"
6535
6536# Set sane defaults for various variables
6537test -z "$AR" && AR=ar
6538test -z "$AR_FLAGS" && AR_FLAGS=cru
6539test -z "$AS" && AS=as
6540test -z "$CC" && CC=cc
6541test -z "$LTCC" && LTCC=$CC
6542test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6543test -z "$DLLTOOL" && DLLTOOL=dlltool
6544test -z "$LD" && LD=ld
6545test -z "$LN_S" && LN_S="ln -s"
6546test -z "$MAGIC_CMD" && MAGIC_CMD=file
6547test -z "$NM" && NM=nm
6548test -z "$SED" && SED=sed
6549test -z "$OBJDUMP" && OBJDUMP=objdump
6550test -z "$RANLIB" && RANLIB=:
6551test -z "$STRIP" && STRIP=:
6552test -z "$ac_objext" && ac_objext=o
6553
6554# Determine commands to create old-style static archives.
6555old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6556old_postinstall_cmds='chmod 644 $oldlib'
6557old_postuninstall_cmds=
6558
6559if test -n "$RANLIB"; then
6560  case $host_os in
6561  openbsd*)
6562    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6563    ;;
6564  *)
6565    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6566    ;;
6567  esac
6568  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6569fi
6570
6571for cc_temp in $compiler""; do
6572  case $cc_temp in
6573    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6574    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6575    \-*) ;;
6576    *) break;;
6577  esac
6578done
6579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6580
6581
6582# Only perform the check for file, if the check method requires it
6583case $deplibs_check_method in
6584file_magic*)
6585  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6586    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6587echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6588if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6589  echo $ECHO_N "(cached) $ECHO_C" >&6
6590else
6591  case $MAGIC_CMD in
6592[\\/*] |  ?:[\\/]*)
6593  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6594  ;;
6595*)
6596  lt_save_MAGIC_CMD="$MAGIC_CMD"
6597  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6598  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6599  for ac_dir in $ac_dummy; do
6600    IFS="$lt_save_ifs"
6601    test -z "$ac_dir" && ac_dir=.
6602    if test -f $ac_dir/${ac_tool_prefix}file; then
6603      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6604      if test -n "$file_magic_test_file"; then
6605        case $deplibs_check_method in
6606        "file_magic "*)
6607          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6608          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6609          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6610            $EGREP "$file_magic_regex" > /dev/null; then
6611            :
6612          else
6613            cat <<EOF 1>&2
6614
6615*** Warning: the command libtool uses to detect shared libraries,
6616*** $file_magic_cmd, produces output that libtool cannot recognize.
6617*** The result is that libtool may fail to recognize shared libraries
6618*** as such.  This will affect the creation of libtool libraries that
6619*** depend on shared libraries, but programs linked with such libtool
6620*** libraries will work regardless of this problem.  Nevertheless, you
6621*** may want to report the problem to your system manager and/or to
6622*** bug-libtool@gnu.org
6623
6624EOF
6625          fi ;;
6626        esac
6627      fi
6628      break
6629    fi
6630  done
6631  IFS="$lt_save_ifs"
6632  MAGIC_CMD="$lt_save_MAGIC_CMD"
6633  ;;
6634esac
6635fi
6636
6637MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6638if test -n "$MAGIC_CMD"; then
6639  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6640echo "${ECHO_T}$MAGIC_CMD" >&6
6641else
6642  echo "$as_me:$LINENO: result: no" >&5
6643echo "${ECHO_T}no" >&6
6644fi
6645
6646if test -z "$lt_cv_path_MAGIC_CMD"; then
6647  if test -n "$ac_tool_prefix"; then
6648    echo "$as_me:$LINENO: checking for file" >&5
6649echo $ECHO_N "checking for file... $ECHO_C" >&6
6650if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6651  echo $ECHO_N "(cached) $ECHO_C" >&6
6652else
6653  case $MAGIC_CMD in
6654[\\/*] |  ?:[\\/]*)
6655  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6656  ;;
6657*)
6658  lt_save_MAGIC_CMD="$MAGIC_CMD"
6659  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6660  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6661  for ac_dir in $ac_dummy; do
6662    IFS="$lt_save_ifs"
6663    test -z "$ac_dir" && ac_dir=.
6664    if test -f $ac_dir/file; then
6665      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6666      if test -n "$file_magic_test_file"; then
6667        case $deplibs_check_method in
6668        "file_magic "*)
6669          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6670          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6671          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6672            $EGREP "$file_magic_regex" > /dev/null; then
6673            :
6674          else
6675            cat <<EOF 1>&2
6676
6677*** Warning: the command libtool uses to detect shared libraries,
6678*** $file_magic_cmd, produces output that libtool cannot recognize.
6679*** The result is that libtool may fail to recognize shared libraries
6680*** as such.  This will affect the creation of libtool libraries that
6681*** depend on shared libraries, but programs linked with such libtool
6682*** libraries will work regardless of this problem.  Nevertheless, you
6683*** may want to report the problem to your system manager and/or to
6684*** bug-libtool@gnu.org
6685
6686EOF
6687          fi ;;
6688        esac
6689      fi
6690      break
6691    fi
6692  done
6693  IFS="$lt_save_ifs"
6694  MAGIC_CMD="$lt_save_MAGIC_CMD"
6695  ;;
6696esac
6697fi
6698
6699MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6700if test -n "$MAGIC_CMD"; then
6701  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6702echo "${ECHO_T}$MAGIC_CMD" >&6
6703else
6704  echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6
6706fi
6707
6708  else
6709    MAGIC_CMD=:
6710  fi
6711fi
6712
6713  fi
6714  ;;
6715esac
6716
6717enable_dlopen=no
6718enable_win32_dll=no
6719
6720# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6721if test "${enable_libtool_lock+set}" = set; then
6722  enableval="$enable_libtool_lock"
6723
6724fi;
6725test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6726
6727
6728# Check whether --with-pic or --without-pic was given.
6729if test "${with_pic+set}" = set; then
6730  withval="$with_pic"
6731  pic_mode="$withval"
6732else
6733  pic_mode=default
6734fi;
6735test -z "$pic_mode" && pic_mode=default
6736
6737# Use C for the default configuration in the libtool script
6738tagname=
6739lt_save_CC="$CC"
6740ac_ext=c
6741ac_cpp='$CPP $CPPFLAGS'
6742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744ac_compiler_gnu=$ac_cv_c_compiler_gnu
6745
6746
6747# Source file extension for C test sources.
6748ac_ext=c
6749
6750# Object file extension for compiled C test sources.
6751objext=o
6752objext=$objext
6753
6754# Code to be used in simple compile tests
6755lt_simple_compile_test_code="int some_variable = 0;\n"
6756
6757# Code to be used in simple link tests
6758lt_simple_link_test_code='int main(){return(0);}\n'
6759
6760
6761# If no C compiler was specified, use CC.
6762LTCC=${LTCC-"$CC"}
6763
6764# If no C compiler flags were specified, use CFLAGS.
6765LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6766
6767# Allow CC to be a program name with arguments.
6768compiler=$CC
6769
6770
6771# save warnings/boilerplate of simple test code
6772ac_outfile=conftest.$ac_objext
6773printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6774eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6775_lt_compiler_boilerplate=`cat conftest.err`
6776$rm conftest*
6777
6778ac_outfile=conftest.$ac_objext
6779printf "$lt_simple_link_test_code" >conftest.$ac_ext
6780eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6781_lt_linker_boilerplate=`cat conftest.err`
6782$rm conftest*
6783
6784
6785## CAVEAT EMPTOR:
6786## There is no encapsulation within the following macros, do not change
6787## the running order or otherwise move them around unless you know exactly
6788## what you are doing...
6789
6790lt_prog_compiler_no_builtin_flag=
6791
6792if test "$GCC" = yes; then
6793  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6794
6795
6796echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6797echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6798if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6799  echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801  lt_cv_prog_compiler_rtti_exceptions=no
6802  ac_outfile=conftest.$ac_objext
6803   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6804   lt_compiler_flag="-fno-rtti -fno-exceptions"
6805   # Insert the option either (1) after the last *FLAGS variable, or
6806   # (2) before a word containing "conftest.", or (3) at the end.
6807   # Note that $ac_compile itself does not contain backslashes and begins
6808   # with a dollar sign (not a hyphen), so the echo should work correctly.
6809   # The option is referenced via a variable to avoid confusing sed.
6810   lt_compile=`echo "$ac_compile" | $SED \
6811   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6812   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6813   -e 's:$: $lt_compiler_flag:'`
6814   (eval echo "\"\$as_me:6814: $lt_compile\"" >&5)
6815   (eval "$lt_compile" 2>conftest.err)
6816   ac_status=$?
6817   cat conftest.err >&5
6818   echo "$as_me:6818: \$? = $ac_status" >&5
6819   if (exit $ac_status) && test -s "$ac_outfile"; then
6820     # The compiler can only warn and ignore the option if not recognized
6821     # So say no if there are warnings other than the usual output.
6822     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6823     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6824     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6825       lt_cv_prog_compiler_rtti_exceptions=yes
6826     fi
6827   fi
6828   $rm conftest*
6829
6830fi
6831echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6832echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6833
6834if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6835    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6836else
6837    :
6838fi
6839
6840fi
6841
6842lt_prog_compiler_wl=
6843lt_prog_compiler_pic=
6844lt_prog_compiler_static=
6845
6846echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6847echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6848
6849  if test "$GCC" = yes; then
6850    lt_prog_compiler_wl='-Wl,'
6851    lt_prog_compiler_static='-static'
6852
6853    case $host_os in
6854      aix*)
6855      # All AIX code is PIC.
6856      if test "$host_cpu" = ia64; then
6857        # AIX 5 now supports IA64 processor
6858        lt_prog_compiler_static='-Bstatic'
6859      fi
6860      ;;
6861
6862    amigaos*)
6863      # FIXME: we need at least 68020 code to build shared libraries, but
6864      # adding the `-m68020' flag to GCC prevents building anything better,
6865      # like `-m68040'.
6866      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6867      ;;
6868
6869    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6870      # PIC is the default for these OSes.
6871      ;;
6872
6873    mingw* | pw32* | os2*)
6874      # This hack is so that the source file can tell whether it is being
6875      # built for inclusion in a dll (and should export symbols for example).
6876      lt_prog_compiler_pic='-DDLL_EXPORT'
6877      ;;
6878
6879    darwin* | rhapsody*)
6880      # PIC is the default on this platform
6881      # Common symbols not allowed in MH_DYLIB files
6882      lt_prog_compiler_pic='-fno-common'
6883      ;;
6884
6885    interix3*)
6886      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6887      # Instead, we relocate shared libraries at runtime.
6888      ;;
6889
6890    msdosdjgpp*)
6891      # Just because we use GCC doesn't mean we suddenly get shared libraries
6892      # on systems that don't support them.
6893      lt_prog_compiler_can_build_shared=no
6894      enable_shared=no
6895      ;;
6896
6897    sysv4*MP*)
6898      if test -d /usr/nec; then
6899        lt_prog_compiler_pic=-Kconform_pic
6900      fi
6901      ;;
6902
6903    hpux*)
6904      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6905      # not for PA HP-UX.
6906      case $host_cpu in
6907      hppa*64*|ia64*)
6908        # +Z the default
6909        ;;
6910      *)
6911        lt_prog_compiler_pic='-fPIC'
6912        ;;
6913      esac
6914      ;;
6915
6916    *)
6917      lt_prog_compiler_pic='-fPIC'
6918      ;;
6919    esac
6920  else
6921    # PORTME Check for flag to pass linker flags through the system compiler.
6922    case $host_os in
6923    aix*)
6924      lt_prog_compiler_wl='-Wl,'
6925      if test "$host_cpu" = ia64; then
6926        # AIX 5 now supports IA64 processor
6927        lt_prog_compiler_static='-Bstatic'
6928      else
6929        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6930      fi
6931      ;;
6932      darwin*)
6933        # PIC is the default on this platform
6934        # Common symbols not allowed in MH_DYLIB files
6935       case $cc_basename in
6936         xlc*)
6937         lt_prog_compiler_pic='-qnocommon'
6938         lt_prog_compiler_wl='-Wl,'
6939         ;;
6940       esac
6941       ;;
6942
6943    mingw* | pw32* | os2*)
6944      # This hack is so that the source file can tell whether it is being
6945      # built for inclusion in a dll (and should export symbols for example).
6946      lt_prog_compiler_pic='-DDLL_EXPORT'
6947      ;;
6948
6949    hpux9* | hpux10* | hpux11*)
6950      lt_prog_compiler_wl='-Wl,'
6951      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6952      # not for PA HP-UX.
6953      case $host_cpu in
6954      hppa*64*|ia64*)
6955        # +Z the default
6956        ;;
6957      *)
6958        lt_prog_compiler_pic='+Z'
6959        ;;
6960      esac
6961      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6962      lt_prog_compiler_static='${wl}-a ${wl}archive'
6963      ;;
6964
6965    irix5* | irix6* | nonstopux*)
6966      lt_prog_compiler_wl='-Wl,'
6967      # PIC (with -KPIC) is the default.
6968      lt_prog_compiler_static='-non_shared'
6969      ;;
6970
6971    newsos6)
6972      lt_prog_compiler_pic='-KPIC'
6973      lt_prog_compiler_static='-Bstatic'
6974      ;;
6975
6976    linux*)
6977      case $cc_basename in
6978      icc* | ecc*)
6979        lt_prog_compiler_wl='-Wl,'
6980        lt_prog_compiler_pic='-KPIC'
6981        lt_prog_compiler_static='-static'
6982        ;;
6983      pgcc* | pgf77* | pgf90* | pgf95*)
6984        # Portland Group compilers (*not* the Pentium gcc compiler,
6985        # which looks to be a dead project)
6986        lt_prog_compiler_wl='-Wl,'
6987        lt_prog_compiler_pic='-fpic'
6988        lt_prog_compiler_static='-Bstatic'
6989        ;;
6990      ccc*)
6991        lt_prog_compiler_wl='-Wl,'
6992        # All Alpha code is PIC.
6993        lt_prog_compiler_static='-non_shared'
6994        ;;
6995      esac
6996      ;;
6997
6998    osf3* | osf4* | osf5*)
6999      lt_prog_compiler_wl='-Wl,'
7000      # All OSF/1 code is PIC.
7001      lt_prog_compiler_static='-non_shared'
7002      ;;
7003
7004    solaris*)
7005      lt_prog_compiler_pic='-KPIC'
7006      lt_prog_compiler_static='-Bstatic'
7007      case $cc_basename in
7008      f77* | f90* | f95*)
7009        lt_prog_compiler_wl='-Qoption ld ';;
7010      *)
7011        lt_prog_compiler_wl='-Wl,';;
7012      esac
7013      ;;
7014
7015    sunos4*)
7016      lt_prog_compiler_wl='-Qoption ld '
7017      lt_prog_compiler_pic='-PIC'
7018      lt_prog_compiler_static='-Bstatic'
7019      ;;
7020
7021    sysv4 | sysv4.2uw2* | sysv4.3*)
7022      lt_prog_compiler_wl='-Wl,'
7023      lt_prog_compiler_pic='-KPIC'
7024      lt_prog_compiler_static='-Bstatic'
7025      ;;
7026
7027    sysv4*MP*)
7028      if test -d /usr/nec ;then
7029        lt_prog_compiler_pic='-Kconform_pic'
7030        lt_prog_compiler_static='-Bstatic'
7031      fi
7032      ;;
7033
7034    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7035      lt_prog_compiler_wl='-Wl,'
7036      lt_prog_compiler_pic='-KPIC'
7037      lt_prog_compiler_static='-Bstatic'
7038      ;;
7039
7040    unicos*)
7041      lt_prog_compiler_wl='-Wl,'
7042      lt_prog_compiler_can_build_shared=no
7043      ;;
7044
7045    uts4*)
7046      lt_prog_compiler_pic='-pic'
7047      lt_prog_compiler_static='-Bstatic'
7048      ;;
7049
7050    *)
7051      lt_prog_compiler_can_build_shared=no
7052      ;;
7053    esac
7054  fi
7055
7056echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7057echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7058
7059#
7060# Check to make sure the PIC flag actually works.
7061#
7062if test -n "$lt_prog_compiler_pic"; then
7063
7064echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7065echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7066if test "${lt_prog_compiler_pic_works+set}" = set; then
7067  echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069  lt_prog_compiler_pic_works=no
7070  ac_outfile=conftest.$ac_objext
7071   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7072   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7073   # Insert the option either (1) after the last *FLAGS variable, or
7074   # (2) before a word containing "conftest.", or (3) at the end.
7075   # Note that $ac_compile itself does not contain backslashes and begins
7076   # with a dollar sign (not a hyphen), so the echo should work correctly.
7077   # The option is referenced via a variable to avoid confusing sed.
7078   lt_compile=`echo "$ac_compile" | $SED \
7079   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7080   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7081   -e 's:$: $lt_compiler_flag:'`
7082   (eval echo "\"\$as_me:7082: $lt_compile\"" >&5)
7083   (eval "$lt_compile" 2>conftest.err)
7084   ac_status=$?
7085   cat conftest.err >&5
7086   echo "$as_me:7086: \$? = $ac_status" >&5
7087   if (exit $ac_status) && test -s "$ac_outfile"; then
7088     # The compiler can only warn and ignore the option if not recognized
7089     # So say no if there are warnings other than the usual output.
7090     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7091     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7092     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7093       lt_prog_compiler_pic_works=yes
7094     fi
7095   fi
7096   $rm conftest*
7097
7098fi
7099echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7100echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7101
7102if test x"$lt_prog_compiler_pic_works" = xyes; then
7103    case $lt_prog_compiler_pic in
7104     "" | " "*) ;;
7105     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7106     esac
7107else
7108    lt_prog_compiler_pic=
7109     lt_prog_compiler_can_build_shared=no
7110fi
7111
7112fi
7113case $host_os in
7114  # For platforms which do not support PIC, -DPIC is meaningless:
7115  *djgpp*)
7116    lt_prog_compiler_pic=
7117    ;;
7118  *)
7119    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7120    ;;
7121esac
7122
7123#
7124# Check to make sure the static flag actually works.
7125#
7126wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7127echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7128echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7129if test "${lt_prog_compiler_static_works+set}" = set; then
7130  echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132  lt_prog_compiler_static_works=no
7133   save_LDFLAGS="$LDFLAGS"
7134   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7135   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7136   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7137     # The linker can only warn and ignore the option if not recognized
7138     # So say no if there are warnings
7139     if test -s conftest.err; then
7140       # Append any errors to the config.log.
7141       cat conftest.err 1>&5
7142       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7143       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7144       if diff conftest.exp conftest.er2 >/dev/null; then
7145         lt_prog_compiler_static_works=yes
7146       fi
7147     else
7148       lt_prog_compiler_static_works=yes
7149     fi
7150   fi
7151   $rm conftest*
7152   LDFLAGS="$save_LDFLAGS"
7153
7154fi
7155echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7156echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7157
7158if test x"$lt_prog_compiler_static_works" = xyes; then
7159    :
7160else
7161    lt_prog_compiler_static=
7162fi
7163
7164
7165echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7166echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7167if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7168  echo $ECHO_N "(cached) $ECHO_C" >&6
7169else
7170  lt_cv_prog_compiler_c_o=no
7171   $rm -r conftest 2>/dev/null
7172   mkdir conftest
7173   cd conftest
7174   mkdir out
7175   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7176
7177   lt_compiler_flag="-o out/conftest2.$ac_objext"
7178   # Insert the option either (1) after the last *FLAGS variable, or
7179   # (2) before a word containing "conftest.", or (3) at the end.
7180   # Note that $ac_compile itself does not contain backslashes and begins
7181   # with a dollar sign (not a hyphen), so the echo should work correctly.
7182   lt_compile=`echo "$ac_compile" | $SED \
7183   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7184   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7185   -e 's:$: $lt_compiler_flag:'`
7186   (eval echo "\"\$as_me:7186: $lt_compile\"" >&5)
7187   (eval "$lt_compile" 2>out/conftest.err)
7188   ac_status=$?
7189   cat out/conftest.err >&5
7190   echo "$as_me:7190: \$? = $ac_status" >&5
7191   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7192   then
7193     # The compiler can only warn and ignore the option if not recognized
7194     # So say no if there are warnings
7195     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7196     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7197     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7198       lt_cv_prog_compiler_c_o=yes
7199     fi
7200   fi
7201   chmod u+w . 2>&5
7202   $rm conftest*
7203   # SGI C++ compiler will create directory out/ii_files/ for
7204   # template instantiation
7205   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7206   $rm out/* && rmdir out
7207   cd ..
7208   rmdir conftest
7209   $rm conftest*
7210
7211fi
7212echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7213echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7214
7215
7216hard_links="nottested"
7217if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7218  # do not overwrite the value of need_locks provided by the user
7219  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7220echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7221  hard_links=yes
7222  $rm conftest*
7223  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7224  touch conftest.a
7225  ln conftest.a conftest.b 2>&5 || hard_links=no
7226  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7227  echo "$as_me:$LINENO: result: $hard_links" >&5
7228echo "${ECHO_T}$hard_links" >&6
7229  if test "$hard_links" = no; then
7230    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7231echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7232    need_locks=warn
7233  fi
7234else
7235  need_locks=no
7236fi
7237
7238echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7239echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7240
7241  runpath_var=
7242  allow_undefined_flag=
7243  enable_shared_with_static_runtimes=no
7244  archive_cmds=
7245  archive_expsym_cmds=
7246  old_archive_From_new_cmds=
7247  old_archive_from_expsyms_cmds=
7248  export_dynamic_flag_spec=
7249  whole_archive_flag_spec=
7250  thread_safe_flag_spec=
7251  hardcode_libdir_flag_spec=
7252  hardcode_libdir_flag_spec_ld=
7253  hardcode_libdir_separator=
7254  hardcode_direct=no
7255  hardcode_minus_L=no
7256  hardcode_shlibpath_var=unsupported
7257  link_all_deplibs=unknown
7258  hardcode_automatic=no
7259  module_cmds=
7260  module_expsym_cmds=
7261  always_export_symbols=no
7262  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7263  # include_expsyms should be a list of space-separated symbols to be *always*
7264  # included in the symbol list
7265  include_expsyms=
7266  # exclude_expsyms can be an extended regexp of symbols to exclude
7267  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7268  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7269  # as well as any symbol that contains `d'.
7270  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7271  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7272  # platforms (ab)use it in PIC code, but their linkers get confused if
7273  # the symbol is explicitly referenced.  Since portable code cannot
7274  # rely on this symbol name, it's probably fine to never include it in
7275  # preloaded symbol tables.
7276  extract_expsyms_cmds=
7277  # Just being paranoid about ensuring that cc_basename is set.
7278  for cc_temp in $compiler""; do
7279  case $cc_temp in
7280    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7281    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7282    \-*) ;;
7283    *) break;;
7284  esac
7285done
7286cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7287
7288  case $host_os in
7289  cygwin* | mingw* | pw32*)
7290    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7291    # When not using gcc, we currently assume that we are using
7292    # Microsoft Visual C++.
7293    if test "$GCC" != yes; then
7294      with_gnu_ld=no
7295    fi
7296    ;;
7297  interix*)
7298    # we just hope/assume this is gcc and not c89 (= MSVC++)
7299    with_gnu_ld=yes
7300    ;;
7301  openbsd*)
7302    with_gnu_ld=no
7303    ;;
7304  esac
7305
7306  ld_shlibs=yes
7307  if test "$with_gnu_ld" = yes; then
7308    # If archive_cmds runs LD, not CC, wlarc should be empty
7309    wlarc='${wl}'
7310
7311    # Set some defaults for GNU ld with shared library support. These
7312    # are reset later if shared libraries are not supported. Putting them
7313    # here allows them to be overridden if necessary.
7314    runpath_var=LD_RUN_PATH
7315    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7316    export_dynamic_flag_spec='${wl}--export-dynamic'
7317    # ancient GNU ld didn't support --whole-archive et. al.
7318    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7319        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7320      else
7321        whole_archive_flag_spec=
7322    fi
7323    supports_anon_versioning=no
7324    case `$LD -v 2>/dev/null` in
7325      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7326      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7327      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7328      *\ 2.11.*) ;; # other 2.11 versions
7329      *) supports_anon_versioning=yes ;;
7330    esac
7331
7332    # See if GNU ld supports shared libraries.
7333    case $host_os in
7334    aix3* | aix4* | aix5*)
7335      # On AIX/PPC, the GNU linker is very broken
7336      if test "$host_cpu" != ia64; then
7337        ld_shlibs=no
7338        cat <<EOF 1>&2
7339
7340*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7341*** to be unable to reliably create shared libraries on AIX.
7342*** Therefore, libtool is disabling shared libraries support.  If you
7343*** really care for shared libraries, you may want to modify your PATH
7344*** so that a non-GNU linker is found, and then restart.
7345
7346EOF
7347      fi
7348      ;;
7349
7350    amigaos*)
7351      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)'
7352      hardcode_libdir_flag_spec='-L$libdir'
7353      hardcode_minus_L=yes
7354
7355      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7356      # that the semantics of dynamic libraries on AmigaOS, at least up
7357      # to version 4, is to share data among multiple programs linked
7358      # with the same dynamic library.  Since this doesn't match the
7359      # behavior of shared libraries on other platforms, we can't use
7360      # them.
7361      ld_shlibs=no
7362      ;;
7363
7364    beos*)
7365      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7366        allow_undefined_flag=unsupported
7367        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7368        # support --undefined.  This deserves some investigation.  FIXME
7369        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7370      else
7371        ld_shlibs=no
7372      fi
7373      ;;
7374
7375    cygwin* | mingw* | pw32*)
7376      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7377      # as there is no search path for DLLs.
7378      hardcode_libdir_flag_spec='-L$libdir'
7379      allow_undefined_flag=unsupported
7380      always_export_symbols=no
7381      enable_shared_with_static_runtimes=yes
7382      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7383
7384      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7385        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7386        # If the export-symbols file already is a .def file (1st line
7387        # is EXPORTS), use it as is; otherwise, prepend...
7388        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7389          cp $export_symbols $output_objdir/$soname.def;
7390        else
7391          echo EXPORTS > $output_objdir/$soname.def;
7392          cat $export_symbols >> $output_objdir/$soname.def;
7393        fi~
7394        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7395      else
7396        ld_shlibs=no
7397      fi
7398      ;;
7399
7400    interix3*)
7401      hardcode_direct=no
7402      hardcode_shlibpath_var=no
7403      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7404      export_dynamic_flag_spec='${wl}-E'
7405      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7406      # Instead, shared libraries are loaded at an image base (0x10000000 by
7407      # default) and relocated if they conflict, which is a slow very memory
7408      # consuming and fragmenting process.  To avoid this, we pick a random,
7409      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7410      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7411      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7412      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7413      ;;
7414
7415    linux*)
7416      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7417        tmp_addflag=
7418        case $cc_basename,$host_cpu in
7419        pgcc*)                          # Portland Group C compiler
7420          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'
7421          tmp_addflag=' $pic_flag'
7422          ;;
7423        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7424          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'
7425          tmp_addflag=' $pic_flag -Mnomain' ;;
7426        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7427          tmp_addflag=' -i_dynamic' ;;
7428        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7429          tmp_addflag=' -i_dynamic -nofor_main' ;;
7430        ifc* | ifort*)                  # Intel Fortran compiler
7431          tmp_addflag=' -nofor_main' ;;
7432        esac
7433        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7434
7435        if test $supports_anon_versioning = yes; then
7436          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7437  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7438  $echo "local: *; };" >> $output_objdir/$libname.ver~
7439          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7440        fi
7441      else
7442        ld_shlibs=no
7443      fi
7444      ;;
7445
7446    netbsd*)
7447      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7448        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7449        wlarc=
7450      else
7451        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7452        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7453      fi
7454      ;;
7455
7456    solaris*)
7457      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7458        ld_shlibs=no
7459        cat <<EOF 1>&2
7460
7461*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7462*** create shared libraries on Solaris systems.  Therefore, libtool
7463*** is disabling shared libraries support.  We urge you to upgrade GNU
7464*** binutils to release 2.9.1 or newer.  Another option is to modify
7465*** your PATH or compiler configuration so that the native linker is
7466*** used, and then restart.
7467
7468EOF
7469      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7470        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7471        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7472      else
7473        ld_shlibs=no
7474      fi
7475      ;;
7476
7477    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7478      case `$LD -v 2>&1` in
7479        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7480        ld_shlibs=no
7481        cat <<_LT_EOF 1>&2
7482
7483*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7484*** reliably create shared libraries on SCO systems.  Therefore, libtool
7485*** is disabling shared libraries support.  We urge you to upgrade GNU
7486*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7487*** your PATH or compiler configuration so that the native linker is
7488*** used, and then restart.
7489
7490_LT_EOF
7491        ;;
7492        *)
7493          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7494            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7495            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7496            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7497          else
7498            ld_shlibs=no
7499          fi
7500        ;;
7501      esac
7502      ;;
7503
7504    sunos4*)
7505      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7506      wlarc=
7507      hardcode_direct=yes
7508      hardcode_shlibpath_var=no
7509      ;;
7510
7511    *)
7512      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7513        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7514        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7515      else
7516        ld_shlibs=no
7517      fi
7518      ;;
7519    esac
7520
7521    if test "$ld_shlibs" = no; then
7522      runpath_var=
7523      hardcode_libdir_flag_spec=
7524      export_dynamic_flag_spec=
7525      whole_archive_flag_spec=
7526    fi
7527  else
7528    # PORTME fill in a description of your system's linker (not GNU ld)
7529    case $host_os in
7530    aix3*)
7531      allow_undefined_flag=unsupported
7532      always_export_symbols=yes
7533      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'
7534      # Note: this linker hardcodes the directories in LIBPATH if there
7535      # are no directories specified by -L.
7536      hardcode_minus_L=yes
7537      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7538        # Neither direct hardcoding nor static linking is supported with a
7539        # broken collect2.
7540        hardcode_direct=unsupported
7541      fi
7542      ;;
7543
7544    aix4* | aix5*)
7545      if test "$host_cpu" = ia64; then
7546        # On IA64, the linker does run time linking by default, so we don't
7547        # have to do anything special.
7548        aix_use_runtimelinking=no
7549        exp_sym_flag='-Bexport'
7550        no_entry_flag=""
7551      else
7552        # If we're using GNU nm, then we don't want the "-C" option.
7553        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7554        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7555          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'
7556        else
7557          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'
7558        fi
7559        aix_use_runtimelinking=no
7560
7561        # Test if we are trying to use run time linking or normal
7562        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7563        # need to do runtime linking.
7564        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7565          for ld_flag in $LDFLAGS; do
7566          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7567            aix_use_runtimelinking=yes
7568            break
7569          fi
7570          done
7571          ;;
7572        esac
7573
7574        exp_sym_flag='-bexport'
7575        no_entry_flag='-bnoentry'
7576      fi
7577
7578      # When large executables or shared objects are built, AIX ld can
7579      # have problems creating the table of contents.  If linking a library
7580      # or program results in "error TOC overflow" add -mminimal-toc to
7581      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7582      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7583
7584      archive_cmds=''
7585      hardcode_direct=yes
7586      hardcode_libdir_separator=':'
7587      link_all_deplibs=yes
7588
7589      if test "$GCC" = yes; then
7590        case $host_os in aix4.[012]|aix4.[012].*)
7591        # We only want to do this on AIX 4.2 and lower, the check
7592        # below for broken collect2 doesn't work under 4.3+
7593          collect2name=`${CC} -print-prog-name=collect2`
7594          if test -f "$collect2name" && \
7595           strings "$collect2name" | grep resolve_lib_name >/dev/null
7596          then
7597          # We have reworked collect2
7598          hardcode_direct=yes
7599          else
7600          # We have old collect2
7601          hardcode_direct=unsupported
7602          # It fails to find uninstalled libraries when the uninstalled
7603          # path is not listed in the libpath.  Setting hardcode_minus_L
7604          # to unsupported forces relinking
7605          hardcode_minus_L=yes
7606          hardcode_libdir_flag_spec='-L$libdir'
7607          hardcode_libdir_separator=
7608          fi
7609          ;;
7610        esac
7611        shared_flag='-shared'
7612        if test "$aix_use_runtimelinking" = yes; then
7613          shared_flag="$shared_flag "'${wl}-G'
7614        fi
7615      else
7616        # not using gcc
7617        if test "$host_cpu" = ia64; then
7618        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7619        # chokes on -Wl,-G. The following line is correct:
7620          shared_flag='-G'
7621        else
7622          if test "$aix_use_runtimelinking" = yes; then
7623            shared_flag='${wl}-G'
7624          else
7625            shared_flag='${wl}-bM:SRE'
7626          fi
7627        fi
7628      fi
7629
7630      # It seems that -bexpall does not export symbols beginning with
7631      # underscore (_), so it is better to generate a list of symbols to export.
7632      always_export_symbols=yes
7633      if test "$aix_use_runtimelinking" = yes; then
7634        # Warning - without using the other runtime loading flags (-brtl),
7635        # -berok will link without error, but may produce a broken library.
7636        allow_undefined_flag='-berok'
7637       # Determine the default libpath from the value encoded in an empty executable.
7638       cat >conftest.$ac_ext <<_ACEOF
7639/* confdefs.h.  */
7640_ACEOF
7641cat confdefs.h >>conftest.$ac_ext
7642cat >>conftest.$ac_ext <<_ACEOF
7643/* end confdefs.h.  */
7644
7645int
7646main ()
7647{
7648
7649  ;
7650  return 0;
7651}
7652_ACEOF
7653rm -f conftest.$ac_objext conftest$ac_exeext
7654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7655  (eval $ac_link) 2>conftest.er1
7656  ac_status=$?
7657  grep -v '^ *+' conftest.er1 >conftest.err
7658  rm -f conftest.er1
7659  cat conftest.err >&5
7660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661  (exit $ac_status); } &&
7662         { ac_try='test -z "$ac_c_werror_flag"
7663                         || test ! -s conftest.err'
7664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665  (eval $ac_try) 2>&5
7666  ac_status=$?
7667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668  (exit $ac_status); }; } &&
7669         { ac_try='test -s conftest$ac_exeext'
7670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671  (eval $ac_try) 2>&5
7672  ac_status=$?
7673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674  (exit $ac_status); }; }; then
7675
7676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7677}'`
7678# Check for a 64-bit object if we didn't find anything.
7679if 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; }
7680}'`; fi
7681else
7682  echo "$as_me: failed program was:" >&5
7683sed 's/^/| /' conftest.$ac_ext >&5
7684
7685fi
7686rm -f conftest.err conftest.$ac_objext \
7687      conftest$ac_exeext conftest.$ac_ext
7688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7689
7690       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7691        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7692       else
7693        if test "$host_cpu" = ia64; then
7694          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7695          allow_undefined_flag="-z nodefs"
7696          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7697        else
7698         # Determine the default libpath from the value encoded in an empty executable.
7699         cat >conftest.$ac_ext <<_ACEOF
7700/* confdefs.h.  */
7701_ACEOF
7702cat confdefs.h >>conftest.$ac_ext
7703cat >>conftest.$ac_ext <<_ACEOF
7704/* end confdefs.h.  */
7705
7706int
7707main ()
7708{
7709
7710  ;
7711  return 0;
7712}
7713_ACEOF
7714rm -f conftest.$ac_objext conftest$ac_exeext
7715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7716  (eval $ac_link) 2>conftest.er1
7717  ac_status=$?
7718  grep -v '^ *+' conftest.er1 >conftest.err
7719  rm -f conftest.er1
7720  cat conftest.err >&5
7721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722  (exit $ac_status); } &&
7723         { ac_try='test -z "$ac_c_werror_flag"
7724                         || test ! -s conftest.err'
7725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726  (eval $ac_try) 2>&5
7727  ac_status=$?
7728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729  (exit $ac_status); }; } &&
7730         { ac_try='test -s conftest$ac_exeext'
7731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732  (eval $ac_try) 2>&5
7733  ac_status=$?
7734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735  (exit $ac_status); }; }; then
7736
7737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7738}'`
7739# Check for a 64-bit object if we didn't find anything.
7740if 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; }
7741}'`; fi
7742else
7743  echo "$as_me: failed program was:" >&5
7744sed 's/^/| /' conftest.$ac_ext >&5
7745
7746fi
7747rm -f conftest.err conftest.$ac_objext \
7748      conftest$ac_exeext conftest.$ac_ext
7749if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7750
7751         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7752          # Warning - without using the other run time loading flags,
7753          # -berok will link without error, but may produce a broken library.
7754          no_undefined_flag=' ${wl}-bernotok'
7755          allow_undefined_flag=' ${wl}-berok'
7756          # Exported symbols can be pulled into shared objects from archives
7757          whole_archive_flag_spec='$convenience'
7758          archive_cmds_need_lc=yes
7759          # This is similar to how AIX traditionally builds its shared libraries.
7760          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7761        fi
7762      fi
7763      ;;
7764
7765    amigaos*)
7766      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)'
7767      hardcode_libdir_flag_spec='-L$libdir'
7768      hardcode_minus_L=yes
7769      # see comment about different semantics on the GNU ld section
7770      ld_shlibs=no
7771      ;;
7772
7773    bsdi[45]*)
7774      export_dynamic_flag_spec=-rdynamic
7775      ;;
7776
7777    cygwin* | mingw* | pw32*)
7778      # When not using gcc, we currently assume that we are using
7779      # Microsoft Visual C++.
7780      # hardcode_libdir_flag_spec is actually meaningless, as there is
7781      # no search path for DLLs.
7782      hardcode_libdir_flag_spec=' '
7783      allow_undefined_flag=unsupported
7784      # Tell ltmain to make .lib files, not .a files.
7785      libext=lib
7786      # Tell ltmain to make .dll files, not .so files.
7787      shrext_cmds=".dll"
7788      # FIXME: Setting linknames here is a bad hack.
7789      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7790      # The linker will automatically build a .lib file if we build a DLL.
7791      old_archive_From_new_cmds='true'
7792      # FIXME: Should let the user specify the lib program.
7793      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7794      fix_srcfile_path='`cygpath -w "$srcfile"`'
7795      enable_shared_with_static_runtimes=yes
7796      ;;
7797
7798    darwin* | rhapsody*)
7799      case $host_os in
7800        rhapsody* | darwin1.[012])
7801         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7802         ;;
7803       *) # Darwin 1.3 on
7804         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7805           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7806         else
7807           case ${MACOSX_DEPLOYMENT_TARGET} in
7808             10.[012])
7809               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7810               ;;
7811             10.*)
7812               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7813               ;;
7814           esac
7815         fi
7816         ;;
7817      esac
7818      archive_cmds_need_lc=no
7819      hardcode_direct=no
7820      hardcode_automatic=yes
7821      hardcode_shlibpath_var=unsupported
7822      whole_archive_flag_spec=''
7823      link_all_deplibs=yes
7824    if test "$GCC" = yes ; then
7825        output_verbose_link_cmd='echo'
7826        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7827      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7828      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7829      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}'
7830      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}'
7831    else
7832      case $cc_basename in
7833        xlc*)
7834         output_verbose_link_cmd='echo'
7835         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7836         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7837          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7838         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}'
7839          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}'
7840          ;;
7841       *)
7842         ld_shlibs=no
7843          ;;
7844      esac
7845    fi
7846      ;;
7847
7848    dgux*)
7849      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7850      hardcode_libdir_flag_spec='-L$libdir'
7851      hardcode_shlibpath_var=no
7852      ;;
7853
7854    freebsd1*)
7855      ld_shlibs=no
7856      ;;
7857
7858    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7859    # support.  Future versions do this automatically, but an explicit c++rt0.o
7860    # does not break anything, and helps significantly (at the cost of a little
7861    # extra space).
7862    freebsd2.2*)
7863      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7864      hardcode_libdir_flag_spec='-R$libdir'
7865      hardcode_direct=yes
7866      hardcode_shlibpath_var=no
7867      ;;
7868
7869    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7870    freebsd2*)
7871      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7872      hardcode_direct=yes
7873      hardcode_minus_L=yes
7874      hardcode_shlibpath_var=no
7875      ;;
7876
7877    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7878    freebsd* | kfreebsd*-gnu | dragonfly*)
7879      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7880      hardcode_libdir_flag_spec='-R$libdir'
7881      hardcode_direct=yes
7882      hardcode_shlibpath_var=no
7883      ;;
7884
7885    hpux9*)
7886      if test "$GCC" = yes; then
7887        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'
7888      else
7889        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'
7890      fi
7891      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7892      hardcode_libdir_separator=:
7893      hardcode_direct=yes
7894
7895      # hardcode_minus_L: Not really in the search PATH,
7896      # but as the default location of the library.
7897      hardcode_minus_L=yes
7898      export_dynamic_flag_spec='${wl}-E'
7899      ;;
7900
7901    hpux10*)
7902      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7903        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7904      else
7905        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7906      fi
7907      if test "$with_gnu_ld" = no; then
7908        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7909        hardcode_libdir_separator=:
7910
7911        hardcode_direct=yes
7912        export_dynamic_flag_spec='${wl}-E'
7913
7914        # hardcode_minus_L: Not really in the search PATH,
7915        # but as the default location of the library.
7916        hardcode_minus_L=yes
7917      fi
7918      ;;
7919
7920    hpux11*)
7921      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7922        case $host_cpu in
7923        hppa*64*)
7924          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7925          ;;
7926        ia64*)
7927          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7928          ;;
7929        *)
7930          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7931          ;;
7932        esac
7933      else
7934        case $host_cpu in
7935        hppa*64*)
7936          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7937          ;;
7938        ia64*)
7939          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7940          ;;
7941        *)
7942          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7943          ;;
7944        esac
7945      fi
7946      if test "$with_gnu_ld" = no; then
7947        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7948        hardcode_libdir_separator=:
7949
7950        case $host_cpu in
7951        hppa*64*|ia64*)
7952          hardcode_libdir_flag_spec_ld='+b $libdir'
7953          hardcode_direct=no
7954          hardcode_shlibpath_var=no
7955          ;;
7956        *)
7957          hardcode_direct=yes
7958          export_dynamic_flag_spec='${wl}-E'
7959
7960          # hardcode_minus_L: Not really in the search PATH,
7961          # but as the default location of the library.
7962          hardcode_minus_L=yes
7963          ;;
7964        esac
7965      fi
7966      ;;
7967
7968    irix5* | irix6* | nonstopux*)
7969      if test "$GCC" = yes; then
7970        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'
7971      else
7972        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'
7973        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7974      fi
7975      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7976      hardcode_libdir_separator=:
7977      link_all_deplibs=yes
7978      ;;
7979
7980    netbsd*)
7981      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7982        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7983      else
7984        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7985      fi
7986      hardcode_libdir_flag_spec='-R$libdir'
7987      hardcode_direct=yes
7988      hardcode_shlibpath_var=no
7989      ;;
7990
7991    newsos6)
7992      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7993      hardcode_direct=yes
7994      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7995      hardcode_libdir_separator=:
7996      hardcode_shlibpath_var=no
7997      ;;
7998
7999    openbsd*)
8000      hardcode_direct=yes
8001      hardcode_shlibpath_var=no
8002      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8003        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8004        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8005        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8006        export_dynamic_flag_spec='${wl}-E'
8007      else
8008       case $host_os in
8009         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8010           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8011           hardcode_libdir_flag_spec='-R$libdir'
8012           ;;
8013         *)
8014           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8015           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8016           ;;
8017       esac
8018      fi
8019      ;;
8020
8021    os2*)
8022      hardcode_libdir_flag_spec='-L$libdir'
8023      hardcode_minus_L=yes
8024      allow_undefined_flag=unsupported
8025      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'
8026      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8027      ;;
8028
8029    osf3*)
8030      if test "$GCC" = yes; then
8031        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8032        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'
8033      else
8034        allow_undefined_flag=' -expect_unresolved \*'
8035        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'
8036      fi
8037      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8038      hardcode_libdir_separator=:
8039      ;;
8040
8041    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8042      if test "$GCC" = yes; then
8043        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8044        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'
8045        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8046      else
8047        allow_undefined_flag=' -expect_unresolved \*'
8048        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'
8049        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8050        $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'
8051
8052        # Both c and cxx compiler support -rpath directly
8053        hardcode_libdir_flag_spec='-rpath $libdir'
8054      fi
8055      hardcode_libdir_separator=:
8056      ;;
8057
8058    solaris*)
8059      no_undefined_flag=' -z text'
8060      if test "$GCC" = yes; then
8061        wlarc='${wl}'
8062        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8063        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8064          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8065      else
8066        wlarc=''
8067        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8068        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8069        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8070      fi
8071      hardcode_libdir_flag_spec='-R$libdir'
8072      hardcode_shlibpath_var=no
8073      case $host_os in
8074      solaris2.[0-5] | solaris2.[0-5].*) ;;
8075      *)
8076        # The compiler driver will combine linker options so we
8077        # cannot just pass the convience library names through
8078        # without $wl, iff we do not link with $LD.
8079        # Luckily, gcc supports the same syntax we need for Sun Studio.
8080        # Supported since Solaris 2.6 (maybe 2.5.1?)
8081        case $wlarc in
8082        '')
8083          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8084        *)
8085          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' ;;
8086        esac ;;
8087      esac
8088      link_all_deplibs=yes
8089      ;;
8090
8091    sunos4*)
8092      if test "x$host_vendor" = xsequent; then
8093        # Use $CC to link under sequent, because it throws in some extra .o
8094        # files that make .init and .fini sections work.
8095        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8096      else
8097        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8098      fi
8099      hardcode_libdir_flag_spec='-L$libdir'
8100      hardcode_direct=yes
8101      hardcode_minus_L=yes
8102      hardcode_shlibpath_var=no
8103      ;;
8104
8105    sysv4)
8106      case $host_vendor in
8107        sni)
8108          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8109          hardcode_direct=yes # is this really true???
8110        ;;
8111        siemens)
8112          ## LD is ld it makes a PLAMLIB
8113          ## CC just makes a GrossModule.
8114          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8115          reload_cmds='$CC -r -o $output$reload_objs'
8116          hardcode_direct=no
8117        ;;
8118        motorola)
8119          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8120          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8121        ;;
8122      esac
8123      runpath_var='LD_RUN_PATH'
8124      hardcode_shlibpath_var=no
8125      ;;
8126
8127    sysv4.3*)
8128      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8129      hardcode_shlibpath_var=no
8130      export_dynamic_flag_spec='-Bexport'
8131      ;;
8132
8133    sysv4*MP*)
8134      if test -d /usr/nec; then
8135        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8136        hardcode_shlibpath_var=no
8137        runpath_var=LD_RUN_PATH
8138        hardcode_runpath_var=yes
8139        ld_shlibs=yes
8140      fi
8141      ;;
8142
8143    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8144      no_undefined_flag='${wl}-z,text'
8145      archive_cmds_need_lc=no
8146      hardcode_shlibpath_var=no
8147      runpath_var='LD_RUN_PATH'
8148
8149      if test "$GCC" = yes; then
8150        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8151        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8152      else
8153        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8154        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8155      fi
8156      ;;
8157
8158    sysv5* | sco3.2v5* | sco5v6*)
8159      # Note: We can NOT use -z defs as we might desire, because we do not
8160      # link with -lc, and that would cause any symbols used from libc to
8161      # always be unresolved, which means just about no library would
8162      # ever link correctly.  If we're not using GNU ld we use -z text
8163      # though, which does catch some bad symbols but isn't as heavy-handed
8164      # as -z defs.
8165      no_undefined_flag='${wl}-z,text'
8166      allow_undefined_flag='${wl}-z,nodefs'
8167      archive_cmds_need_lc=no
8168      hardcode_shlibpath_var=no
8169      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8170      hardcode_libdir_separator=':'
8171      link_all_deplibs=yes
8172      export_dynamic_flag_spec='${wl}-Bexport'
8173      runpath_var='LD_RUN_PATH'
8174
8175      if test "$GCC" = yes; then
8176        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8177        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8178      else
8179        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8180        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8181      fi
8182      ;;
8183
8184    uts4*)
8185      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8186      hardcode_libdir_flag_spec='-L$libdir'
8187      hardcode_shlibpath_var=no
8188      ;;
8189
8190    *)
8191      ld_shlibs=no
8192      ;;
8193    esac
8194  fi
8195
8196echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8197echo "${ECHO_T}$ld_shlibs" >&6
8198test "$ld_shlibs" = no && can_build_shared=no
8199
8200#
8201# Do we need to explicitly link libc?
8202#
8203case "x$archive_cmds_need_lc" in
8204x|xyes)
8205  # Assume -lc should be added
8206  archive_cmds_need_lc=yes
8207
8208  if test "$enable_shared" = yes && test "$GCC" = yes; then
8209    case $archive_cmds in
8210    *'~'*)
8211      # FIXME: we may have to deal with multi-command sequences.
8212      ;;
8213    '$CC '*)
8214      # Test whether the compiler implicitly links with -lc since on some
8215      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8216      # to ld, don't add -lc before -lgcc.
8217      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8218echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8219      $rm conftest*
8220      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8221
8222      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223  (eval $ac_compile) 2>&5
8224  ac_status=$?
8225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226  (exit $ac_status); } 2>conftest.err; then
8227        soname=conftest
8228        lib=conftest
8229        libobjs=conftest.$ac_objext
8230        deplibs=
8231        wl=$lt_prog_compiler_wl
8232        pic_flag=$lt_prog_compiler_pic
8233        compiler_flags=-v
8234        linker_flags=-v
8235        verstring=
8236        output_objdir=.
8237        libname=conftest
8238        lt_save_allow_undefined_flag=$allow_undefined_flag
8239        allow_undefined_flag=
8240        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8241  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8242  ac_status=$?
8243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244  (exit $ac_status); }
8245        then
8246          archive_cmds_need_lc=no
8247        else
8248          archive_cmds_need_lc=yes
8249        fi
8250        allow_undefined_flag=$lt_save_allow_undefined_flag
8251      else
8252        cat conftest.err 1>&5
8253      fi
8254      $rm conftest*
8255      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8256echo "${ECHO_T}$archive_cmds_need_lc" >&6
8257      ;;
8258    esac
8259  fi
8260  ;;
8261esac
8262
8263echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8264echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8265library_names_spec=
8266libname_spec='lib$name'
8267soname_spec=
8268shrext_cmds=".so"
8269postinstall_cmds=
8270postuninstall_cmds=
8271finish_cmds=
8272finish_eval=
8273shlibpath_var=
8274shlibpath_overrides_runpath=unknown
8275version_type=none
8276dynamic_linker="$host_os ld.so"
8277sys_lib_dlsearch_path_spec="/lib /usr/lib"
8278if test "$GCC" = yes; then
8279  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8280  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8281    # if the path contains ";" then we assume it to be the separator
8282    # otherwise default to the standard path separator (i.e. ":") - it is
8283    # assumed that no part of a normal pathname contains ";" but that should
8284    # okay in the real world where ";" in dirpaths is itself problematic.
8285    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8286  else
8287    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8288  fi
8289else
8290  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8291fi
8292need_lib_prefix=unknown
8293hardcode_into_libs=no
8294
8295# when you set need_version to no, make sure it does not cause -set_version
8296# flags to be left without arguments
8297need_version=unknown
8298
8299case $host_os in
8300aix3*)
8301  version_type=linux
8302  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8303  shlibpath_var=LIBPATH
8304
8305  # AIX 3 has no versioning support, so we append a major version to the name.
8306  soname_spec='${libname}${release}${shared_ext}$major'
8307  ;;
8308
8309aix4* | aix5*)
8310  version_type=linux
8311  need_lib_prefix=no
8312  need_version=no
8313  hardcode_into_libs=yes
8314  if test "$host_cpu" = ia64; then
8315    # AIX 5 supports IA64
8316    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8317    shlibpath_var=LD_LIBRARY_PATH
8318  else
8319    # With GCC up to 2.95.x, collect2 would create an import file
8320    # for dependence libraries.  The import file would start with
8321    # the line `#! .'.  This would cause the generated library to
8322    # depend on `.', always an invalid library.  This was fixed in
8323    # development snapshots of GCC prior to 3.0.
8324    case $host_os in
8325      aix4 | aix4.[01] | aix4.[01].*)
8326      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8327           echo ' yes '
8328           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8329        :
8330      else
8331        can_build_shared=no
8332      fi
8333      ;;
8334    esac
8335    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8336    # soname into executable. Probably we can add versioning support to
8337    # collect2, so additional links can be useful in future.
8338    if test "$aix_use_runtimelinking" = yes; then
8339      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8340      # instead of lib<name>.a to let people know that these are not
8341      # typical AIX shared libraries.
8342      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8343    else
8344      # We preserve .a as extension for shared libraries through AIX4.2
8345      # and later when we are not doing run time linking.
8346      library_names_spec='${libname}${release}.a $libname.a'
8347      soname_spec='${libname}${release}${shared_ext}$major'
8348    fi
8349    shlibpath_var=LIBPATH
8350  fi
8351  ;;
8352
8353amigaos*)
8354  library_names_spec='$libname.ixlibrary $libname.a'
8355  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8356  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'
8357  ;;
8358
8359beos*)
8360  library_names_spec='${libname}${shared_ext}'
8361  dynamic_linker="$host_os ld.so"
8362  shlibpath_var=LIBRARY_PATH
8363  ;;
8364
8365bsdi[45]*)
8366  version_type=linux
8367  need_version=no
8368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8369  soname_spec='${libname}${release}${shared_ext}$major'
8370  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8371  shlibpath_var=LD_LIBRARY_PATH
8372  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8373  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8374  # the default ld.so.conf also contains /usr/contrib/lib and
8375  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8376  # libtool to hard-code these into programs
8377  ;;
8378
8379cygwin* | mingw* | pw32*)
8380  version_type=windows
8381  shrext_cmds=".dll"
8382  need_version=no
8383  need_lib_prefix=no
8384
8385  case $GCC,$host_os in
8386  yes,cygwin* | yes,mingw* | yes,pw32*)
8387    library_names_spec='$libname.dll.a'
8388    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8389    postinstall_cmds='base_file=`basename \${file}`~
8390      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8391      dldir=$destdir/`dirname \$dlpath`~
8392      test -d \$dldir || mkdir -p \$dldir~
8393      $install_prog $dir/$dlname \$dldir/$dlname~
8394      chmod a+x \$dldir/$dlname'
8395    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8396      dlpath=$dir/\$dldll~
8397       $rm \$dlpath'
8398    shlibpath_overrides_runpath=yes
8399
8400    case $host_os in
8401    cygwin*)
8402      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8403      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8404      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8405      ;;
8406    mingw*)
8407      # MinGW DLLs use traditional 'lib' prefix
8408      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8409      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8410      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8411        # It is most probably a Windows format PATH printed by
8412        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8413        # path with ; separators, and with drive letters. We can handle the
8414        # drive letters (cygwin fileutils understands them), so leave them,
8415        # especially as we might pass files found there to a mingw objdump,
8416        # which wouldn't understand a cygwinified path. Ahh.
8417        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8418      else
8419        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8420      fi
8421      ;;
8422    pw32*)
8423      # pw32 DLLs use 'pw' prefix rather than 'lib'
8424      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8425      ;;
8426    esac
8427    ;;
8428
8429  *)
8430    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8431    ;;
8432  esac
8433  dynamic_linker='Win32 ld.exe'
8434  # FIXME: first we should search . and the directory the executable is in
8435  shlibpath_var=PATH
8436  ;;
8437
8438darwin* | rhapsody*)
8439  dynamic_linker="$host_os dyld"
8440  version_type=darwin
8441  need_lib_prefix=no
8442  need_version=no
8443  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8444  soname_spec='${libname}${release}${major}$shared_ext'
8445  shlibpath_overrides_runpath=yes
8446  shlibpath_var=DYLD_LIBRARY_PATH
8447  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8448  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8449  if test "$GCC" = yes; then
8450    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"`
8451  else
8452    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8453  fi
8454  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8455  ;;
8456
8457dgux*)
8458  version_type=linux
8459  need_lib_prefix=no
8460  need_version=no
8461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8462  soname_spec='${libname}${release}${shared_ext}$major'
8463  shlibpath_var=LD_LIBRARY_PATH
8464  ;;
8465
8466freebsd1*)
8467  dynamic_linker=no
8468  ;;
8469
8470kfreebsd*-gnu)
8471  version_type=linux
8472  need_lib_prefix=no
8473  need_version=no
8474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8475  soname_spec='${libname}${release}${shared_ext}$major'
8476  shlibpath_var=LD_LIBRARY_PATH
8477  shlibpath_overrides_runpath=no
8478  hardcode_into_libs=yes
8479  dynamic_linker='GNU ld.so'
8480  ;;
8481
8482freebsd* | dragonfly*)
8483  # DragonFly does not have aout.  When/if they implement a new
8484  # versioning mechanism, adjust this.
8485  if test -x /usr/bin/objformat; then
8486    objformat=`/usr/bin/objformat`
8487  else
8488    case $host_os in
8489    freebsd[123]*) objformat=aout ;;
8490    *) objformat=elf ;;
8491    esac
8492  fi
8493  version_type=freebsd-$objformat
8494  case $version_type in
8495    freebsd-elf*)
8496      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8497      need_version=no
8498      need_lib_prefix=no
8499      ;;
8500    freebsd-*)
8501      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8502      need_version=yes
8503      ;;
8504  esac
8505  shlibpath_var=LD_LIBRARY_PATH
8506  case $host_os in
8507  freebsd2*)
8508    shlibpath_overrides_runpath=yes
8509    ;;
8510  freebsd3.[01]* | freebsdelf3.[01]*)
8511    shlibpath_overrides_runpath=yes
8512    hardcode_into_libs=yes
8513    ;;
8514  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8515  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8516    shlibpath_overrides_runpath=no
8517    hardcode_into_libs=yes
8518    ;;
8519  freebsd*) # from 4.6 on
8520    shlibpath_overrides_runpath=yes
8521    hardcode_into_libs=yes
8522    ;;
8523  esac
8524  ;;
8525
8526gnu*)
8527  version_type=linux
8528  need_lib_prefix=no
8529  need_version=no
8530  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8531  soname_spec='${libname}${release}${shared_ext}$major'
8532  shlibpath_var=LD_LIBRARY_PATH
8533  hardcode_into_libs=yes
8534  ;;
8535
8536hpux9* | hpux10* | hpux11*)
8537  # Give a soname corresponding to the major version so that dld.sl refuses to
8538  # link against other versions.
8539  version_type=sunos
8540  need_lib_prefix=no
8541  need_version=no
8542  case $host_cpu in
8543  ia64*)
8544    shrext_cmds='.so'
8545    hardcode_into_libs=yes
8546    dynamic_linker="$host_os dld.so"
8547    shlibpath_var=LD_LIBRARY_PATH
8548    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8549    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8550    soname_spec='${libname}${release}${shared_ext}$major'
8551    if test "X$HPUX_IA64_MODE" = X32; then
8552      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8553    else
8554      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8555    fi
8556    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8557    ;;
8558   hppa*64*)
8559     shrext_cmds='.sl'
8560     hardcode_into_libs=yes
8561     dynamic_linker="$host_os dld.sl"
8562     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8563     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8564     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8565     soname_spec='${libname}${release}${shared_ext}$major'
8566     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8567     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8568     ;;
8569   *)
8570    shrext_cmds='.sl'
8571    dynamic_linker="$host_os dld.sl"
8572    shlibpath_var=SHLIB_PATH
8573    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8574    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8575    soname_spec='${libname}${release}${shared_ext}$major'
8576    ;;
8577  esac
8578  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8579  postinstall_cmds='chmod 555 $lib'
8580  ;;
8581
8582interix3*)
8583  version_type=linux
8584  need_lib_prefix=no
8585  need_version=no
8586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8587  soname_spec='${libname}${release}${shared_ext}$major'
8588  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8589  shlibpath_var=LD_LIBRARY_PATH
8590  shlibpath_overrides_runpath=no
8591  hardcode_into_libs=yes
8592  ;;
8593
8594irix5* | irix6* | nonstopux*)
8595  case $host_os in
8596    nonstopux*) version_type=nonstopux ;;
8597    *)
8598        if test "$lt_cv_prog_gnu_ld" = yes; then
8599                version_type=linux
8600        else
8601                version_type=irix
8602        fi ;;
8603  esac
8604  need_lib_prefix=no
8605  need_version=no
8606  soname_spec='${libname}${release}${shared_ext}$major'
8607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8608  case $host_os in
8609  irix5* | nonstopux*)
8610    libsuff= shlibsuff=
8611    ;;
8612  *)
8613    case $LD in # libtool.m4 will add one of these switches to LD
8614    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8615      libsuff= shlibsuff= libmagic=32-bit;;
8616    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8617      libsuff=32 shlibsuff=N32 libmagic=N32;;
8618    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8619      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8620    *) libsuff= shlibsuff= libmagic=never-match;;
8621    esac
8622    ;;
8623  esac
8624  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8625  shlibpath_overrides_runpath=no
8626  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8627  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8628  hardcode_into_libs=yes
8629  ;;
8630
8631# No shared lib support for Linux oldld, aout, or coff.
8632linux*oldld* | linux*aout* | linux*coff*)
8633  dynamic_linker=no
8634  ;;
8635
8636# This must be Linux ELF.
8637linux*)
8638  version_type=linux
8639  need_lib_prefix=no
8640  need_version=no
8641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8642  soname_spec='${libname}${release}${shared_ext}$major'
8643  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8644  shlibpath_var=LD_LIBRARY_PATH
8645  shlibpath_overrides_runpath=no
8646  # This implies no fast_install, which is unacceptable.
8647  # Some rework will be needed to allow for fast_install
8648  # before this can be enabled.
8649  hardcode_into_libs=yes
8650
8651  # Append ld.so.conf contents to the search path
8652  if test -f /etc/ld.so.conf; then
8653    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' ' '`
8654    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8655  fi
8656
8657  # We used to test for /lib/ld.so.1 and disable shared libraries on
8658  # powerpc, because MkLinux only supported shared libraries with the
8659  # GNU dynamic linker.  Since this was broken with cross compilers,
8660  # most powerpc-linux boxes support dynamic linking these days and
8661  # people can always --disable-shared, the test was removed, and we
8662  # assume the GNU/Linux dynamic linker is in use.
8663  dynamic_linker='GNU/Linux ld.so'
8664  ;;
8665
8666knetbsd*-gnu)
8667  version_type=linux
8668  need_lib_prefix=no
8669  need_version=no
8670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8671  soname_spec='${libname}${release}${shared_ext}$major'
8672  shlibpath_var=LD_LIBRARY_PATH
8673  shlibpath_overrides_runpath=no
8674  hardcode_into_libs=yes
8675  dynamic_linker='GNU ld.so'
8676  ;;
8677
8678netbsd*)
8679  version_type=sunos
8680  need_lib_prefix=no
8681  need_version=no
8682  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8683    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8684    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8685    dynamic_linker='NetBSD (a.out) ld.so'
8686  else
8687    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8688    soname_spec='${libname}${release}${shared_ext}$major'
8689    dynamic_linker='NetBSD ld.elf_so'
8690  fi
8691  shlibpath_var=LD_LIBRARY_PATH
8692  shlibpath_overrides_runpath=yes
8693  hardcode_into_libs=yes
8694  ;;
8695
8696newsos6)
8697  version_type=linux
8698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699  shlibpath_var=LD_LIBRARY_PATH
8700  shlibpath_overrides_runpath=yes
8701  ;;
8702
8703nto-qnx*)
8704  version_type=linux
8705  need_lib_prefix=no
8706  need_version=no
8707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8708  soname_spec='${libname}${release}${shared_ext}$major'
8709  shlibpath_var=LD_LIBRARY_PATH
8710  shlibpath_overrides_runpath=yes
8711  ;;
8712
8713openbsd*)
8714  version_type=sunos
8715  sys_lib_dlsearch_path_spec="/usr/lib"
8716  need_lib_prefix=no
8717  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8718  case $host_os in
8719    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8720    *)                         need_version=no  ;;
8721  esac
8722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8723  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8724  shlibpath_var=LD_LIBRARY_PATH
8725  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8726    case $host_os in
8727      openbsd2.[89] | openbsd2.[89].*)
8728        shlibpath_overrides_runpath=no
8729        ;;
8730      *)
8731        shlibpath_overrides_runpath=yes
8732        ;;
8733      esac
8734  else
8735    shlibpath_overrides_runpath=yes
8736  fi
8737  ;;
8738
8739os2*)
8740  libname_spec='$name'
8741  shrext_cmds=".dll"
8742  need_lib_prefix=no
8743  library_names_spec='$libname${shared_ext} $libname.a'
8744  dynamic_linker='OS/2 ld.exe'
8745  shlibpath_var=LIBPATH
8746  ;;
8747
8748osf3* | osf4* | osf5*)
8749  version_type=osf
8750  need_lib_prefix=no
8751  need_version=no
8752  soname_spec='${libname}${release}${shared_ext}$major'
8753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8754  shlibpath_var=LD_LIBRARY_PATH
8755  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8756  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8757  ;;
8758
8759solaris*)
8760  version_type=linux
8761  need_lib_prefix=no
8762  need_version=no
8763  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8764  soname_spec='${libname}${release}${shared_ext}$major'
8765  shlibpath_var=LD_LIBRARY_PATH
8766  shlibpath_overrides_runpath=yes
8767  hardcode_into_libs=yes
8768  # ldd complains unless libraries are executable
8769  postinstall_cmds='chmod +x $lib'
8770  ;;
8771
8772sunos4*)
8773  version_type=sunos
8774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8775  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8776  shlibpath_var=LD_LIBRARY_PATH
8777  shlibpath_overrides_runpath=yes
8778  if test "$with_gnu_ld" = yes; then
8779    need_lib_prefix=no
8780  fi
8781  need_version=yes
8782  ;;
8783
8784sysv4 | sysv4.3*)
8785  version_type=linux
8786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8787  soname_spec='${libname}${release}${shared_ext}$major'
8788  shlibpath_var=LD_LIBRARY_PATH
8789  case $host_vendor in
8790    sni)
8791      shlibpath_overrides_runpath=no
8792      need_lib_prefix=no
8793      export_dynamic_flag_spec='${wl}-Blargedynsym'
8794      runpath_var=LD_RUN_PATH
8795      ;;
8796    siemens)
8797      need_lib_prefix=no
8798      ;;
8799    motorola)
8800      need_lib_prefix=no
8801      need_version=no
8802      shlibpath_overrides_runpath=no
8803      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8804      ;;
8805  esac
8806  ;;
8807
8808sysv4*MP*)
8809  if test -d /usr/nec ;then
8810    version_type=linux
8811    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8812    soname_spec='$libname${shared_ext}.$major'
8813    shlibpath_var=LD_LIBRARY_PATH
8814  fi
8815  ;;
8816
8817sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8818  version_type=freebsd-elf
8819  need_lib_prefix=no
8820  need_version=no
8821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8822  soname_spec='${libname}${release}${shared_ext}$major'
8823  shlibpath_var=LD_LIBRARY_PATH
8824  hardcode_into_libs=yes
8825  if test "$with_gnu_ld" = yes; then
8826    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8827    shlibpath_overrides_runpath=no
8828  else
8829    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8830    shlibpath_overrides_runpath=yes
8831    case $host_os in
8832      sco3.2v5*)
8833        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8834        ;;
8835    esac
8836  fi
8837  sys_lib_dlsearch_path_spec='/usr/lib'
8838  ;;
8839
8840uts4*)
8841  version_type=linux
8842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843  soname_spec='${libname}${release}${shared_ext}$major'
8844  shlibpath_var=LD_LIBRARY_PATH
8845  ;;
8846
8847*)
8848  dynamic_linker=no
8849  ;;
8850esac
8851echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8852echo "${ECHO_T}$dynamic_linker" >&6
8853test "$dynamic_linker" = no && can_build_shared=no
8854
8855variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8856if test "$GCC" = yes; then
8857  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8858fi
8859
8860echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8861echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8862hardcode_action=
8863if test -n "$hardcode_libdir_flag_spec" || \
8864   test -n "$runpath_var" || \
8865   test "X$hardcode_automatic" = "Xyes" ; then
8866
8867  # We can hardcode non-existant directories.
8868  if test "$hardcode_direct" != no &&
8869     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8870     # have to relink, otherwise we might link with an installed library
8871     # when we should be linking with a yet-to-be-installed one
8872     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8873     test "$hardcode_minus_L" != no; then
8874    # Linking always hardcodes the temporary library directory.
8875    hardcode_action=relink
8876  else
8877    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8878    hardcode_action=immediate
8879  fi
8880else
8881  # We cannot hardcode anything, or else we can only hardcode existing
8882  # directories.
8883  hardcode_action=unsupported
8884fi
8885echo "$as_me:$LINENO: result: $hardcode_action" >&5
8886echo "${ECHO_T}$hardcode_action" >&6
8887
8888if test "$hardcode_action" = relink; then
8889  # Fast installation is not supported
8890  enable_fast_install=no
8891elif test "$shlibpath_overrides_runpath" = yes ||
8892     test "$enable_shared" = no; then
8893  # Fast installation is not necessary
8894  enable_fast_install=needless
8895fi
8896
8897striplib=
8898old_striplib=
8899echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8900echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8901if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8902  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8903  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8904  echo "$as_me:$LINENO: result: yes" >&5
8905echo "${ECHO_T}yes" >&6
8906else
8907# FIXME - insert some real tests, host_os isn't really good enough
8908  case $host_os in
8909   darwin*)
8910       if test -n "$STRIP" ; then
8911         striplib="$STRIP -x"
8912         echo "$as_me:$LINENO: result: yes" >&5
8913echo "${ECHO_T}yes" >&6
8914       else
8915  echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6
8917fi
8918       ;;
8919   *)
8920  echo "$as_me:$LINENO: result: no" >&5
8921echo "${ECHO_T}no" >&6
8922    ;;
8923  esac
8924fi
8925
8926if test "x$enable_dlopen" != xyes; then
8927  enable_dlopen=unknown
8928  enable_dlopen_self=unknown
8929  enable_dlopen_self_static=unknown
8930else
8931  lt_cv_dlopen=no
8932  lt_cv_dlopen_libs=
8933
8934  case $host_os in
8935  beos*)
8936    lt_cv_dlopen="load_add_on"
8937    lt_cv_dlopen_libs=
8938    lt_cv_dlopen_self=yes
8939    ;;
8940
8941  mingw* | pw32*)
8942    lt_cv_dlopen="LoadLibrary"
8943    lt_cv_dlopen_libs=
8944   ;;
8945
8946  cygwin*)
8947    lt_cv_dlopen="dlopen"
8948    lt_cv_dlopen_libs=
8949   ;;
8950
8951  darwin*)
8952  # if libdl is installed we need to link against it
8953    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8954echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8955if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8956  echo $ECHO_N "(cached) $ECHO_C" >&6
8957else
8958  ac_check_lib_save_LIBS=$LIBS
8959LIBS="-ldl  $LIBS"
8960cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h.  */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h.  */
8966
8967/* Override any gcc2 internal prototype to avoid an error.  */
8968#ifdef __cplusplus
8969extern "C"
8970#endif
8971/* We use char because int might match the return type of a gcc2
8972   builtin and then its argument prototype would still apply.  */
8973char dlopen ();
8974int
8975main ()
8976{
8977dlopen ();
8978  ;
8979  return 0;
8980}
8981_ACEOF
8982rm -f conftest.$ac_objext conftest$ac_exeext
8983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8984  (eval $ac_link) 2>conftest.er1
8985  ac_status=$?
8986  grep -v '^ *+' conftest.er1 >conftest.err
8987  rm -f conftest.er1
8988  cat conftest.err >&5
8989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990  (exit $ac_status); } &&
8991         { ac_try='test -z "$ac_c_werror_flag"
8992                         || test ! -s conftest.err'
8993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994  (eval $ac_try) 2>&5
8995  ac_status=$?
8996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997  (exit $ac_status); }; } &&
8998         { ac_try='test -s conftest$ac_exeext'
8999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000  (eval $ac_try) 2>&5
9001  ac_status=$?
9002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003  (exit $ac_status); }; }; then
9004  ac_cv_lib_dl_dlopen=yes
9005else
9006  echo "$as_me: failed program was:" >&5
9007sed 's/^/| /' conftest.$ac_ext >&5
9008
9009ac_cv_lib_dl_dlopen=no
9010fi
9011rm -f conftest.err conftest.$ac_objext \
9012      conftest$ac_exeext conftest.$ac_ext
9013LIBS=$ac_check_lib_save_LIBS
9014fi
9015echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9016echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9017if test $ac_cv_lib_dl_dlopen = yes; then
9018  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9019else
9020
9021    lt_cv_dlopen="dyld"
9022    lt_cv_dlopen_libs=
9023    lt_cv_dlopen_self=yes
9024
9025fi
9026
9027   ;;
9028
9029  *)
9030    echo "$as_me:$LINENO: checking for shl_load" >&5
9031echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9032if test "${ac_cv_func_shl_load+set}" = set; then
9033  echo $ECHO_N "(cached) $ECHO_C" >&6
9034else
9035  cat >conftest.$ac_ext <<_ACEOF
9036/* confdefs.h.  */
9037_ACEOF
9038cat confdefs.h >>conftest.$ac_ext
9039cat >>conftest.$ac_ext <<_ACEOF
9040/* end confdefs.h.  */
9041/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9042   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9043#define shl_load innocuous_shl_load
9044
9045/* System header to define __stub macros and hopefully few prototypes,
9046    which can conflict with char shl_load (); below.
9047    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9048    <limits.h> exists even on freestanding compilers.  */
9049
9050#ifdef __STDC__
9051# include <limits.h>
9052#else
9053# include <assert.h>
9054#endif
9055
9056#undef shl_load
9057
9058/* Override any gcc2 internal prototype to avoid an error.  */
9059#ifdef __cplusplus
9060extern "C"
9061{
9062#endif
9063/* We use char because int might match the return type of a gcc2
9064   builtin and then its argument prototype would still apply.  */
9065char shl_load ();
9066/* The GNU C library defines this for functions which it implements
9067    to always fail with ENOSYS.  Some functions are actually named
9068    something starting with __ and the normal name is an alias.  */
9069#if defined (__stub_shl_load) || defined (__stub___shl_load)
9070choke me
9071#else
9072char (*f) () = shl_load;
9073#endif
9074#ifdef __cplusplus
9075}
9076#endif
9077
9078int
9079main ()
9080{
9081return f != shl_load;
9082  ;
9083  return 0;
9084}
9085_ACEOF
9086rm -f conftest.$ac_objext conftest$ac_exeext
9087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088  (eval $ac_link) 2>conftest.er1
9089  ac_status=$?
9090  grep -v '^ *+' conftest.er1 >conftest.err
9091  rm -f conftest.er1
9092  cat conftest.err >&5
9093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094  (exit $ac_status); } &&
9095         { ac_try='test -z "$ac_c_werror_flag"
9096                         || test ! -s conftest.err'
9097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098  (eval $ac_try) 2>&5
9099  ac_status=$?
9100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101  (exit $ac_status); }; } &&
9102         { ac_try='test -s conftest$ac_exeext'
9103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104  (eval $ac_try) 2>&5
9105  ac_status=$?
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); }; }; then
9108  ac_cv_func_shl_load=yes
9109else
9110  echo "$as_me: failed program was:" >&5
9111sed 's/^/| /' conftest.$ac_ext >&5
9112
9113ac_cv_func_shl_load=no
9114fi
9115rm -f conftest.err conftest.$ac_objext \
9116      conftest$ac_exeext conftest.$ac_ext
9117fi
9118echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9119echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9120if test $ac_cv_func_shl_load = yes; then
9121  lt_cv_dlopen="shl_load"
9122else
9123  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9124echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9125if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9126  echo $ECHO_N "(cached) $ECHO_C" >&6
9127else
9128  ac_check_lib_save_LIBS=$LIBS
9129LIBS="-ldld  $LIBS"
9130cat >conftest.$ac_ext <<_ACEOF
9131/* confdefs.h.  */
9132_ACEOF
9133cat confdefs.h >>conftest.$ac_ext
9134cat >>conftest.$ac_ext <<_ACEOF
9135/* end confdefs.h.  */
9136
9137/* Override any gcc2 internal prototype to avoid an error.  */
9138#ifdef __cplusplus
9139extern "C"
9140#endif
9141/* We use char because int might match the return type of a gcc2
9142   builtin and then its argument prototype would still apply.  */
9143char shl_load ();
9144int
9145main ()
9146{
9147shl_load ();
9148  ;
9149  return 0;
9150}
9151_ACEOF
9152rm -f conftest.$ac_objext conftest$ac_exeext
9153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9154  (eval $ac_link) 2>conftest.er1
9155  ac_status=$?
9156  grep -v '^ *+' conftest.er1 >conftest.err
9157  rm -f conftest.er1
9158  cat conftest.err >&5
9159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160  (exit $ac_status); } &&
9161         { ac_try='test -z "$ac_c_werror_flag"
9162                         || test ! -s conftest.err'
9163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164  (eval $ac_try) 2>&5
9165  ac_status=$?
9166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167  (exit $ac_status); }; } &&
9168         { ac_try='test -s conftest$ac_exeext'
9169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170  (eval $ac_try) 2>&5
9171  ac_status=$?
9172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173  (exit $ac_status); }; }; then
9174  ac_cv_lib_dld_shl_load=yes
9175else
9176  echo "$as_me: failed program was:" >&5
9177sed 's/^/| /' conftest.$ac_ext >&5
9178
9179ac_cv_lib_dld_shl_load=no
9180fi
9181rm -f conftest.err conftest.$ac_objext \
9182      conftest$ac_exeext conftest.$ac_ext
9183LIBS=$ac_check_lib_save_LIBS
9184fi
9185echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9186echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9187if test $ac_cv_lib_dld_shl_load = yes; then
9188  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9189else
9190  echo "$as_me:$LINENO: checking for dlopen" >&5
9191echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9192if test "${ac_cv_func_dlopen+set}" = set; then
9193  echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195  cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h.  */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h.  */
9201/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9202   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9203#define dlopen innocuous_dlopen
9204
9205/* System header to define __stub macros and hopefully few prototypes,
9206    which can conflict with char dlopen (); below.
9207    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9208    <limits.h> exists even on freestanding compilers.  */
9209
9210#ifdef __STDC__
9211# include <limits.h>
9212#else
9213# include <assert.h>
9214#endif
9215
9216#undef dlopen
9217
9218/* Override any gcc2 internal prototype to avoid an error.  */
9219#ifdef __cplusplus
9220extern "C"
9221{
9222#endif
9223/* We use char because int might match the return type of a gcc2
9224   builtin and then its argument prototype would still apply.  */
9225char dlopen ();
9226/* The GNU C library defines this for functions which it implements
9227    to always fail with ENOSYS.  Some functions are actually named
9228    something starting with __ and the normal name is an alias.  */
9229#if defined (__stub_dlopen) || defined (__stub___dlopen)
9230choke me
9231#else
9232char (*f) () = dlopen;
9233#endif
9234#ifdef __cplusplus
9235}
9236#endif
9237
9238int
9239main ()
9240{
9241return f != dlopen;
9242  ;
9243  return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext conftest$ac_exeext
9247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248  (eval $ac_link) 2>conftest.er1
9249  ac_status=$?
9250  grep -v '^ *+' conftest.er1 >conftest.err
9251  rm -f conftest.er1
9252  cat conftest.err >&5
9253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254  (exit $ac_status); } &&
9255         { ac_try='test -z "$ac_c_werror_flag"
9256                         || test ! -s conftest.err'
9257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9258  (eval $ac_try) 2>&5
9259  ac_status=$?
9260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261  (exit $ac_status); }; } &&
9262         { ac_try='test -s conftest$ac_exeext'
9263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264  (eval $ac_try) 2>&5
9265  ac_status=$?
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); }; }; then
9268  ac_cv_func_dlopen=yes
9269else
9270  echo "$as_me: failed program was:" >&5
9271sed 's/^/| /' conftest.$ac_ext >&5
9272
9273ac_cv_func_dlopen=no
9274fi
9275rm -f conftest.err conftest.$ac_objext \
9276      conftest$ac_exeext conftest.$ac_ext
9277fi
9278echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9279echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9280if test $ac_cv_func_dlopen = yes; then
9281  lt_cv_dlopen="dlopen"
9282else
9283  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9284echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9285if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9286  echo $ECHO_N "(cached) $ECHO_C" >&6
9287else
9288  ac_check_lib_save_LIBS=$LIBS
9289LIBS="-ldl  $LIBS"
9290cat >conftest.$ac_ext <<_ACEOF
9291/* confdefs.h.  */
9292_ACEOF
9293cat confdefs.h >>conftest.$ac_ext
9294cat >>conftest.$ac_ext <<_ACEOF
9295/* end confdefs.h.  */
9296
9297/* Override any gcc2 internal prototype to avoid an error.  */
9298#ifdef __cplusplus
9299extern "C"
9300#endif
9301/* We use char because int might match the return type of a gcc2
9302   builtin and then its argument prototype would still apply.  */
9303char dlopen ();
9304int
9305main ()
9306{
9307dlopen ();
9308  ;
9309  return 0;
9310}
9311_ACEOF
9312rm -f conftest.$ac_objext conftest$ac_exeext
9313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314  (eval $ac_link) 2>conftest.er1
9315  ac_status=$?
9316  grep -v '^ *+' conftest.er1 >conftest.err
9317  rm -f conftest.er1
9318  cat conftest.err >&5
9319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320  (exit $ac_status); } &&
9321         { ac_try='test -z "$ac_c_werror_flag"
9322                         || test ! -s conftest.err'
9323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324  (eval $ac_try) 2>&5
9325  ac_status=$?
9326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327  (exit $ac_status); }; } &&
9328         { ac_try='test -s conftest$ac_exeext'
9329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330  (eval $ac_try) 2>&5
9331  ac_status=$?
9332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333  (exit $ac_status); }; }; then
9334  ac_cv_lib_dl_dlopen=yes
9335else
9336  echo "$as_me: failed program was:" >&5
9337sed 's/^/| /' conftest.$ac_ext >&5
9338
9339ac_cv_lib_dl_dlopen=no
9340fi
9341rm -f conftest.err conftest.$ac_objext \
9342      conftest$ac_exeext conftest.$ac_ext
9343LIBS=$ac_check_lib_save_LIBS
9344fi
9345echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9346echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9347if test $ac_cv_lib_dl_dlopen = yes; then
9348  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9349else
9350  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9351echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9352if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9353  echo $ECHO_N "(cached) $ECHO_C" >&6
9354else
9355  ac_check_lib_save_LIBS=$LIBS
9356LIBS="-lsvld  $LIBS"
9357cat >conftest.$ac_ext <<_ACEOF
9358/* confdefs.h.  */
9359_ACEOF
9360cat confdefs.h >>conftest.$ac_ext
9361cat >>conftest.$ac_ext <<_ACEOF
9362/* end confdefs.h.  */
9363
9364/* Override any gcc2 internal prototype to avoid an error.  */
9365#ifdef __cplusplus
9366extern "C"
9367#endif
9368/* We use char because int might match the return type of a gcc2
9369   builtin and then its argument prototype would still apply.  */
9370char dlopen ();
9371int
9372main ()
9373{
9374dlopen ();
9375  ;
9376  return 0;
9377}
9378_ACEOF
9379rm -f conftest.$ac_objext conftest$ac_exeext
9380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381  (eval $ac_link) 2>conftest.er1
9382  ac_status=$?
9383  grep -v '^ *+' conftest.er1 >conftest.err
9384  rm -f conftest.er1
9385  cat conftest.err >&5
9386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387  (exit $ac_status); } &&
9388         { ac_try='test -z "$ac_c_werror_flag"
9389                         || test ! -s conftest.err'
9390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391  (eval $ac_try) 2>&5
9392  ac_status=$?
9393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394  (exit $ac_status); }; } &&
9395         { ac_try='test -s conftest$ac_exeext'
9396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397  (eval $ac_try) 2>&5
9398  ac_status=$?
9399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400  (exit $ac_status); }; }; then
9401  ac_cv_lib_svld_dlopen=yes
9402else
9403  echo "$as_me: failed program was:" >&5
9404sed 's/^/| /' conftest.$ac_ext >&5
9405
9406ac_cv_lib_svld_dlopen=no
9407fi
9408rm -f conftest.err conftest.$ac_objext \
9409      conftest$ac_exeext conftest.$ac_ext
9410LIBS=$ac_check_lib_save_LIBS
9411fi
9412echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9413echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9414if test $ac_cv_lib_svld_dlopen = yes; then
9415  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9416else
9417  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9418echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9419if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9420  echo $ECHO_N "(cached) $ECHO_C" >&6
9421else
9422  ac_check_lib_save_LIBS=$LIBS
9423LIBS="-ldld  $LIBS"
9424cat >conftest.$ac_ext <<_ACEOF
9425/* confdefs.h.  */
9426_ACEOF
9427cat confdefs.h >>conftest.$ac_ext
9428cat >>conftest.$ac_ext <<_ACEOF
9429/* end confdefs.h.  */
9430
9431/* Override any gcc2 internal prototype to avoid an error.  */
9432#ifdef __cplusplus
9433extern "C"
9434#endif
9435/* We use char because int might match the return type of a gcc2
9436   builtin and then its argument prototype would still apply.  */
9437char dld_link ();
9438int
9439main ()
9440{
9441dld_link ();
9442  ;
9443  return 0;
9444}
9445_ACEOF
9446rm -f conftest.$ac_objext conftest$ac_exeext
9447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448  (eval $ac_link) 2>conftest.er1
9449  ac_status=$?
9450  grep -v '^ *+' conftest.er1 >conftest.err
9451  rm -f conftest.er1
9452  cat conftest.err >&5
9453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454  (exit $ac_status); } &&
9455         { ac_try='test -z "$ac_c_werror_flag"
9456                         || test ! -s conftest.err'
9457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9458  (eval $ac_try) 2>&5
9459  ac_status=$?
9460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461  (exit $ac_status); }; } &&
9462         { ac_try='test -s conftest$ac_exeext'
9463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464  (eval $ac_try) 2>&5
9465  ac_status=$?
9466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467  (exit $ac_status); }; }; then
9468  ac_cv_lib_dld_dld_link=yes
9469else
9470  echo "$as_me: failed program was:" >&5
9471sed 's/^/| /' conftest.$ac_ext >&5
9472
9473ac_cv_lib_dld_dld_link=no
9474fi
9475rm -f conftest.err conftest.$ac_objext \
9476      conftest$ac_exeext conftest.$ac_ext
9477LIBS=$ac_check_lib_save_LIBS
9478fi
9479echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9480echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9481if test $ac_cv_lib_dld_dld_link = yes; then
9482  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9483fi
9484
9485
9486fi
9487
9488
9489fi
9490
9491
9492fi
9493
9494
9495fi
9496
9497
9498fi
9499
9500    ;;
9501  esac
9502
9503  if test "x$lt_cv_dlopen" != xno; then
9504    enable_dlopen=yes
9505  else
9506    enable_dlopen=no
9507  fi
9508
9509  case $lt_cv_dlopen in
9510  dlopen)
9511    save_CPPFLAGS="$CPPFLAGS"
9512    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9513
9514    save_LDFLAGS="$LDFLAGS"
9515    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9516
9517    save_LIBS="$LIBS"
9518    LIBS="$lt_cv_dlopen_libs $LIBS"
9519
9520    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9521echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9522if test "${lt_cv_dlopen_self+set}" = set; then
9523  echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525          if test "$cross_compiling" = yes; then :
9526  lt_cv_dlopen_self=cross
9527else
9528  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9529  lt_status=$lt_dlunknown
9530  cat > conftest.$ac_ext <<EOF
9531#line 9531 "configure"
9532#include "confdefs.h"
9533
9534#if HAVE_DLFCN_H
9535#include <dlfcn.h>
9536#endif
9537
9538#include <stdio.h>
9539
9540#ifdef RTLD_GLOBAL
9541#  define LT_DLGLOBAL           RTLD_GLOBAL
9542#else
9543#  ifdef DL_GLOBAL
9544#    define LT_DLGLOBAL         DL_GLOBAL
9545#  else
9546#    define LT_DLGLOBAL         0
9547#  endif
9548#endif
9549
9550/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9551   find out it does not work in some platform. */
9552#ifndef LT_DLLAZY_OR_NOW
9553#  ifdef RTLD_LAZY
9554#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9555#  else
9556#    ifdef DL_LAZY
9557#      define LT_DLLAZY_OR_NOW          DL_LAZY
9558#    else
9559#      ifdef RTLD_NOW
9560#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9561#      else
9562#        ifdef DL_NOW
9563#          define LT_DLLAZY_OR_NOW      DL_NOW
9564#        else
9565#          define LT_DLLAZY_OR_NOW      0
9566#        endif
9567#      endif
9568#    endif
9569#  endif
9570#endif
9571
9572#ifdef __cplusplus
9573extern "C" void exit (int);
9574#endif
9575
9576void fnord() { int i=42;}
9577int main ()
9578{
9579  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9580  int status = $lt_dlunknown;
9581
9582  if (self)
9583    {
9584      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9585      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9586      /* dlclose (self); */
9587    }
9588  else
9589    puts (dlerror ());
9590
9591    exit (status);
9592}
9593EOF
9594  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9595  (eval $ac_link) 2>&5
9596  ac_status=$?
9597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9599    (./conftest; exit; ) >&5 2>/dev/null
9600    lt_status=$?
9601    case x$lt_status in
9602      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9603      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9604      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9605    esac
9606  else :
9607    # compilation failed
9608    lt_cv_dlopen_self=no
9609  fi
9610fi
9611rm -fr conftest*
9612
9613
9614fi
9615echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9616echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9617
9618    if test "x$lt_cv_dlopen_self" = xyes; then
9619      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9620      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9621echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9622if test "${lt_cv_dlopen_self_static+set}" = set; then
9623  echo $ECHO_N "(cached) $ECHO_C" >&6
9624else
9625          if test "$cross_compiling" = yes; then :
9626  lt_cv_dlopen_self_static=cross
9627else
9628  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9629  lt_status=$lt_dlunknown
9630  cat > conftest.$ac_ext <<EOF
9631#line 9631 "configure"
9632#include "confdefs.h"
9633
9634#if HAVE_DLFCN_H
9635#include <dlfcn.h>
9636#endif
9637
9638#include <stdio.h>
9639
9640#ifdef RTLD_GLOBAL
9641#  define LT_DLGLOBAL           RTLD_GLOBAL
9642#else
9643#  ifdef DL_GLOBAL
9644#    define LT_DLGLOBAL         DL_GLOBAL
9645#  else
9646#    define LT_DLGLOBAL         0
9647#  endif
9648#endif
9649
9650/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9651   find out it does not work in some platform. */
9652#ifndef LT_DLLAZY_OR_NOW
9653#  ifdef RTLD_LAZY
9654#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9655#  else
9656#    ifdef DL_LAZY
9657#      define LT_DLLAZY_OR_NOW          DL_LAZY
9658#    else
9659#      ifdef RTLD_NOW
9660#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9661#      else
9662#        ifdef DL_NOW
9663#          define LT_DLLAZY_OR_NOW      DL_NOW
9664#        else
9665#          define LT_DLLAZY_OR_NOW      0
9666#        endif
9667#      endif
9668#    endif
9669#  endif
9670#endif
9671
9672#ifdef __cplusplus
9673extern "C" void exit (int);
9674#endif
9675
9676void fnord() { int i=42;}
9677int main ()
9678{
9679  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9680  int status = $lt_dlunknown;
9681
9682  if (self)
9683    {
9684      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9685      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9686      /* dlclose (self); */
9687    }
9688  else
9689    puts (dlerror ());
9690
9691    exit (status);
9692}
9693EOF
9694  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695  (eval $ac_link) 2>&5
9696  ac_status=$?
9697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9699    (./conftest; exit; ) >&5 2>/dev/null
9700    lt_status=$?
9701    case x$lt_status in
9702      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9703      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9704      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9705    esac
9706  else :
9707    # compilation failed
9708    lt_cv_dlopen_self_static=no
9709  fi
9710fi
9711rm -fr conftest*
9712
9713
9714fi
9715echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9716echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9717    fi
9718
9719    CPPFLAGS="$save_CPPFLAGS"
9720    LDFLAGS="$save_LDFLAGS"
9721    LIBS="$save_LIBS"
9722    ;;
9723  esac
9724
9725  case $lt_cv_dlopen_self in
9726  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9727  *) enable_dlopen_self=unknown ;;
9728  esac
9729
9730  case $lt_cv_dlopen_self_static in
9731  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9732  *) enable_dlopen_self_static=unknown ;;
9733  esac
9734fi
9735
9736
9737# Report which library types will actually be built
9738echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9739echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9740echo "$as_me:$LINENO: result: $can_build_shared" >&5
9741echo "${ECHO_T}$can_build_shared" >&6
9742
9743echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9744echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9745test "$can_build_shared" = "no" && enable_shared=no
9746
9747# On AIX, shared libraries and static libraries use the same namespace, and
9748# are all built from PIC.
9749case $host_os in
9750aix3*)
9751  test "$enable_shared" = yes && enable_static=no
9752  if test -n "$RANLIB"; then
9753    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9754    postinstall_cmds='$RANLIB $lib'
9755  fi
9756  ;;
9757
9758aix4* | aix5*)
9759  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9760    test "$enable_shared" = yes && enable_static=no
9761  fi
9762    ;;
9763esac
9764echo "$as_me:$LINENO: result: $enable_shared" >&5
9765echo "${ECHO_T}$enable_shared" >&6
9766
9767echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9768echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9769# Make sure either enable_shared or enable_static is yes.
9770test "$enable_shared" = yes || enable_static=yes
9771echo "$as_me:$LINENO: result: $enable_static" >&5
9772echo "${ECHO_T}$enable_static" >&6
9773
9774# The else clause should only fire when bootstrapping the
9775# libtool distribution, otherwise you forgot to ship ltmain.sh
9776# with your package, and you will get complaints that there are
9777# no rules to generate ltmain.sh.
9778if test -f "$ltmain"; then
9779  # See if we are running on zsh, and set the options which allow our commands through
9780  # without removal of \ escapes.
9781  if test -n "${ZSH_VERSION+set}" ; then
9782    setopt NO_GLOB_SUBST
9783  fi
9784  # Now quote all the things that may contain metacharacters while being
9785  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9786  # variables and quote the copies for generation of the libtool script.
9787  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9788    SED SHELL STRIP \
9789    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9790    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9791    deplibs_check_method reload_flag reload_cmds need_locks \
9792    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9793    lt_cv_sys_global_symbol_to_c_name_address \
9794    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9795    old_postinstall_cmds old_postuninstall_cmds \
9796    compiler \
9797    CC \
9798    LD \
9799    lt_prog_compiler_wl \
9800    lt_prog_compiler_pic \
9801    lt_prog_compiler_static \
9802    lt_prog_compiler_no_builtin_flag \
9803    export_dynamic_flag_spec \
9804    thread_safe_flag_spec \
9805    whole_archive_flag_spec \
9806    enable_shared_with_static_runtimes \
9807    old_archive_cmds \
9808    old_archive_from_new_cmds \
9809    predep_objects \
9810    postdep_objects \
9811    predeps \
9812    postdeps \
9813    compiler_lib_search_path \
9814    archive_cmds \
9815    archive_expsym_cmds \
9816    postinstall_cmds \
9817    postuninstall_cmds \
9818    old_archive_from_expsyms_cmds \
9819    allow_undefined_flag \
9820    no_undefined_flag \
9821    export_symbols_cmds \
9822    hardcode_libdir_flag_spec \
9823    hardcode_libdir_flag_spec_ld \
9824    hardcode_libdir_separator \
9825    hardcode_automatic \
9826    module_cmds \
9827    module_expsym_cmds \
9828    lt_cv_prog_compiler_c_o \
9829    exclude_expsyms \
9830    include_expsyms; do
9831
9832    case $var in
9833    old_archive_cmds | \
9834    old_archive_from_new_cmds | \
9835    archive_cmds | \
9836    archive_expsym_cmds | \
9837    module_cmds | \
9838    module_expsym_cmds | \
9839    old_archive_from_expsyms_cmds | \
9840    export_symbols_cmds | \
9841    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9842    postinstall_cmds | postuninstall_cmds | \
9843    old_postinstall_cmds | old_postuninstall_cmds | \
9844    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9845      # Double-quote double-evaled strings.
9846      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9847      ;;
9848    *)
9849      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9850      ;;
9851    esac
9852  done
9853
9854  case $lt_echo in
9855  *'\$0 --fallback-echo"')
9856    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9857    ;;
9858  esac
9859
9860cfgfile="${ofile}T"
9861  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9862  $rm -f "$cfgfile"
9863  { echo "$as_me:$LINENO: creating $ofile" >&5
9864echo "$as_me: creating $ofile" >&6;}
9865
9866  cat <<__EOF__ >> "$cfgfile"
9867#! $SHELL
9868
9869# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9870# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9871# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9872#
9873# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9874# Free Software Foundation, Inc.
9875#
9876# This file is part of GNU Libtool:
9877# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9878#
9879# This program is free software; you can redistribute it and/or modify
9880# it under the terms of the GNU General Public License as published by
9881# the Free Software Foundation; either version 2 of the License, or
9882# (at your option) any later version.
9883#
9884# This program is distributed in the hope that it will be useful, but
9885# WITHOUT ANY WARRANTY; without even the implied warranty of
9886# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9887# General Public License for more details.
9888#
9889# You should have received a copy of the GNU General Public License
9890# along with this program; if not, write to the Free Software
9891# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9892#
9893# As a special exception to the GNU General Public License, if you
9894# distribute this file as part of a program that contains a
9895# configuration script generated by Autoconf, you may include it under
9896# the same distribution terms that you use for the rest of that program.
9897
9898# A sed program that does not truncate output.
9899SED=$lt_SED
9900
9901# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9902Xsed="$SED -e 1s/^X//"
9903
9904# The HP-UX ksh and POSIX shell print the target directory to stdout
9905# if CDPATH is set.
9906(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9907
9908# The names of the tagged configurations supported by this script.
9909available_tags=
9910
9911# ### BEGIN LIBTOOL CONFIG
9912
9913# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9914
9915# Shell to use when invoking shell scripts.
9916SHELL=$lt_SHELL
9917
9918# Whether or not to build shared libraries.
9919build_libtool_libs=$enable_shared
9920
9921# Whether or not to build static libraries.
9922build_old_libs=$enable_static
9923
9924# Whether or not to add -lc for building shared libraries.
9925build_libtool_need_lc=$archive_cmds_need_lc
9926
9927# Whether or not to disallow shared libs when runtime libs are static
9928allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9929
9930# Whether or not to optimize for fast installation.
9931fast_install=$enable_fast_install
9932
9933# The host system.
9934host_alias=$host_alias
9935host=$host
9936host_os=$host_os
9937
9938# The build system.
9939build_alias=$build_alias
9940build=$build
9941build_os=$build_os
9942
9943# An echo program that does not interpret backslashes.
9944echo=$lt_echo
9945
9946# The archiver.
9947AR=$lt_AR
9948AR_FLAGS=$lt_AR_FLAGS
9949
9950# A C compiler.
9951LTCC=$lt_LTCC
9952
9953# LTCC compiler flags.
9954LTCFLAGS=$lt_LTCFLAGS
9955
9956# A language-specific compiler.
9957CC=$lt_compiler
9958
9959# Is the compiler the GNU C compiler?
9960with_gcc=$GCC
9961
9962# An ERE matcher.
9963EGREP=$lt_EGREP
9964
9965# The linker used to build libraries.
9966LD=$lt_LD
9967
9968# Whether we need hard or soft links.
9969LN_S=$lt_LN_S
9970
9971# A BSD-compatible nm program.
9972NM=$lt_NM
9973
9974# A symbol stripping program
9975STRIP=$lt_STRIP
9976
9977# Used to examine libraries when file_magic_cmd begins "file"
9978MAGIC_CMD=$MAGIC_CMD
9979
9980# Used on cygwin: DLL creation program.
9981DLLTOOL="$DLLTOOL"
9982
9983# Used on cygwin: object dumper.
9984OBJDUMP="$OBJDUMP"
9985
9986# Used on cygwin: assembler.
9987AS="$AS"
9988
9989# The name of the directory that contains temporary libtool files.
9990objdir=$objdir
9991
9992# How to create reloadable object files.
9993reload_flag=$lt_reload_flag
9994reload_cmds=$lt_reload_cmds
9995
9996# How to pass a linker flag through the compiler.
9997wl=$lt_lt_prog_compiler_wl
9998
9999# Object file suffix (normally "o").
10000objext="$ac_objext"
10001
10002# Old archive suffix (normally "a").
10003libext="$libext"
10004
10005# Shared library suffix (normally ".so").
10006shrext_cmds='$shrext_cmds'
10007
10008# Executable file suffix (normally "").
10009exeext="$exeext"
10010
10011# Additional compiler flags for building library objects.
10012pic_flag=$lt_lt_prog_compiler_pic
10013pic_mode=$pic_mode
10014
10015# What is the maximum length of a command?
10016max_cmd_len=$lt_cv_sys_max_cmd_len
10017
10018# Does compiler simultaneously support -c and -o options?
10019compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10020
10021# Must we lock files when doing compilation?
10022need_locks=$lt_need_locks
10023
10024# Do we need the lib prefix for modules?
10025need_lib_prefix=$need_lib_prefix
10026
10027# Do we need a version for libraries?
10028need_version=$need_version
10029
10030# Whether dlopen is supported.
10031dlopen_support=$enable_dlopen
10032
10033# Whether dlopen of programs is supported.
10034dlopen_self=$enable_dlopen_self
10035
10036# Whether dlopen of statically linked programs is supported.
10037dlopen_self_static=$enable_dlopen_self_static
10038
10039# Compiler flag to prevent dynamic linking.
10040link_static_flag=$lt_lt_prog_compiler_static
10041
10042# Compiler flag to turn off builtin functions.
10043no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10044
10045# Compiler flag to allow reflexive dlopens.
10046export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10047
10048# Compiler flag to generate shared objects directly from archives.
10049whole_archive_flag_spec=$lt_whole_archive_flag_spec
10050
10051# Compiler flag to generate thread-safe objects.
10052thread_safe_flag_spec=$lt_thread_safe_flag_spec
10053
10054# Library versioning type.
10055version_type=$version_type
10056
10057# Format of library name prefix.
10058libname_spec=$lt_libname_spec
10059
10060# List of archive names.  First name is the real one, the rest are links.
10061# The last name is the one that the linker finds with -lNAME.
10062library_names_spec=$lt_library_names_spec
10063
10064# The coded name of the library, if different from the real name.
10065soname_spec=$lt_soname_spec
10066
10067# Commands used to build and install an old-style archive.
10068RANLIB=$lt_RANLIB
10069old_archive_cmds=$lt_old_archive_cmds
10070old_postinstall_cmds=$lt_old_postinstall_cmds
10071old_postuninstall_cmds=$lt_old_postuninstall_cmds
10072
10073# Create an old-style archive from a shared archive.
10074old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10075
10076# Create a temporary old-style archive to link instead of a shared archive.
10077old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10078
10079# Commands used to build and install a shared archive.
10080archive_cmds=$lt_archive_cmds
10081archive_expsym_cmds=$lt_archive_expsym_cmds
10082postinstall_cmds=$lt_postinstall_cmds
10083postuninstall_cmds=$lt_postuninstall_cmds
10084
10085# Commands used to build a loadable module (assumed same as above if empty)
10086module_cmds=$lt_module_cmds
10087module_expsym_cmds=$lt_module_expsym_cmds
10088
10089# Commands to strip libraries.
10090old_striplib=$lt_old_striplib
10091striplib=$lt_striplib
10092
10093# Dependencies to place before the objects being linked to create a
10094# shared library.
10095predep_objects=$lt_predep_objects
10096
10097# Dependencies to place after the objects being linked to create a
10098# shared library.
10099postdep_objects=$lt_postdep_objects
10100
10101# Dependencies to place before the objects being linked to create a
10102# shared library.
10103predeps=$lt_predeps
10104
10105# Dependencies to place after the objects being linked to create a
10106# shared library.
10107postdeps=$lt_postdeps
10108
10109# The library search path used internally by the compiler when linking
10110# a shared library.
10111compiler_lib_search_path=$lt_compiler_lib_search_path
10112
10113# Method to check whether dependent libraries are shared objects.
10114deplibs_check_method=$lt_deplibs_check_method
10115
10116# Command to use when deplibs_check_method == file_magic.
10117file_magic_cmd=$lt_file_magic_cmd
10118
10119# Flag that allows shared libraries with undefined symbols to be built.
10120allow_undefined_flag=$lt_allow_undefined_flag
10121
10122# Flag that forces no undefined symbols.
10123no_undefined_flag=$lt_no_undefined_flag
10124
10125# Commands used to finish a libtool library installation in a directory.
10126finish_cmds=$lt_finish_cmds
10127
10128# Same as above, but a single script fragment to be evaled but not shown.
10129finish_eval=$lt_finish_eval
10130
10131# Take the output of nm and produce a listing of raw symbols and C names.
10132global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10133
10134# Transform the output of nm in a proper C declaration
10135global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10136
10137# Transform the output of nm in a C name address pair
10138global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10139
10140# This is the shared library runtime path variable.
10141runpath_var=$runpath_var
10142
10143# This is the shared library path variable.
10144shlibpath_var=$shlibpath_var
10145
10146# Is shlibpath searched before the hard-coded library search path?
10147shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10148
10149# How to hardcode a shared library path into an executable.
10150hardcode_action=$hardcode_action
10151
10152# Whether we should hardcode library paths into libraries.
10153hardcode_into_libs=$hardcode_into_libs
10154
10155# Flag to hardcode \$libdir into a binary during linking.
10156# This must work even if \$libdir does not exist.
10157hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10158
10159# If ld is used when linking, flag to hardcode \$libdir into
10160# a binary during linking. This must work even if \$libdir does
10161# not exist.
10162hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10163
10164# Whether we need a single -rpath flag with a separated argument.
10165hardcode_libdir_separator=$lt_hardcode_libdir_separator
10166
10167# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10168# resulting binary.
10169hardcode_direct=$hardcode_direct
10170
10171# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10172# resulting binary.
10173hardcode_minus_L=$hardcode_minus_L
10174
10175# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10176# the resulting binary.
10177hardcode_shlibpath_var=$hardcode_shlibpath_var
10178
10179# Set to yes if building a shared library automatically hardcodes DIR into the library
10180# and all subsequent libraries and executables linked against it.
10181hardcode_automatic=$hardcode_automatic
10182
10183# Variables whose values should be saved in libtool wrapper scripts and
10184# restored at relink time.
10185variables_saved_for_relink="$variables_saved_for_relink"
10186
10187# Whether libtool must link a program against all its dependency libraries.
10188link_all_deplibs=$link_all_deplibs
10189
10190# Compile-time system search path for libraries
10191sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10192
10193# Run-time system search path for libraries
10194sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10195
10196# Fix the shell variable \$srcfile for the compiler.
10197fix_srcfile_path="$fix_srcfile_path"
10198
10199# Set to yes if exported symbols are required.
10200always_export_symbols=$always_export_symbols
10201
10202# The commands to list exported symbols.
10203export_symbols_cmds=$lt_export_symbols_cmds
10204
10205# The commands to extract the exported symbol list from a shared archive.
10206extract_expsyms_cmds=$lt_extract_expsyms_cmds
10207
10208# Symbols that should not be listed in the preloaded symbols.
10209exclude_expsyms=$lt_exclude_expsyms
10210
10211# Symbols that must always be exported.
10212include_expsyms=$lt_include_expsyms
10213
10214# ### END LIBTOOL CONFIG
10215
10216__EOF__
10217
10218
10219  case $host_os in
10220  aix3*)
10221    cat <<\EOF >> "$cfgfile"
10222
10223# AIX sometimes has problems with the GCC collect2 program.  For some
10224# reason, if we set the COLLECT_NAMES environment variable, the problems
10225# vanish in a puff of smoke.
10226if test "X${COLLECT_NAMES+set}" != Xset; then
10227  COLLECT_NAMES=
10228  export COLLECT_NAMES
10229fi
10230EOF
10231    ;;
10232  esac
10233
10234  # We use sed instead of cat because bash on DJGPP gets confused if
10235  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10236  # text mode, it properly converts lines to CR/LF.  This bash problem
10237  # is reportedly fixed, but why not run on old versions too?
10238  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10239
10240  mv -f "$cfgfile" "$ofile" || \
10241    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10242  chmod +x "$ofile"
10243
10244else
10245  # If there is no Makefile yet, we rely on a make rule to execute
10246  # `config.status --recheck' to rerun these tests and create the
10247  # libtool script then.
10248  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10249  if test -f "$ltmain_in"; then
10250    test -f Makefile && make "$ltmain"
10251  fi
10252fi
10253
10254
10255ac_ext=c
10256ac_cpp='$CPP $CPPFLAGS'
10257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10259ac_compiler_gnu=$ac_cv_c_compiler_gnu
10260
10261CC="$lt_save_CC"
10262
10263
10264# Check whether --with-tags or --without-tags was given.
10265if test "${with_tags+set}" = set; then
10266  withval="$with_tags"
10267  tagnames="$withval"
10268fi;
10269
10270if test -f "$ltmain" && test -n "$tagnames"; then
10271  if test ! -f "${ofile}"; then
10272    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10273echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10274  fi
10275
10276  if test -z "$LTCC"; then
10277    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10278    if test -z "$LTCC"; then
10279      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10280echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10281    else
10282      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10283echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10284    fi
10285  fi
10286  if test -z "$LTCFLAGS"; then
10287    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10288  fi
10289
10290  # Extract list of available tagged configurations in $ofile.
10291  # Note that this assumes the entire list is on one line.
10292  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10293
10294  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10295  for tagname in $tagnames; do
10296    IFS="$lt_save_ifs"
10297    # Check whether tagname contains only valid characters
10298    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10299    "") ;;
10300    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10301echo "$as_me: error: invalid tag name: $tagname" >&2;}
10302   { (exit 1); exit 1; }; }
10303        ;;
10304    esac
10305
10306    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10307    then
10308      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10309echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10310   { (exit 1); exit 1; }; }
10311    fi
10312
10313    # Update the list of available tags.
10314    if test -n "$tagname"; then
10315      echo appending configuration tag \"$tagname\" to $ofile
10316
10317      case $tagname in
10318      CXX)
10319        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10320            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10321            (test "X$CXX" != "Xg++"))) ; then
10322          ac_ext=cc
10323ac_cpp='$CXXCPP $CPPFLAGS'
10324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10327
10328
10329
10330
10331archive_cmds_need_lc_CXX=no
10332allow_undefined_flag_CXX=
10333always_export_symbols_CXX=no
10334archive_expsym_cmds_CXX=
10335export_dynamic_flag_spec_CXX=
10336hardcode_direct_CXX=no
10337hardcode_libdir_flag_spec_CXX=
10338hardcode_libdir_flag_spec_ld_CXX=
10339hardcode_libdir_separator_CXX=
10340hardcode_minus_L_CXX=no
10341hardcode_shlibpath_var_CXX=unsupported
10342hardcode_automatic_CXX=no
10343module_cmds_CXX=
10344module_expsym_cmds_CXX=
10345link_all_deplibs_CXX=unknown
10346old_archive_cmds_CXX=$old_archive_cmds
10347no_undefined_flag_CXX=
10348whole_archive_flag_spec_CXX=
10349enable_shared_with_static_runtimes_CXX=no
10350
10351# Dependencies to place before and after the object being linked:
10352predep_objects_CXX=
10353postdep_objects_CXX=
10354predeps_CXX=
10355postdeps_CXX=
10356compiler_lib_search_path_CXX=
10357
10358# Source file extension for C++ test sources.
10359ac_ext=cpp
10360
10361# Object file extension for compiled C++ test sources.
10362objext=o
10363objext_CXX=$objext
10364
10365# Code to be used in simple compile tests
10366lt_simple_compile_test_code="int some_variable = 0;\n"
10367
10368# Code to be used in simple link tests
10369lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10370
10371# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10372
10373# If no C compiler was specified, use CC.
10374LTCC=${LTCC-"$CC"}
10375
10376# If no C compiler flags were specified, use CFLAGS.
10377LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10378
10379# Allow CC to be a program name with arguments.
10380compiler=$CC
10381
10382
10383# save warnings/boilerplate of simple test code
10384ac_outfile=conftest.$ac_objext
10385printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10386eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10387_lt_compiler_boilerplate=`cat conftest.err`
10388$rm conftest*
10389
10390ac_outfile=conftest.$ac_objext
10391printf "$lt_simple_link_test_code" >conftest.$ac_ext
10392eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10393_lt_linker_boilerplate=`cat conftest.err`
10394$rm conftest*
10395
10396
10397# Allow CC to be a program name with arguments.
10398lt_save_CC=$CC
10399lt_save_LD=$LD
10400lt_save_GCC=$GCC
10401GCC=$GXX
10402lt_save_with_gnu_ld=$with_gnu_ld
10403lt_save_path_LD=$lt_cv_path_LD
10404if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10405  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10406else
10407  $as_unset lt_cv_prog_gnu_ld
10408fi
10409if test -n "${lt_cv_path_LDCXX+set}"; then
10410  lt_cv_path_LD=$lt_cv_path_LDCXX
10411else
10412  $as_unset lt_cv_path_LD
10413fi
10414test -z "${LDCXX+set}" || LD=$LDCXX
10415CC=${CXX-"c++"}
10416compiler=$CC
10417compiler_CXX=$CC
10418for cc_temp in $compiler""; do
10419  case $cc_temp in
10420    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10421    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10422    \-*) ;;
10423    *) break;;
10424  esac
10425done
10426cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10427
10428
10429# We don't want -fno-exception wen compiling C++ code, so set the
10430# no_builtin_flag separately
10431if test "$GXX" = yes; then
10432  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10433else
10434  lt_prog_compiler_no_builtin_flag_CXX=
10435fi
10436
10437if test "$GXX" = yes; then
10438  # Set up default GNU C++ configuration
10439
10440
10441# Check whether --with-gnu-ld or --without-gnu-ld was given.
10442if test "${with_gnu_ld+set}" = set; then
10443  withval="$with_gnu_ld"
10444  test "$withval" = no || with_gnu_ld=yes
10445else
10446  with_gnu_ld=no
10447fi;
10448ac_prog=ld
10449if test "$GCC" = yes; then
10450  # Check if gcc -print-prog-name=ld gives a path.
10451  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10452echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10453  case $host in
10454  *-*-mingw*)
10455    # gcc leaves a trailing carriage return which upsets mingw
10456    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10457  *)
10458    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10459  esac
10460  case $ac_prog in
10461    # Accept absolute paths.
10462    [\\/]* | ?:[\\/]*)
10463      re_direlt='/[^/][^/]*/\.\./'
10464      # Canonicalize the pathname of ld
10465      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10466      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10467        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10468      done
10469      test -z "$LD" && LD="$ac_prog"
10470      ;;
10471  "")
10472    # If it fails, then pretend we aren't using GCC.
10473    ac_prog=ld
10474    ;;
10475  *)
10476    # If it is relative, then search for the first ld in PATH.
10477    with_gnu_ld=unknown
10478    ;;
10479  esac
10480elif test "$with_gnu_ld" = yes; then
10481  echo "$as_me:$LINENO: checking for GNU ld" >&5
10482echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10483else
10484  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10485echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10486fi
10487if test "${lt_cv_path_LD+set}" = set; then
10488  echo $ECHO_N "(cached) $ECHO_C" >&6
10489else
10490  if test -z "$LD"; then
10491  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10492  for ac_dir in $PATH; do
10493    IFS="$lt_save_ifs"
10494    test -z "$ac_dir" && ac_dir=.
10495    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10496      lt_cv_path_LD="$ac_dir/$ac_prog"
10497      # Check to see if the program is GNU ld.  I'd rather use --version,
10498      # but apparently some variants of GNU ld only accept -v.
10499      # Break only if it was the GNU/non-GNU ld that we prefer.
10500      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10501      *GNU* | *'with BFD'*)
10502        test "$with_gnu_ld" != no && break
10503        ;;
10504      *)
10505        test "$with_gnu_ld" != yes && break
10506        ;;
10507      esac
10508    fi
10509  done
10510  IFS="$lt_save_ifs"
10511else
10512  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10513fi
10514fi
10515
10516LD="$lt_cv_path_LD"
10517if test -n "$LD"; then
10518  echo "$as_me:$LINENO: result: $LD" >&5
10519echo "${ECHO_T}$LD" >&6
10520else
10521  echo "$as_me:$LINENO: result: no" >&5
10522echo "${ECHO_T}no" >&6
10523fi
10524test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10525echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10526   { (exit 1); exit 1; }; }
10527echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10528echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10529if test "${lt_cv_prog_gnu_ld+set}" = set; then
10530  echo $ECHO_N "(cached) $ECHO_C" >&6
10531else
10532  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10533case `$LD -v 2>&1 </dev/null` in
10534*GNU* | *'with BFD'*)
10535  lt_cv_prog_gnu_ld=yes
10536  ;;
10537*)
10538  lt_cv_prog_gnu_ld=no
10539  ;;
10540esac
10541fi
10542echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10543echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10544with_gnu_ld=$lt_cv_prog_gnu_ld
10545
10546
10547
10548  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10549  # archiving commands below assume that GNU ld is being used.
10550  if test "$with_gnu_ld" = yes; then
10551    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10552    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'
10553
10554    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10555    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10556
10557    # If archive_cmds runs LD, not CC, wlarc should be empty
10558    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10559    #     investigate it a little bit more. (MM)
10560    wlarc='${wl}'
10561
10562    # ancient GNU ld didn't support --whole-archive et. al.
10563    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10564        grep 'no-whole-archive' > /dev/null; then
10565      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10566    else
10567      whole_archive_flag_spec_CXX=
10568    fi
10569  else
10570    with_gnu_ld=no
10571    wlarc=
10572
10573    # A generic and very simple default shared library creation
10574    # command for GNU C++ for the case where it uses the native
10575    # linker, instead of GNU ld.  If possible, this setting should
10576    # overridden to take advantage of the native linker features on
10577    # the platform it is being used on.
10578    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10579  fi
10580
10581  # Commands to make compiler produce verbose output that lists
10582  # what "hidden" libraries, object files and flags are used when
10583  # linking a shared library.
10584  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10585
10586else
10587  GXX=no
10588  with_gnu_ld=no
10589  wlarc=
10590fi
10591
10592# PORTME: fill in a description of your system's C++ link characteristics
10593echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10594echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10595ld_shlibs_CXX=yes
10596case $host_os in
10597  aix3*)
10598    # FIXME: insert proper C++ library support
10599    ld_shlibs_CXX=no
10600    ;;
10601  aix4* | aix5*)
10602    if test "$host_cpu" = ia64; then
10603      # On IA64, the linker does run time linking by default, so we don't
10604      # have to do anything special.
10605      aix_use_runtimelinking=no
10606      exp_sym_flag='-Bexport'
10607      no_entry_flag=""
10608    else
10609      aix_use_runtimelinking=no
10610
10611      # Test if we are trying to use run time linking or normal
10612      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10613      # need to do runtime linking.
10614      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10615        for ld_flag in $LDFLAGS; do
10616          case $ld_flag in
10617          *-brtl*)
10618            aix_use_runtimelinking=yes
10619            break
10620            ;;
10621          esac
10622        done
10623        ;;
10624      esac
10625
10626      exp_sym_flag='-bexport'
10627      no_entry_flag='-bnoentry'
10628    fi
10629
10630    # When large executables or shared objects are built, AIX ld can
10631    # have problems creating the table of contents.  If linking a library
10632    # or program results in "error TOC overflow" add -mminimal-toc to
10633    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10634    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10635
10636    archive_cmds_CXX=''
10637    hardcode_direct_CXX=yes
10638    hardcode_libdir_separator_CXX=':'
10639    link_all_deplibs_CXX=yes
10640
10641    if test "$GXX" = yes; then
10642      case $host_os in aix4.[012]|aix4.[012].*)
10643      # We only want to do this on AIX 4.2 and lower, the check
10644      # below for broken collect2 doesn't work under 4.3+
10645        collect2name=`${CC} -print-prog-name=collect2`
10646        if test -f "$collect2name" && \
10647           strings "$collect2name" | grep resolve_lib_name >/dev/null
10648        then
10649          # We have reworked collect2
10650          hardcode_direct_CXX=yes
10651        else
10652          # We have old collect2
10653          hardcode_direct_CXX=unsupported
10654          # It fails to find uninstalled libraries when the uninstalled
10655          # path is not listed in the libpath.  Setting hardcode_minus_L
10656          # to unsupported forces relinking
10657          hardcode_minus_L_CXX=yes
10658          hardcode_libdir_flag_spec_CXX='-L$libdir'
10659          hardcode_libdir_separator_CXX=
10660        fi
10661        ;;
10662      esac
10663      shared_flag='-shared'
10664      if test "$aix_use_runtimelinking" = yes; then
10665        shared_flag="$shared_flag "'${wl}-G'
10666      fi
10667    else
10668      # not using gcc
10669      if test "$host_cpu" = ia64; then
10670        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10671        # chokes on -Wl,-G. The following line is correct:
10672        shared_flag='-G'
10673      else
10674        if test "$aix_use_runtimelinking" = yes; then
10675          shared_flag='${wl}-G'
10676        else
10677          shared_flag='${wl}-bM:SRE'
10678        fi
10679      fi
10680    fi
10681
10682    # It seems that -bexpall does not export symbols beginning with
10683    # underscore (_), so it is better to generate a list of symbols to export.
10684    always_export_symbols_CXX=yes
10685    if test "$aix_use_runtimelinking" = yes; then
10686      # Warning - without using the other runtime loading flags (-brtl),
10687      # -berok will link without error, but may produce a broken library.
10688      allow_undefined_flag_CXX='-berok'
10689      # Determine the default libpath from the value encoded in an empty executable.
10690      cat >conftest.$ac_ext <<_ACEOF
10691/* confdefs.h.  */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
10695/* end confdefs.h.  */
10696
10697int
10698main ()
10699{
10700
10701  ;
10702  return 0;
10703}
10704_ACEOF
10705rm -f conftest.$ac_objext conftest$ac_exeext
10706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10707  (eval $ac_link) 2>conftest.er1
10708  ac_status=$?
10709  grep -v '^ *+' conftest.er1 >conftest.err
10710  rm -f conftest.er1
10711  cat conftest.err >&5
10712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713  (exit $ac_status); } &&
10714         { ac_try='test -z "$ac_cxx_werror_flag"
10715                         || test ! -s conftest.err'
10716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717  (eval $ac_try) 2>&5
10718  ac_status=$?
10719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720  (exit $ac_status); }; } &&
10721         { ac_try='test -s conftest$ac_exeext'
10722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723  (eval $ac_try) 2>&5
10724  ac_status=$?
10725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726  (exit $ac_status); }; }; then
10727
10728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10729}'`
10730# Check for a 64-bit object if we didn't find anything.
10731if 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; }
10732}'`; fi
10733else
10734  echo "$as_me: failed program was:" >&5
10735sed 's/^/| /' conftest.$ac_ext >&5
10736
10737fi
10738rm -f conftest.err conftest.$ac_objext \
10739      conftest$ac_exeext conftest.$ac_ext
10740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10741
10742      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10743
10744      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10745     else
10746      if test "$host_cpu" = ia64; then
10747        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10748        allow_undefined_flag_CXX="-z nodefs"
10749        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10750      else
10751        # Determine the default libpath from the value encoded in an empty executable.
10752        cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h.  */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h.  */
10758
10759int
10760main ()
10761{
10762
10763  ;
10764  return 0;
10765}
10766_ACEOF
10767rm -f conftest.$ac_objext conftest$ac_exeext
10768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769  (eval $ac_link) 2>conftest.er1
10770  ac_status=$?
10771  grep -v '^ *+' conftest.er1 >conftest.err
10772  rm -f conftest.er1
10773  cat conftest.err >&5
10774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775  (exit $ac_status); } &&
10776         { ac_try='test -z "$ac_cxx_werror_flag"
10777                         || test ! -s conftest.err'
10778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779  (eval $ac_try) 2>&5
10780  ac_status=$?
10781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782  (exit $ac_status); }; } &&
10783         { ac_try='test -s conftest$ac_exeext'
10784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785  (eval $ac_try) 2>&5
10786  ac_status=$?
10787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788  (exit $ac_status); }; }; then
10789
10790aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10791}'`
10792# Check for a 64-bit object if we didn't find anything.
10793if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/nul