source: ThirdParty/Lapack/branches/BSP/trunk/configure @ 510

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

suppress warning messages for AIX compilers

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