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

Last change on this file since 575 was 575, checked in by andreasw, 13 years ago

restoring stable/1.0

  • Property svn:executable set to *
File size: 819.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 1.0stable.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='1.0stable'
433PACKAGE_STRING='ThirdPartyLapack 1.0stable'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE COIN_BUILD_LAPACK_TRUE COIN_BUILD_LAPACK_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyLapack 1.0stable to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyLapack 1.0stable:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-lapack compile this project (Lapack) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link. Default
1078                          when mentioned: mingw. Default when not mentioned:
1079                          disabled.
1080  --enable-static[=PKGS]
1081                          build static libraries [default=no]
1082  --disable-dependency-tracking  speeds up one-time build
1083  --enable-dependency-tracking   do not reject slow dependency extractors
1084  --enable-maintainer-mode  enable make rules and dependencies not useful
1085                          (and sometimes confusing) to the casual installer
1086  --enable-shared[=PKGS]
1087                          build shared libraries [default=yes]
1088  --enable-fast-install[=PKGS]
1089                          optimize for fast installation [default=yes]
1090  --disable-libtool-lock  avoid locking (might break parallel builds)
1091
1092Optional Packages:
1093  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1094  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1095  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1096  --with-lapack-checklevel
1097                          specify the sanity check level for project Lapack
1098  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1099  --with-pic              try to use only PIC/non-PIC objects [default=use
1100                          both]
1101  --with-tags[=TAGS]
1102                          include additional configurations [automatic]
1103  --with-blas             specify BLAS library (or BUILD for compilation)
1104  --with-lapack           specify LAPACK library (or BUILD for compilation)
1105
1106Some influential environment variables:
1107  CDEFS       Additional -D flags to be used when compiling C code.
1108  ADD_CFLAGS  Additional C compiler options
1109  DBG_CFLAGS  Debug C compiler options
1110  OPT_CFLAGS  Optimize C compiler options
1111  CC          C compiler command
1112  CFLAGS      C compiler flags
1113  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1114              nonstandard directory <lib dir>
1115  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116              headers in a nonstandard directory <include dir>
1117  MPICC       C MPI Compiler
1118  ADD_FFLAGS  Additional Fortran compiler options
1119  DBG_FFLAGS  Debug Fortran compiler options
1120  OPT_FFLAGS  Optimize Fortran compiler options
1121  F77         Fortran 77 compiler command
1122  FFLAGS      Fortran 77 compiler flags
1123  MPIF77      Fortran MPI Compiler
1124  CPP         C preprocessor
1125  CXX         C++ compiler command
1126  CXXFLAGS    C++ compiler flags
1127  CXXCPP      C++ preprocessor
1128
1129Use these variables to override the choices made by `configure' or to help
1130it to find libraries and programs with nonstandard names/locations.
1131
1132Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1133_ACEOF
1134fi
1135
1136if test "$ac_init_help" = "recursive"; then
1137  # If there are subdirs, report their specific --help.
1138  ac_popdir=`pwd`
1139  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1140    test -d $ac_dir || continue
1141    ac_builddir=.
1142
1143if test "$ac_dir" != .; then
1144  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1145  # A "../" for each directory in $ac_dir_suffix.
1146  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1147else
1148  ac_dir_suffix= ac_top_builddir=
1149fi
1150
1151case $srcdir in
1152  .)  # No --srcdir option.  We are building in place.
1153    ac_srcdir=.
1154    if test -z "$ac_top_builddir"; then
1155       ac_top_srcdir=.
1156    else
1157       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1158    fi ;;
1159  [\\/]* | ?:[\\/]* )  # Absolute path.
1160    ac_srcdir=$srcdir$ac_dir_suffix;
1161    ac_top_srcdir=$srcdir ;;
1162  *) # Relative path.
1163    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1164    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1165esac
1166
1167# Do not use `cd foo && pwd` to compute absolute paths, because
1168# the directories may not exist.
1169case `pwd` in
1170.) ac_abs_builddir="$ac_dir";;
1171*)
1172  case "$ac_dir" in
1173  .) ac_abs_builddir=`pwd`;;
1174  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1175  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1176  esac;;
1177esac
1178case $ac_abs_builddir in
1179.) ac_abs_top_builddir=${ac_top_builddir}.;;
1180*)
1181  case ${ac_top_builddir}. in
1182  .) ac_abs_top_builddir=$ac_abs_builddir;;
1183  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1184  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1185  esac;;
1186esac
1187case $ac_abs_builddir in
1188.) ac_abs_srcdir=$ac_srcdir;;
1189*)
1190  case $ac_srcdir in
1191  .) ac_abs_srcdir=$ac_abs_builddir;;
1192  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1193  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1194  esac;;
1195esac
1196case $ac_abs_builddir in
1197.) ac_abs_top_srcdir=$ac_top_srcdir;;
1198*)
1199  case $ac_top_srcdir in
1200  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1201  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1202  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1203  esac;;
1204esac
1205
1206    cd $ac_dir
1207    # Check for guested configure; otherwise get Cygnus style configure.
1208    if test -f $ac_srcdir/configure.gnu; then
1209      echo
1210      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1211    elif test -f $ac_srcdir/configure; then
1212      echo
1213      $SHELL $ac_srcdir/configure  --help=recursive
1214    elif test -f $ac_srcdir/configure.ac ||
1215           test -f $ac_srcdir/configure.in; then
1216      echo
1217      $ac_configure --help
1218    else
1219      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1220    fi
1221    cd $ac_popdir
1222  done
1223fi
1224
1225test -n "$ac_init_help" && exit 0
1226if $ac_init_version; then
1227  cat <<\_ACEOF
1228ThirdPartyLapack configure 1.0stable
1229generated by GNU Autoconf 2.59
1230
1231Copyright (C) 2003 Free Software Foundation, Inc.
1232This configure script is free software; the Free Software Foundation
1233gives unlimited permission to copy, distribute and modify it.
1234
1235
1236Copyright 2006 International Business Machines and others.
1237All Rights Reserved.
1238This file is part of the open source package Coin which is distributed
1239under the Common Public License.
1240_ACEOF
1241  exit 0
1242fi
1243exec 5>config.log
1244cat >&5 <<_ACEOF
1245This file contains any messages produced by compilers while
1246running configure, to aid debugging if configure makes a mistake.
1247
1248It was created by ThirdPartyLapack $as_me 1.0stable, which was
1249generated by GNU Autoconf 2.59.  Invocation command line was
1250
1251  $ $0 $@
1252
1253_ACEOF
1254{
1255cat <<_ASUNAME
1256## --------- ##
1257## Platform. ##
1258## --------- ##
1259
1260hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1261uname -m = `(uname -m) 2>/dev/null || echo unknown`
1262uname -r = `(uname -r) 2>/dev/null || echo unknown`
1263uname -s = `(uname -s) 2>/dev/null || echo unknown`
1264uname -v = `(uname -v) 2>/dev/null || echo unknown`
1265
1266/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1267/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1268
1269/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1270/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1271/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1272hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1273/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1274/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1275/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1276
1277_ASUNAME
1278
1279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1280for as_dir in $PATH
1281do
1282  IFS=$as_save_IFS
1283  test -z "$as_dir" && as_dir=.
1284  echo "PATH: $as_dir"
1285done
1286
1287} >&5
1288
1289cat >&5 <<_ACEOF
1290
1291
1292## ----------- ##
1293## Core tests. ##
1294## ----------- ##
1295
1296_ACEOF
1297
1298
1299# Keep a trace of the command line.
1300# Strip out --no-create and --no-recursion so they do not pile up.
1301# Strip out --silent because we don't want to record it for future runs.
1302# Also quote any args containing shell meta-characters.
1303# Make two passes to allow for proper duplicate-argument suppression.
1304ac_configure_args=
1305ac_configure_args0=
1306ac_configure_args1=
1307ac_sep=
1308ac_must_keep_next=false
1309for ac_pass in 1 2
1310do
1311  for ac_arg
1312  do
1313    case $ac_arg in
1314    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1315    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316    | -silent | --silent | --silen | --sile | --sil)
1317      continue ;;
1318    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1320    esac
1321    case $ac_pass in
1322    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1323    2)
1324      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1325      if test $ac_must_keep_next = true; then
1326        ac_must_keep_next=false # Got value, back to normal.
1327      else
1328        case $ac_arg in
1329          *=* | --config-cache | -C | -disable-* | --disable-* \
1330          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1331          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1332          | -with-* | --with-* | -without-* | --without-* | --x)
1333            case "$ac_configure_args0 " in
1334              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1335            esac
1336            ;;
1337          -* ) ac_must_keep_next=true ;;
1338        esac
1339      fi
1340      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1341      # Get rid of the leading space.
1342      ac_sep=" "
1343      ;;
1344    esac
1345  done
1346done
1347$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1348$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1349
1350# When interrupted or exit'd, cleanup temporary files, and complete
1351# config.log.  We remove comments because anyway the quotes in there
1352# would cause problems or look ugly.
1353# WARNING: Be sure not to use single quotes in there, as some shells,
1354# such as our DU 5.0 friend, will then `close' the trap.
1355trap 'exit_status=$?
1356  # Save into config.log some information that might help in debugging.
1357  {
1358    echo
1359
1360    cat <<\_ASBOX
1361## ---------------- ##
1362## Cache variables. ##
1363## ---------------- ##
1364_ASBOX
1365    echo
1366    # The following way of writing the cache mishandles newlines in values,
1367{
1368  (set) 2>&1 |
1369    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1370    *ac_space=\ *)
1371      sed -n \
1372        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1373          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1374      ;;
1375    *)
1376      sed -n \
1377        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1378      ;;
1379    esac;
1380}
1381    echo
1382
1383    cat <<\_ASBOX
1384## ----------------- ##
1385## Output variables. ##
1386## ----------------- ##
1387_ASBOX
1388    echo
1389    for ac_var in $ac_subst_vars
1390    do
1391      eval ac_val=$`echo $ac_var`
1392      echo "$ac_var='"'"'$ac_val'"'"'"
1393    done | sort
1394    echo
1395
1396    if test -n "$ac_subst_files"; then
1397      cat <<\_ASBOX
1398## ------------- ##
1399## Output files. ##
1400## ------------- ##
1401_ASBOX
1402      echo
1403      for ac_var in $ac_subst_files
1404      do
1405        eval ac_val=$`echo $ac_var`
1406        echo "$ac_var='"'"'$ac_val'"'"'"
1407      done | sort
1408      echo
1409    fi
1410
1411    if test -s confdefs.h; then
1412      cat <<\_ASBOX
1413## ----------- ##
1414## confdefs.h. ##
1415## ----------- ##
1416_ASBOX
1417      echo
1418      sed "/^$/d" confdefs.h | sort
1419      echo
1420    fi
1421    test "$ac_signal" != 0 &&
1422      echo "$as_me: caught signal $ac_signal"
1423    echo "$as_me: exit $exit_status"
1424  } >&5
1425  rm -f core *.core &&
1426  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1427    exit $exit_status
1428     ' 0
1429for ac_signal in 1 2 13 15; do
1430  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1431done
1432ac_signal=0
1433
1434# confdefs.h avoids OS command line length limits that DEFS can exceed.
1435rm -rf conftest* confdefs.h
1436# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1437echo >confdefs.h
1438
1439# Predefined preprocessor variables.
1440
1441cat >>confdefs.h <<_ACEOF
1442#define PACKAGE_NAME "$PACKAGE_NAME"
1443_ACEOF
1444
1445
1446cat >>confdefs.h <<_ACEOF
1447#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1448_ACEOF
1449
1450
1451cat >>confdefs.h <<_ACEOF
1452#define PACKAGE_VERSION "$PACKAGE_VERSION"
1453_ACEOF
1454
1455
1456cat >>confdefs.h <<_ACEOF
1457#define PACKAGE_STRING "$PACKAGE_STRING"
1458_ACEOF
1459
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1463_ACEOF
1464
1465
1466# Let the site file select an alternate cache file if it wants to.
1467# Prefer explicitly selected file to automatically selected ones.
1468if test -z "$CONFIG_SITE"; then
1469  if test "x$prefix" != xNONE; then
1470    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1471  else
1472    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1473  fi
1474fi
1475for ac_site_file in $CONFIG_SITE; do
1476  if test -r "$ac_site_file"; then
1477    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1478echo "$as_me: loading site script $ac_site_file" >&6;}
1479    sed 's/^/| /' "$ac_site_file" >&5
1480    . "$ac_site_file"
1481  fi
1482done
1483
1484if test -r "$cache_file"; then
1485  # Some versions of bash will fail to source /dev/null (special
1486  # files actually), so we avoid doing that.
1487  if test -f "$cache_file"; then
1488    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1489echo "$as_me: loading cache $cache_file" >&6;}
1490    case $cache_file in
1491      [\\/]* | ?:[\\/]* ) . $cache_file;;
1492      *)                      . ./$cache_file;;
1493    esac
1494  fi
1495else
1496  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1497echo "$as_me: creating cache $cache_file" >&6;}
1498  >$cache_file
1499fi
1500
1501# Check that the precious variables saved in the cache have kept the same
1502# value.
1503ac_cache_corrupted=false
1504for ac_var in `(set) 2>&1 |
1505               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1506  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1507  eval ac_new_set=\$ac_env_${ac_var}_set
1508  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1509  eval ac_new_val="\$ac_env_${ac_var}_value"
1510  case $ac_old_set,$ac_new_set in
1511    set,)
1512      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1513echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1514      ac_cache_corrupted=: ;;
1515    ,set)
1516      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1517echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1518      ac_cache_corrupted=: ;;
1519    ,);;
1520    *)
1521      if test "x$ac_old_val" != "x$ac_new_val"; then
1522        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1523echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1524        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1525echo "$as_me:   former value:  $ac_old_val" >&2;}
1526        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1527echo "$as_me:   current value: $ac_new_val" >&2;}
1528        ac_cache_corrupted=:
1529      fi;;
1530  esac
1531  # Pass precious variables to config.status.
1532  if test "$ac_new_set" = set; then
1533    case $ac_new_val in
1534    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1535      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1536    *) ac_arg=$ac_var=$ac_new_val ;;
1537    esac
1538    case " $ac_configure_args " in
1539      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1540      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1541    esac
1542  fi
1543done
1544if $ac_cache_corrupted; then
1545  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1546echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1547  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1548echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1549   { (exit 1); exit 1; }; }
1550fi
1551
1552ac_ext=c
1553ac_cpp='$CPP $CPPFLAGS'
1554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1556ac_compiler_gnu=$ac_cv_c_compiler_gnu
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587# List one file in the package so that the configure script can test
1588# whether the package is actually there
1589
1590
1591# Where should everything be installed by default?  Here, we want it
1592# to be installed directly in 'bin', 'lib', 'include' subdirectories
1593# of the directory where configure is run.  The default would be
1594# /usr/local.
1595
1596
1597# Initialize the ADDLIBS variable
1598ADDLIBS="-lm $LIBS"
1599
1600
1601# Initialize the FADDLIBS variable (which is to be used with a fortran
1602# compiler and will not include FLIBS)
1603FADDLIBS="$LIBS"
1604
1605
1606# A useful makefile conditional that is always false
1607
1608
1609if false; then
1610  ALWAYS_FALSE_TRUE=
1611  ALWAYS_FALSE_FALSE='#'
1612else
1613  ALWAYS_FALSE_TRUE='#'
1614  ALWAYS_FALSE_FALSE=
1615fi
1616
1617
1618# We set the following variable so that we know later in AC_COIN_FINALIZE
1619# that we are in a project main directory
1620coin_projectdir=yes
1621
1622
1623#############################################################################
1624#                         Standard build tool stuff                         #
1625#############################################################################
1626
1627# Get the system type
1628ac_aux_dir=
1629for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1630  if test -f $ac_dir/install-sh; then
1631    ac_aux_dir=$ac_dir
1632    ac_install_sh="$ac_aux_dir/install-sh -c"
1633    break
1634  elif test -f $ac_dir/install.sh; then
1635    ac_aux_dir=$ac_dir
1636    ac_install_sh="$ac_aux_dir/install.sh -c"
1637    break
1638  elif test -f $ac_dir/shtool; then
1639    ac_aux_dir=$ac_dir
1640    ac_install_sh="$ac_aux_dir/shtool install -c"
1641    break
1642  fi
1643done
1644if test -z "$ac_aux_dir"; then
1645  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1646echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1647   { (exit 1); exit 1; }; }
1648fi
1649ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1650ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1651ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1652
1653# Make sure we can run config.sub.
1654$ac_config_sub sun4 >/dev/null 2>&1 ||
1655  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1656echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1657   { (exit 1); exit 1; }; }
1658
1659echo "$as_me:$LINENO: checking build system type" >&5
1660echo $ECHO_N "checking build system type... $ECHO_C" >&6
1661if test "${ac_cv_build+set}" = set; then
1662  echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664  ac_cv_build_alias=$build_alias
1665test -z "$ac_cv_build_alias" &&
1666  ac_cv_build_alias=`$ac_config_guess`
1667test -z "$ac_cv_build_alias" &&
1668  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1669echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1670   { (exit 1); exit 1; }; }
1671ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1672  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1673echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1674   { (exit 1); exit 1; }; }
1675
1676fi
1677echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1678echo "${ECHO_T}$ac_cv_build" >&6
1679build=$ac_cv_build
1680build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685
1686#turn off warnings and pedantic mode since they could make trouble on some platforms,
1687#and we couldn't fix them anyway
1688coin_skip_warn_fflags=yes
1689
1690# Check if user wants to produce debugging code
1691
1692echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1693echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1694
1695# Check whether --enable-debug or --disable-debug was given.
1696if test "${enable_debug+set}" = set; then
1697  enableval="$enable_debug"
1698  case "${enableval}" in
1699   yes) coin_debug_compile=true
1700        if test "${enable_shared+set}" = set; then :; else
1701          enable_shared=no
1702        fi
1703        ;;
1704   no)  coin_debug_compile=false
1705        ;;
1706   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1707echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1708   { (exit 1); exit 1; }; }
1709        ;;
1710esac
1711else
1712  coin_debug_compile=false
1713fi;
1714
1715# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1716if test "${enable_debug_lapack+set}" = set; then
1717  enableval="$enable_debug_lapack"
1718  case "${enableval}" in
1719    yes) coin_debug_compile=true
1720         enable_shared=no
1721         ;;
1722    no)  coin_debug_compile=false
1723         ;;
1724    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1725echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1726   { (exit 1); exit 1; }; }
1727         ;;
1728 esac
1729else
1730  :
1731fi;
1732
1733 # m4_ifvaln([Lapack],
1734
1735if test $coin_debug_compile = true; then
1736  echo "$as_me:$LINENO: result: yes" >&5
1737echo "${ECHO_T}yes" >&6
1738else
1739  echo "$as_me:$LINENO: result: no" >&5
1740echo "${ECHO_T}no" >&6
1741fi
1742
1743
1744# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1745if test "${with_lapack_verbosity+set}" = set; then
1746  withval="$with_lapack_verbosity"
1747  if test "$withval" = yes; then
1748                withval=1
1749              fi
1750              coin_lapack_verbosity=$withval
1751else
1752  coin_lapack_verbosity=0
1753fi;
1754
1755cat >>confdefs.h <<_ACEOF
1756#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1757_ACEOF
1758
1759
1760
1761# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1762if test "${with_lapack_checklevel+set}" = set; then
1763  withval="$with_lapack_checklevel"
1764  if test "$withval" = yes; then
1765                withval=1
1766              fi
1767              coin_lapack_checklevel=$withval
1768else
1769  coin_lapack_checklevel=0
1770fi;
1771
1772cat >>confdefs.h <<_ACEOF
1773#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1774_ACEOF
1775
1776
1777# We use the following variable to have a string with the upper case
1778# version of the project name
1779COIN_PRJCT=LAPACK
1780
1781
1782 # m4_ifvaln([Lapack],
1783
1784
1785
1786# Get the name of the Fortran compiler and appropriate compiler options
1787case $build in
1788  *-mingw*)
1789    if test "${LD+set}" = set; then :; else
1790      LD=link
1791    fi
1792    ;;
1793 esac
1794 case $enable_doscompile in
1795   msvc)
1796     if test "x${LD+set}" = xset; then :; else
1797       LD=link
1798     fi
1799     ;;
1800 esac
1801
1802
1803 # Check whether --enable-doscompile or --disable-doscompile was given.
1804if test "${enable_doscompile+set}" = set; then
1805  enableval="$enable_doscompile"
1806  if test "$enable_doscompile" != no; then
1807     case $build in
1808       *-cygwin* | *-mingw*) ;;
1809       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1810echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1811   { (exit 1); exit 1; }; } ;;
1812     esac
1813   fi
1814else
1815  enable_doscompile=no
1816fi;
1817 case "$enable_doscompile" in
1818   mingw)
1819     case $build in
1820       *-mingw*) enable_doscompile=no ;;
1821     esac
1822     ;;
1823   msvc|no) ;;
1824   yes) enable_doscompile=mingw ;;
1825   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1826                    Try configure --help=recursive." >&5
1827echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1828                    Try configure --help=recursive." >&2;}
1829   { (exit 1); exit 1; }; }
1830      ;;
1831  esac
1832  if test "$enable_doscompile" != no ; then
1833    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1834echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1835  fi
1836
1837
1838
1839
1840ac_ext=c
1841ac_cpp='$CPP $CPPFLAGS'
1842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1844ac_compiler_gnu=$ac_cv_c_compiler_gnu
1845
1846
1847# For consistency, we set the C compiler to the same value of the C++
1848# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1849if test x"$CXX" != x; then
1850  case "$CXX" in
1851    cl* | */cl* | CL* | */CL*)
1852      if test x"$CC" = x; then
1853        CC="$CXX"
1854        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1855echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1856      fi
1857      ;;
1858  esac
1859fi
1860
1861
1862
1863
1864
1865
1866coin_has_cc=yes
1867
1868save_cflags="$CFLAGS"
1869# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1870# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1871# is likely to be a non-functional shell. But many installations will have
1872# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1873case $build in
1874  *-cygwin* | *-mingw*)
1875             if test "$enable_doscompile" = msvc ; then
1876               comps="cl"
1877             else
1878               comps="gcc cl"
1879             fi ;;
1880  sparc-sun-solaris*)
1881             comps="cc xlc gcc pgcc icc" ;;
1882  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1883  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1884esac
1885
1886# We delete the cached value, since the test might not have been
1887# performed with our choice of compilers earlier
1888$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1889# AC_MSG_NOTICE([C compiler candidates: $comps])
1890ac_ext=c
1891ac_cpp='$CPP $CPPFLAGS'
1892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894ac_compiler_gnu=$ac_cv_c_compiler_gnu
1895if test -n "$ac_tool_prefix"; then
1896  for ac_prog in $comps
1897  do
1898    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1900echo "$as_me:$LINENO: checking for $ac_word" >&5
1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902if test "${ac_cv_prog_CC+set}" = set; then
1903  echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905  if test -n "$CC"; then
1906  ac_cv_prog_CC="$CC" # Let the user override the test.
1907else
1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911  IFS=$as_save_IFS
1912  test -z "$as_dir" && as_dir=.
1913  for ac_exec_ext in '' $ac_executable_extensions; do
1914  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917    break 2
1918  fi
1919done
1920done
1921
1922fi
1923fi
1924CC=$ac_cv_prog_CC
1925if test -n "$CC"; then
1926  echo "$as_me:$LINENO: result: $CC" >&5
1927echo "${ECHO_T}$CC" >&6
1928else
1929  echo "$as_me:$LINENO: result: no" >&5
1930echo "${ECHO_T}no" >&6
1931fi
1932
1933    test -n "$CC" && break
1934  done
1935fi
1936if test -z "$CC"; then
1937  ac_ct_CC=$CC
1938  for ac_prog in $comps
1939do
1940  # Extract the first word of "$ac_prog", so it can be a program name with args.
1941set dummy $ac_prog; ac_word=$2
1942echo "$as_me:$LINENO: checking for $ac_word" >&5
1943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945  echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947  if test -n "$ac_ct_CC"; then
1948  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949else
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953  IFS=$as_save_IFS
1954  test -z "$as_dir" && as_dir=.
1955  for ac_exec_ext in '' $ac_executable_extensions; do
1956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957    ac_cv_prog_ac_ct_CC="$ac_prog"
1958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959    break 2
1960  fi
1961done
1962done
1963
1964fi
1965fi
1966ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967if test -n "$ac_ct_CC"; then
1968  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969echo "${ECHO_T}$ac_ct_CC" >&6
1970else
1971  echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6
1973fi
1974
1975  test -n "$ac_ct_CC" && break
1976done
1977
1978  CC=$ac_ct_CC
1979fi
1980
1981
1982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1983See \`config.log' for more details." >&5
1984echo "$as_me: error: no acceptable C compiler found in \$PATH
1985See \`config.log' for more details." >&2;}
1986   { (exit 1); exit 1; }; }
1987
1988# Provide some information about the compiler.
1989echo "$as_me:$LINENO:" \
1990     "checking for C compiler version" >&5
1991ac_compiler=`set X $ac_compile; echo $2`
1992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993  (eval $ac_compiler --version </dev/null >&5) 2>&5
1994  ac_status=$?
1995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996  (exit $ac_status); }
1997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998  (eval $ac_compiler -v </dev/null >&5) 2>&5
1999  ac_status=$?
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); }
2002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003  (eval $ac_compiler -V </dev/null >&5) 2>&5
2004  ac_status=$?
2005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006  (exit $ac_status); }
2007
2008cat >conftest.$ac_ext <<_ACEOF
2009/* confdefs.h.  */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h.  */
2014
2015int
2016main ()
2017{
2018
2019  ;
2020  return 0;
2021}
2022_ACEOF
2023ac_clean_files_save=$ac_clean_files
2024ac_clean_files="$ac_clean_files a.out a.exe b.out"
2025# Try to create an executable without -o first, disregard a.out.
2026# It will help us diagnose broken compilers, and finding out an intuition
2027# of exeext.
2028echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2029echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2030ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2031if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2032  (eval $ac_link_default) 2>&5
2033  ac_status=$?
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); }; then
2036  # Find the output, starting from the most likely.  This scheme is
2037# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2038# resort.
2039
2040# Be careful to initialize this variable, since it used to be cached.
2041# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2042ac_cv_exeext=
2043# b.out is created by i960 compilers.
2044for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2045do
2046  test -f "$ac_file" || continue
2047  case $ac_file in
2048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2049        ;;
2050    conftest.$ac_ext )
2051        # This is the source file.
2052        ;;
2053    [ab].out )
2054        # We found the default executable, but exeext='' is most
2055        # certainly right.
2056        break;;
2057    *.* )
2058        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059        # FIXME: I believe we export ac_cv_exeext for Libtool,
2060        # but it would be cool to find out if it's true.  Does anybody
2061        # maintain Libtool? --akim.
2062        export ac_cv_exeext
2063        break;;
2064    * )
2065        break;;
2066  esac
2067done
2068else
2069  echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: C compiler cannot create executables
2075See \`config.log' for more details." >&2;}
2076   { (exit 77); exit 77; }; }
2077fi
2078
2079ac_exeext=$ac_cv_exeext
2080echo "$as_me:$LINENO: result: $ac_file" >&5
2081echo "${ECHO_T}$ac_file" >&6
2082
2083# Check the compiler produces executables we can run.  If not, either
2084# the compiler is broken, or we cross compile.
2085echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2086echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2087# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2088# If not cross compiling, check that we can run a simple program.
2089if test "$cross_compiling" != yes; then
2090  if { ac_try='./$ac_file'
2091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092  (eval $ac_try) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }; }; then
2096    cross_compiling=no
2097  else
2098    if test "$cross_compiling" = maybe; then
2099        cross_compiling=yes
2100    else
2101        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2102If you meant to cross compile, use \`--host'.
2103See \`config.log' for more details." >&5
2104echo "$as_me: error: cannot run C compiled programs.
2105If you meant to cross compile, use \`--host'.
2106See \`config.log' for more details." >&2;}
2107   { (exit 1); exit 1; }; }
2108    fi
2109  fi
2110fi
2111echo "$as_me:$LINENO: result: yes" >&5
2112echo "${ECHO_T}yes" >&6
2113
2114rm -f a.out a.exe conftest$ac_cv_exeext b.out
2115ac_clean_files=$ac_clean_files_save
2116# Check the compiler produces executables we can run.  If not, either
2117# the compiler is broken, or we cross compile.
2118echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2119echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2120echo "$as_me:$LINENO: result: $cross_compiling" >&5
2121echo "${ECHO_T}$cross_compiling" >&6
2122
2123echo "$as_me:$LINENO: checking for suffix of executables" >&5
2124echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2126  (eval $ac_link) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2131# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2132# work properly (i.e., refer to `conftest.exe'), while it won't with
2133# `rm'.
2134for ac_file in conftest.exe conftest conftest.*; do
2135  test -f "$ac_file" || continue
2136  case $ac_file in
2137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2138    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139          export ac_cv_exeext
2140          break;;
2141    * ) break;;
2142  esac
2143done
2144else
2145  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2146See \`config.log' for more details." >&5
2147echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2148See \`config.log' for more details." >&2;}
2149   { (exit 1); exit 1; }; }
2150fi
2151
2152rm -f conftest$ac_cv_exeext
2153echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2154echo "${ECHO_T}$ac_cv_exeext" >&6
2155
2156rm -f conftest.$ac_ext
2157EXEEXT=$ac_cv_exeext
2158ac_exeext=$EXEEXT
2159echo "$as_me:$LINENO: checking for suffix of object files" >&5
2160echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2161if test "${ac_cv_objext+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179rm -f conftest.o conftest.obj
2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181  (eval $ac_compile) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }; then
2185  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2186  case $ac_file in
2187    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2188    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2189       break;;
2190  esac
2191done
2192else
2193  echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: cannot compute suffix of object files: cannot compile
2199See \`config.log' for more details." >&2;}
2200   { (exit 1); exit 1; }; }
2201fi
2202
2203rm -f conftest.$ac_cv_objext conftest.$ac_ext
2204fi
2205echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2206echo "${ECHO_T}$ac_cv_objext" >&6
2207OBJEXT=$ac_cv_objext
2208ac_objext=$OBJEXT
2209echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2210echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2211if test "${ac_cv_c_compiler_gnu+set}" = set; then
2212  echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
2214  cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h.  */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h.  */
2220
2221int
2222main ()
2223{
2224#ifndef __GNUC__
2225       choke me
2226#endif
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232rm -f conftest.$ac_objext
2233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234  (eval $ac_compile) 2>conftest.er1
2235  ac_status=$?
2236  grep -v '^ *+' conftest.er1 >conftest.err
2237  rm -f conftest.er1
2238  cat conftest.err >&5
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); } &&
2241         { ac_try='test -z "$ac_c_werror_flag"
2242                         || test ! -s conftest.err'
2243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244  (eval $ac_try) 2>&5
2245  ac_status=$?
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); }; } &&
2248         { ac_try='test -s conftest.$ac_objext'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; }; then
2254  ac_compiler_gnu=yes
2255else
2256  echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259ac_compiler_gnu=no
2260fi
2261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2262ac_cv_c_compiler_gnu=$ac_compiler_gnu
2263
2264fi
2265echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2266echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2267GCC=`test $ac_compiler_gnu = yes && echo yes`
2268ac_test_CFLAGS=${CFLAGS+set}
2269ac_save_CFLAGS=$CFLAGS
2270CFLAGS="-g"
2271echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2272echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2273if test "${ac_cv_prog_cc_g+set}" = set; then
2274  echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276  cat >conftest.$ac_ext <<_ACEOF
2277/* confdefs.h.  */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h.  */
2282
2283int
2284main ()
2285{
2286
2287  ;
2288  return 0;
2289}
2290_ACEOF
2291rm -f conftest.$ac_objext
2292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293  (eval $ac_compile) 2>conftest.er1
2294  ac_status=$?
2295  grep -v '^ *+' conftest.er1 >conftest.err
2296  rm -f conftest.er1
2297  cat conftest.err >&5
2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299  (exit $ac_status); } &&
2300         { ac_try='test -z "$ac_c_werror_flag"
2301                         || test ! -s conftest.err'
2302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303  (eval $ac_try) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; } &&
2307         { ac_try='test -s conftest.$ac_objext'
2308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309  (eval $ac_try) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; }; then
2313  ac_cv_prog_cc_g=yes
2314else
2315  echo "$as_me: failed program was:" >&5
2316sed 's/^/| /' conftest.$ac_ext >&5
2317
2318ac_cv_prog_cc_g=no
2319fi
2320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321fi
2322echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2323echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2324if test "$ac_test_CFLAGS" = set; then
2325  CFLAGS=$ac_save_CFLAGS
2326elif test $ac_cv_prog_cc_g = yes; then
2327  if test "$GCC" = yes; then
2328    CFLAGS="-g -O2"
2329  else
2330    CFLAGS="-g"
2331  fi
2332else
2333  if test "$GCC" = yes; then
2334    CFLAGS="-O2"
2335  else
2336    CFLAGS=
2337  fi
2338fi
2339echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2340echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2341if test "${ac_cv_prog_cc_stdc+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  ac_cv_prog_cc_stdc=no
2345ac_save_CC=$CC
2346cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352#include <stdarg.h>
2353#include <stdio.h>
2354#include <sys/types.h>
2355#include <sys/stat.h>
2356/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2357struct buf { int x; };
2358FILE * (*rcsopen) (struct buf *, struct stat *, int);
2359static char *e (p, i)
2360     char **p;
2361     int i;
2362{
2363  return p[i];
2364}
2365static char *f (char * (*g) (char **, int), char **p, ...)
2366{
2367  char *s;
2368  va_list v;
2369  va_start (v,p);
2370  s = g (p, va_arg (v,int));
2371  va_end (v);
2372  return s;
2373}
2374
2375/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2376   function prototypes and stuff, but not '\xHH' hex character constants.
2377   These don't provoke an error unfortunately, instead are silently treated
2378   as 'x'.  The following induces an error, until -std1 is added to get
2379   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2380   array size at least.  It's necessary to write '\x00'==0 to get something
2381   that's true only with -std1.  */
2382int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2383
2384int test (int i, double x);
2385struct s1 {int (*f) (int a);};
2386struct s2 {int (*f) (double a);};
2387int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2388int argc;
2389char **argv;
2390int
2391main ()
2392{
2393return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2394  ;
2395  return 0;
2396}
2397_ACEOF
2398# Don't try gcc -ansi; that turns off useful extensions and
2399# breaks some systems' header files.
2400# AIX                   -qlanglvl=ansi
2401# Ultrix and OSF/1      -std1
2402# HP-UX 10.20 and later -Ae
2403# HP-UX older versions  -Aa -D_HPUX_SOURCE
2404# SVR4                  -Xc -D__EXTENSIONS__
2405for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2406do
2407  CC="$ac_save_CC $ac_arg"
2408  rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  ac_cv_prog_cc_stdc=$ac_arg
2431break
2432else
2433  echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436fi
2437rm -f conftest.err conftest.$ac_objext
2438done
2439rm -f conftest.$ac_ext conftest.$ac_objext
2440CC=$ac_save_CC
2441
2442fi
2443
2444case "x$ac_cv_prog_cc_stdc" in
2445  x|xno)
2446    echo "$as_me:$LINENO: result: none needed" >&5
2447echo "${ECHO_T}none needed" >&6 ;;
2448  *)
2449    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2450echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2451    CC="$CC $ac_cv_prog_cc_stdc" ;;
2452esac
2453
2454# Some people use a C++ compiler to compile C.  Since we use `exit',
2455# in C++ we need to declare it.  In case someone uses the same compiler
2456# for both compiling C and C++ we need to have the C++ compiler decide
2457# the declaration of exit, since it's the most demanding environment.
2458cat >conftest.$ac_ext <<_ACEOF
2459#ifndef __cplusplus
2460  choke me
2461#endif
2462_ACEOF
2463rm -f conftest.$ac_objext
2464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465  (eval $ac_compile) 2>conftest.er1
2466  ac_status=$?
2467  grep -v '^ *+' conftest.er1 >conftest.err
2468  rm -f conftest.er1
2469  cat conftest.err >&5
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); } &&
2472         { ac_try='test -z "$ac_c_werror_flag"
2473                         || test ! -s conftest.err'
2474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475  (eval $ac_try) 2>&5
2476  ac_status=$?
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); }; } &&
2479         { ac_try='test -s conftest.$ac_objext'
2480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481  (eval $ac_try) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; }; then
2485  for ac_declaration in \
2486   '' \
2487   'extern "C" void std::exit (int) throw (); using std::exit;' \
2488   'extern "C" void std::exit (int); using std::exit;' \
2489   'extern "C" void exit (int) throw ();' \
2490   'extern "C" void exit (int);' \
2491   'void exit (int);'
2492do
2493  cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h.  */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h.  */
2499$ac_declaration
2500#include <stdlib.h>
2501int
2502main ()
2503{
2504exit (42);
2505  ;
2506  return 0;
2507}
2508_ACEOF
2509rm -f conftest.$ac_objext
2510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511  (eval $ac_compile) 2>conftest.er1
2512  ac_status=$?
2513  grep -v '^ *+' conftest.er1 >conftest.err
2514  rm -f conftest.er1
2515  cat conftest.err >&5
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); } &&
2518         { ac_try='test -z "$ac_c_werror_flag"
2519                         || test ! -s conftest.err'
2520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521  (eval $ac_try) 2>&5
2522  ac_status=$?
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); }; } &&
2525         { ac_try='test -s conftest.$ac_objext'
2526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527  (eval $ac_try) 2>&5
2528  ac_status=$?
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); }; }; then
2531  :
2532else
2533  echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536continue
2537fi
2538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539  cat >conftest.$ac_ext <<_ACEOF
2540/* confdefs.h.  */
2541_ACEOF
2542cat confdefs.h >>conftest.$ac_ext
2543cat >>conftest.$ac_ext <<_ACEOF
2544/* end confdefs.h.  */
2545$ac_declaration
2546int
2547main ()
2548{
2549exit (42);
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554rm -f conftest.$ac_objext
2555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556  (eval $ac_compile) 2>conftest.er1
2557  ac_status=$?
2558  grep -v '^ *+' conftest.er1 >conftest.err
2559  rm -f conftest.er1
2560  cat conftest.err >&5
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); } &&
2563         { ac_try='test -z "$ac_c_werror_flag"
2564                         || test ! -s conftest.err'
2565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566  (eval $ac_try) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; } &&
2570         { ac_try='test -s conftest.$ac_objext'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; }; then
2576  break
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581fi
2582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583done
2584rm -f conftest*
2585if test -n "$ac_declaration"; then
2586  echo '#ifdef __cplusplus' >>confdefs.h
2587  echo $ac_declaration      >>confdefs.h
2588  echo '#endif'             >>confdefs.h
2589fi
2590
2591else
2592  echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595fi
2596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2597ac_ext=c
2598ac_cpp='$CPP $CPPFLAGS'
2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603if test -z "$CC" ; then
2604  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2605echo "$as_me: error: Failed to find a C compiler!" >&2;}
2606   { (exit 1); exit 1; }; }
2607fi
2608# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2609case "$CC" in
2610  cl* | */cl* | CL* | */CL* )
2611    if test "$ac_cv_prog_cc_g" = yes ; then
2612      ac_cv_prog_cc_g=no
2613      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2614echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2615    fi ;;
2616esac
2617CFLAGS="$save_cflags"
2618
2619# Check if a project specific CFLAGS variable has been set
2620if test x$COIN_PRJCT != x; then
2621  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2622  if test x$coin_tmp = xset; then
2623    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2624  fi
2625fi
2626
2627if test x"$CFLAGS" = x; then
2628
2629  coin_add_cflags=
2630  coin_opt_cflags=
2631  coin_dbg_cflags=
2632  coin_warn_cflags=
2633
2634  if test "$GCC" = "yes"; then
2635    case "$CC" in
2636      icc* | */icc*)
2637        ;;
2638      *)
2639        coin_opt_cflags="-O3 -fomit-frame-pointer"
2640        coin_add_cflags="-pipe"
2641        coin_dbg_cflags="-g"
2642        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2643        case $enable_doscompile in
2644          mingw)
2645            CFLAGS="-mno-cygwin"
2646            cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h.  */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h.  */
2652
2653int
2654main ()
2655{
2656int i=0; i++;
2657  ;
2658  return 0;
2659}
2660_ACEOF
2661rm -f conftest.$ac_objext conftest$ac_exeext
2662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2663  (eval $ac_link) 2>conftest.er1
2664  ac_status=$?
2665  grep -v '^ *+' conftest.er1 >conftest.err
2666  rm -f conftest.er1
2667  cat conftest.err >&5
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); } &&
2670         { ac_try='test -z "$ac_c_werror_flag"
2671                         || test ! -s conftest.err'
2672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673  (eval $ac_try) 2>&5
2674  ac_status=$?
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); }; } &&
2677         { ac_try='test -s conftest$ac_exeext'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; }; then
2683  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2684else
2685  echo "$as_me: failed program was:" >&5
2686sed 's/^/| /' conftest.$ac_ext >&5
2687
2688fi
2689rm -f conftest.err conftest.$ac_objext \
2690      conftest$ac_exeext conftest.$ac_ext
2691            CFLAGS=
2692          ;;
2693        esac
2694    esac
2695  fi
2696  if test -z "$coin_opt_cflags"; then
2697    case $build in
2698      *-cygwin* | *-mingw*)
2699        case "$CC" in
2700          cl* | */cl* | CL* | */CL*)
2701            coin_opt_cflags='-MT -O2'
2702            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2703            coin_dbg_cflags='-MTd'
2704            ;;
2705        esac
2706        ;;
2707      *-linux-*)
2708        case "$CC" in
2709          icc* | */icc*)
2710            coin_opt_cflags="-O3 -ip"
2711            coin_add_cflags=""
2712            coin_dbg_cflags="-g"
2713            # Check if -i_dynamic is necessary (for new glibc library)
2714            CFLAGS=
2715            cat >conftest.$ac_ext <<_ACEOF
2716/* confdefs.h.  */
2717_ACEOF
2718cat confdefs.h >>conftest.$ac_ext
2719cat >>conftest.$ac_ext <<_ACEOF
2720/* end confdefs.h.  */
2721
2722int
2723main ()
2724{
2725int i=0; i++;
2726  ;
2727  return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext conftest$ac_exeext
2731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2732  (eval $ac_link) 2>conftest.er1
2733  ac_status=$?
2734  grep -v '^ *+' conftest.er1 >conftest.err
2735  rm -f conftest.er1
2736  cat conftest.err >&5
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); } &&
2739         { ac_try='test -z "$ac_c_werror_flag"
2740                         || test ! -s conftest.err'
2741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742  (eval $ac_try) 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }; } &&
2746         { ac_try='test -s conftest$ac_exeext'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; }; then
2752  :
2753else
2754  echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757coin_add_cflags="-i_dynamic $coin_add_cflags"
2758fi
2759rm -f conftest.err conftest.$ac_objext \
2760      conftest$ac_exeext conftest.$ac_ext
2761            ;;
2762          pgcc* | */pgcc*)
2763            coin_opt_cflags="-fast"
2764            coin_add_cflags="-Kieee -pc 64"
2765            coin_dbg_cflags="-g"
2766            ;;
2767        esac
2768        ;;
2769      *-ibm-*)
2770        case "$CC" in
2771          xlc* | */xlc* | mpxlc* | */mpxlc*)
2772            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2773            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2774            coin_dbg_cflags="-g"
2775          ;;
2776        esac
2777        ;;
2778      *-hp-*)
2779        coin_opt_cflags="-O"
2780        coin_add_cflags="-Ae"
2781        coin_dbg_cflags="-g"
2782        ;;
2783      *-sun-*)
2784        coin_opt_cflags="-xO4"
2785        coin_dbg_cflags="-g"
2786        ;;
2787      *-sgi-*)
2788        coin_opt_cflags="-O -OPT:Olimit=0"
2789        coin_dbg_cflags="-g"
2790        ;;
2791    esac
2792  fi
2793
2794  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2795    coin_dbg_cflags="-g"
2796  fi
2797
2798  if test -z "$coin_opt_cflags"; then
2799    # Try if -O option works if nothing else is set
2800    CFLAGS="-O"
2801    cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h.  */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h.  */
2807
2808int
2809main ()
2810{
2811int i=0; i++;
2812  ;
2813  return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext conftest$ac_exeext
2817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818  (eval $ac_link) 2>conftest.er1
2819  ac_status=$?
2820  grep -v '^ *+' conftest.er1 >conftest.err
2821  rm -f conftest.er1
2822  cat conftest.err >&5
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); } &&
2825         { ac_try='test -z "$ac_c_werror_flag"
2826                         || test ! -s conftest.err'
2827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828  (eval $ac_try) 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }; } &&
2832         { ac_try='test -s conftest$ac_exeext'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; }; then
2838  coin_opt_cflags="-O"
2839else
2840  echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843fi
2844rm -f conftest.err conftest.$ac_objext \
2845      conftest$ac_exeext conftest.$ac_ext
2846  fi
2847
2848  # if PM doesn't want the warning messages, take them out
2849  if test x"$coin_skip_warn_cflags" = xyes; then
2850    coin_warn_cflags=
2851  fi
2852
2853  if test x${DBG_CFLAGS+set} != xset; then
2854    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2855  fi
2856  if test x${OPT_CFLAGS+set} != xset; then
2857    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2858  fi
2859
2860  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2861  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2862
2863  if test "$coin_debug_compile" = "true"; then
2864    CFLAGS="$DBG_CFLAGS"
2865  else
2866    CFLAGS="$OPT_CFLAGS"
2867  fi
2868else
2869  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2870  if test x${DBG_CFLAGS+set} != xset; then
2871    DBG_CFLAGS="$CFLAGS"
2872  fi
2873  if test x${OPT_CFLAGS+set} != xset; then
2874    OPT_CFLAGS="$CFLAGS"
2875  fi
2876fi
2877
2878# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2879
2880case "$CFLAGS" in
2881  *-mno-cygwin*)
2882    if test x${CPPFLAGS+set} != xset ; then
2883      CPPFLAGS="-mno-cygwin"
2884    else
2885      case "$CPPFLAGS" in
2886        *-mno-cygwin*)
2887          ;;
2888        *)
2889          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2890          ;;
2891      esac
2892    fi ;;
2893esac
2894
2895# Try if CFLAGS works
2896save_CFLAGS="$CFLAGS"
2897cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h.  */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h.  */
2903
2904int
2905main ()
2906{
2907int i=0; i++;
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext conftest$ac_exeext
2913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2914  (eval $ac_link) 2>conftest.er1
2915  ac_status=$?
2916  grep -v '^ *+' conftest.er1 >conftest.err
2917  rm -f conftest.er1
2918  cat conftest.err >&5
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); } &&
2921         { ac_try='test -z "$ac_c_werror_flag"
2922                         || test ! -s conftest.err'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; } &&
2928         { ac_try='test -s conftest$ac_exeext'
2929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930  (eval $ac_try) 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; }; then
2934  :
2935else
2936  echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939CFLAGS=
2940fi
2941rm -f conftest.err conftest.$ac_objext \
2942      conftest$ac_exeext conftest.$ac_ext
2943if test -z "$CFLAGS"; then
2944  { 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
2945echo "$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;}
2946  CFLAGS='-O'
2947  cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953
2954int
2955main ()
2956{
2957int i=0; i++;
2958  ;
2959  return 0;
2960}
2961_ACEOF
2962rm -f conftest.$ac_objext conftest$ac_exeext
2963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2964  (eval $ac_link) 2>conftest.er1
2965  ac_status=$?
2966  grep -v '^ *+' conftest.er1 >conftest.err
2967  rm -f conftest.er1
2968  cat conftest.err >&5
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); } &&
2971         { ac_try='test -z "$ac_c_werror_flag"
2972                         || test ! -s conftest.err'
2973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974  (eval $ac_try) 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }; } &&
2978         { ac_try='test -s conftest$ac_exeext'
2979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980  (eval $ac_try) 2>&5
2981  ac_status=$?
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); }; }; then
2984  :
2985else
2986  echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989CFLAGS=
2990fi
2991rm -f conftest.err conftest.$ac_objext \
2992      conftest$ac_exeext conftest.$ac_ext
2993  if test -z "$CFLAGS"; then
2994    { 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
2995echo "$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;}
2996  fi
2997fi
2998
2999{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3000echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3001
3002
3003if test x"$MPICC" = x; then :; else
3004  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3005echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3006  CC="$MPICC"
3007fi
3008
3009# Correct ADDLIBS initialization if we are using the MS compiler
3010case "$CC" in
3011  cl* | */cl* | CL* | */CL*)
3012    ADDLIBS=
3013    case $build in
3014  *-mingw*)
3015    if test "${LD+set}" = set; then :; else
3016      LD=link
3017    fi
3018    ;;
3019 esac
3020 case $enable_doscompile in
3021   msvc)
3022     if test "x${LD+set}" = xset; then :; else
3023       LD=link
3024     fi
3025     ;;
3026 esac
3027
3028    ;;
3029esac
3030
3031ac_ext=c
3032ac_cpp='$CPP $CPPFLAGS'
3033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037
3038case $build in
3039  *-cygwin* | *-mingw*)
3040     if test "$enable_doscompile" = msvc ; then
3041       coin_f77_comps="ifort fl32 compile_f2c"
3042     else
3043       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3044     fi ;;
3045  sparc-sun-solaris*)
3046     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3047  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3048 esac
3049
3050
3051
3052
3053
3054
3055ac_ext=f
3056ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3057ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3059
3060
3061
3062
3063
3064
3065coin_has_f77=yes
3066
3067save_fflags="$FFLAGS"
3068
3069# We delete the cached value, since the test might not have been
3070# performed with our choice of compilers earlier
3071$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3072
3073# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3074# coin_f77_comps to see if there's a program that matches one of the names.
3075# If there's no such program, F77 = unavailable. If we match the name,
3076# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3077# compiler.
3078# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3079
3080
3081{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3082echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3083for ac_prog in $coin_f77_comps
3084do
3085  # Extract the first word of "$ac_prog", so it can be a program name with args.
3086set dummy $ac_prog; ac_word=$2
3087echo "$as_me:$LINENO: checking for $ac_word" >&5
3088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3089if test "${ac_cv_prog_F77+set}" = set; then
3090  echo $ECHO_N "(cached) $ECHO_C" >&6
3091else
3092  if test -n "$F77"; then
3093  ac_cv_prog_F77="$F77" # Let the user override the test.
3094else
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098  IFS=$as_save_IFS
3099  test -z "$as_dir" && as_dir=.
3100  for ac_exec_ext in '' $ac_executable_extensions; do
3101  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102    ac_cv_prog_F77="$ac_prog"
3103    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3104    break 2
3105  fi
3106done
3107done
3108
3109fi
3110fi
3111F77=$ac_cv_prog_F77
3112if test -n "$F77"; then
3113  echo "$as_me:$LINENO: result: $F77" >&5
3114echo "${ECHO_T}$F77" >&6
3115else
3116  echo "$as_me:$LINENO: result: no" >&5
3117echo "${ECHO_T}no" >&6
3118fi
3119
3120  test -n "$F77" && break
3121done
3122test -n "$F77" || F77="unavailable"
3123
3124
3125if test "$F77" != "unavailable" ; then
3126  ac_ext=f
3127ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3128ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3130if test -n "$ac_tool_prefix"; then
3131  for ac_prog in $coin_f77_comps
3132  do
3133    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135echo "$as_me:$LINENO: checking for $ac_word" >&5
3136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137if test "${ac_cv_prog_F77+set}" = set; then
3138  echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140  if test -n "$F77"; then
3141  ac_cv_prog_F77="$F77" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146  IFS=$as_save_IFS
3147  test -z "$as_dir" && as_dir=.
3148  for ac_exec_ext in '' $ac_executable_extensions; do
3149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152    break 2
3153  fi
3154done
3155done
3156
3157fi
3158fi
3159F77=$ac_cv_prog_F77
3160if test -n "$F77"; then
3161  echo "$as_me:$LINENO: result: $F77" >&5
3162echo "${ECHO_T}$F77" >&6
3163else
3164  echo "$as_me:$LINENO: result: no" >&5
3165echo "${ECHO_T}no" >&6
3166fi
3167
3168    test -n "$F77" && break
3169  done
3170fi
3171if test -z "$F77"; then
3172  ac_ct_F77=$F77
3173  for ac_prog in $coin_f77_comps
3174do
3175  # Extract the first word of "$ac_prog", so it can be a program name with args.
3176set dummy $ac_prog; ac_word=$2
3177echo "$as_me:$LINENO: checking for $ac_word" >&5
3178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3179if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3180  echo $ECHO_N "(cached) $ECHO_C" >&6
3181else
3182  if test -n "$ac_ct_F77"; then
3183  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3184else
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190  for ac_exec_ext in '' $ac_executable_extensions; do
3191  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192    ac_cv_prog_ac_ct_F77="$ac_prog"
3193    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3194    break 2
3195  fi
3196done
3197done
3198
3199fi
3200fi
3201ac_ct_F77=$ac_cv_prog_ac_ct_F77
3202if test -n "$ac_ct_F77"; then
3203  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3204echo "${ECHO_T}$ac_ct_F77" >&6
3205else
3206  echo "$as_me:$LINENO: result: no" >&5
3207echo "${ECHO_T}no" >&6
3208fi
3209
3210  test -n "$ac_ct_F77" && break
3211done
3212
3213  F77=$ac_ct_F77
3214fi
3215
3216
3217# Provide some information about the compiler.
3218echo "$as_me:3218:" \
3219     "checking for Fortran 77 compiler version" >&5
3220ac_compiler=`set X $ac_compile; echo $2`
3221{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3222  (eval $ac_compiler --version </dev/null >&5) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }
3226{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3227  (eval $ac_compiler -v </dev/null >&5) 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }
3231{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3232  (eval $ac_compiler -V </dev/null >&5) 2>&5
3233  ac_status=$?
3234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235  (exit $ac_status); }
3236rm -f a.out
3237
3238# If we don't use `.F' as extension, the preprocessor is not run on the
3239# input file.  (Note that this only needs to work for GNU compilers.)
3240ac_save_ext=$ac_ext
3241ac_ext=F
3242echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3243echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3244if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3245  echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247  cat >conftest.$ac_ext <<_ACEOF
3248      program main
3249#ifndef __GNUC__
3250       choke me
3251#endif
3252
3253      end
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257  (eval $ac_compile) 2>conftest.er1
3258  ac_status=$?
3259  grep -v '^ *+' conftest.er1 >conftest.err
3260  rm -f conftest.er1
3261  cat conftest.err >&5
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); } &&
3264         { ac_try='test -z "$ac_f77_werror_flag"
3265                         || test ! -s conftest.err'
3266  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267  (eval $ac_try) 2>&5
3268  ac_status=$?
3269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270  (exit $ac_status); }; } &&
3271         { ac_try='test -s conftest.$ac_objext'
3272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273  (eval $ac_try) 2>&5
3274  ac_status=$?
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }; }; then
3277  ac_compiler_gnu=yes
3278else
3279  echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282ac_compiler_gnu=no
3283fi
3284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3286
3287fi
3288echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3289echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3290ac_ext=$ac_save_ext
3291ac_test_FFLAGS=${FFLAGS+set}
3292ac_save_FFLAGS=$FFLAGS
3293FFLAGS=
3294echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3295echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3296if test "${ac_cv_prog_f77_g+set}" = set; then
3297  echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299  FFLAGS=-g
3300cat >conftest.$ac_ext <<_ACEOF
3301      program main
3302
3303      end
3304_ACEOF
3305rm -f conftest.$ac_objext
3306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3307  (eval $ac_compile) 2>conftest.er1
3308  ac_status=$?
3309  grep -v '^ *+' conftest.er1 >conftest.err
3310  rm -f conftest.er1
3311  cat conftest.err >&5
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); } &&
3314         { ac_try='test -z "$ac_f77_werror_flag"
3315                         || test ! -s conftest.err'
3316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317  (eval $ac_try) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }; } &&
3321         { ac_try='test -s conftest.$ac_objext'
3322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323  (eval $ac_try) 2>&5
3324  ac_status=$?
3325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326  (exit $ac_status); }; }; then
3327  ac_cv_prog_f77_g=yes
3328else
3329  echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
3332ac_cv_prog_f77_g=no
3333fi
3334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3335
3336fi
3337echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3338echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3339if test "$ac_test_FFLAGS" = set; then
3340  FFLAGS=$ac_save_FFLAGS
3341elif test $ac_cv_prog_f77_g = yes; then
3342  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3343    FFLAGS="-g -O2"
3344  else
3345    FFLAGS="-g"
3346  fi
3347else
3348  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3349    FFLAGS="-O2"
3350  else
3351    FFLAGS=
3352  fi
3353fi
3354
3355G77=`test $ac_compiler_gnu = yes && echo yes`
3356ac_ext=f
3357ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3358ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3360
3361else
3362  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3363echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3364fi
3365
3366FFLAGS="$save_fflags"
3367
3368# Check if a project specific FFLAGS variable has been set
3369if test x$COIN_PRJCT != x; then
3370  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3371  if test x$coin_tmp = xset; then
3372    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3373  fi
3374fi
3375
3376if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3377
3378  coin_add_fflags=
3379  coin_opt_fflags=
3380  coin_dbg_fflags=
3381  coin_warn_fflags=
3382
3383  if test "$G77" = "yes"; then
3384    coin_opt_fflags="-O3 -fomit-frame-pointer"
3385    coin_add_fflags="-pipe"
3386    coin_dbg_fflags="-g"
3387    case $enable_doscompile in
3388      mingw)
3389        FFLAGS="-mno-cygwin"
3390        cat >conftest.$ac_ext <<_ACEOF
3391      program main
3392      write(*,*) 'Hello world'
3393      end
3394_ACEOF
3395rm -f conftest.$ac_objext conftest$ac_exeext
3396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3397  (eval $ac_link) 2>conftest.er1
3398  ac_status=$?
3399  grep -v '^ *+' conftest.er1 >conftest.err
3400  rm -f conftest.er1
3401  cat conftest.err >&5
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); } &&
3404         { ac_try='test -z "$ac_f77_werror_flag"
3405                         || test ! -s conftest.err'
3406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407  (eval $ac_try) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }; } &&
3411         { ac_try='test -s conftest$ac_exeext'
3412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413  (eval $ac_try) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }; }; then
3417  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3418else
3419  echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422fi
3423rm -f conftest.err conftest.$ac_objext \
3424      conftest$ac_exeext conftest.$ac_ext
3425        FFLAGS=
3426      ;;
3427    esac
3428  else
3429    case $build in
3430      *-cygwin* | *-mingw*)
3431        case $F77 in
3432          ifort* | */ifort* | IFORT* | */IFORT* )
3433            coin_opt_fflags='-O3'
3434            coin_add_fflags='-fpp -nologo -MT'
3435            coin_dbg_fflags='-debug'
3436          ;;
3437          compile_f2c*)
3438            coin_opt_fflags='-MT -O2'
3439            coin_add_fflags='-nologo -wd4996'
3440            coin_dbg_fflags='-MTd'
3441          ;;
3442        esac
3443        ;;
3444      *-linux-*)
3445        case $F77 in
3446          ifc* | */ifc* | ifort* | */ifort*)
3447            coin_opt_fflags="-O3 -ip"
3448            coin_add_fflags="-cm -w90 -w95"
3449            coin_dbg_fflags="-g -CA -CB -CS"
3450            # Check if -i_dynamic is necessary (for new glibc library)
3451            FFLAGS=
3452            cat >conftest.$ac_ext <<_ACEOF
3453      program main
3454      write(*,*) 'Hello world'
3455      end
3456_ACEOF
3457rm -f conftest.$ac_objext conftest$ac_exeext
3458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3459  (eval $ac_link) 2>conftest.er1
3460  ac_status=$?
3461  grep -v '^ *+' conftest.er1 >conftest.err
3462  rm -f conftest.er1
3463  cat conftest.err >&5
3464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465  (exit $ac_status); } &&
3466         { ac_try='test -z "$ac_f77_werror_flag"
3467                         || test ! -s conftest.err'
3468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469  (eval $ac_try) 2>&5
3470  ac_status=$?
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); }; } &&
3473         { ac_try='test -s conftest$ac_exeext'
3474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3475  (eval $ac_try) 2>&5
3476  ac_status=$?
3477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478  (exit $ac_status); }; }; then
3479  :
3480else
3481  echo "$as_me: failed program was:" >&5
3482sed 's/^/| /' conftest.$ac_ext >&5
3483
3484coin_add_fflags="-i_dynamic $coin_add_fflags"
3485fi
3486rm -f conftest.err conftest.$ac_objext \
3487      conftest$ac_exeext conftest.$ac_ext
3488            ;;
3489          pgf77* | */pgf77* | pgf90* | */pgf90*)
3490            coin_opt_fflags="-fast"
3491            coin_add_fflags="-Kieee -pc 64"
3492            coin_dbg_fflags="-g"
3493          ;;
3494        esac
3495        ;;
3496      *-ibm-*)
3497        case "$F77" in
3498          xlf* | */xlf* | mpxlf* | */mpxlf* )
3499            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3500            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3501            coin_dbg_fflags="-g -C"
3502            ;;
3503        esac
3504        ;;
3505      *-hp-*)
3506        coin_opt_fflags="+O3"
3507        coin_add_fflags="+U77"
3508        coin_dbg_fflags="-C -g"
3509        ;;
3510      *-sun-*)
3511        coin_opt_fflags="-O4"
3512        coin_dbg_fflags="-g"
3513        ;;
3514      *-sgi-*)
3515        coin_opt_fflags="-O5 -OPT:Olimit=0"
3516        coin_dbg_fflags="-g"
3517        ;;
3518    esac
3519  fi
3520
3521  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3522    coin_dbg_fflags="-g"
3523  fi
3524
3525  if test -z "$coin_opt_fflags"; then
3526    # Try if -O option works if nothing else is set
3527    FFLAGS=-O
3528    cat >conftest.$ac_ext <<_ACEOF
3529      program main
3530      integer i
3531      end
3532_ACEOF
3533rm -f conftest.$ac_objext conftest$ac_exeext
3534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3535  (eval $ac_link) 2>conftest.er1
3536  ac_status=$?
3537  grep -v '^ *+' conftest.er1 >conftest.err
3538  rm -f conftest.er1
3539  cat conftest.err >&5
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); } &&
3542         { ac_try='test -z "$ac_f77_werror_flag"
3543                         || test ! -s conftest.err'
3544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545  (eval $ac_try) 2>&5
3546  ac_status=$?
3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548  (exit $ac_status); }; } &&
3549         { ac_try='test -s conftest$ac_exeext'
3550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551  (eval $ac_try) 2>&5
3552  ac_status=$?
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); }; }; then
3555  coin_opt_fflags="-O"
3556else
3557  echo "$as_me: failed program was:" >&5
3558sed 's/^/| /' conftest.$ac_ext >&5
3559
3560fi
3561rm -f conftest.err conftest.$ac_objext \
3562      conftest$ac_exeext conftest.$ac_ext
3563  fi
3564
3565  # if PM doesn't want the warning messages, take them out
3566  if test x"$coin_skip_warn_fflags" = xyes; then
3567    coin_warn_fflags=
3568  fi
3569
3570  if test x${DBG_FFLAGS+set} != xset; then
3571    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3572  fi
3573  if test x${OPT_FFLAGS+set} != xset; then
3574    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3575  fi
3576
3577  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3578  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3579
3580  if test "$coin_debug_compile" = "true"; then
3581    FFLAGS="$DBG_FFLAGS"
3582  else
3583    FFLAGS="$OPT_FFLAGS"
3584  fi
3585else
3586  FFLAGS="$FFLAGS $ADD_FFLAGS"
3587  if test x${DBG_FFLAGS+set} != xset; then
3588    DBG_FFLAGS="$FFLAGS"
3589  fi
3590  if test x${OPT_FFLAGS+set} != xset; then
3591    OPT_FFLAGS="$FFLAGS"
3592  fi
3593fi
3594
3595# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3596case "$FFLAGS" in
3597  *-mno-cygwin*)
3598    if test x${CPPFLAGS+set} != xset ; then
3599      CPPFLAGS="-mno-cygwin"
3600    else
3601      case "$CPPFLAGS" in
3602        *-mno-cygwin*)
3603          ;;
3604        *)
3605          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3606          ;;
3607      esac
3608    fi ;;
3609esac
3610
3611# Try if FFLAGS works
3612if test "$F77" != "unavailable" ; then
3613  cat >conftest.$ac_ext <<_ACEOF
3614      program main
3615      integer i
3616      end
3617_ACEOF
3618rm -f conftest.$ac_objext conftest$ac_exeext
3619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3620  (eval $ac_link) 2>conftest.er1
3621  ac_status=$?
3622  grep -v '^ *+' conftest.er1 >conftest.err
3623  rm -f conftest.er1
3624  cat conftest.err >&5
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); } &&
3627         { ac_try='test -z "$ac_f77_werror_flag"
3628                         || test ! -s conftest.err'
3629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630  (eval $ac_try) 2>&5
3631  ac_status=$?
3632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); }; } &&
3634         { ac_try='test -s conftest$ac_exeext'
3635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636  (eval $ac_try) 2>&5
3637  ac_status=$?
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); }; }; then
3640  :
3641else
3642  echo "$as_me: failed program was:" >&5
3643sed 's/^/| /' conftest.$ac_ext >&5
3644
3645FFLAGS=
3646fi
3647rm -f conftest.err conftest.$ac_objext \
3648      conftest$ac_exeext conftest.$ac_ext
3649  if test -z "$FFLAGS"; then
3650    { 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
3651echo "$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;}
3652    FFLAGS='-O'
3653    cat >conftest.$ac_ext <<_ACEOF
3654      program main
3655      integer i
3656      end
3657_ACEOF
3658rm -f conftest.$ac_objext conftest$ac_exeext
3659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3660  (eval $ac_link) 2>conftest.er1
3661  ac_status=$?
3662  grep -v '^ *+' conftest.er1 >conftest.err
3663  rm -f conftest.er1
3664  cat conftest.err >&5
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); } &&
3667         { ac_try='test -z "$ac_f77_werror_flag"
3668                         || test ! -s conftest.err'
3669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3670  (eval $ac_try) 2>&5
3671  ac_status=$?
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); }; } &&
3674         { ac_try='test -s conftest$ac_exeext'
3675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676  (eval $ac_try) 2>&5
3677  ac_status=$?
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); }; }; then
3680  :
3681else
3682  echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685FFLAGS=
3686fi
3687rm -f conftest.err conftest.$ac_objext \
3688      conftest$ac_exeext conftest.$ac_ext
3689    if test -z "$FFLAGS"; then
3690      { 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
3691echo "$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;}
3692    fi
3693  fi
3694fi
3695
3696{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3697echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3698
3699
3700if test x"$MPIF77" = x; then :; else
3701  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3702echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3703  F77="$MPIF77"
3704fi
3705
3706case "$F77" in
3707  ifort* | */ifort* | IFORT* | */IFORT*)
3708    case $build in
3709  *-mingw*)
3710    if test "${LD+set}" = set; then :; else
3711      LD=link
3712    fi
3713    ;;
3714 esac
3715 case $enable_doscompile in
3716   msvc)
3717     if test "x${LD+set}" = xset; then :; else
3718       LD=link
3719     fi
3720     ;;
3721 esac
3722
3723    ;;
3724esac
3725
3726ac_ext=c
3727ac_cpp='$CPP $CPPFLAGS'
3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
3732
3733
3734# Initialize autotools
3735{
3736
3737
3738
3739# START
3740
3741# On Cygwin, building DLLs doesn't work
3742case $build in
3743  *-cygwin*)
3744    coin_disable_shared=yes
3745    platform=Cygwin
3746  ;;
3747  *-mingw*)
3748    coin_disable_shared=yes
3749    platform="Msys"
3750#    case "$CXX" in
3751#      cl*)
3752#        coin_disable_shared=yes
3753#        platform="Msys with cl"
3754#    ;;
3755#    esac
3756  ;;
3757esac
3758if test x"$coin_disable_shared" = xyes; then
3759  if test x"$enable_shared" = xyes; then
3760    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3761echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3762  fi
3763  enable_shared=no
3764fi
3765# By default, we only want the shared objects to be compiled
3766# Check whether --enable-static or --disable-static was given.
3767if test "${enable_static+set}" = set; then
3768  enableval="$enable_static"
3769  p=${PACKAGE-default}
3770    case $enableval in
3771    yes) enable_static=yes ;;
3772    no) enable_static=no ;;
3773    *)
3774     enable_static=no
3775      # Look at the argument we got.  We use all the common list separators.
3776      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3777      for pkg in $enableval; do
3778        IFS="$lt_save_ifs"
3779        if test "X$pkg" = "X$p"; then
3780          enable_static=yes
3781        fi
3782      done
3783      IFS="$lt_save_ifs"
3784      ;;
3785    esac
3786else
3787  enable_static=no
3788fi;
3789
3790
3791
3792
3793# Initialize automake
3794echo "$as_me:$LINENO: checking for egrep" >&5
3795echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3796if test "${ac_cv_prog_egrep+set}" = set; then
3797  echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3800    then ac_cv_prog_egrep='grep -E'
3801    else ac_cv_prog_egrep='egrep'
3802    fi
3803fi
3804echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3805echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3806 EGREP=$ac_cv_prog_egrep
3807
3808
3809am__api_version="1.9"
3810# Find a good install program.  We prefer a C program (faster),
3811# so one script is as good as another.  But avoid the broken or
3812# incompatible versions:
3813# SysV /etc/install, /usr/sbin/install
3814# SunOS /usr/etc/install
3815# IRIX /sbin/install
3816# AIX /bin/install
3817# AmigaOS /C/install, which installs bootblocks on floppy discs
3818# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3819# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3820# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3821# OS/2's system install, which has a completely different semantic
3822# ./install, which can be erroneously created by make from ./install.sh.
3823echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3824echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3825if test -z "$INSTALL"; then
3826if test "${ac_cv_path_install+set}" = set; then
3827  echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832  IFS=$as_save_IFS
3833  test -z "$as_dir" && as_dir=.
3834  # Account for people who put trailing slashes in PATH elements.
3835case $as_dir/ in
3836  ./ | .// | /cC/* | \
3837  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3838  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3839  /usr/ucb/* ) ;;
3840  *)
3841    # OSF1 and SCO ODT 3.0 have their own names for install.
3842    # Don't use installbsd from OSF since it installs stuff as root
3843    # by default.
3844    for ac_prog in ginstall scoinst install; do
3845      for ac_exec_ext in '' $ac_executable_extensions; do
3846        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3847          if test $ac_prog = install &&
3848            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3849            # AIX install.  It has an incompatible calling convention.
3850            :
3851          elif test $ac_prog = install &&
3852            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3853            # program-specific install script used by HP pwplus--don't use.
3854            :
3855          else
3856            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3857            break 3
3858          fi
3859        fi
3860      done
3861    done
3862    ;;
3863esac
3864done
3865
3866
3867fi
3868  if test "${ac_cv_path_install+set}" = set; then
3869    INSTALL=$ac_cv_path_install
3870  else
3871    # As a last resort, use the slow shell script.  We don't cache a
3872    # path for INSTALL within a source directory, because that will
3873    # break other packages using the cache if that directory is
3874    # removed, or if the path is relative.
3875    INSTALL=$ac_install_sh
3876  fi
3877fi
3878echo "$as_me:$LINENO: result: $INSTALL" >&5
3879echo "${ECHO_T}$INSTALL" >&6
3880
3881# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3882# It thinks the first close brace ends the variable substitution.
3883test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3884
3885test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3886
3887test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3888
3889echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3890echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3891# Just in case
3892sleep 1
3893echo timestamp > conftest.file
3894# Do `set' in a subshell so we don't clobber the current shell's
3895# arguments.  Must try -L first in case configure is actually a
3896# symlink; some systems play weird games with the mod time of symlinks
3897# (eg FreeBSD returns the mod time of the symlink's containing
3898# directory).
3899if (
3900   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3901   if test "$*" = "X"; then
3902      # -L didn't work.
3903      set X `ls -t $srcdir/configure conftest.file`
3904   fi
3905   rm -f conftest.file
3906   if test "$*" != "X $srcdir/configure conftest.file" \
3907      && test "$*" != "X conftest.file $srcdir/configure"; then
3908
3909      # If neither matched, then we have a broken ls.  This can happen
3910      # if, for instance, CONFIG_SHELL is bash and it inherits a
3911      # broken ls alias from the environment.  This has actually
3912      # happened.  Such a system could not be considered "sane".
3913      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3914alias in your environment" >&5
3915echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3916alias in your environment" >&2;}
3917   { (exit 1); exit 1; }; }
3918   fi
3919
3920   test "$2" = conftest.file
3921   )
3922then
3923   # Ok.
3924   :
3925else
3926   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3927Check your system clock" >&5
3928echo "$as_me: error: newly created file is older than distributed files!
3929Check your system clock" >&2;}
3930   { (exit 1); exit 1; }; }
3931fi
3932echo "$as_me:$LINENO: result: yes" >&5
3933echo "${ECHO_T}yes" >&6
3934test "$program_prefix" != NONE &&
3935  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3936# Use a double $ so make ignores it.
3937test "$program_suffix" != NONE &&
3938  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3939# Double any \ or $.  echo might interpret backslashes.
3940# By default was `s,x,x', remove it if useless.
3941cat <<\_ACEOF >conftest.sed
3942s/[\\$]/&&/g;s/;s,x,x,$//
3943_ACEOF
3944program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3945rm conftest.sed
3946
3947# expand $ac_aux_dir to an absolute path
3948am_aux_dir=`cd $ac_aux_dir && pwd`
3949
3950test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3951# Use eval to expand $SHELL
3952if eval "$MISSING --run true"; then
3953  am_missing_run="$MISSING --run "
3954else
3955  am_missing_run=
3956  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3957echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3958fi
3959
3960if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3961  # We used to keeping the `.' as first argument, in order to
3962  # allow $(mkdir_p) to be used without argument.  As in
3963  #   $(mkdir_p) $(somedir)
3964  # where $(somedir) is conditionally defined.  However this is wrong
3965  # for two reasons:
3966  #  1. if the package is installed by a user who cannot write `.'
3967  #     make install will fail,
3968  #  2. the above comment should most certainly read
3969  #     $(mkdir_p) $(DESTDIR)$(somedir)
3970  #     so it does not work when $(somedir) is undefined and
3971  #     $(DESTDIR) is not.
3972  #  To support the latter case, we have to write
3973  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3974  #  so the `.' trick is pointless.
3975  mkdir_p='mkdir -p --'
3976else
3977  # On NextStep and OpenStep, the `mkdir' command does not
3978  # recognize any option.  It will interpret all options as
3979  # directories to create, and then abort because `.' already
3980  # exists.
3981  for d in ./-p ./--version;
3982  do
3983    test -d $d && rmdir $d
3984  done
3985  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3986  if test -f "$ac_aux_dir/mkinstalldirs"; then
3987    mkdir_p='$(mkinstalldirs)'
3988  else
3989    mkdir_p='$(install_sh) -d'
3990  fi
3991fi
3992
3993for ac_prog in gawk mawk nawk awk
3994do
3995  # Extract the first word of "$ac_prog", so it can be a program name with args.
3996set dummy $ac_prog; ac_word=$2
3997echo "$as_me:$LINENO: checking for $ac_word" >&5
3998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3999if test "${ac_cv_prog_AWK+set}" = set; then
4000  echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002  if test -n "$AWK"; then
4003  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008  IFS=$as_save_IFS
4009  test -z "$as_dir" && as_dir=.
4010  for ac_exec_ext in '' $ac_executable_extensions; do
4011  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4012    ac_cv_prog_AWK="$ac_prog"
4013    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014    break 2
4015  fi
4016done
4017done
4018
4019fi
4020fi
4021AWK=$ac_cv_prog_AWK
4022if test -n "$AWK"; then
4023  echo "$as_me:$LINENO: result: $AWK" >&5
4024echo "${ECHO_T}$AWK" >&6
4025else
4026  echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
4028fi
4029
4030  test -n "$AWK" && break
4031done
4032
4033echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4034echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4035set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4036if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4037  echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039  cat >conftest.make <<\_ACEOF
4040all:
4041        @echo 'ac_maketemp="$(MAKE)"'
4042_ACEOF
4043# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4044eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4045if test -n "$ac_maketemp"; then
4046  eval ac_cv_prog_make_${ac_make}_set=yes
4047else
4048  eval ac_cv_prog_make_${ac_make}_set=no
4049fi
4050rm -f conftest.make
4051fi
4052if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4053  echo "$as_me:$LINENO: result: yes" >&5
4054echo "${ECHO_T}yes" >&6
4055  SET_MAKE=
4056else
4057  echo "$as_me:$LINENO: result: no" >&5
4058echo "${ECHO_T}no" >&6
4059  SET_MAKE="MAKE=${MAKE-make}"
4060fi
4061
4062rm -rf .tst 2>/dev/null
4063mkdir .tst 2>/dev/null
4064if test -d .tst; then
4065  am__leading_dot=.
4066else
4067  am__leading_dot=_
4068fi
4069rmdir .tst 2>/dev/null
4070
4071DEPDIR="${am__leading_dot}deps"
4072
4073          ac_config_commands="$ac_config_commands depfiles"
4074
4075
4076am_make=${MAKE-make}
4077cat > confinc << 'END'
4078am__doit:
4079        @echo done
4080.PHONY: am__doit
4081END
4082# If we don't find an include directive, just comment out the code.
4083echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4084echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4085am__include="#"
4086am__quote=
4087_am_result=none
4088# First try GNU make style include.
4089echo "include confinc" > confmf
4090# We grep out `Entering directory' and `Leaving directory'
4091# messages which can occur if `w' ends up in MAKEFLAGS.
4092# In particular we don't look at `^make:' because GNU make might
4093# be invoked under some other name (usually "gmake"), in which
4094# case it prints its new name instead of `make'.
4095if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4096   am__include=include
4097   am__quote=
4098   _am_result=GNU
4099fi
4100# Now try BSD make style include.
4101if test "$am__include" = "#"; then
4102   echo '.include "confinc"' > confmf
4103   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4104      am__include=.include
4105      am__quote="\""
4106      _am_result=BSD
4107   fi
4108fi
4109
4110
4111echo "$as_me:$LINENO: result: $_am_result" >&5
4112echo "${ECHO_T}$_am_result" >&6
4113rm -f confinc confmf
4114
4115# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4116if test "${enable_dependency_tracking+set}" = set; then
4117  enableval="$enable_dependency_tracking"
4118
4119fi;
4120if test "x$enable_dependency_tracking" != xno; then
4121  am_depcomp="$ac_aux_dir/depcomp"
4122  AMDEPBACKSLASH='\'
4123fi
4124
4125
4126if test "x$enable_dependency_tracking" != xno; then
4127  AMDEP_TRUE=
4128  AMDEP_FALSE='#'
4129else
4130  AMDEP_TRUE='#'
4131  AMDEP_FALSE=
4132fi
4133
4134
4135
4136
4137
4138# AC_MSG_NOTICE([Beginning automake initialisation.])
4139# Stuff for automake
4140# test to see if srcdir already configured
4141if test "`cd $srcdir && pwd`" != "`pwd`" &&
4142   test -f $srcdir/config.status; then
4143  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4144echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4145   { (exit 1); exit 1; }; }
4146fi
4147
4148# test whether we have cygpath
4149if test -z "$CYGPATH_W"; then
4150  if (cygpath --version) >/dev/null 2>/dev/null; then
4151    CYGPATH_W='cygpath -w'
4152  else
4153    CYGPATH_W=echo
4154  fi
4155fi
4156
4157
4158# Define the identity of the package.
4159 PACKAGE='thirdpartylapack'
4160 VERSION='1.0stable'
4161
4162
4163cat >>confdefs.h <<_ACEOF
4164#define PACKAGE "$PACKAGE"
4165_ACEOF
4166
4167
4168cat >>confdefs.h <<_ACEOF
4169#define VERSION "$VERSION"
4170_ACEOF
4171
4172# Some tools Automake needs.
4173
4174ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4175
4176
4177AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4178
4179
4180AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4181
4182
4183AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4184
4185
4186MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4187
4188install_sh=${install_sh-"$am_aux_dir/install-sh"}
4189
4190# Installed binaries are usually stripped using `strip' when the user
4191# run `make install-strip'.  However `strip' might not be the right
4192# tool to use in cross-compilation environments, therefore Automake
4193# will honor the `STRIP' environment variable to overrule this program.
4194if test "$cross_compiling" != no; then
4195  if test -n "$ac_tool_prefix"; then
4196  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4197set dummy ${ac_tool_prefix}strip; ac_word=$2
4198echo "$as_me:$LINENO: checking for $ac_word" >&5
4199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4200if test "${ac_cv_prog_STRIP+set}" = set; then
4201  echo $ECHO_N "(cached) $ECHO_C" >&6
4202else
4203  if test -n "$STRIP"; then
4204  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4205else
4206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209  IFS=$as_save_IFS
4210  test -z "$as_dir" && as_dir=.
4211  for ac_exec_ext in '' $ac_executable_extensions; do
4212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215    break 2
4216  fi
4217done
4218done
4219
4220fi
4221fi
4222STRIP=$ac_cv_prog_STRIP
4223if test -n "$STRIP"; then
4224  echo "$as_me:$LINENO: result: $STRIP" >&5
4225echo "${ECHO_T}$STRIP" >&6
4226else
4227  echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6
4229fi
4230
4231fi
4232if test -z "$ac_cv_prog_STRIP"; then
4233  ac_ct_STRIP=$STRIP
4234  # Extract the first word of "strip", so it can be a program name with args.
4235set dummy strip; ac_word=$2
4236echo "$as_me:$LINENO: checking for $ac_word" >&5
4237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241  if test -n "$ac_ct_STRIP"; then
4242  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247  IFS=$as_save_IFS
4248  test -z "$as_dir" && as_dir=.
4249  for ac_exec_ext in '' $ac_executable_extensions; do
4250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251    ac_cv_prog_ac_ct_STRIP="strip"
4252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4253    break 2
4254  fi
4255done
4256done
4257
4258  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4259fi
4260fi
4261ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4262if test -n "$ac_ct_STRIP"; then
4263  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4264echo "${ECHO_T}$ac_ct_STRIP" >&6
4265else
4266  echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
4268fi
4269
4270  STRIP=$ac_ct_STRIP
4271else
4272  STRIP="$ac_cv_prog_STRIP"
4273fi
4274
4275fi
4276INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4277
4278# We need awk for the "check" target.  The system "awk" is bad on
4279# some platforms.
4280# Always define AMTAR for backward compatibility.
4281
4282AMTAR=${AMTAR-"${am_missing_run}tar"}
4283
4284am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4285
4286
4287
4288
4289depcc="$CC"   am_compiler_list=
4290
4291echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4292echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4293if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4294  echo $ECHO_N "(cached) $ECHO_C" >&6
4295else
4296  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4297  # We make a subdir and do the tests there.  Otherwise we can end up
4298  # making bogus files that we don't know about and never remove.  For
4299  # instance it was reported that on HP-UX the gcc test will end up
4300  # making a dummy file named `D' -- because `-MD' means `put the output
4301  # in D'.
4302  mkdir conftest.dir
4303  # Copy depcomp to subdir because otherwise we won't find it if we're
4304  # using a relative directory.
4305  cp "$am_depcomp" conftest.dir
4306  cd conftest.dir
4307  # We will build objects and dependencies in a subdirectory because
4308  # it helps to detect inapplicable dependency modes.  For instance
4309  # both Tru64's cc and ICC support -MD to output dependencies as a
4310  # side effect of compilation, but ICC will put the dependencies in
4311  # the current directory while Tru64 will put them in the object
4312  # directory.
4313  mkdir sub
4314
4315  am_cv_CC_dependencies_compiler_type=none
4316  if test "$am_compiler_list" = ""; then
4317     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4318  fi
4319  for depmode in $am_compiler_list; do
4320    # Setup a source with many dependencies, because some compilers
4321    # like to wrap large dependency lists on column 80 (with \), and
4322    # we should not choose a depcomp mode which is confused by this.
4323    #
4324    # We need to recreate these files for each test, as the compiler may
4325    # overwrite some of them when testing with obscure command lines.
4326    # This happens at least with the AIX C compiler.
4327    : > sub/conftest.c
4328    for i in 1 2 3 4 5 6; do
4329      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4330      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4331      # Solaris 8's {/usr,}/bin/sh.
4332      touch sub/conftst$i.h
4333    done
4334    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4335
4336    case $depmode in
4337    nosideeffect)
4338      # after this tag, mechanisms are not by side-effect, so they'll
4339      # only be used when explicitly requested
4340      if test "x$enable_dependency_tracking" = xyes; then
4341        continue
4342      else
4343        break
4344      fi
4345      ;;
4346    none) break ;;
4347    esac
4348    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4349    # mode.  It turns out that the SunPro C++ compiler does not properly
4350    # handle `-M -o', and we need to detect this.
4351    if depmode=$depmode \
4352       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4353       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4354       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4355         >/dev/null 2>conftest.err &&
4356       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4357       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4358       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4359      # icc doesn't choke on unknown options, it will just issue warnings
4360      # or remarks (even with -Werror).  So we grep stderr for any message
4361      # that says an option was ignored or not supported.
4362      # When given -MP, icc 7.0 and 7.1 complain thusly:
4363      #   icc: Command line warning: ignoring option '-M'; no argument required
4364      # The diagnosis changed in icc 8.0:
4365      #   icc: Command line remark: option '-MP' not supported
4366      if (grep 'ignoring option' conftest.err ||
4367          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4368        am_cv_CC_dependencies_compiler_type=$depmode
4369        break
4370      fi
4371    fi
4372  done
4373
4374  cd ..
4375  rm -rf conftest.dir
4376else
4377  am_cv_CC_dependencies_compiler_type=none
4378fi
4379
4380fi
4381echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4382echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4383CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4384
4385
4386
4387if
4388  test "x$enable_dependency_tracking" != xno \
4389  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4390  am__fastdepCC_TRUE=
4391  am__fastdepCC_FALSE='#'
4392else
4393  am__fastdepCC_TRUE='#'
4394  am__fastdepCC_FALSE=
4395fi
4396
4397
4398
4399echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4400echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4401    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4402if test "${enable_maintainer_mode+set}" = set; then
4403  enableval="$enable_maintainer_mode"
4404  USE_MAINTAINER_MODE=$enableval
4405else
4406  USE_MAINTAINER_MODE=no
4407fi;
4408  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4409echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4410
4411
4412if test $USE_MAINTAINER_MODE = yes; then
4413  MAINTAINER_MODE_TRUE=
4414  MAINTAINER_MODE_FALSE='#'
4415else
4416  MAINTAINER_MODE_TRUE='#'
4417  MAINTAINER_MODE_FALSE=
4418fi
4419
4420  MAINT=$MAINTAINER_MODE_TRUE
4421
4422
4423
4424coin_have_externals=no
4425if test "$enable_maintainer_mode" = yes; then
4426
4427  # If maintainer mode is chosen, we make sure that the correct versions
4428  # of the tools are used, and that we know where libtool.m4 is (to
4429  # recreate acinclude.m4)
4430
4431
4432  LIBTOOLM4=
4433  # Normally, $HOME
4434  AUTOTOOLS_DFLT=$HOME
4435
4436  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4437echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4438if test "${ac_cv_use_correct_autotools+set}" = set; then
4439  echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441  ac_cv_use_correct_autotools=check
4442fi
4443echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4444echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4445
4446  if test $ac_cv_use_correct_autotools = check; then
4447    ac_cv_use_correct_autotools=yes
4448    # Check if we have autoconf
4449    # Extract the first word of "autoconf", so it can be a program name with args.
4450set dummy autoconf; ac_word=$2
4451echo "$as_me:$LINENO: checking for $ac_word" >&5
4452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4453if test "${ac_cv_prog_have_autoconf+set}" = set; then
4454  echo $ECHO_N "(cached) $ECHO_C" >&6
4455else
4456  if test -n "$have_autoconf"; then
4457  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4458else
4459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH
4461do
4462  IFS=$as_save_IFS
4463  test -z "$as_dir" && as_dir=.
4464  for ac_exec_ext in '' $ac_executable_extensions; do
4465  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4466    ac_cv_prog_have_autoconf="yes"
4467    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468    break 2
4469  fi
4470done
4471done
4472
4473  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4474fi
4475fi
4476have_autoconf=$ac_cv_prog_have_autoconf
4477if test -n "$have_autoconf"; then
4478  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4479echo "${ECHO_T}$have_autoconf" >&6
4480else
4481  echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6
4483fi
4484
4485    if test $have_autoconf = no; then
4486      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4487echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4488   { (exit 1); exit 1; }; }
4489    fi
4490
4491    # Check whether autoconf is the correct version
4492    correct_version='2.59'
4493    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4494    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4495echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4496    autoconf --version > confauto.out 2>&1
4497    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4498      echo "$as_me:$LINENO: result: yes" >&5
4499echo "${ECHO_T}yes" >&6
4500    else
4501      rm -f confauto.out
4502      echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6
4504      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4505echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4506   { (exit 1); exit 1; }; }
4507    fi
4508    rm -f confauto.out
4509
4510    # Check if the executable autoconf is picked up from the correct location
4511    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4512echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4513    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4514    autoconf_dir=`cd $autoconf_dir; pwd`
4515    if test x$AUTOTOOLS_DIR = x; then
4516      want_dir=$AUTOTOOLS_DFLT/bin
4517    else
4518      want_dir=$AUTOTOOLS_DIR/bin
4519    fi
4520    if test $autoconf_dir = `cd $want_dir; pwd`; then
4521      echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523    else
4524      rm -f confauto.out
4525      echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6
4527      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4528echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4529   { (exit 1); exit 1; }; }
4530    fi
4531
4532    # Check if we have automake
4533    # Extract the first word of "automake", so it can be a program name with args.
4534set dummy automake; ac_word=$2
4535echo "$as_me:$LINENO: checking for $ac_word" >&5
4536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4537if test "${ac_cv_prog_have_automake+set}" = set; then
4538  echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540  if test -n "$have_automake"; then
4541  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4542else
4543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544for as_dir in $PATH
4545do
4546  IFS=$as_save_IFS
4547  test -z "$as_dir" && as_dir=.
4548  for ac_exec_ext in '' $ac_executable_extensions; do
4549  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550    ac_cv_prog_have_automake="yes"
4551    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552    break 2
4553  fi
4554done
4555done
4556
4557  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4558fi
4559fi
4560have_automake=$ac_cv_prog_have_automake
4561if test -n "$have_automake"; then
4562  echo "$as_me:$LINENO: result: $have_automake" >&5
4563echo "${ECHO_T}$have_automake" >&6
4564else
4565  echo "$as_me:$LINENO: result: no" >&5
4566echo "${ECHO_T}no" >&6
4567fi
4568
4569    if test $have_automake = no; then
4570      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4571echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4572   { (exit 1); exit 1; }; }
4573    fi
4574
4575    # Check whether automake is the correct version
4576    correct_version='1.9.6'
4577    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4578    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4579echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4580    automake --version > confauto.out 2>&1
4581    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4582      echo "$as_me:$LINENO: result: yes" >&5
4583echo "${ECHO_T}yes" >&6
4584    else
4585      rm -f confauto.out
4586      echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6
4588      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4589echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4590   { (exit 1); exit 1; }; }
4591    fi
4592    rm -f confauto.out
4593
4594    # Check if the executable automake is picked up from the correct location
4595    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4596echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4597    automake_dir=`which automake | sed -e 's=/automake=='`
4598    automake_dir=`cd $automake_dir; pwd`
4599    if test x$AUTOTOOLS_DIR = x; then
4600      want_dir=$AUTOTOOLS_DFLT/bin
4601    else
4602      want_dir=$AUTOTOOLS_DIR/bin
4603    fi
4604    if test $automake_dir = `cd $want_dir; pwd`; then
4605      echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
4607    else
4608      rm -f confauto.out
4609      echo "$as_me:$LINENO: result: no" >&5
4610echo "${ECHO_T}no" >&6
4611      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4612echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4613   { (exit 1); exit 1; }; }
4614    fi
4615
4616    # Check if this is the correct version of libtool (with escaped dots)
4617    if test x$AUTOTOOLS_DIR = x; then
4618      want_dir=$AUTOTOOLS_DFLT/share
4619    else
4620      want_dir=$AUTOTOOLS_DIR/share
4621    fi
4622    correct_version='1.5.22'
4623    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4624    if test -r $want_dir/libtool/ltmain.sh; then
4625  have_ltmain=yes
4626  :
4627else
4628  have_ltmain=no
4629  :
4630fi
4631
4632    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4633echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4634    if test $have_ltmain = yes; then
4635    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4636        echo "$as_me:$LINENO: result: yes" >&5
4637echo "${ECHO_T}yes" >&6
4638      else
4639        echo "$as_me:$LINENO: result: no" >&5
4640echo "${ECHO_T}no" >&6
4641        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4642echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4643   { (exit 1); exit 1; }; }
4644      fi
4645    else
4646      echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6
4648      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4649echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4650   { (exit 1); exit 1; }; }
4651    fi
4652  fi
4653
4654  # Check if we can find the libtool file
4655  if test x$AUTOTOOLS_DIR = x; then
4656    want_dir=$AUTOTOOLS_DFLT/share
4657  else
4658    want_dir=$AUTOTOOLS_DIR/share
4659  fi
4660  if test -r $want_dir/aclocal/libtool.m4; then
4661  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4662  :
4663else
4664  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4665echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4666   { (exit 1); exit 1; }; }
4667  :
4668fi
4669
4670
4671  # Check if we have an Externals file
4672  if test -r $srcdir/Externals; then
4673    coin_have_externals=yes
4674  fi
4675  # Check if subversion is installed and understands https
4676  # Extract the first word of "svn", so it can be a program name with args.
4677set dummy svn; ac_word=$2
4678echo "$as_me:$LINENO: checking for $ac_word" >&5
4679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4680if test "${ac_cv_prog_have_svn+set}" = set; then
4681  echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683  if test -n "$have_svn"; then
4684  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4685else
4686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689  IFS=$as_save_IFS
4690  test -z "$as_dir" && as_dir=.
4691  for ac_exec_ext in '' $ac_executable_extensions; do
4692  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693    ac_cv_prog_have_svn="yes"
4694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695    break 2
4696  fi
4697done
4698done
4699
4700  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4701fi
4702fi
4703have_svn=$ac_cv_prog_have_svn
4704if test -n "$have_svn"; then
4705  echo "$as_me:$LINENO: result: $have_svn" >&5
4706echo "${ECHO_T}$have_svn" >&6
4707else
4708  echo "$as_me:$LINENO: result: no" >&5
4709echo "${ECHO_T}no" >&6
4710fi
4711
4712  if test x$have_svn = xyes; then
4713    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4714echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4715if test "${ac_cv_svn_understands_https+set}" = set; then
4716  echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718  svn --version > confauto.out 2>&1
4719                    if $EGREP https confauto.out >/dev/null 2>&1; then
4720                      ac_cv_svn_understands_https=yes
4721                    else
4722                      ac_cv_svn_understands_https=no
4723                      have_svn=no
4724                      ac_cv_prog_have_svn=no
4725                    fi
4726                    rm -f confauto.out
4727fi
4728echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4729echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4730  fi
4731
4732  # Find the location of the BuildTools directory
4733  BUILDTOOLSDIR=
4734  if test -r $srcdir/BuildTools/coin.m4; then
4735    BUILDTOOLSDIR=$srcdir/BuildTools
4736  else
4737    if test -r $srcdir/../BuildTools/coin.m4; then
4738      BUILDTOOLSDIR=$srcdir/../BuildTools
4739    else
4740      if test -r $srcdir/../../BuildTools/coin.m4; then
4741        BUILDTOOLSDIR=$srcdir/../../BuildTools
4742      else
4743        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4744echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4745   { (exit 1); exit 1; }; }
4746      fi
4747    fi
4748  fi
4749
4750
4751  # The following variable is set to the name of the directory where
4752  # the autotool scripts are located
4753
4754  AUX_DIR=$ac_aux_dir
4755fi
4756
4757# helpful variable for the base directory of this package
4758abs_source_dir=`cd $srcdir; pwd`
4759
4760
4761# Stuff for example Makefiles
4762if test x$prefix = xNONE; then
4763  full_prefix=$ac_default_prefix
4764else
4765  full_prefix=$prefix
4766fi
4767full_prefix=`cd $full_prefix ; pwd`
4768
4769abs_lib_dir=$full_prefix/lib
4770
4771abs_include_dir=$full_prefix/include
4772
4773abs_bin_dir=$full_prefix/bin
4774
4775
4776
4777if test $coin_have_externals = yes && test x$have_svn = xyes; then
4778  HAVE_EXTERNALS_TRUE=
4779  HAVE_EXTERNALS_FALSE='#'
4780else
4781  HAVE_EXTERNALS_TRUE='#'
4782  HAVE_EXTERNALS_FALSE=
4783fi
4784
4785
4786# AC_MSG_NOTICE([End automake initialisation.])
4787
4788
4789
4790LIBTOOL=
4791if test -r ../libtool; then
4792  coin_config_dir=..
4793  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4794fi
4795if test "x$LIBTOOL" = x; then
4796  if test -r ../../libtool; then
4797    coin_config_dir=../..
4798    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4799  fi
4800fi
4801
4802if test "x$LIBTOOL" = x; then
4803# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4804  # Stuff for libtool
4805  # Check whether --enable-shared or --disable-shared was given.
4806if test "${enable_shared+set}" = set; then
4807  enableval="$enable_shared"
4808  p=${PACKAGE-default}
4809    case $enableval in
4810    yes) enable_shared=yes ;;
4811    no) enable_shared=no ;;
4812    *)
4813      enable_shared=no
4814      # Look at the argument we got.  We use all the common list separators.
4815      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4816      for pkg in $enableval; do
4817        IFS="$lt_save_ifs"
4818        if test "X$pkg" = "X$p"; then
4819          enable_shared=yes
4820        fi
4821      done
4822      IFS="$lt_save_ifs"
4823      ;;
4824    esac
4825else
4826  enable_shared=yes
4827fi;
4828
4829# Check whether --enable-fast-install or --disable-fast-install was given.
4830if test "${enable_fast_install+set}" = set; then
4831  enableval="$enable_fast_install"
4832  p=${PACKAGE-default}
4833    case $enableval in
4834    yes) enable_fast_install=yes ;;
4835    no) enable_fast_install=no ;;
4836    *)
4837      enable_fast_install=no
4838      # Look at the argument we got.  We use all the common list separators.
4839      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4840      for pkg in $enableval; do
4841        IFS="$lt_save_ifs"
4842        if test "X$pkg" = "X$p"; then
4843          enable_fast_install=yes
4844        fi
4845      done
4846      IFS="$lt_save_ifs"
4847      ;;
4848    esac
4849else
4850  enable_fast_install=yes
4851fi;
4852
4853echo "$as_me:$LINENO: checking host system type" >&5
4854echo $ECHO_N "checking host system type... $ECHO_C" >&6
4855if test "${ac_cv_host+set}" = set; then
4856  echo $ECHO_N "(cached) $ECHO_C" >&6
4857else
4858  ac_cv_host_alias=$host_alias
4859test -z "$ac_cv_host_alias" &&
4860  ac_cv_host_alias=$ac_cv_build_alias
4861ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4862  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4863echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4864   { (exit 1); exit 1; }; }
4865
4866fi
4867echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4868echo "${ECHO_T}$ac_cv_host" >&6
4869host=$ac_cv_host
4870host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4871host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4872host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4873
4874
4875echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4876echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4877if test "${lt_cv_path_SED+set}" = set; then
4878  echo $ECHO_N "(cached) $ECHO_C" >&6
4879else
4880  # Loop through the user's path and test for sed and gsed.
4881# Then use that list of sed's as ones to test for truncation.
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885  IFS=$as_save_IFS
4886  test -z "$as_dir" && as_dir=.
4887  for lt_ac_prog in sed gsed; do
4888    for ac_exec_ext in '' $ac_executable_extensions; do
4889      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4890        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4891      fi
4892    done
4893  done
4894done
4895lt_ac_max=0
4896lt_ac_count=0
4897# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4898# along with /bin/sed that truncates output.
4899for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4900  test ! -f $lt_ac_sed && continue
4901  cat /dev/null > conftest.in
4902  lt_ac_count=0
4903  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4904  # Check for GNU sed and select it if it is found.
4905  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4906    lt_cv_path_SED=$lt_ac_sed
4907    break
4908  fi
4909  while true; do
4910    cat conftest.in conftest.in >conftest.tmp
4911    mv conftest.tmp conftest.in
4912    cp conftest.in conftest.nl
4913    echo >>conftest.nl
4914    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4915    cmp -s conftest.out conftest.nl || break
4916    # 10000 chars as input seems more than enough
4917    test $lt_ac_count -gt 10 && break
4918    lt_ac_count=`expr $lt_ac_count + 1`
4919    if test $lt_ac_count -gt $lt_ac_max; then
4920      lt_ac_max=$lt_ac_count
4921      lt_cv_path_SED=$lt_ac_sed
4922    fi
4923  done
4924done
4925
4926fi
4927
4928SED=$lt_cv_path_SED
4929echo "$as_me:$LINENO: result: $SED" >&5
4930echo "${ECHO_T}$SED" >&6
4931
4932
4933# Check whether --with-gnu-ld or --without-gnu-ld was given.
4934if test "${with_gnu_ld+set}" = set; then
4935  withval="$with_gnu_ld"
4936  test "$withval" = no || with_gnu_ld=yes
4937else
4938  with_gnu_ld=no
4939fi;
4940ac_prog=ld
4941if test "$GCC" = yes; then
4942  # Check if gcc -print-prog-name=ld gives a path.
4943  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4944echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4945  case $host in
4946  *-*-mingw*)
4947    # gcc leaves a trailing carriage return which upsets mingw
4948    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4949  *)
4950    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4951  esac
4952  case $ac_prog in
4953    # Accept absolute paths.
4954    [\\/]* | ?:[\\/]*)
4955      re_direlt='/[^/][^/]*/\.\./'
4956      # Canonicalize the pathname of ld
4957      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4958      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4959        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4960      done
4961      test -z "$LD" && LD="$ac_prog"
4962      ;;
4963  "")
4964    # If it fails, then pretend we aren't using GCC.
4965    ac_prog=ld
4966    ;;
4967  *)
4968    # If it is relative, then search for the first ld in PATH.
4969    with_gnu_ld=unknown
4970    ;;
4971  esac
4972elif test "$with_gnu_ld" = yes; then
4973  echo "$as_me:$LINENO: checking for GNU ld" >&5
4974echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4975else
4976  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4977echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4978fi
4979if test "${lt_cv_path_LD+set}" = set; then
4980  echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982  if test -z "$LD"; then
4983  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4984  for ac_dir in $PATH; do
4985    IFS="$lt_save_ifs"
4986    test -z "$ac_dir" && ac_dir=.
4987    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4988      lt_cv_path_LD="$ac_dir/$ac_prog"
4989      # Check to see if the program is GNU ld.  I'd rather use --version,
4990      # but apparently some variants of GNU ld only accept -v.
4991      # Break only if it was the GNU/non-GNU ld that we prefer.
4992      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4993      *GNU* | *'with BFD'*)
4994        test "$with_gnu_ld" != no && break
4995        ;;
4996      *)
4997        test "$with_gnu_ld" != yes && break
4998        ;;
4999      esac
5000    fi
5001  done
5002  IFS="$lt_save_ifs"
5003else
5004  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5005fi
5006fi
5007
5008LD="$lt_cv_path_LD"
5009if test -n "$LD"; then
5010  echo "$as_me:$LINENO: result: $LD" >&5
5011echo "${ECHO_T}$LD" >&6
5012else
5013  echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
5015fi
5016test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5017echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5018   { (exit 1); exit 1; }; }
5019echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5020echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5021if test "${lt_cv_prog_gnu_ld+set}" = set; then
5022  echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5025case `$LD -v 2>&1 </dev/null` in
5026*GNU* | *'with BFD'*)
5027  lt_cv_prog_gnu_ld=yes
5028  ;;
5029*)
5030  lt_cv_prog_gnu_ld=no
5031  ;;
5032esac
5033fi
5034echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5035echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5036with_gnu_ld=$lt_cv_prog_gnu_ld
5037
5038
5039echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5040echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5041if test "${lt_cv_ld_reload_flag+set}" = set; then
5042  echo $ECHO_N "(cached) $ECHO_C" >&6
5043else
5044  lt_cv_ld_reload_flag='-r'
5045fi
5046echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5047echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5048reload_flag=$lt_cv_ld_reload_flag
5049case $reload_flag in
5050"" | " "*) ;;
5051*) reload_flag=" $reload_flag" ;;
5052esac
5053reload_cmds='$LD$reload_flag -o $output$reload_objs'
5054case $host_os in
5055  darwin*)
5056    if test "$GCC" = yes; then
5057      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5058    else
5059      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5060    fi
5061    ;;
5062esac
5063
5064echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5065echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5066if test "${lt_cv_path_NM+set}" = set; then
5067  echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069  if test -n "$NM"; then
5070  # Let the user override the test.
5071  lt_cv_path_NM="$NM"
5072else
5073  lt_nm_to_check="${ac_tool_prefix}nm"
5074  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5075    lt_nm_to_check="$lt_nm_to_check nm"
5076  fi
5077  for lt_tmp_nm in $lt_nm_to_check; do
5078    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5079    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5080      IFS="$lt_save_ifs"
5081      test -z "$ac_dir" && ac_dir=.
5082      tmp_nm="$ac_dir/$lt_tmp_nm"
5083      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5084        # Check to see if the nm accepts a BSD-compat flag.
5085        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5086        #   nm: unknown option "B" ignored
5087        # Tru64's nm complains that /dev/null is an invalid object file
5088        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5089        */dev/null* | *'Invalid file or object type'*)
5090          lt_cv_path_NM="$tmp_nm -B"
5091          break
5092          ;;
5093        *)
5094          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5095          */dev/null*)
5096            lt_cv_path_NM="$tmp_nm -p"
5097            break
5098            ;;
5099          *)
5100            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5101            continue # so that we can try to find one that supports BSD flags
5102            ;;
5103          esac
5104          ;;
5105        esac
5106      fi
5107    done
5108    IFS="$lt_save_ifs"
5109  done
5110  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5111fi
5112fi
5113echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5114echo "${ECHO_T}$lt_cv_path_NM" >&6
5115NM="$lt_cv_path_NM"
5116
5117echo "$as_me:$LINENO: checking whether ln -s works" >&5
5118echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5119LN_S=$as_ln_s
5120if test "$LN_S" = "ln -s"; then
5121  echo "$as_me:$LINENO: result: yes" >&5
5122echo "${ECHO_T}yes" >&6
5123else
5124  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5125echo "${ECHO_T}no, using $LN_S" >&6
5126fi
5127
5128echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5129echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5130if test "${lt_cv_deplibs_check_method+set}" = set; then
5131  echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133  lt_cv_file_magic_cmd='$MAGIC_CMD'
5134lt_cv_file_magic_test_file=
5135lt_cv_deplibs_check_method='unknown'
5136# Need to set the preceding variable on all platforms that support
5137# interlibrary dependencies.
5138# 'none' -- dependencies not supported.
5139# `unknown' -- same as none, but documents that we really don't know.
5140# 'pass_all' -- all dependencies passed with no checks.
5141# 'test_compile' -- check by making test program.
5142# 'file_magic [[regex]]' -- check by looking for files in library path
5143# which responds to the $file_magic_cmd with a given extended regex.
5144# If you have `file' or equivalent on your system and you're not sure
5145# whether `pass_all' will *always* work, you probably want this one.
5146
5147case $host_os in
5148aix4* | aix5*)
5149  lt_cv_deplibs_check_method=pass_all
5150  ;;
5151
5152beos*)
5153  lt_cv_deplibs_check_method=pass_all
5154  ;;
5155
5156bsdi[45]*)
5157  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5158  lt_cv_file_magic_cmd='/usr/bin/file -L'
5159  lt_cv_file_magic_test_file=/shlib/libc.so
5160  ;;
5161
5162cygwin*)
5163  # func_win32_libid is a shell function defined in ltmain.sh
5164  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5165  lt_cv_file_magic_cmd='func_win32_libid'
5166  ;;
5167
5168mingw* | pw32*)
5169  # Base MSYS/MinGW do not provide the 'file' command needed by
5170  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5171  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5172  lt_cv_file_magic_cmd='$OBJDUMP -f'
5173  ;;
5174
5175darwin* | rhapsody*)
5176  lt_cv_deplibs_check_method=pass_all
5177  ;;
5178
5179freebsd* | kfreebsd*-gnu | dragonfly*)
5180  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5181    case $host_cpu in
5182    i*86 )
5183      # Not sure whether the presence of OpenBSD here was a mistake.
5184      # Let's accept both of them until this is cleared up.
5185      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5186      lt_cv_file_magic_cmd=/usr/bin/file
5187      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5188      ;;
5189    esac
5190  else
5191    lt_cv_deplibs_check_method=pass_all
5192  fi
5193  ;;
5194
5195gnu*)
5196  lt_cv_deplibs_check_method=pass_all
5197  ;;
5198
5199hpux10.20* | hpux11*)
5200  lt_cv_file_magic_cmd=/usr/bin/file
5201  case $host_cpu in
5202  ia64*)
5203    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5204    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5205    ;;
5206  hppa*64*)
5207    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]'
5208    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5209    ;;
5210  *)
5211    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5212    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5213    ;;
5214  esac
5215  ;;
5216
5217interix3*)
5218  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5219  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5220  ;;
5221
5222irix5* | irix6* | nonstopux*)
5223  case $LD in
5224  *-32|*"-32 ") libmagic=32-bit;;
5225  *-n32|*"-n32 ") libmagic=N32;;
5226  *-64|*"-64 ") libmagic=64-bit;;
5227  *) libmagic=never-match;;
5228  esac
5229  lt_cv_deplibs_check_method=pass_all
5230  ;;
5231
5232# This must be Linux ELF.
5233linux*)
5234  lt_cv_deplibs_check_method=pass_all
5235  ;;
5236
5237netbsd*)
5238  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5239    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5240  else
5241    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5242  fi
5243  ;;
5244
5245newos6*)
5246  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5247  lt_cv_file_magic_cmd=/usr/bin/file
5248  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5249  ;;
5250
5251nto-qnx*)
5252  lt_cv_deplibs_check_method=unknown
5253  ;;
5254
5255openbsd*)
5256  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5257    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5258  else
5259    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5260  fi
5261  ;;
5262
5263osf3* | osf4* | osf5*)
5264  lt_cv_deplibs_check_method=pass_all
5265  ;;
5266
5267solaris*)
5268  lt_cv_deplibs_check_method=pass_all
5269  ;;
5270
5271sysv4 | sysv4.3*)
5272  case $host_vendor in
5273  motorola)
5274    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]'
5275    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5276    ;;
5277  ncr)
5278    lt_cv_deplibs_check_method=pass_all
5279    ;;
5280  sequent)
5281    lt_cv_file_magic_cmd='/bin/file'
5282    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5283    ;;
5284  sni)
5285    lt_cv_file_magic_cmd='/bin/file'
5286    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5287    lt_cv_file_magic_test_file=/lib/libc.so
5288    ;;
5289  siemens)
5290    lt_cv_deplibs_check_method=pass_all
5291    ;;
5292  pc)
5293    lt_cv_deplibs_check_method=pass_all
5294    ;;
5295  esac
5296  ;;
5297
5298sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5299  lt_cv_deplibs_check_method=pass_all
5300  ;;
5301esac
5302
5303fi
5304echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5305echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5306file_magic_cmd=$lt_cv_file_magic_cmd
5307deplibs_check_method=$lt_cv_deplibs_check_method
5308test -z "$deplibs_check_method" && deplibs_check_method=unknown
5309
5310
5311
5312
5313# If no C compiler was specified, use CC.
5314LTCC=${LTCC-"$CC"}
5315
5316# If no C compiler flags were specified, use CFLAGS.
5317LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5318
5319# Allow CC to be a program name with arguments.
5320compiler=$CC
5321
5322# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5323if test "${enable_libtool_lock+set}" = set; then
5324  enableval="$enable_libtool_lock"
5325
5326fi;
5327test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5328
5329# Some flags need to be propagated to the compiler or linker for good
5330# libtool support.
5331case $host in
5332ia64-*-hpux*)
5333  # Find out which ABI we are using.
5334  echo 'int i;' > conftest.$ac_ext
5335  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336  (eval $ac_compile) 2>&5
5337  ac_status=$?
5338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339  (exit $ac_status); }; then
5340    case `/usr/bin/file conftest.$ac_objext` in
5341    *ELF-32*)
5342      HPUX_IA64_MODE="32"
5343      ;;
5344    *ELF-64*)
5345      HPUX_IA64_MODE="64"
5346      ;;
5347    esac
5348  fi
5349  rm -rf conftest*
5350  ;;
5351*-*-irix6*)
5352  # Find out which ABI we are using.
5353  echo '#line 5353 "configure"' > conftest.$ac_ext
5354  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5355  (eval $ac_compile) 2>&5
5356  ac_status=$?
5357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358  (exit $ac_status); }; then
5359   if test "$lt_cv_prog_gnu_ld" = yes; then
5360    case `/usr/bin/file conftest.$ac_objext` in
5361    *32-bit*)
5362      LD="${LD-ld} -melf32bsmip"
5363      ;;
5364    *N32*)
5365      LD="${LD-ld} -melf32bmipn32"
5366      ;;
5367    *64-bit*)
5368      LD="${LD-ld} -melf64bmip"
5369      ;;
5370    esac
5371   else
5372    case `/usr/bin/file conftest.$ac_objext` in
5373    *32-bit*)
5374      LD="${LD-ld} -32"
5375      ;;
5376    *N32*)
5377      LD="${LD-ld} -n32"
5378      ;;
5379    *64-bit*)
5380      LD="${LD-ld} -64"
5381      ;;
5382    esac
5383   fi
5384  fi
5385  rm -rf conftest*
5386  ;;
5387
5388x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5389  # Find out which ABI we are using.
5390  echo 'int i;' > conftest.$ac_ext
5391  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392  (eval $ac_compile) 2>&5
5393  ac_status=$?
5394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395  (exit $ac_status); }; then
5396    case `/usr/bin/file conftest.o` in
5397    *32-bit*)
5398      case $host in
5399        x86_64-*linux*)
5400          LD="${LD-ld} -m elf_i386"
5401          ;;
5402        ppc64-*linux*|powerpc64-*linux*)
5403          LD="${LD-ld} -m elf32ppclinux"
5404          ;;
5405        s390x-*linux*)
5406          LD="${LD-ld} -m elf_s390"
5407          ;;
5408        sparc64-*linux*)
5409          LD="${LD-ld} -m elf32_sparc"
5410          ;;
5411      esac
5412      ;;
5413    *64-bit*)
5414      case $host in
5415        x86_64-*linux*)
5416          LD="${LD-ld} -m elf_x86_64"
5417          ;;
5418        ppc*-*linux*|powerpc*-*linux*)
5419          LD="${LD-ld} -m elf64ppc"
5420          ;;
5421        s390*-*linux*)
5422          LD="${LD-ld} -m elf64_s390"
5423          ;;
5424        sparc*-*linux*)
5425          LD="${LD-ld} -m elf64_sparc"
5426          ;;
5427      esac
5428      ;;
5429    esac
5430  fi
5431  rm -rf conftest*
5432  ;;
5433
5434*-*-sco3.2v5*)
5435  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5436  SAVE_CFLAGS="$CFLAGS"
5437  CFLAGS="$CFLAGS -belf"
5438  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5439echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5440if test "${lt_cv_cc_needs_belf+set}" = set; then
5441  echo $ECHO_N "(cached) $ECHO_C" >&6
5442else
5443  ac_ext=c
5444ac_cpp='$CPP $CPPFLAGS'
5445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447ac_compiler_gnu=$ac_cv_c_compiler_gnu
5448
5449     cat >conftest.$ac_ext <<_ACEOF
5450/* confdefs.h.  */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h.  */
5455
5456int
5457main ()
5458{
5459
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464rm -f conftest.$ac_objext conftest$ac_exeext
5465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466  (eval $ac_link) 2>conftest.er1
5467  ac_status=$?
5468  grep -v '^ *+' conftest.er1 >conftest.err
5469  rm -f conftest.er1
5470  cat conftest.err >&5
5471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472  (exit $ac_status); } &&
5473         { ac_try='test -z "$ac_c_werror_flag"
5474                         || test ! -s conftest.err'
5475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476  (eval $ac_try) 2>&5
5477  ac_status=$?
5478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479  (exit $ac_status); }; } &&
5480         { ac_try='test -s conftest$ac_exeext'
5481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482  (eval $ac_try) 2>&5
5483  ac_status=$?
5484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485  (exit $ac_status); }; }; then
5486  lt_cv_cc_needs_belf=yes
5487else
5488  echo "$as_me: failed program was:" >&5
5489sed 's/^/| /' conftest.$ac_ext >&5
5490
5491lt_cv_cc_needs_belf=no
5492fi
5493rm -f conftest.err conftest.$ac_objext \
5494      conftest$ac_exeext conftest.$ac_ext
5495     ac_ext=c
5496ac_cpp='$CPP $CPPFLAGS'
5497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499ac_compiler_gnu=$ac_cv_c_compiler_gnu
5500
5501fi
5502echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5503echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5504  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5505    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5506    CFLAGS="$SAVE_CFLAGS"
5507  fi
5508  ;;
5509sparc*-*solaris*)
5510  # Find out which ABI we are using.
5511  echo 'int i;' > conftest.$ac_ext
5512  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5513  (eval $ac_compile) 2>&5
5514  ac_status=$?
5515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516  (exit $ac_status); }; then
5517    case `/usr/bin/file conftest.o` in
5518    *64-bit*)
5519      case $lt_cv_prog_gnu_ld in
5520      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5521      *)    LD="${LD-ld} -64" ;;
5522      esac
5523      ;;
5524    esac
5525  fi
5526  rm -rf conftest*
5527  ;;
5528
5529
5530esac
5531
5532need_locks="$enable_libtool_lock"
5533
5534
5535ac_ext=c
5536ac_cpp='$CPP $CPPFLAGS'
5537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539ac_compiler_gnu=$ac_cv_c_compiler_gnu
5540echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5541echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5542# On Suns, sometimes $CPP names a directory.
5543if test -n "$CPP" && test -d "$CPP"; then
5544  CPP=
5545fi
5546if test -z "$CPP"; then
5547  if test "${ac_cv_prog_CPP+set}" = set; then
5548  echo $ECHO_N "(cached) $ECHO_C" >&6
5549else
5550      # Double quotes because CPP needs to be expanded
5551    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5552    do
5553      ac_preproc_ok=false
5554for ac_c_preproc_warn_flag in '' yes
5555do
5556  # Use a header file that comes with gcc, so configuring glibc
5557  # with a fresh cross-compiler works.
5558  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5559  # <limits.h> exists even on freestanding compilers.
5560  # On the NeXT, cc -E runs the code through the compiler's parser,
5561  # not just through cpp. "Syntax error" is here to catch this case.
5562  cat >conftest.$ac_ext <<_ACEOF
5563/* confdefs.h.  */
5564_ACEOF
5565cat confdefs.h >>conftest.$ac_ext
5566cat >>conftest.$ac_ext <<_ACEOF
5567/* end confdefs.h.  */
5568#ifdef __STDC__
5569# include <limits.h>
5570#else
5571# include <assert.h>
5572#endif
5573                     Syntax error
5574_ACEOF
5575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5576  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5577  ac_status=$?
5578  grep -v '^ *+' conftest.er1 >conftest.err
5579  rm -f conftest.er1
5580  cat conftest.err >&5
5581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582  (exit $ac_status); } >/dev/null; then
5583  if test -s conftest.err; then
5584    ac_cpp_err=$ac_c_preproc_warn_flag
5585    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5586  else
5587    ac_cpp_err=
5588  fi
5589else
5590  ac_cpp_err=yes
5591fi
5592if test -z "$ac_cpp_err"; then
5593  :
5594else
5595  echo "$as_me: failed program was:" >&5
5596sed 's/^/| /' conftest.$ac_ext >&5
5597
5598  # Broken: fails on valid input.
5599continue
5600fi
5601rm -f conftest.err conftest.$ac_ext
5602
5603  # OK, works on sane cases.  Now check whether non-existent headers
5604  # can be detected and how.
5605  cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h.  */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h.  */
5611#include <ac_nonexistent.h>
5612_ACEOF
5613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5614  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5615  ac_status=$?
5616  grep -v '^ *+' conftest.er1 >conftest.err
5617  rm -f conftest.er1
5618  cat conftest.err >&5
5619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620  (exit $ac_status); } >/dev/null; then
5621  if test -s conftest.err; then
5622    ac_cpp_err=$ac_c_preproc_warn_flag
5623    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5624  else
5625    ac_cpp_err=
5626  fi
5627else
5628  ac_cpp_err=yes
5629fi
5630if test -z "$ac_cpp_err"; then
5631  # Broken: success on invalid input.
5632continue
5633else
5634  echo "$as_me: failed program was:" >&5
5635sed 's/^/| /' conftest.$ac_ext >&5
5636
5637  # Passes both tests.
5638ac_preproc_ok=:
5639break
5640fi
5641rm -f conftest.err conftest.$ac_ext
5642
5643done
5644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5645rm -f conftest.err conftest.$ac_ext
5646if $ac_preproc_ok; then
5647  break
5648fi
5649
5650    done
5651    ac_cv_prog_CPP=$CPP
5652
5653fi
5654  CPP=$ac_cv_prog_CPP
5655else
5656  ac_cv_prog_CPP=$CPP
5657fi
5658echo "$as_me:$LINENO: result: $CPP" >&5
5659echo "${ECHO_T}$CPP" >&6
5660ac_preproc_ok=false
5661for ac_c_preproc_warn_flag in '' yes
5662do
5663  # Use a header file that comes with gcc, so configuring glibc
5664  # with a fresh cross-compiler works.
5665  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5666  # <limits.h> exists even on freestanding compilers.
5667  # On the NeXT, cc -E runs the code through the compiler's parser,
5668  # not just through cpp. "Syntax error" is here to catch this case.
5669  cat >conftest.$ac_ext <<_ACEOF
5670/* confdefs.h.  */
5671_ACEOF
5672cat confdefs.h >>conftest.$ac_ext
5673cat >>conftest.$ac_ext <<_ACEOF
5674/* end confdefs.h.  */
5675#ifdef __STDC__
5676# include <limits.h>
5677#else
5678# include <assert.h>
5679#endif
5680                     Syntax error
5681_ACEOF
5682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5683  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5684  ac_status=$?
5685  grep -v '^ *+' conftest.er1 >conftest.err
5686  rm -f conftest.er1
5687  cat conftest.err >&5
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); } >/dev/null; then
5690  if test -s conftest.err; then
5691    ac_cpp_err=$ac_c_preproc_warn_flag
5692    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5693  else
5694    ac_cpp_err=
5695  fi
5696else
5697  ac_cpp_err=yes
5698fi
5699if test -z "$ac_cpp_err"; then
5700  :
5701else
5702  echo "$as_me: failed program was:" >&5
5703sed 's/^/| /' conftest.$ac_ext >&5
5704
5705  # Broken: fails on valid input.
5706continue
5707fi
5708rm -f conftest.err conftest.$ac_ext
5709
5710  # OK, works on sane cases.  Now check whether non-existent headers
5711  # can be detected and how.
5712  cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h.  */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h.  */
5718#include <ac_nonexistent.h>
5719_ACEOF
5720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5722  ac_status=$?
5723  grep -v '^ *+' conftest.er1 >conftest.err
5724  rm -f conftest.er1
5725  cat conftest.err >&5
5726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727  (exit $ac_status); } >/dev/null; then
5728  if test -s conftest.err; then
5729    ac_cpp_err=$ac_c_preproc_warn_flag
5730    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5731  else
5732    ac_cpp_err=
5733  fi
5734else
5735  ac_cpp_err=yes
5736fi
5737if test -z "$ac_cpp_err"; then
5738  # Broken: success on invalid input.
5739continue
5740else
5741  echo "$as_me: failed program was:" >&5
5742sed 's/^/| /' conftest.$ac_ext >&5
5743
5744  # Passes both tests.
5745ac_preproc_ok=:
5746break
5747fi
5748rm -f conftest.err conftest.$ac_ext
5749
5750done
5751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5752rm -f conftest.err conftest.$ac_ext
5753if $ac_preproc_ok; then
5754  :
5755else
5756  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5757See \`config.log' for more details." >&5
5758echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5759See \`config.log' for more details." >&2;}
5760   { (exit 1); exit 1; }; }
5761fi
5762
5763ac_ext=c
5764ac_cpp='$CPP $CPPFLAGS'
5765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767ac_compiler_gnu=$ac_cv_c_compiler_gnu
5768
5769
5770echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5771echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5772if test "${ac_cv_header_stdc+set}" = set; then
5773  echo $ECHO_N "(cached) $ECHO_C" >&6
5774else
5775  cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h.  */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h.  */
5781#include <stdlib.h>
5782#include <stdarg.h>
5783#include <string.h>
5784#include <float.h>
5785
5786int
5787main ()
5788{
5789
5790  ;
5791  return 0;
5792}
5793_ACEOF
5794rm -f conftest.$ac_objext
5795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796  (eval $ac_compile) 2>conftest.er1
5797  ac_status=$?
5798  grep -v '^ *+' conftest.er1 >conftest.err
5799  rm -f conftest.er1
5800  cat conftest.err >&5
5801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802  (exit $ac_status); } &&
5803         { ac_try='test -z "$ac_c_werror_flag"
5804                         || test ! -s conftest.err'
5805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806  (eval $ac_try) 2>&5
5807  ac_status=$?
5808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809  (exit $ac_status); }; } &&
5810         { ac_try='test -s conftest.$ac_objext'
5811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812  (eval $ac_try) 2>&5
5813  ac_status=$?
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); }; }; then
5816  ac_cv_header_stdc=yes
5817else
5818  echo "$as_me: failed program was:" >&5
5819sed 's/^/| /' conftest.$ac_ext >&5
5820
5821ac_cv_header_stdc=no
5822fi
5823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5824
5825if test $ac_cv_header_stdc = yes; then
5826  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5827  cat >conftest.$ac_ext <<_ACEOF
5828/* confdefs.h.  */
5829_ACEOF
5830cat confdefs.h >>conftest.$ac_ext
5831cat >>conftest.$ac_ext <<_ACEOF
5832/* end confdefs.h.  */
5833#include <string.h>
5834
5835_ACEOF
5836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5837  $EGREP "memchr" >/dev/null 2>&1; then
5838  :
5839else
5840  ac_cv_header_stdc=no
5841fi
5842rm -f conftest*
5843
5844fi
5845
5846if test $ac_cv_header_stdc = yes; then
5847  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5848  cat >conftest.$ac_ext <<_ACEOF
5849/* confdefs.h.  */
5850_ACEOF
5851cat confdefs.h >>conftest.$ac_ext
5852cat >>conftest.$ac_ext <<_ACEOF
5853/* end confdefs.h.  */
5854#include <stdlib.h>
5855
5856_ACEOF
5857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5858  $EGREP "free" >/dev/null 2>&1; then
5859  :
5860else
5861  ac_cv_header_stdc=no
5862fi
5863rm -f conftest*
5864
5865fi
5866
5867if test $ac_cv_header_stdc = yes; then
5868  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5869  if test "$cross_compiling" = yes; then
5870  :
5871else
5872  cat >conftest.$ac_ext <<_ACEOF
5873/* confdefs.h.  */
5874_ACEOF
5875cat confdefs.h >>conftest.$ac_ext
5876cat >>conftest.$ac_ext <<_ACEOF
5877/* end confdefs.h.  */
5878#include <ctype.h>
5879#if ((' ' & 0x0FF) == 0x020)
5880# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5881# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5882#else
5883# define ISLOWER(c) \
5884                   (('a' <= (c) && (c) <= 'i') \
5885                     || ('j' <= (c) && (c) <= 'r') \
5886                     || ('s' <= (c) && (c) <= 'z'))
5887# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5888#endif
5889
5890#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5891int
5892main ()
5893{
5894  int i;
5895  for (i = 0; i < 256; i++)
5896    if (XOR (islower (i), ISLOWER (i))
5897        || toupper (i) != TOUPPER (i))
5898      exit(2);
5899  exit (0);
5900}
5901_ACEOF
5902rm -f conftest$ac_exeext
5903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5904  (eval $ac_link) 2>&5
5905  ac_status=$?
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5909  (eval $ac_try) 2>&5
5910  ac_status=$?
5911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); }; }; then
5913  :
5914else
5915  echo "$as_me: program exited with status $ac_status" >&5
5916echo "$as_me: failed program was:" >&5
5917sed 's/^/| /' conftest.$ac_ext >&5
5918
5919( exit $ac_status )
5920ac_cv_header_stdc=no
5921fi
5922rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5923fi
5924fi
5925fi
5926echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5927echo "${ECHO_T}$ac_cv_header_stdc" >&6
5928if test $ac_cv_header_stdc = yes; then
5929
5930cat >>confdefs.h <<\_ACEOF
5931#define STDC_HEADERS 1
5932_ACEOF
5933
5934fi
5935
5936# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5947                  inttypes.h stdint.h unistd.h
5948do
5949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5950echo "$as_me:$LINENO: checking for $ac_header" >&5
5951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5952if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953  echo $ECHO_N "(cached) $ECHO_C" >&6
5954else
5955  cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h.  */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h.  */
5961$ac_includes_default
5962
5963#include <$ac_header>
5964_ACEOF
5965rm -f conftest.$ac_objext
5966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967  (eval $ac_compile) 2>conftest.er1
5968  ac_status=$?
5969  grep -v '^ *+' conftest.er1 >conftest.err
5970  rm -f conftest.er1
5971  cat conftest.err >&5
5972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973  (exit $ac_status); } &&
5974         { ac_try='test -z "$ac_c_werror_flag"
5975                         || test ! -s conftest.err'
5976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5977  (eval $ac_try) 2>&5
5978  ac_status=$?
5979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); }; } &&
5981         { ac_try='test -s conftest.$ac_objext'
5982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5983  (eval $ac_try) 2>&5
5984  ac_status=$?
5985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986  (exit $ac_status); }; }; then
5987  eval "$as_ac_Header=yes"
5988else
5989  echo "$as_me: failed program was:" >&5
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
5992eval "$as_ac_Header=no"
5993fi
5994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5995fi
5996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5997echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5998if test `eval echo '${'$as_ac_Header'}'` = yes; then
5999  cat >>confdefs.h <<_ACEOF
6000#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6001_ACEOF
6002
6003fi
6004
6005done
6006
6007
6008
6009for ac_header in dlfcn.h
6010do
6011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012if eval "test \"\${$as_ac_Header+set}\" = set"; then
6013  echo "$as_me:$LINENO: checking for $ac_header" >&5
6014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017fi
6018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6020else
6021  # Is the header compilable?
6022echo "$as_me:$LINENO: checking $ac_header usability" >&5
6023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6024cat >conftest.$ac_ext <<_ACEOF
6025/* confdefs.h.  */
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h.  */
6030$ac_includes_default
6031#include <$ac_header>
6032_ACEOF
6033rm -f conftest.$ac_objext
6034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035  (eval $ac_compile) 2>conftest.er1
6036  ac_status=$?
6037  grep -v '^ *+' conftest.er1 >conftest.err
6038  rm -f conftest.er1
6039  cat conftest.err >&5
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); } &&
6042         { ac_try='test -z "$ac_c_werror_flag"
6043                         || test ! -s conftest.err'
6044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045  (eval $ac_try) 2>&5
6046  ac_status=$?
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); }; } &&
6049         { ac_try='test -s conftest.$ac_objext'
6050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051  (eval $ac_try) 2>&5
6052  ac_status=$?
6053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054  (exit $ac_status); }; }; then
6055  ac_header_compiler=yes
6056else
6057  echo "$as_me: failed program was:" >&5
6058sed 's/^/| /' conftest.$ac_ext >&5
6059
6060ac_header_compiler=no
6061fi
6062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6064echo "${ECHO_T}$ac_header_compiler" >&6
6065
6066# Is the header present?
6067echo "$as_me:$LINENO: checking $ac_header presence" >&5
6068echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6069cat >conftest.$ac_ext <<_ACEOF
6070/* confdefs.h.  */
6071_ACEOF
6072cat confdefs.h >>conftest.$ac_ext
6073cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h.  */
6075#include <$ac_header>
6076_ACEOF
6077if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6078  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6079  ac_status=$?
6080  grep -v '^ *+' conftest.er1 >conftest.err
6081  rm -f conftest.er1
6082  cat conftest.err >&5
6083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084  (exit $ac_status); } >/dev/null; then
6085  if test -s conftest.err; then
6086    ac_cpp_err=$ac_c_preproc_warn_flag
6087    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6088  else
6089    ac_cpp_err=
6090  fi
6091else
6092  ac_cpp_err=yes
6093fi
6094if test -z "$ac_cpp_err"; then
6095  ac_header_preproc=yes
6096else
6097  echo "$as_me: failed program was:" >&5
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
6100  ac_header_preproc=no
6101fi
6102rm -f conftest.err conftest.$ac_ext
6103echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6104echo "${ECHO_T}$ac_header_preproc" >&6
6105
6106# So?  What about this header?
6107case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6108  yes:no: )
6109    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6110echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6111    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6112echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6113    ac_header_preproc=yes
6114    ;;
6115  no:yes:* )
6116    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6117echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6118    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6119echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6120    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6121echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6122    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6123echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6124    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6125echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6126    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6127echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6128    (
6129      cat <<\_ASBOX
6130## --------------------------------------------------------------- ##
6131## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6132## --------------------------------------------------------------- ##
6133_ASBOX
6134    ) |
6135      sed "s/^/$as_me: WARNING:     /" >&2
6136    ;;
6137esac
6138echo "$as_me:$LINENO: checking for $ac_header" >&5
6139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6140if eval "test \"\${$as_ac_Header+set}\" = set"; then
6141  echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143  eval "$as_ac_Header=\$ac_header_preproc"
6144fi
6145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6147
6148fi
6149if test `eval echo '${'$as_ac_Header'}'` = yes; then
6150  cat >>confdefs.h <<_ACEOF
6151#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6152_ACEOF
6153
6154fi
6155
6156done
6157
6158ac_ext=cc
6159ac_cpp='$CXXCPP $CPPFLAGS'
6160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6163if test -n "$ac_tool_prefix"; then
6164  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6165  do
6166    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6167set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6168echo "$as_me:$LINENO: checking for $ac_word" >&5
6169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6170if test "${ac_cv_prog_CXX+set}" = set; then
6171  echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
6173  if test -n "$CXX"; then
6174  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6175else
6176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177for as_dir in $PATH
6178do
6179  IFS=$as_save_IFS
6180  test -z "$as_dir" && as_dir=.
6181  for ac_exec_ext in '' $ac_executable_extensions; do
6182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185    break 2
6186  fi
6187done
6188done
6189
6190fi
6191fi
6192CXX=$ac_cv_prog_CXX
6193if test -n "$CXX"; then
6194  echo "$as_me:$LINENO: result: $CXX" >&5
6195echo "${ECHO_T}$CXX" >&6
6196else
6197  echo "$as_me:$LINENO: result: no" >&5
6198echo "${ECHO_T}no" >&6
6199fi
6200
6201    test -n "$CXX" && break
6202  done
6203fi
6204if test -z "$CXX"; then
6205  ac_ct_CXX=$CXX
6206  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6207do
6208  # Extract the first word of "$ac_prog", so it can be a program name with args.
6209set dummy $ac_prog; ac_word=$2
6210echo "$as_me:$LINENO: checking for $ac_word" >&5
6211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6213  echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215  if test -n "$ac_ct_CXX"; then
6216  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221  IFS=$as_save_IFS
6222  test -z "$as_dir" && as_dir=.
6223  for ac_exec_ext in '' $ac_executable_extensions; do
6224  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225    ac_cv_prog_ac_ct_CXX="$ac_prog"
6226    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6227    break 2
6228  fi
6229done
6230done
6231
6232fi
6233fi
6234ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6235if test -n "$ac_ct_CXX"; then
6236  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6237echo "${ECHO_T}$ac_ct_CXX" >&6
6238else
6239  echo "$as_me:$LINENO: result: no" >&5
6240echo "${ECHO_T}no" >&6
6241fi
6242
6243  test -n "$ac_ct_CXX" && break
6244done
6245test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6246
6247  CXX=$ac_ct_CXX
6248fi
6249
6250
6251# Provide some information about the compiler.
6252echo "$as_me:$LINENO:" \
6253     "checking for C++ compiler version" >&5
6254ac_compiler=`set X $ac_compile; echo $2`
6255{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6256  (eval $ac_compiler --version </dev/null >&5) 2>&5
6257  ac_status=$?
6258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259  (exit $ac_status); }
6260{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6261  (eval $ac_compiler -v </dev/null >&5) 2>&5
6262  ac_status=$?
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); }
6265{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6266  (eval $ac_compiler -V </dev/null >&5) 2>&5
6267  ac_status=$?
6268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269  (exit $ac_status); }
6270
6271echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6272echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6273if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6274  echo $ECHO_N "(cached) $ECHO_C" >&6
6275else
6276  cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h.  */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h.  */
6282
6283int
6284main ()
6285{
6286#ifndef __GNUC__
6287       choke me
6288#endif
6289
6290  ;
6291  return 0;
6292}
6293_ACEOF
6294rm -f conftest.$ac_objext
6295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6296  (eval $ac_compile) 2>conftest.er1
6297  ac_status=$?
6298  grep -v '^ *+' conftest.er1 >conftest.err
6299  rm -f conftest.er1
6300  cat conftest.err >&5
6301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302  (exit $ac_status); } &&
6303         { ac_try='test -z "$ac_cxx_werror_flag"
6304                         || test ! -s conftest.err'
6305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6306  (eval $ac_try) 2>&5
6307  ac_status=$?
6308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309  (exit $ac_status); }; } &&
6310         { ac_try='test -s conftest.$ac_objext'
6311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312  (eval $ac_try) 2>&5
6313  ac_status=$?
6314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315  (exit $ac_status); }; }; then
6316  ac_compiler_gnu=yes
6317else
6318  echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321ac_compiler_gnu=no
6322fi
6323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6324ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6325
6326fi
6327echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6328echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6329GXX=`test $ac_compiler_gnu = yes && echo yes`
6330ac_test_CXXFLAGS=${CXXFLAGS+set}
6331ac_save_CXXFLAGS=$CXXFLAGS
6332CXXFLAGS="-g"
6333echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6334echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6335if test "${ac_cv_prog_cxx_g+set}" = set; then
6336  echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338  cat >conftest.$ac_ext <<_ACEOF
6339/* confdefs.h.  */
6340_ACEOF
6341cat confdefs.h >>conftest.$ac_ext
6342cat >>conftest.$ac_ext <<_ACEOF
6343/* end confdefs.h.  */
6344
6345int
6346main ()
6347{
6348
6349  ;
6350  return 0;
6351}
6352_ACEOF
6353rm -f conftest.$ac_objext
6354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355  (eval $ac_compile) 2>conftest.er1
6356  ac_status=$?
6357  grep -v '^ *+' conftest.er1 >conftest.err
6358  rm -f conftest.er1
6359  cat conftest.err >&5
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); } &&
6362         { ac_try='test -z "$ac_cxx_werror_flag"
6363                         || test ! -s conftest.err'
6364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365  (eval $ac_try) 2>&5
6366  ac_status=$?
6367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368  (exit $ac_status); }; } &&
6369         { ac_try='test -s conftest.$ac_objext'
6370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371  (eval $ac_try) 2>&5
6372  ac_status=$?
6373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); }; }; then
6375  ac_cv_prog_cxx_g=yes
6376else
6377  echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380ac_cv_prog_cxx_g=no
6381fi
6382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383fi
6384echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6385echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6386if test "$ac_test_CXXFLAGS" = set; then
6387  CXXFLAGS=$ac_save_CXXFLAGS
6388elif test $ac_cv_prog_cxx_g = yes; then
6389  if test "$GXX" = yes; then
6390    CXXFLAGS="-g -O2"
6391  else
6392    CXXFLAGS="-g"
6393  fi
6394else
6395  if test "$GXX" = yes; then
6396    CXXFLAGS="-O2"
6397  else
6398    CXXFLAGS=
6399  fi
6400fi
6401for ac_declaration in \
6402   '' \
6403   'extern "C" void std::exit (int) throw (); using std::exit;' \
6404   'extern "C" void std::exit (int); using std::exit;' \
6405   'extern "C" void exit (int) throw ();' \
6406   'extern "C" void exit (int);' \
6407   'void exit (int);'
6408do
6409  cat >conftest.$ac_ext <<_ACEOF
6410/* confdefs.h.  */
6411_ACEOF
6412cat confdefs.h >>conftest.$ac_ext
6413cat >>conftest.$ac_ext <<_ACEOF
6414/* end confdefs.h.  */
6415$ac_declaration
6416#include <stdlib.h>
6417int
6418main ()
6419{
6420exit (42);
6421  ;
6422  return 0;
6423}
6424_ACEOF
6425rm -f conftest.$ac_objext
6426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427  (eval $ac_compile) 2>conftest.er1
6428  ac_status=$?
6429  grep -v '^ *+' conftest.er1 >conftest.err
6430  rm -f conftest.er1
6431  cat conftest.err >&5
6432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433  (exit $ac_status); } &&
6434         { ac_try='test -z "$ac_cxx_werror_flag"
6435                         || test ! -s conftest.err'
6436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437  (eval $ac_try) 2>&5
6438  ac_status=$?
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); }; } &&
6441         { ac_try='test -s conftest.$ac_objext'
6442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443  (eval $ac_try) 2>&5
6444  ac_status=$?
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); }; }; then
6447  :
6448else
6449  echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452continue
6453fi
6454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455  cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h.  */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h.  */
6461$ac_declaration
6462int
6463main ()
6464{
6465exit (42);
6466  ;
6467  return 0;
6468}
6469_ACEOF
6470rm -f conftest.$ac_objext
6471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6472  (eval $ac_compile) 2>conftest.er1
6473  ac_status=$?
6474  grep -v '^ *+' conftest.er1 >conftest.err
6475  rm -f conftest.er1
6476  cat conftest.err >&5
6477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478  (exit $ac_status); } &&
6479         { ac_try='test -z "$ac_cxx_werror_flag"
6480                         || test ! -s conftest.err'
6481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482  (eval $ac_try) 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; } &&
6486         { ac_try='test -s conftest.$ac_objext'
6487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488  (eval $ac_try) 2>&5
6489  ac_status=$?
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); }; }; then
6492  break
6493else
6494  echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497fi
6498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6499done
6500rm -f conftest*
6501if test -n "$ac_declaration"; then
6502  echo '#ifdef __cplusplus' >>confdefs.h
6503  echo $ac_declaration      >>confdefs.h
6504  echo '#endif'             >>confdefs.h
6505fi
6506
6507ac_ext=cc
6508ac_cpp='$CXXCPP $CPPFLAGS'
6509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6512
6513depcc="$CXX"  am_compiler_list=
6514
6515echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6516echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6517if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6518  echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6521  # We make a subdir and do the tests there.  Otherwise we can end up
6522  # making bogus files that we don't know about and never remove.  For
6523  # instance it was reported that on HP-UX the gcc test will end up
6524  # making a dummy file named `D' -- because `-MD' means `put the output
6525  # in D'.
6526  mkdir conftest.dir
6527  # Copy depcomp to subdir because otherwise we won't find it if we're
6528  # using a relative directory.
6529  cp "$am_depcomp" conftest.dir
6530  cd conftest.dir
6531  # We will build objects and dependencies in a subdirectory because
6532  # it helps to detect inapplicable dependency modes.  For instance
6533  # both Tru64's cc and ICC support -MD to output dependencies as a
6534  # side effect of compilation, but ICC will put the dependencies in
6535  # the current directory while Tru64 will put them in the object
6536  # directory.
6537  mkdir sub
6538
6539  am_cv_CXX_dependencies_compiler_type=none
6540  if test "$am_compiler_list" = ""; then
6541     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6542  fi
6543  for depmode in $am_compiler_list; do
6544    # Setup a source with many dependencies, because some compilers
6545    # like to wrap large dependency lists on column 80 (with \), and
6546    # we should not choose a depcomp mode which is confused by this.
6547    #
6548    # We need to recreate these files for each test, as the compiler may
6549    # overwrite some of them when testing with obscure command lines.
6550    # This happens at least with the AIX C compiler.
6551    : > sub/conftest.c
6552    for i in 1 2 3 4 5 6; do
6553      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6554      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6555      # Solaris 8's {/usr,}/bin/sh.
6556      touch sub/conftst$i.h
6557    done
6558    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6559
6560    case $depmode in
6561    nosideeffect)
6562      # after this tag, mechanisms are not by side-effect, so they'll
6563      # only be used when explicitly requested
6564      if test "x$enable_dependency_tracking" = xyes; then
6565        continue
6566      else
6567        break
6568      fi
6569      ;;
6570    none) break ;;
6571    esac
6572    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6573    # mode.  It turns out that the SunPro C++ compiler does not properly
6574    # handle `-M -o', and we need to detect this.
6575    if depmode=$depmode \
6576       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6577       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6578       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6579         >/dev/null 2>conftest.err &&
6580       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6581       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6582       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6583      # icc doesn't choke on unknown options, it will just issue warnings
6584      # or remarks (even with -Werror).  So we grep stderr for any message
6585      # that says an option was ignored or not supported.
6586      # When given -MP, icc 7.0 and 7.1 complain thusly:
6587      #   icc: Command line warning: ignoring option '-M'; no argument required
6588      # The diagnosis changed in icc 8.0:
6589      #   icc: Command line remark: option '-MP' not supported
6590      if (grep 'ignoring option' conftest.err ||
6591          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6592        am_cv_CXX_dependencies_compiler_type=$depmode
6593        break
6594      fi
6595    fi
6596  done
6597
6598  cd ..
6599  rm -rf conftest.dir
6600else
6601  am_cv_CXX_dependencies_compiler_type=none
6602fi
6603
6604fi
6605echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6606echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6607CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6608
6609
6610
6611if
6612  test "x$enable_dependency_tracking" != xno \
6613  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6614  am__fastdepCXX_TRUE=
6615  am__fastdepCXX_FALSE='#'
6616else
6617  am__fastdepCXX_TRUE='#'
6618  am__fastdepCXX_FALSE=
6619fi
6620
6621
6622
6623
6624if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6625    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6626    (test "X$CXX" != "Xg++"))) ; then
6627  ac_ext=cc
6628ac_cpp='$CXXCPP $CPPFLAGS'
6629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6632echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6633echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6634if test -z "$CXXCPP"; then
6635  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6636  echo $ECHO_N "(cached) $ECHO_C" >&6
6637else
6638      # Double quotes because CXXCPP needs to be expanded
6639    for CXXCPP in "$CXX -E" "/lib/cpp"
6640    do
6641      ac_preproc_ok=false
6642for ac_cxx_preproc_warn_flag in '' yes
6643do
6644  # Use a header file that comes with gcc, so configuring glibc
6645  # with a fresh cross-compiler works.
6646  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6647  # <limits.h> exists even on freestanding compilers.
6648  # On the NeXT, cc -E runs the code through the compiler's parser,
6649  # not just through cpp. "Syntax error" is here to catch this case.
6650  cat >conftest.$ac_ext <<_ACEOF
6651/* confdefs.h.  */
6652_ACEOF
6653cat confdefs.h >>conftest.$ac_ext
6654cat >>conftest.$ac_ext <<_ACEOF
6655/* end confdefs.h.  */
6656#ifdef __STDC__
6657# include <limits.h>
6658#else
6659# include <assert.h>
6660#endif
6661                     Syntax error
6662_ACEOF
6663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6664  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6665  ac_status=$?
6666  grep -v '^ *+' conftest.er1 >conftest.err
6667  rm -f conftest.er1
6668  cat conftest.err >&5
6669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670  (exit $ac_status); } >/dev/null; then
6671  if test -s conftest.err; then
6672    ac_cpp_err=$ac_cxx_preproc_warn_flag
6673    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6674  else
6675    ac_cpp_err=
6676  fi
6677else
6678  ac_cpp_err=yes
6679fi
6680if test -z "$ac_cpp_err"; then
6681  :
6682else
6683  echo "$as_me: failed program was:" >&5
6684sed 's/^/| /' conftest.$ac_ext >&5
6685
6686  # Broken: fails on valid input.
6687continue
6688fi
6689rm -f conftest.err conftest.$ac_ext
6690
6691  # OK, works on sane cases.  Now check whether non-existent headers
6692  # can be detected and how.
6693  cat >conftest.$ac_ext <<_ACEOF
6694/* confdefs.h.  */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h.  */
6699#include <ac_nonexistent.h>
6700_ACEOF
6701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6702  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6703  ac_status=$?
6704  grep -v '^ *+' conftest.er1 >conftest.err
6705  rm -f conftest.er1
6706  cat conftest.err >&5
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); } >/dev/null; then
6709  if test -s conftest.err; then
6710    ac_cpp_err=$ac_cxx_preproc_warn_flag
6711    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6712  else
6713    ac_cpp_err=
6714  fi
6715else
6716  ac_cpp_err=yes
6717fi
6718if test -z "$ac_cpp_err"; then
6719  # Broken: success on invalid input.
6720continue
6721else
6722  echo "$as_me: failed program was:" >&5
6723sed 's/^/| /' conftest.$ac_ext >&5
6724
6725  # Passes both tests.
6726ac_preproc_ok=:
6727break
6728fi
6729rm -f conftest.err conftest.$ac_ext
6730
6731done
6732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6733rm -f conftest.err conftest.$ac_ext
6734if $ac_preproc_ok; then
6735  break
6736fi
6737
6738    done
6739    ac_cv_prog_CXXCPP=$CXXCPP
6740
6741fi
6742  CXXCPP=$ac_cv_prog_CXXCPP
6743else
6744  ac_cv_prog_CXXCPP=$CXXCPP
6745fi
6746echo "$as_me:$LINENO: result: $CXXCPP" >&5
6747echo "${ECHO_T}$CXXCPP" >&6
6748ac_preproc_ok=false
6749for ac_cxx_preproc_warn_flag in '' yes
6750do
6751  # Use a header file that comes with gcc, so configuring glibc
6752  # with a fresh cross-compiler works.
6753  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6754  # <limits.h> exists even on freestanding compilers.
6755  # On the NeXT, cc -E runs the code through the compiler's parser,
6756  # not just through cpp. "Syntax error" is here to catch this case.
6757  cat >conftest.$ac_ext <<_ACEOF
6758/* confdefs.h.  */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h.  */
6763#ifdef __STDC__
6764# include <limits.h>
6765#else
6766# include <assert.h>
6767#endif
6768                     Syntax error
6769_ACEOF
6770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6771  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6772  ac_status=$?
6773  grep -v '^ *+' conftest.er1 >conftest.err
6774  rm -f conftest.er1
6775  cat conftest.err >&5
6776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777  (exit $ac_status); } >/dev/null; then
6778  if test -s conftest.err; then
6779    ac_cpp_err=$ac_cxx_preproc_warn_flag
6780    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6781  else
6782    ac_cpp_err=
6783  fi
6784else
6785  ac_cpp_err=yes
6786fi
6787if test -z "$ac_cpp_err"; then
6788  :
6789else
6790  echo "$as_me: failed program was:" >&5
6791sed 's/^/| /' conftest.$ac_ext >&5
6792
6793  # Broken: fails on valid input.
6794continue
6795fi
6796rm -f conftest.err conftest.$ac_ext
6797
6798  # OK, works on sane cases.  Now check whether non-existent headers
6799  # can be detected and how.
6800  cat >conftest.$ac_ext <<_ACEOF
6801/* confdefs.h.  */
6802_ACEOF
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h.  */
6806#include <ac_nonexistent.h>
6807_ACEOF
6808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6809  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6810  ac_status=$?
6811  grep -v '^ *+' conftest.er1 >conftest.err
6812  rm -f conftest.er1
6813  cat conftest.err >&5
6814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815  (exit $ac_status); } >/dev/null; then
6816  if test -s conftest.err; then
6817    ac_cpp_err=$ac_cxx_preproc_warn_flag
6818    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6819  else
6820    ac_cpp_err=
6821  fi
6822else
6823  ac_cpp_err=yes
6824fi
6825if test -z "$ac_cpp_err"; then
6826  # Broken: success on invalid input.
6827continue
6828else
6829  echo "$as_me: failed program was:" >&5
6830sed 's/^/| /' conftest.$ac_ext >&5
6831
6832  # Passes both tests.
6833ac_preproc_ok=:
6834break
6835fi
6836rm -f conftest.err conftest.$ac_ext
6837
6838done
6839# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6840rm -f conftest.err conftest.$ac_ext
6841if $ac_preproc_ok; then
6842  :
6843else
6844  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6845See \`config.log' for more details." >&5
6846echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6847See \`config.log' for more details." >&2;}
6848   { (exit 1); exit 1; }; }
6849fi
6850
6851ac_ext=cc
6852ac_cpp='$CXXCPP $CPPFLAGS'
6853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6856
6857fi
6858
6859
6860
6861# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6862
6863# find the maximum length of command line arguments
6864echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6865echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6866if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6867  echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869    i=0
6870  teststring="ABCD"
6871
6872  case $build_os in
6873  msdosdjgpp*)
6874    # On DJGPP, this test can blow up pretty badly due to problems in libc
6875    # (any single argument exceeding 2000 bytes causes a buffer overrun
6876    # during glob expansion).  Even if it were fixed, the result of this
6877    # check would be larger than it should be.
6878    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6879    ;;
6880
6881  gnu*)
6882    # Under GNU Hurd, this test is not required because there is
6883    # no limit to the length of command line arguments.
6884    # Libtool will interpret -1 as no limit whatsoever
6885    lt_cv_sys_max_cmd_len=-1;
6886    ;;
6887
6888  cygwin* | mingw*)
6889    # On Win9x/ME, this test blows up -- it succeeds, but takes
6890    # about 5 minutes as the teststring grows exponentially.
6891    # Worse, since 9x/ME are not pre-emptively multitasking,
6892    # you end up with a "frozen" computer, even though with patience
6893    # the test eventually succeeds (with a max line length of 256k).
6894    # Instead, let's just punt: use the minimum linelength reported by
6895    # all of the supported platforms: 8192 (on NT/2K/XP).
6896    lt_cv_sys_max_cmd_len=8192;
6897    ;;
6898
6899  amigaos*)
6900    # On AmigaOS with pdksh, this test takes hours, literally.
6901    # So we just punt and use a minimum line length of 8192.
6902    lt_cv_sys_max_cmd_len=8192;
6903    ;;
6904
6905  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6906    # This has been around since 386BSD, at least.  Likely further.
6907    if test -x /sbin/sysctl; then
6908      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6909    elif test -x /usr/sbin/sysctl; then
6910      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6911    else
6912      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6913    fi
6914    # And add a safety zone
6915    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6916    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6917    ;;
6918
6919  interix*)
6920    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6921    lt_cv_sys_max_cmd_len=196608
6922    ;;
6923
6924  osf*)
6925    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6926    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6927    # nice to cause kernel panics so lets avoid the loop below.
6928    # First set a reasonable default.
6929    lt_cv_sys_max_cmd_len=16384
6930    #
6931    if test -x /sbin/sysconfig; then
6932      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6933        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6934      esac
6935    fi
6936    ;;
6937  sco3.2v5*)
6938    lt_cv_sys_max_cmd_len=102400
6939    ;;
6940  sysv5* | sco5v6* | sysv4.2uw2*)
6941    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6942    if test -n "$kargmax"; then
6943      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6944    else
6945      lt_cv_sys_max_cmd_len=32768
6946    fi
6947    ;;
6948  *)
6949    # If test is not a shell built-in, we'll probably end up computing a
6950    # maximum length that is only half of the actual maximum length, but
6951    # we can't tell.
6952    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6953    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6954               = "XX$teststring") >/dev/null 2>&1 &&
6955            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6956            lt_cv_sys_max_cmd_len=$new_result &&
6957            test $i != 17 # 1/2 MB should be enough
6958    do
6959      i=`expr $i + 1`
6960      teststring=$teststring$teststring
6961    done
6962    teststring=
6963    # Add a significant safety factor because C++ compilers can tack on massive
6964    # amounts of additional arguments before passing them to the linker.
6965    # It appears as though 1/2 is a usable value.
6966    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6967    ;;
6968  esac
6969
6970fi
6971
6972if test -n $lt_cv_sys_max_cmd_len ; then
6973  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6974echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6975else
6976  echo "$as_me:$LINENO: result: none" >&5
6977echo "${ECHO_T}none" >&6
6978fi
6979
6980
6981
6982
6983# Check for command to grab the raw symbol name followed by C symbol from nm.
6984echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6985echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6986if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6987  echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989
6990# These are sane defaults that work on at least a few old systems.
6991# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6992
6993# Character class describing NM global symbol codes.
6994symcode='[BCDEGRST]'
6995
6996# Regexp to match symbols that can be accessed directly from C.
6997sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6998
6999# Transform an extracted symbol line into a proper C declaration
7000lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7001
7002# Transform an extracted symbol line into symbol name and symbol address
7003lt_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'"
7004
7005# Define system-specific variables.
7006case $host_os in
7007aix*)
7008  symcode='[BCDT]'
7009  ;;
7010cygwin* | mingw* | pw32*)
7011  symcode='[ABCDGISTW]'
7012  ;;
7013hpux*) # Its linker distinguishes data from code symbols
7014  if test "$host_cpu" = ia64; then
7015    symcode='[ABCDEGRST]'
7016  fi
7017  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7018  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'"
7019  ;;
7020linux*)
7021  if test "$host_cpu" = ia64; then
7022    symcode='[ABCDGIRSTW]'
7023    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7024    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'"
7025  fi
7026  ;;
7027irix* | nonstopux*)
7028  symcode='[BCDEGRST]'
7029  ;;
7030osf*)
7031  symcode='[BCDEGQRST]'
7032  ;;
7033solaris*)
7034  symcode='[BDRT]'
7035  ;;
7036sco3.2v5*)
7037  symcode='[DT]'
7038  ;;
7039sysv4.2uw2*)
7040  symcode='[DT]'
7041  ;;
7042sysv5* | sco5v6* | unixware* | OpenUNIX*)
7043  symcode='[ABDT]'
7044  ;;
7045sysv4)
7046  symcode='[DFNSTU]'
7047  ;;
7048esac
7049
7050# Handle CRLF in mingw tool chain
7051opt_cr=
7052case $build_os in
7053mingw*)
7054  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7055  ;;
7056esac
7057
7058# If we're using GNU nm, then use its standard symbol codes.
7059case `$NM -V 2>&1` in
7060*GNU* | *'with BFD'*)
7061  symcode='[ABCDGIRSTW]' ;;
7062esac
7063
7064# Try without a prefix undercore, then with it.
7065for ac_symprfx in "" "_"; do
7066
7067  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7068  symxfrm="\\1 $ac_symprfx\\2 \\2"
7069
7070  # Write the raw and C identifiers.
7071  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7072
7073  # Check to see that the pipe works correctly.
7074  pipe_works=no
7075
7076  rm -f conftest*
7077  cat > conftest.$ac_ext <<EOF
7078#ifdef __cplusplus
7079extern "C" {
7080#endif
7081char nm_test_var;
7082void nm_test_func(){}
7083#ifdef __cplusplus
7084}
7085#endif
7086int main(){nm_test_var='a';nm_test_func();return(0);}
7087EOF
7088
7089  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090  (eval $ac_compile) 2>&5
7091  ac_status=$?
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); }; then
7094    # Now try to grab the symbols.
7095    nlist=conftest.nm
7096    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7097  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); } && test -s "$nlist"; then
7101      # Try sorting and uniquifying the output.
7102      if sort "$nlist" | uniq > "$nlist"T; then
7103        mv -f "$nlist"T "$nlist"
7104      else
7105        rm -f "$nlist"T
7106      fi
7107
7108      # Make sure that we snagged all the symbols we need.
7109      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7110        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7111          cat <<EOF > conftest.$ac_ext
7112#ifdef __cplusplus
7113extern "C" {
7114#endif
7115
7116EOF
7117          # Now generate the symbol file.
7118          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7119
7120          cat <<EOF >> conftest.$ac_ext
7121#if defined (__STDC__) && __STDC__
7122# define lt_ptr_t void *
7123#else
7124# define lt_ptr_t char *
7125# define const
7126#endif
7127
7128/* The mapping between symbol names and symbols. */
7129const struct {
7130  const char *name;
7131  lt_ptr_t address;
7132}
7133lt_preloaded_symbols[] =
7134{
7135EOF
7136          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7137          cat <<\EOF >> conftest.$ac_ext
7138  {0, (lt_ptr_t) 0}
7139};
7140
7141#ifdef __cplusplus
7142}
7143#endif
7144EOF
7145          # Now try linking the two files.
7146          mv conftest.$ac_objext conftstm.$ac_objext
7147          lt_save_LIBS="$LIBS"
7148          lt_save_CFLAGS="$CFLAGS"
7149          LIBS="conftstm.$ac_objext"
7150          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7151          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7152  (eval $ac_link) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7156            pipe_works=yes
7157          fi
7158          LIBS="$lt_save_LIBS"
7159          CFLAGS="$lt_save_CFLAGS"
7160        else
7161          echo "cannot find nm_test_func in $nlist" >&5
7162        fi
7163      else
7164        echo "cannot find nm_test_var in $nlist" >&5
7165      fi
7166    else
7167      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7168    fi
7169  else
7170    echo "$progname: failed program was:" >&5
7171    cat conftest.$ac_ext >&5
7172  fi
7173  rm -f conftest* conftst*
7174
7175  # Do not use the global_symbol_pipe unless it works.
7176  if test "$pipe_works" = yes; then
7177    break
7178  else
7179    lt_cv_sys_global_symbol_pipe=
7180  fi
7181done
7182
7183fi
7184
7185if test -z "$lt_cv_sys_global_symbol_pipe"; then
7186  lt_cv_sys_global_symbol_to_cdecl=
7187fi
7188if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7189  echo "$as_me:$LINENO: result: failed" >&5
7190echo "${ECHO_T}failed" >&6
7191else
7192  echo "$as_me:$LINENO: result: ok" >&5
7193echo "${ECHO_T}ok" >&6
7194fi
7195
7196echo "$as_me:$LINENO: checking for objdir" >&5
7197echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7198if test "${lt_cv_objdir+set}" = set; then
7199  echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
7201  rm -f .libs 2>/dev/null
7202mkdir .libs 2>/dev/null
7203if test -d .libs; then
7204  lt_cv_objdir=.libs
7205else
7206  # MS-DOS does not allow filenames that begin with a dot.
7207  lt_cv_objdir=_libs
7208fi
7209rmdir .libs 2>/dev/null
7210fi
7211echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7212echo "${ECHO_T}$lt_cv_objdir" >&6
7213objdir=$lt_cv_objdir
7214
7215
7216
7217
7218
7219case $host_os in
7220aix3*)
7221  # AIX sometimes has problems with the GCC collect2 program.  For some
7222  # reason, if we set the COLLECT_NAMES environment variable, the problems
7223  # vanish in a puff of smoke.
7224  if test "X${COLLECT_NAMES+set}" != Xset; then
7225    COLLECT_NAMES=
7226    export COLLECT_NAMES
7227  fi
7228  ;;
7229esac
7230
7231# Sed substitution that helps us do robust quoting.  It backslashifies
7232# metacharacters that are still active within double-quoted strings.
7233Xsed='sed -e 1s/^X//'
7234sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7235
7236# Same as above, but do not quote variable references.
7237double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7238
7239# Sed substitution to delay expansion of an escaped shell variable in a
7240# double_quote_subst'ed string.
7241delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7242
7243# Sed substitution to avoid accidental globbing in evaled expressions
7244no_glob_subst='s/\*/\\\*/g'
7245
7246# Constants:
7247rm="rm -f"
7248
7249# Global variables:
7250default_ofile=libtool
7251can_build_shared=yes
7252
7253# All known linkers require a `.a' archive for static linking (except MSVC,
7254# which needs '.lib').
7255libext=a
7256ltmain="$ac_aux_dir/ltmain.sh"
7257ofile="$default_ofile"
7258with_gnu_ld="$lt_cv_prog_gnu_ld"
7259
7260if test -n "$ac_tool_prefix"; then
7261  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7262set dummy ${ac_tool_prefix}ar; ac_word=$2
7263echo "$as_me:$LINENO: checking for $ac_word" >&5
7264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7265if test "${ac_cv_prog_AR+set}" = set; then
7266  echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268  if test -n "$AR"; then
7269  ac_cv_prog_AR="$AR" # Let the user override the test.
7270else
7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274  IFS=$as_save_IFS
7275  test -z "$as_dir" && as_dir=.
7276  for ac_exec_ext in '' $ac_executable_extensions; do
7277  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278    ac_cv_prog_AR="${ac_tool_prefix}ar"
7279    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280    break 2
7281  fi
7282done
7283done
7284
7285fi
7286fi
7287AR=$ac_cv_prog_AR
7288if test -n "$AR"; then
7289  echo "$as_me:$LINENO: result: $AR" >&5
7290echo "${ECHO_T}$AR" >&6
7291else
7292  echo "$as_me:$LINENO: result: no" >&5
7293echo "${ECHO_T}no" >&6
7294fi
7295
7296fi
7297if test -z "$ac_cv_prog_AR"; then
7298  ac_ct_AR=$AR
7299  # Extract the first word of "ar", so it can be a program name with args.
7300set dummy ar; ac_word=$2
7301echo "$as_me:$LINENO: checking for $ac_word" >&5
7302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7303if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7304  echo $ECHO_N "(cached) $ECHO_C" >&6
7305else
7306  if test -n "$ac_ct_AR"; then
7307  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7308else
7309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH
7311do
7312  IFS=$as_save_IFS
7313  test -z "$as_dir" && as_dir=.
7314  for ac_exec_ext in '' $ac_executable_extensions; do
7315  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316    ac_cv_prog_ac_ct_AR="ar"
7317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7318    break 2
7319  fi
7320done
7321done
7322
7323  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7324fi
7325fi
7326ac_ct_AR=$ac_cv_prog_ac_ct_AR
7327if test -n "$ac_ct_AR"; then
7328  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7329echo "${ECHO_T}$ac_ct_AR" >&6
7330else
7331  echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6
7333fi
7334
7335  AR=$ac_ct_AR
7336else
7337  AR="$ac_cv_prog_AR"
7338fi
7339
7340if test -n "$ac_tool_prefix"; then
7341  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7342set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7343echo "$as_me:$LINENO: checking for $ac_word" >&5
7344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7345if test "${ac_cv_prog_RANLIB+set}" = set; then
7346  echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348  if test -n "$RANLIB"; then
7349  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7350else
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354  IFS=$as_save_IFS
7355  test -z "$as_dir" && as_dir=.
7356  for ac_exec_ext in '' $ac_executable_extensions; do
7357  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7358    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7359    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360    break 2
7361  fi
7362done
7363done
7364
7365fi
7366fi
7367RANLIB=$ac_cv_prog_RANLIB
7368if test -n "$RANLIB"; then
7369  echo "$as_me:$LINENO: result: $RANLIB" >&5
7370echo "${ECHO_T}$RANLIB" >&6
7371else
7372  echo "$as_me:$LINENO: result: no" >&5
7373echo "${ECHO_T}no" >&6
7374fi
7375
7376fi
7377if test -z "$ac_cv_prog_RANLIB"; then
7378  ac_ct_RANLIB=$RANLIB
7379  # Extract the first word of "ranlib", so it can be a program name with args.
7380set dummy ranlib; ac_word=$2
7381echo "$as_me:$LINENO: checking for $ac_word" >&5
7382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7383if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7384  echo $ECHO_N "(cached) $ECHO_C" >&6
7385else
7386  if test -n "$ac_ct_RANLIB"; then
7387  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7388else
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392  IFS=$as_save_IFS
7393  test -z "$as_dir" && as_dir=.
7394  for ac_exec_ext in '' $ac_executable_extensions; do
7395  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396    ac_cv_prog_ac_ct_RANLIB="ranlib"
7397    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398    break 2
7399  fi
7400done
7401done
7402
7403  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7404fi
7405fi
7406ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7407if test -n "$ac_ct_RANLIB"; then
7408  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7409echo "${ECHO_T}$ac_ct_RANLIB" >&6
7410else
7411  echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6
7413fi
7414
7415  RANLIB=$ac_ct_RANLIB
7416else
7417  RANLIB="$ac_cv_prog_RANLIB"
7418fi
7419
7420if test -n "$ac_tool_prefix"; then
7421  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7422set dummy ${ac_tool_prefix}strip; ac_word=$2
7423echo "$as_me:$LINENO: checking for $ac_word" >&5
7424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7425if test "${ac_cv_prog_STRIP+set}" = set; then
7426  echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428  if test -n "$STRIP"; then
7429  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7430else
7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432for as_dir in $PATH
7433do
7434  IFS=$as_save_IFS
7435  test -z "$as_dir" && as_dir=.
7436  for ac_exec_ext in '' $ac_executable_extensions; do
7437  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7439    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7440    break 2
7441  fi
7442done
7443done
7444
7445fi
7446fi
7447STRIP=$ac_cv_prog_STRIP
7448if test -n "$STRIP"; then
7449  echo "$as_me:$LINENO: result: $STRIP" >&5
7450echo "${ECHO_T}$STRIP" >&6
7451else
7452  echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6
7454fi
7455
7456fi
7457if test -z "$ac_cv_prog_STRIP"; then
7458  ac_ct_STRIP=$STRIP
7459  # Extract the first word of "strip", so it can be a program name with args.
7460set dummy strip; ac_word=$2
7461echo "$as_me:$LINENO: checking for $ac_word" >&5
7462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7464  echo $ECHO_N "(cached) $ECHO_C" >&6
7465else
7466  if test -n "$ac_ct_STRIP"; then
7467  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472  IFS=$as_save_IFS
7473  test -z "$as_dir" && as_dir=.
7474  for ac_exec_ext in '' $ac_executable_extensions; do
7475  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476    ac_cv_prog_ac_ct_STRIP="strip"
7477    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478    break 2
7479  fi
7480done
7481done
7482
7483  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7484fi
7485fi
7486ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7487if test -n "$ac_ct_STRIP"; then
7488  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7489echo "${ECHO_T}$ac_ct_STRIP" >&6
7490else
7491  echo "$as_me:$LINENO: result: no" >&5
7492echo "${ECHO_T}no" >&6
7493fi
7494
7495  STRIP=$ac_ct_STRIP
7496else
7497  STRIP="$ac_cv_prog_STRIP"
7498fi
7499
7500
7501old_CC="$CC"
7502old_CFLAGS="$CFLAGS"
7503
7504# Set sane defaults for various variables
7505test -z "$AR" && AR=ar
7506test -z "$AR_FLAGS" && AR_FLAGS=cru
7507test -z "$AS" && AS=as
7508test -z "$CC" && CC=cc
7509test -z "$LTCC" && LTCC=$CC
7510test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7511test -z "$DLLTOOL" && DLLTOOL=dlltool
7512test -z "$LD" && LD=ld
7513test -z "$LN_S" && LN_S="ln -s"
7514test -z "$MAGIC_CMD" && MAGIC_CMD=file
7515test -z "$NM" && NM=nm
7516test -z "$SED" && SED=sed
7517test -z "$OBJDUMP" && OBJDUMP=objdump
7518test -z "$RANLIB" && RANLIB=:
7519test -z "$STRIP" && STRIP=:
7520test -z "$ac_objext" && ac_objext=o
7521
7522# Determine commands to create old-style static archives.
7523old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7524old_postinstall_cmds='chmod 644 $oldlib'
7525old_postuninstall_cmds=
7526
7527if test -n "$RANLIB"; then
7528  case $host_os in
7529  openbsd*)
7530    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7531    ;;
7532  *)
7533    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7534    ;;
7535  esac
7536  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7537fi
7538
7539for cc_temp in $compiler""; do
7540  case $cc_temp in
7541    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7542    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7543    \-*) ;;
7544    *) break;;
7545  esac
7546done
7547cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7548
7549
7550# Only perform the check for file, if the check method requires it
7551case $deplibs_check_method in
7552file_magic*)
7553  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7554    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7555echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7556if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7557  echo $ECHO_N "(cached) $ECHO_C" >&6
7558else
7559  case $MAGIC_CMD in
7560[\\/*] |  ?:[\\/]*)
7561  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7562  ;;
7563*)
7564  lt_save_MAGIC_CMD="$MAGIC_CMD"
7565  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7566  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7567  for ac_dir in $ac_dummy; do
7568    IFS="$lt_save_ifs"
7569    test -z "$ac_dir" && ac_dir=.
7570    if test -f $ac_dir/${ac_tool_prefix}file; then
7571      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7572      if test -n "$file_magic_test_file"; then
7573        case $deplibs_check_method in
7574        "file_magic "*)
7575          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7576          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7577          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7578            $EGREP "$file_magic_regex" > /dev/null; then
7579            :
7580          else
7581            cat <<EOF 1>&2
7582
7583*** Warning: the command libtool uses to detect shared libraries,
7584*** $file_magic_cmd, produces output that libtool cannot recognize.
7585*** The result is that libtool may fail to recognize shared libraries
7586*** as such.  This will affect the creation of libtool libraries that
7587*** depend on shared libraries, but programs linked with such libtool
7588*** libraries will work regardless of this problem.  Nevertheless, you
7589*** may want to report the problem to your system manager and/or to
7590*** bug-libtool@gnu.org
7591
7592EOF
7593          fi ;;
7594        esac
7595      fi
7596      break
7597    fi
7598  done
7599  IFS="$lt_save_ifs"
7600  MAGIC_CMD="$lt_save_MAGIC_CMD"
7601  ;;
7602esac
7603fi
7604
7605MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7606if test -n "$MAGIC_CMD"; then
7607  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7608echo "${ECHO_T}$MAGIC_CMD" >&6
7609else
7610  echo "$as_me:$LINENO: result: no" >&5
7611echo "${ECHO_T}no" >&6
7612fi
7613
7614if test -z "$lt_cv_path_MAGIC_CMD"; then
7615  if test -n "$ac_tool_prefix"; then
7616    echo "$as_me:$LINENO: checking for file" >&5
7617echo $ECHO_N "checking for file... $ECHO_C" >&6
7618if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7619  echo $ECHO_N "(cached) $ECHO_C" >&6
7620else
7621  case $MAGIC_CMD in
7622[\\/*] |  ?:[\\/]*)
7623  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7624  ;;
7625*)
7626  lt_save_MAGIC_CMD="$MAGIC_CMD"
7627  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7628  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7629  for ac_dir in $ac_dummy; do
7630    IFS="$lt_save_ifs"
7631    test -z "$ac_dir" && ac_dir=.
7632    if test -f $ac_dir/file; then
7633      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7634      if test -n "$file_magic_test_file"; then
7635        case $deplibs_check_method in
7636        "file_magic "*)
7637          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7638          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7639          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7640            $EGREP "$file_magic_regex" > /dev/null; then
7641            :
7642          else
7643            cat <<EOF 1>&2
7644
7645*** Warning: the command libtool uses to detect shared libraries,
7646*** $file_magic_cmd, produces output that libtool cannot recognize.
7647*** The result is that libtool may fail to recognize shared libraries
7648*** as such.  This will affect the creation of libtool libraries that
7649*** depend on shared libraries, but programs linked with such libtool
7650*** libraries will work regardless of this problem.  Nevertheless, you
7651*** may want to report the problem to your system manager and/or to
7652*** bug-libtool@gnu.org
7653
7654EOF
7655          fi ;;
7656        esac
7657      fi
7658      break
7659    fi
7660  done
7661  IFS="$lt_save_ifs"
7662  MAGIC_CMD="$lt_save_MAGIC_CMD"
7663  ;;
7664esac
7665fi
7666
7667MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7668if test -n "$MAGIC_CMD"; then
7669  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7670echo "${ECHO_T}$MAGIC_CMD" >&6
7671else
7672  echo "$as_me:$LINENO: result: no" >&5
7673echo "${ECHO_T}no" >&6
7674fi
7675
7676  else
7677    MAGIC_CMD=:
7678  fi
7679fi
7680
7681  fi
7682  ;;
7683esac
7684
7685enable_dlopen=no
7686enable_win32_dll=no
7687
7688# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7689if test "${enable_libtool_lock+set}" = set; then
7690  enableval="$enable_libtool_lock"
7691
7692fi;
7693test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7694
7695
7696# Check whether --with-pic or --without-pic was given.
7697if test "${with_pic+set}" = set; then
7698  withval="$with_pic"
7699  pic_mode="$withval"
7700else
7701  pic_mode=default
7702fi;
7703test -z "$pic_mode" && pic_mode=default
7704
7705# Use C for the default configuration in the libtool script
7706tagname=
7707lt_save_CC="$CC"
7708ac_ext=c
7709ac_cpp='$CPP $CPPFLAGS'
7710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714
7715# Source file extension for C test sources.
7716ac_ext=c
7717
7718# Object file extension for compiled C test sources.
7719objext=o
7720objext=$objext
7721
7722# Code to be used in simple compile tests
7723lt_simple_compile_test_code="int some_variable = 0;\n"
7724
7725# Code to be used in simple link tests
7726lt_simple_link_test_code='int main(){return(0);}\n'
7727
7728
7729# If no C compiler was specified, use CC.
7730LTCC=${LTCC-"$CC"}
7731
7732# If no C compiler flags were specified, use CFLAGS.
7733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7734
7735# Allow CC to be a program name with arguments.
7736compiler=$CC
7737
7738
7739# save warnings/boilerplate of simple test code
7740ac_outfile=conftest.$ac_objext
7741printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7743_lt_compiler_boilerplate=`cat conftest.err`
7744$rm conftest*
7745
7746ac_outfile=conftest.$ac_objext
7747printf "$lt_simple_link_test_code" >conftest.$ac_ext
7748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7749_lt_linker_boilerplate=`cat conftest.err`
7750$rm conftest*
7751
7752
7753## CAVEAT EMPTOR:
7754## There is no encapsulation within the following macros, do not change
7755## the running order or otherwise move them around unless you know exactly
7756## what you are doing...
7757
7758lt_prog_compiler_no_builtin_flag=
7759
7760if test "$GCC" = yes; then
7761  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7762
7763
7764echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7765echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7766if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7767  echo $ECHO_N "(cached) $ECHO_C" >&6
7768else
7769  lt_cv_prog_compiler_rtti_exceptions=no
7770  ac_outfile=conftest.$ac_objext
7771   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7772   lt_compiler_flag="-fno-rtti -fno-exceptions"
7773   # Insert the option either (1) after the last *FLAGS variable, or
7774   # (2) before a word containing "conftest.", or (3) at the end.
7775   # Note that $ac_compile itself does not contain backslashes and begins
7776   # with a dollar sign (not a hyphen), so the echo should work correctly.
7777   # The option is referenced via a variable to avoid confusing sed.
7778   lt_compile=`echo "$ac_compile" | $SED \
7779   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7780   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7781   -e 's:$: $lt_compiler_flag:'`
7782   (eval echo "\"\$as_me:7782: $lt_compile\"" >&5)
7783   (eval "$lt_compile" 2>conftest.err)
7784   ac_status=$?
7785   cat conftest.err >&5
7786   echo "$as_me:7786: \$? = $ac_status" >&5
7787   if (exit $ac_status) && test -s "$ac_outfile"; then
7788     # The compiler can only warn and ignore the option if not recognized
7789     # So say no if there are warnings other than the usual output.
7790     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7791     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7792     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7793       lt_cv_prog_compiler_rtti_exceptions=yes
7794     fi
7795   fi
7796   $rm conftest*
7797
7798fi
7799echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7800echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7801
7802if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7803    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7804else
7805    :
7806fi
7807
7808fi
7809
7810lt_prog_compiler_wl=
7811lt_prog_compiler_pic=
7812lt_prog_compiler_static=
7813
7814echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7815echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7816
7817  if test "$GCC" = yes; then
7818    lt_prog_compiler_wl='-Wl,'
7819    lt_prog_compiler_static='-static'
7820
7821    case $host_os in
7822      aix*)
7823      # All AIX code is PIC.
7824      if test "$host_cpu" = ia64; then
7825        # AIX 5 now supports IA64 processor
7826        lt_prog_compiler_static='-Bstatic'
7827      fi
7828      ;;
7829
7830    amigaos*)
7831      # FIXME: we need at least 68020 code to build shared libraries, but
7832      # adding the `-m68020' flag to GCC prevents building anything better,
7833      # like `-m68040'.
7834      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7835      ;;
7836
7837    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7838      # PIC is the default for these OSes.
7839      ;;
7840
7841    mingw* | pw32* | os2*)
7842      # This hack is so that the source file can tell whether it is being
7843      # built for inclusion in a dll (and should export symbols for example).
7844      lt_prog_compiler_pic='-DDLL_EXPORT'
7845      ;;
7846
7847    darwin* | rhapsody*)
7848      # PIC is the default on this platform
7849      # Common symbols not allowed in MH_DYLIB files
7850      lt_prog_compiler_pic='-fno-common'
7851      ;;
7852
7853    interix3*)
7854      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7855      # Instead, we relocate shared libraries at runtime.
7856      ;;
7857
7858    msdosdjgpp*)
7859      # Just because we use GCC doesn't mean we suddenly get shared libraries
7860      # on systems that don't support them.
7861      lt_prog_compiler_can_build_shared=no
7862      enable_shared=no
7863      ;;
7864
7865    sysv4*MP*)
7866      if test -d /usr/nec; then
7867        lt_prog_compiler_pic=-Kconform_pic
7868      fi
7869      ;;
7870
7871    hpux*)
7872      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7873      # not for PA HP-UX.
7874      case $host_cpu in
7875      hppa*64*|ia64*)
7876        # +Z the default
7877        ;;
7878      *)
7879        lt_prog_compiler_pic='-fPIC'
7880        ;;
7881      esac
7882      ;;
7883
7884    *)
7885      lt_prog_compiler_pic='-fPIC'
7886      ;;
7887    esac
7888  else
7889    # PORTME Check for flag to pass linker flags through the system compiler.
7890    case $host_os in
7891    aix*)
7892      lt_prog_compiler_wl='-Wl,'
7893      if test "$host_cpu" = ia64; then
7894        # AIX 5 now supports IA64 processor
7895        lt_prog_compiler_static='-Bstatic'
7896      else
7897        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7898      fi
7899      ;;
7900      darwin*)
7901        # PIC is the default on this platform
7902        # Common symbols not allowed in MH_DYLIB files
7903       case $cc_basename in
7904         xlc*)
7905         lt_prog_compiler_pic='-qnocommon'
7906         lt_prog_compiler_wl='-Wl,'
7907         ;;
7908       esac
7909       ;;
7910
7911    mingw* | pw32* | os2*)
7912      # This hack is so that the source file can tell whether it is being
7913      # built for inclusion in a dll (and should export symbols for example).
7914      lt_prog_compiler_pic='-DDLL_EXPORT'
7915      ;;
7916
7917    hpux9* | hpux10* | hpux11*)
7918      lt_prog_compiler_wl='-Wl,'
7919      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7920      # not for PA HP-UX.
7921      case $host_cpu in
7922      hppa*64*|ia64*)
7923        # +Z the default
7924        ;;
7925      *)
7926        lt_prog_compiler_pic='+Z'
7927        ;;
7928      esac
7929      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7930      lt_prog_compiler_static='${wl}-a ${wl}archive'
7931      ;;
7932
7933    irix5* | irix6* | nonstopux*)
7934      lt_prog_compiler_wl='-Wl,'
7935      # PIC (with -KPIC) is the default.
7936      lt_prog_compiler_static='-non_shared'
7937      ;;
7938
7939    newsos6)
7940      lt_prog_compiler_pic='-KPIC'
7941      lt_prog_compiler_static='-Bstatic'
7942      ;;
7943
7944    linux*)
7945      case $cc_basename in
7946      icc* | ecc*)
7947        lt_prog_compiler_wl='-Wl,'
7948        lt_prog_compiler_pic='-KPIC'
7949        lt_prog_compiler_static='-static'
7950        ;;
7951      pgcc* | pgf77* | pgf90* | pgf95*)
7952        # Portland Group compilers (*not* the Pentium gcc compiler,
7953        # which looks to be a dead project)
7954        lt_prog_compiler_wl='-Wl,'
7955        lt_prog_compiler_pic='-fpic'
7956        lt_prog_compiler_static='-Bstatic'
7957        ;;
7958      ccc*)
7959        lt_prog_compiler_wl='-Wl,'
7960        # All Alpha code is PIC.
7961        lt_prog_compiler_static='-non_shared'
7962        ;;
7963      esac
7964      ;;
7965
7966    osf3* | osf4* | osf5*)
7967      lt_prog_compiler_wl='-Wl,'
7968      # All OSF/1 code is PIC.
7969      lt_prog_compiler_static='-non_shared'
7970      ;;
7971
7972    solaris*)
7973      lt_prog_compiler_pic='-KPIC'
7974      lt_prog_compiler_static='-Bstatic'
7975      case $cc_basename in
7976      f77* | f90* | f95*)
7977        lt_prog_compiler_wl='-Qoption ld ';;
7978      *)
7979        lt_prog_compiler_wl='-Wl,';;
7980      esac
7981      ;;
7982
7983    sunos4*)
7984      lt_prog_compiler_wl='-Qoption ld '
7985      lt_prog_compiler_pic='-PIC'
7986      lt_prog_compiler_static='-Bstatic'
7987      ;;
7988
7989    sysv4 | sysv4.2uw2* | sysv4.3*)
7990      lt_prog_compiler_wl='-Wl,'
7991      lt_prog_compiler_pic='-KPIC'
7992      lt_prog_compiler_static='-Bstatic'
7993      ;;
7994
7995    sysv4*MP*)
7996      if test -d /usr/nec ;then
7997        lt_prog_compiler_pic='-Kconform_pic'
7998        lt_prog_compiler_static='-Bstatic'
7999      fi
8000      ;;
8001
8002    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8003      lt_prog_compiler_wl='-Wl,'
8004      lt_prog_compiler_pic='-KPIC'
8005      lt_prog_compiler_static='-Bstatic'
8006      ;;
8007
8008    unicos*)
8009      lt_prog_compiler_wl='-Wl,'
8010      lt_prog_compiler_can_build_shared=no
8011      ;;
8012
8013    uts4*)
8014      lt_prog_compiler_pic='-pic'
8015      lt_prog_compiler_static='-Bstatic'
8016      ;;
8017
8018    *)
8019      lt_prog_compiler_can_build_shared=no
8020      ;;
8021    esac
8022  fi
8023
8024echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8025echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8026
8027#
8028# Check to make sure the PIC flag actually works.
8029#
8030if test -n "$lt_prog_compiler_pic"; then
8031
8032echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8033echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8034if test "${lt_prog_compiler_pic_works+set}" = set; then
8035  echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037  lt_prog_compiler_pic_works=no
8038  ac_outfile=conftest.$ac_objext
8039   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8040   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8041   # Insert the option either (1) after the last *FLAGS variable, or
8042   # (2) before a word containing "conftest.", or (3) at the end.
8043   # Note that $ac_compile itself does not contain backslashes and begins
8044   # with a dollar sign (not a hyphen), so the echo should work correctly.
8045   # The option is referenced via a variable to avoid confusing sed.
8046   lt_compile=`echo "$ac_compile" | $SED \
8047   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8048   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8049   -e 's:$: $lt_compiler_flag:'`
8050   (eval echo "\"\$as_me:8050: $lt_compile\"" >&5)
8051   (eval "$lt_compile" 2>conftest.err)
8052   ac_status=$?
8053   cat conftest.err >&5
8054   echo "$as_me:8054: \$? = $ac_status" >&5
8055   if (exit $ac_status) && test -s "$ac_outfile"; then
8056     # The compiler can only warn and ignore the option if not recognized
8057     # So say no if there are warnings other than the usual output.
8058     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8059     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8060     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8061       lt_prog_compiler_pic_works=yes
8062     fi
8063   fi
8064   $rm conftest*
8065
8066fi
8067echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8068echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8069
8070if test x"$lt_prog_compiler_pic_works" = xyes; then
8071    case $lt_prog_compiler_pic in
8072     "" | " "*) ;;
8073     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8074     esac
8075else
8076    lt_prog_compiler_pic=
8077     lt_prog_compiler_can_build_shared=no
8078fi
8079
8080fi
8081case $host_os in
8082  # For platforms which do not support PIC, -DPIC is meaningless:
8083  *djgpp*)
8084    lt_prog_compiler_pic=
8085    ;;
8086  *)
8087    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8088    ;;
8089esac
8090
8091#
8092# Check to make sure the static flag actually works.
8093#
8094wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8095echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8096echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8097if test "${lt_prog_compiler_static_works+set}" = set; then
8098  echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100  lt_prog_compiler_static_works=no
8101   save_LDFLAGS="$LDFLAGS"
8102   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8103   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8104   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8105     # The linker can only warn and ignore the option if not recognized
8106     # So say no if there are warnings
8107     if test -s conftest.err; then
8108       # Append any errors to the config.log.
8109       cat conftest.err 1>&5
8110       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8111       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8112       if diff conftest.exp conftest.er2 >/dev/null; then
8113         lt_prog_compiler_static_works=yes
8114       fi
8115     else
8116       lt_prog_compiler_static_works=yes
8117     fi
8118   fi
8119   $rm conftest*
8120   LDFLAGS="$save_LDFLAGS"
8121
8122fi
8123echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8124echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8125
8126if test x"$lt_prog_compiler_static_works" = xyes; then
8127    :
8128else
8129    lt_prog_compiler_static=
8130fi
8131
8132
8133echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8134echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8135if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8136  echo $ECHO_N "(cached) $ECHO_C" >&6
8137else
8138  lt_cv_prog_compiler_c_o=no
8139   $rm -r conftest 2>/dev/null
8140   mkdir conftest
8141   cd conftest
8142   mkdir out
8143   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8144
8145   lt_compiler_flag="-o out/conftest2.$ac_objext"
8146   # Insert the option either (1) after the last *FLAGS variable, or
8147   # (2) before a word containing "conftest.", or (3) at the end.
8148   # Note that $ac_compile itself does not contain backslashes and begins
8149   # with a dollar sign (not a hyphen), so the echo should work correctly.
8150   lt_compile=`echo "$ac_compile" | $SED \
8151   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8152   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8153   -e 's:$: $lt_compiler_flag:'`
8154   (eval echo "\"\$as_me:8154: $lt_compile\"" >&5)
8155   (eval "$lt_compile" 2>out/conftest.err)
8156   ac_status=$?
8157   cat out/conftest.err >&5
8158   echo "$as_me:8158: \$? = $ac_status" >&5
8159   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8160   then
8161     # The compiler can only warn and ignore the option if not recognized
8162     # So say no if there are warnings
8163     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8164     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8165     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8166       lt_cv_prog_compiler_c_o=yes
8167     fi
8168   fi
8169   chmod u+w . 2>&5
8170   $rm conftest*
8171   # SGI C++ compiler will create directory out/ii_files/ for
8172   # template instantiation
8173   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8174   $rm out/* && rmdir out
8175   cd ..
8176   rmdir conftest
8177   $rm conftest*
8178
8179fi
8180echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8181echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8182
8183
8184hard_links="nottested"
8185if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8186  # do not overwrite the value of need_locks provided by the user
8187  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8188echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8189  hard_links=yes
8190  $rm conftest*
8191  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8192  touch conftest.a
8193  ln conftest.a conftest.b 2>&5 || hard_links=no
8194  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8195  echo "$as_me:$LINENO: result: $hard_links" >&5
8196echo "${ECHO_T}$hard_links" >&6
8197  if test "$hard_links" = no; then
8198    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8199echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8200    need_locks=warn
8201  fi
8202else
8203  need_locks=no
8204fi
8205
8206echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8207echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8208
8209  runpath_var=
8210  allow_undefined_flag=
8211  enable_shared_with_static_runtimes=no
8212  archive_cmds=
8213  archive_expsym_cmds=
8214  old_archive_From_new_cmds=
8215  old_archive_from_expsyms_cmds=
8216  export_dynamic_flag_spec=
8217  whole_archive_flag_spec=
8218  thread_safe_flag_spec=
8219  hardcode_libdir_flag_spec=
8220  hardcode_libdir_flag_spec_ld=
8221  hardcode_libdir_separator=
8222  hardcode_direct=no
8223  hardcode_minus_L=no
8224  hardcode_shlibpath_var=unsupported
8225  link_all_deplibs=unknown
8226  hardcode_automatic=no
8227  module_cmds=
8228  module_expsym_cmds=
8229  always_export_symbols=no
8230  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8231  # include_expsyms should be a list of space-separated symbols to be *always*
8232  # included in the symbol list
8233  include_expsyms=
8234  # exclude_expsyms can be an extended regexp of symbols to exclude
8235  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8236  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8237  # as well as any symbol that contains `d'.
8238  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8239  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8240  # platforms (ab)use it in PIC code, but their linkers get confused if
8241  # the symbol is explicitly referenced.  Since portable code cannot
8242  # rely on this symbol name, it's probably fine to never include it in
8243  # preloaded symbol tables.
8244  extract_expsyms_cmds=
8245  # Just being paranoid about ensuring that cc_basename is set.
8246  for cc_temp in $compiler""; do
8247  case $cc_temp in
8248    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8249    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8250    \-*) ;;
8251    *) break;;
8252  esac
8253done
8254cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8255
8256  case $host_os in
8257  cygwin* | mingw* | pw32*)
8258    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8259    # When not using gcc, we currently assume that we are using
8260    # Microsoft Visual C++.
8261    if test "$GCC" != yes; then
8262      with_gnu_ld=no
8263    fi
8264    ;;
8265  interix*)
8266    # we just hope/assume this is gcc and not c89 (= MSVC++)
8267    with_gnu_ld=yes
8268    ;;
8269  openbsd*)
8270    with_gnu_ld=no
8271    ;;
8272  esac
8273
8274  ld_shlibs=yes
8275  if test "$with_gnu_ld" = yes; then
8276    # If archive_cmds runs LD, not CC, wlarc should be empty
8277    wlarc='${wl}'
8278
8279    # Set some defaults for GNU ld with shared library support. These
8280    # are reset later if shared libraries are not supported. Putting them
8281    # here allows them to be overridden if necessary.
8282    runpath_var=LD_RUN_PATH
8283    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8284    export_dynamic_flag_spec='${wl}--export-dynamic'
8285    # ancient GNU ld didn't support --whole-archive et. al.
8286    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8287        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8288      else
8289        whole_archive_flag_spec=
8290    fi
8291    supports_anon_versioning=no
8292    case `$LD -v 2>/dev/null` in
8293      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8294      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8295      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8296      *\ 2.11.*) ;; # other 2.11 versions
8297      *) supports_anon_versioning=yes ;;
8298    esac
8299
8300    # See if GNU ld supports shared libraries.
8301    case $host_os in
8302    aix3* | aix4* | aix5*)
8303      # On AIX/PPC, the GNU linker is very broken
8304      if test "$host_cpu" != ia64; then
8305        ld_shlibs=no
8306        cat <<EOF 1>&2
8307
8308*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8309*** to be unable to reliably create shared libraries on AIX.
8310*** Therefore, libtool is disabling shared libraries support.  If you
8311*** really care for shared libraries, you may want to modify your PATH
8312*** so that a non-GNU linker is found, and then restart.
8313
8314EOF
8315      fi
8316      ;;
8317
8318    amigaos*)
8319      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)'
8320      hardcode_libdir_flag_spec='-L$libdir'
8321      hardcode_minus_L=yes
8322
8323      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8324      # that the semantics of dynamic libraries on AmigaOS, at least up
8325      # to version 4, is to share data among multiple programs linked
8326      # with the same dynamic library.  Since this doesn't match the
8327      # behavior of shared libraries on other platforms, we can't use
8328      # them.
8329      ld_shlibs=no
8330      ;;
8331
8332    beos*)
8333      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8334        allow_undefined_flag=unsupported
8335        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8336        # support --undefined.  This deserves some investigation.  FIXME
8337        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338      else
8339        ld_shlibs=no
8340      fi
8341      ;;
8342
8343    cygwin* | mingw* | pw32*)
8344      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8345      # as there is no search path for DLLs.
8346      hardcode_libdir_flag_spec='-L$libdir'
8347      allow_undefined_flag=unsupported
8348      always_export_symbols=no
8349      enable_shared_with_static_runtimes=yes
8350      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8351
8352      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8353        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8354        # If the export-symbols file already is a .def file (1st line
8355        # is EXPORTS), use it as is; otherwise, prepend...
8356        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8357          cp $export_symbols $output_objdir/$soname.def;
8358        else
8359          echo EXPORTS > $output_objdir/$soname.def;
8360          cat $export_symbols >> $output_objdir/$soname.def;
8361        fi~
8362        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8363      else
8364        ld_shlibs=no
8365      fi
8366      ;;
8367
8368    interix3*)
8369      hardcode_direct=no
8370      hardcode_shlibpath_var=no
8371      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8372      export_dynamic_flag_spec='${wl}-E'
8373      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8374      # Instead, shared libraries are loaded at an image base (0x10000000 by
8375      # default) and relocated if they conflict, which is a slow very memory
8376      # consuming and fragmenting process.  To avoid this, we pick a random,
8377      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8378      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8379      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8380      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'
8381      ;;
8382
8383    linux*)
8384      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8385        tmp_addflag=
8386        case $cc_basename,$host_cpu in
8387        pgcc*)                          # Portland Group C compiler
8388          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'
8389          tmp_addflag=' $pic_flag'
8390          ;;
8391        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8392          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'
8393          tmp_addflag=' $pic_flag -Mnomain' ;;
8394        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8395          tmp_addflag=' -i_dynamic' ;;
8396        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8397          tmp_addflag=' -i_dynamic -nofor_main' ;;
8398        ifc* | ifort*)                  # Intel Fortran compiler
8399          tmp_addflag=' -nofor_main' ;;
8400        esac
8401        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8402
8403        if test $supports_anon_versioning = yes; then
8404          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8405  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8406  $echo "local: *; };" >> $output_objdir/$libname.ver~
8407          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8408        fi
8409      else
8410        ld_shlibs=no
8411      fi
8412      ;;
8413
8414    netbsd*)
8415      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8416        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8417        wlarc=
8418      else
8419        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8420        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8421      fi
8422      ;;
8423
8424    solaris*)
8425      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8426        ld_shlibs=no
8427        cat <<EOF 1>&2
8428
8429*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8430*** create shared libraries on Solaris systems.  Therefore, libtool
8431*** is disabling shared libraries support.  We urge you to upgrade GNU
8432*** binutils to release 2.9.1 or newer.  Another option is to modify
8433*** your PATH or compiler configuration so that the native linker is
8434*** used, and then restart.
8435
8436EOF
8437      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8438        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8439        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8440      else
8441        ld_shlibs=no
8442      fi
8443      ;;
8444
8445    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8446      case `$LD -v 2>&1` in
8447        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8448        ld_shlibs=no
8449        cat <<_LT_EOF 1>&2
8450
8451*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8452*** reliably create shared libraries on SCO systems.  Therefore, libtool
8453*** is disabling shared libraries support.  We urge you to upgrade GNU
8454*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8455*** your PATH or compiler configuration so that the native linker is
8456*** used, and then restart.
8457
8458_LT_EOF
8459        ;;
8460        *)
8461          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8462            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8463            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8464            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8465          else
8466            ld_shlibs=no
8467          fi
8468        ;;
8469      esac
8470      ;;
8471
8472    sunos4*)
8473      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8474      wlarc=
8475      hardcode_direct=yes
8476      hardcode_shlibpath_var=no
8477      ;;
8478
8479    *)
8480      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8481        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8482        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8483      else
8484        ld_shlibs=no
8485      fi
8486      ;;
8487    esac
8488
8489    if test "$ld_shlibs" = no; then
8490      runpath_var=
8491      hardcode_libdir_flag_spec=
8492      export_dynamic_flag_spec=
8493      whole_archive_flag_spec=
8494    fi
8495  else
8496    # PORTME fill in a description of your system's linker (not GNU ld)
8497    case $host_os in
8498    aix3*)
8499      allow_undefined_flag=unsupported
8500      always_export_symbols=yes
8501      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'
8502      # Note: this linker hardcodes the directories in LIBPATH if there
8503      # are no directories specified by -L.
8504      hardcode_minus_L=yes
8505      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8506        # Neither direct hardcoding nor static linking is supported with a
8507        # broken collect2.
8508        hardcode_direct=unsupported
8509      fi
8510      ;;
8511
8512    aix4* | aix5*)
8513      if test "$host_cpu" = ia64; then
8514        # On IA64, the linker does run time linking by default, so we don't
8515        # have to do anything special.
8516        aix_use_runtimelinking=no
8517        exp_sym_flag='-Bexport'
8518        no_entry_flag=""
8519      else
8520        # If we're using GNU nm, then we don't want the "-C" option.
8521        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8522        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8523          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'
8524        else
8525          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'
8526        fi
8527        aix_use_runtimelinking=no
8528
8529        # Test if we are trying to use run time linking or normal
8530        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8531        # need to do runtime linking.
8532        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8533          for ld_flag in $LDFLAGS; do
8534          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8535            aix_use_runtimelinking=yes
8536            break
8537          fi
8538          done
8539          ;;
8540        esac
8541
8542        exp_sym_flag='-bexport'
8543        no_entry_flag='-bnoentry'
8544      fi
8545
8546      # When large executables or shared objects are built, AIX ld can
8547      # have problems creating the table of contents.  If linking a library
8548      # or program results in "error TOC overflow" add -mminimal-toc to
8549      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8550      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8551
8552      archive_cmds=''
8553      hardcode_direct=yes
8554      hardcode_libdir_separator=':'
8555      link_all_deplibs=yes
8556
8557      if test "$GCC" = yes; then
8558        case $host_os in aix4.[012]|aix4.[012].*)
8559        # We only want to do this on AIX 4.2 and lower, the check
8560        # below for broken collect2 doesn't work under 4.3+
8561          collect2name=`${CC} -print-prog-name=collect2`
8562          if test -f "$collect2name" && \
8563           strings "$collect2name" | grep resolve_lib_name >/dev/null
8564          then
8565          # We have reworked collect2
8566          hardcode_direct=yes
8567          else
8568          # We have old collect2
8569          hardcode_direct=unsupported
8570          # It fails to find uninstalled libraries when the uninstalled
8571          # path is not listed in the libpath.  Setting hardcode_minus_L
8572          # to unsupported forces relinking
8573          hardcode_minus_L=yes
8574          hardcode_libdir_flag_spec='-L$libdir'
8575          hardcode_libdir_separator=
8576          fi
8577          ;;
8578        esac
8579        shared_flag='-shared'
8580        if test "$aix_use_runtimelinking" = yes; then
8581          shared_flag="$shared_flag "'${wl}-G'
8582        fi
8583      else
8584        # not using gcc
8585        if test "$host_cpu" = ia64; then
8586        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8587        # chokes on -Wl,-G. The following line is correct:
8588          shared_flag='-G'
8589        else
8590          if test "$aix_use_runtimelinking" = yes; then
8591            shared_flag='${wl}-G'
8592          else
8593            shared_flag='${wl}-bM:SRE'
8594          fi
8595        fi
8596      fi
8597
8598      # It seems that -bexpall does not export symbols beginning with
8599      # underscore (_), so it is better to generate a list of symbols to export.
8600      always_export_symbols=yes
8601      if test "$aix_use_runtimelinking" = yes; then
8602        # Warning - without using the other runtime loading flags (-brtl),
8603        # -berok will link without error, but may produce a broken library.
8604        allow_undefined_flag='-berok'
8605       # Determine the default libpath from the value encoded in an empty executable.
8606       cat >conftest.$ac_ext <<_ACEOF
8607/* confdefs.h.  */
8608_ACEOF
8609cat confdefs.h >>conftest.$ac_ext
8610cat >>conftest.$ac_ext <<_ACEOF
8611/* end confdefs.h.  */
8612
8613int
8614main ()
8615{
8616
8617  ;
8618  return 0;
8619}
8620_ACEOF
8621rm -f conftest.$ac_objext conftest$ac_exeext
8622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623  (eval $ac_link) 2>conftest.er1
8624  ac_status=$?
8625  grep -v '^ *+' conftest.er1 >conftest.err
8626  rm -f conftest.er1
8627  cat conftest.err >&5
8628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629  (exit $ac_status); } &&
8630         { ac_try='test -z "$ac_c_werror_flag"
8631                         || test ! -s conftest.err'
8632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633  (eval $ac_try) 2>&5
8634  ac_status=$?
8635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636  (exit $ac_status); }; } &&
8637         { ac_try='test -s conftest$ac_exeext'
8638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8639  (eval $ac_try) 2>&5
8640  ac_status=$?
8641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642  (exit $ac_status); }; }; then
8643
8644aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8645}'`
8646# Check for a 64-bit object if we didn't find anything.
8647if 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; }
8648}'`; fi
8649else
8650  echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653fi
8654rm -f conftest.err conftest.$ac_objext \
8655      conftest$ac_exeext conftest.$ac_ext
8656if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8657
8658       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8659        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"
8660       else
8661        if test "$host_cpu" = ia64; then
8662          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8663          allow_undefined_flag="-z nodefs"
8664          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"
8665        else
8666         # Determine the default libpath from the value encoded in an empty executable.
8667         cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h.  */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h.  */
8673
8674int
8675main ()
8676{
8677
8678  ;
8679  return 0;
8680}
8681_ACEOF
8682rm -f conftest.$ac_objext conftest$ac_exeext
8683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8684  (eval $ac_link) 2>conftest.er1
8685  ac_status=$?
8686  grep -v '^ *+' conftest.er1 >conftest.err
8687  rm -f conftest.er1
8688  cat conftest.err >&5
8689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690  (exit $ac_status); } &&
8691         { ac_try='test -z "$ac_c_werror_flag"
8692                         || test ! -s conftest.err'
8693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8694  (eval $ac_try) 2>&5
8695  ac_status=$?
8696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697  (exit $ac_status); }; } &&
8698         { ac_try='test -s conftest$ac_exeext'
8699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700  (eval $ac_try) 2>&5
8701  ac_status=$?
8702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703  (exit $ac_status); }; }; then
8704
8705aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8706}'`
8707# Check for a 64-bit object if we didn't find anything.
8708if 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; }
8709}'`; fi
8710else
8711  echo "$as_me: failed program was:" >&5
8712sed 's/^/| /' conftest.$ac_ext >&5
8713
8714fi
8715rm -f conftest.err conftest.$ac_objext \
8716      conftest$ac_exeext conftest.$ac_ext
8717if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8718
8719         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8720          # Warning - without using the other run time loading flags,
8721          # -berok will link without error, but may produce a broken library.
8722          no_undefined_flag=' ${wl}-bernotok'
8723          allow_undefined_flag=' ${wl}-berok'
8724          # Exported symbols can be pulled into shared objects from archives
8725          whole_archive_flag_spec='$convenience'
8726          archive_cmds_need_lc=yes
8727          # This is similar to how AIX traditionally builds its shared libraries.
8728          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'
8729        fi
8730      fi
8731      ;;
8732
8733    amigaos*)
8734      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)'
8735      hardcode_libdir_flag_spec='-L$libdir'
8736      hardcode_minus_L=yes
8737      # see comment about different semantics on the GNU ld section
8738      ld_shlibs=no
8739      ;;
8740
8741    bsdi[45]*)
8742      export_dynamic_flag_spec=-rdynamic
8743      ;;
8744
8745    cygwin* | mingw* | pw32*)
8746      # When not using gcc, we currently assume that we are using
8747      # Microsoft Visual C++.
8748      # hardcode_libdir_flag_spec is actually meaningless, as there is
8749      # no search path for DLLs.
8750      hardcode_libdir_flag_spec=' '
8751      allow_undefined_flag=unsupported
8752      # Tell ltmain to make .lib files, not .a files.
8753      libext=lib
8754      # Tell ltmain to make .dll files, not .so files.
8755      shrext_cmds=".dll"
8756      # FIXME: Setting linknames here is a bad hack.
8757      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8758      # The linker will automatically build a .lib file if we build a DLL.
8759      old_archive_From_new_cmds='true'
8760      # FIXME: Should let the user specify the lib program.
8761      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8762      fix_srcfile_path='`cygpath -w "$srcfile"`'
8763      enable_shared_with_static_runtimes=yes
8764      ;;
8765
8766    darwin* | rhapsody*)
8767      case $host_os in
8768        rhapsody* | darwin1.[012])
8769         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8770         ;;
8771       *) # Darwin 1.3 on
8772         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8773           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8774         else
8775           case ${MACOSX_DEPLOYMENT_TARGET} in
8776             10.[012])
8777               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8778               ;;
8779             10.*)
8780               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8781               ;;
8782           esac
8783         fi
8784         ;;
8785      esac
8786      archive_cmds_need_lc=no
8787      hardcode_direct=no
8788      hardcode_automatic=yes
8789      hardcode_shlibpath_var=unsupported
8790      whole_archive_flag_spec=''
8791      link_all_deplibs=yes
8792    if test "$GCC" = yes ; then
8793        output_verbose_link_cmd='echo'
8794        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8795      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8796      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8797      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}'
8798      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}'
8799    else
8800      case $cc_basename in
8801        xlc*)
8802         output_verbose_link_cmd='echo'
8803         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8804         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8805          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8806         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}'
8807          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}'
8808          ;;
8809       *)
8810         ld_shlibs=no
8811          ;;
8812      esac
8813    fi
8814      ;;
8815
8816    dgux*)
8817      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8818      hardcode_libdir_flag_spec='-L$libdir'
8819      hardcode_shlibpath_var=no
8820      ;;
8821
8822    freebsd1*)
8823      ld_shlibs=no
8824      ;;
8825
8826    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8827    # support.  Future versions do this automatically, but an explicit c++rt0.o
8828    # does not break anything, and helps significantly (at the cost of a little
8829    # extra space).
8830    freebsd2.2*)
8831      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8832      hardcode_libdir_flag_spec='-R$libdir'
8833      hardcode_direct=yes
8834      hardcode_shlibpath_var=no
8835      ;;
8836
8837    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8838    freebsd2*)
8839      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8840      hardcode_direct=yes
8841      hardcode_minus_L=yes
8842      hardcode_shlibpath_var=no
8843      ;;
8844
8845    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8846    freebsd* | kfreebsd*-gnu | dragonfly*)
8847      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8848      hardcode_libdir_flag_spec='-R$libdir'
8849      hardcode_direct=yes
8850      hardcode_shlibpath_var=no
8851      ;;
8852
8853    hpux9*)
8854      if test "$GCC" = yes; then
8855        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'
8856      else
8857        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'
8858      fi
8859      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8860      hardcode_libdir_separator=:
8861      hardcode_direct=yes
8862
8863      # hardcode_minus_L: Not really in the search PATH,
8864      # but as the default location of the library.
8865      hardcode_minus_L=yes
8866      export_dynamic_flag_spec='${wl}-E'
8867      ;;
8868
8869    hpux10*)
8870      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8871        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8872      else
8873        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8874      fi
8875      if test "$with_gnu_ld" = no; then
8876        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8877        hardcode_libdir_separator=:
8878
8879        hardcode_direct=yes
8880        export_dynamic_flag_spec='${wl}-E'
8881
8882        # hardcode_minus_L: Not really in the search PATH,
8883        # but as the default location of the library.
8884        hardcode_minus_L=yes
8885      fi
8886      ;;
8887
8888    hpux11*)
8889      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8890        case $host_cpu in
8891        hppa*64*)
8892          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8893          ;;
8894        ia64*)
8895          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8896          ;;
8897        *)
8898          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8899          ;;
8900        esac
8901      else
8902        case $host_cpu in
8903        hppa*64*)
8904          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8905          ;;
8906        ia64*)
8907          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8908          ;;
8909        *)
8910          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8911          ;;
8912        esac
8913      fi
8914      if test "$with_gnu_ld" = no; then
8915        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8916        hardcode_libdir_separator=:
8917
8918        case $host_cpu in
8919        hppa*64*|ia64*)
8920          hardcode_libdir_flag_spec_ld='+b $libdir'
8921          hardcode_direct=no
8922          hardcode_shlibpath_var=no
8923          ;;
8924        *)
8925          hardcode_direct=yes
8926          export_dynamic_flag_spec='${wl}-E'
8927
8928          # hardcode_minus_L: Not really in the search PATH,
8929          # but as the default location of the library.
8930          hardcode_minus_L=yes
8931          ;;
8932        esac
8933      fi
8934      ;;
8935
8936    irix5* | irix6* | nonstopux*)
8937      if test "$GCC" = yes; then
8938        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'
8939      else
8940        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'
8941        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8942      fi
8943      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8944      hardcode_libdir_separator=:
8945      link_all_deplibs=yes
8946      ;;
8947
8948    netbsd*)
8949      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8950        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8951      else
8952        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8953      fi
8954      hardcode_libdir_flag_spec='-R$libdir'
8955      hardcode_direct=yes
8956      hardcode_shlibpath_var=no
8957      ;;
8958
8959    newsos6)
8960      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961      hardcode_direct=yes
8962      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8963      hardcode_libdir_separator=:
8964      hardcode_shlibpath_var=no
8965      ;;
8966
8967    openbsd*)
8968      hardcode_direct=yes
8969      hardcode_shlibpath_var=no
8970      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8971        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8972        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8973        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8974        export_dynamic_flag_spec='${wl}-E'
8975      else
8976       case $host_os in
8977         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8978           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8979           hardcode_libdir_flag_spec='-R$libdir'
8980           ;;
8981         *)
8982           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8983           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8984           ;;
8985       esac
8986      fi
8987      ;;
8988
8989    os2*)
8990      hardcode_libdir_flag_spec='-L$libdir'
8991      hardcode_minus_L=yes
8992      allow_undefined_flag=unsupported
8993      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'
8994      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8995      ;;
8996
8997    osf3*)
8998      if test "$GCC" = yes; then
8999        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9000        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'
9001      else
9002        allow_undefined_flag=' -expect_unresolved \*'
9003        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'
9004      fi
9005      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9006      hardcode_libdir_separator=:
9007      ;;
9008
9009    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9010      if test "$GCC" = yes; then
9011        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9012        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'
9013        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9014      else
9015        allow_undefined_flag=' -expect_unresolved \*'
9016        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'
9017        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9018        $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'
9019
9020        # Both c and cxx compiler support -rpath directly
9021        hardcode_libdir_flag_spec='-rpath $libdir'
9022      fi
9023      hardcode_libdir_separator=:
9024      ;;
9025
9026    solaris*)
9027      no_undefined_flag=' -z text'
9028      if test "$GCC" = yes; then
9029        wlarc='${wl}'
9030        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9031        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9032          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9033      else
9034        wlarc=''
9035        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9037        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9038      fi
9039      hardcode_libdir_flag_spec='-R$libdir'
9040      hardcode_shlibpath_var=no
9041      case $host_os in
9042      solaris2.[0-5] | solaris2.[0-5].*) ;;
9043      *)
9044        # The compiler driver will combine linker options so we
9045        # cannot just pass the convience library names through
9046        # without $wl, iff we do not link with $LD.
9047        # Luckily, gcc supports the same syntax we need for Sun Studio.
9048        # Supported since Solaris 2.6 (maybe 2.5.1?)
9049        case $wlarc in
9050        '')
9051          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9052        *)
9053          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' ;;
9054        esac ;;
9055      esac
9056      link_all_deplibs=yes
9057      ;;
9058
9059    sunos4*)
9060      if test "x$host_vendor" = xsequent; then
9061        # Use $CC to link under sequent, because it throws in some extra .o
9062        # files that make .init and .fini sections work.
9063        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9064      else
9065        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9066      fi
9067      hardcode_libdir_flag_spec='-L$libdir'
9068      hardcode_direct=yes
9069      hardcode_minus_L=yes
9070      hardcode_shlibpath_var=no
9071      ;;
9072
9073    sysv4)
9074      case $host_vendor in
9075        sni)
9076          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9077          hardcode_direct=yes # is this really true???
9078        ;;
9079        siemens)
9080          ## LD is ld it makes a PLAMLIB
9081          ## CC just makes a GrossModule.
9082          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9083          reload_cmds='$CC -r -o $output$reload_objs'
9084          hardcode_direct=no
9085        ;;
9086        motorola)
9087          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9089        ;;
9090      esac
9091      runpath_var='LD_RUN_PATH'
9092      hardcode_shlibpath_var=no
9093      ;;
9094
9095    sysv4.3*)
9096      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9097      hardcode_shlibpath_var=no
9098      export_dynamic_flag_spec='-Bexport'
9099      ;;
9100
9101    sysv4*MP*)
9102      if test -d /usr/nec; then
9103        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104        hardcode_shlibpath_var=no
9105        runpath_var=LD_RUN_PATH
9106        hardcode_runpath_var=yes
9107        ld_shlibs=yes
9108      fi
9109      ;;
9110
9111    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9112      no_undefined_flag='${wl}-z,text'
9113      archive_cmds_need_lc=no
9114      hardcode_shlibpath_var=no
9115      runpath_var='LD_RUN_PATH'
9116
9117      if test "$GCC" = yes; then
9118        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9119        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9120      else
9121        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9122        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9123      fi
9124      ;;
9125
9126    sysv5* | sco3.2v5* | sco5v6*)
9127      # Note: We can NOT use -z defs as we might desire, because we do not
9128      # link with -lc, and that would cause any symbols used from libc to
9129      # always be unresolved, which means just about no library would
9130      # ever link correctly.  If we're not using GNU ld we use -z text
9131      # though, which does catch some bad symbols but isn't as heavy-handed
9132      # as -z defs.
9133      no_undefined_flag='${wl}-z,text'
9134      allow_undefined_flag='${wl}-z,nodefs'
9135      archive_cmds_need_lc=no
9136      hardcode_shlibpath_var=no
9137      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9138      hardcode_libdir_separator=':'
9139      link_all_deplibs=yes
9140      export_dynamic_flag_spec='${wl}-Bexport'
9141      runpath_var='LD_RUN_PATH'
9142
9143      if test "$GCC" = yes; then
9144        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9145        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9146      else
9147        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9148        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9149      fi
9150      ;;
9151
9152    uts4*)
9153      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9154      hardcode_libdir_flag_spec='-L$libdir'
9155      hardcode_shlibpath_var=no
9156      ;;
9157
9158    *)
9159      ld_shlibs=no
9160      ;;
9161    esac
9162  fi
9163
9164echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9165echo "${ECHO_T}$ld_shlibs" >&6
9166test "$ld_shlibs" = no && can_build_shared=no
9167
9168#
9169# Do we need to explicitly link libc?
9170#
9171case "x$archive_cmds_need_lc" in
9172x|xyes)
9173  # Assume -lc should be added
9174  archive_cmds_need_lc=yes
9175
9176  if test "$enable_shared" = yes && test "$GCC" = yes; then
9177    case $archive_cmds in
9178    *'~'*)
9179      # FIXME: we may have to deal with multi-command sequences.
9180      ;;
9181    '$CC '*)
9182      # Test whether the compiler implicitly links with -lc since on some
9183      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9184      # to ld, don't add -lc before -lgcc.
9185      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9186echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9187      $rm conftest*
9188      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9189
9190      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191  (eval $ac_compile) 2>&5
9192  ac_status=$?
9193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194  (exit $ac_status); } 2>conftest.err; then
9195        soname=conftest
9196        lib=conftest
9197        libobjs=conftest.$ac_objext
9198        deplibs=
9199        wl=$lt_prog_compiler_wl
9200        pic_flag=$lt_prog_compiler_pic
9201        compiler_flags=-v
9202        linker_flags=-v
9203        verstring=
9204        output_objdir=.
9205        libname=conftest
9206        lt_save_allow_undefined_flag=$allow_undefined_flag
9207        allow_undefined_flag=
9208        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9209  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9210  ac_status=$?
9211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212  (exit $ac_status); }
9213        then
9214          archive_cmds_need_lc=no
9215        else
9216          archive_cmds_need_lc=yes
9217        fi
9218        allow_undefined_flag=$lt_save_allow_undefined_flag
9219      else
9220        cat conftest.err 1>&5
9221      fi
9222      $rm conftest*
9223      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9224echo "${ECHO_T}$archive_cmds_need_lc" >&6
9225      ;;
9226    esac
9227  fi
9228  ;;
9229esac
9230
9231echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9232echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9233library_names_spec=
9234libname_spec='lib$name'
9235soname_spec=
9236shrext_cmds=".so"
9237postinstall_cmds=
9238postuninstall_cmds=
9239finish_cmds=
9240finish_eval=
9241shlibpath_var=
9242shlibpath_overrides_runpath=unknown
9243version_type=none
9244dynamic_linker="$host_os ld.so"
9245sys_lib_dlsearch_path_spec="/lib /usr/lib"
9246if test "$GCC" = yes; then
9247  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9248  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9249    # if the path contains ";" then we assume it to be the separator
9250    # otherwise default to the standard path separator (i.e. ":") - it is
9251    # assumed that no part of a normal pathname contains ";" but that should
9252    # okay in the real world where ";" in dirpaths is itself problematic.
9253    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9254  else
9255    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9256  fi
9257else
9258  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9259fi
9260need_lib_prefix=unknown
9261hardcode_into_libs=no
9262
9263# when you set need_version to no, make sure it does not cause -set_version
9264# flags to be left without arguments
9265need_version=unknown
9266
9267case $host_os in
9268aix3*)
9269  version_type=linux
9270  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9271  shlibpath_var=LIBPATH
9272
9273  # AIX 3 has no versioning support, so we append a major version to the name.
9274  soname_spec='${libname}${release}${shared_ext}$major'
9275  ;;
9276
9277aix4* | aix5*)
9278  version_type=linux
9279  need_lib_prefix=no
9280  need_version=no
9281  hardcode_into_libs=yes
9282  if test "$host_cpu" = ia64; then
9283    # AIX 5 supports IA64
9284    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9285    shlibpath_var=LD_LIBRARY_PATH
9286  else
9287    # With GCC up to 2.95.x, collect2 would create an import file
9288    # for dependence libraries.  The import file would start with
9289    # the line `#! .'.  This would cause the generated library to
9290    # depend on `.', always an invalid library.  This was fixed in
9291    # development snapshots of GCC prior to 3.0.
9292    case $host_os in
9293      aix4 | aix4.[01] | aix4.[01].*)
9294      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9295           echo ' yes '
9296           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9297        :
9298      else
9299        can_build_shared=no
9300      fi
9301      ;;
9302    esac
9303    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9304    # soname into executable. Probably we can add versioning support to
9305    # collect2, so additional links can be useful in future.
9306    if test "$aix_use_runtimelinking" = yes; then
9307      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9308      # instead of lib<name>.a to let people know that these are not
9309      # typical AIX shared libraries.
9310      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311    else
9312      # We preserve .a as extension for shared libraries through AIX4.2
9313      # and later when we are not doing run time linking.
9314      library_names_spec='${libname}${release}.a $libname.a'
9315      soname_spec='${libname}${release}${shared_ext}$major'
9316    fi
9317    shlibpath_var=LIBPATH
9318  fi
9319  ;;
9320
9321amigaos*)
9322  library_names_spec='$libname.ixlibrary $libname.a'
9323  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9324  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'
9325  ;;
9326
9327beos*)
9328  library_names_spec='${libname}${shared_ext}'
9329  dynamic_linker="$host_os ld.so"
9330  shlibpath_var=LIBRARY_PATH
9331  ;;
9332
9333bsdi[45]*)
9334  version_type=linux
9335  need_version=no
9336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337  soname_spec='${libname}${release}${shared_ext}$major'
9338  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9339  shlibpath_var=LD_LIBRARY_PATH
9340  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9341  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9342  # the default ld.so.conf also contains /usr/contrib/lib and
9343  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9344  # libtool to hard-code these into programs
9345  ;;
9346
9347cygwin* | mingw* | pw32*)
9348  version_type=windows
9349  shrext_cmds=".dll"
9350  need_version=no
9351  need_lib_prefix=no
9352
9353  case $GCC,$host_os in
9354  yes,cygwin* | yes,mingw* | yes,pw32*)
9355    library_names_spec='$libname.dll.a'
9356    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9357    postinstall_cmds='base_file=`basename \${file}`~
9358      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9359      dldir=$destdir/`dirname \$dlpath`~
9360      test -d \$dldir || mkdir -p \$dldir~
9361      $install_prog $dir/$dlname \$dldir/$dlname~
9362      chmod a+x \$dldir/$dlname'
9363    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9364      dlpath=$dir/\$dldll~
9365       $rm \$dlpath'
9366    shlibpath_overrides_runpath=yes
9367
9368    case $host_os in
9369    cygwin*)
9370      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9371      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9372      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9373      ;;
9374    mingw*)
9375      # MinGW DLLs use traditional 'lib' prefix
9376      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9377      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9378      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9379        # It is most probably a Windows format PATH printed by
9380        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9381        # path with ; separators, and with drive letters. We can handle the
9382        # drive letters (cygwin fileutils understands them), so leave them,
9383        # especially as we might pass files found there to a mingw objdump,
9384        # which wouldn't understand a cygwinified path. Ahh.
9385        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9386      else
9387        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9388      fi
9389      ;;
9390    pw32*)
9391      # pw32 DLLs use 'pw' prefix rather than 'lib'
9392      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9393      ;;
9394    esac
9395    ;;
9396
9397  *)
9398    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9399    ;;
9400  esac
9401  dynamic_linker='Win32 ld.exe'
9402  # FIXME: first we should search . and the directory the executable is in
9403  shlibpath_var=PATH
9404  ;;
9405
9406darwin* | rhapsody*)
9407  dynamic_linker="$host_os dyld"
9408  version_type=darwin
9409  need_lib_prefix=no
9410  need_version=no
9411  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9412  soname_spec='${libname}${release}${major}$shared_ext'
9413  shlibpath_overrides_runpath=yes
9414  shlibpath_var=DYLD_LIBRARY_PATH
9415  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9416  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9417  if test "$GCC" = yes; then
9418    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"`
9419  else
9420    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9421  fi
9422  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9423  ;;
9424
9425dgux*)
9426  version_type=linux
9427  need_lib_prefix=no
9428  need_version=no
9429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9430  soname_spec='${libname}${release}${shared_ext}$major'
9431  shlibpath_var=LD_LIBRARY_PATH
9432  ;;
9433
9434freebsd1*)
9435  dynamic_linker=no
9436  ;;
9437
9438kfreebsd*-gnu)
9439  version_type=linux
9440  need_lib_prefix=no
9441  need_version=no
9442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9443  soname_spec='${libname}${release}${shared_ext}$major'
9444  shlibpath_var=LD_LIBRARY_PATH
9445  shlibpath_overrides_runpath=no
9446  hardcode_into_libs=yes
9447  dynamic_linker='GNU ld.so'
9448  ;;
9449
9450freebsd* | dragonfly*)
9451  # DragonFly does not have aout.  When/if they implement a new
9452  # versioning mechanism, adjust this.
9453  if test -x /usr/bin/objformat; then
9454    objformat=`/usr/bin/objformat`
9455  else
9456    case $host_os in
9457    freebsd[123]*) objformat=aout ;;
9458    *) objformat=elf ;;
9459    esac
9460  fi
9461  version_type=freebsd-$objformat
9462  case $version_type in
9463    freebsd-elf*)
9464      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9465      need_version=no
9466      need_lib_prefix=no
9467      ;;
9468    freebsd-*)
9469      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9470      need_version=yes
9471      ;;
9472  esac
9473  shlibpath_var=LD_LIBRARY_PATH
9474  case $host_os in
9475  freebsd2*)
9476    shlibpath_overrides_runpath=yes
9477    ;;
9478  freebsd3.[01]* | freebsdelf3.[01]*)
9479    shlibpath_overrides_runpath=yes
9480    hardcode_into_libs=yes
9481    ;;
9482  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9483  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9484    shlibpath_overrides_runpath=no
9485    hardcode_into_libs=yes
9486    ;;
9487  freebsd*) # from 4.6 on
9488    shlibpath_overrides_runpath=yes
9489    hardcode_into_libs=yes
9490    ;;
9491  esac
9492  ;;
9493
9494gnu*)
9495  version_type=linux
9496  need_lib_prefix=no
9497  need_version=no
9498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9499  soname_spec='${libname}${release}${shared_ext}$major'
9500  shlibpath_var=LD_LIBRARY_PATH
9501  hardcode_into_libs=yes
9502  ;;
9503
9504hpux9* | hpux10* | hpux11*)
9505  # Give a soname corresponding to the major version so that dld.sl refuses to
9506  # link against other versions.
9507  version_type=sunos
9508  need_lib_prefix=no
9509  need_version=no
9510  case $host_cpu in
9511  ia64*)
9512    shrext_cmds='.so'
9513    hardcode_into_libs=yes
9514    dynamic_linker="$host_os dld.so"
9515    shlibpath_var=LD_LIBRARY_PATH
9516    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9517    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518    soname_spec='${libname}${release}${shared_ext}$major'
9519    if test "X$HPUX_IA64_MODE" = X32; then
9520      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9521    else
9522      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9523    fi
9524    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9525    ;;
9526   hppa*64*)
9527     shrext_cmds='.sl'
9528     hardcode_into_libs=yes
9529     dynamic_linker="$host_os dld.sl"
9530     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9531     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533     soname_spec='${libname}${release}${shared_ext}$major'
9534     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9535     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9536     ;;
9537   *)
9538    shrext_cmds='.sl'
9539    dynamic_linker="$host_os dld.sl"
9540    shlibpath_var=SHLIB_PATH
9541    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9542    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543    soname_spec='${libname}${release}${shared_ext}$major'
9544    ;;
9545  esac
9546  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9547  postinstall_cmds='chmod 555 $lib'
9548  ;;
9549
9550interix3*)
9551  version_type=linux
9552  need_lib_prefix=no
9553  need_version=no
9554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9555  soname_spec='${libname}${release}${shared_ext}$major'
9556  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9557  shlibpath_var=LD_LIBRARY_PATH
9558  shlibpath_overrides_runpath=no
9559  hardcode_into_libs=yes
9560  ;;
9561
9562irix5* | irix6* | nonstopux*)
9563  case $host_os in
9564    nonstopux*) version_type=nonstopux ;;
9565    *)
9566        if test "$lt_cv_prog_gnu_ld" = yes; then
9567                version_type=linux
9568        else
9569                version_type=irix
9570        fi ;;
9571  esac
9572  need_lib_prefix=no
9573  need_version=no
9574  soname_spec='${libname}${release}${shared_ext}$major'
9575  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9576  case $host_os in
9577  irix5* | nonstopux*)
9578    libsuff= shlibsuff=
9579    ;;
9580  *)
9581    case $LD in # libtool.m4 will add one of these switches to LD
9582    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9583      libsuff= shlibsuff= libmagic=32-bit;;
9584    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9585      libsuff=32 shlibsuff=N32 libmagic=N32;;
9586    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9587      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9588    *) libsuff= shlibsuff= libmagic=never-match;;
9589    esac
9590    ;;
9591  esac
9592  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9593  shlibpath_overrides_runpath=no
9594  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9595  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9596  hardcode_into_libs=yes
9597  ;;
9598
9599# No shared lib support for Linux oldld, aout, or coff.
9600linux*oldld* | linux*aout* | linux*coff*)
9601  dynamic_linker=no
9602  ;;
9603
9604# This must be Linux ELF.
9605linux*)
9606  version_type=linux
9607  need_lib_prefix=no
9608  need_version=no
9609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610  soname_spec='${libname}${release}${shared_ext}$major'
9611  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9612  shlibpath_var=LD_LIBRARY_PATH
9613  shlibpath_overrides_runpath=no
9614  # This implies no fast_install, which is unacceptable.
9615  # Some rework will be needed to allow for fast_install
9616  # before this can be enabled.
9617  hardcode_into_libs=yes
9618
9619  # Append ld.so.conf contents to the search path
9620  if test -f /etc/ld.so.conf; then
9621    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' ' '`
9622    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9623  fi
9624
9625  # We used to test for /lib/ld.so.1 and disable shared libraries on
9626  # powerpc, because MkLinux only supported shared libraries with the
9627  # GNU dynamic linker.  Since this was broken with cross compilers,
9628  # most powerpc-linux boxes support dynamic linking these days and
9629  # people can always --disable-shared, the test was removed, and we
9630  # assume the GNU/Linux dynamic linker is in use.
9631  dynamic_linker='GNU/Linux ld.so'
9632  ;;
9633
9634knetbsd*-gnu)
9635  version_type=linux
9636  need_lib_prefix=no
9637  need_version=no
9638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9639  soname_spec='${libname}${release}${shared_ext}$major'
9640  shlibpath_var=LD_LIBRARY_PATH
9641  shlibpath_overrides_runpath=no
9642  hardcode_into_libs=yes
9643  dynamic_linker='GNU ld.so'
9644  ;;
9645
9646netbsd*)
9647  version_type=sunos
9648  need_lib_prefix=no
9649  need_version=no
9650  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9651    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9652    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9653    dynamic_linker='NetBSD (a.out) ld.so'
9654  else
9655    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9656    soname_spec='${libname}${release}${shared_ext}$major'
9657    dynamic_linker='NetBSD ld.elf_so'
9658  fi
9659  shlibpath_var=LD_LIBRARY_PATH
9660  shlibpath_overrides_runpath=yes
9661  hardcode_into_libs=yes
9662  ;;
9663
9664newsos6)
9665  version_type=linux
9666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  shlibpath_overrides_runpath=yes
9669  ;;
9670
9671nto-qnx*)
9672  version_type=linux
9673  need_lib_prefix=no
9674  need_version=no
9675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676  soname_spec='${libname}${release}${shared_ext}$major'
9677  shlibpath_var=LD_LIBRARY_PATH
9678  shlibpath_overrides_runpath=yes
9679  ;;
9680
9681openbsd*)
9682  version_type=sunos
9683  sys_lib_dlsearch_path_spec="/usr/lib"
9684  need_lib_prefix=no
9685  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9686  case $host_os in
9687    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9688    *)                         need_version=no  ;;
9689  esac
9690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9691  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9692  shlibpath_var=LD_LIBRARY_PATH
9693  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9694    case $host_os in
9695      openbsd2.[89] | openbsd2.[89].*)
9696        shlibpath_overrides_runpath=no
9697        ;;
9698      *)
9699        shlibpath_overrides_runpath=yes
9700        ;;
9701      esac
9702  else
9703    shlibpath_overrides_runpath=yes
9704  fi
9705  ;;
9706
9707os2*)
9708  libname_spec='$name'
9709  shrext_cmds=".dll"
9710  need_lib_prefix=no
9711  library_names_spec='$libname${shared_ext} $libname.a'
9712  dynamic_linker='OS/2 ld.exe'
9713  shlibpath_var=LIBPATH
9714  ;;
9715
9716osf3* | osf4* | osf5*)
9717  version_type=osf
9718  need_lib_prefix=no
9719  need_version=no
9720  soname_spec='${libname}${release}${shared_ext}$major'
9721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722  shlibpath_var=LD_LIBRARY_PATH
9723  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9724  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9725  ;;
9726
9727solaris*)
9728  version_type=linux
9729  need_lib_prefix=no
9730  need_version=no
9731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732  soname_spec='${libname}${release}${shared_ext}$major'
9733  shlibpath_var=LD_LIBRARY_PATH
9734  shlibpath_overrides_runpath=yes
9735  hardcode_into_libs=yes
9736  # ldd complains unless libraries are executable
9737  postinstall_cmds='chmod +x $lib'
9738  ;;
9739
9740sunos4*)
9741  version_type=sunos
9742  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9743  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9744  shlibpath_var=LD_LIBRARY_PATH
9745  shlibpath_overrides_runpath=yes
9746  if test "$with_gnu_ld" = yes; then
9747    need_lib_prefix=no
9748  fi
9749  need_version=yes
9750  ;;
9751
9752sysv4 | sysv4.3*)
9753  version_type=linux
9754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755  soname_spec='${libname}${release}${shared_ext}$major'
9756  shlibpath_var=LD_LIBRARY_PATH
9757  case $host_vendor in
9758    sni)
9759      shlibpath_overrides_runpath=no
9760      need_lib_prefix=no
9761      export_dynamic_flag_spec='${wl}-Blargedynsym'
9762      runpath_var=LD_RUN_PATH
9763      ;;
9764    siemens)
9765      need_lib_prefix=no
9766      ;;
9767    motorola)
9768      need_lib_prefix=no
9769      need_version=no
9770      shlibpath_overrides_runpath=no
9771      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9772      ;;
9773  esac
9774  ;;
9775
9776sysv4*MP*)
9777  if test -d /usr/nec ;then
9778    version_type=linux
9779    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9780    soname_spec='$libname${shared_ext}.$major'
9781    shlibpath_var=LD_LIBRARY_PATH
9782  fi
9783  ;;
9784
9785sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9786  version_type=freebsd-elf
9787  need_lib_prefix=no
9788  need_version=no
9789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9790  soname_spec='${libname}${release}${shared_ext}$major'
9791  shlibpath_var=LD_LIBRARY_PATH
9792  hardcode_into_libs=yes
9793  if test "$with_gnu_ld" = yes; then
9794    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9795    shlibpath_overrides_runpath=no
9796  else
9797    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9798    shlibpath_overrides_runpath=yes
9799    case $host_os in
9800      sco3.2v5*)
9801        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9802        ;;
9803    esac
9804  fi
9805  sys_lib_dlsearch_path_spec='/usr/lib'
9806  ;;
9807
9808uts4*)
9809  version_type=linux
9810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811  soname_spec='${libname}${release}${shared_ext}$major'
9812  shlibpath_var=LD_LIBRARY_PATH
9813  ;;
9814
9815*)
9816  dynamic_linker=no
9817  ;;
9818esac
9819echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9820echo "${ECHO_T}$dynamic_linker" >&6
9821test "$dynamic_linker" = no && can_build_shared=no
9822
9823variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9824if test "$GCC" = yes; then
9825  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9826fi
9827
9828echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9829echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9830hardcode_action=
9831if test -n "$hardcode_libdir_flag_spec" || \
9832   test -n "$runpath_var" || \
9833   test "X$hardcode_automatic" = "Xyes" ; then
9834
9835  # We can hardcode non-existant directories.
9836  if test "$hardcode_direct" != no &&
9837     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9838     # have to relink, otherwise we might link with an installed library
9839     # when we should be linking with a yet-to-be-installed one
9840     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9841     test "$hardcode_minus_L" != no; then
9842    # Linking always hardcodes the temporary library directory.
9843    hardcode_action=relink
9844  else
9845    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9846    hardcode_action=immediate
9847  fi
9848else
9849  # We cannot hardcode anything, or else we can only hardcode existing
9850  # directories.
9851  hardcode_action=unsupported
9852fi
9853echo "$as_me:$LINENO: result: $hardcode_action" >&5
9854echo "${ECHO_T}$hardcode_action" >&6
9855
9856if test "$hardcode_action" = relink; then
9857  # Fast installation is not supported
9858  enable_fast_install=no
9859elif test "$shlibpath_overrides_runpath" = yes ||
9860     test "$enable_shared" = no; then
9861  # Fast installation is not necessary
9862  enable_fast_install=needless
9863fi
9864
9865striplib=
9866old_striplib=
9867echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9868echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9869if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9870  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9871  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9872  echo "$as_me:$LINENO: result: yes" >&5
9873echo "${ECHO_T}yes" >&6
9874else
9875# FIXME - insert some real tests, host_os isn't really good enough
9876  case $host_os in
9877   darwin*)
9878       if test -n "$STRIP" ; then
9879         striplib="$STRIP -x"
9880         echo "$as_me:$LINENO: result: yes" >&5
9881echo "${ECHO_T}yes" >&6
9882       else
9883  echo "$as_me:$LINENO: result: no" >&5
9884echo "${ECHO_T}no" >&6
9885fi
9886       ;;
9887   *)
9888  echo "$as_me:$LINENO: result: no" >&5
9889echo "${ECHO_T}no" >&6
9890    ;;
9891  esac
9892fi
9893
9894if test "x$enable_dlopen" != xyes; then
9895  enable_dlopen=unknown
9896  enable_dlopen_self=unknown
9897  enable_dlopen_self_static=unknown
9898else
9899  lt_cv_dlopen=no
9900  lt_cv_dlopen_libs=
9901
9902  case $host_os in
9903  beos*)
9904    lt_cv_dlopen="load_add_on"
9905    lt_cv_dlopen_libs=
9906    lt_cv_dlopen_self=yes
9907    ;;
9908
9909  mingw* | pw32*)
9910    lt_cv_dlopen="LoadLibrary"
9911    lt_cv_dlopen_libs=
9912   ;;
9913
9914  cygwin*)
9915    lt_cv_dlopen="dlopen"
9916    lt_cv_dlopen_libs=
9917   ;;
9918
9919  darwin*)
9920  # if libdl is installed we need to link against it
9921    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9922echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9923if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9924  echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926  ac_check_lib_save_LIBS=$LIBS
9927LIBS="-ldl  $LIBS"
9928cat >conftest.$ac_ext <<_ACEOF
9929/* confdefs.h.  */
9930_ACEOF
9931cat confdefs.h >>conftest.$ac_ext
9932cat >>conftest.$ac_ext <<_ACEOF
9933/* end confdefs.h.  */
9934
9935/* Override any gcc2 internal prototype to avoid an error.  */
9936#ifdef __cplusplus
9937extern "C"
9938#endif
9939/* We use char because int might match the return type of a gcc2
9940   builtin and then its argument prototype would still apply.  */
9941char dlopen ();
9942int
9943main ()
9944{
9945dlopen ();
9946  ;
9947  return 0;
9948}
9949_ACEOF
9950rm -f conftest.$ac_objext conftest$ac_exeext
9951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952  (eval $ac_link) 2>conftest.er1
9953  ac_status=$?
9954  grep -v '^ *+' conftest.er1 >conftest.err
9955  rm -f conftest.er1
9956  cat conftest.err >&5
9957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958  (exit $ac_status); } &&
9959         { ac_try='test -z "$ac_c_werror_flag"
9960                         || test ! -s conftest.err'
9961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962  (eval $ac_try) 2>&5
9963  ac_status=$?
9964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965  (exit $ac_status); }; } &&
9966         { ac_try='test -s conftest$ac_exeext'
9967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968  (eval $ac_try) 2>&5
9969  ac_status=$?
9970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971  (exit $ac_status); }; }; then
9972  ac_cv_lib_dl_dlopen=yes
9973else
9974  echo "$as_me: failed program was:" >&5
9975sed 's/^/| /' conftest.$ac_ext >&5
9976
9977ac_cv_lib_dl_dlopen=no
9978fi
9979rm -f conftest.err conftest.$ac_objext \
9980      conftest$ac_exeext conftest.$ac_ext
9981LIBS=$ac_check_lib_save_LIBS
9982fi
9983echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9984echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9985if test $ac_cv_lib_dl_dlopen = yes; then
9986  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9987else
9988
9989    lt_cv_dlopen="dyld"
9990    lt_cv_dlopen_libs=
9991    lt_cv_dlopen_self=yes
9992
9993fi
9994
9995   ;;
9996
9997  *)
9998    echo "$as_me:$LINENO: checking for shl_load" >&5
9999echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10000if test "${ac_cv_func_shl_load+set}" = set; then
10001  echo $ECHO_N "(cached) $ECHO_C" >&6
10002else
10003  cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h.  */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
10008/* end confdefs.h.  */
10009/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10010   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10011#define shl_load innocuous_shl_load
10012
10013/* System header to define __stub macros and hopefully few prototypes,
10014    which can conflict with char shl_load (); below.
10015    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10016    <limits.h> exists even on freestanding compilers.  */
10017
10018#ifdef __STDC__
10019# include <limits.h>
10020#else
10021# include <assert.h>
10022#endif
10023
10024#undef shl_load
10025
10026/* Override any gcc2 internal prototype to avoid an error.  */
10027#ifdef __cplusplus
10028extern "C"
10029{
10030#endif
10031/* We use char because int might match the return type of a gcc2
10032   builtin and then its argument prototype would still apply.  */
10033char shl_load ();
10034/* The GNU C library defines this for functions which it implements
10035    to always fail with ENOSYS.  Some functions are actually named
10036    something starting with __ and the normal name is an alias.  */
10037#if defined (__stub_shl_load) || defined (__stub___shl_load)
10038choke me
10039#else
10040char (*f) () = shl_load;
10041#endif
10042#ifdef __cplusplus
10043}
10044#endif
10045
10046int
10047main ()
10048{
10049return f != shl_load;
10050  ;
10051  return 0;
10052}
10053_ACEOF
10054rm -f conftest.$ac_objext conftest$ac_exeext
10055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10056  (eval $ac_link) 2>conftest.er1
10057  ac_status=$?
10058  grep -v '^ *+' conftest.er1 >conftest.err
10059  rm -f conftest.er1
10060  cat conftest.err >&5
10061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062  (exit $ac_status); } &&
10063         { ac_try='test -z "$ac_c_werror_flag"
10064                         || test ! -s conftest.err'
10065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066  (eval $ac_try) 2>&5
10067  ac_status=$?
10068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069  (exit $ac_status); }; } &&
10070         { ac_try='test -s conftest$ac_exeext'
10071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072  (eval $ac_try) 2>&5
10073  ac_status=$?
10074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075  (exit $ac_status); }; }; then
10076  ac_cv_func_shl_load=yes
10077else
10078  echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
10081ac_cv_func_shl_load=no
10082fi
10083rm -f conftest.err conftest.$ac_objext \
10084      conftest$ac_exeext conftest.$ac_ext
10085fi
10086echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10087echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10088if test $ac_cv_func_shl_load = yes; then
10089  lt_cv_dlopen="shl_load"
10090else
10091  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10092echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10093if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10094  echo $ECHO_N "(cached) $ECHO_C" >&6
10095else
10096  ac_check_lib_save_LIBS=$LIBS
10097LIBS="-ldld  $LIBS"
10098cat >conftest.$ac_ext <<_ACEOF
10099/* confdefs.h.  */
10100_ACEOF
10101cat confdefs.h >>conftest.$ac_ext
10102cat >>conftest.$ac_ext <<_ACEOF
10103/* end confdefs.h.  */
10104
10105/* Override any gcc2 internal prototype to avoid an error.  */
10106#ifdef __cplusplus
10107extern "C"
10108#endif
10109/* We use char because int might match the return type of a gcc2
10110   builtin and then its argument prototype would still apply.  */
10111char shl_load ();
10112int
10113main ()
10114{
10115shl_load ();
10116  ;
10117  return 0;
10118}
10119_ACEOF
10120rm -f conftest.$ac_objext conftest$ac_exeext
10121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10122  (eval $ac_link) 2>conftest.er1
10123  ac_status=$?
10124  grep -v '^ *+' conftest.er1 >conftest.err
10125  rm -f conftest.er1
10126  cat conftest.err >&5
10127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128  (exit $ac_status); } &&
10129         { ac_try='test -z "$ac_c_werror_flag"
10130                         || test ! -s conftest.err'
10131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132  (eval $ac_try) 2>&5
10133  ac_status=$?
10134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135  (exit $ac_status); }; } &&
10136         { ac_try='test -s conftest$ac_exeext'
10137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138  (eval $ac_try) 2>&5
10139  ac_status=$?
10140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141  (exit $ac_status); }; }; then
10142  ac_cv_lib_dld_shl_load=yes
10143else
10144  echo "$as_me: failed program was:" >&5
10145sed 's/^/| /' conftest.$ac_ext >&5
10146
10147ac_cv_lib_dld_shl_load=no
10148fi
10149rm -f conftest.err conftest.$ac_objext \
10150      conftest$ac_exeext conftest.$ac_ext
10151LIBS=$ac_check_lib_save_LIBS
10152fi
10153echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10154echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10155if test $ac_cv_lib_dld_shl_load = yes; then
10156  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10157else
10158  echo "$as_me:$LINENO: checking for dlopen" >&5
10159echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10160if test "${ac_cv_func_dlopen+set}" = set; then
10161  echo $ECHO_N "(cached) $ECHO_C" >&6
10162else
10163  cat >conftest.$ac_ext <<_ACEOF
10164/* confdefs.h.  */
10165_ACEOF
10166cat confdefs.h >>conftest.$ac_ext
10167cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h.  */
10169/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10170   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10171#define dlopen innocuous_dlopen
10172
10173/* System header to define __stub macros and hopefully few prototypes,
10174    which can conflict with char dlopen (); below.
10175    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10176    <limits.h> exists even on freestanding compilers.  */
10177
10178#ifdef __STDC__
10179# include <limits.h>
10180#else
10181# include <assert.h>
10182#endif
10183
10184#undef dlopen
10185
10186/* Override any gcc2 internal prototype to avoid an error.  */
10187#ifdef __cplusplus
10188extern "C"
10189{
10190#endif
10191/* We use char because int might match the return type of a gcc2
10192   builtin and then its argument prototype would still apply.  */
10193char dlopen ();
10194/* The GNU C library defines this for functions which it implements
10195    to always fail with ENOSYS.  Some functions are actually named
10196    something starting with __ and the normal name is an alias.  */
10197#if defined (__stub_dlopen) || defined (__stub___dlopen)
10198choke me
10199#else
10200char (*f) () = dlopen;
10201#endif
10202#ifdef __cplusplus
10203}
10204#endif
10205
10206int
10207main ()
10208{
10209return f != dlopen;
10210  ;
10211  return 0;
10212}
10213_ACEOF
10214rm -f conftest.$ac_objext conftest$ac_exeext
10215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216  (eval $ac_link) 2>conftest.er1
10217  ac_status=$?
10218  grep -v '^ *+' conftest.er1 >conftest.err
10219  rm -f conftest.er1
10220  cat conftest.err >&5
10221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222  (exit $ac_status); } &&
10223         { ac_try='test -z "$ac_c_werror_flag"
10224                         || test ! -s conftest.err'
10225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226  (eval $ac_try) 2>&5
10227  ac_status=$?
10228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229  (exit $ac_status); }; } &&
10230         { ac_try='test -s conftest$ac_exeext'
10231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232  (eval $ac_try) 2>&5
10233  ac_status=$?
10234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235  (exit $ac_status); }; }; then
10236  ac_cv_func_dlopen=yes
10237else
10238  echo "$as_me: failed program was:" >&5
10239sed 's/^/| /' conftest.$ac_ext >&5
10240
10241ac_cv_func_dlopen=no
10242fi
10243rm -f conftest.err conftest.$ac_objext \
10244      conftest$ac_exeext conftest.$ac_ext
10245fi
10246echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10247echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10248if test $ac_cv_func_dlopen = yes; then
10249  lt_cv_dlopen="dlopen"
10250else
10251  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10252echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10253if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10254  echo $ECHO_N "(cached) $ECHO_C" >&6
10255else
10256  ac_check_lib_save_LIBS=$LIBS
10257LIBS="-ldl  $LIBS"
10258cat >conftest.$ac_ext <<_ACEOF
10259/* confdefs.h.  */
10260_ACEOF
10261cat confdefs.h >>conftest.$ac_ext
10262cat >>conftest.$ac_ext <<_ACEOF
10263/* end confdefs.h.  */
10264
10265/* Override any gcc2 internal prototype to avoid an error.  */
10266#ifdef __cplusplus
10267extern "C"
10268#endif
10269/* We use char because int might match the return type of a gcc2
10270   builtin and then its argument prototype would still apply.  */
10271char dlopen ();
10272int
10273main ()
10274{
10275dlopen ();
10276  ;
10277  return 0;
10278}
10279_ACEOF
10280rm -f conftest.$ac_objext conftest$ac_exeext
10281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10282  (eval $ac_link) 2>conftest.er1
10283  ac_status=$?
10284  grep -v '^ *+' conftest.er1 >conftest.err
10285  rm -f conftest.er1
10286  cat conftest.err >&5
10287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288  (exit $ac_status); } &&
10289         { ac_try='test -z "$ac_c_werror_flag"
10290                         || test ! -s conftest.err'
10291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292  (eval $ac_try) 2>&5
10293  ac_status=$?
10294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295  (exit $ac_status); }; } &&
10296         { ac_try='test -s conftest$ac_exeext'
10297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298  (eval $ac_try) 2>&5
10299  ac_status=$?
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); }; }; then
10302  ac_cv_lib_dl_dlopen=yes
10303else
10304  echo "$as_me: failed program was:" >&5
10305sed 's/^/| /' conftest.$ac_ext >&5
10306
10307ac_cv_lib_dl_dlopen=no
10308fi
10309rm -f conftest.err conftest.$ac_objext \
10310      conftest$ac_exeext conftest.$ac_ext
10311LIBS=$ac_check_lib_save_LIBS
10312fi
10313echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10314echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10315if test $ac_cv_lib_dl_dlopen = yes; then
10316  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10317else
10318  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10319echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10320if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10321  echo $ECHO_N "(cached) $ECHO_C" >&6
10322else
10323  ac_check_lib_save_LIBS=$LIBS
10324LIBS="-lsvld  $LIBS"
10325cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h.  */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h.  */
10331
10332/* Override any gcc2 internal prototype to avoid an error.  */
10333#ifdef __cplusplus
10334extern "C"
10335#endif
10336/* We use char because int might match the return type of a gcc2
10337   builtin and then its argument prototype would still apply.  */
10338char dlopen ();
10339int
10340main ()
10341{
10342dlopen ();
10343  ;
10344  return 0;
10345}
10346_ACEOF
10347rm -f conftest.$ac_objext conftest$ac_exeext
10348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349  (eval $ac_link) 2>conftest.er1
10350  ac_status=$?
10351  grep -v '^ *+' conftest.er1 >conftest.err
10352  rm -f conftest.er1
10353  cat conftest.err >&5
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); } &&
10356         { ac_try='test -z "$ac_c_werror_flag"
10357                         || test ! -s conftest.err'
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); }; } &&
10363         { ac_try='test -s conftest$ac_exeext'
10364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10365  (eval $ac_try) 2>&5
10366  ac_status=$?
10367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368  (exit $ac_status); }; }; then
10369  ac_cv_lib_svld_dlopen=yes
10370else
10371  echo "$as_me: failed program was:" >&5
10372sed 's/^/| /' conftest.$ac_ext >&5
10373
10374ac_cv_lib_svld_dlopen=no
10375fi
10376rm -f conftest.err conftest.$ac_objext \
10377      conftest$ac_exeext conftest.$ac_ext
10378LIBS=$ac_check_lib_save_LIBS
10379fi
10380echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10381echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10382if test $ac_cv_lib_svld_dlopen = yes; then
10383  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10384else
10385  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10386echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10387if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10388  echo $ECHO_N "(cached) $ECHO_C" >&6
10389else
10390  ac_check_lib_save_LIBS=$LIBS
10391LIBS="-ldld  $LIBS"
10392cat >conftest.$ac_ext <<_ACEOF
10393/* confdefs.h.  */
10394_ACEOF
10395cat confdefs.h >>conftest.$ac_ext
10396cat >>conftest.$ac_ext <<_ACEOF
10397/* end confdefs.h.  */
10398
10399/* Override any gcc2 internal prototype to avoid an error.  */
10400#ifdef __cplusplus
10401extern "C"
10402#endif
10403/* We use char because int might match the return type of a gcc2
10404   builtin and then its argument prototype would still apply.  */
10405char dld_link ();
10406int
10407main ()
10408{
10409dld_link ();
10410  ;
10411  return 0;
10412}
10413_ACEOF
10414rm -f conftest.$ac_objext conftest$ac_exeext
10415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416  (eval $ac_link) 2>conftest.er1
10417  ac_status=$?
10418  grep -v '^ *+' conftest.er1 >conftest.err
10419  rm -f conftest.er1
10420  cat conftest.err >&5
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); } &&
10423         { ac_try='test -z "$ac_c_werror_flag"
10424                         || test ! -s conftest.err'
10425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426  (eval $ac_try) 2>&5
10427  ac_status=$?
10428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429  (exit $ac_status); }; } &&
10430         { ac_try='test -s conftest$ac_exeext'
10431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432  (eval $ac_try) 2>&5
10433  ac_status=$?
10434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435  (exit $ac_status); }; }; then
10436  ac_cv_lib_dld_dld_link=yes
10437else
10438  echo "$as_me: failed program was:" >&5
10439sed 's/^/| /' conftest.$ac_ext >&5
10440
10441ac_cv_lib_dld_dld_link=no
10442fi
10443rm -f conftest.err conftest.$ac_objext \
10444      conftest$ac_exeext conftest.$ac_ext
10445LIBS=$ac_check_lib_save_LIBS
10446fi
10447echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10448echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10449if test $ac_cv_lib_dld_dld_link = yes; then
10450  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10451fi
10452
10453
10454fi
10455
10456
10457fi
10458
10459
10460fi
10461
10462
10463fi
10464
10465
10466fi
10467
10468    ;;
10469  esac
10470
10471  if test "x$lt_cv_dlopen" != xno; then
10472    enable_dlopen=yes
10473  else
10474    enable_dlopen=no
10475  fi
10476
10477  case $lt_cv_dlopen in
10478  dlopen)
10479    save_CPPFLAGS="$CPPFLAGS"
10480    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10481
10482    save_LDFLAGS="$LDFLAGS"
10483    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10484
10485    save_LIBS="$LIBS"
10486    LIBS="$lt_cv_dlopen_libs $LIBS"
10487
10488    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10489echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10490if test "${lt_cv_dlopen_self+set}" = set; then
10491  echo $ECHO_N "(cached) $ECHO_C" >&6
10492else
10493          if test "$cross_compiling" = yes; then :
10494  lt_cv_dlopen_self=cross
10495else
10496  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10497  lt_status=$lt_dlunknown
10498  cat > conftest.$ac_ext <<EOF
10499#line 10499 "configure"
10500#include "confdefs.h"
10501
10502#if HAVE_DLFCN_H
10503#include <dlfcn.h>
10504#endif
10505
10506#include <stdio.h>
10507
10508#ifdef RTLD_GLOBAL
10509#  define LT_DLGLOBAL           RTLD_GLOBAL
10510#else
10511#  ifdef DL_GLOBAL
10512#    define LT_DLGLOBAL         DL_GLOBAL
10513#  else
10514#    define LT_DLGLOBAL         0
10515#  endif
10516#endif
10517
10518/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10519   find out it does not work in some platform. */
10520#ifndef LT_DLLAZY_OR_NOW
10521#  ifdef RTLD_LAZY
10522#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10523#  else
10524#    ifdef DL_LAZY
10525#      define LT_DLLAZY_OR_NOW          DL_LAZY
10526#    else
10527#      ifdef RTLD_NOW
10528#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10529#      else
10530#        ifdef DL_NOW
10531#          define LT_DLLAZY_OR_NOW      DL_NOW
10532#        else
10533#          define LT_DLLAZY_OR_NOW      0
10534#        endif
10535#      endif
10536#    endif
10537#  endif
10538#endif
10539
10540#ifdef __cplusplus
10541extern "C" void exit (int);
10542#endif
10543
10544void fnord() { int i=42;}
10545int main ()
10546{
10547  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10548  int status = $lt_dlunknown;
10549
10550  if (self)
10551    {
10552      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10553      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10554      /* dlclose (self); */
10555    }
10556  else
10557    puts (dlerror ());
10558
10559    exit (status);
10560}
10561EOF
10562  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563  (eval $ac_link) 2>&5
10564  ac_status=$?
10565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10567    (./conftest; exit; ) >&5 2>/dev/null
10568    lt_status=$?
10569    case x$lt_status in
10570      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10571      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10572      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10573    esac
10574  else :
10575    # compilation failed
10576    lt_cv_dlopen_self=no
10577  fi
10578fi
10579rm -fr conftest*
10580
10581
10582fi
10583echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10584echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10585
10586    if test "x$lt_cv_dlopen_self" = xyes; then
10587      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10588      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10589echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10590if test "${lt_cv_dlopen_self_static+set}" = set; then
10591  echo $ECHO_N "(cached) $ECHO_C" >&6
10592else
10593          if test "$cross_compiling" = yes; then :
10594  lt_cv_dlopen_self_static=cross
10595else
10596  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10597  lt_status=$lt_dlunknown
10598  cat > conftest.$ac_ext <<EOF
10599#line 10599 "configure"
10600#include "confdefs.h"
10601
10602#if HAVE_DLFCN_H
10603#include <dlfcn.h>
10604#endif
10605
10606#include <stdio.h>
10607
10608#ifdef RTLD_GLOBAL
10609#  define LT_DLGLOBAL           RTLD_GLOBAL
10610#else
10611#  ifdef DL_GLOBAL
10612#    define LT_DLGLOBAL         DL_GLOBAL
10613#  else
10614#    define LT_DLGLOBAL         0
10615#  endif
10616#endif
10617
10618/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10619   find out it does not work in some platform. */
10620#ifndef LT_DLLAZY_OR_NOW
10621#  ifdef RTLD_LAZY
10622#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10623#  else
10624#    ifdef DL_LAZY
10625#      define LT_DLLAZY_OR_NOW          DL_LAZY
10626#    else
10627#      ifdef RTLD_NOW
10628#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10629#      else
10630#        ifdef DL_NOW
10631#          define LT_DLLAZY_OR_NOW      DL_NOW
10632#        else
10633#          define LT_DLLAZY_OR_NOW      0
10634#        endif
10635#      endif
10636#    endif
10637#  endif
10638#endif
10639
10640#ifdef __cplusplus
10641extern "C" void exit (int);
10642#endif
10643
10644void fnord() { int i=42;}
10645int main ()
10646{
10647  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10648  int status = $lt_dlunknown;
10649
10650  if (self)
10651    {
10652      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10653      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10654      /* dlclose (self); */
10655    }
10656  else
10657    puts (dlerror ());
10658
10659    exit (status);
10660}
10661EOF
10662  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663  (eval $ac_link) 2>&5
10664  ac_status=$?
10665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10667    (./conftest; exit; ) >&5 2>/dev/null
10668    lt_status=$?
10669    case x$lt_status in
10670      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10671      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10672      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10673    esac
10674  else :
10675    # compilation failed
10676    lt_cv_dlopen_self_static=no
10677  fi
10678fi
10679rm -fr conftest*
10680
10681
10682fi
10683echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10684echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10685    fi
10686
10687    CPPFLAGS="$save_CPPFLAGS"
10688    LDFLAGS="$save_LDFLAGS"
10689    LIBS="$save_LIBS"
10690    ;;
10691  esac
10692
10693  case $lt_cv_dlopen_self in
10694  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10695  *) enable_dlopen_self=unknown ;;
10696  esac
10697
10698  case $lt_cv_dlopen_self_static in
10699  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10700  *) enable_dlopen_self_static=unknown ;;
10701  esac
10702fi
10703
10704
10705# Report which library types will actually be built
10706echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10707echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10708echo "$as_me:$LINENO: result: $can_build_shared" >&5
10709echo "${ECHO_T}$can_build_shared" >&6
10710
10711echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10712echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10713test "$can_build_shared" = "no" && enable_shared=no
10714
10715# On AIX, shared libraries and static libraries use the same namespace, and
10716# are all built from PIC.
10717case $host_os in
10718aix3*)
10719  test "$enable_shared" = yes && enable_static=no
10720  if test -n "$RANLIB"; then
10721    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10722    postinstall_cmds='$RANLIB $lib'
10723  fi
10724  ;;
10725
10726aix4* | aix5*)
10727  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10728    test "$enable_shared" = yes && enable_static=no
10729  fi
10730    ;;
10731esac
10732echo "$as_me:$LINENO: result: $enable_shared" >&5
10733echo "${ECHO_T}$enable_shared" >&6
10734
10735echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10736echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10737# Make sure either enable_shared or enable_static is yes.
10738test "$enable_shared" = yes || enable_static=yes
10739echo "$as_me:$LINENO: result: $enable_static" >&5
10740echo "${ECHO_T}$enable_static" >&6
10741
10742# The else clause should only fire when bootstrapping the
10743# libtool distribution, otherwise you forgot to ship ltmain.sh
10744# with your package, and you will get complaints that there are
10745# no rules to generate ltmain.sh.
10746if test -f "$ltmain"; then
10747  # See if we are running on zsh, and set the options which allow our commands through
10748  # without removal of \ escapes.
10749  if test -n "${ZSH_VERSION+set}" ; then
10750    setopt NO_GLOB_SUBST
10751  fi
10752  # Now quote all the things that may contain metacharacters while being
10753  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10754  # variables and quote the copies for generation of the libtool script.
10755  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10756    SED SHELL STRIP \
10757    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10758    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10759    deplibs_check_method reload_flag reload_cmds need_locks \
10760    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10761    lt_cv_sys_global_symbol_to_c_name_address \
10762    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10763    old_postinstall_cmds old_postuninstall_cmds \
10764    compiler \
10765    CC \
10766    LD \
10767    lt_prog_compiler_wl \
10768    lt_prog_compiler_pic \
10769    lt_prog_compiler_static \
10770    lt_prog_compiler_no_builtin_flag \
10771    export_dynamic_flag_spec \
10772    thread_safe_flag_spec \
10773    whole_archive_flag_spec \
10774    enable_shared_with_static_runtimes \
10775    old_archive_cmds \
10776    old_archive_from_new_cmds \
10777    predep_objects \
10778    postdep_objects \
10779    predeps \
10780    postdeps \
10781    compiler_lib_search_path \
10782    archive_cmds \
10783    archive_expsym_cmds \
10784    postinstall_cmds \
10785    postuninstall_cmds \
10786    old_archive_from_expsyms_cmds \
10787