source: ThirdParty/Lapack/trunk/configure @ 157

Last change on this file since 157 was 157, checked in by andreasw, 15 years ago

added files reuiqred for CoinFactorization?

  • Property svn:executable set to *
File size: 695.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 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='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyLapack 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.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 CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE 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 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_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyLapack 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyLapack 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-lapack compile this project (Lapack) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS (default: disabled)
1077  --enable-static[=PKGS]
1078                          build static libraries [default=no]
1079  --disable-dependency-tracking  speeds up one-time build
1080  --enable-dependency-tracking   do not reject slow dependency extractors
1081  --enable-maintainer-mode  enable make rules and dependencies not useful
1082                          (and sometimes confusing) to the casual installer
1083  --enable-shared[=PKGS]
1084                          build shared libraries [default=yes]
1085  --enable-fast-install[=PKGS]
1086                          optimize for fast installation [default=yes]
1087  --disable-libtool-lock  avoid locking (might break parallel builds)
1088
1089Optional Packages:
1090  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1091  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1092  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1093  --with-lapack-checklevel
1094                          specify the sanity check level for project Lapack
1095  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1096  --with-pic              try to use only PIC/non-PIC objects [default=use
1097                          both]
1098  --with-tags[=TAGS]
1099                          include additional configurations [automatic]
1100
1101Some influential environment variables:
1102  CDEFS       Additional -D flags to be used when compiling C code.
1103  ADD_CFLAGS  Additional C compiler options
1104  DBG_CFLAGS  Debug C compiler options
1105  OPT_CFLAGS  Optimize C compiler options
1106  CC          C compiler command
1107  CFLAGS      C compiler flags
1108  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1109              nonstandard directory <lib dir>
1110  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1111              headers in a nonstandard directory <include dir>
1112  MPICC       C MPI Compiler
1113  ADD_FFLAGS  Additional Fortran compiler options
1114  DBG_FFLAGS  Debug Fortran compiler options
1115  OPT_FFLAGS  Optimize Fortran compiler options
1116  F77         Fortran 77 compiler command
1117  FFLAGS      Fortran 77 compiler flags
1118  MPIF77      Fortran MPI Compiler
1119  CPP         C preprocessor
1120  CXX         C++ compiler command
1121  CXXFLAGS    C++ compiler flags
1122  CXXCPP      C++ preprocessor
1123
1124Use these variables to override the choices made by `configure' or to help
1125it to find libraries and programs with nonstandard names/locations.
1126
1127Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1128_ACEOF
1129fi
1130
1131if test "$ac_init_help" = "recursive"; then
1132  # If there are subdirs, report their specific --help.
1133  ac_popdir=`pwd`
1134  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1135    test -d $ac_dir || continue
1136    ac_builddir=.
1137
1138if test "$ac_dir" != .; then
1139  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1140  # A "../" for each directory in $ac_dir_suffix.
1141  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1142else
1143  ac_dir_suffix= ac_top_builddir=
1144fi
1145
1146case $srcdir in
1147  .)  # No --srcdir option.  We are building in place.
1148    ac_srcdir=.
1149    if test -z "$ac_top_builddir"; then
1150       ac_top_srcdir=.
1151    else
1152       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1153    fi ;;
1154  [\\/]* | ?:[\\/]* )  # Absolute path.
1155    ac_srcdir=$srcdir$ac_dir_suffix;
1156    ac_top_srcdir=$srcdir ;;
1157  *) # Relative path.
1158    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1159    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1160esac
1161
1162# Do not use `cd foo && pwd` to compute absolute paths, because
1163# the directories may not exist.
1164case `pwd` in
1165.) ac_abs_builddir="$ac_dir";;
1166*)
1167  case "$ac_dir" in
1168  .) ac_abs_builddir=`pwd`;;
1169  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1170  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1171  esac;;
1172esac
1173case $ac_abs_builddir in
1174.) ac_abs_top_builddir=${ac_top_builddir}.;;
1175*)
1176  case ${ac_top_builddir}. in
1177  .) ac_abs_top_builddir=$ac_abs_builddir;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1179  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_srcdir=$ac_srcdir;;
1184*)
1185  case $ac_srcdir in
1186  .) ac_abs_srcdir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1188  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1189  esac;;
1190esac
1191case $ac_abs_builddir in
1192.) ac_abs_top_srcdir=$ac_top_srcdir;;
1193*)
1194  case $ac_top_srcdir in
1195  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1196  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1197  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1198  esac;;
1199esac
1200
1201    cd $ac_dir
1202    # Check for guested configure; otherwise get Cygnus style configure.
1203    if test -f $ac_srcdir/configure.gnu; then
1204      echo
1205      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1206    elif test -f $ac_srcdir/configure; then
1207      echo
1208      $SHELL $ac_srcdir/configure  --help=recursive
1209    elif test -f $ac_srcdir/configure.ac ||
1210           test -f $ac_srcdir/configure.in; then
1211      echo
1212      $ac_configure --help
1213    else
1214      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1215    fi
1216    cd $ac_popdir
1217  done
1218fi
1219
1220test -n "$ac_init_help" && exit 0
1221if $ac_init_version; then
1222  cat <<\_ACEOF
1223ThirdPartyLapack configure 0.0
1224generated by GNU Autoconf 2.59
1225
1226Copyright (C) 2003 Free Software Foundation, Inc.
1227This configure script is free software; the Free Software Foundation
1228gives unlimited permission to copy, distribute and modify it.
1229
1230
1231Copyright 2006 International Business Machines and others.
1232All Rights Reserved.
1233This file is part of the open source package Coin which is distributed
1234under the Common Public License.
1235_ACEOF
1236  exit 0
1237fi
1238exec 5>config.log
1239cat >&5 <<_ACEOF
1240This file contains any messages produced by compilers while
1241running configure, to aid debugging if configure makes a mistake.
1242
1243It was created by ThirdPartyLapack $as_me 0.0, which was
1244generated by GNU Autoconf 2.59.  Invocation command line was
1245
1246  $ $0 $@
1247
1248_ACEOF
1249{
1250cat <<_ASUNAME
1251## --------- ##
1252## Platform. ##
1253## --------- ##
1254
1255hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1256uname -m = `(uname -m) 2>/dev/null || echo unknown`
1257uname -r = `(uname -r) 2>/dev/null || echo unknown`
1258uname -s = `(uname -s) 2>/dev/null || echo unknown`
1259uname -v = `(uname -v) 2>/dev/null || echo unknown`
1260
1261/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1262/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1263
1264/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1265/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1266/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1267hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1268/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1269/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1270/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1271
1272_ASUNAME
1273
1274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1275for as_dir in $PATH
1276do
1277  IFS=$as_save_IFS
1278  test -z "$as_dir" && as_dir=.
1279  echo "PATH: $as_dir"
1280done
1281
1282} >&5
1283
1284cat >&5 <<_ACEOF
1285
1286
1287## ----------- ##
1288## Core tests. ##
1289## ----------- ##
1290
1291_ACEOF
1292
1293
1294# Keep a trace of the command line.
1295# Strip out --no-create and --no-recursion so they do not pile up.
1296# Strip out --silent because we don't want to record it for future runs.
1297# Also quote any args containing shell meta-characters.
1298# Make two passes to allow for proper duplicate-argument suppression.
1299ac_configure_args=
1300ac_configure_args0=
1301ac_configure_args1=
1302ac_sep=
1303ac_must_keep_next=false
1304for ac_pass in 1 2
1305do
1306  for ac_arg
1307  do
1308    case $ac_arg in
1309    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1310    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1311    | -silent | --silent | --silen | --sile | --sil)
1312      continue ;;
1313    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1315    esac
1316    case $ac_pass in
1317    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1318    2)
1319      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1320      if test $ac_must_keep_next = true; then
1321        ac_must_keep_next=false # Got value, back to normal.
1322      else
1323        case $ac_arg in
1324          *=* | --config-cache | -C | -disable-* | --disable-* \
1325          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1326          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1327          | -with-* | --with-* | -without-* | --without-* | --x)
1328            case "$ac_configure_args0 " in
1329              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1330            esac
1331            ;;
1332          -* ) ac_must_keep_next=true ;;
1333        esac
1334      fi
1335      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1336      # Get rid of the leading space.
1337      ac_sep=" "
1338      ;;
1339    esac
1340  done
1341done
1342$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1343$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1344
1345# When interrupted or exit'd, cleanup temporary files, and complete
1346# config.log.  We remove comments because anyway the quotes in there
1347# would cause problems or look ugly.
1348# WARNING: Be sure not to use single quotes in there, as some shells,
1349# such as our DU 5.0 friend, will then `close' the trap.
1350trap 'exit_status=$?
1351  # Save into config.log some information that might help in debugging.
1352  {
1353    echo
1354
1355    cat <<\_ASBOX
1356## ---------------- ##
1357## Cache variables. ##
1358## ---------------- ##
1359_ASBOX
1360    echo
1361    # The following way of writing the cache mishandles newlines in values,
1362{
1363  (set) 2>&1 |
1364    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1365    *ac_space=\ *)
1366      sed -n \
1367        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1368          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1369      ;;
1370    *)
1371      sed -n \
1372        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1373      ;;
1374    esac;
1375}
1376    echo
1377
1378    cat <<\_ASBOX
1379## ----------------- ##
1380## Output variables. ##
1381## ----------------- ##
1382_ASBOX
1383    echo
1384    for ac_var in $ac_subst_vars
1385    do
1386      eval ac_val=$`echo $ac_var`
1387      echo "$ac_var='"'"'$ac_val'"'"'"
1388    done | sort
1389    echo
1390
1391    if test -n "$ac_subst_files"; then
1392      cat <<\_ASBOX
1393## ------------- ##
1394## Output files. ##
1395## ------------- ##
1396_ASBOX
1397      echo
1398      for ac_var in $ac_subst_files
1399      do
1400        eval ac_val=$`echo $ac_var`
1401        echo "$ac_var='"'"'$ac_val'"'"'"
1402      done | sort
1403      echo
1404    fi
1405
1406    if test -s confdefs.h; then
1407      cat <<\_ASBOX
1408## ----------- ##
1409## confdefs.h. ##
1410## ----------- ##
1411_ASBOX
1412      echo
1413      sed "/^$/d" confdefs.h | sort
1414      echo
1415    fi
1416    test "$ac_signal" != 0 &&
1417      echo "$as_me: caught signal $ac_signal"
1418    echo "$as_me: exit $exit_status"
1419  } >&5
1420  rm -f core *.core &&
1421  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1422    exit $exit_status
1423     ' 0
1424for ac_signal in 1 2 13 15; do
1425  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1426done
1427ac_signal=0
1428
1429# confdefs.h avoids OS command line length limits that DEFS can exceed.
1430rm -rf conftest* confdefs.h
1431# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1432echo >confdefs.h
1433
1434# Predefined preprocessor variables.
1435
1436cat >>confdefs.h <<_ACEOF
1437#define PACKAGE_NAME "$PACKAGE_NAME"
1438_ACEOF
1439
1440
1441cat >>confdefs.h <<_ACEOF
1442#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1443_ACEOF
1444
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_VERSION "$PACKAGE_VERSION"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_STRING "$PACKAGE_STRING"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1458_ACEOF
1459
1460
1461# Let the site file select an alternate cache file if it wants to.
1462# Prefer explicitly selected file to automatically selected ones.
1463if test -z "$CONFIG_SITE"; then
1464  if test "x$prefix" != xNONE; then
1465    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1466  else
1467    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1468  fi
1469fi
1470for ac_site_file in $CONFIG_SITE; do
1471  if test -r "$ac_site_file"; then
1472    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1473echo "$as_me: loading site script $ac_site_file" >&6;}
1474    sed 's/^/| /' "$ac_site_file" >&5
1475    . "$ac_site_file"
1476  fi
1477done
1478
1479if test -r "$cache_file"; then
1480  # Some versions of bash will fail to source /dev/null (special
1481  # files actually), so we avoid doing that.
1482  if test -f "$cache_file"; then
1483    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1484echo "$as_me: loading cache $cache_file" >&6;}
1485    case $cache_file in
1486      [\\/]* | ?:[\\/]* ) . $cache_file;;
1487      *)                      . ./$cache_file;;
1488    esac
1489  fi
1490else
1491  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1492echo "$as_me: creating cache $cache_file" >&6;}
1493  >$cache_file
1494fi
1495
1496# Check that the precious variables saved in the cache have kept the same
1497# value.
1498ac_cache_corrupted=false
1499for ac_var in `(set) 2>&1 |
1500               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1501  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1502  eval ac_new_set=\$ac_env_${ac_var}_set
1503  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1504  eval ac_new_val="\$ac_env_${ac_var}_value"
1505  case $ac_old_set,$ac_new_set in
1506    set,)
1507      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1508echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1509      ac_cache_corrupted=: ;;
1510    ,set)
1511      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1512echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1513      ac_cache_corrupted=: ;;
1514    ,);;
1515    *)
1516      if test "x$ac_old_val" != "x$ac_new_val"; then
1517        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1518echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1519        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1520echo "$as_me:   former value:  $ac_old_val" >&2;}
1521        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1522echo "$as_me:   current value: $ac_new_val" >&2;}
1523        ac_cache_corrupted=:
1524      fi;;
1525  esac
1526  # Pass precious variables to config.status.
1527  if test "$ac_new_set" = set; then
1528    case $ac_new_val in
1529    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1530      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1531    *) ac_arg=$ac_var=$ac_new_val ;;
1532    esac
1533    case " $ac_configure_args " in
1534      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1535      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1536    esac
1537  fi
1538done
1539if $ac_cache_corrupted; then
1540  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1541echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1542  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1543echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1544   { (exit 1); exit 1; }; }
1545fi
1546
1547ac_ext=c
1548ac_cpp='$CPP $CPPFLAGS'
1549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1551ac_compiler_gnu=$ac_cv_c_compiler_gnu
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582# List one file in the package so that the configure script can test
1583# whether the package is actually there
1584
1585
1586# Where should everything be installed by default?  Here, we want it
1587# to be installed directly in 'bin', 'lib', 'include' subdirectories
1588# of the directory where configure is run.  The default would be
1589# /usr/local.
1590
1591
1592# Initialize the ADDLIBS variable
1593ADDLIBS='-lm'
1594
1595
1596# Initialize the FADDLIBS variable (which is to be used with a fortran
1597# compiler and will not include FLIBS)
1598FADDLIBS=
1599
1600
1601# A useful makefile conditional that is always false
1602
1603
1604if false; then
1605  ALWAYS_FALSE_TRUE=
1606  ALWAYS_FALSE_FALSE='#'
1607else
1608  ALWAYS_FALSE_TRUE='#'
1609  ALWAYS_FALSE_FALSE=
1610fi
1611
1612
1613# We set the following variable so that we know later in AC_COIN_FINALIZE
1614# that we are in a project main directory
1615coin_projectdir=yes
1616
1617
1618#############################################################################
1619#                         Standard build tool stuff                         #
1620#############################################################################
1621
1622# Get the system type
1623ac_aux_dir=
1624for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1625  if test -f $ac_dir/install-sh; then
1626    ac_aux_dir=$ac_dir
1627    ac_install_sh="$ac_aux_dir/install-sh -c"
1628    break
1629  elif test -f $ac_dir/install.sh; then
1630    ac_aux_dir=$ac_dir
1631    ac_install_sh="$ac_aux_dir/install.sh -c"
1632    break
1633  elif test -f $ac_dir/shtool; then
1634    ac_aux_dir=$ac_dir
1635    ac_install_sh="$ac_aux_dir/shtool install -c"
1636    break
1637  fi
1638done
1639if test -z "$ac_aux_dir"; then
1640  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1641echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1642   { (exit 1); exit 1; }; }
1643fi
1644ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1645ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1646ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1647
1648# Make sure we can run config.sub.
1649$ac_config_sub sun4 >/dev/null 2>&1 ||
1650  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1651echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1652   { (exit 1); exit 1; }; }
1653
1654echo "$as_me:$LINENO: checking build system type" >&5
1655echo $ECHO_N "checking build system type... $ECHO_C" >&6
1656if test "${ac_cv_build+set}" = set; then
1657  echo $ECHO_N "(cached) $ECHO_C" >&6
1658else
1659  ac_cv_build_alias=$build_alias
1660test -z "$ac_cv_build_alias" &&
1661  ac_cv_build_alias=`$ac_config_guess`
1662test -z "$ac_cv_build_alias" &&
1663  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1664echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1665   { (exit 1); exit 1; }; }
1666ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1667  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1668echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1669   { (exit 1); exit 1; }; }
1670
1671fi
1672echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1673echo "${ECHO_T}$ac_cv_build" >&6
1674build=$ac_cv_build
1675build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678
1679
1680
1681# Check if user wants to produce debugging code
1682
1683echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1684echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1685
1686# Check whether --enable-debug or --disable-debug was given.
1687if test "${enable_debug+set}" = set; then
1688  enableval="$enable_debug"
1689  case "${enableval}" in
1690   yes) coin_debug_compile=true
1691        enable_shared=no
1692        ;;
1693   no)  coin_debug_compile=false
1694        ;;
1695   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1696echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1697   { (exit 1); exit 1; }; }
1698        ;;
1699esac
1700else
1701  coin_debug_compile=false
1702fi;
1703
1704# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1705if test "${enable_debug_lapack+set}" = set; then
1706  enableval="$enable_debug_lapack"
1707  case "${enableval}" in
1708    yes) coin_debug_compile=true
1709         enable_shared=no
1710         ;;
1711    no)  coin_debug_compile=false
1712         ;;
1713    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1714echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1715   { (exit 1); exit 1; }; }
1716         ;;
1717 esac
1718else
1719  :
1720fi;
1721
1722 # m4_ifvaln([Lapack],
1723
1724if test $coin_debug_compile = true; then
1725  echo "$as_me:$LINENO: result: yes" >&5
1726echo "${ECHO_T}yes" >&6
1727else
1728  echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732
1733# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1734if test "${with_lapack_verbosity+set}" = set; then
1735  withval="$with_lapack_verbosity"
1736  coin_lapack_verbosity=$withval
1737else
1738  coin_lapack_verbosity=0
1739fi;
1740
1741cat >>confdefs.h <<_ACEOF
1742#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1743_ACEOF
1744
1745
1746
1747# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1748if test "${with_lapack_checklevel+set}" = set; then
1749  withval="$with_lapack_checklevel"
1750  coin_lapack_checklevel=$withval
1751else
1752  coin_lapack_checklevel=0
1753fi;
1754
1755cat >>confdefs.h <<_ACEOF
1756#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1757_ACEOF
1758
1759
1760# We use the following variable to have a string with the upper case
1761# version of the project name
1762COIN_PRJCT=LAPACK
1763
1764
1765 # m4_ifvaln([Lapack],
1766
1767
1768
1769# Get the name of the Fortran compiler and appropriate compiler options
1770case $build in
1771  *-mingw*)
1772    if test "${LD+set}" = set; then :; else
1773      LD=link
1774    fi
1775    ;;
1776esac
1777
1778# Check whether --enable-doscompile or --disable-doscompile was given.
1779if test "${enable_doscompile+set}" = set; then
1780  enableval="$enable_doscompile"
1781  if test "$enable_doscompile = yes"; then
1782  case $build in
1783    *-cygwin*) ;;
1784    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
1785echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
1786   { (exit 1); exit 1; }; } ;;
1787  esac
1788fi
1789else
1790  enable_doscompile=no
1791fi;
1792
1793
1794
1795
1796ac_ext=c
1797ac_cpp='$CPP $CPPFLAGS'
1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801
1802
1803# For consistency, we set the C compiler to the same value of the C++
1804# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1805if test x"$CXX" != x; then
1806  case "$CXX" in
1807    cl*)
1808      if test x"$CC" = x; then
1809        CC="$CXX"
1810        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1811echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1812      fi
1813      ;;
1814  esac
1815fi
1816
1817
1818
1819
1820
1821
1822coin_has_cc=yes
1823
1824save_cflags="$CFLAGS"
1825case $build in
1826  *-cygwin* | *-mingw*)
1827             comps="gcc cl" ;;
1828  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1829  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1830esac
1831
1832# We delete the cached value, since the test might not have been
1833# performed with out choise of compilers earlier
1834$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1835ac_ext=c
1836ac_cpp='$CPP $CPPFLAGS'
1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
1840if test -n "$ac_tool_prefix"; then
1841  for ac_prog in $comps
1842  do
1843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1845echo "$as_me:$LINENO: checking for $ac_word" >&5
1846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847if test "${ac_cv_prog_CC+set}" = set; then
1848  echo $ECHO_N "(cached) $ECHO_C" >&6
1849else
1850  if test -n "$CC"; then
1851  ac_cv_prog_CC="$CC" # Let the user override the test.
1852else
1853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854for as_dir in $PATH
1855do
1856  IFS=$as_save_IFS
1857  test -z "$as_dir" && as_dir=.
1858  for ac_exec_ext in '' $ac_executable_extensions; do
1859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862    break 2
1863  fi
1864done
1865done
1866
1867fi
1868fi
1869CC=$ac_cv_prog_CC
1870if test -n "$CC"; then
1871  echo "$as_me:$LINENO: result: $CC" >&5
1872echo "${ECHO_T}$CC" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878    test -n "$CC" && break
1879  done
1880fi
1881if test -z "$CC"; then
1882  ac_ct_CC=$CC
1883  for ac_prog in $comps
1884do
1885  # Extract the first word of "$ac_prog", so it can be a program name with args.
1886set dummy $ac_prog; ac_word=$2
1887echo "$as_me:$LINENO: checking for $ac_word" >&5
1888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1890  echo $ECHO_N "(cached) $ECHO_C" >&6
1891else
1892  if test -n "$ac_ct_CC"; then
1893  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1894else
1895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896for as_dir in $PATH
1897do
1898  IFS=$as_save_IFS
1899  test -z "$as_dir" && as_dir=.
1900  for ac_exec_ext in '' $ac_executable_extensions; do
1901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902    ac_cv_prog_ac_ct_CC="$ac_prog"
1903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1904    break 2
1905  fi
1906done
1907done
1908
1909fi
1910fi
1911ac_ct_CC=$ac_cv_prog_ac_ct_CC
1912if test -n "$ac_ct_CC"; then
1913  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1914echo "${ECHO_T}$ac_ct_CC" >&6
1915else
1916  echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6
1918fi
1919
1920  test -n "$ac_ct_CC" && break
1921done
1922
1923  CC=$ac_ct_CC
1924fi
1925
1926
1927test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1928See \`config.log' for more details." >&5
1929echo "$as_me: error: no acceptable C compiler found in \$PATH
1930See \`config.log' for more details." >&2;}
1931   { (exit 1); exit 1; }; }
1932
1933# Provide some information about the compiler.
1934echo "$as_me:$LINENO:" \
1935     "checking for C compiler version" >&5
1936ac_compiler=`set X $ac_compile; echo $2`
1937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1938  (eval $ac_compiler --version </dev/null >&5) 2>&5
1939  ac_status=$?
1940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941  (exit $ac_status); }
1942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1943  (eval $ac_compiler -v </dev/null >&5) 2>&5
1944  ac_status=$?
1945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946  (exit $ac_status); }
1947{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1948  (eval $ac_compiler -V </dev/null >&5) 2>&5
1949  ac_status=$?
1950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1951  (exit $ac_status); }
1952
1953cat >conftest.$ac_ext <<_ACEOF
1954/* confdefs.h.  */
1955_ACEOF
1956cat confdefs.h >>conftest.$ac_ext
1957cat >>conftest.$ac_ext <<_ACEOF
1958/* end confdefs.h.  */
1959
1960int
1961main ()
1962{
1963
1964  ;
1965  return 0;
1966}
1967_ACEOF
1968ac_clean_files_save=$ac_clean_files
1969ac_clean_files="$ac_clean_files a.out a.exe b.out"
1970# Try to create an executable without -o first, disregard a.out.
1971# It will help us diagnose broken compilers, and finding out an intuition
1972# of exeext.
1973echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1974echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1975ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1976if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1977  (eval $ac_link_default) 2>&5
1978  ac_status=$?
1979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980  (exit $ac_status); }; then
1981  # Find the output, starting from the most likely.  This scheme is
1982# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1983# resort.
1984
1985# Be careful to initialize this variable, since it used to be cached.
1986# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1987ac_cv_exeext=
1988# b.out is created by i960 compilers.
1989for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1990do
1991  test -f "$ac_file" || continue
1992  case $ac_file in
1993    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1994        ;;
1995    conftest.$ac_ext )
1996        # This is the source file.
1997        ;;
1998    [ab].out )
1999        # We found the default executable, but exeext='' is most
2000        # certainly right.
2001        break;;
2002    *.* )
2003        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2004        # FIXME: I believe we export ac_cv_exeext for Libtool,
2005        # but it would be cool to find out if it's true.  Does anybody
2006        # maintain Libtool? --akim.
2007        export ac_cv_exeext
2008        break;;
2009    * )
2010        break;;
2011  esac
2012done
2013else
2014  echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
2016
2017{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2018See \`config.log' for more details." >&5
2019echo "$as_me: error: C compiler cannot create executables
2020See \`config.log' for more details." >&2;}
2021   { (exit 77); exit 77; }; }
2022fi
2023
2024ac_exeext=$ac_cv_exeext
2025echo "$as_me:$LINENO: result: $ac_file" >&5
2026echo "${ECHO_T}$ac_file" >&6
2027
2028# Check the compiler produces executables we can run.  If not, either
2029# the compiler is broken, or we cross compile.
2030echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2031echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2032# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2033# If not cross compiling, check that we can run a simple program.
2034if test "$cross_compiling" != yes; then
2035  if { ac_try='./$ac_file'
2036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037  (eval $ac_try) 2>&5
2038  ac_status=$?
2039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040  (exit $ac_status); }; }; then
2041    cross_compiling=no
2042  else
2043    if test "$cross_compiling" = maybe; then
2044        cross_compiling=yes
2045    else
2046        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2047If you meant to cross compile, use \`--host'.
2048See \`config.log' for more details." >&5
2049echo "$as_me: error: cannot run C compiled programs.
2050If you meant to cross compile, use \`--host'.
2051See \`config.log' for more details." >&2;}
2052   { (exit 1); exit 1; }; }
2053    fi
2054  fi
2055fi
2056echo "$as_me:$LINENO: result: yes" >&5
2057echo "${ECHO_T}yes" >&6
2058
2059rm -f a.out a.exe conftest$ac_cv_exeext b.out
2060ac_clean_files=$ac_clean_files_save
2061# Check the compiler produces executables we can run.  If not, either
2062# the compiler is broken, or we cross compile.
2063echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2064echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2065echo "$as_me:$LINENO: result: $cross_compiling" >&5
2066echo "${ECHO_T}$cross_compiling" >&6
2067
2068echo "$as_me:$LINENO: checking for suffix of executables" >&5
2069echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2071  (eval $ac_link) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }; then
2075  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2076# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2077# work properly (i.e., refer to `conftest.exe'), while it won't with
2078# `rm'.
2079for ac_file in conftest.exe conftest conftest.*; do
2080  test -f "$ac_file" || continue
2081  case $ac_file in
2082    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2083    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084          export ac_cv_exeext
2085          break;;
2086    * ) break;;
2087  esac
2088done
2089else
2090  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2091See \`config.log' for more details." >&5
2092echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2093See \`config.log' for more details." >&2;}
2094   { (exit 1); exit 1; }; }
2095fi
2096
2097rm -f conftest$ac_cv_exeext
2098echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2099echo "${ECHO_T}$ac_cv_exeext" >&6
2100
2101rm -f conftest.$ac_ext
2102EXEEXT=$ac_cv_exeext
2103ac_exeext=$EXEEXT
2104echo "$as_me:$LINENO: checking for suffix of object files" >&5
2105echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2106if test "${ac_cv_objext+set}" = set; then
2107  echo $ECHO_N "(cached) $ECHO_C" >&6
2108else
2109  cat >conftest.$ac_ext <<_ACEOF
2110/* confdefs.h.  */
2111_ACEOF
2112cat confdefs.h >>conftest.$ac_ext
2113cat >>conftest.$ac_ext <<_ACEOF
2114/* end confdefs.h.  */
2115
2116int
2117main ()
2118{
2119
2120  ;
2121  return 0;
2122}
2123_ACEOF
2124rm -f conftest.o conftest.obj
2125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126  (eval $ac_compile) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2131  case $ac_file in
2132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2133    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2134       break;;
2135  esac
2136done
2137else
2138  echo "$as_me: failed program was:" >&5
2139sed 's/^/| /' conftest.$ac_ext >&5
2140
2141{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2142See \`config.log' for more details." >&5
2143echo "$as_me: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&2;}
2145   { (exit 1); exit 1; }; }
2146fi
2147
2148rm -f conftest.$ac_cv_objext conftest.$ac_ext
2149fi
2150echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2151echo "${ECHO_T}$ac_cv_objext" >&6
2152OBJEXT=$ac_cv_objext
2153ac_objext=$OBJEXT
2154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2156if test "${ac_cv_c_compiler_gnu+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h.  */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h.  */
2165
2166int
2167main ()
2168{
2169#ifndef __GNUC__
2170       choke me
2171#endif
2172
2173  ;
2174  return 0;
2175}
2176_ACEOF
2177rm -f conftest.$ac_objext
2178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2179  (eval $ac_compile) 2>conftest.er1
2180  ac_status=$?
2181  grep -v '^ *+' conftest.er1 >conftest.err
2182  rm -f conftest.er1
2183  cat conftest.err >&5
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); } &&
2186         { ac_try='test -z "$ac_c_werror_flag"
2187                         || test ! -s conftest.err'
2188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189  (eval $ac_try) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }; } &&
2193         { ac_try='test -s conftest.$ac_objext'
2194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2195  (eval $ac_try) 2>&5
2196  ac_status=$?
2197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198  (exit $ac_status); }; }; then
2199  ac_compiler_gnu=yes
2200else
2201  echo "$as_me: failed program was:" >&5
2202sed 's/^/| /' conftest.$ac_ext >&5
2203
2204ac_compiler_gnu=no
2205fi
2206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2207ac_cv_c_compiler_gnu=$ac_compiler_gnu
2208
2209fi
2210echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2211echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2212GCC=`test $ac_compiler_gnu = yes && echo yes`
2213ac_test_CFLAGS=${CFLAGS+set}
2214ac_save_CFLAGS=$CFLAGS
2215CFLAGS="-g"
2216echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2217echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2218if test "${ac_cv_prog_cc_g+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>conftest.er1
2239  ac_status=$?
2240  grep -v '^ *+' conftest.er1 >conftest.err
2241  rm -f conftest.er1
2242  cat conftest.err >&5
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); } &&
2245         { ac_try='test -z "$ac_c_werror_flag"
2246                         || test ! -s conftest.err'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; } &&
2252         { ac_try='test -s conftest.$ac_objext'
2253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254  (eval $ac_try) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }; }; then
2258  ac_cv_prog_cc_g=yes
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_cv_prog_cc_g=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2268echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2269if test "$ac_test_CFLAGS" = set; then
2270  CFLAGS=$ac_save_CFLAGS
2271elif test $ac_cv_prog_cc_g = yes; then
2272  if test "$GCC" = yes; then
2273    CFLAGS="-g -O2"
2274  else
2275    CFLAGS="-g"
2276  fi
2277else
2278  if test "$GCC" = yes; then
2279    CFLAGS="-O2"
2280  else
2281    CFLAGS=
2282  fi
2283fi
2284echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2285echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2286if test "${ac_cv_prog_cc_stdc+set}" = set; then
2287  echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289  ac_cv_prog_cc_stdc=no
2290ac_save_CC=$CC
2291cat >conftest.$ac_ext <<_ACEOF
2292/* confdefs.h.  */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h.  */
2297#include <stdarg.h>
2298#include <stdio.h>
2299#include <sys/types.h>
2300#include <sys/stat.h>
2301/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2302struct buf { int x; };
2303FILE * (*rcsopen) (struct buf *, struct stat *, int);
2304static char *e (p, i)
2305     char **p;
2306     int i;
2307{
2308  return p[i];
2309}
2310static char *f (char * (*g) (char **, int), char **p, ...)
2311{
2312  char *s;
2313  va_list v;
2314  va_start (v,p);
2315  s = g (p, va_arg (v,int));
2316  va_end (v);
2317  return s;
2318}
2319
2320/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2321   function prototypes and stuff, but not '\xHH' hex character constants.
2322   These don't provoke an error unfortunately, instead are silently treated
2323   as 'x'.  The following induces an error, until -std1 is added to get
2324   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2325   array size at least.  It's necessary to write '\x00'==0 to get something
2326   that's true only with -std1.  */
2327int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2328
2329int test (int i, double x);
2330struct s1 {int (*f) (int a);};
2331struct s2 {int (*f) (double a);};
2332int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2333int argc;
2334char **argv;
2335int
2336main ()
2337{
2338return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2339  ;
2340  return 0;
2341}
2342_ACEOF
2343# Don't try gcc -ansi; that turns off useful extensions and
2344# breaks some systems' header files.
2345# AIX                   -qlanglvl=ansi
2346# Ultrix and OSF/1      -std1
2347# HP-UX 10.20 and later -Ae
2348# HP-UX older versions  -Aa -D_HPUX_SOURCE
2349# SVR4                  -Xc -D__EXTENSIONS__
2350for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2351do
2352  CC="$ac_save_CC $ac_arg"
2353  rm -f conftest.$ac_objext
2354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355  (eval $ac_compile) 2>conftest.er1
2356  ac_status=$?
2357  grep -v '^ *+' conftest.er1 >conftest.err
2358  rm -f conftest.er1
2359  cat conftest.err >&5
2360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361  (exit $ac_status); } &&
2362         { ac_try='test -z "$ac_c_werror_flag"
2363                         || test ! -s conftest.err'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; } &&
2369         { ac_try='test -s conftest.$ac_objext'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; }; then
2375  ac_cv_prog_cc_stdc=$ac_arg
2376break
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381fi
2382rm -f conftest.err conftest.$ac_objext
2383done
2384rm -f conftest.$ac_ext conftest.$ac_objext
2385CC=$ac_save_CC
2386
2387fi
2388
2389case "x$ac_cv_prog_cc_stdc" in
2390  x|xno)
2391    echo "$as_me:$LINENO: result: none needed" >&5
2392echo "${ECHO_T}none needed" >&6 ;;
2393  *)
2394    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2395echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2396    CC="$CC $ac_cv_prog_cc_stdc" ;;
2397esac
2398
2399# Some people use a C++ compiler to compile C.  Since we use `exit',
2400# in C++ we need to declare it.  In case someone uses the same compiler
2401# for both compiling C and C++ we need to have the C++ compiler decide
2402# the declaration of exit, since it's the most demanding environment.
2403cat >conftest.$ac_ext <<_ACEOF
2404#ifndef __cplusplus
2405  choke me
2406#endif
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  for ac_declaration in \
2431   '' \
2432   'extern "C" void std::exit (int) throw (); using std::exit;' \
2433   'extern "C" void std::exit (int); using std::exit;' \
2434   'extern "C" void exit (int) throw ();' \
2435   'extern "C" void exit (int);' \
2436   'void exit (int);'
2437do
2438  cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h.  */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h.  */
2444$ac_declaration
2445#include <stdlib.h>
2446int
2447main ()
2448{
2449exit (42);
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454rm -f conftest.$ac_objext
2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456  (eval $ac_compile) 2>conftest.er1
2457  ac_status=$?
2458  grep -v '^ *+' conftest.er1 >conftest.err
2459  rm -f conftest.er1
2460  cat conftest.err >&5
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); } &&
2463         { ac_try='test -z "$ac_c_werror_flag"
2464                         || test ! -s conftest.err'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; } &&
2470         { ac_try='test -s conftest.$ac_objext'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; }; then
2476  :
2477else
2478  echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481continue
2482fi
2483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2484  cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490$ac_declaration
2491int
2492main ()
2493{
2494exit (42);
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext
2500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501  (eval $ac_compile) 2>conftest.er1
2502  ac_status=$?
2503  grep -v '^ *+' conftest.er1 >conftest.err
2504  rm -f conftest.er1
2505  cat conftest.err >&5
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); } &&
2508         { ac_try='test -z "$ac_c_werror_flag"
2509                         || test ! -s conftest.err'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; } &&
2515         { ac_try='test -s conftest.$ac_objext'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; }; then
2521  break
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2528done
2529rm -f conftest*
2530if test -n "$ac_declaration"; then
2531  echo '#ifdef __cplusplus' >>confdefs.h
2532  echo $ac_declaration      >>confdefs.h
2533  echo '#endif'             >>confdefs.h
2534fi
2535
2536else
2537  echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540fi
2541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2542ac_ext=c
2543ac_cpp='$CPP $CPPFLAGS'
2544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548CFLAGS="$save_cflags"
2549
2550# Check if a project specific CFLAGS variable has been set
2551if test x$COIN_PRJCT != x; then
2552  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2553  if test x$coin_tmp = xset; then
2554    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2555  fi
2556fi
2557
2558if test x"$CFLAGS" = x; then
2559
2560  coin_add_cflags=
2561  coin_opt_cflags=
2562  coin_dbg_cflags=
2563  coin_warn_cflags=
2564
2565  if test "$GCC" = "yes"; then
2566    case "$CC" in
2567      icc* | */icc*)
2568        ;;
2569      *)
2570        coin_opt_cflags="-O3 -fomit-frame-pointer"
2571        coin_add_cflags="-pipe"
2572        coin_dbg_cflags="-g"
2573        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2574        if test "$enable_doscompile" = yes; then
2575          case $build in
2576            *-cygwin*)
2577              CFLAGS="-mno-cygwin"
2578              cat >conftest.$ac_ext <<_ACEOF
2579/* confdefs.h.  */
2580_ACEOF
2581cat confdefs.h >>conftest.$ac_ext
2582cat >>conftest.$ac_ext <<_ACEOF
2583/* end confdefs.h.  */
2584
2585int
2586main ()
2587{
2588int i=0; i++;
2589  ;
2590  return 0;
2591}
2592_ACEOF
2593rm -f conftest.$ac_objext conftest$ac_exeext
2594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2595  (eval $ac_link) 2>conftest.er1
2596  ac_status=$?
2597  grep -v '^ *+' conftest.er1 >conftest.err
2598  rm -f conftest.er1
2599  cat conftest.err >&5
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); } &&
2602         { ac_try='test -z "$ac_c_werror_flag"
2603                         || test ! -s conftest.err'
2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605  (eval $ac_try) 2>&5
2606  ac_status=$?
2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608  (exit $ac_status); }; } &&
2609         { ac_try='test -s conftest$ac_exeext'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; }; then
2615  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2616else
2617  echo "$as_me: failed program was:" >&5
2618sed 's/^/| /' conftest.$ac_ext >&5
2619
2620fi
2621rm -f conftest.err conftest.$ac_objext \
2622      conftest$ac_exeext conftest.$ac_ext
2623              CFLAGS=
2624            ;;
2625          esac
2626        fi
2627    esac
2628  fi
2629  if test -z "$coin_opt_cflags"; then
2630    case $build in
2631      *-cygwin* | *-mingw*)
2632        case "$CC" in
2633          cl* | */cl*)
2634            coin_opt_cflags='-O2'
2635            coin_add_cflags='-nologo'
2636            coin_dbg_cflags='-Yd'
2637            ;;
2638        esac
2639        ;;
2640      *-linux-*)
2641        case "$CC" in
2642          icc* | */icc*)
2643            coin_opt_cflags="-O3 -ip"
2644            coin_add_cflags=""
2645            coin_dbg_cflags="-g"
2646            # Check if -i_dynamic is necessary (for new glibc library)
2647            CFLAGS=
2648            cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h.  */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h.  */
2654
2655int
2656main ()
2657{
2658int i=0; i++;
2659  ;
2660  return 0;
2661}
2662_ACEOF
2663rm -f conftest.$ac_objext conftest$ac_exeext
2664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2665  (eval $ac_link) 2>conftest.er1
2666  ac_status=$?
2667  grep -v '^ *+' conftest.er1 >conftest.err
2668  rm -f conftest.er1
2669  cat conftest.err >&5
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); } &&
2672         { ac_try='test -z "$ac_c_werror_flag"
2673                         || test ! -s conftest.err'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; } &&
2679         { ac_try='test -s conftest$ac_exeext'
2680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2681  (eval $ac_try) 2>&5
2682  ac_status=$?
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); }; }; then
2685  :
2686else
2687  echo "$as_me: failed program was:" >&5
2688sed 's/^/| /' conftest.$ac_ext >&5
2689
2690coin_add_cflags="-i_dynamic $coin_add_cflags"
2691fi
2692rm -f conftest.err conftest.$ac_objext \
2693      conftest$ac_exeext conftest.$ac_ext
2694            ;;
2695          pgcc* | */pgcc*)
2696            coin_opt_cflags="-fast"
2697            coin_add_cflags="-Kieee -pc 64"
2698            coin_dbg_cflags="-g"
2699            ;;
2700        esac
2701        ;;
2702      *-ibm-*)
2703        case "$CC" in
2704          xlc* | */xlc* | mpxlc* | */mpxlc*)
2705            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2706            coin_add_cflags="-bmaxdata:0x80000000"
2707            coin_dbg_cflags="-g"
2708          ;;
2709        esac
2710        ;;
2711      *-hp-*)
2712        coin_opt_cflags="-O"
2713        coin_add_cflags="-Ae"
2714        coin_dbg_cflags="-g"
2715        ;;
2716      *-sun-*)
2717        coin_opt_cflags="-xO4"
2718        coin_dbg_cflags="-g"
2719        ;;
2720      *-sgi-*)
2721        coin_opt_cflags="-O -OPT:Olimit=0"
2722        coin_dbg_cflags="-g"
2723        ;;
2724    esac
2725  fi
2726
2727  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2728    coin_dbg_cflags="-g"
2729  fi
2730
2731  if test -z "$coin_opt_cflags"; then
2732    # Try if -O option works if nothing else is set
2733    CFLAGS="-O"
2734    cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h.  */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h.  */
2740
2741int
2742main ()
2743{
2744int i=0; i++;
2745  ;
2746  return 0;
2747}
2748_ACEOF
2749rm -f conftest.$ac_objext conftest$ac_exeext
2750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2751  (eval $ac_link) 2>conftest.er1
2752  ac_status=$?
2753  grep -v '^ *+' conftest.er1 >conftest.err
2754  rm -f conftest.er1
2755  cat conftest.err >&5
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); } &&
2758         { ac_try='test -z "$ac_c_werror_flag"
2759                         || test ! -s conftest.err'
2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761  (eval $ac_try) 2>&5
2762  ac_status=$?
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); }; } &&
2765         { ac_try='test -s conftest$ac_exeext'
2766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767  (eval $ac_try) 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); }; }; then
2771  coin_opt_cflags="-O"
2772else
2773  echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776fi
2777rm -f conftest.err conftest.$ac_objext \
2778      conftest$ac_exeext conftest.$ac_ext
2779  fi
2780
2781  # if PM doesn't want the warning messages, take them out
2782  if test x"$coin_skip_warn_cflags" = xyes; then
2783    coin_warn_cflags=
2784  fi
2785
2786  if test x${DBG_CFLAGS+set} != xset; then
2787    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2788  fi
2789  if test x${OPT_CFLAGS+set} != xset; then
2790    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2791  fi
2792
2793  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2794  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2795
2796  if test "$coin_debug_compile" = "true"; then
2797    CFLAGS="$DBG_CFLAGS"
2798  else
2799    CFLAGS="$OPT_CFLAGS"
2800  fi
2801else
2802  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2803  if test x${DBG_CFLAGS+set} != xset; then
2804    DBG_CFLAGS="$CFLAGS"
2805  fi
2806  if test x${OPT_CFLAGS+set} != xset; then
2807    OPT_CFLAGS="$CFLAGS"
2808  fi
2809fi
2810
2811# Check if user wants to have additional CFLAGS options
2812
2813if test x"$ADD_CFLAGS" != x; then
2814  CFLAGS="$CFLAGS $ADD_CFLAGS"
2815fi
2816
2817# Try if CFLAGS works
2818save_CFLAGS="$CFLAGS"
2819cat >conftest.$ac_ext <<_ACEOF
2820/* confdefs.h.  */
2821_ACEOF
2822cat confdefs.h >>conftest.$ac_ext
2823cat >>conftest.$ac_ext <<_ACEOF
2824/* end confdefs.h.  */
2825
2826int
2827main ()
2828{
2829int i=0; i++;
2830  ;
2831  return 0;
2832}
2833_ACEOF
2834rm -f conftest.$ac_objext conftest$ac_exeext
2835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2836  (eval $ac_link) 2>conftest.er1
2837  ac_status=$?
2838  grep -v '^ *+' conftest.er1 >conftest.err
2839  rm -f conftest.er1
2840  cat conftest.err >&5
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); } &&
2843         { ac_try='test -z "$ac_c_werror_flag"
2844                         || test ! -s conftest.err'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; } &&
2850         { ac_try='test -s conftest$ac_exeext'
2851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852  (eval $ac_try) 2>&5
2853  ac_status=$?
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); }; }; then
2856  :
2857else
2858  echo "$as_me: failed program was:" >&5
2859sed 's/^/| /' conftest.$ac_ext >&5
2860
2861CFLAGS=
2862fi
2863rm -f conftest.err conftest.$ac_objext \
2864      conftest$ac_exeext conftest.$ac_ext
2865if test -z "$CFLAGS"; then
2866  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
2867echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
2868  CFLAGS='-O'
2869  cat >conftest.$ac_ext <<_ACEOF
2870/* confdefs.h.  */
2871_ACEOF
2872cat confdefs.h >>conftest.$ac_ext
2873cat >>conftest.$ac_ext <<_ACEOF
2874/* end confdefs.h.  */
2875
2876int
2877main ()
2878{
2879int i=0; i++;
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext conftest$ac_exeext
2885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886  (eval $ac_link) 2>conftest.er1
2887  ac_status=$?
2888  grep -v '^ *+' conftest.er1 >conftest.err
2889  rm -f conftest.er1
2890  cat conftest.err >&5
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); } &&
2893         { ac_try='test -z "$ac_c_werror_flag"
2894                         || test ! -s conftest.err'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; } &&
2900         { ac_try='test -s conftest$ac_exeext'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; }; then
2906  :
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911CFLAGS=
2912fi
2913rm -f conftest.err conftest.$ac_objext \
2914      conftest$ac_exeext conftest.$ac_ext
2915  if test -z "$CFLAGS"; then
2916    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
2917echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
2918  fi
2919fi
2920
2921{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2922echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2923
2924
2925if test x"$MPICC" = x; then :; else
2926  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2927echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2928  CC="$MPICC"
2929fi
2930
2931# Correct ADDLIBS initialization if we are using the MS compiler
2932case "$CC" in
2933  cl*)
2934    ADDLIBS=
2935    case $build in
2936  *-mingw*)
2937    if test "${LD+set}" = set; then :; else
2938      LD=link
2939    fi
2940    ;;
2941esac
2942
2943    ;;
2944esac
2945
2946ac_ext=c
2947ac_cpp='$CPP $CPPFLAGS'
2948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951
2952
2953
2954
2955
2956
2957ac_ext=f
2958ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2959ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2961
2962
2963
2964
2965
2966
2967coin_has_f77=yes
2968
2969save_fflags="$FFLAGS"
2970case $build in
2971  *-cygwin* | *-mingw*)
2972             comps="gfortran g77 ifort fl32" ;;
2973  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
2974esac
2975
2976# We delete the cached value, since the test might not have been
2977# performed with out choise of compilers earlier
2978$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
2979ac_ext=f
2980ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
2981ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982ac_compiler_gnu=$ac_cv_f77_compiler_gnu
2983if test -n "$ac_tool_prefix"; then
2984  for ac_prog in $comps
2985  do
2986    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2988echo "$as_me:$LINENO: checking for $ac_word" >&5
2989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2990if test "${ac_cv_prog_F77+set}" = set; then
2991  echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993  if test -n "$F77"; then
2994  ac_cv_prog_F77="$F77" # Let the user override the test.
2995else
2996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997for as_dir in $PATH
2998do
2999  IFS=$as_save_IFS
3000  test -z "$as_dir" && as_dir=.
3001  for ac_exec_ext in '' $ac_executable_extensions; do
3002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3005    break 2
3006  fi
3007done
3008done
3009
3010fi
3011fi
3012F77=$ac_cv_prog_F77
3013if test -n "$F77"; then
3014  echo "$as_me:$LINENO: result: $F77" >&5
3015echo "${ECHO_T}$F77" >&6
3016else
3017  echo "$as_me:$LINENO: result: no" >&5
3018echo "${ECHO_T}no" >&6
3019fi
3020
3021    test -n "$F77" && break
3022  done
3023fi
3024if test -z "$F77"; then
3025  ac_ct_F77=$F77
3026  for ac_prog in $comps
3027do
3028  # Extract the first word of "$ac_prog", so it can be a program name with args.
3029set dummy $ac_prog; ac_word=$2
3030echo "$as_me:$LINENO: checking for $ac_word" >&5
3031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3032if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3033  echo $ECHO_N "(cached) $ECHO_C" >&6
3034else
3035  if test -n "$ac_ct_F77"; then
3036  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041  IFS=$as_save_IFS
3042  test -z "$as_dir" && as_dir=.
3043  for ac_exec_ext in '' $ac_executable_extensions; do
3044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045    ac_cv_prog_ac_ct_F77="$ac_prog"
3046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047    break 2
3048  fi
3049done
3050done
3051
3052fi
3053fi
3054ac_ct_F77=$ac_cv_prog_ac_ct_F77
3055if test -n "$ac_ct_F77"; then
3056  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3057echo "${ECHO_T}$ac_ct_F77" >&6
3058else
3059  echo "$as_me:$LINENO: result: no" >&5
3060echo "${ECHO_T}no" >&6
3061fi
3062
3063  test -n "$ac_ct_F77" && break
3064done
3065
3066  F77=$ac_ct_F77
3067fi
3068
3069
3070# Provide some information about the compiler.
3071echo "$as_me:3071:" \
3072     "checking for Fortran 77 compiler version" >&5
3073ac_compiler=`set X $ac_compile; echo $2`
3074{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3075  (eval $ac_compiler --version </dev/null >&5) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }
3079{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3080  (eval $ac_compiler -v </dev/null >&5) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }
3084{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3085  (eval $ac_compiler -V </dev/null >&5) 2>&5
3086  ac_status=$?
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); }
3089rm -f a.out
3090
3091# If we don't use `.F' as extension, the preprocessor is not run on the
3092# input file.  (Note that this only needs to work for GNU compilers.)
3093ac_save_ext=$ac_ext
3094ac_ext=F
3095echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3096echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3097if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3098  echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100  cat >conftest.$ac_ext <<_ACEOF
3101      program main
3102#ifndef __GNUC__
3103       choke me
3104#endif
3105
3106      end
3107_ACEOF
3108rm -f conftest.$ac_objext
3109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3110  (eval $ac_compile) 2>conftest.er1
3111  ac_status=$?
3112  grep -v '^ *+' conftest.er1 >conftest.err
3113  rm -f conftest.er1
3114  cat conftest.err >&5
3115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); } &&
3117         { ac_try='test -z "$ac_f77_werror_flag"
3118                         || test ! -s conftest.err'
3119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120  (eval $ac_try) 2>&5
3121  ac_status=$?
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); }; } &&
3124         { ac_try='test -s conftest.$ac_objext'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; }; then
3130  ac_compiler_gnu=yes
3131else
3132  echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135ac_compiler_gnu=no
3136fi
3137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3138ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3139
3140fi
3141echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3142echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3143ac_ext=$ac_save_ext
3144ac_test_FFLAGS=${FFLAGS+set}
3145ac_save_FFLAGS=$FFLAGS
3146FFLAGS=
3147echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3148echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3149if test "${ac_cv_prog_f77_g+set}" = set; then
3150  echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152  FFLAGS=-g
3153cat >conftest.$ac_ext <<_ACEOF
3154      program main
3155
3156      end
3157_ACEOF
3158rm -f conftest.$ac_objext
3159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3160  (eval $ac_compile) 2>conftest.er1
3161  ac_status=$?
3162  grep -v '^ *+' conftest.er1 >conftest.err
3163  rm -f conftest.er1
3164  cat conftest.err >&5
3165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166  (exit $ac_status); } &&
3167         { ac_try='test -z "$ac_f77_werror_flag"
3168                         || test ! -s conftest.err'
3169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170  (eval $ac_try) 2>&5
3171  ac_status=$?
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }; } &&
3174         { ac_try='test -s conftest.$ac_objext'
3175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176  (eval $ac_try) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); }; }; then
3180  ac_cv_prog_f77_g=yes
3181else
3182  echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
3185ac_cv_prog_f77_g=no
3186fi
3187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3188
3189fi
3190echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3191echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3192if test "$ac_test_FFLAGS" = set; then
3193  FFLAGS=$ac_save_FFLAGS
3194elif test $ac_cv_prog_f77_g = yes; then
3195  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3196    FFLAGS="-g -O2"
3197  else
3198    FFLAGS="-g"
3199  fi
3200else
3201  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3202    FFLAGS="-O2"
3203  else
3204    FFLAGS=
3205  fi
3206fi
3207
3208G77=`test $ac_compiler_gnu = yes && echo yes`
3209ac_ext=f
3210ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3211ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3213
3214FFLAGS="$save_fflags"
3215
3216# Check if a project specific FFLAGS variable has been set
3217if test x$COIN_PRJCT != x; then
3218  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3219  if test x$coin_tmp = xset; then
3220    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3221  fi
3222fi
3223
3224if test x"$FFLAGS" = x; then
3225
3226  coin_add_fflags=
3227  coin_opt_fflags=
3228  coin_dbg_fflags=
3229  coin_warn_fflags=
3230
3231  if test "$G77" = "yes"; then
3232    coin_opt_fflags="-O3 -fomit-frame-pointer"
3233    coin_add_fflags="-pipe"
3234    coin_dbg_fflags="-g"
3235    if test "$enable_doscompile" = yes; then
3236      case $build in
3237        *-cygwin*)
3238          FFLAGS="-mno-cygwin"
3239          cat >conftest.$ac_ext <<_ACEOF
3240      program main
3241      write(*,*) 'Hello world'
3242      end
3243_ACEOF
3244rm -f conftest.$ac_objext conftest$ac_exeext
3245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3246  (eval $ac_link) 2>conftest.er1
3247  ac_status=$?
3248  grep -v '^ *+' conftest.er1 >conftest.err
3249  rm -f conftest.er1
3250  cat conftest.err >&5
3251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252  (exit $ac_status); } &&
3253         { ac_try='test -z "$ac_f77_werror_flag"
3254                         || test ! -s conftest.err'
3255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256  (eval $ac_try) 2>&5
3257  ac_status=$?
3258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259  (exit $ac_status); }; } &&
3260         { ac_try='test -s conftest$ac_exeext'
3261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3262  (eval $ac_try) 2>&5
3263  ac_status=$?
3264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265  (exit $ac_status); }; }; then
3266  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3267else
3268  echo "$as_me: failed program was:" >&5
3269sed 's/^/| /' conftest.$ac_ext >&5
3270
3271fi
3272rm -f conftest.err conftest.$ac_objext \
3273      conftest$ac_exeext conftest.$ac_ext
3274          FFLAGS=
3275        ;;
3276      esac
3277    fi
3278  else
3279    case $build in
3280      *-cygwin* | *-mingw*)
3281        case $F77 in
3282          ifort* | */ifort*)
3283            coin_opt_fflags='-O3'
3284            coin_add_fflags='-nologo -MT'
3285            coin_dbg_fflags='-debug'
3286          ;;
3287        esac
3288        ;;
3289      *-linux-*)
3290        case $F77 in
3291          ifc* | */ifc* | ifort* | */ifort*)
3292            coin_opt_fflags="-O3 -ip"
3293            coin_add_fflags="-cm -w90 -w95"
3294            coin_dbg_fflags="-g -CA -CB -CS"
3295            # Check if -i_dynamic is necessary (for new glibc library)
3296            FFLAGS=
3297            cat >conftest.$ac_ext <<_ACEOF
3298      program main
3299      write(*,*) 'Hello world'
3300      end
3301_ACEOF
3302rm -f conftest.$ac_objext conftest$ac_exeext
3303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3304  (eval $ac_link) 2>conftest.er1
3305  ac_status=$?
3306  grep -v '^ *+' conftest.er1 >conftest.err
3307  rm -f conftest.er1
3308  cat conftest.err >&5
3309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310  (exit $ac_status); } &&
3311         { ac_try='test -z "$ac_f77_werror_flag"
3312                         || test ! -s conftest.err'
3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314  (eval $ac_try) 2>&5
3315  ac_status=$?
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); }; } &&
3318         { ac_try='test -s conftest$ac_exeext'
3319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320  (eval $ac_try) 2>&5
3321  ac_status=$?
3322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323  (exit $ac_status); }; }; then
3324  :
3325else
3326  echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329coin_add_fflags="-i_dynamic $coin_add_fflags"
3330fi
3331rm -f conftest.err conftest.$ac_objext \
3332      conftest$ac_exeext conftest.$ac_ext
3333            ;;
3334          pgf77* | */pgf77* | pgf90* | */pgf90*)
3335            coin_opt_fflags="-fast"
3336            coin_add_fflags="-Kieee -pc 64"
3337            coin_dbg_fflags="-g"
3338          ;;
3339        esac
3340        ;;
3341      *-ibm-*)
3342        case "$F77" in
3343          xlf* | */xlf* | mpxlf* | */mpxlf* )
3344            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3345            coin_add_fflags="-bmaxdata:0x80000000"
3346            coin_dbg_fflags="-g -C"
3347            ;;
3348        esac
3349        ;;
3350      *-hp-*)
3351        coin_opt_fflags="+O3"
3352        coin_add_fflags="+U77"
3353        coin_dbg_fflags="-C -g"
3354        ;;
3355      *-sun-*)
3356        coin_opt_fflags="-O4"
3357        coin_dbg_fflags="-g"
3358        ;;
3359      *-sgi-*)
3360        coin_opt_fflags="-O5 -OPT:Olimit=0"
3361        coin_dbg_fflags="-g"
3362        ;;
3363    esac
3364  fi
3365
3366  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3367    coin_dbg_fflags="-g"
3368  fi
3369
3370  if test -z "$coin_opt_fflags"; then
3371    # Try if -O option works if nothing else is set
3372    FFLAGS=-O
3373    cat >conftest.$ac_ext <<_ACEOF
3374      program main
3375      integer i
3376      end
3377_ACEOF
3378rm -f conftest.$ac_objext conftest$ac_exeext
3379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3380  (eval $ac_link) 2>conftest.er1
3381  ac_status=$?
3382  grep -v '^ *+' conftest.er1 >conftest.err
3383  rm -f conftest.er1
3384  cat conftest.err >&5
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); } &&
3387         { ac_try='test -z "$ac_f77_werror_flag"
3388                         || test ! -s conftest.err'
3389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390  (eval $ac_try) 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); }; } &&
3394         { ac_try='test -s conftest$ac_exeext'
3395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396  (eval $ac_try) 2>&5
3397  ac_status=$?
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); }; }; then
3400  coin_opt_fflags="-O"
3401else
3402  echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405fi
3406rm -f conftest.err conftest.$ac_objext \
3407      conftest$ac_exeext conftest.$ac_ext
3408  fi
3409
3410  # if PM doesn't want the warning messages, take them out
3411  if test x"$coin_skip_warn_fflags" = xyes; then
3412    coin_warn_fflags=
3413  fi
3414
3415  if test x${DBG_FFLAGS+set} != xset; then
3416    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3417  fi
3418  if test x${OPT_FFLAGS+set} != xset; then
3419    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3420  fi
3421
3422  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3423  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3424
3425  if test "$coin_debug_compile" = "true"; then
3426    FFLAGS="$DBG_FFLAGS"
3427  else
3428    FFLAGS="$OPT_FFLAGS"
3429  fi
3430else
3431  FFLAGS="$FFLAGS $ADD_FFLAGS"
3432  if test x${DBG_FFLAGS+set} != xset; then
3433    DBG_FFLAGS="$FFLAGS"
3434  fi
3435  if test x${OPT_FFLAGS+set} != xset; then
3436    OPT_FFLAGS="$FFLAGS"
3437  fi
3438fi
3439
3440# Try if FFLAGS works
3441cat >conftest.$ac_ext <<_ACEOF
3442      program main
3443      integer i
3444      end
3445_ACEOF
3446rm -f conftest.$ac_objext conftest$ac_exeext
3447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448  (eval $ac_link) 2>conftest.er1
3449  ac_status=$?
3450  grep -v '^ *+' conftest.er1 >conftest.err
3451  rm -f conftest.er1
3452  cat conftest.err >&5
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); } &&
3455         { ac_try='test -z "$ac_f77_werror_flag"
3456                         || test ! -s conftest.err'
3457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458  (eval $ac_try) 2>&5
3459  ac_status=$?
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); }; } &&
3462         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3468  :
3469else
3470  echo "$as_me: failed program was:" >&5
3471sed 's/^/| /' conftest.$ac_ext >&5
3472
3473FFLAGS=
3474fi
3475rm -f conftest.err conftest.$ac_objext \
3476      conftest$ac_exeext conftest.$ac_ext
3477if test -z "$FFLAGS"; then
3478  { 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
3479echo "$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;}
3480  FFLAGS='-O'
3481  cat >conftest.$ac_ext <<_ACEOF
3482      program main
3483      integer i
3484      end
3485_ACEOF
3486rm -f conftest.$ac_objext conftest$ac_exeext
3487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3488  (eval $ac_link) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } &&
3495         { ac_try='test -z "$ac_f77_werror_flag"
3496                         || test ! -s conftest.err'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; } &&
3502         { ac_try='test -s conftest$ac_exeext'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  :
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513FFLAGS=
3514fi
3515rm -f conftest.err conftest.$ac_objext \
3516      conftest$ac_exeext conftest.$ac_ext
3517  if test -z "$FFLAGS"; then
3518    { 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
3519echo "$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;}
3520  fi
3521fi
3522
3523{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3524echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3525
3526
3527if test x"$MPIF77" = x; then :; else
3528  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3529echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3530  F77="$MPIF77"
3531fi
3532
3533case "$F77" in
3534  ifort*)
3535    case $build in
3536  *-mingw*)
3537    if test "${LD+set}" = set; then :; else
3538      LD=link
3539    fi
3540    ;;
3541esac
3542
3543    ;;
3544esac
3545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551
3552
3553
3554# Initialize autotools
3555
3556# On Cygwin, building DLLs doesn't work
3557case $build in
3558  *-cygwin*)
3559    coin_disable_shared=yes
3560    platform=Cygwin
3561  ;;
3562  *-mingw*)
3563    coin_disable_shared=yes
3564    platform="Msys"
3565#    case "$CXX" in
3566#      cl*)
3567#        coin_disable_shared=yes
3568#        platform="Msys with cl"
3569#    ;;
3570#    esac
3571  ;;
3572esac
3573if test x"$coin_disable_shared" = xyes; then
3574  if test x"$enable_shared" = xyes; then
3575    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3576echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3577  fi
3578  enable_shared=no
3579fi
3580# By default, we only want the shared objects to be compiled
3581# Check whether --enable-static or --disable-static was given.
3582if test "${enable_static+set}" = set; then
3583  enableval="$enable_static"
3584  p=${PACKAGE-default}
3585    case $enableval in
3586    yes) enable_static=yes ;;
3587    no) enable_static=no ;;
3588    *)
3589     enable_static=no
3590      # Look at the argument we got.  We use all the common list separators.
3591      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3592      for pkg in $enableval; do
3593        IFS="$lt_save_ifs"
3594        if test "X$pkg" = "X$p"; then
3595          enable_static=yes
3596        fi
3597      done
3598      IFS="$lt_save_ifs"
3599      ;;
3600    esac
3601else
3602  enable_static=no
3603fi;
3604
3605
3606
3607echo "$as_me:$LINENO: checking for egrep" >&5
3608echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3609if test "${ac_cv_prog_egrep+set}" = set; then
3610  echo $ECHO_N "(cached) $ECHO_C" >&6
3611else
3612  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3613    then ac_cv_prog_egrep='grep -E'
3614    else ac_cv_prog_egrep='egrep'
3615    fi
3616fi
3617echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3618echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3619 EGREP=$ac_cv_prog_egrep
3620
3621
3622am__api_version="1.9"
3623# Find a good install program.  We prefer a C program (faster),
3624# so one script is as good as another.  But avoid the broken or
3625# incompatible versions:
3626# SysV /etc/install, /usr/sbin/install
3627# SunOS /usr/etc/install
3628# IRIX /sbin/install
3629# AIX /bin/install
3630# AmigaOS /C/install, which installs bootblocks on floppy discs
3631# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3632# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3633# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3634# OS/2's system install, which has a completely different semantic
3635# ./install, which can be erroneously created by make from ./install.sh.
3636echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3637echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3638if test -z "$INSTALL"; then
3639if test "${ac_cv_path_install+set}" = set; then
3640  echo $ECHO_N "(cached) $ECHO_C" >&6
3641else
3642  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643for as_dir in $PATH
3644do
3645  IFS=$as_save_IFS
3646  test -z "$as_dir" && as_dir=.
3647  # Account for people who put trailing slashes in PATH elements.
3648case $as_dir/ in
3649  ./ | .// | /cC/* | \
3650  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3651  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3652  /usr/ucb/* ) ;;
3653  *)
3654    # OSF1 and SCO ODT 3.0 have their own names for install.
3655    # Don't use installbsd from OSF since it installs stuff as root
3656    # by default.
3657    for ac_prog in ginstall scoinst install; do
3658      for ac_exec_ext in '' $ac_executable_extensions; do
3659        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3660          if test $ac_prog = install &&
3661            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3662            # AIX install.  It has an incompatible calling convention.
3663            :
3664          elif test $ac_prog = install &&
3665            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3666            # program-specific install script used by HP pwplus--don't use.
3667            :
3668          else
3669            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3670            break 3
3671          fi
3672        fi
3673      done
3674    done
3675    ;;
3676esac
3677done
3678
3679
3680fi
3681  if test "${ac_cv_path_install+set}" = set; then
3682    INSTALL=$ac_cv_path_install
3683  else
3684    # As a last resort, use the slow shell script.  We don't cache a
3685    # path for INSTALL within a source directory, because that will
3686    # break other packages using the cache if that directory is
3687    # removed, or if the path is relative.
3688    INSTALL=$ac_install_sh
3689  fi
3690fi
3691echo "$as_me:$LINENO: result: $INSTALL" >&5
3692echo "${ECHO_T}$INSTALL" >&6
3693
3694# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3695# It thinks the first close brace ends the variable substitution.
3696test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3697
3698test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3699
3700test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3701
3702echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3703echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3704# Just in case
3705sleep 1
3706echo timestamp > conftest.file
3707# Do `set' in a subshell so we don't clobber the current shell's
3708# arguments.  Must try -L first in case configure is actually a
3709# symlink; some systems play weird games with the mod time of symlinks
3710# (eg FreeBSD returns the mod time of the symlink's containing
3711# directory).
3712if (
3713   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3714   if test "$*" = "X"; then
3715      # -L didn't work.
3716      set X `ls -t $srcdir/configure conftest.file`
3717   fi
3718   rm -f conftest.file
3719   if test "$*" != "X $srcdir/configure conftest.file" \
3720      && test "$*" != "X conftest.file $srcdir/configure"; then
3721
3722      # If neither matched, then we have a broken ls.  This can happen
3723      # if, for instance, CONFIG_SHELL is bash and it inherits a
3724      # broken ls alias from the environment.  This has actually
3725      # happened.  Such a system could not be considered "sane".
3726      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3727alias in your environment" >&5
3728echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3729alias in your environment" >&2;}
3730   { (exit 1); exit 1; }; }
3731   fi
3732
3733   test "$2" = conftest.file
3734   )
3735then
3736   # Ok.
3737   :
3738else
3739   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3740Check your system clock" >&5
3741echo "$as_me: error: newly created file is older than distributed files!
3742Check your system clock" >&2;}
3743   { (exit 1); exit 1; }; }
3744fi
3745echo "$as_me:$LINENO: result: yes" >&5
3746echo "${ECHO_T}yes" >&6
3747test "$program_prefix" != NONE &&
3748  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3749# Use a double $ so make ignores it.
3750test "$program_suffix" != NONE &&
3751  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3752# Double any \ or $.  echo might interpret backslashes.
3753# By default was `s,x,x', remove it if useless.
3754cat <<\_ACEOF >conftest.sed
3755s/[\\$]/&&/g;s/;s,x,x,$//
3756_ACEOF
3757program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3758rm conftest.sed
3759
3760# expand $ac_aux_dir to an absolute path
3761am_aux_dir=`cd $ac_aux_dir && pwd`
3762
3763test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3764# Use eval to expand $SHELL
3765if eval "$MISSING --run true"; then
3766  am_missing_run="$MISSING --run "
3767else
3768  am_missing_run=
3769  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3770echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3771fi
3772
3773if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3774  # We used to keeping the `.' as first argument, in order to
3775  # allow $(mkdir_p) to be used without argument.  As in
3776  #   $(mkdir_p) $(somedir)
3777  # where $(somedir) is conditionally defined.  However this is wrong
3778  # for two reasons:
3779  #  1. if the package is installed by a user who cannot write `.'
3780  #     make install will fail,
3781  #  2. the above comment should most certainly read
3782  #     $(mkdir_p) $(DESTDIR)$(somedir)
3783  #     so it does not work when $(somedir) is undefined and
3784  #     $(DESTDIR) is not.
3785  #  To support the latter case, we have to write
3786  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3787  #  so the `.' trick is pointless.
3788  mkdir_p='mkdir -p --'
3789else
3790  # On NextStep and OpenStep, the `mkdir' command does not
3791  # recognize any option.  It will interpret all options as
3792  # directories to create, and then abort because `.' already
3793  # exists.
3794  for d in ./-p ./--version;
3795  do
3796    test -d $d && rmdir $d
3797  done
3798  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3799  if test -f "$ac_aux_dir/mkinstalldirs"; then
3800    mkdir_p='$(mkinstalldirs)'
3801  else
3802    mkdir_p='$(install_sh) -d'
3803  fi
3804fi
3805
3806for ac_prog in gawk mawk nawk awk
3807do
3808  # Extract the first word of "$ac_prog", so it can be a program name with args.
3809set dummy $ac_prog; ac_word=$2
3810echo "$as_me:$LINENO: checking for $ac_word" >&5
3811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3812if test "${ac_cv_prog_AWK+set}" = set; then
3813  echo $ECHO_N "(cached) $ECHO_C" >&6
3814else
3815  if test -n "$AWK"; then
3816  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821  IFS=$as_save_IFS
3822  test -z "$as_dir" && as_dir=.
3823  for ac_exec_ext in '' $ac_executable_extensions; do
3824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825    ac_cv_prog_AWK="$ac_prog"
3826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827    break 2
3828  fi
3829done
3830done
3831
3832fi
3833fi
3834AWK=$ac_cv_prog_AWK
3835if test -n "$AWK"; then
3836  echo "$as_me:$LINENO: result: $AWK" >&5
3837echo "${ECHO_T}$AWK" >&6
3838else
3839  echo "$as_me:$LINENO: result: no" >&5
3840echo "${ECHO_T}no" >&6
3841fi
3842
3843  test -n "$AWK" && break
3844done
3845
3846echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3847echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3848set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3849if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3850  echo $ECHO_N "(cached) $ECHO_C" >&6
3851else
3852  cat >conftest.make <<\_ACEOF
3853all:
3854        @echo 'ac_maketemp="$(MAKE)"'
3855_ACEOF
3856# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3857eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3858if test -n "$ac_maketemp"; then
3859  eval ac_cv_prog_make_${ac_make}_set=yes
3860else
3861  eval ac_cv_prog_make_${ac_make}_set=no
3862fi
3863rm -f conftest.make
3864fi
3865if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3866  echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
3868  SET_MAKE=
3869else
3870  echo "$as_me:$LINENO: result: no" >&5
3871echo "${ECHO_T}no" >&6
3872  SET_MAKE="MAKE=${MAKE-make}"
3873fi
3874
3875rm -rf .tst 2>/dev/null
3876mkdir .tst 2>/dev/null
3877if test -d .tst; then
3878  am__leading_dot=.
3879else
3880  am__leading_dot=_
3881fi
3882rmdir .tst 2>/dev/null
3883
3884DEPDIR="${am__leading_dot}deps"
3885
3886          ac_config_commands="$ac_config_commands depfiles"
3887
3888
3889am_make=${MAKE-make}
3890cat > confinc << 'END'
3891am__doit:
3892        @echo done
3893.PHONY: am__doit
3894END
3895# If we don't find an include directive, just comment out the code.
3896echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3897echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3898am__include="#"
3899am__quote=
3900_am_result=none
3901# First try GNU make style include.
3902echo "include confinc" > confmf
3903# We grep out `Entering directory' and `Leaving directory'
3904# messages which can occur if `w' ends up in MAKEFLAGS.
3905# In particular we don't look at `^make:' because GNU make might
3906# be invoked under some other name (usually "gmake"), in which
3907# case it prints its new name instead of `make'.
3908if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3909   am__include=include
3910   am__quote=
3911   _am_result=GNU
3912fi
3913# Now try BSD make style include.
3914if test "$am__include" = "#"; then
3915   echo '.include "confinc"' > confmf
3916   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3917      am__include=.include
3918      am__quote="\""
3919      _am_result=BSD
3920   fi
3921fi
3922
3923
3924echo "$as_me:$LINENO: result: $_am_result" >&5
3925echo "${ECHO_T}$_am_result" >&6
3926rm -f confinc confmf
3927
3928# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3929if test "${enable_dependency_tracking+set}" = set; then
3930  enableval="$enable_dependency_tracking"
3931
3932fi;
3933if test "x$enable_dependency_tracking" != xno; then
3934  am_depcomp="$ac_aux_dir/depcomp"
3935  AMDEPBACKSLASH='\'
3936fi
3937
3938
3939if test "x$enable_dependency_tracking" != xno; then
3940  AMDEP_TRUE=
3941  AMDEP_FALSE='#'
3942else
3943  AMDEP_TRUE='#'
3944  AMDEP_FALSE=
3945fi
3946
3947
3948
3949ac_ext=c
3950ac_cpp='$CPP $CPPFLAGS'
3951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955if test x"" = x; then
3956  hdr="#include <dlfcn.h>"
3957else
3958  hdr=""
3959fi
3960
3961for ac_header in dlfcn.h
3962do
3963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3964echo "$as_me:$LINENO: checking for $ac_header" >&5
3965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967  echo $ECHO_N "(cached) $ECHO_C" >&6
3968else
3969  cat >conftest.$ac_ext <<_ACEOF
3970/* confdefs.h.  */
3971_ACEOF
3972cat confdefs.h >>conftest.$ac_ext
3973cat >>conftest.$ac_ext <<_ACEOF
3974/* end confdefs.h.  */
3975$hdr
3976
3977#include <$ac_header>
3978_ACEOF
3979rm -f conftest.$ac_objext
3980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981  (eval $ac_compile) 2>conftest.er1
3982  ac_status=$?
3983  grep -v '^ *+' conftest.er1 >conftest.err
3984  rm -f conftest.er1
3985  cat conftest.err >&5
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); } &&
3988         { ac_try='test -z "$ac_c_werror_flag"
3989                         || test ! -s conftest.err'
3990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991  (eval $ac_try) 2>&5
3992  ac_status=$?
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); }; } &&
3995         { ac_try='test -s conftest.$ac_objext'
3996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997  (eval $ac_try) 2>&5
3998  ac_status=$?
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); }; }; then
4001  eval "$as_ac_Header=yes"
4002else
4003  echo "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006eval "$as_ac_Header=no"
4007fi
4008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009fi
4010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4012if test `eval echo '${'$as_ac_Header'}'` = yes; then
4013  cat >>confdefs.h <<_ACEOF
4014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015_ACEOF
4016
4017fi
4018
4019done
4020
4021
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028
4029# Check whether --enable-shared or --disable-shared was given.
4030if test "${enable_shared+set}" = set; then
4031  enableval="$enable_shared"
4032  p=${PACKAGE-default}
4033    case $enableval in
4034    yes) enable_shared=yes ;;
4035    no) enable_shared=no ;;
4036    *)
4037      enable_shared=no
4038      # Look at the argument we got.  We use all the common list separators.
4039      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4040      for pkg in $enableval; do
4041        IFS="$lt_save_ifs"
4042        if test "X$pkg" = "X$p"; then
4043          enable_shared=yes
4044        fi
4045      done
4046      IFS="$lt_save_ifs"
4047      ;;
4048    esac
4049else
4050  enable_shared=yes
4051fi;
4052
4053# Check whether --enable-fast-install or --disable-fast-install was given.
4054if test "${enable_fast_install+set}" = set; then
4055  enableval="$enable_fast_install"
4056  p=${PACKAGE-default}
4057    case $enableval in
4058    yes) enable_fast_install=yes ;;
4059    no) enable_fast_install=no ;;
4060    *)
4061      enable_fast_install=no
4062      # Look at the argument we got.  We use all the common list separators.
4063      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4064      for pkg in $enableval; do
4065        IFS="$lt_save_ifs"
4066        if test "X$pkg" = "X$p"; then
4067          enable_fast_install=yes
4068        fi
4069      done
4070      IFS="$lt_save_ifs"
4071      ;;
4072    esac
4073else
4074  enable_fast_install=yes
4075fi;
4076
4077echo "$as_me:$LINENO: checking host system type" >&5
4078echo $ECHO_N "checking host system type... $ECHO_C" >&6
4079if test "${ac_cv_host+set}" = set; then
4080  echo $ECHO_N "(cached) $ECHO_C" >&6
4081else
4082  ac_cv_host_alias=$host_alias
4083test -z "$ac_cv_host_alias" &&
4084  ac_cv_host_alias=$ac_cv_build_alias
4085ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4086  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4087echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4088   { (exit 1); exit 1; }; }
4089
4090fi
4091echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4092echo "${ECHO_T}$ac_cv_host" >&6
4093host=$ac_cv_host
4094host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4095host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4096host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4097
4098
4099echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4100echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4101if test "${lt_cv_path_SED+set}" = set; then
4102  echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104  # Loop through the user's path and test for sed and gsed.
4105# Then use that list of sed's as ones to test for truncation.
4106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107for as_dir in $PATH
4108do
4109  IFS=$as_save_IFS
4110  test -z "$as_dir" && as_dir=.
4111  for lt_ac_prog in sed gsed; do
4112    for ac_exec_ext in '' $ac_executable_extensions; do
4113      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4114        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4115      fi
4116    done
4117  done
4118done
4119lt_ac_max=0
4120lt_ac_count=0
4121# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4122# along with /bin/sed that truncates output.
4123for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4124  test ! -f $lt_ac_sed && continue
4125  cat /dev/null > conftest.in
4126  lt_ac_count=0
4127  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4128  # Check for GNU sed and select it if it is found.
4129  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4130    lt_cv_path_SED=$lt_ac_sed
4131    break
4132  fi
4133  while true; do
4134    cat conftest.in conftest.in >conftest.tmp
4135    mv conftest.tmp conftest.in
4136    cp conftest.in conftest.nl
4137    echo >>conftest.nl
4138    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4139    cmp -s conftest.out conftest.nl || break
4140    # 10000 chars as input seems more than enough
4141    test $lt_ac_count -gt 10 && break
4142    lt_ac_count=`expr $lt_ac_count + 1`
4143    if test $lt_ac_count -gt $lt_ac_max; then
4144      lt_ac_max=$lt_ac_count
4145      lt_cv_path_SED=$lt_ac_sed
4146    fi
4147  done
4148done
4149
4150fi
4151
4152SED=$lt_cv_path_SED
4153echo "$as_me:$LINENO: result: $SED" >&5
4154echo "${ECHO_T}$SED" >&6
4155
4156
4157# Check whether --with-gnu-ld or --without-gnu-ld was given.
4158if test "${with_gnu_ld+set}" = set; then
4159  withval="$with_gnu_ld"
4160  test "$withval" = no || with_gnu_ld=yes
4161else
4162  with_gnu_ld=no
4163fi;
4164ac_prog=ld
4165if test "$GCC" = yes; then
4166  # Check if gcc -print-prog-name=ld gives a path.
4167  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4168echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4169  case $host in
4170  *-*-mingw*)
4171    # gcc leaves a trailing carriage return which upsets mingw
4172    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4173  *)
4174    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4175  esac
4176  case $ac_prog in
4177    # Accept absolute paths.
4178    [\\/]* | ?:[\\/]*)
4179      re_direlt='/[^/][^/]*/\.\./'
4180      # Canonicalize the pathname of ld
4181      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4182      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4183        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4184      done
4185      test -z "$LD" && LD="$ac_prog"
4186      ;;
4187  "")
4188    # If it fails, then pretend we aren't using GCC.
4189    ac_prog=ld
4190    ;;
4191  *)
4192    # If it is relative, then search for the first ld in PATH.
4193    with_gnu_ld=unknown
4194    ;;
4195  esac
4196elif test "$with_gnu_ld" = yes; then
4197  echo "$as_me:$LINENO: checking for GNU ld" >&5
4198echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4199else
4200  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4201echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4202fi
4203if test "${lt_cv_path_LD+set}" = set; then
4204  echo $ECHO_N "(cached) $ECHO_C" >&6
4205else
4206  if test -z "$LD"; then
4207  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4208  for ac_dir in $PATH; do
4209    IFS="$lt_save_ifs"
4210    test -z "$ac_dir" && ac_dir=.
4211    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4212      lt_cv_path_LD="$ac_dir/$ac_prog"
4213      # Check to see if the program is GNU ld.  I'd rather use --version,
4214      # but apparently some variants of GNU ld only accept -v.
4215      # Break only if it was the GNU/non-GNU ld that we prefer.
4216      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4217      *GNU* | *'with BFD'*)
4218        test "$with_gnu_ld" != no && break
4219        ;;
4220      *)
4221        test "$with_gnu_ld" != yes && break
4222        ;;
4223      esac
4224    fi
4225  done
4226  IFS="$lt_save_ifs"
4227else
4228  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4229fi
4230fi
4231
4232LD="$lt_cv_path_LD"
4233if test -n "$LD"; then
4234  echo "$as_me:$LINENO: result: $LD" >&5
4235echo "${ECHO_T}$LD" >&6
4236else
4237  echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239fi
4240test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4241echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4242   { (exit 1); exit 1; }; }
4243echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4244echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4245if test "${lt_cv_prog_gnu_ld+set}" = set; then
4246  echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4249case `$LD -v 2>&1 </dev/null` in
4250*GNU* | *'with BFD'*)
4251  lt_cv_prog_gnu_ld=yes
4252  ;;
4253*)
4254  lt_cv_prog_gnu_ld=no
4255  ;;
4256esac
4257fi
4258echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4259echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4260with_gnu_ld=$lt_cv_prog_gnu_ld
4261
4262
4263echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4264echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4265if test "${lt_cv_ld_reload_flag+set}" = set; then
4266  echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268  lt_cv_ld_reload_flag='-r'
4269fi
4270echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4271echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4272reload_flag=$lt_cv_ld_reload_flag
4273case $reload_flag in
4274"" | " "*) ;;
4275*) reload_flag=" $reload_flag" ;;
4276esac
4277reload_cmds='$LD$reload_flag -o $output$reload_objs'
4278case $host_os in
4279  darwin*)
4280    if test "$GCC" = yes; then
4281      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4282    else
4283      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4284    fi
4285    ;;
4286esac
4287
4288echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4289echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4290if test "${lt_cv_path_NM+set}" = set; then
4291  echo $ECHO_N "(cached) $ECHO_C" >&6
4292else
4293  if test -n "$NM"; then
4294  # Let the user override the test.
4295  lt_cv_path_NM="$NM"
4296else
4297  lt_nm_to_check="${ac_tool_prefix}nm"
4298  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4299    lt_nm_to_check="$lt_nm_to_check nm"
4300  fi
4301  for lt_tmp_nm in $lt_nm_to_check; do
4302    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4303    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4304      IFS="$lt_save_ifs"
4305      test -z "$ac_dir" && ac_dir=.
4306      tmp_nm="$ac_dir/$lt_tmp_nm"
4307      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4308        # Check to see if the nm accepts a BSD-compat flag.
4309        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4310        #   nm: unknown option "B" ignored
4311        # Tru64's nm complains that /dev/null is an invalid object file
4312        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4313        */dev/null* | *'Invalid file or object type'*)
4314          lt_cv_path_NM="$tmp_nm -B"
4315          break
4316          ;;
4317        *)
4318          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4319          */dev/null*)
4320            lt_cv_path_NM="$tmp_nm -p"
4321            break
4322            ;;
4323          *)
4324            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4325            continue # so that we can try to find one that supports BSD flags
4326            ;;
4327          esac
4328          ;;
4329        esac
4330      fi
4331    done
4332    IFS="$lt_save_ifs"
4333  done
4334  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4335fi
4336fi
4337echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4338echo "${ECHO_T}$lt_cv_path_NM" >&6
4339NM="$lt_cv_path_NM"
4340
4341echo "$as_me:$LINENO: checking whether ln -s works" >&5
4342echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4343LN_S=$as_ln_s
4344if test "$LN_S" = "ln -s"; then
4345  echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6
4347else
4348  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4349echo "${ECHO_T}no, using $LN_S" >&6
4350fi
4351
4352echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4353echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4354if test "${lt_cv_deplibs_check_method+set}" = set; then
4355  echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357  lt_cv_file_magic_cmd='$MAGIC_CMD'
4358lt_cv_file_magic_test_file=
4359lt_cv_deplibs_check_method='unknown'
4360# Need to set the preceding variable on all platforms that support
4361# interlibrary dependencies.
4362# 'none' -- dependencies not supported.
4363# `unknown' -- same as none, but documents that we really don't know.
4364# 'pass_all' -- all dependencies passed with no checks.
4365# 'test_compile' -- check by making test program.
4366# 'file_magic [[regex]]' -- check by looking for files in library path
4367# which responds to the $file_magic_cmd with a given extended regex.
4368# If you have `file' or equivalent on your system and you're not sure
4369# whether `pass_all' will *always* work, you probably want this one.
4370
4371case $host_os in
4372aix4* | aix5*)
4373  lt_cv_deplibs_check_method=pass_all
4374  ;;
4375
4376beos*)
4377  lt_cv_deplibs_check_method=pass_all
4378  ;;
4379
4380bsdi[45]*)
4381  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4382  lt_cv_file_magic_cmd='/usr/bin/file -L'
4383  lt_cv_file_magic_test_file=/shlib/libc.so
4384  ;;
4385
4386cygwin*)
4387  # func_win32_libid is a shell function defined in ltmain.sh
4388  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4389  lt_cv_file_magic_cmd='func_win32_libid'
4390  ;;
4391
4392mingw* | pw32*)
4393  # Base MSYS/MinGW do not provide the 'file' command needed by
4394  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4395  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4396  lt_cv_file_magic_cmd='$OBJDUMP -f'
4397  ;;
4398
4399darwin* | rhapsody*)
4400  lt_cv_deplibs_check_method=pass_all
4401  ;;
4402
4403freebsd* | kfreebsd*-gnu | dragonfly*)
4404  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4405    case $host_cpu in
4406    i*86 )
4407      # Not sure whether the presence of OpenBSD here was a mistake.
4408      # Let's accept both of them until this is cleared up.
4409      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4410      lt_cv_file_magic_cmd=/usr/bin/file
4411      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4412      ;;
4413    esac
4414  else
4415    lt_cv_deplibs_check_method=pass_all
4416  fi
4417  ;;
4418
4419gnu*)
4420  lt_cv_deplibs_check_method=pass_all
4421  ;;
4422
4423hpux10.20* | hpux11*)
4424  lt_cv_file_magic_cmd=/usr/bin/file
4425  case $host_cpu in
4426  ia64*)
4427    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4428    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4429    ;;
4430  hppa*64*)
4431    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]'
4432    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4433    ;;
4434  *)
4435    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4436    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4437    ;;
4438  esac
4439  ;;
4440
4441interix3*)
4442  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4443  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4444  ;;
4445
4446irix5* | irix6* | nonstopux*)
4447  case $LD in
4448  *-32|*"-32 ") libmagic=32-bit;;
4449  *-n32|*"-n32 ") libmagic=N32;;
4450  *-64|*"-64 ") libmagic=64-bit;;
4451  *) libmagic=never-match;;
4452  esac
4453  lt_cv_deplibs_check_method=pass_all
4454  ;;
4455
4456# This must be Linux ELF.
4457linux*)
4458  lt_cv_deplibs_check_method=pass_all
4459  ;;
4460
4461netbsd*)
4462  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4463    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4464  else
4465    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4466  fi
4467  ;;
4468
4469newos6*)
4470  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4471  lt_cv_file_magic_cmd=/usr/bin/file
4472  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4473  ;;
4474
4475nto-qnx*)
4476  lt_cv_deplibs_check_method=unknown
4477  ;;
4478
4479openbsd*)
4480  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4481    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4482  else
4483    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4484  fi
4485  ;;
4486
4487osf3* | osf4* | osf5*)
4488  lt_cv_deplibs_check_method=pass_all
4489  ;;
4490
4491solaris*)
4492  lt_cv_deplibs_check_method=pass_all
4493  ;;
4494
4495sysv4 | sysv4.3*)
4496  case $host_vendor in
4497  motorola)
4498    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]'
4499    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4500    ;;
4501  ncr)
4502    lt_cv_deplibs_check_method=pass_all
4503    ;;
4504  sequent)
4505    lt_cv_file_magic_cmd='/bin/file'
4506    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4507    ;;
4508  sni)
4509    lt_cv_file_magic_cmd='/bin/file'
4510    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4511    lt_cv_file_magic_test_file=/lib/libc.so
4512    ;;
4513  siemens)
4514    lt_cv_deplibs_check_method=pass_all
4515    ;;
4516  pc)
4517    lt_cv_deplibs_check_method=pass_all
4518    ;;
4519  esac
4520  ;;
4521
4522sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4523  lt_cv_deplibs_check_method=pass_all
4524  ;;
4525esac
4526
4527fi
4528echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4529echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4530file_magic_cmd=$lt_cv_file_magic_cmd
4531deplibs_check_method=$lt_cv_deplibs_check_method
4532test -z "$deplibs_check_method" && deplibs_check_method=unknown
4533
4534
4535
4536
4537# If no C compiler was specified, use CC.
4538LTCC=${LTCC-"$CC"}
4539
4540# If no C compiler flags were specified, use CFLAGS.
4541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4542
4543# Allow CC to be a program name with arguments.
4544compiler=$CC
4545
4546# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4547if test "${enable_libtool_lock+set}" = set; then
4548  enableval="$enable_libtool_lock"
4549
4550fi;
4551test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4552
4553# Some flags need to be propagated to the compiler or linker for good
4554# libtool support.
4555case $host in
4556ia64-*-hpux*)
4557  # Find out which ABI we are using.
4558  echo 'int i;' > conftest.$ac_ext
4559  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4560  (eval $ac_compile) 2>&5
4561  ac_status=$?
4562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563  (exit $ac_status); }; then
4564    case `/usr/bin/file conftest.$ac_objext` in
4565    *ELF-32*)
4566      HPUX_IA64_MODE="32"
4567      ;;
4568    *ELF-64*)
4569      HPUX_IA64_MODE="64"
4570      ;;
4571    esac
4572  fi
4573  rm -rf conftest*
4574  ;;
4575*-*-irix6*)
4576  # Find out which ABI we are using.
4577  echo '#line 4577 "configure"' > conftest.$ac_ext
4578  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4579  (eval $ac_compile) 2>&5
4580  ac_status=$?
4581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); }; then
4583   if test "$lt_cv_prog_gnu_ld" = yes; then
4584    case `/usr/bin/file conftest.$ac_objext` in
4585    *32-bit*)
4586      LD="${LD-ld} -melf32bsmip"
4587      ;;
4588    *N32*)
4589      LD="${LD-ld} -melf32bmipn32"
4590      ;;
4591    *64-bit*)
4592      LD="${LD-ld} -melf64bmip"
4593      ;;
4594    esac
4595   else
4596    case `/usr/bin/file conftest.$ac_objext` in
4597    *32-bit*)
4598      LD="${LD-ld} -32"
4599      ;;
4600    *N32*)
4601      LD="${LD-ld} -n32"
4602      ;;
4603    *64-bit*)
4604      LD="${LD-ld} -64"
4605      ;;
4606    esac
4607   fi
4608  fi
4609  rm -rf conftest*
4610  ;;
4611
4612x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4613  # Find out which ABI we are using.
4614  echo 'int i;' > conftest.$ac_ext
4615  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616  (eval $ac_compile) 2>&5
4617  ac_status=$?
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); }; then
4620    case `/usr/bin/file conftest.o` in
4621    *32-bit*)
4622      case $host in
4623        x86_64-*linux*)
4624          LD="${LD-ld} -m elf_i386"
4625          ;;
4626        ppc64-*linux*|powerpc64-*linux*)
4627          LD="${LD-ld} -m elf32ppclinux"
4628          ;;
4629        s390x-*linux*)
4630          LD="${LD-ld} -m elf_s390"
4631          ;;
4632        sparc64-*linux*)
4633          LD="${LD-ld} -m elf32_sparc"
4634          ;;
4635      esac
4636      ;;
4637    *64-bit*)
4638      case $host in
4639        x86_64-*linux*)
4640          LD="${LD-ld} -m elf_x86_64"
4641          ;;
4642        ppc*-*linux*|powerpc*-*linux*)
4643          LD="${LD-ld} -m elf64ppc"
4644          ;;
4645        s390*-*linux*)
4646          LD="${LD-ld} -m elf64_s390"
4647          ;;
4648        sparc*-*linux*)
4649          LD="${LD-ld} -m elf64_sparc"
4650          ;;
4651      esac
4652      ;;
4653    esac
4654  fi
4655  rm -rf conftest*
4656  ;;
4657
4658*-*-sco3.2v5*)
4659  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4660  SAVE_CFLAGS="$CFLAGS"
4661  CFLAGS="$CFLAGS -belf"
4662  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4663echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4664if test "${lt_cv_cc_needs_belf+set}" = set; then
4665  echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
4667  ac_ext=c
4668ac_cpp='$CPP $CPPFLAGS'
4669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671ac_compiler_gnu=$ac_cv_c_compiler_gnu
4672
4673     cat >conftest.$ac_ext <<_ACEOF
4674/* confdefs.h.  */
4675_ACEOF
4676cat confdefs.h >>conftest.$ac_ext
4677cat >>conftest.$ac_ext <<_ACEOF
4678/* end confdefs.h.  */
4679
4680int
4681main ()
4682{
4683
4684  ;
4685  return 0;
4686}
4687_ACEOF
4688rm -f conftest.$ac_objext conftest$ac_exeext
4689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4690  (eval $ac_link) 2>conftest.er1
4691  ac_status=$?
4692  grep -v '^ *+' conftest.er1 >conftest.err
4693  rm -f conftest.er1
4694  cat conftest.err >&5
4695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696  (exit $ac_status); } &&
4697         { ac_try='test -z "$ac_c_werror_flag"
4698                         || test ! -s conftest.err'
4699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700  (eval $ac_try) 2>&5
4701  ac_status=$?
4702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703  (exit $ac_status); }; } &&
4704         { ac_try='test -s conftest$ac_exeext'
4705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706  (eval $ac_try) 2>&5
4707  ac_status=$?
4708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709  (exit $ac_status); }; }; then
4710  lt_cv_cc_needs_belf=yes
4711else
4712  echo "$as_me: failed program was:" >&5
4713sed 's/^/| /' conftest.$ac_ext >&5
4714
4715lt_cv_cc_needs_belf=no
4716fi
4717rm -f conftest.err conftest.$ac_objext \
4718      conftest$ac_exeext conftest.$ac_ext
4719     ac_ext=c
4720ac_cpp='$CPP $CPPFLAGS'
4721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4723ac_compiler_gnu=$ac_cv_c_compiler_gnu
4724
4725fi
4726echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4727echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4728  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4729    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4730    CFLAGS="$SAVE_CFLAGS"
4731  fi
4732  ;;
4733sparc*-*solaris*)
4734  # Find out which ABI we are using.
4735  echo 'int i;' > conftest.$ac_ext
4736  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737  (eval $ac_compile) 2>&5
4738  ac_status=$?
4739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740  (exit $ac_status); }; then
4741    case `/usr/bin/file conftest.o` in
4742    *64-bit*)
4743      case $lt_cv_prog_gnu_ld in
4744      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4745      *)    LD="${LD-ld} -64" ;;
4746      esac
4747      ;;
4748    esac
4749  fi
4750  rm -rf conftest*
4751  ;;
4752
4753
4754esac
4755
4756need_locks="$enable_libtool_lock"
4757
4758
4759ac_ext=c
4760ac_cpp='$CPP $CPPFLAGS'
4761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763ac_compiler_gnu=$ac_cv_c_compiler_gnu
4764echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4765echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4766# On Suns, sometimes $CPP names a directory.
4767if test -n "$CPP" && test -d "$CPP"; then
4768  CPP=
4769fi
4770if test -z "$CPP"; then
4771  if test "${ac_cv_prog_CPP+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774      # Double quotes because CPP needs to be expanded
4775    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4776    do
4777      ac_preproc_ok=false
4778for ac_c_preproc_warn_flag in '' yes
4779do
4780  # Use a header file that comes with gcc, so configuring glibc
4781  # with a fresh cross-compiler works.
4782  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4783  # <limits.h> exists even on freestanding compilers.
4784  # On the NeXT, cc -E runs the code through the compiler's parser,
4785  # not just through cpp. "Syntax error" is here to catch this case.
4786  cat >conftest.$ac_ext <<_ACEOF
4787/* confdefs.h.  */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h.  */
4792#ifdef __STDC__
4793# include <limits.h>
4794#else
4795# include <assert.h>
4796#endif
4797                     Syntax error
4798_ACEOF
4799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4800  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4801  ac_status=$?
4802  grep -v '^ *+' conftest.er1 >conftest.err
4803  rm -f conftest.er1
4804  cat conftest.err >&5
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); } >/dev/null; then
4807  if test -s conftest.err; then
4808    ac_cpp_err=$ac_c_preproc_warn_flag
4809    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4810  else
4811    ac_cpp_err=
4812  fi
4813else
4814  ac_cpp_err=yes
4815fi
4816if test -z "$ac_cpp_err"; then
4817  :
4818else
4819  echo "$as_me: failed program was:" >&5
4820sed 's/^/| /' conftest.$ac_ext >&5
4821
4822  # Broken: fails on valid input.
4823continue
4824fi
4825rm -f conftest.err conftest.$ac_ext
4826
4827  # OK, works on sane cases.  Now check whether non-existent headers
4828  # can be detected and how.
4829  cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h.  */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h.  */
4835#include <ac_nonexistent.h>
4836_ACEOF
4837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4838  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4839  ac_status=$?
4840  grep -v '^ *+' conftest.er1 >conftest.err
4841  rm -f conftest.er1
4842  cat conftest.err >&5
4843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); } >/dev/null; then
4845  if test -s conftest.err; then
4846    ac_cpp_err=$ac_c_preproc_warn_flag
4847    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4848  else
4849    ac_cpp_err=
4850  fi
4851else
4852  ac_cpp_err=yes
4853fi
4854if test -z "$ac_cpp_err"; then
4855  # Broken: success on invalid input.
4856continue
4857else
4858  echo "$as_me: failed program was:" >&5
4859sed 's/^/| /' conftest.$ac_ext >&5
4860
4861  # Passes both tests.
4862ac_preproc_ok=:
4863break
4864fi
4865rm -f conftest.err conftest.$ac_ext
4866
4867done
4868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4869rm -f conftest.err conftest.$ac_ext
4870if $ac_preproc_ok; then
4871  break
4872fi
4873
4874    done
4875    ac_cv_prog_CPP=$CPP
4876
4877fi
4878  CPP=$ac_cv_prog_CPP
4879else
4880  ac_cv_prog_CPP=$CPP
4881fi
4882echo "$as_me:$LINENO: result: $CPP" >&5
4883echo "${ECHO_T}$CPP" >&6
4884ac_preproc_ok=false
4885for ac_c_preproc_warn_flag in '' yes
4886do
4887  # Use a header file that comes with gcc, so configuring glibc
4888  # with a fresh cross-compiler works.
4889  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4890  # <limits.h> exists even on freestanding compilers.
4891  # On the NeXT, cc -E runs the code through the compiler's parser,
4892  # not just through cpp. "Syntax error" is here to catch this case.
4893  cat >conftest.$ac_ext <<_ACEOF
4894/* confdefs.h.  */
4895_ACEOF
4896cat confdefs.h >>conftest.$ac_ext
4897cat >>conftest.$ac_ext <<_ACEOF
4898/* end confdefs.h.  */
4899#ifdef __STDC__
4900# include <limits.h>
4901#else
4902# include <assert.h>
4903#endif
4904                     Syntax error
4905_ACEOF
4906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4907  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4908  ac_status=$?
4909  grep -v '^ *+' conftest.er1 >conftest.err
4910  rm -f conftest.er1
4911  cat conftest.err >&5
4912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913  (exit $ac_status); } >/dev/null; then
4914  if test -s conftest.err; then
4915    ac_cpp_err=$ac_c_preproc_warn_flag
4916    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4917  else
4918    ac_cpp_err=
4919  fi
4920else
4921  ac_cpp_err=yes
4922fi
4923if test -z "$ac_cpp_err"; then
4924  :
4925else
4926  echo "$as_me: failed program was:" >&5
4927sed 's/^/| /' conftest.$ac_ext >&5
4928
4929  # Broken: fails on valid input.
4930continue
4931fi
4932rm -f conftest.err conftest.$ac_ext
4933
4934  # OK, works on sane cases.  Now check whether non-existent headers
4935  # can be detected and how.
4936  cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h.  */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h.  */
4942#include <ac_nonexistent.h>
4943_ACEOF
4944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4945  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4946  ac_status=$?
4947  grep -v '^ *+' conftest.er1 >conftest.err
4948  rm -f conftest.er1
4949  cat conftest.err >&5
4950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951  (exit $ac_status); } >/dev/null; then
4952  if test -s conftest.err; then
4953    ac_cpp_err=$ac_c_preproc_warn_flag
4954    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4955  else
4956    ac_cpp_err=
4957  fi
4958else
4959  ac_cpp_err=yes
4960fi
4961if test -z "$ac_cpp_err"; then
4962  # Broken: success on invalid input.
4963continue
4964else
4965  echo "$as_me: failed program was:" >&5
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
4968  # Passes both tests.
4969ac_preproc_ok=:
4970break
4971fi
4972rm -f conftest.err conftest.$ac_ext
4973
4974done
4975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976rm -f conftest.err conftest.$ac_ext
4977if $ac_preproc_ok; then
4978  :
4979else
4980  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4981See \`config.log' for more details." >&5
4982echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4983See \`config.log' for more details." >&2;}
4984   { (exit 1); exit 1; }; }
4985fi
4986
4987ac_ext=c
4988ac_cpp='$CPP $CPPFLAGS'
4989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992
4993
4994echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4995echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4996if test "${ac_cv_header_stdc+set}" = set; then
4997  echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999  cat >conftest.$ac_ext <<_ACEOF
5000/* confdefs.h.  */
5001_ACEOF
5002cat confdefs.h >>conftest.$ac_ext
5003cat >>conftest.$ac_ext <<_ACEOF
5004/* end confdefs.h.  */
5005#include <stdlib.h>
5006#include <stdarg.h>
5007#include <string.h>
5008#include <float.h>
5009
5010int
5011main ()
5012{
5013
5014  ;
5015  return 0;
5016}
5017_ACEOF
5018rm -f conftest.$ac_objext
5019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020  (eval $ac_compile) 2>conftest.er1
5021  ac_status=$?
5022  grep -v '^ *+' conftest.er1 >conftest.err
5023  rm -f conftest.er1
5024  cat conftest.err >&5
5025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026  (exit $ac_status); } &&
5027         { ac_try='test -z "$ac_c_werror_flag"
5028                         || test ! -s conftest.err'
5029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030  (eval $ac_try) 2>&5
5031  ac_status=$?
5032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033  (exit $ac_status); }; } &&
5034         { ac_try='test -s conftest.$ac_objext'
5035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036  (eval $ac_try) 2>&5
5037  ac_status=$?
5038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039  (exit $ac_status); }; }; then
5040  ac_cv_header_stdc=yes
5041else
5042  echo "$as_me: failed program was:" >&5
5043sed 's/^/| /' conftest.$ac_ext >&5
5044
5045ac_cv_header_stdc=no
5046fi
5047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5048
5049if test $ac_cv_header_stdc = yes; then
5050  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5051  cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h.  */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
5056/* end confdefs.h.  */
5057#include <string.h>
5058
5059_ACEOF
5060if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5061  $EGREP "memchr" >/dev/null 2>&1; then
5062  :
5063else
5064  ac_cv_header_stdc=no
5065fi
5066rm -f conftest*
5067
5068fi
5069
5070if test $ac_cv_header_stdc = yes; then
5071  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5072  cat >conftest.$ac_ext <<_ACEOF
5073/* confdefs.h.  */
5074_ACEOF
5075cat confdefs.h >>conftest.$ac_ext
5076cat >>conftest.$ac_ext <<_ACEOF
5077/* end confdefs.h.  */
5078#include <stdlib.h>
5079
5080_ACEOF
5081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5082  $EGREP "free" >/dev/null 2>&1; then
5083  :
5084else
5085  ac_cv_header_stdc=no
5086fi
5087rm -f conftest*
5088
5089fi
5090
5091if test $ac_cv_header_stdc = yes; then
5092  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5093  if test "$cross_compiling" = yes; then
5094  :
5095else
5096  cat >conftest.$ac_ext <<_ACEOF
5097/* confdefs.h.  */
5098_ACEOF
5099cat confdefs.h >>conftest.$ac_ext
5100cat >>conftest.$ac_ext <<_ACEOF
5101/* end confdefs.h.  */
5102#include <ctype.h>
5103#if ((' ' & 0x0FF) == 0x020)
5104# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5105# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5106#else
5107# define ISLOWER(c) \
5108                   (('a' <= (c) && (c) <= 'i') \
5109                     || ('j' <= (c) && (c) <= 'r') \
5110                     || ('s' <= (c) && (c) <= 'z'))
5111# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5112#endif
5113
5114#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5115int
5116main ()
5117{
5118  int i;
5119  for (i = 0; i < 256; i++)
5120    if (XOR (islower (i), ISLOWER (i))
5121        || toupper (i) != TOUPPER (i))
5122      exit(2);
5123  exit (0);
5124}
5125_ACEOF
5126rm -f conftest$ac_exeext
5127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128  (eval $ac_link) 2>&5
5129  ac_status=$?
5130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133  (eval $ac_try) 2>&5
5134  ac_status=$?
5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); }; }; then
5137  :
5138else
5139  echo "$as_me: program exited with status $ac_status" >&5
5140echo "$as_me: failed program was:" >&5
5141sed 's/^/| /' conftest.$ac_ext >&5
5142
5143( exit $ac_status )
5144ac_cv_header_stdc=no
5145fi
5146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5147fi
5148fi
5149fi
5150echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5151echo "${ECHO_T}$ac_cv_header_stdc" >&6
5152if test $ac_cv_header_stdc = yes; then
5153
5154cat >>confdefs.h <<\_ACEOF
5155#define STDC_HEADERS 1
5156_ACEOF
5157
5158fi
5159
5160# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5171                  inttypes.h stdint.h unistd.h
5172do
5173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5174echo "$as_me:$LINENO: checking for $ac_header" >&5
5175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5176if eval "test \"\${$as_ac_Header+set}\" = set"; then
5177  echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179  cat >conftest.$ac_ext <<_ACEOF
5180/* confdefs.h.  */
5181_ACEOF
5182cat confdefs.h >>conftest.$ac_ext
5183cat >>conftest.$ac_ext <<_ACEOF
5184/* end confdefs.h.  */
5185$ac_includes_default
5186
5187#include <$ac_header>
5188_ACEOF
5189rm -f conftest.$ac_objext
5190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5191  (eval $ac_compile) 2>conftest.er1
5192  ac_status=$?
5193  grep -v '^ *+' conftest.er1 >conftest.err
5194  rm -f conftest.er1
5195  cat conftest.err >&5
5196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197  (exit $ac_status); } &&
5198         { ac_try='test -z "$ac_c_werror_flag"
5199                         || test ! -s conftest.err'
5200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201  (eval $ac_try) 2>&5
5202  ac_status=$?
5203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204  (exit $ac_status); }; } &&
5205         { ac_try='test -s conftest.$ac_objext'
5206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5207  (eval $ac_try) 2>&5
5208  ac_status=$?
5209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); }; }; then
5211  eval "$as_ac_Header=yes"
5212else
5213  echo "$as_me: failed program was:" >&5
5214sed 's/^/| /' conftest.$ac_ext >&5
5215
5216eval "$as_ac_Header=no"
5217fi
5218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5219fi
5220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5222if test `eval echo '${'$as_ac_Header'}'` = yes; then
5223  cat >>confdefs.h <<_ACEOF
5224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5225_ACEOF
5226
5227fi
5228
5229done
5230
5231
5232
5233for ac_header in dlfcn.h
5234do
5235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5236if eval "test \"\${$as_ac_Header+set}\" = set"; then
5237  echo "$as_me:$LINENO: checking for $ac_header" >&5
5238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5239if eval "test \"\${$as_ac_Header+set}\" = set"; then
5240  echo $ECHO_N "(cached) $ECHO_C" >&6
5241fi
5242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5244else
5245  # Is the header compilable?
5246echo "$as_me:$LINENO: checking $ac_header usability" >&5
5247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5248cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h.  */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h.  */
5254$ac_includes_default
5255#include <$ac_header>
5256_ACEOF
5257rm -f conftest.$ac_objext
5258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5259  (eval $ac_compile) 2>conftest.er1
5260  ac_status=$?
5261  grep -v '^ *+' conftest.er1 >conftest.err
5262  rm -f conftest.er1
5263  cat conftest.err >&5
5264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265  (exit $ac_status); } &&
5266         { ac_try='test -z "$ac_c_werror_flag"
5267                         || test ! -s conftest.err'
5268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5269  (eval $ac_try) 2>&5
5270  ac_status=$?
5271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272  (exit $ac_status); }; } &&
5273         { ac_try='test -s conftest.$ac_objext'
5274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275  (eval $ac_try) 2>&5
5276  ac_status=$?
5277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278  (exit $ac_status); }; }; then
5279  ac_header_compiler=yes
5280else
5281  echo "$as_me: failed program was:" >&5
5282sed 's/^/| /' conftest.$ac_ext >&5
5283
5284ac_header_compiler=no
5285fi
5286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5288echo "${ECHO_T}$ac_header_compiler" >&6
5289
5290# Is the header present?
5291echo "$as_me:$LINENO: checking $ac_header presence" >&5
5292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5293cat >conftest.$ac_ext <<_ACEOF
5294/* confdefs.h.  */
5295_ACEOF
5296cat confdefs.h >>conftest.$ac_ext
5297cat >>conftest.$ac_ext <<_ACEOF
5298/* end confdefs.h.  */
5299#include <$ac_header>
5300_ACEOF
5301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5303  ac_status=$?
5304  grep -v '^ *+' conftest.er1 >conftest.err
5305  rm -f conftest.er1
5306  cat conftest.err >&5
5307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308  (exit $ac_status); } >/dev/null; then
5309  if test -s conftest.err; then
5310    ac_cpp_err=$ac_c_preproc_warn_flag
5311    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5312  else
5313    ac_cpp_err=
5314  fi
5315else
5316  ac_cpp_err=yes
5317fi
5318if test -z "$ac_cpp_err"; then
5319  ac_header_preproc=yes
5320else
5321  echo "$as_me: failed program was:" >&5
5322sed 's/^/| /' conftest.$ac_ext >&5
5323
5324  ac_header_preproc=no
5325fi
5326rm -f conftest.err conftest.$ac_ext
5327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5328echo "${ECHO_T}$ac_header_preproc" >&6
5329
5330# So?  What about this header?
5331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5332  yes:no: )
5333    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5335    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5337    ac_header_preproc=yes
5338    ;;
5339  no:yes:* )
5340    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5342    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5343echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5344    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5346    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5347echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5348    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5350    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5352    (
5353      cat <<\_ASBOX
5354## --------------------------------------------------------------- ##
5355## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5356## --------------------------------------------------------------- ##
5357_ASBOX
5358    ) |
5359      sed "s/^/$as_me: WARNING:     /" >&2
5360    ;;
5361esac
5362echo "$as_me:$LINENO: checking for $ac_header" >&5
5363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5364if eval "test \"\${$as_ac_Header+set}\" = set"; then
5365  echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367  eval "$as_ac_Header=\$ac_header_preproc"
5368fi
5369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5371
5372fi
5373if test `eval echo '${'$as_ac_Header'}'` = yes; then
5374  cat >>confdefs.h <<_ACEOF
5375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5376_ACEOF
5377
5378fi
5379
5380done
5381
5382ac_ext=cc
5383ac_cpp='$CXXCPP $CPPFLAGS'
5384ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5387if test -n "$ac_tool_prefix"; then
5388  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5389  do
5390    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5391set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5392echo "$as_me:$LINENO: checking for $ac_word" >&5
5393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5394if test "${ac_cv_prog_CXX+set}" = set; then
5395  echo $ECHO_N "(cached) $ECHO_C" >&6
5396else
5397  if test -n "$CXX"; then
5398  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405  for ac_exec_ext in '' $ac_executable_extensions; do
5406  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409    break 2
5410  fi
5411done
5412done
5413
5414fi
5415fi
5416CXX=$ac_cv_prog_CXX
5417if test -n "$CXX"; then
5418  echo "$as_me:$LINENO: result: $CXX" >&5
5419echo "${ECHO_T}$CXX" >&6
5420else
5421  echo "$as_me:$LINENO: result: no" >&5
5422echo "${ECHO_T}no" >&6
5423fi
5424
5425    test -n "$CXX" && break
5426  done
5427fi
5428if test -z "$CXX"; then
5429  ac_ct_CXX=$CXX
5430  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5431do
5432  # Extract the first word of "$ac_prog", so it can be a program name with args.
5433set dummy $ac_prog; ac_word=$2
5434echo "$as_me:$LINENO: checking for $ac_word" >&5
5435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5436if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5437  echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439  if test -n "$ac_ct_CXX"; then
5440  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5441else
5442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445  IFS=$as_save_IFS
5446  test -z "$as_dir" && as_dir=.
5447  for ac_exec_ext in '' $ac_executable_extensions; do
5448  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449    ac_cv_prog_ac_ct_CXX="$ac_prog"
5450    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5451    break 2
5452  fi
5453done
5454done
5455
5456fi
5457fi
5458ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5459if test -n "$ac_ct_CXX"; then
5460  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5461echo "${ECHO_T}$ac_ct_CXX" >&6
5462else
5463  echo "$as_me:$LINENO: result: no" >&5
5464echo "${ECHO_T}no" >&6
5465fi
5466
5467  test -n "$ac_ct_CXX" && break
5468done
5469test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5470
5471  CXX=$ac_ct_CXX
5472fi
5473
5474
5475# Provide some information about the compiler.
5476echo "$as_me:$LINENO:" \
5477     "checking for C++ compiler version" >&5
5478ac_compiler=`set X $ac_compile; echo $2`
5479{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5480  (eval $ac_compiler --version </dev/null >&5) 2>&5
5481  ac_status=$?
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); }
5484{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5485  (eval $ac_compiler -v </dev/null >&5) 2>&5
5486  ac_status=$?
5487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488  (exit $ac_status); }
5489{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5490  (eval $ac_compiler -V </dev/null >&5) 2>&5
5491  ac_status=$?
5492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493  (exit $ac_status); }
5494
5495echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5496echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5497if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5498  echo $ECHO_N "(cached) $ECHO_C" >&6
5499else
5500  cat >conftest.$ac_ext <<_ACEOF
5501/* confdefs.h.  */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h.  */
5506
5507int
5508main ()
5509{
5510#ifndef __GNUC__
5511       choke me
5512#endif
5513
5514  ;
5515  return 0;
5516}
5517_ACEOF
5518rm -f conftest.$ac_objext
5519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5520  (eval $ac_compile) 2>conftest.er1
5521  ac_status=$?
5522  grep -v '^ *+' conftest.er1 >conftest.err
5523  rm -f conftest.er1
5524  cat conftest.err >&5
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); } &&
5527         { ac_try='test -z "$ac_cxx_werror_flag"
5528                         || test ! -s conftest.err'
5529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530  (eval $ac_try) 2>&5
5531  ac_status=$?
5532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533  (exit $ac_status); }; } &&
5534         { ac_try='test -s conftest.$ac_objext'
5535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536  (eval $ac_try) 2>&5
5537  ac_status=$?
5538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539  (exit $ac_status); }; }; then
5540  ac_compiler_gnu=yes
5541else
5542  echo "$as_me: failed program was:" >&5
5543sed 's/^/| /' conftest.$ac_ext >&5
5544
5545ac_compiler_gnu=no
5546fi
5547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5548ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5549
5550fi
5551echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5552echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5553GXX=`test $ac_compiler_gnu = yes && echo yes`
5554ac_test_CXXFLAGS=${CXXFLAGS+set}
5555ac_save_CXXFLAGS=$CXXFLAGS
5556CXXFLAGS="-g"
5557echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5558echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5559if test "${ac_cv_prog_cxx_g+set}" = set; then
5560  echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562  cat >conftest.$ac_ext <<_ACEOF
5563/* confdefs.h.  */
5564_ACEOF
5565cat confdefs.h >>conftest.$ac_ext
5566cat >>conftest.$ac_ext <<_ACEOF
5567/* end confdefs.h.  */
5568
5569int
5570main ()
5571{
5572
5573  ;
5574  return 0;
5575}
5576_ACEOF
5577rm -f conftest.$ac_objext
5578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5579  (eval $ac_compile) 2>conftest.er1
5580  ac_status=$?
5581  grep -v '^ *+' conftest.er1 >conftest.err
5582  rm -f conftest.er1
5583  cat conftest.err >&5
5584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585  (exit $ac_status); } &&
5586         { ac_try='test -z "$ac_cxx_werror_flag"
5587                         || test ! -s conftest.err'
5588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589  (eval $ac_try) 2>&5
5590  ac_status=$?
5591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592  (exit $ac_status); }; } &&
5593         { ac_try='test -s conftest.$ac_objext'
5594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595  (eval $ac_try) 2>&5
5596  ac_status=$?
5597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598  (exit $ac_status); }; }; then
5599  ac_cv_prog_cxx_g=yes
5600else
5601  echo "$as_me: failed program was:" >&5
5602sed 's/^/| /' conftest.$ac_ext >&5
5603
5604ac_cv_prog_cxx_g=no
5605fi
5606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5607fi
5608echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5609echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5610if test "$ac_test_CXXFLAGS" = set; then
5611  CXXFLAGS=$ac_save_CXXFLAGS
5612elif test $ac_cv_prog_cxx_g = yes; then
5613  if test "$GXX" = yes; then
5614    CXXFLAGS="-g -O2"
5615  else
5616    CXXFLAGS="-g"
5617  fi
5618else
5619  if test "$GXX" = yes; then
5620    CXXFLAGS="-O2"
5621  else
5622    CXXFLAGS=
5623  fi
5624fi
5625for ac_declaration in \
5626   '' \
5627   'extern "C" void std::exit (int) throw (); using std::exit;' \
5628   'extern "C" void std::exit (int); using std::exit;' \
5629   'extern "C" void exit (int) throw ();' \
5630   'extern "C" void exit (int);' \
5631   'void exit (int);'
5632do
5633  cat >conftest.$ac_ext <<_ACEOF
5634/* confdefs.h.  */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h.  */
5639$ac_declaration
5640#include <stdlib.h>
5641int
5642main ()
5643{
5644exit (42);
5645  ;
5646  return 0;
5647}
5648_ACEOF
5649rm -f conftest.$ac_objext
5650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5651  (eval $ac_compile) 2>conftest.er1
5652  ac_status=$?
5653  grep -v '^ *+' conftest.er1 >conftest.err
5654  rm -f conftest.er1
5655  cat conftest.err >&5
5656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657  (exit $ac_status); } &&
5658         { ac_try='test -z "$ac_cxx_werror_flag"
5659                         || test ! -s conftest.err'
5660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5661  (eval $ac_try) 2>&5
5662  ac_status=$?
5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664  (exit $ac_status); }; } &&
5665         { ac_try='test -s conftest.$ac_objext'
5666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5667  (eval $ac_try) 2>&5
5668  ac_status=$?
5669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670  (exit $ac_status); }; }; then
5671  :
5672else
5673  echo "$as_me: failed program was:" >&5
5674sed 's/^/| /' conftest.$ac_ext >&5
5675
5676continue
5677fi
5678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679  cat >conftest.$ac_ext <<_ACEOF
5680/* confdefs.h.  */
5681_ACEOF
5682cat confdefs.h >>conftest.$ac_ext
5683cat >>conftest.$ac_ext <<_ACEOF
5684/* end confdefs.h.  */
5685$ac_declaration
5686int
5687main ()
5688{
5689exit (42);
5690  ;
5691  return 0;
5692}
5693_ACEOF
5694rm -f conftest.$ac_objext
5695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5696  (eval $ac_compile) 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); } &&
5703         { ac_try='test -z "$ac_cxx_werror_flag"
5704                         || test ! -s conftest.err'
5705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706  (eval $ac_try) 2>&5
5707  ac_status=$?
5708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709  (exit $ac_status); }; } &&
5710         { ac_try='test -s conftest.$ac_objext'
5711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712  (eval $ac_try) 2>&5
5713  ac_status=$?
5714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); }; }; then
5716  break
5717else
5718  echo "$as_me: failed program was:" >&5
5719sed 's/^/| /' conftest.$ac_ext >&5
5720
5721fi
5722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723done
5724rm -f conftest*
5725if test -n "$ac_declaration"; then
5726  echo '#ifdef __cplusplus' >>confdefs.h
5727  echo $ac_declaration      >>confdefs.h
5728  echo '#endif'             >>confdefs.h
5729fi
5730
5731ac_ext=cc
5732ac_cpp='$CXXCPP $CPPFLAGS'
5733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736
5737depcc="$CXX"  am_compiler_list=
5738
5739echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5740echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5741if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5742  echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5745  # We make a subdir and do the tests there.  Otherwise we can end up
5746  # making bogus files that we don't know about and never remove.  For
5747  # instance it was reported that on HP-UX the gcc test will end up
5748  # making a dummy file named `D' -- because `-MD' means `put the output
5749  # in D'.
5750  mkdir conftest.dir
5751  # Copy depcomp to subdir because otherwise we won't find it if we're
5752  # using a relative directory.
5753  cp "$am_depcomp" conftest.dir
5754  cd conftest.dir
5755  # We will build objects and dependencies in a subdirectory because
5756  # it helps to detect inapplicable dependency modes.  For instance
5757  # both Tru64's cc and ICC support -MD to output dependencies as a
5758  # side effect of compilation, but ICC will put the dependencies in
5759  # the current directory while Tru64 will put them in the object
5760  # directory.
5761  mkdir sub
5762
5763  am_cv_CXX_dependencies_compiler_type=none
5764  if test "$am_compiler_list" = ""; then
5765     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5766  fi
5767  for depmode in $am_compiler_list; do
5768    # Setup a source with many dependencies, because some compilers
5769    # like to wrap large dependency lists on column 80 (with \), and
5770    # we should not choose a depcomp mode which is confused by this.
5771    #
5772    # We need to recreate these files for each test, as the compiler may
5773    # overwrite some of them when testing with obscure command lines.
5774    # This happens at least with the AIX C compiler.
5775    : > sub/conftest.c
5776    for i in 1 2 3 4 5 6; do
5777      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5778      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5779      # Solaris 8's {/usr,}/bin/sh.
5780      touch sub/conftst$i.h
5781    done
5782    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5783
5784    case $depmode in
5785    nosideeffect)
5786      # after this tag, mechanisms are not by side-effect, so they'll
5787      # only be used when explicitly requested
5788      if test "x$enable_dependency_tracking" = xyes; then
5789        continue
5790      else
5791        break
5792      fi
5793      ;;
5794    none) break ;;
5795    esac
5796    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5797    # mode.  It turns out that the SunPro C++ compiler does not properly
5798    # handle `-M -o', and we need to detect this.
5799    if depmode=$depmode \
5800       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5801       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5802       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5803         >/dev/null 2>conftest.err &&
5804       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5805       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5806       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5807      # icc doesn't choke on unknown options, it will just issue warnings
5808      # or remarks (even with -Werror).  So we grep stderr for any message
5809      # that says an option was ignored or not supported.
5810      # When given -MP, icc 7.0 and 7.1 complain thusly:
5811      #   icc: Command line warning: ignoring option '-M'; no argument required
5812      # The diagnosis changed in icc 8.0:
5813      #   icc: Command line remark: option '-MP' not supported
5814      if (grep 'ignoring option' conftest.err ||
5815          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5816        am_cv_CXX_dependencies_compiler_type=$depmode
5817        break
5818      fi
5819    fi
5820  done
5821
5822  cd ..
5823  rm -rf conftest.dir
5824else
5825  am_cv_CXX_dependencies_compiler_type=none
5826fi
5827
5828fi
5829echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5830echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5831CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5832
5833
5834
5835if
5836  test "x$enable_dependency_tracking" != xno \
5837  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5838  am__fastdepCXX_TRUE=
5839  am__fastdepCXX_FALSE='#'
5840else
5841  am__fastdepCXX_TRUE='#'
5842  am__fastdepCXX_FALSE=
5843fi
5844
5845
5846
5847
5848if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5849    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5850    (test "X$CXX" != "Xg++"))) ; then
5851  ac_ext=cc
5852ac_cpp='$CXXCPP $CPPFLAGS'
5853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5856echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5857echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5858if test -z "$CXXCPP"; then
5859  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5860  echo $ECHO_N "(cached) $ECHO_C" >&6
5861else
5862      # Double quotes because CXXCPP needs to be expanded
5863    for CXXCPP in "$CXX -E" "/lib/cpp"
5864    do
5865      ac_preproc_ok=false
5866for ac_cxx_preproc_warn_flag in '' yes
5867do
5868  # Use a header file that comes with gcc, so configuring glibc
5869  # with a fresh cross-compiler works.
5870  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5871  # <limits.h> exists even on freestanding compilers.
5872  # On the NeXT, cc -E runs the code through the compiler's parser,
5873  # not just through cpp. "Syntax error" is here to catch this case.
5874  cat >conftest.$ac_ext <<_ACEOF
5875/* confdefs.h.  */
5876_ACEOF
5877cat confdefs.h >>conftest.$ac_ext
5878cat >>conftest.$ac_ext <<_ACEOF
5879/* end confdefs.h.  */
5880#ifdef __STDC__
5881# include <limits.h>
5882#else
5883# include <assert.h>
5884#endif
5885                     Syntax error
5886_ACEOF
5887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5888  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5889  ac_status=$?
5890  grep -v '^ *+' conftest.er1 >conftest.err
5891  rm -f conftest.er1
5892  cat conftest.err >&5
5893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894  (exit $ac_status); } >/dev/null; then
5895  if test -s conftest.err; then
5896    ac_cpp_err=$ac_cxx_preproc_warn_flag
5897    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5898  else
5899    ac_cpp_err=
5900  fi
5901else
5902  ac_cpp_err=yes
5903fi
5904if test -z "$ac_cpp_err"; then
5905  :
5906else
5907  echo "$as_me: failed program was:" >&5
5908sed 's/^/| /' conftest.$ac_ext >&5
5909
5910  # Broken: fails on valid input.
5911continue
5912fi
5913rm -f conftest.err conftest.$ac_ext
5914
5915  # OK, works on sane cases.  Now check whether non-existent headers
5916  # can be detected and how.
5917  cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h.  */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h.  */
5923#include <ac_nonexistent.h>
5924_ACEOF
5925if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5926  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5927  ac_status=$?
5928  grep -v '^ *+' conftest.er1 >conftest.err
5929  rm -f conftest.er1
5930  cat conftest.err >&5
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); } >/dev/null; then
5933  if test -s conftest.err; then
5934    ac_cpp_err=$ac_cxx_preproc_warn_flag
5935    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5936  else
5937    ac_cpp_err=
5938  fi
5939else
5940  ac_cpp_err=yes
5941fi
5942if test -z "$ac_cpp_err"; then
5943  # Broken: success on invalid input.
5944continue
5945else
5946  echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
5949  # Passes both tests.
5950ac_preproc_ok=:
5951break
5952fi
5953rm -f conftest.err conftest.$ac_ext
5954
5955done
5956# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5957rm -f conftest.err conftest.$ac_ext
5958if $ac_preproc_ok; then
5959  break
5960fi
5961
5962    done
5963    ac_cv_prog_CXXCPP=$CXXCPP
5964
5965fi
5966  CXXCPP=$ac_cv_prog_CXXCPP
5967else
5968  ac_cv_prog_CXXCPP=$CXXCPP
5969fi
5970echo "$as_me:$LINENO: result: $CXXCPP" >&5
5971echo "${ECHO_T}$CXXCPP" >&6
5972ac_preproc_ok=false
5973for ac_cxx_preproc_warn_flag in '' yes
5974do
5975  # Use a header file that comes with gcc, so configuring glibc
5976  # with a fresh cross-compiler works.
5977  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5978  # <limits.h> exists even on freestanding compilers.
5979  # On the NeXT, cc -E runs the code through the compiler's parser,
5980  # not just through cpp. "Syntax error" is here to catch this case.
5981  cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h.  */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h.  */
5987#ifdef __STDC__
5988# include <limits.h>
5989#else
5990# include <assert.h>
5991#endif
5992                     Syntax error
5993_ACEOF
5994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5995  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5996  ac_status=$?
5997  grep -v '^ *+' conftest.er1 >conftest.err
5998  rm -f conftest.er1
5999  cat conftest.err >&5
6000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001  (exit $ac_status); } >/dev/null; then
6002  if test -s conftest.err; then
6003    ac_cpp_err=$ac_cxx_preproc_warn_flag
6004    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6005  else
6006    ac_cpp_err=
6007  fi
6008else
6009  ac_cpp_err=yes
6010fi
6011if test -z "$ac_cpp_err"; then
6012  :
6013else
6014  echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017  # Broken: fails on valid input.
6018continue
6019fi
6020rm -f conftest.err conftest.$ac_ext
6021
6022  # OK, works on sane cases.  Now check whether non-existent headers
6023  # can be detected and how.
6024  cat >conftest.$ac_ext <<_ACEOF
6025/* confdefs.h.  */
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h.  */
6030#include <ac_nonexistent.h>
6031_ACEOF
6032if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6033  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6034  ac_status=$?
6035  grep -v '^ *+' conftest.er1 >conftest.err
6036  rm -f conftest.er1
6037  cat conftest.err >&5
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); } >/dev/null; then
6040  if test -s conftest.err; then
6041    ac_cpp_err=$ac_cxx_preproc_warn_flag
6042    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6043  else
6044    ac_cpp_err=
6045  fi
6046else
6047  ac_cpp_err=yes
6048fi
6049if test -z "$ac_cpp_err"; then
6050  # Broken: success on invalid input.
6051continue
6052else
6053  echo "$as_me: failed program was:" >&5
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
6056  # Passes both tests.
6057ac_preproc_ok=:
6058break
6059fi
6060rm -f conftest.err conftest.$ac_ext
6061
6062done
6063# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6064rm -f conftest.err conftest.$ac_ext
6065if $ac_preproc_ok; then
6066  :
6067else
6068  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6069See \`config.log' for more details." >&5
6070echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6071See \`config.log' for more details." >&2;}
6072   { (exit 1); exit 1; }; }
6073fi
6074
6075ac_ext=cc
6076ac_cpp='$CXXCPP $CPPFLAGS'
6077ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6078ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6079ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6080
6081fi
6082
6083
6084
6085# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6086
6087# find the maximum length of command line arguments
6088echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6089echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6090if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6091  echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093    i=0
6094  teststring="ABCD"
6095
6096  case $build_os in
6097  msdosdjgpp*)
6098    # On DJGPP, this test can blow up pretty badly due to problems in libc
6099    # (any single argument exceeding 2000 bytes causes a buffer overrun
6100    # during glob expansion).  Even if it were fixed, the result of this
6101    # check would be larger than it should be.
6102    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6103    ;;
6104
6105  gnu*)
6106    # Under GNU Hurd, this test is not required because there is
6107    # no limit to the length of command line arguments.
6108    # Libtool will interpret -1 as no limit whatsoever
6109    lt_cv_sys_max_cmd_len=-1;
6110    ;;
6111
6112  cygwin* | mingw*)
6113    # On Win9x/ME, this test blows up -- it succeeds, but takes
6114    # about 5 minutes as the teststring grows exponentially.
6115    # Worse, since 9x/ME are not pre-emptively multitasking,
6116    # you end up with a "frozen" computer, even though with patience
6117    # the test eventually succeeds (with a max line length of 256k).
6118    # Instead, let's just punt: use the minimum linelength reported by
6119    # all of the supported platforms: 8192 (on NT/2K/XP).
6120    lt_cv_sys_max_cmd_len=8192;
6121    ;;
6122
6123  amigaos*)
6124    # On AmigaOS with pdksh, this test takes hours, literally.
6125    # So we just punt and use a minimum line length of 8192.
6126    lt_cv_sys_max_cmd_len=8192;
6127    ;;
6128
6129  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6130    # This has been around since 386BSD, at least.  Likely further.
6131    if test -x /sbin/sysctl; then
6132      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6133    elif test -x /usr/sbin/sysctl; then
6134      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6135    else
6136      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6137    fi
6138    # And add a safety zone
6139    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6140    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6141    ;;
6142
6143  interix*)
6144    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6145    lt_cv_sys_max_cmd_len=196608
6146    ;;
6147
6148  osf*)
6149    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6150    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6151    # nice to cause kernel panics so lets avoid the loop below.
6152    # First set a reasonable default.
6153    lt_cv_sys_max_cmd_len=16384
6154    #
6155    if test -x /sbin/sysconfig; then
6156      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6157        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6158      esac
6159    fi
6160    ;;
6161  sco3.2v5*)
6162    lt_cv_sys_max_cmd_len=102400
6163    ;;
6164  sysv5* | sco5v6* | sysv4.2uw2*)
6165    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6166    if test -n "$kargmax"; then
6167      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6168    else
6169      lt_cv_sys_max_cmd_len=32768
6170    fi
6171    ;;
6172  *)
6173    # If test is not a shell built-in, we'll probably end up computing a
6174    # maximum length that is only half of the actual maximum length, but
6175    # we can't tell.
6176    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6177    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6178               = "XX$teststring") >/dev/null 2>&1 &&
6179            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6180            lt_cv_sys_max_cmd_len=$new_result &&
6181            test $i != 17 # 1/2 MB should be enough
6182    do
6183      i=`expr $i + 1`
6184      teststring=$teststring$teststring
6185    done
6186    teststring=
6187    # Add a significant safety factor because C++ compilers can tack on massive
6188    # amounts of additional arguments before passing them to the linker.
6189    # It appears as though 1/2 is a usable value.
6190    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6191    ;;
6192  esac
6193
6194fi
6195
6196if test -n $lt_cv_sys_max_cmd_len ; then
6197  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6198echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6199else
6200  echo "$as_me:$LINENO: result: none" >&5
6201echo "${ECHO_T}none" >&6
6202fi
6203
6204
6205
6206
6207# Check for command to grab the raw symbol name followed by C symbol from nm.
6208echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6209echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6210if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6211  echo $ECHO_N "(cached) $ECHO_C" >&6
6212else
6213
6214# These are sane defaults that work on at least a few old systems.
6215# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6216
6217# Character class describing NM global symbol codes.
6218symcode='[BCDEGRST]'
6219
6220# Regexp to match symbols that can be accessed directly from C.
6221sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6222
6223# Transform an extracted symbol line into a proper C declaration
6224lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6225
6226# Transform an extracted symbol line into symbol name and symbol address
6227lt_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'"
6228
6229# Define system-specific variables.
6230case $host_os in
6231aix*)
6232  symcode='[BCDT]'
6233  ;;
6234cygwin* | mingw* | pw32*)
6235  symcode='[ABCDGISTW]'
6236  ;;
6237hpux*) # Its linker distinguishes data from code symbols
6238  if test "$host_cpu" = ia64; then
6239    symcode='[ABCDEGRST]'
6240  fi
6241  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6242  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'"
6243  ;;
6244linux*)
6245  if test "$host_cpu" = ia64; then
6246    symcode='[ABCDGIRSTW]'
6247    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6248    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'"
6249  fi
6250  ;;
6251irix* | nonstopux*)
6252  symcode='[BCDEGRST]'
6253  ;;
6254osf*)
6255  symcode='[BCDEGQRST]'
6256  ;;
6257solaris*)
6258  symcode='[BDRT]'
6259  ;;
6260sco3.2v5*)
6261  symcode='[DT]'
6262  ;;
6263sysv4.2uw2*)
6264  symcode='[DT]'
6265  ;;
6266sysv5* | sco5v6* | unixware* | OpenUNIX*)
6267  symcode='[ABDT]'
6268  ;;
6269sysv4)
6270  symcode='[DFNSTU]'
6271  ;;
6272esac
6273
6274# Handle CRLF in mingw tool chain
6275opt_cr=
6276case $build_os in
6277mingw*)
6278  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6279  ;;
6280esac
6281
6282# If we're using GNU nm, then use its standard symbol codes.
6283case `$NM -V 2>&1` in
6284*GNU* | *'with BFD'*)
6285  symcode='[ABCDGIRSTW]' ;;
6286esac
6287
6288# Try without a prefix undercore, then with it.
6289for ac_symprfx in "" "_"; do
6290
6291  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6292  symxfrm="\\1 $ac_symprfx\\2 \\2"
6293
6294  # Write the raw and C identifiers.
6295  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6296
6297  # Check to see that the pipe works correctly.
6298  pipe_works=no
6299
6300  rm -f conftest*
6301  cat > conftest.$ac_ext <<EOF
6302#ifdef __cplusplus
6303extern "C" {
6304#endif
6305char nm_test_var;
6306void nm_test_func(){}
6307#ifdef __cplusplus
6308}
6309#endif
6310int main(){nm_test_var='a';nm_test_func();return(0);}
6311EOF
6312
6313  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314  (eval $ac_compile) 2>&5
6315  ac_status=$?
6316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317  (exit $ac_status); }; then
6318    # Now try to grab the symbols.
6319    nlist=conftest.nm
6320    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6321  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6322  ac_status=$?
6323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324  (exit $ac_status); } && test -s "$nlist"; then
6325      # Try sorting and uniquifying the output.
6326      if sort "$nlist" | uniq > "$nlist"T; then
6327        mv -f "$nlist"T "$nlist"
6328      else
6329        rm -f "$nlist"T
6330      fi
6331
6332      # Make sure that we snagged all the symbols we need.
6333      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6334        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6335          cat <<EOF > conftest.$ac_ext
6336#ifdef __cplusplus
6337extern "C" {
6338#endif
6339
6340EOF
6341          # Now generate the symbol file.
6342          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6343
6344          cat <<EOF >> conftest.$ac_ext
6345#if defined (__STDC__) && __STDC__
6346# define lt_ptr_t void *
6347#else
6348# define lt_ptr_t char *
6349# define const
6350#endif
6351
6352/* The mapping between symbol names and symbols. */
6353const struct {
6354  const char *name;
6355  lt_ptr_t address;
6356}
6357lt_preloaded_symbols[] =
6358{
6359EOF
6360          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6361          cat <<\EOF >> conftest.$ac_ext
6362  {0, (lt_ptr_t) 0}
6363};
6364
6365#ifdef __cplusplus
6366}
6367#endif
6368EOF
6369          # Now try linking the two files.
6370          mv conftest.$ac_objext conftstm.$ac_objext
6371          lt_save_LIBS="$LIBS"
6372          lt_save_CFLAGS="$CFLAGS"
6373          LIBS="conftstm.$ac_objext"
6374          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6375          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376  (eval $ac_link) 2>&5
6377  ac_status=$?
6378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6380            pipe_works=yes
6381          fi
6382          LIBS="$lt_save_LIBS"
6383          CFLAGS="$lt_save_CFLAGS"
6384        else
6385          echo "cannot find nm_test_func in $nlist" >&5
6386        fi
6387      else
6388        echo "cannot find nm_test_var in $nlist" >&5
6389      fi
6390    else
6391      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6392    fi
6393  else
6394    echo "$progname: failed program was:" >&5
6395    cat conftest.$ac_ext >&5
6396  fi
6397  rm -f conftest* conftst*
6398
6399  # Do not use the global_symbol_pipe unless it works.
6400  if test "$pipe_works" = yes; then
6401    break
6402  else
6403    lt_cv_sys_global_symbol_pipe=
6404  fi
6405done
6406
6407fi
6408
6409if test -z "$lt_cv_sys_global_symbol_pipe"; then
6410  lt_cv_sys_global_symbol_to_cdecl=
6411fi
6412if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6413  echo "$as_me:$LINENO: result: failed" >&5
6414echo "${ECHO_T}failed" >&6
6415else
6416  echo "$as_me:$LINENO: result: ok" >&5
6417echo "${ECHO_T}ok" >&6
6418fi
6419
6420echo "$as_me:$LINENO: checking for objdir" >&5
6421echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6422if test "${lt_cv_objdir+set}" = set; then
6423  echo $ECHO_N "(cached) $ECHO_C" >&6
6424else
6425  rm -f .libs 2>/dev/null
6426mkdir .libs 2>/dev/null
6427if test -d .libs; then
6428  lt_cv_objdir=.libs
6429else
6430  # MS-DOS does not allow filenames that begin with a dot.
6431  lt_cv_objdir=_libs
6432fi
6433rmdir .libs 2>/dev/null
6434fi
6435echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6436echo "${ECHO_T}$lt_cv_objdir" >&6
6437objdir=$lt_cv_objdir
6438
6439
6440
6441
6442
6443case $host_os in
6444aix3*)
6445  # AIX sometimes has problems with the GCC collect2 program.  For some
6446  # reason, if we set the COLLECT_NAMES environment variable, the problems
6447  # vanish in a puff of smoke.
6448  if test "X${COLLECT_NAMES+set}" != Xset; then
6449    COLLECT_NAMES=
6450    export COLLECT_NAMES
6451  fi
6452  ;;
6453esac
6454
6455# Sed substitution that helps us do robust quoting.  It backslashifies
6456# metacharacters that are still active within double-quoted strings.
6457Xsed='sed -e 1s/^X//'
6458sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6459
6460# Same as above, but do not quote variable references.
6461double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6462
6463# Sed substitution to delay expansion of an escaped shell variable in a
6464# double_quote_subst'ed string.
6465delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6466
6467# Sed substitution to avoid accidental globbing in evaled expressions
6468no_glob_subst='s/\*/\\\*/g'
6469
6470# Constants:
6471rm="rm -f"
6472
6473# Global variables:
6474default_ofile=libtool
6475can_build_shared=yes
6476
6477# All known linkers require a `.a' archive for static linking (except MSVC,
6478# which needs '.lib').
6479libext=a
6480ltmain="$ac_aux_dir/ltmain.sh"
6481ofile="$default_ofile"
6482with_gnu_ld="$lt_cv_prog_gnu_ld"
6483
6484if test -n "$ac_tool_prefix"; then
6485  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6486set dummy ${ac_tool_prefix}ar; ac_word=$2
6487echo "$as_me:$LINENO: checking for $ac_word" >&5
6488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6489if test "${ac_cv_prog_AR+set}" = set; then
6490  echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
6492  if test -n "$AR"; then
6493  ac_cv_prog_AR="$AR" # Let the user override the test.
6494else
6495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496for as_dir in $PATH
6497do
6498  IFS=$as_save_IFS
6499  test -z "$as_dir" && as_dir=.
6500  for ac_exec_ext in '' $ac_executable_extensions; do
6501  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6502    ac_cv_prog_AR="${ac_tool_prefix}ar"
6503    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6504    break 2
6505  fi
6506done
6507done
6508
6509fi
6510fi
6511AR=$ac_cv_prog_AR
6512if test -n "$AR"; then
6513  echo "$as_me:$LINENO: result: $AR" >&5
6514echo "${ECHO_T}$AR" >&6
6515else
6516  echo "$as_me:$LINENO: result: no" >&5
6517echo "${ECHO_T}no" >&6
6518fi
6519
6520fi
6521if test -z "$ac_cv_prog_AR"; then
6522  ac_ct_AR=$AR
6523  # Extract the first word of "ar", so it can be a program name with args.
6524set dummy ar; ac_word=$2
6525echo "$as_me:$LINENO: checking for $ac_word" >&5
6526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6527if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6528  echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530  if test -n "$ac_ct_AR"; then
6531  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6532else
6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536  IFS=$as_save_IFS
6537  test -z "$as_dir" && as_dir=.
6538  for ac_exec_ext in '' $ac_executable_extensions; do
6539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540    ac_cv_prog_ac_ct_AR="ar"
6541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542    break 2
6543  fi
6544done
6545done
6546
6547  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6548fi
6549fi
6550ac_ct_AR=$ac_cv_prog_ac_ct_AR
6551if test -n "$ac_ct_AR"; then
6552  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6553echo "${ECHO_T}$ac_ct_AR" >&6
6554else
6555  echo "$as_me:$LINENO: result: no" >&5
6556echo "${ECHO_T}no" >&6
6557fi
6558
6559  AR=$ac_ct_AR
6560else
6561  AR="$ac_cv_prog_AR"
6562fi
6563
6564if test -n "$ac_tool_prefix"; then
6565  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6566set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6567echo "$as_me:$LINENO: checking for $ac_word" >&5
6568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6569if test "${ac_cv_prog_RANLIB+set}" = set; then
6570  echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572  if test -n "$RANLIB"; then
6573  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6574else
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578  IFS=$as_save_IFS
6579  test -z "$as_dir" && as_dir=.
6580  for ac_exec_ext in '' $ac_executable_extensions; do
6581  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584    break 2
6585  fi
6586done
6587done
6588
6589fi
6590fi
6591RANLIB=$ac_cv_prog_RANLIB
6592if test -n "$RANLIB"; then
6593  echo "$as_me:$LINENO: result: $RANLIB" >&5
6594echo "${ECHO_T}$RANLIB" >&6
6595else
6596  echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6
6598fi
6599
6600fi
6601if test -z "$ac_cv_prog_RANLIB"; then
6602  ac_ct_RANLIB=$RANLIB
6603  # Extract the first word of "ranlib", so it can be a program name with args.
6604set dummy ranlib; ac_word=$2
6605echo "$as_me:$LINENO: checking for $ac_word" >&5
6606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6607if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6608  echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610  if test -n "$ac_ct_RANLIB"; then
6611  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6612else
6613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614for as_dir in $PATH
6615do
6616  IFS=$as_save_IFS
6617  test -z "$as_dir" && as_dir=.
6618  for ac_exec_ext in '' $ac_executable_extensions; do
6619  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6620    ac_cv_prog_ac_ct_RANLIB="ranlib"
6621    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6622    break 2
6623  fi
6624done
6625done
6626
6627  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6628fi
6629fi
6630ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6631if test -n "$ac_ct_RANLIB"; then
6632  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6633echo "${ECHO_T}$ac_ct_RANLIB" >&6
6634else
6635  echo "$as_me:$LINENO: result: no" >&5
6636echo "${ECHO_T}no" >&6
6637fi
6638
6639  RANLIB=$ac_ct_RANLIB
6640else
6641  RANLIB="$ac_cv_prog_RANLIB"
6642fi
6643
6644if test -n "$ac_tool_prefix"; then
6645  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6646set dummy ${ac_tool_prefix}strip; ac_word=$2
6647echo "$as_me:$LINENO: checking for $ac_word" >&5
6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6649if test "${ac_cv_prog_STRIP+set}" = set; then
6650  echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652  if test -n "$STRIP"; then
6653  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660  for ac_exec_ext in '' $ac_executable_extensions; do
6661  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667done
6668
6669fi
6670fi
6671STRIP=$ac_cv_prog_STRIP
6672if test -n "$STRIP"; then
6673  echo "$as_me:$LINENO: result: $STRIP" >&5
6674echo "${ECHO_T}$STRIP" >&6
6675else
6676  echo "$as_me:$LINENO: result: no" >&5
6677echo "${ECHO_T}no" >&6
6678fi
6679
6680fi
6681if test -z "$ac_cv_prog_STRIP"; then
6682  ac_ct_STRIP=$STRIP
6683  # Extract the first word of "strip", so it can be a program name with args.
6684set dummy strip; ac_word=$2
6685echo "$as_me:$LINENO: checking for $ac_word" >&5
6686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6687if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6688  echo $ECHO_N "(cached) $ECHO_C" >&6
6689else
6690  if test -n "$ac_ct_STRIP"; then
6691  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6692else
6693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694for as_dir in $PATH
6695do
6696  IFS=$as_save_IFS
6697  test -z "$as_dir" && as_dir=.
6698  for ac_exec_ext in '' $ac_executable_extensions; do
6699  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6700    ac_cv_prog_ac_ct_STRIP="strip"
6701    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6702    break 2
6703  fi
6704done
6705done
6706
6707  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6708fi
6709fi
6710ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6711if test -n "$ac_ct_STRIP"; then
6712  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6713echo "${ECHO_T}$ac_ct_STRIP" >&6
6714else
6715  echo "$as_me:$LINENO: result: no" >&5
6716echo "${ECHO_T}no" >&6
6717fi
6718
6719  STRIP=$ac_ct_STRIP
6720else
6721  STRIP="$ac_cv_prog_STRIP"
6722fi
6723
6724
6725old_CC="$CC"
6726old_CFLAGS="$CFLAGS"
6727
6728# Set sane defaults for various variables
6729test -z "$AR" && AR=ar
6730test -z "$AR_FLAGS" && AR_FLAGS=cru
6731test -z "$AS" && AS=as
6732test -z "$CC" && CC=cc
6733test -z "$LTCC" && LTCC=$CC
6734test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6735test -z "$DLLTOOL" && DLLTOOL=dlltool
6736test -z "$LD" && LD=ld
6737test -z "$LN_S" && LN_S="ln -s"
6738test -z "$MAGIC_CMD" && MAGIC_CMD=file
6739test -z "$NM" && NM=nm
6740test -z "$SED" && SED=sed
6741test -z "$OBJDUMP" && OBJDUMP=objdump
6742test -z "$RANLIB" && RANLIB=:
6743test -z "$STRIP" && STRIP=:
6744test -z "$ac_objext" && ac_objext=o
6745
6746# Determine commands to create old-style static archives.
6747old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6748old_postinstall_cmds='chmod 644 $oldlib'
6749old_postuninstall_cmds=
6750
6751if test -n "$RANLIB"; then
6752  case $host_os in
6753  openbsd*)
6754    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6755    ;;
6756  *)
6757    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6758    ;;
6759  esac
6760  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6761fi
6762
6763for cc_temp in $compiler""; do
6764  case $cc_temp in
6765    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6766    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6767    \-*) ;;
6768    *) break;;
6769  esac
6770done
6771cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6772
6773
6774# Only perform the check for file, if the check method requires it
6775case $deplibs_check_method in
6776file_magic*)
6777  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6778    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6779echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6780if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6781  echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783  case $MAGIC_CMD in
6784[\\/*] |  ?:[\\/]*)
6785  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6786  ;;
6787*)
6788  lt_save_MAGIC_CMD="$MAGIC_CMD"
6789  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6790  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6791  for ac_dir in $ac_dummy; do
6792    IFS="$lt_save_ifs"
6793    test -z "$ac_dir" && ac_dir=.
6794    if test -f $ac_dir/${ac_tool_prefix}file; then
6795      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6796      if test -n "$file_magic_test_file"; then
6797        case $deplibs_check_method in
6798        "file_magic "*)
6799          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6800          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6801          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6802            $EGREP "$file_magic_regex" > /dev/null; then
6803            :
6804          else
6805            cat <<EOF 1>&2
6806
6807*** Warning: the command libtool uses to detect shared libraries,
6808*** $file_magic_cmd, produces output that libtool cannot recognize.
6809*** The result is that libtool may fail to recognize shared libraries
6810*** as such.  This will affect the creation of libtool libraries that
6811*** depend on shared libraries, but programs linked with such libtool
6812*** libraries will work regardless of this problem.  Nevertheless, you
6813*** may want to report the problem to your system manager and/or to
6814*** bug-libtool@gnu.org
6815
6816EOF
6817          fi ;;
6818        esac
6819      fi
6820      break
6821    fi
6822  done
6823  IFS="$lt_save_ifs"
6824  MAGIC_CMD="$lt_save_MAGIC_CMD"
6825  ;;
6826esac
6827fi
6828
6829MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6830if test -n "$MAGIC_CMD"; then
6831  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6832echo "${ECHO_T}$MAGIC_CMD" >&6
6833else
6834  echo "$as_me:$LINENO: result: no" >&5
6835echo "${ECHO_T}no" >&6
6836fi
6837
6838if test -z "$lt_cv_path_MAGIC_CMD"; then
6839  if test -n "$ac_tool_prefix"; then
6840    echo "$as_me:$LINENO: checking for file" >&5
6841echo $ECHO_N "checking for file... $ECHO_C" >&6
6842if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6843  echo $ECHO_N "(cached) $ECHO_C" >&6
6844else
6845  case $MAGIC_CMD in
6846[\\/*] |  ?:[\\/]*)
6847  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6848  ;;
6849*)
6850  lt_save_MAGIC_CMD="$MAGIC_CMD"
6851  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6852  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6853  for ac_dir in $ac_dummy; do
6854    IFS="$lt_save_ifs"
6855    test -z "$ac_dir" && ac_dir=.
6856    if test -f $ac_dir/file; then
6857      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6858      if test -n "$file_magic_test_file"; then
6859        case $deplibs_check_method in
6860        "file_magic "*)
6861          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6862          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6863          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6864            $EGREP "$file_magic_regex" > /dev/null; then
6865            :
6866          else
6867            cat <<EOF 1>&2
6868
6869*** Warning: the command libtool uses to detect shared libraries,
6870*** $file_magic_cmd, produces output that libtool cannot recognize.
6871*** The result is that libtool may fail to recognize shared libraries
6872*** as such.  This will affect the creation of libtool libraries that
6873*** depend on shared libraries, but programs linked with such libtool
6874*** libraries will work regardless of this problem.  Nevertheless, you
6875*** may want to report the problem to your system manager and/or to
6876*** bug-libtool@gnu.org
6877
6878EOF
6879          fi ;;
6880        esac
6881      fi
6882      break
6883    fi
6884  done
6885  IFS="$lt_save_ifs"
6886  MAGIC_CMD="$lt_save_MAGIC_CMD"
6887  ;;
6888esac
6889fi
6890
6891MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6892if test -n "$MAGIC_CMD"; then
6893  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6894echo "${ECHO_T}$MAGIC_CMD" >&6
6895else
6896  echo "$as_me:$LINENO: result: no" >&5
6897echo "${ECHO_T}no" >&6
6898fi
6899
6900  else
6901    MAGIC_CMD=:
6902  fi
6903fi
6904
6905  fi
6906  ;;
6907esac
6908
6909enable_dlopen=no
6910enable_win32_dll=no
6911
6912# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6913if test "${enable_libtool_lock+set}" = set; then
6914  enableval="$enable_libtool_lock"
6915
6916fi;
6917test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6918
6919
6920# Check whether --with-pic or --without-pic was given.
6921if test "${with_pic+set}" = set; then
6922  withval="$with_pic"
6923  pic_mode="$withval"
6924else
6925  pic_mode=default
6926fi;
6927test -z "$pic_mode" && pic_mode=default
6928
6929# Use C for the default configuration in the libtool script
6930tagname=
6931lt_save_CC="$CC"
6932ac_ext=c
6933ac_cpp='$CPP $CPPFLAGS'
6934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6936ac_compiler_gnu=$ac_cv_c_compiler_gnu
6937
6938
6939# Source file extension for C test sources.
6940ac_ext=c
6941
6942# Object file extension for compiled C test sources.
6943objext=o
6944objext=$objext
6945
6946# Code to be used in simple compile tests
6947lt_simple_compile_test_code="int some_variable = 0;\n"
6948
6949# Code to be used in simple link tests
6950lt_simple_link_test_code='int main(){return(0);}\n'
6951
6952
6953# If no C compiler was specified, use CC.
6954LTCC=${LTCC-"$CC"}
6955
6956# If no C compiler flags were specified, use CFLAGS.
6957LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6958
6959# Allow CC to be a program name with arguments.
6960compiler=$CC
6961
6962
6963# save warnings/boilerplate of simple test code
6964ac_outfile=conftest.$ac_objext
6965printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6966eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6967_lt_compiler_boilerplate=`cat conftest.err`
6968$rm conftest*
6969
6970ac_outfile=conftest.$ac_objext
6971printf "$lt_simple_link_test_code" >conftest.$ac_ext
6972eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6973_lt_linker_boilerplate=`cat conftest.err`
6974$rm conftest*
6975
6976
6977## CAVEAT EMPTOR:
6978## There is no encapsulation within the following macros, do not change
6979## the running order or otherwise move them around unless you know exactly
6980## what you are doing...
6981
6982lt_prog_compiler_no_builtin_flag=
6983
6984if test "$GCC" = yes; then
6985  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6986
6987
6988echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6989echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6990if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6991  echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993  lt_cv_prog_compiler_rtti_exceptions=no
6994  ac_outfile=conftest.$ac_objext
6995   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6996   lt_compiler_flag="-fno-rtti -fno-exceptions"
6997   # Insert the option either (1) after the last *FLAGS variable, or
6998   # (2) before a word containing "conftest.", or (3) at the end.
6999   # Note that $ac_compile itself does not contain backslashes and begins
7000   # with a dollar sign (not a hyphen), so the echo should work correctly.
7001   # The option is referenced via a variable to avoid confusing sed.
7002   lt_compile=`echo "$ac_compile" | $SED \
7003   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7004   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7005   -e 's:$: $lt_compiler_flag:'`
7006   (eval echo "\"\$as_me:7006: $lt_compile\"" >&5)
7007   (eval "$lt_compile" 2>conftest.err)
7008   ac_status=$?
7009   cat conftest.err >&5
7010   echo "$as_me:7010: \$? = $ac_status" >&5
7011   if (exit $ac_status) && test -s "$ac_outfile"; then
7012     # The compiler can only warn and ignore the option if not recognized
7013     # So say no if there are warnings other than the usual output.
7014     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7015     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7016     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7017       lt_cv_prog_compiler_rtti_exceptions=yes
7018     fi
7019   fi
7020   $rm conftest*
7021
7022fi
7023echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7024echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7025
7026if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7027    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7028else
7029    :
7030fi
7031
7032fi
7033
7034lt_prog_compiler_wl=
7035lt_prog_compiler_pic=
7036lt_prog_compiler_static=
7037
7038echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7039echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7040
7041  if test "$GCC" = yes; then
7042    lt_prog_compiler_wl='-Wl,'
7043    lt_prog_compiler_static='-static'
7044
7045    case $host_os in
7046      aix*)
7047      # All AIX code is PIC.
7048      if test "$host_cpu" = ia64; then
7049        # AIX 5 now supports IA64 processor
7050        lt_prog_compiler_static='-Bstatic'
7051      fi
7052      ;;
7053
7054    amigaos*)
7055      # FIXME: we need at least 68020 code to build shared libraries, but
7056      # adding the `-m68020' flag to GCC prevents building anything better,
7057      # like `-m68040'.
7058      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7059      ;;
7060
7061    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7062      # PIC is the default for these OSes.
7063      ;;
7064
7065    mingw* | pw32* | os2*)
7066      # This hack is so that the source file can tell whether it is being
7067      # built for inclusion in a dll (and should export symbols for example).
7068      lt_prog_compiler_pic='-DDLL_EXPORT'
7069      ;;
7070
7071    darwin* | rhapsody*)
7072      # PIC is the default on this platform
7073      # Common symbols not allowed in MH_DYLIB files
7074      lt_prog_compiler_pic='-fno-common'
7075      ;;
7076
7077    interix3*)
7078      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7079      # Instead, we relocate shared libraries at runtime.
7080      ;;
7081
7082    msdosdjgpp*)
7083      # Just because we use GCC doesn't mean we suddenly get shared libraries
7084      # on systems that don't support them.
7085      lt_prog_compiler_can_build_shared=no
7086      enable_shared=no
7087      ;;
7088
7089    sysv4*MP*)
7090      if test -d /usr/nec; then
7091        lt_prog_compiler_pic=-Kconform_pic
7092      fi
7093      ;;
7094
7095    hpux*)
7096      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7097      # not for PA HP-UX.
7098      case $host_cpu in
7099      hppa*64*|ia64*)
7100        # +Z the default
7101        ;;
7102      *)
7103        lt_prog_compiler_pic='-fPIC'
7104        ;;
7105      esac
7106      ;;
7107
7108    *)
7109      lt_prog_compiler_pic='-fPIC'
7110      ;;
7111    esac
7112  else
7113    # PORTME Check for flag to pass linker flags through the system compiler.
7114    case $host_os in
7115    aix*)
7116      lt_prog_compiler_wl='-Wl,'
7117      if test "$host_cpu" = ia64; then
7118        # AIX 5 now supports IA64 processor
7119        lt_prog_compiler_static='-Bstatic'
7120      else
7121        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7122      fi
7123      ;;
7124      darwin*)
7125        # PIC is the default on this platform
7126        # Common symbols not allowed in MH_DYLIB files
7127       case $cc_basename in
7128         xlc*)
7129         lt_prog_compiler_pic='-qnocommon'
7130         lt_prog_compiler_wl='-Wl,'
7131         ;;
7132       esac
7133       ;;
7134
7135    mingw* | pw32* | os2*)
7136      # This hack is so that the source file can tell whether it is being
7137      # built for inclusion in a dll (and should export symbols for example).
7138      lt_prog_compiler_pic='-DDLL_EXPORT'
7139      ;;
7140
7141    hpux9* | hpux10* | hpux11*)
7142      lt_prog_compiler_wl='-Wl,'
7143      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7144      # not for PA HP-UX.
7145      case $host_cpu in
7146      hppa*64*|ia64*)
7147        # +Z the default
7148        ;;
7149      *)
7150        lt_prog_compiler_pic='+Z'
7151        ;;
7152      esac
7153      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7154      lt_prog_compiler_static='${wl}-a ${wl}archive'
7155      ;;
7156
7157    irix5* | irix6* | nonstopux*)
7158      lt_prog_compiler_wl='-Wl,'
7159      # PIC (with -KPIC) is the default.
7160      lt_prog_compiler_static='-non_shared'
7161      ;;
7162
7163    newsos6)
7164      lt_prog_compiler_pic='-KPIC'
7165      lt_prog_compiler_static='-Bstatic'
7166      ;;
7167
7168    linux*)
7169      case $cc_basename in
7170      icc* | ecc*)
7171        lt_prog_compiler_wl='-Wl,'
7172        lt_prog_compiler_pic='-KPIC'
7173        lt_prog_compiler_static='-static'
7174        ;;
7175      pgcc* | pgf77* | pgf90* | pgf95*)
7176        # Portland Group compilers (*not* the Pentium gcc compiler,
7177        # which looks to be a dead project)
7178        lt_prog_compiler_wl='-Wl,'
7179        lt_prog_compiler_pic='-fpic'
7180        lt_prog_compiler_static='-Bstatic'
7181        ;;
7182      ccc*)
7183        lt_prog_compiler_wl='-Wl,'
7184        # All Alpha code is PIC.
7185        lt_prog_compiler_static='-non_shared'
7186        ;;
7187      esac
7188      ;;
7189
7190    osf3* | osf4* | osf5*)
7191      lt_prog_compiler_wl='-Wl,'
7192      # All OSF/1 code is PIC.
7193      lt_prog_compiler_static='-non_shared'
7194      ;;
7195
7196    solaris*)
7197      lt_prog_compiler_pic='-KPIC'
7198      lt_prog_compiler_static='-Bstatic'
7199      case $cc_basename in
7200      f77* | f90* | f95*)
7201        lt_prog_compiler_wl='-Qoption ld ';;
7202      *)
7203        lt_prog_compiler_wl='-Wl,';;
7204      esac
7205      ;;
7206
7207    sunos4*)
7208      lt_prog_compiler_wl='-Qoption ld '
7209      lt_prog_compiler_pic='-PIC'
7210      lt_prog_compiler_static='-Bstatic'
7211      ;;
7212
7213    sysv4 | sysv4.2uw2* | sysv4.3*)
7214      lt_prog_compiler_wl='-Wl,'
7215      lt_prog_compiler_pic='-KPIC'
7216      lt_prog_compiler_static='-Bstatic'
7217      ;;
7218
7219    sysv4*MP*)
7220      if test -d /usr/nec ;then
7221        lt_prog_compiler_pic='-Kconform_pic'
7222        lt_prog_compiler_static='-Bstatic'
7223      fi
7224      ;;
7225
7226    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7227      lt_prog_compiler_wl='-Wl,'
7228      lt_prog_compiler_pic='-KPIC'
7229      lt_prog_compiler_static='-Bstatic'
7230      ;;
7231
7232    unicos*)
7233      lt_prog_compiler_wl='-Wl,'
7234      lt_prog_compiler_can_build_shared=no
7235      ;;
7236
7237    uts4*)
7238      lt_prog_compiler_pic='-pic'
7239      lt_prog_compiler_static='-Bstatic'
7240      ;;
7241
7242    *)
7243      lt_prog_compiler_can_build_shared=no
7244      ;;
7245    esac
7246  fi
7247
7248echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7249echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7250
7251#
7252# Check to make sure the PIC flag actually works.
7253#
7254if test -n "$lt_prog_compiler_pic"; then
7255
7256echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7257echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7258if test "${lt_prog_compiler_pic_works+set}" = set; then
7259  echo $ECHO_N "(cached) $ECHO_C" >&6
7260else
7261  lt_prog_compiler_pic_works=no
7262  ac_outfile=conftest.$ac_objext
7263   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7264   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7265   # Insert the option either (1) after the last *FLAGS variable, or
7266   # (2) before a word containing "conftest.", or (3) at the end.
7267   # Note that $ac_compile itself does not contain backslashes and begins
7268   # with a dollar sign (not a hyphen), so the echo should work correctly.
7269   # The option is referenced via a variable to avoid confusing sed.
7270   lt_compile=`echo "$ac_compile" | $SED \
7271   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7272   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7273   -e 's:$: $lt_compiler_flag:'`
7274   (eval echo "\"\$as_me:7274: $lt_compile\"" >&5)
7275   (eval "$lt_compile" 2>conftest.err)
7276   ac_status=$?
7277   cat conftest.err >&5
7278   echo "$as_me:7278: \$? = $ac_status" >&5
7279   if (exit $ac_status) && test -s "$ac_outfile"; then
7280     # The compiler can only warn and ignore the option if not recognized
7281     # So say no if there are warnings other than the usual output.
7282     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7283     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7284     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7285       lt_prog_compiler_pic_works=yes
7286     fi
7287   fi
7288   $rm conftest*
7289
7290fi
7291echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7292echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7293
7294if test x"$lt_prog_compiler_pic_works" = xyes; then
7295    case $lt_prog_compiler_pic in
7296     "" | " "*) ;;
7297     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7298     esac
7299else
7300    lt_prog_compiler_pic=
7301     lt_prog_compiler_can_build_shared=no
7302fi
7303
7304fi
7305case $host_os in
7306  # For platforms which do not support PIC, -DPIC is meaningless:
7307  *djgpp*)
7308    lt_prog_compiler_pic=
7309    ;;
7310  *)
7311    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7312    ;;
7313esac
7314
7315#
7316# Check to make sure the static flag actually works.
7317#
7318wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7319echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7320echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7321if test "${lt_prog_compiler_static_works+set}" = set; then
7322  echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324  lt_prog_compiler_static_works=no
7325   save_LDFLAGS="$LDFLAGS"
7326   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7327   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7328   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7329     # The linker can only warn and ignore the option if not recognized
7330     # So say no if there are warnings
7331     if test -s conftest.err; then
7332       # Append any errors to the config.log.
7333       cat conftest.err 1>&5
7334       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7335       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7336       if diff conftest.exp conftest.er2 >/dev/null; then
7337         lt_prog_compiler_static_works=yes
7338       fi
7339     else
7340       lt_prog_compiler_static_works=yes
7341     fi
7342   fi
7343   $rm conftest*
7344   LDFLAGS="$save_LDFLAGS"
7345
7346fi
7347echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7348echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7349
7350if test x"$lt_prog_compiler_static_works" = xyes; then
7351    :
7352else
7353    lt_prog_compiler_static=
7354fi
7355
7356
7357echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7358echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7359if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7360  echo $ECHO_N "(cached) $ECHO_C" >&6
7361else
7362  lt_cv_prog_compiler_c_o=no
7363   $rm -r conftest 2>/dev/null
7364   mkdir conftest
7365   cd conftest
7366   mkdir out
7367   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7368
7369   lt_compiler_flag="-o out/conftest2.$ac_objext"
7370   # Insert the option either (1) after the last *FLAGS variable, or
7371   # (2) before a word containing "conftest.", or (3) at the end.
7372   # Note that $ac_compile itself does not contain backslashes and begins
7373   # with a dollar sign (not a hyphen), so the echo should work correctly.
7374   lt_compile=`echo "$ac_compile" | $SED \
7375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7377   -e 's:$: $lt_compiler_flag:'`
7378   (eval echo "\"\$as_me:7378: $lt_compile\"" >&5)
7379   (eval "$lt_compile" 2>out/conftest.err)
7380   ac_status=$?
7381   cat out/conftest.err >&5
7382   echo "$as_me:7382: \$? = $ac_status" >&5
7383   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7384   then
7385     # The compiler can only warn and ignore the option if not recognized
7386     # So say no if there are warnings
7387     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7388     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7389     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7390       lt_cv_prog_compiler_c_o=yes
7391     fi
7392   fi
7393   chmod u+w . 2>&5
7394   $rm conftest*
7395   # SGI C++ compiler will create directory out/ii_files/ for
7396   # template instantiation
7397   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7398   $rm out/* && rmdir out
7399   cd ..
7400   rmdir conftest
7401   $rm conftest*
7402
7403fi
7404echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7405echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7406
7407
7408hard_links="nottested"
7409if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7410  # do not overwrite the value of need_locks provided by the user
7411  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7412echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7413  hard_links=yes
7414  $rm conftest*
7415  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7416  touch conftest.a
7417  ln conftest.a conftest.b 2>&5 || hard_links=no
7418  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7419  echo "$as_me:$LINENO: result: $hard_links" >&5
7420echo "${ECHO_T}$hard_links" >&6
7421  if test "$hard_links" = no; then
7422    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7423echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7424    need_locks=warn
7425  fi
7426else
7427  need_locks=no
7428fi
7429
7430echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7431echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7432
7433  runpath_var=
7434  allow_undefined_flag=
7435  enable_shared_with_static_runtimes=no
7436  archive_cmds=
7437  archive_expsym_cmds=
7438  old_archive_From_new_cmds=
7439  old_archive_from_expsyms_cmds=
7440  export_dynamic_flag_spec=
7441  whole_archive_flag_spec=
7442  thread_safe_flag_spec=
7443  hardcode_libdir_flag_spec=
7444  hardcode_libdir_flag_spec_ld=
7445  hardcode_libdir_separator=
7446  hardcode_direct=no
7447  hardcode_minus_L=no
7448  hardcode_shlibpath_var=unsupported
7449  link_all_deplibs=unknown
7450  hardcode_automatic=no
7451  module_cmds=
7452  module_expsym_cmds=
7453  always_export_symbols=no
7454  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7455  # include_expsyms should be a list of space-separated symbols to be *always*
7456  # included in the symbol list
7457  include_expsyms=
7458  # exclude_expsyms can be an extended regexp of symbols to exclude
7459  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7460  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7461  # as well as any symbol that contains `d'.
7462  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7463  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7464  # platforms (ab)use it in PIC code, but their linkers get confused if
7465  # the symbol is explicitly referenced.  Since portable code cannot
7466  # rely on this symbol name, it's probably fine to never include it in
7467  # preloaded symbol tables.
7468  extract_expsyms_cmds=
7469  # Just being paranoid about ensuring that cc_basename is set.
7470  for cc_temp in $compiler""; do
7471  case $cc_temp in
7472    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7473    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7474    \-*) ;;
7475    *) break;;
7476  esac
7477done
7478cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7479
7480  case $host_os in
7481  cygwin* | mingw* | pw32*)
7482    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7483    # When not using gcc, we currently assume that we are using
7484    # Microsoft Visual C++.
7485    if test "$GCC" != yes; then
7486      with_gnu_ld=no
7487    fi
7488    ;;
7489  interix*)
7490    # we just hope/assume this is gcc and not c89 (= MSVC++)
7491    with_gnu_ld=yes
7492    ;;
7493  openbsd*)
7494    with_gnu_ld=no
7495    ;;
7496  esac
7497
7498  ld_shlibs=yes
7499  if test "$with_gnu_ld" = yes; then
7500    # If archive_cmds runs LD, not CC, wlarc should be empty
7501    wlarc='${wl}'
7502
7503    # Set some defaults for GNU ld with shared library support. These
7504    # are reset later if shared libraries are not supported. Putting them
7505    # here allows them to be overridden if necessary.
7506    runpath_var=LD_RUN_PATH
7507    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7508    export_dynamic_flag_spec='${wl}--export-dynamic'
7509    # ancient GNU ld didn't support --whole-archive et. al.
7510    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7511        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7512      else
7513        whole_archive_flag_spec=
7514    fi
7515    supports_anon_versioning=no
7516    case `$LD -v 2>/dev/null` in
7517      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7518      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7519      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7520      *\ 2.11.*) ;; # other 2.11 versions
7521      *) supports_anon_versioning=yes ;;
7522    esac
7523
7524    # See if GNU ld supports shared libraries.
7525    case $host_os in
7526    aix3* | aix4* | aix5*)
7527      # On AIX/PPC, the GNU linker is very broken
7528      if test "$host_cpu" != ia64; then
7529        ld_shlibs=no
7530        cat <<EOF 1>&2
7531
7532*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7533*** to be unable to reliably create shared libraries on AIX.
7534*** Therefore, libtool is disabling shared libraries support.  If you
7535*** really care for shared libraries, you may want to modify your PATH
7536*** so that a non-GNU linker is found, and then restart.
7537
7538EOF
7539      fi
7540      ;;
7541
7542    amigaos*)
7543      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)'
7544      hardcode_libdir_flag_spec='-L$libdir'
7545      hardcode_minus_L=yes
7546
7547      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7548      # that the semantics of dynamic libraries on AmigaOS, at least up
7549      # to version 4, is to share data among multiple programs linked
7550      # with the same dynamic library.  Since this doesn't match the
7551      # behavior of shared libraries on other platforms, we can't use
7552      # them.
7553      ld_shlibs=no
7554      ;;
7555
7556    beos*)
7557      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7558        allow_undefined_flag=unsupported
7559        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7560        # support --undefined.  This deserves some investigation.  FIXME
7561        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7562      else
7563        ld_shlibs=no
7564      fi
7565      ;;
7566
7567    cygwin* | mingw* | pw32*)
7568      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7569      # as there is no search path for DLLs.
7570      hardcode_libdir_flag_spec='-L$libdir'
7571      allow_undefined_flag=unsupported
7572      always_export_symbols=no
7573      enable_shared_with_static_runtimes=yes
7574      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7575
7576      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7577        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7578        # If the export-symbols file already is a .def file (1st line
7579        # is EXPORTS), use it as is; otherwise, prepend...
7580        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7581          cp $export_symbols $output_objdir/$soname.def;
7582        else
7583          echo EXPORTS > $output_objdir/$soname.def;
7584          cat $export_symbols >> $output_objdir/$soname.def;
7585        fi~
7586        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7587      else
7588        ld_shlibs=no
7589      fi
7590      ;;
7591
7592    interix3*)
7593      hardcode_direct=no
7594      hardcode_shlibpath_var=no
7595      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7596      export_dynamic_flag_spec='${wl}-E'
7597      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7598      # Instead, shared libraries are loaded at an image base (0x10000000 by
7599      # default) and relocated if they conflict, which is a slow very memory
7600      # consuming and fragmenting process.  To avoid this, we pick a random,
7601      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7602      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7603      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7604      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'
7605      ;;
7606
7607    linux*)
7608      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7609        tmp_addflag=
7610        case $cc_basename,$host_cpu in
7611        pgcc*)                          # Portland Group C compiler
7612          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'
7613          tmp_addflag=' $pic_flag'
7614          ;;
7615        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7616          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'
7617          tmp_addflag=' $pic_flag -Mnomain' ;;
7618        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7619          tmp_addflag=' -i_dynamic' ;;
7620        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7621          tmp_addflag=' -i_dynamic -nofor_main' ;;
7622        ifc* | ifort*)                  # Intel Fortran compiler
7623          tmp_addflag=' -nofor_main' ;;
7624        esac
7625        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7626
7627        if test $supports_anon_versioning = yes; then
7628          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7629  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7630  $echo "local: *; };" >> $output_objdir/$libname.ver~
7631          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7632        fi
7633      else
7634        ld_shlibs=no
7635      fi
7636      ;;
7637
7638    netbsd*)
7639      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7640        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7641        wlarc=
7642      else
7643        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7644        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7645      fi
7646      ;;
7647
7648    solaris*)
7649      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7650        ld_shlibs=no
7651        cat <<EOF 1>&2
7652
7653*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7654*** create shared libraries on Solaris systems.  Therefore, libtool
7655*** is disabling shared libraries support.  We urge you to upgrade GNU
7656*** binutils to release 2.9.1 or newer.  Another option is to modify
7657*** your PATH or compiler configuration so that the native linker is
7658*** used, and then restart.
7659
7660EOF
7661      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7662        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664      else
7665        ld_shlibs=no
7666      fi
7667      ;;
7668
7669    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7670      case `$LD -v 2>&1` in
7671        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7672        ld_shlibs=no
7673        cat <<_LT_EOF 1>&2
7674
7675*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7676*** reliably create shared libraries on SCO systems.  Therefore, libtool
7677*** is disabling shared libraries support.  We urge you to upgrade GNU
7678*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7679*** your PATH or compiler configuration so that the native linker is
7680*** used, and then restart.
7681
7682_LT_EOF
7683        ;;
7684        *)
7685          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7686            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7687            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7688            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7689          else
7690            ld_shlibs=no
7691          fi
7692        ;;
7693      esac
7694      ;;
7695
7696    sunos4*)
7697      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7698      wlarc=
7699      hardcode_direct=yes
7700      hardcode_shlibpath_var=no
7701      ;;
7702
7703    *)
7704      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7705        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7706        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7707      else
7708        ld_shlibs=no
7709      fi
7710      ;;
7711    esac
7712
7713    if test "$ld_shlibs" = no; then
7714      runpath_var=
7715      hardcode_libdir_flag_spec=
7716      export_dynamic_flag_spec=
7717      whole_archive_flag_spec=
7718    fi
7719  else
7720    # PORTME fill in a description of your system's linker (not GNU ld)
7721    case $host_os in
7722    aix3*)
7723      allow_undefined_flag=unsupported
7724      always_export_symbols=yes
7725      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'
7726      # Note: this linker hardcodes the directories in LIBPATH if there
7727      # are no directories specified by -L.
7728      hardcode_minus_L=yes
7729      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7730        # Neither direct hardcoding nor static linking is supported with a
7731        # broken collect2.
7732        hardcode_direct=unsupported
7733      fi
7734      ;;
7735
7736    aix4* | aix5*)
7737      if test "$host_cpu" = ia64; then
7738        # On IA64, the linker does run time linking by default, so we don't
7739        # have to do anything special.
7740        aix_use_runtimelinking=no
7741        exp_sym_flag='-Bexport'
7742        no_entry_flag=""
7743      else
7744        # If we're using GNU nm, then we don't want the "-C" option.
7745        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7746        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7747          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'
7748        else
7749          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'
7750        fi
7751        aix_use_runtimelinking=no
7752
7753        # Test if we are trying to use run time linking or normal
7754        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7755        # need to do runtime linking.
7756        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7757          for ld_flag in $LDFLAGS; do
7758          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7759            aix_use_runtimelinking=yes
7760            break
7761          fi
7762          done
7763          ;;
7764        esac
7765
7766        exp_sym_flag='-bexport'
7767        no_entry_flag='-bnoentry'
7768      fi
7769
7770      # When large executables or shared objects are built, AIX ld can
7771      # have problems creating the table of contents.  If linking a library
7772      # or program results in "error TOC overflow" add -mminimal-toc to
7773      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7774      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7775
7776      archive_cmds=''
7777      hardcode_direct=yes
7778      hardcode_libdir_separator=':'
7779      link_all_deplibs=yes
7780
7781      if test "$GCC" = yes; then
7782        case $host_os in aix4.[012]|aix4.[012].*)
7783        # We only want to do this on AIX 4.2 and lower, the check
7784        # below for broken collect2 doesn't work under 4.3+
7785          collect2name=`${CC} -print-prog-name=collect2`
7786          if test -f "$collect2name" && \
7787           strings "$collect2name" | grep resolve_lib_name >/dev/null
7788          then
7789          # We have reworked collect2
7790          hardcode_direct=yes
7791          else
7792          # We have old collect2
7793          hardcode_direct=unsupported
7794          # It fails to find uninstalled libraries when the uninstalled
7795          # path is not listed in the libpath.  Setting hardcode_minus_L
7796          # to unsupported forces relinking
7797          hardcode_minus_L=yes
7798          hardcode_libdir_flag_spec='-L$libdir'
7799          hardcode_libdir_separator=
7800          fi
7801          ;;
7802        esac
7803        shared_flag='-shared'
7804        if test "$aix_use_runtimelinking" = yes; then
7805          shared_flag="$shared_flag "'${wl}-G'
7806        fi
7807      else
7808        # not using gcc
7809        if test "$host_cpu" = ia64; then
7810        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7811        # chokes on -Wl,-G. The following line is correct:
7812          shared_flag='-G'
7813        else
7814          if test "$aix_use_runtimelinking" = yes; then
7815            shared_flag='${wl}-G'
7816          else
7817            shared_flag='${wl}-bM:SRE'
7818          fi
7819        fi
7820      fi
7821
7822      # It seems that -bexpall does not export symbols beginning with
7823      # underscore (_), so it is better to generate a list of symbols to export.
7824      always_export_symbols=yes
7825      if test "$aix_use_runtimelinking" = yes; then
7826        # Warning - without using the other runtime loading flags (-brtl),
7827        # -berok will link without error, but may produce a broken library.
7828        allow_undefined_flag='-berok'
7829       # Determine the default libpath from the value encoded in an empty executable.
7830       cat >conftest.$ac_ext <<_ACEOF
7831/* confdefs.h.  */
7832_ACEOF
7833cat confdefs.h >>conftest.$ac_ext
7834cat >>conftest.$ac_ext <<_ACEOF
7835/* end confdefs.h.  */
7836
7837int
7838main ()
7839{
7840
7841  ;
7842  return 0;
7843}
7844_ACEOF
7845rm -f conftest.$ac_objext conftest$ac_exeext
7846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7847  (eval $ac_link) 2>conftest.er1
7848  ac_status=$?
7849  grep -v '^ *+' conftest.er1 >conftest.err
7850  rm -f conftest.er1
7851  cat conftest.err >&5
7852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853  (exit $ac_status); } &&
7854         { ac_try='test -z "$ac_c_werror_flag"
7855                         || test ! -s conftest.err'
7856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857  (eval $ac_try) 2>&5
7858  ac_status=$?
7859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860  (exit $ac_status); }; } &&
7861         { ac_try='test -s conftest$ac_exeext'
7862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863  (eval $ac_try) 2>&5
7864  ac_status=$?
7865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866  (exit $ac_status); }; }; then
7867
7868aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7869}'`
7870# Check for a 64-bit object if we didn't find anything.
7871if 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; }
7872}'`; fi
7873else
7874  echo "$as_me: failed program was:" >&5
7875sed 's/^/| /' conftest.$ac_ext >&5
7876
7877fi
7878rm -f conftest.err conftest.$ac_objext \
7879      conftest$ac_exeext conftest.$ac_ext
7880if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7881
7882       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7883        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"
7884       else
7885        if test "$host_cpu" = ia64; then
7886          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7887          allow_undefined_flag="-z nodefs"
7888          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"
7889        else
7890         # Determine the default libpath from the value encoded in an empty executable.
7891         cat >conftest.$ac_ext <<_ACEOF
7892/* confdefs.h.  */
7893_ACEOF
7894cat confdefs.h >>conftest.$ac_ext
7895cat >>conftest.$ac_ext <<_ACEOF
7896/* end confdefs.h.  */
7897
7898int
7899main ()
7900{
7901
7902  ;
7903  return 0;
7904}
7905_ACEOF
7906rm -f conftest.$ac_objext conftest$ac_exeext
7907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7908  (eval $ac_link) 2>conftest.er1
7909  ac_status=$?
7910  grep -v '^ *+' conftest.er1 >conftest.err
7911  rm -f conftest.er1
7912  cat conftest.err >&5
7913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914  (exit $ac_status); } &&
7915         { ac_try='test -z "$ac_c_werror_flag"
7916                         || test ! -s conftest.err'
7917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7918  (eval $ac_try) 2>&5
7919  ac_status=$?
7920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921  (exit $ac_status); }; } &&
7922         { ac_try='test -s conftest$ac_exeext'
7923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7924  (eval $ac_try) 2>&5
7925  ac_status=$?
7926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927  (exit $ac_status); }; }; then
7928
7929aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7930}'`
7931# Check for a 64-bit object if we didn't find anything.
7932if 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; }
7933}'`; fi
7934else
7935  echo "$as_me: failed program was:" >&5
7936sed 's/^/| /' conftest.$ac_ext >&5
7937
7938fi
7939rm -f conftest.err conftest.$ac_objext \
7940      conftest$ac_exeext conftest.$ac_ext
7941if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7942
7943         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7944          # Warning - without using the other run time loading flags,
7945          # -berok will link without error, but may produce a broken library.
7946          no_undefined_flag=' ${wl}-bernotok'
7947          allow_undefined_flag=' ${wl}-berok'
7948          # Exported symbols can be pulled into shared objects from archives
7949          whole_archive_flag_spec='$convenience'
7950          archive_cmds_need_lc=yes
7951          # This is similar to how AIX traditionally builds its shared libraries.
7952          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'
7953        fi
7954      fi
7955      ;;
7956
7957    amigaos*)
7958      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)'
7959      hardcode_libdir_flag_spec='-L$libdir'
7960      hardcode_minus_L=yes
7961      # see comment about different semantics on the GNU ld section
7962      ld_shlibs=no
7963      ;;
7964
7965    bsdi[45]*)
7966      export_dynamic_flag_spec=-rdynamic
7967      ;;
7968
7969    cygwin* | mingw* | pw32*)
7970      # When not using gcc, we currently assume that we are using
7971      # Microsoft Visual C++.
7972      # hardcode_libdir_flag_spec is actually meaningless, as there is
7973      # no search path for DLLs.
7974      hardcode_libdir_flag_spec=' '
7975      allow_undefined_flag=unsupported
7976      # Tell ltmain to make .lib files, not .a files.
7977      libext=lib
7978      # Tell ltmain to make .dll files, not .so files.
7979      shrext_cmds=".dll"
7980      # FIXME: Setting linknames here is a bad hack.
7981      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7982      # The linker will automatically build a .lib file if we build a DLL.
7983      old_archive_From_new_cmds='true'
7984      # FIXME: Should let the user specify the lib program.
7985      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7986      fix_srcfile_path='`cygpath -w "$srcfile"`'
7987      enable_shared_with_static_runtimes=yes
7988      ;;
7989
7990    darwin* | rhapsody*)
7991      case $host_os in
7992        rhapsody* | darwin1.[012])
7993         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7994         ;;
7995       *) # Darwin 1.3 on
7996         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7997           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7998         else
7999           case ${MACOSX_DEPLOYMENT_TARGET} in
8000             10.[012])
8001               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8002               ;;
8003             10.*)
8004               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8005               ;;
8006           esac
8007         fi
8008         ;;
8009      esac
8010      archive_cmds_need_lc=no
8011      hardcode_direct=no
8012      hardcode_automatic=yes
8013      hardcode_shlibpath_var=unsupported
8014      whole_archive_flag_spec=''
8015      link_all_deplibs=yes
8016    if test "$GCC" = yes ; then
8017        output_verbose_link_cmd='echo'
8018        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8019      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8020      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8021      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}'
8022      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}'
8023    else
8024      case $cc_basename in
8025        xlc*)
8026         output_verbose_link_cmd='echo'
8027         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8028         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8029          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8030         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}'
8031          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}'
8032          ;;
8033       *)
8034         ld_shlibs=no
8035          ;;
8036      esac
8037    fi
8038      ;;
8039
8040    dgux*)
8041      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8042      hardcode_libdir_flag_spec='-L$libdir'
8043      hardcode_shlibpath_var=no
8044      ;;
8045
8046    freebsd1*)
8047      ld_shlibs=no
8048      ;;
8049
8050    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8051    # support.  Future versions do this automatically, but an explicit c++rt0.o
8052    # does not break anything, and helps significantly (at the cost of a little
8053    # extra space).
8054    freebsd2.2*)
8055      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8056      hardcode_libdir_flag_spec='-R$libdir'
8057      hardcode_direct=yes
8058      hardcode_shlibpath_var=no
8059      ;;
8060
8061    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8062    freebsd2*)
8063      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8064      hardcode_direct=yes
8065      hardcode_minus_L=yes
8066      hardcode_shlibpath_var=no
8067      ;;
8068
8069    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8070    freebsd* | kfreebsd*-gnu | dragonfly*)
8071      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8072      hardcode_libdir_flag_spec='-R$libdir'
8073      hardcode_direct=yes
8074      hardcode_shlibpath_var=no
8075      ;;
8076
8077    hpux9*)
8078      if test "$GCC" = yes; then
8079        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'
8080      else
8081        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'
8082      fi
8083      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8084      hardcode_libdir_separator=:
8085      hardcode_direct=yes
8086
8087      # hardcode_minus_L: Not really in the search PATH,
8088      # but as the default location of the library.
8089      hardcode_minus_L=yes
8090      export_dynamic_flag_spec='${wl}-E'
8091      ;;
8092
8093    hpux10*)
8094      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8095        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8096      else
8097        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8098      fi
8099      if test "$with_gnu_ld" = no; then
8100        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8101        hardcode_libdir_separator=:
8102
8103        hardcode_direct=yes
8104        export_dynamic_flag_spec='${wl}-E'
8105
8106        # hardcode_minus_L: Not really in the search PATH,
8107        # but as the default location of the library.
8108        hardcode_minus_L=yes
8109      fi
8110      ;;
8111
8112    hpux11*)
8113      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8114        case $host_cpu in
8115        hppa*64*)
8116          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8117          ;;
8118        ia64*)
8119          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8120          ;;
8121        *)
8122          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8123          ;;
8124        esac
8125      else
8126        case $host_cpu in
8127        hppa*64*)
8128          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8129          ;;
8130        ia64*)
8131          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8132          ;;
8133        *)
8134          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8135          ;;
8136        esac
8137      fi
8138      if test "$with_gnu_ld" = no; then
8139        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8140        hardcode_libdir_separator=:
8141
8142        case $host_cpu in
8143        hppa*64*|ia64*)
8144          hardcode_libdir_flag_spec_ld='+b $libdir'
8145          hardcode_direct=no
8146          hardcode_shlibpath_var=no
8147          ;;
8148        *)
8149          hardcode_direct=yes
8150          export_dynamic_flag_spec='${wl}-E'
8151
8152          # hardcode_minus_L: Not really in the search PATH,
8153          # but as the default location of the library.
8154          hardcode_minus_L=yes
8155          ;;
8156        esac
8157      fi
8158      ;;
8159
8160    irix5* | irix6* | nonstopux*)
8161      if test "$GCC" = yes; then
8162        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'
8163      else
8164        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'
8165        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8166      fi
8167      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8168      hardcode_libdir_separator=:
8169      link_all_deplibs=yes
8170      ;;
8171
8172    netbsd*)
8173      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8174        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8175      else
8176        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8177      fi
8178      hardcode_libdir_flag_spec='-R$libdir'
8179      hardcode_direct=yes
8180      hardcode_shlibpath_var=no
8181      ;;
8182
8183    newsos6)
8184      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8185      hardcode_direct=yes
8186      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8187      hardcode_libdir_separator=:
8188      hardcode_shlibpath_var=no
8189      ;;
8190
8191    openbsd*)
8192      hardcode_direct=yes
8193      hardcode_shlibpath_var=no
8194      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8195        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8196        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8197        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8198        export_dynamic_flag_spec='${wl}-E'
8199      else
8200       case $host_os in
8201         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8202           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8203           hardcode_libdir_flag_spec='-R$libdir'
8204           ;;
8205         *)
8206           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8207           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8208           ;;
8209       esac
8210      fi
8211      ;;
8212
8213    os2*)
8214      hardcode_libdir_flag_spec='-L$libdir'
8215      hardcode_minus_L=yes
8216      allow_undefined_flag=unsupported
8217      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'
8218      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8219      ;;
8220
8221    osf3*)
8222      if test "$GCC" = yes; then
8223        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8224        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'
8225      else
8226        allow_undefined_flag=' -expect_unresolved \*'
8227        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'
8228      fi
8229      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8230      hardcode_libdir_separator=:
8231      ;;
8232
8233    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8234      if test "$GCC" = yes; then
8235        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8236        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'
8237        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8238      else
8239        allow_undefined_flag=' -expect_unresolved \*'
8240        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'
8241        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8242        $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'
8243
8244        # Both c and cxx compiler support -rpath directly
8245        hardcode_libdir_flag_spec='-rpath $libdir'
8246      fi
8247      hardcode_libdir_separator=:
8248      ;;
8249
8250    solaris*)
8251      no_undefined_flag=' -z text'
8252      if test "$GCC" = yes; then
8253        wlarc='${wl}'
8254        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8255        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8256          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8257      else
8258        wlarc=''
8259        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8260        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8261        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8262      fi
8263      hardcode_libdir_flag_spec='-R$libdir'
8264      hardcode_shlibpath_var=no
8265      case $host_os in
8266      solaris2.[0-5] | solaris2.[0-5].*) ;;
8267      *)
8268        # The compiler driver will combine linker options so we
8269        # cannot just pass the convience library names through
8270        # without $wl, iff we do not link with $LD.
8271        # Luckily, gcc supports the same syntax we need for Sun Studio.
8272        # Supported since Solaris 2.6 (maybe 2.5.1?)
8273        case $wlarc in
8274        '')
8275          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8276        *)
8277          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' ;;
8278        esac ;;
8279      esac
8280      link_all_deplibs=yes
8281      ;;
8282
8283    sunos4*)
8284      if test "x$host_vendor" = xsequent; then
8285        # Use $CC to link under sequent, because it throws in some extra .o
8286        # files that make .init and .fini sections work.
8287        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8288      else
8289        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8290      fi
8291      hardcode_libdir_flag_spec='-L$libdir'
8292      hardcode_direct=yes
8293      hardcode_minus_L=yes
8294      hardcode_shlibpath_var=no
8295      ;;
8296
8297    sysv4)
8298      case $host_vendor in
8299        sni)
8300          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8301          hardcode_direct=yes # is this really true???
8302        ;;
8303        siemens)
8304          ## LD is ld it makes a PLAMLIB
8305          ## CC just makes a GrossModule.
8306          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8307          reload_cmds='$CC -r -o $output$reload_objs'
8308          hardcode_direct=no
8309        ;;
8310        motorola)
8311          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8312          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8313        ;;
8314      esac
8315      runpath_var='LD_RUN_PATH'
8316      hardcode_shlibpath_var=no
8317      ;;
8318
8319    sysv4.3*)
8320      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8321      hardcode_shlibpath_var=no
8322      export_dynamic_flag_spec='-Bexport'
8323      ;;
8324
8325    sysv4*MP*)
8326      if test -d /usr/nec; then
8327        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8328        hardcode_shlibpath_var=no
8329        runpath_var=LD_RUN_PATH
8330        hardcode_runpath_var=yes
8331        ld_shlibs=yes
8332      fi
8333      ;;
8334
8335    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8336      no_undefined_flag='${wl}-z,text'
8337      archive_cmds_need_lc=no
8338      hardcode_shlibpath_var=no
8339      runpath_var='LD_RUN_PATH'
8340
8341      if test "$GCC" = yes; then
8342        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8343        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8344      else
8345        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8346        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8347      fi
8348      ;;
8349
8350    sysv5* | sco3.2v5* | sco5v6*)
8351      # Note: We can NOT use -z defs as we might desire, because we do not
8352      # link with -lc, and that would cause any symbols used from libc to
8353      # always be unresolved, which means just about no library would
8354      # ever link correctly.  If we're not using GNU ld we use -z text
8355      # though, which does catch some bad symbols but isn't as heavy-handed
8356      # as -z defs.
8357      no_undefined_flag='${wl}-z,text'
8358      allow_undefined_flag='${wl}-z,nodefs'
8359      archive_cmds_need_lc=no
8360      hardcode_shlibpath_var=no
8361      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8362      hardcode_libdir_separator=':'
8363      link_all_deplibs=yes
8364      export_dynamic_flag_spec='${wl}-Bexport'
8365      runpath_var='LD_RUN_PATH'
8366
8367      if test "$GCC" = yes; then
8368        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8369        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8370      else
8371        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8372        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8373      fi
8374      ;;
8375
8376    uts4*)
8377      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8378      hardcode_libdir_flag_spec='-L$libdir'
8379      hardcode_shlibpath_var=no
8380      ;;
8381
8382    *)
8383      ld_shlibs=no
8384      ;;
8385    esac
8386  fi
8387
8388echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8389echo "${ECHO_T}$ld_shlibs" >&6
8390test "$ld_shlibs" = no && can_build_shared=no
8391
8392#
8393# Do we need to explicitly link libc?
8394#
8395case "x$archive_cmds_need_lc" in
8396x|xyes)
8397  # Assume -lc should be added
8398  archive_cmds_need_lc=yes
8399
8400  if test "$enable_shared" = yes && test "$GCC" = yes; then
8401    case $archive_cmds in
8402    *'~'*)
8403      # FIXME: we may have to deal with multi-command sequences.
8404      ;;
8405    '$CC '*)
8406      # Test whether the compiler implicitly links with -lc since on some
8407      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8408      # to ld, don't add -lc before -lgcc.
8409      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8410echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8411      $rm conftest*
8412      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8413
8414      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8415  (eval $ac_compile) 2>&5
8416  ac_status=$?
8417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418  (exit $ac_status); } 2>conftest.err; then
8419        soname=conftest
8420        lib=conftest
8421        libobjs=conftest.$ac_objext
8422        deplibs=
8423        wl=$lt_prog_compiler_wl
8424        pic_flag=$lt_prog_compiler_pic
8425        compiler_flags=-v
8426        linker_flags=-v
8427        verstring=
8428        output_objdir=.
8429        libname=conftest
8430        lt_save_allow_undefined_flag=$allow_undefined_flag
8431        allow_undefined_flag=
8432        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8433  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8434  ac_status=$?
8435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436  (exit $ac_status); }
8437        then
8438          archive_cmds_need_lc=no
8439        else
8440          archive_cmds_need_lc=yes
8441        fi
8442        allow_undefined_flag=$lt_save_allow_undefined_flag
8443      else
8444        cat conftest.err 1>&5
8445      fi
8446      $rm conftest*
8447      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8448echo "${ECHO_T}$archive_cmds_need_lc" >&6
8449      ;;
8450    esac
8451  fi
8452  ;;
8453esac
8454
8455echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8456echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8457library_names_spec=
8458libname_spec='lib$name'
8459soname_spec=
8460shrext_cmds=".so"
8461postinstall_cmds=
8462postuninstall_cmds=
8463finish_cmds=
8464finish_eval=
8465shlibpath_var=
8466shlibpath_overrides_runpath=unknown
8467version_type=none
8468dynamic_linker="$host_os ld.so"
8469sys_lib_dlsearch_path_spec="/lib /usr/lib"
8470if test "$GCC" = yes; then
8471  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8472  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8473    # if the path contains ";" then we assume it to be the separator
8474    # otherwise default to the standard path separator (i.e. ":") - it is
8475    # assumed that no part of a normal pathname contains ";" but that should
8476    # okay in the real world where ";" in dirpaths is itself problematic.
8477    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8478  else
8479    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8480  fi
8481else
8482  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8483fi
8484need_lib_prefix=unknown
8485hardcode_into_libs=no
8486
8487# when you set need_version to no, make sure it does not cause -set_version
8488# flags to be left without arguments
8489need_version=unknown
8490
8491case $host_os in
8492aix3*)
8493  version_type=linux
8494  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8495  shlibpath_var=LIBPATH
8496
8497  # AIX 3 has no versioning support, so we append a major version to the name.
8498  soname_spec='${libname}${release}${shared_ext}$major'
8499  ;;
8500
8501aix4* | aix5*)
8502  version_type=linux
8503  need_lib_prefix=no
8504  need_version=no
8505  hardcode_into_libs=yes
8506  if test "$host_cpu" = ia64; then
8507    # AIX 5 supports IA64
8508    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8509    shlibpath_var=LD_LIBRARY_PATH
8510  else
8511    # With GCC up to 2.95.x, collect2 would create an import file
8512    # for dependence libraries.  The import file would start with
8513    # the line `#! .'.  This would cause the generated library to
8514    # depend on `.', always an invalid library.  This was fixed in
8515    # development snapshots of GCC prior to 3.0.
8516    case $host_os in
8517      aix4 | aix4.[01] | aix4.[01].*)
8518      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8519           echo ' yes '
8520           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8521        :
8522      else
8523        can_build_shared=no
8524      fi
8525      ;;
8526    esac
8527    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8528    # soname into executable. Probably we can add versioning support to
8529    # collect2, so additional links can be useful in future.
8530    if test "$aix_use_runtimelinking" = yes; then
8531      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8532      # instead of lib<name>.a to let people know that these are not
8533      # typical AIX shared libraries.
8534      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8535    else
8536      # We preserve .a as extension for shared libraries through AIX4.2
8537      # and later when we are not doing run time linking.
8538      library_names_spec='${libname}${release}.a $libname.a'
8539      soname_spec='${libname}${release}${shared_ext}$major'
8540    fi
8541    shlibpath_var=LIBPATH
8542  fi
8543  ;;
8544
8545amigaos*)
8546  library_names_spec='$libname.ixlibrary $libname.a'
8547  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8548  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'
8549  ;;
8550
8551beos*)
8552  library_names_spec='${libname}${shared_ext}'
8553  dynamic_linker="$host_os ld.so"
8554  shlibpath_var=LIBRARY_PATH
8555  ;;
8556
8557bsdi[45]*)
8558  version_type=linux
8559  need_version=no
8560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561  soname_spec='${libname}${release}${shared_ext}$major'
8562  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8563  shlibpath_var=LD_LIBRARY_PATH
8564  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8565  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8566  # the default ld.so.conf also contains /usr/contrib/lib and
8567  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8568  # libtool to hard-code these into programs
8569  ;;
8570
8571cygwin* | mingw* | pw32*)
8572  version_type=windows
8573  shrext_cmds=".dll"
8574  need_version=no
8575  need_lib_prefix=no
8576
8577  case $GCC,$host_os in
8578  yes,cygwin* | yes,mingw* | yes,pw32*)
8579    library_names_spec='$libname.dll.a'
8580    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8581    postinstall_cmds='base_file=`basename \${file}`~
8582      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8583      dldir=$destdir/`dirname \$dlpath`~
8584      test -d \$dldir || mkdir -p \$dldir~
8585      $install_prog $dir/$dlname \$dldir/$dlname~
8586      chmod a+x \$dldir/$dlname'
8587    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8588      dlpath=$dir/\$dldll~
8589       $rm \$dlpath'
8590    shlibpath_overrides_runpath=yes
8591
8592    case $host_os in
8593    cygwin*)
8594      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8595      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8596      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8597      ;;
8598    mingw*)
8599      # MinGW DLLs use traditional 'lib' prefix
8600      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8601      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8603        # It is most probably a Windows format PATH printed by
8604        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8605        # path with ; separators, and with drive letters. We can handle the
8606        # drive letters (cygwin fileutils understands them), so leave them,
8607        # especially as we might pass files found there to a mingw objdump,
8608        # which wouldn't understand a cygwinified path. Ahh.
8609        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8610      else
8611        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8612      fi
8613      ;;
8614    pw32*)
8615      # pw32 DLLs use 'pw' prefix rather than 'lib'
8616      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8617      ;;
8618    esac
8619    ;;
8620
8621  *)
8622    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8623    ;;
8624  esac
8625  dynamic_linker='Win32 ld.exe'
8626  # FIXME: first we should search . and the directory the executable is in
8627  shlibpath_var=PATH
8628  ;;
8629
8630darwin* | rhapsody*)
8631  dynamic_linker="$host_os dyld"
8632  version_type=darwin
8633  need_lib_prefix=no
8634  need_version=no
8635  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8636  soname_spec='${libname}${release}${major}$shared_ext'
8637  shlibpath_overrides_runpath=yes
8638  shlibpath_var=DYLD_LIBRARY_PATH
8639  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8640  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8641  if test "$GCC" = yes; then
8642    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"`
8643  else
8644    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8645  fi
8646  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8647  ;;
8648
8649dgux*)
8650  version_type=linux
8651  need_lib_prefix=no
8652  need_version=no
8653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8654  soname_spec='${libname}${release}${shared_ext}$major'
8655  shlibpath_var=LD_LIBRARY_PATH
8656  ;;
8657
8658freebsd1*)
8659  dynamic_linker=no
8660  ;;
8661
8662kfreebsd*-gnu)
8663  version_type=linux
8664  need_lib_prefix=no
8665  need_version=no
8666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8667  soname_spec='${libname}${release}${shared_ext}$major'
8668  shlibpath_var=LD_LIBRARY_PATH
8669  shlibpath_overrides_runpath=no
8670  hardcode_into_libs=yes
8671  dynamic_linker='GNU ld.so'
8672  ;;
8673
8674freebsd* | dragonfly*)
8675  # DragonFly does not have aout.  When/if they implement a new
8676  # versioning mechanism, adjust this.
8677  if test -x /usr/bin/objformat; then
8678    objformat=`/usr/bin/objformat`
8679  else
8680    case $host_os in
8681    freebsd[123]*) objformat=aout ;;
8682    *) objformat=elf ;;
8683    esac
8684  fi
8685  version_type=freebsd-$objformat
8686  case $version_type in
8687    freebsd-elf*)
8688      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8689      need_version=no
8690      need_lib_prefix=no
8691      ;;
8692    freebsd-*)
8693      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8694      need_version=yes
8695      ;;
8696  esac
8697  shlibpath_var=LD_LIBRARY_PATH
8698  case $host_os in
8699  freebsd2*)
8700    shlibpath_overrides_runpath=yes
8701    ;;
8702  freebsd3.[01]* | freebsdelf3.[01]*)
8703    shlibpath_overrides_runpath=yes
8704    hardcode_into_libs=yes
8705    ;;
8706  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8707  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8708    shlibpath_overrides_runpath=no
8709    hardcode_into_libs=yes
8710    ;;
8711  freebsd*) # from 4.6 on
8712    shlibpath_overrides_runpath=yes
8713    hardcode_into_libs=yes
8714    ;;
8715  esac
8716  ;;
8717
8718gnu*)
8719  version_type=linux
8720  need_lib_prefix=no
8721  need_version=no
8722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8723  soname_spec='${libname}${release}${shared_ext}$major'
8724  shlibpath_var=LD_LIBRARY_PATH
8725  hardcode_into_libs=yes
8726  ;;
8727
8728hpux9* | hpux10* | hpux11*)
8729  # Give a soname corresponding to the major version so that dld.sl refuses to
8730  # link against other versions.
8731  version_type=sunos
8732  need_lib_prefix=no
8733  need_version=no
8734  case $host_cpu in
8735  ia64*)
8736    shrext_cmds='.so'
8737    hardcode_into_libs=yes
8738    dynamic_linker="$host_os dld.so"
8739    shlibpath_var=LD_LIBRARY_PATH
8740    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8742    soname_spec='${libname}${release}${shared_ext}$major'
8743    if test "X$HPUX_IA64_MODE" = X32; then
8744      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8745    else
8746      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8747    fi
8748    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8749    ;;
8750   hppa*64*)
8751     shrext_cmds='.sl'
8752     hardcode_into_libs=yes
8753     dynamic_linker="$host_os dld.sl"
8754     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8755     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8757     soname_spec='${libname}${release}${shared_ext}$major'
8758     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8759     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8760     ;;
8761   *)
8762    shrext_cmds='.sl'
8763    dynamic_linker="$host_os dld.sl"
8764    shlibpath_var=SHLIB_PATH
8765    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8766    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767    soname_spec='${libname}${release}${shared_ext}$major'
8768    ;;
8769  esac
8770  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8771  postinstall_cmds='chmod 555 $lib'
8772  ;;
8773
8774interix3*)
8775  version_type=linux
8776  need_lib_prefix=no
8777  need_version=no
8778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8779  soname_spec='${libname}${release}${shared_ext}$major'
8780  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8781  shlibpath_var=LD_LIBRARY_PATH
8782  shlibpath_overrides_runpath=no
8783  hardcode_into_libs=yes
8784  ;;
8785
8786irix5* | irix6* | nonstopux*)
8787  case $host_os in
8788    nonstopux*) version_type=nonstopux ;;
8789    *)
8790        if test "$lt_cv_prog_gnu_ld" = yes; then
8791                version_type=linux
8792        else
8793                version_type=irix
8794        fi ;;
8795  esac
8796  need_lib_prefix=no
8797  need_version=no
8798  soname_spec='${libname}${release}${shared_ext}$major'
8799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8800  case $host_os in
8801  irix5* | nonstopux*)
8802    libsuff= shlibsuff=
8803    ;;
8804  *)
8805    case $LD in # libtool.m4 will add one of these switches to LD
8806    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8807      libsuff= shlibsuff= libmagic=32-bit;;
8808    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8809      libsuff=32 shlibsuff=N32 libmagic=N32;;
8810    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8811      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8812    *) libsuff= shlibsuff= libmagic=never-match;;
8813    esac
8814    ;;
8815  esac
8816  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8817  shlibpath_overrides_runpath=no
8818  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8819  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8820  hardcode_into_libs=yes
8821  ;;
8822
8823# No shared lib support for Linux oldld, aout, or coff.
8824linux*oldld* | linux*aout* | linux*coff*)
8825  dynamic_linker=no
8826  ;;
8827
8828# This must be Linux ELF.
8829linux*)
8830  version_type=linux
8831  need_lib_prefix=no
8832  need_version=no
8833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834  soname_spec='${libname}${release}${shared_ext}$major'
8835  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8836  shlibpath_var=LD_LIBRARY_PATH
8837  shlibpath_overrides_runpath=no
8838  # This implies no fast_install, which is unacceptable.
8839  # Some rework will be needed to allow for fast_install
8840  # before this can be enabled.
8841  hardcode_into_libs=yes
8842
8843  # Append ld.so.conf contents to the search path
8844  if test -f /etc/ld.so.conf; then
8845    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' ' '`
8846    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8847  fi
8848
8849  # We used to test for /lib/ld.so.1 and disable shared libraries on
8850  # powerpc, because MkLinux only supported shared libraries with the
8851  # GNU dynamic linker.  Since this was broken with cross compilers,
8852  # most powerpc-linux boxes support dynamic linking these days and
8853  # people can always --disable-shared, the test was removed, and we
8854  # assume the GNU/Linux dynamic linker is in use.
8855  dynamic_linker='GNU/Linux ld.so'
8856  ;;
8857
8858knetbsd*-gnu)
8859  version_type=linux
8860  need_lib_prefix=no
8861  need_version=no
8862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8863  soname_spec='${libname}${release}${shared_ext}$major'
8864  shlibpath_var=LD_LIBRARY_PATH
8865  shlibpath_overrides_runpath=no
8866  hardcode_into_libs=yes
8867  dynamic_linker='GNU ld.so'
8868  ;;
8869
8870netbsd*)
8871  version_type=sunos
8872  need_lib_prefix=no
8873  need_version=no
8874  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8875    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8876    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8877    dynamic_linker='NetBSD (a.out) ld.so'
8878  else
8879    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8880    soname_spec='${libname}${release}${shared_ext}$major'
8881    dynamic_linker='NetBSD ld.elf_so'
8882  fi
8883  shlibpath_var=LD_LIBRARY_PATH
8884  shlibpath_overrides_runpath=yes
8885  hardcode_into_libs=yes
8886  ;;
8887
8888newsos6)
8889  version_type=linux
8890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891  shlibpath_var=LD_LIBRARY_PATH
8892  shlibpath_overrides_runpath=yes
8893  ;;
8894
8895nto-qnx*)
8896  version_type=linux
8897  need_lib_prefix=no
8898  need_version=no
8899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900  soname_spec='${libname}${release}${shared_ext}$major'
8901  shlibpath_var=LD_LIBRARY_PATH
8902  shlibpath_overrides_runpath=yes
8903  ;;
8904
8905openbsd*)
8906  version_type=sunos
8907  sys_lib_dlsearch_path_spec="/usr/lib"
8908  need_lib_prefix=no
8909  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8910  case $host_os in
8911    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8912    *)                         need_version=no  ;;
8913  esac
8914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8915  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8916  shlibpath_var=LD_LIBRARY_PATH
8917  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8918    case $host_os in
8919      openbsd2.[89] | openbsd2.[89].*)
8920        shlibpath_overrides_runpath=no
8921        ;;
8922      *)
8923        shlibpath_overrides_runpath=yes
8924        ;;
8925      esac
8926  else
8927    shlibpath_overrides_runpath=yes
8928  fi
8929  ;;
8930
8931os2*)
8932  libname_spec='$name'
8933  shrext_cmds=".dll"
8934  need_lib_prefix=no
8935  library_names_spec='$libname${shared_ext} $libname.a'
8936  dynamic_linker='OS/2 ld.exe'
8937  shlibpath_var=LIBPATH
8938  ;;
8939
8940osf3* | osf4* | osf5*)
8941  version_type=osf
8942  need_lib_prefix=no
8943  need_version=no
8944  soname_spec='${libname}${release}${shared_ext}$major'
8945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8946  shlibpath_var=LD_LIBRARY_PATH
8947  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8948  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8949  ;;
8950
8951solaris*)
8952  version_type=linux
8953  need_lib_prefix=no
8954  need_version=no
8955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8956  soname_spec='${libname}${release}${shared_ext}$major'
8957  shlibpath_var=LD_LIBRARY_PATH
8958  shlibpath_overrides_runpath=yes
8959  hardcode_into_libs=yes
8960  # ldd complains unless libraries are executable
8961  postinstall_cmds='chmod +x $lib'
8962  ;;
8963
8964sunos4*)
8965  version_type=sunos
8966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8967  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8968  shlibpath_var=LD_LIBRARY_PATH
8969  shlibpath_overrides_runpath=yes
8970  if test "$with_gnu_ld" = yes; then
8971    need_lib_prefix=no
8972  fi
8973  need_version=yes
8974  ;;
8975
8976sysv4 | sysv4.3*)
8977  version_type=linux
8978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979  soname_spec='${libname}${release}${shared_ext}$major'
8980  shlibpath_var=LD_LIBRARY_PATH
8981  case $host_vendor in
8982    sni)
8983      shlibpath_overrides_runpath=no
8984      need_lib_prefix=no
8985      export_dynamic_flag_spec='${wl}-Blargedynsym'
8986      runpath_var=LD_RUN_PATH
8987      ;;
8988    siemens)
8989      need_lib_prefix=no
8990      ;;
8991    motorola)
8992      need_lib_prefix=no
8993      need_version=no
8994      shlibpath_overrides_runpath=no
8995      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8996      ;;
8997  esac
8998  ;;
8999
9000sysv4*MP*)
9001  if test -d /usr/nec ;then
9002    version_type=linux
9003    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9004    soname_spec='$libname${shared_ext}.$major'
9005    shlibpath_var=LD_LIBRARY_PATH
9006  fi
9007  ;;
9008
9009sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9010  version_type=freebsd-elf
9011  need_lib_prefix=no
9012  need_version=no
9013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9014  soname_spec='${libname}${release}${shared_ext}$major'
9015  shlibpath_var=LD_LIBRARY_PATH
9016  hardcode_into_libs=yes
9017  if test "$with_gnu_ld" = yes; then
9018    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9019    shlibpath_overrides_runpath=no
9020  else
9021    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9022    shlibpath_overrides_runpath=yes
9023    case $host_os in
9024      sco3.2v5*)
9025        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9026        ;;
9027    esac
9028  fi
9029  sys_lib_dlsearch_path_spec='/usr/lib'
9030  ;;
9031
9032uts4*)
9033  version_type=linux
9034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035  soname_spec='${libname}${release}${shared_ext}$major'
9036  shlibpath_var=LD_LIBRARY_PATH
9037  ;;
9038
9039*)
9040  dynamic_linker=no
9041  ;;
9042esac
9043echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9044echo "${ECHO_T}$dynamic_linker" >&6
9045test "$dynamic_linker" = no && can_build_shared=no
9046
9047variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9048if test "$GCC" = yes; then
9049  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9050fi
9051
9052echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9053echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9054hardcode_action=
9055if test -n "$hardcode_libdir_flag_spec" || \
9056   test -n "$runpath_var" || \
9057   test "X$hardcode_automatic" = "Xyes" ; then
9058
9059  # We can hardcode non-existant directories.
9060  if test "$hardcode_direct" != no &&
9061     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9062     # have to relink, otherwise we might link with an installed library
9063     # when we should be linking with a yet-to-be-installed one
9064     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9065     test "$hardcode_minus_L" != no; then
9066    # Linking always hardcodes the temporary library directory.
9067    hardcode_action=relink
9068  else
9069    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9070    hardcode_action=immediate
9071  fi
9072else
9073  # We cannot hardcode anything, or else we can only hardcode existing
9074  # directories.
9075  hardcode_action=unsupported
9076fi
9077echo "$as_me:$LINENO: result: $hardcode_action" >&5
9078echo "${ECHO_T}$hardcode_action" >&6
9079
9080if test "$hardcode_action" = relink; then
9081  # Fast installation is not supported
9082  enable_fast_install=no
9083elif test "$shlibpath_overrides_runpath" = yes ||
9084     test "$enable_shared" = no; then
9085  # Fast installation is not necessary
9086  enable_fast_install=needless
9087fi
9088
9089striplib=
9090old_striplib=
9091echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9092echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9093if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9094  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9095  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9096  echo "$as_me:$LINENO: result: yes" >&5
9097echo "${ECHO_T}yes" >&6
9098else
9099# FIXME - insert some real tests, host_os isn't really good enough
9100  case $host_os in
9101   darwin*)
9102       if test -n "$STRIP" ; then
9103         striplib="$STRIP -x"
9104         echo "$as_me:$LINENO: result: yes" >&5
9105echo "${ECHO_T}yes" >&6
9106       else
9107  echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
9109fi
9110       ;;
9111   *)
9112  echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
9114    ;;
9115  esac
9116fi
9117
9118if test "x$enable_dlopen" != xyes; then
9119  enable_dlopen=unknown
9120  enable_dlopen_self=unknown
9121  enable_dlopen_self_static=unknown
9122else
9123  lt_cv_dlopen=no
9124  lt_cv_dlopen_libs=
9125
9126  case $host_os in
9127  beos*)
9128    lt_cv_dlopen="load_add_on"
9129    lt_cv_dlopen_libs=
9130    lt_cv_dlopen_self=yes
9131    ;;
9132
9133  mingw* | pw32*)
9134    lt_cv_dlopen="LoadLibrary"
9135    lt_cv_dlopen_libs=
9136   ;;
9137
9138  cygwin*)
9139    lt_cv_dlopen="dlopen"
9140    lt_cv_dlopen_libs=
9141   ;;
9142
9143  darwin*)
9144  # if libdl is installed we need to link against it
9145    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9146echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9147if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9148  echo $ECHO_N "(cached) $ECHO_C" >&6
9149else
9150  ac_check_lib_save_LIBS=$LIBS
9151LIBS="-ldl  $LIBS"
9152cat >conftest.$ac_ext <<_ACEOF
9153/* confdefs.h.  */
9154_ACEOF
9155cat confdefs.h >>conftest.$ac_ext
9156cat >>conftest.$ac_ext <<_ACEOF
9157/* end confdefs.h.  */
9158
9159/* Override any gcc2 internal prototype to avoid an error.  */
9160#ifdef __cplusplus
9161extern "C"
9162#endif
9163/* We use char because int might match the return type of a gcc2
9164   builtin and then its argument prototype would still apply.  */
9165char dlopen ();
9166int
9167main ()
9168{
9169dlopen ();
9170  ;
9171  return 0;
9172}
9173_ACEOF
9174rm -f conftest.$ac_objext conftest$ac_exeext
9175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176  (eval $ac_link) 2>conftest.er1
9177  ac_status=$?
9178  grep -v '^ *+' conftest.er1 >conftest.err
9179  rm -f conftest.er1
9180  cat conftest.err >&5
9181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182  (exit $ac_status); } &&
9183         { ac_try='test -z "$ac_c_werror_flag"
9184                         || test ! -s conftest.err'
9185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186  (eval $ac_try) 2>&5
9187  ac_status=$?
9188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); }; } &&
9190         { ac_try='test -s conftest$ac_exeext'
9191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192  (eval $ac_try) 2>&5
9193  ac_status=$?
9194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195  (exit $ac_status); }; }; then
9196  ac_cv_lib_dl_dlopen=yes
9197else
9198  echo "$as_me: failed program was:" >&5
9199sed 's/^/| /' conftest.$ac_ext >&5
9200
9201ac_cv_lib_dl_dlopen=no
9202fi
9203rm -f conftest.err conftest.$ac_objext \
9204      conftest$ac_exeext conftest.$ac_ext
9205LIBS=$ac_check_lib_save_LIBS
9206fi
9207echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9208echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9209if test $ac_cv_lib_dl_dlopen = yes; then
9210  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9211else
9212
9213    lt_cv_dlopen="dyld"
9214    lt_cv_dlopen_libs=
9215    lt_cv_dlopen_self=yes
9216
9217fi
9218
9219   ;;
9220
9221  *)
9222    echo "$as_me:$LINENO: checking for shl_load" >&5
9223echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9224if test "${ac_cv_func_shl_load+set}" = set; then
9225  echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227  cat >conftest.$ac_ext <<_ACEOF
9228/* confdefs.h.  */
9229_ACEOF
9230cat confdefs.h >>conftest.$ac_ext
9231cat >>conftest.$ac_ext <<_ACEOF
9232/* end confdefs.h.  */
9233/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9234   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9235#define shl_load innocuous_shl_load
9236
9237/* System header to define __stub macros and hopefully few prototypes,
9238    which can conflict with char shl_load (); below.
9239    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9240    <limits.h> exists even on freestanding compilers.  */
9241
9242#ifdef __STDC__
9243# include <limits.h>
9244#else
9245# include <assert.h>
9246#endif
9247
9248#undef shl_load
9249
9250/* Override any gcc2 internal prototype to avoid an error.  */
9251#ifdef __cplusplus
9252extern "C"
9253{
9254#endif
9255/* We use char because int might match the return type of a gcc2
9256   builtin and then its argument prototype would still apply.  */
9257char shl_load ();
9258/* The GNU C library defines this for functions which it implements
9259    to always fail with ENOSYS.  Some functions are actually named
9260    something starting with __ and the normal name is an alias.  */
9261#if defined (__stub_shl_load) || defined (__stub___shl_load)
9262choke me
9263#else
9264char (*f) () = shl_load;
9265#endif
9266#ifdef __cplusplus
9267}
9268#endif
9269
9270int
9271main ()
9272{
9273return f != shl_load;
9274  ;
9275  return 0;
9276}
9277_ACEOF
9278rm -f conftest.$ac_objext conftest$ac_exeext
9279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9280  (eval $ac_link) 2>conftest.er1
9281  ac_status=$?
9282  grep -v '^ *+' conftest.er1 >conftest.err
9283  rm -f conftest.er1
9284  cat conftest.err >&5
9285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286  (exit $ac_status); } &&
9287         { ac_try='test -z "$ac_c_werror_flag"
9288                         || test ! -s conftest.err'
9289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290  (eval $ac_try) 2>&5
9291  ac_status=$?
9292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293  (exit $ac_status); }; } &&
9294         { ac_try='test -s conftest$ac_exeext'
9295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296  (eval $ac_try) 2>&5
9297  ac_status=$?
9298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299  (exit $ac_status); }; }; then
9300  ac_cv_func_shl_load=yes
9301else
9302  echo "$as_me: failed program was:" >&5
9303sed 's/^/| /' conftest.$ac_ext >&5
9304
9305ac_cv_func_shl_load=no
9306fi
9307rm -f conftest.err conftest.$ac_objext \
9308      conftest$ac_exeext conftest.$ac_ext
9309fi
9310echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9311echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9312if test $ac_cv_func_shl_load = yes; then
9313  lt_cv_dlopen="shl_load"
9314else
9315  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9316echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9317if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9318  echo $ECHO_N "(cached) $ECHO_C" >&6
9319else
9320  ac_check_lib_save_LIBS=$LIBS
9321LIBS="-ldld  $LIBS"
9322cat >conftest.$ac_ext <<_ACEOF
9323/* confdefs.h.  */
9324_ACEOF
9325cat confdefs.h >>conftest.$ac_ext
9326cat >>conftest.$ac_ext <<_ACEOF
9327/* end confdefs.h.  */
9328
9329/* Override any gcc2 internal prototype to avoid an error.  */
9330#ifdef __cplusplus
9331extern "C"
9332#endif
9333/* We use char because int might match the return type of a gcc2
9334   builtin and then its argument prototype would still apply.  */
9335char shl_load ();
9336int
9337main ()
9338{
9339shl_load ();
9340  ;
9341  return 0;
9342}
9343_ACEOF
9344rm -f conftest.$ac_objext conftest$ac_exeext
9345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346  (eval $ac_link) 2>conftest.er1
9347  ac_status=$?
9348  grep -v '^ *+' conftest.er1 >conftest.err
9349  rm -f conftest.er1
9350  cat conftest.err >&5
9351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352  (exit $ac_status); } &&
9353         { ac_try='test -z "$ac_c_werror_flag"
9354                         || test ! -s conftest.err'
9355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356  (eval $ac_try) 2>&5
9357  ac_status=$?
9358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359  (exit $ac_status); }; } &&
9360         { ac_try='test -s conftest$ac_exeext'
9361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362  (eval $ac_try) 2>&5
9363  ac_status=$?
9364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365  (exit $ac_status); }; }; then
9366  ac_cv_lib_dld_shl_load=yes
9367else
9368  echo "$as_me: failed program was:" >&5
9369sed 's/^/| /' conftest.$ac_ext >&5
9370
9371ac_cv_lib_dld_shl_load=no
9372fi
9373rm -f conftest.err conftest.$ac_objext \
9374      conftest$ac_exeext conftest.$ac_ext
9375LIBS=$ac_check_lib_save_LIBS
9376fi
9377echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9378echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9379if test $ac_cv_lib_dld_shl_load = yes; then
9380  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9381else
9382  echo "$as_me:$LINENO: checking for dlopen" >&5
9383echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9384if test "${ac_cv_func_dlopen+set}" = set; then
9385  echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387  cat >conftest.$ac_ext <<_ACEOF
9388/* confdefs.h.  */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
9392/* end confdefs.h.  */
9393/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9394   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9395#define dlopen innocuous_dlopen
9396
9397/* System header to define __stub macros and hopefully few prototypes,
9398    which can conflict with char dlopen (); below.
9399    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9400    <limits.h> exists even on freestanding compilers.  */
9401
9402#ifdef __STDC__
9403# include <limits.h>
9404#else
9405# include <assert.h>
9406#endif
9407
9408#undef dlopen
9409
9410/* Override any gcc2 internal prototype to avoid an error.  */
9411#ifdef __cplusplus
9412extern "C"
9413{
9414#endif
9415/* We use char because int might match the return type of a gcc2
9416   builtin and then its argument prototype would still apply.  */
9417char dlopen ();
9418/* The GNU C library defines this for functions which it implements
9419    to always fail with ENOSYS.  Some functions are actually named
9420    something starting with __ and the normal name is an alias.  */
9421#if defined (__stub_dlopen) || defined (__stub___dlopen)
9422choke me
9423#else
9424char (*f) () = dlopen;
9425#endif
9426#ifdef __cplusplus
9427}
9428#endif
9429
9430int
9431main ()
9432{
9433return f != dlopen;
9434  ;
9435  return 0;
9436}
9437_ACEOF
9438rm -f conftest.$ac_objext conftest$ac_exeext
9439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440  (eval $ac_link) 2>conftest.er1
9441  ac_status=$?
9442  grep -v '^ *+' conftest.er1 >conftest.err
9443  rm -f conftest.er1
9444  cat conftest.err >&5
9445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446  (exit $ac_status); } &&
9447         { ac_try='test -z "$ac_c_werror_flag"
9448                         || test ! -s conftest.err'
9449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450  (eval $ac_try) 2>&5
9451  ac_status=$?
9452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453  (exit $ac_status); }; } &&
9454         { ac_try='test -s conftest$ac_exeext'
9455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456  (eval $ac_try) 2>&5
9457  ac_status=$?
9458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459  (exit $ac_status); }; }; then
9460  ac_cv_func_dlopen=yes
9461else
9462  echo "$as_me: failed program was:" >&5
9463sed 's/^/| /' conftest.$ac_ext >&5
9464
9465ac_cv_func_dlopen=no
9466fi
9467rm -f conftest.err conftest.$ac_objext \
9468      conftest$ac_exeext conftest.$ac_ext
9469fi
9470echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9471echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9472if test $ac_cv_func_dlopen = yes; then
9473  lt_cv_dlopen="dlopen"
9474else
9475  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9476echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9477if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9478  echo $ECHO_N "(cached) $ECHO_C" >&6
9479else
9480  ac_check_lib_save_LIBS=$LIBS
9481LIBS="-ldl  $LIBS"
9482cat >conftest.$ac_ext <<_ACEOF
9483/* confdefs.h.  */
9484_ACEOF
9485cat confdefs.h >>conftest.$ac_ext
9486cat >>conftest.$ac_ext <<_ACEOF
9487/* end confdefs.h.  */
9488
9489/* Override any gcc2 internal prototype to avoid an error.  */
9490#ifdef __cplusplus
9491extern "C"
9492#endif
9493/* We use char because int might match the return type of a gcc2
9494   builtin and then its argument prototype would still apply.  */
9495char dlopen ();
9496int
9497main ()
9498{
9499dlopen ();
9500  ;
9501  return 0;
9502}
9503_ACEOF
9504rm -f conftest.$ac_objext conftest$ac_exeext
9505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506  (eval $ac_link) 2>conftest.er1
9507  ac_status=$?
9508  grep -v '^ *+' conftest.er1 >conftest.err
9509  rm -f conftest.er1
9510  cat conftest.err >&5
9511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512  (exit $ac_status); } &&
9513         { ac_try='test -z "$ac_c_werror_flag"
9514                         || test ! -s conftest.err'
9515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516  (eval $ac_try) 2>&5
9517  ac_status=$?
9518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519  (exit $ac_status); }; } &&
9520         { ac_try='test -s conftest$ac_exeext'
9521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522  (eval $ac_try) 2>&5
9523  ac_status=$?
9524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525  (exit $ac_status); }; }; then
9526  ac_cv_lib_dl_dlopen=yes
9527else
9528  echo "$as_me: failed program was:" >&5
9529sed 's/^/| /' conftest.$ac_ext >&5
9530
9531ac_cv_lib_dl_dlopen=no
9532fi
9533rm -f conftest.err conftest.$ac_objext \
9534      conftest$ac_exeext conftest.$ac_ext
9535LIBS=$ac_check_lib_save_LIBS
9536fi
9537echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9538echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9539if test $ac_cv_lib_dl_dlopen = yes; then
9540  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9541else
9542  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9543echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9544if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9545  echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547  ac_check_lib_save_LIBS=$LIBS
9548LIBS="-lsvld  $LIBS"
9549cat >conftest.$ac_ext <<_ACEOF
9550/* confdefs.h.  */
9551_ACEOF
9552cat confdefs.h >>conftest.$ac_ext
9553cat >>conftest.$ac_ext <<_ACEOF
9554/* end confdefs.h.  */
9555
9556/* Override any gcc2 internal prototype to avoid an error.  */
9557#ifdef __cplusplus
9558extern "C"
9559#endif
9560/* We use char because int might match the return type of a gcc2
9561   builtin and then its argument prototype would still apply.  */
9562char dlopen ();
9563int
9564main ()
9565{
9566dlopen ();
9567  ;
9568  return 0;
9569}
9570_ACEOF
9571rm -f conftest.$ac_objext conftest$ac_exeext
9572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573  (eval $ac_link) 2>conftest.er1
9574  ac_status=$?
9575  grep -v '^ *+' conftest.er1 >conftest.err
9576  rm -f conftest.er1
9577  cat conftest.err >&5
9578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579  (exit $ac_status); } &&
9580         { ac_try='test -z "$ac_c_werror_flag"
9581                         || test ! -s conftest.err'
9582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583  (eval $ac_try) 2>&5
9584  ac_status=$?
9585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586  (exit $ac_status); }; } &&
9587         { ac_try='test -s conftest$ac_exeext'
9588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589  (eval $ac_try) 2>&5
9590  ac_status=$?
9591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592  (exit $ac_status); }; }; then
9593  ac_cv_lib_svld_dlopen=yes
9594else
9595  echo "$as_me: failed program was:" >&5
9596sed 's/^/| /' conftest.$ac_ext >&5
9597
9598ac_cv_lib_svld_dlopen=no
9599fi
9600rm -f conftest.err conftest.$ac_objext \
9601      conftest$ac_exeext conftest.$ac_ext
9602LIBS=$ac_check_lib_save_LIBS
9603fi
9604echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9605echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9606if test $ac_cv_lib_svld_dlopen = yes; then
9607  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9608else
9609  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9610echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9611if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9612  echo $ECHO_N "(cached) $ECHO_C" >&6
9613else
9614  ac_check_lib_save_LIBS=$LIBS
9615LIBS="-ldld  $LIBS"
9616cat >conftest.$ac_ext <<_ACEOF
9617/* confdefs.h.  */
9618_ACEOF
9619cat confdefs.h >>conftest.$ac_ext
9620cat >>conftest.$ac_ext <<_ACEOF
9621/* end confdefs.h.  */
9622
9623/* Override any gcc2 internal prototype to avoid an error.  */
9624#ifdef __cplusplus
9625extern "C"
9626#endif
9627/* We use char because int might match the return type of a gcc2
9628   builtin and then its argument prototype would still apply.  */
9629char dld_link ();
9630int
9631main ()
9632{
9633dld_link ();
9634  ;
9635  return 0;
9636}
9637_ACEOF
9638rm -f conftest.$ac_objext conftest$ac_exeext
9639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9640  (eval $ac_link) 2>conftest.er1
9641  ac_status=$?
9642  grep -v '^ *+' conftest.er1 >conftest.err
9643  rm -f conftest.er1
9644  cat conftest.err >&5
9645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646  (exit $ac_status); } &&
9647         { ac_try='test -z "$ac_c_werror_flag"
9648                         || test ! -s conftest.err'
9649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9650  (eval $ac_try) 2>&5
9651  ac_status=$?
9652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653  (exit $ac_status); }; } &&
9654         { ac_try='test -s conftest$ac_exeext'
9655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656  (eval $ac_try) 2>&5
9657  ac_status=$?
9658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659  (exit $ac_status); }; }; then
9660  ac_cv_lib_dld_dld_link=yes
9661else
9662  echo "$as_me: failed program was:" >&5
9663sed 's/^/| /' conftest.$ac_ext >&5
9664
9665ac_cv_lib_dld_dld_link=no
9666fi
9667rm -f conftest.err conftest.$ac_objext \
9668      conftest$ac_exeext conftest.$ac_ext
9669LIBS=$ac_check_lib_save_LIBS
9670fi
9671echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9672echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9673if test $ac_cv_lib_dld_dld_link = yes; then
9674  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9675fi
9676
9677
9678fi
9679
9680
9681fi
9682
9683
9684fi
9685
9686
9687fi
9688
9689
9690fi
9691
9692    ;;
9693  esac
9694
9695  if test "x$lt_cv_dlopen" != xno; then
9696    enable_dlopen=yes
9697  else
9698    enable_dlopen=no
9699  fi
9700
9701  case $lt_cv_dlopen in
9702  dlopen)
9703    save_CPPFLAGS="$CPPFLAGS"
9704    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9705
9706    save_LDFLAGS="$LDFLAGS"
9707    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9708
9709    save_LIBS="$LIBS"
9710    LIBS="$lt_cv_dlopen_libs $LIBS"
9711
9712    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9713echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9714if test "${lt_cv_dlopen_self+set}" = set; then
9715  echo $ECHO_N "(cached) $ECHO_C" >&6
9716else
9717          if test "$cross_compiling" = yes; then :
9718  lt_cv_dlopen_self=cross
9719else
9720  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9721  lt_status=$lt_dlunknown
9722  cat > conftest.$ac_ext <<EOF
9723#line 9723 "configure"
9724#include "confdefs.h"
9725
9726#if HAVE_DLFCN_H
9727#include <dlfcn.h>
9728#endif
9729
9730#include <stdio.h>
9731
9732#ifdef RTLD_GLOBAL
9733#  define LT_DLGLOBAL           RTLD_GLOBAL
9734#else
9735#  ifdef DL_GLOBAL
9736#    define LT_DLGLOBAL         DL_GLOBAL
9737#  else
9738#    define LT_DLGLOBAL         0
9739#  endif
9740#endif
9741
9742/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9743   find out it does not work in some platform. */
9744#ifndef LT_DLLAZY_OR_NOW
9745#  ifdef RTLD_LAZY
9746#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9747#  else
9748#    ifdef DL_LAZY
9749#      define LT_DLLAZY_OR_NOW          DL_LAZY
9750#    else
9751#      ifdef RTLD_NOW
9752#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9753#      else
9754#        ifdef DL_NOW
9755#          define LT_DLLAZY_OR_NOW      DL_NOW
9756#        else
9757#          define LT_DLLAZY_OR_NOW      0
9758#        endif
9759#      endif
9760#    endif
9761#  endif
9762#endif
9763
9764#ifdef __cplusplus
9765extern "C" void exit (int);
9766#endif
9767
9768void fnord() { int i=42;}
9769int main ()
9770{
9771  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9772  int status = $lt_dlunknown;
9773
9774  if (self)
9775    {
9776      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9777      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9778      /* dlclose (self); */
9779    }
9780  else
9781    puts (dlerror ());
9782
9783    exit (status);
9784}
9785EOF
9786  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787  (eval $ac_link) 2>&5
9788  ac_status=$?
9789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9791    (./conftest; exit; ) >&5 2>/dev/null
9792    lt_status=$?
9793    case x$lt_status in
9794      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9795      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9796      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9797    esac
9798  else :
9799    # compilation failed
9800    lt_cv_dlopen_self=no
9801  fi
9802fi
9803rm -fr conftest*
9804
9805
9806fi
9807echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9808echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9809
9810    if test "x$lt_cv_dlopen_self" = xyes; then
9811      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9812      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9813echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9814if test "${lt_cv_dlopen_self_static+set}" = set; then
9815  echo $ECHO_N "(cached) $ECHO_C" >&6
9816else
9817          if test "$cross_compiling" = yes; then :
9818  lt_cv_dlopen_self_static=cross
9819else
9820  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9821  lt_status=$lt_dlunknown
9822  cat > conftest.$ac_ext <<EOF
9823#line 9823 "configure"
9824#include "confdefs.h"
9825
9826#if HAVE_DLFCN_H
9827#include <dlfcn.h>
9828#endif
9829
9830#include <stdio.h>
9831
9832#ifdef RTLD_GLOBAL
9833#  define LT_DLGLOBAL           RTLD_GLOBAL
9834#else
9835#  ifdef DL_GLOBAL
9836#    define LT_DLGLOBAL         DL_GLOBAL
9837#  else
9838#    define LT_DLGLOBAL         0
9839#  endif
9840#endif
9841
9842/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9843   find out it does not work in some platform. */
9844#ifndef LT_DLLAZY_OR_NOW
9845#  ifdef RTLD_LAZY
9846#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9847#  else
9848#    ifdef DL_LAZY
9849#      define LT_DLLAZY_OR_NOW          DL_LAZY
9850#    else
9851#      ifdef RTLD_NOW
9852#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9853#      else
9854#        ifdef DL_NOW
9855#          define LT_DLLAZY_OR_NOW      DL_NOW
9856#        else
9857#          define LT_DLLAZY_OR_NOW      0
9858#        endif
9859#      endif
9860#    endif
9861#  endif
9862#endif
9863
9864#ifdef __cplusplus
9865extern "C" void exit (int);
9866#endif
9867
9868void fnord() { int i=42;}
9869int main ()
9870{
9871  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9872  int status = $lt_dlunknown;
9873
9874  if (self)
9875    {
9876      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9877      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9878      /* dlclose (self); */
9879    }
9880  else
9881    puts (dlerror ());
9882
9883    exit (status);
9884}
9885EOF
9886  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9887  (eval $ac_link) 2>&5
9888  ac_status=$?
9889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9891    (./conftest; exit; ) >&5 2>/dev/null
9892    lt_status=$?
9893    case x$lt_status in
9894      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9895      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9896      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9897    esac
9898  else :
9899    # compilation failed
9900    lt_cv_dlopen_self_static=no
9901  fi
9902fi
9903rm -fr conftest*
9904
9905
9906fi
9907echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9908echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9909    fi
9910
9911    CPPFLAGS="$save_CPPFLAGS"
9912    LDFLAGS="$save_LDFLAGS"
9913    LIBS="$save_LIBS"
9914    ;;
9915  esac
9916
9917  case $lt_cv_dlopen_self in
9918  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9919  *) enable_dlopen_self=unknown ;;
9920  esac
9921
9922  case $lt_cv_dlopen_self_static in
9923  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9924  *) enable_dlopen_self_static=unknown ;;
9925  esac
9926fi
9927
9928
9929# Report which library types will actually be built
9930echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9931echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9932echo "$as_me:$LINENO: result: $can_build_shared" >&5
9933echo "${ECHO_T}$can_build_shared" >&6
9934
9935echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9936echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9937test "$can_build_shared" = "no" && enable_shared=no
9938
9939# On AIX, shared libraries and static libraries use the same namespace, and
9940# are all built from PIC.
9941case $host_os in
9942aix3*)
9943  test "$enable_shared" = yes && enable_static=no
9944  if test -n "$RANLIB"; then
9945    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9946    postinstall_cmds='$RANLIB $lib'
9947  fi
9948  ;;
9949
9950aix4* | aix5*)
9951  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9952    test "$enable_shared" = yes && enable_static=no
9953  fi
9954    ;;
9955esac
9956echo "$as_me:$LINENO: result: $enable_shared" >&5
9957echo "${ECHO_T}$enable_shared" >&6
9958
9959echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9960echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9961# Make sure either enable_shared or enable_static is yes.
9962test "$enable_shared" = yes || enable_static=yes
9963echo "$as_me:$LINENO: result: $enable_static" >&5
9964echo "${ECHO_T}$enable_static" >&6
9965
9966# The else clause should only fire when bootstrapping the
9967# libtool distribution, otherwise you forgot to ship ltmain.sh
9968# with your package, and you will get complaints that there are
9969# no rules to generate ltmain.sh.
9970if test -f "$ltmain"; then
9971  # See if we are running on zsh, and set the options which allow our commands through
9972  # without removal of \ escapes.
9973  if test -n "${ZSH_VERSION+set}" ; then
9974    setopt NO_GLOB_SUBST
9975  fi
9976  # Now quote all the things that may contain metacharacters while being
9977  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9978  # variables and quote the copies for generation of the libtool script.
9979  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9980    SED SHELL STRIP \
9981    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9982    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9983    deplibs_check_method reload_flag reload_cmds need_locks \
9984    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9985    lt_cv_sys_global_symbol_to_c_name_address \
9986    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9987    old_postinstall_cmds old_postuninstall_cmds \
9988    compiler \
9989    CC \
9990    LD \
9991    lt_prog_compiler_wl \
9992    lt_prog_compiler_pic \
9993    lt_prog_compiler_static \
9994    lt_prog_compiler_no_builtin_flag \
9995    export_dynamic_flag_spec \
9996    thread_safe_flag_spec \
9997    whole_archive_flag_spec \
9998    enable_shared_with_static_runtimes \
9999    old_archive_cmds \
10000    old_archive_from_new_cmds \
10001    predep_objects \
10002    postdep_objects \
10003    predeps \
10004    postdeps \
10005    compiler_lib_search_path \
10006    archive_cmds \
10007    archive_expsym_cmds \
10008    postinstall_cmds \
10009    postuninstall_cmds \
10010    old_archive_from_expsyms_cmds \
10011    allow_undefined_flag \
10012    no_undefined_flag \
10013    export_symbols_cmds \
10014    hardcode_libdir_flag_spec \
10015    hardcode_libdir_flag_spec_ld \
10016    hardcode_libdir_separator \
10017    hardcode_automatic \
10018    module_cmds \
10019    module_expsym_cmds \
10020    lt_cv_prog_compiler_c_o \
10021    exclude_expsyms \
10022    include_expsyms; do
10023
10024    case $var in
10025    old_archive_cmds | \
10026    old_archive_from_new_cmds | \
10027    archive_cmds | \
10028    archive_expsym_cmds | \
10029    module_cmds | \
10030    module_expsym_cmds | \
10031    old_archive_from_expsyms_cmds | \
10032    export_symbols_cmds | \
10033    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10034    postinstall_cmds | postuninstall_cmds | \
10035    old_postinstall_cmds | old_postuninstall_cmds | \
10036    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10037      # Double-quote double-evaled strings.
10038      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10039      ;;
10040    *)
10041      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10042      ;;
10043    esac
10044  done
10045
10046  case $lt_echo in
10047  *'\$0 --fallback-echo"')
10048    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10049    ;;
10050  esac
10051
10052cfgfile="${ofile}T"
10053  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10054  $rm -f "$cfgfile"
10055  { echo "$as_me:$LINENO: creating $ofile" >&5
10056echo "$as_me: creating $ofile" >&6;}
10057
10058  cat <<__EOF__ >> "$cfgfile"
10059#! $SHELL
10060
10061# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10062# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10063# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10064#
10065# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10066# Free Software Foundation, Inc.
10067#
10068# This file is part of GNU Libtool:
10069# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10070#
10071# This program is free software; you can redistribute it and/or modify
10072# it under the terms of the GNU General Public License as published by
10073# the Free Software Foundation; either version 2 of the License, or
10074# (at your option) any later version.
10075#
10076# This program is distributed in the hope that it will be useful, but
10077# WITHOUT ANY WARRANTY; without even the implied warranty of
10078# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10079# General Public License for more details.
10080#
10081# You should have received a copy of the GNU General Public License
10082# along with this program; if not, write to the Free Software
10083# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10084#
10085# As a special exception to the GNU General Public License, if you
10086# distribute this file as part of a program that contains a
10087# configuration script generated by Autoconf, you may include it under
10088# the same distribution terms that you use for the rest of that program.
10089
10090# A sed program that does not truncate output.
10091SED=$lt_SED
10092
10093# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10094Xsed="$SED -e 1s/^X//"
10095
10096# The HP-UX ksh and POSIX shell print the target directory to stdout
10097# if CDPATH is set.
10098(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10099
10100# The names of the tagged configurations supported by this script.
10101available_tags=
10102
10103# ### BEGIN LIBTOOL CONFIG
10104
10105# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10106
10107# Shell to use when invoking shell scripts.
10108SHELL=$lt_SHELL
10109
10110# Whether or not to build shared libraries.
10111build_libtool_libs=$enable_shared
10112
10113# Whether or not to build static libraries.
10114build_old_libs=$enable_static
10115
10116# Whether or not to add -lc for building shared libraries.
10117build_libtool_need_lc=$archive_cmds_need_lc
10118
10119# Whether or not to disallow shared libs when runtime libs are static
10120allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10121
10122# Whether or not to optimize for fast installation.
10123fast_install=$enable_fast_install
10124
10125# The host system.
10126host_alias=$host_alias
10127host=$host
10128host_os=$host_os
10129
10130# The build system.
10131build_alias=$build_alias
10132build=$build
10133build_os=$build_os
10134
10135# An echo program that does not interpret backslashes.
10136echo=$lt_echo
10137
10138# The archiver.
10139AR=$lt_AR
10140AR_FLAGS=$lt_AR_FLAGS
10141
10142# A C compiler.
10143LTCC=$lt_LTCC
10144
10145# LTCC compiler flags.
10146LTCFLAGS=$lt_LTCFLAGS
10147
10148# A language-specific compiler.
10149CC=$lt_compiler
10150
10151# Is the compiler the GNU C compiler?
10152with_gcc=$GCC
10153
10154# An ERE matcher.
10155EGREP=$lt_EGREP
10156
10157# The linker used to build libraries.
10158LD=$lt_LD
10159
10160# Whether we need hard or soft links.
10161LN_S=$lt_LN_S
10162
10163# A BSD-compatible nm program.
10164NM=$lt_NM
10165
10166# A symbol stripping program
10167STRIP=$lt_STRIP
10168
10169# Used to examine libraries when file_magic_cmd begins "file"
10170MAGIC_CMD=$MAGIC_CMD
10171
10172# Used on cygwin: DLL creation program.
10173DLLTOOL="$DLLTOOL"
10174
10175# Used on cygwin: object dumper.
10176OBJDUMP="$OBJDUMP"
10177
10178# Used on cygwin: assembler.
10179AS="$AS"
10180
10181# The name of the directory that contains temporary libtool files.
10182objdir=$objdir
10183
10184# How to create reloadable object files.
10185reload_flag=$lt_reload_flag
10186reload_cmds=$lt_reload_cmds
10187
10188# How to pass a linker flag through the compiler.
10189wl=$lt_lt_prog_compiler_wl
10190
10191# Object file suffix (normally "o").
10192objext="$ac_objext"
10193
10194# Old archive suffix (normally "a").
10195libext="$libext"
10196
10197# Shared library suffix (normally ".so").
10198shrext_cmds='$shrext_cmds'
10199
10200# Executable file suffix (normally "").
10201exeext="$exeext"
10202
10203# Additional compiler flags for building library objects.
10204pic_flag=$lt_lt_prog_compiler_pic
10205pic_mode=$pic_mode
10206
10207# What is the maximum length of a command?
10208max_cmd_len=$lt_cv_sys_max_cmd_len
10209
10210# Does compiler simultaneously support -c and -o options?
10211compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10212
10213# Must we lock files when doing compilation?
10214need_locks=$lt_need_locks
10215
10216# Do we need the lib prefix for modules?
10217need_lib_prefix=$need_lib_prefix
10218
10219# Do we need a version for libraries?
10220need_version=$need_version
10221
10222# Whether dlopen is supported.
10223dlopen_support=$enable_dlopen
10224
10225# Whether dlopen of programs is supported.
10226dlopen_self=$enable_dlopen_self
10227
10228# Whether dlopen of statically linked programs is supported.
10229dlopen_self_static=$enable_dlopen_self_static
10230
10231# Compiler flag to prevent dynamic linking.
10232link_static_flag=$lt_lt_prog_compiler_static
10233
10234# Compiler flag to turn off builtin functions.
10235no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10236
10237# Compiler flag to allow reflexive dlopens.
10238export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10239
10240# Compiler flag to generate shared objects directly from archives.
10241whole_archive_flag_spec=$lt_whole_archive_flag_spec
10242
10243# Compiler flag to generate thread-safe objects.
10244thread_safe_flag_spec=$lt_thread_safe_flag_spec
10245
10246# Library versioning type.
10247version_type=$version_type
10248
10249# Format of library name prefix.
10250libname_spec=$lt_libname_spec
10251
10252# List of archive names.  First name is the real one, the rest are links.
10253# The last name is the one that the linker finds with -lNAME.
10254library_names_spec=$lt_library_names_spec
10255
10256# The coded name of the library, if different from the real name.
10257soname_spec=$lt_soname_spec
10258
10259# Commands used to build and install an old-style archive.
10260RANLIB=$lt_RANLIB
10261old_archive_cmds=$lt_old_archive_cmds
10262old_postinstall_cmds=$lt_old_postinstall_cmds
10263old_postuninstall_cmds=$lt_old_postuninstall_cmds
10264
10265# Create an old-style archive from a shared archive.
10266old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10267
10268# Create a temporary old-style archive to link instead of a shared archive.
10269old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10270
10271# Commands used to build and install a shared archive.
10272archive_cmds=$lt_archive_cmds
10273archive_expsym_cmds=$lt_archive_expsym_cmds
10274postinstall_cmds=$lt_postinstall_cmds
10275postuninstall_cmds=$lt_postuninstall_cmds
10276
10277# Commands used to build a loadable module (assumed same as above if empty)
10278module_cmds=$lt_module_cmds
10279module_expsym_cmds=$lt_module_expsym_cmds
10280
10281# Commands to strip libraries.
10282old_striplib=$lt_old_striplib
10283striplib=$lt_striplib
10284
10285# Dependencies to place before the objects being linked to create a
10286# shared library.
10287predep_objects=$lt_predep_objects
10288
10289# Dependencies to place after the objects being linked to create a
10290# shared library.
10291postdep_objects=$lt_postdep_objects
10292
10293# Dependencies to place before the objects being linked to create a
10294# shared library.
10295predeps=$lt_predeps
10296
10297# Dependencies to place after the objects being linked to create a
10298# shared library.
10299postdeps=$lt_postdeps
10300
10301# The library search path used internally by the compiler when linking
10302# a shared library.
10303compiler_lib_search_path=$lt_compiler_lib_search_path
10304
10305# Method to check whether dependent libraries are shared objects.
10306deplibs_check_method=$lt_deplibs_check_method
10307
10308# Command to use when deplibs_check_method == file_magic.
10309file_magic_cmd=$lt_file_magic_cmd
10310
10311# Flag that allows shared libraries with undefined symbols to be built.
10312allow_undefined_flag=$lt_allow_undefined_flag
10313
10314# Flag that forces no undefined symbols.
10315no_undefined_flag=$lt_no_undefined_flag
10316
10317# Commands used to finish a libtool library installation in a directory.
10318finish_cmds=$lt_finish_cmds
10319
10320# Same as above, but a single script fragment to be evaled but not shown.
10321finish_eval=$lt_finish_eval
10322
10323# Take the output of nm and produce a listing of raw symbols and C names.
10324global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10325
10326# Transform the output of nm in a proper C declaration
10327global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10328
10329# Transform the output of nm in a C name address pair
10330global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10331
10332# This is the shared library runtime path variable.
10333runpath_var=$runpath_var
10334
10335# This is the shared library path variable.
10336shlibpath_var=$shlibpath_var
10337
10338# Is shlibpath searched before the hard-coded library search path?
10339shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10340
10341# How to hardcode a shared library path into an executable.
10342hardcode_action=$hardcode_action
10343
10344# Whether we should hardcode library paths into libraries.
10345hardcode_into_libs=$hardcode_into_libs
10346
10347# Flag to hardcode \$libdir into a binary during linking.
10348# This must work even if \$libdir does not exist.
10349hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10350
10351# If ld is used when linking, flag to hardcode \$libdir into
10352# a binary during linking. This must work even if \$libdir does
10353# not exist.
10354hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10355
10356# Whether we need a single -rpath flag with a separated argument.
10357hardcode_libdir_separator=$lt_hardcode_libdir_separator
10358
10359# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10360# resulting binary.
10361hardcode_direct=$hardcode_direct
10362
10363# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10364# resulting binary.
10365hardcode_minus_L=$hardcode_minus_L
10366
10367# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10368# the resulting binary.
10369hardcode_shlibpath_var=$hardcode_shlibpath_var
10370
10371# Set to yes if building a shared library automatically hardcodes DIR into the library
10372# and all subsequent libraries and executables linked against it.
10373hardcode_automatic=$hardcode_automatic
10374
10375# Variables whose values should be saved in libtool wrapper scripts and
10376# restored at relink time.
10377variables_saved_for_relink="$variables_saved_for_relink"
10378
10379# Whether libtool must link a program against all its dependency libraries.
10380link_all_deplibs=$link_all_deplibs
10381
10382# Compile-time system search path for libraries
10383sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10384
10385# Run-time system search path for libraries
10386sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10387
10388# Fix the shell variable \$srcfile for the compiler.
10389fix_srcfile_path="$fix_srcfile_path"
10390
10391# Set to yes if exported symbols are required.
10392always_export_symbols=$always_export_symbols
10393
10394# The commands to list exported symbols.
10395export_symbols_cmds=$lt_export_symbols_cmds
10396
10397# The commands to extract the exported symbol list from a shared archive.
10398extract_expsyms_cmds=$lt_extract_expsyms_cmds
10399
10400# Symbols that should not be listed in the preloaded symbols.
10401exclude_expsyms=$lt_exclude_expsyms
10402
10403# Symbols that must always be exported.
10404include_expsyms=$lt_include_expsyms
10405
10406# ### END LIBTOOL CONFIG
10407
10408__EOF__
10409
10410
10411  case $host_os in
10412  aix3*)
10413    cat <<\EOF >> "$cfgfile"
10414
10415# AIX sometimes has problems with the GCC collect2 program.  For some
10416# reason, if we set the COLLECT_NAMES environment variable, the problems
10417# vanish in a puff of smoke.
10418if test "X${COLLECT_NAMES+set}" != Xset; then
10419  COLLECT_NAMES=
10420  export COLLECT_NAMES
10421fi
10422EOF
10423    ;;
10424  esac
10425
10426  # We use sed instead of cat because bash on DJGPP gets confused if
10427  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10428  # text mode, it properly converts lines to CR/LF.  This bash problem
10429  # is reportedly fixed, but why not run on old versions too?
10430  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10431
10432  mv -f "$cfgfile" "$ofile" || \
10433    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10434  chmod +x "$ofile"
10435
10436else
10437  # If there is no Makefile yet, we rely on a make rule to execute
10438  # `config.status --recheck' to rerun these tests and create the
10439  # libtool script then.
10440  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10441  if test -f "$ltmain_in"; then
10442    test -f Makefile && make "$ltmain"
10443  fi
10444fi
10445
10446
10447ac_ext=c
10448ac_cpp='$CPP $CPPFLAGS'
10449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10451ac_compiler_gnu=$ac_cv_c_compiler_gnu
10452
10453CC="$lt_save_CC"
10454
10455
10456# Check whether --with-tags or --without-tags was given.
10457if test "${with_tags+set}" = set; then
10458  withval="$with_tags"
10459  tagnames="$withval"
10460fi;
10461
10462if test -f "$ltmain" && test -n "$tagnames"; then
10463  if test ! -f "${ofile}"; then
10464    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10465echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10466  fi
10467
10468  if test -z "$LTCC"; then
10469    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10470    if test -z "$LTCC"; then
10471      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10472echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10473    else
10474      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10475echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10476    fi
10477  fi
10478  if test -z "$LTCFLAGS"; then
10479    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10480  fi
10481
10482  # Extract list of available tagged configurations in $ofile.
10483  # Note that this assumes the entire list is on one line.
10484  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10485
10486  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10487  for tagname in $tagnames; do
10488    IFS="$lt_save_ifs"
10489    # Check whether tagname contains only valid characters
10490    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10491    "") ;;
10492    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10493echo "$as_me: error: invalid tag name: $tagname" >&2;}
10494   { (exit 1); exit 1; }; }
10495        ;;
10496    esac
10497
10498    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10499    then
10500      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10501echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10502   { (exit 1); exit 1; }; }
10503    fi
10504
10505    # Update the list of available tags.
10506    if test -n "$tagname"; then
10507      echo appending configuration tag \"$tagname\" to $ofile
10508
10509      case $tagname in
10510      CXX)
10511        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10512            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10513            (test "X$CXX" != "Xg++"))) ; then
10514          ac_ext=cc
10515ac_cpp='$CXXCPP $CPPFLAGS'
10516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10519
10520
10521
10522
10523archive_cmds_need_lc_CXX=no
10524allow_undefined_flag_CXX=
10525always_export_symbols_CXX=no
10526archive_expsym_cmds_CXX=
10527export_dynamic_flag_spec_CXX=
10528hardcode_direct_CXX=no
10529hardcode_libdir_flag_spec_CXX=
10530hardcode_libdir_flag_spec_ld_CXX=
10531hardcode_libdir_separator_CXX=
10532hardcode_minus_L_CXX=no
10533hardcode_shlibpath_var_CXX=unsupported
10534hardcode_automatic_CXX=no
10535module_cmds_CXX=
10536module_expsym_cmds_CXX=
10537link_all_deplibs_CXX=unknown
10538old_archive_cmds_CXX=$old_archive_cmds
10539no_undefined_flag_CXX=
10540whole_archive_flag_spec_CXX=
10541enable_shared_with_static_runtimes_CXX=no
10542
10543# Dependencies to place before and after the object being linked:
10544predep_objects_CXX=
10545postdep_objects_CXX=
10546predeps_CXX=
10547postdeps_CXX=
10548compiler_lib_search_path_CXX=
10549
10550# Source file extension for C++ test sources.
10551ac_ext=cpp
10552
10553# Object file extension for compiled C++ test sources.
10554objext=o
10555objext_CXX=$objext
10556
10557# Code to be used in simple compile tests
10558lt_simple_compile_test_code="int some_variable = 0;\n"
10559
10560# Code to be used in simple link tests
10561lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10562
10563# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10564
10565# If no C compiler was specified, use CC.
10566LTCC=${LTCC-"$CC"}
10567
10568# If no C compiler flags were specified, use CFLAGS.
10569LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10570
10571# Allow CC to be a program name with arguments.
10572compiler=$CC
10573
10574
10575# save warnings/boilerplate of simple test code
10576ac_outfile=conftest.$ac_objext
10577printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10578eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10579_lt_compiler_boilerplate=`cat conftest.err`
10580$rm conftest*
10581
10582ac_outfile=conftest.$ac_objext
10583printf "$lt_simple_link_test_code" >conftest.$ac_ext
10584eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10585_lt_linker_boilerplate=`cat conftest.err`
10586$rm conftest*
10587
10588
10589# Allow CC to be a program name with arguments.
10590lt_save_CC=$CC
10591lt_save_LD=$LD
10592lt_save_GCC=$GCC
10593GCC=$GXX
10594lt_save_with_gnu_ld=$with_gnu_ld
10595lt_save_path_LD=$lt_cv_path_LD
10596if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10597  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10598else
10599  $as_unset lt_cv_prog_gnu_ld
10600fi
10601if test -n "${lt_cv_path_LDCXX+set}"; then
10602  lt_cv_path_LD=$lt_cv_path_LDCXX
10603else
10604  $as_unset lt_cv_path_LD
10605fi
10606test -z "${LDCXX+set}" || LD=$LDCXX
10607CC=${CXX-"c++"}
10608compiler=$CC
10609compiler_CXX=$CC
10610for cc_temp in $compiler""; do
10611  case $cc_temp in
10612    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10613    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10614    \-*) ;;
10615    *) break;;
10616  esac
10617done
10618cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10619
10620
10621# We don't want -fno-exception wen compiling C++ code, so set the
10622# no_builtin_flag separately
10623if test "$GXX" = yes; then
10624  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10625else
10626  lt_prog_compiler_no_builtin_flag_CXX=
10627fi
10628
10629if test "$GXX" = yes; then
10630  # Set up default GNU C++ configuration
10631
10632
10633# Check whether --with-gnu-ld or --without-gnu-ld was given.
10634if test "${with_gnu_ld+set}" = set; then
10635  withval="$with_gnu_ld"
10636  test "$withval" = no || with_gnu_ld=yes
10637else
10638  with_gnu_ld=no
10639fi;
10640ac_prog=ld
10641if test "$GCC" = yes; then
10642  # Check if gcc -print-prog-name=ld gives a path.
10643  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10644echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10645  case $host in
10646  *-*-mingw*)
10647    # gcc leaves a trailing carriage return which upsets mingw
10648    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10649  *)
10650    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10651  esac
10652  case $ac_prog in
10653    # Accept absolute paths.
10654    [\\/]* | ?:[\\/]*)
10655      re_direlt='/[^/][^/]*/\.\./'
10656      # Canonicalize the pathname of ld
10657      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10658      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10659        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10660      done
10661      test -z "$LD" && LD="$ac_prog"
10662      ;;
10663  "")
10664    # If it fails, then pretend we aren't using GCC.
10665    ac_prog=ld
10666    ;;
10667  *)
10668    # If it is relative, then search for the first ld in PATH.
10669    with_gnu_ld=unknown
10670    ;;
10671  esac
10672elif test "$with_gnu_ld" = yes; then
10673  echo "$as_me:$LINENO: checking for GNU ld" >&5
10674echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10675else
10676  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10677echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10678fi
10679if test "${lt_cv_path_LD+set}" = set; then
10680  echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682  if test -z "$LD"; then
10683  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10684  for ac_dir in $PATH; do
10685    IFS="$lt_save_ifs"
10686    test -z "$ac_dir" && ac_dir=.
10687    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10688      lt_cv_path_LD="$ac_dir/$ac_prog"
10689      # Check to see if the program is GNU ld.  I'd rather use --version,
10690      # but apparently some variants of GNU ld only accept -v.
10691      # Break only if it was the GNU/non-GNU ld that we prefer.
10692      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10693      *GNU* | *'with BFD'*)
10694        test "$with_gnu_ld" != no && break
10695        ;;
10696      *)
10697        test "$with_gnu_ld" != yes && break
10698        ;;
10699      esac
10700    fi
10701  done
10702  IFS="$lt_save_ifs"
10703else
10704  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10705fi
10706fi
10707
10708LD="$lt_cv_path_LD"
10709if test -n "$LD"; then
10710  echo "$as_me:$LINENO: result: $LD" >&5
10711echo "${ECHO_T}$LD" >&6
10712else
10713  echo "$as_me:$LINENO: result: no" >&5
10714echo "${ECHO_T}no" >&6
10715fi
10716test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10717echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10718   { (exit 1); exit 1; }; }
10719echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10720echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10721if test "${lt_cv_prog_gnu_ld+set}" = set; then
10722  echo $ECHO_N "(cached) $ECHO_C" >&6
10723else
10724  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10725case `$LD -v 2>&1 </dev/null` in
10726*GNU* | *'with BFD'*)
10727  lt_cv_prog_gnu_ld=yes
10728  ;;
10729*)
10730  lt_cv_prog_gnu_ld=no
10731  ;;
10732esac
10733fi
10734echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10735echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10736with_gnu_ld=$lt_cv_prog_gnu_ld
10737
10738
10739
10740  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10741  # archiving commands below assume that GNU ld is being used.
10742  if test "$with_gnu_ld" = yes; then
10743    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10744    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'
10745
10746    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10747    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10748
10749    # If archive_cmds runs LD, not CC, wlarc should be empty
10750    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10751    #     investigate it a little bit more. (MM)
10752    wlarc='${wl}'
10753
10754    # ancient GNU ld didn't support --whole-archive et. al.
10755    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10756        grep 'no-whole-archive' > /dev/null; then
10757      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10758    else
10759      whole_archive_flag_spec_CXX=
10760    fi
10761  else
10762    with_gnu_ld=no
10763    wlarc=
10764
10765    # A generic and very simple default shared library creation
10766    # command for GNU C++ for the case where it uses the native
10767    # linker, instead of GNU ld.  If possible, this setting should
10768    # overridden to take advantage of the native linker features on
10769    # the platform it is being used on.
10770    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10771  fi
10772
10773  # Commands to make compiler produce verbose output that lists
10774  # what "hidden" libraries, object files and flags are used when
10775  # linking a shared library.
10776  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10777
10778else
10779  GXX=no
10780  with_gnu_ld=no
10781  wlarc=
10782fi
10783
10784# PORTME: fill in a description of your system's C++ link characteristics
10785echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10786echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10787ld_shlibs_CXX=yes
10788case $host_os in
10789  aix3*)
10790    # FIXME: insert proper C++ library support
10791    ld_shlibs_CXX=no
10792    ;;
10793  aix4* | aix5*)
10794    if test "$host_cpu" = ia64; then
10795      # On IA64, the linker does run time linking by default, so we don't
10796      # have to do anything special.
10797      aix_use_runtimelinking=no
10798      exp_sym_flag='-Bexport'
10799      no_entry_flag=""
10800    else
10801      aix_use_runtimelinking=no
10802
10803      # Test if we are trying to use run time linking or normal
10804      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10805      # need to do runtime linking.
10806      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10807        for ld_flag in $LDFLAGS; do
10808          case $ld_flag in
10809          *-brtl*)
10810            aix_use_runtimelinking=yes
10811            break
10812            ;;
10813          esac
10814        done
10815        ;;
10816      esac
10817
10818      exp_sym_flag='-bexport'
10819      no_entry_fl