source: ThirdParty/Lapack/stable/1.1/configure @ 1528

Last change on this file since 1528 was 1528, checked in by stefan, 11 years ago

restoring stable/1.1

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