source: ThirdParty/Lapack/stable/1.0/configure @ 1256

Last change on this file since 1256 was 1256, checked in by andreasw, 11 years ago

synchronize staable/1.0 with trunk rev 1255

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