source: ThirdParty/Lapack/branches/split/configure @ 1484

Last change on this file since 1484 was 1483, checked in by stefan, 12 years ago

synchronize with trunk by merging chgset 1422

  • Property svn:executable set to *
File size: 735.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyLapack 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyLapack'
431PACKAGE_TARNAME='thirdpartylapack'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyLapack 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="LAPACK/SRC/dlarf.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS DLAMCH_FFLAGS EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
977ac_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
978ac_cv_env_DLAMCH_FFLAGS_set=${DLAMCH_FFLAGS+set}
979ac_cv_env_DLAMCH_FFLAGS_value=$DLAMCH_FFLAGS
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXX_set=${CXX+set}
985ac_env_CXX_value=$CXX
986ac_cv_env_CXX_set=${CXX+set}
987ac_cv_env_CXX_value=$CXX
988ac_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_env_CXXFLAGS_value=$CXXFLAGS
990ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
991ac_cv_env_CXXFLAGS_value=$CXXFLAGS
992ac_env_CXXCPP_set=${CXXCPP+set}
993ac_env_CXXCPP_value=$CXXCPP
994ac_cv_env_CXXCPP_set=${CXXCPP+set}
995ac_cv_env_CXXCPP_value=$CXXCPP
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures ThirdPartyLapack 0.0 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of ThirdPartyLapack 0.0:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-lapack compile this project (Lapack) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095
1096Optional Packages:
1097  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1098  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1099  --with-lapack-verbosity specify the debug verbosity level for project Lapack
1100  --with-lapack-checklevel
1101                          specify the sanity check level for project Lapack
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107
1108Some influential environment variables:
1109  CDEFS       Additional -D flags to be used when compiling C code.
1110  ADD_CFLAGS  Additional C compiler options
1111  DBG_CFLAGS  Debug C compiler options
1112  OPT_CFLAGS  Optimize C compiler options
1113  CC          C compiler command
1114  CFLAGS      C compiler flags
1115  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1116              nonstandard directory <lib dir>
1117  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1118              headers in a nonstandard directory <include dir>
1119  MPICC       C MPI Compiler
1120  ADD_FFLAGS  Additional Fortran compiler options
1121  DBG_FFLAGS  Debug Fortran compiler options
1122  OPT_FFLAGS  Optimize Fortran compiler options
1123  F77         Fortran 77 compiler command
1124  FFLAGS      Fortran 77 compiler flags
1125  MPIF77      Fortran MPI Compiler
1126  DLAMCH_FFLAGS
1127              Fortran compiler options for DLAMCH.F
1128  CPP         C preprocessor
1129  CXX         C++ compiler command
1130  CXXFLAGS    C++ compiler flags
1131  CXXCPP      C++ preprocessor
1132
1133Use these variables to override the choices made by `configure' or to help
1134it to find libraries and programs with nonstandard names/locations.
1135
1136Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1137_ACEOF
1138fi
1139
1140if test "$ac_init_help" = "recursive"; then
1141  # If there are subdirs, report their specific --help.
1142  ac_popdir=`pwd`
1143  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1144    test -d $ac_dir || continue
1145    ac_builddir=.
1146
1147if test "$ac_dir" != .; then
1148  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1149  # A "../" for each directory in $ac_dir_suffix.
1150  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1151else
1152  ac_dir_suffix= ac_top_builddir=
1153fi
1154
1155case $srcdir in
1156  .)  # No --srcdir option.  We are building in place.
1157    ac_srcdir=.
1158    if test -z "$ac_top_builddir"; then
1159       ac_top_srcdir=.
1160    else
1161       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1162    fi ;;
1163  [\\/]* | ?:[\\/]* )  # Absolute path.
1164    ac_srcdir=$srcdir$ac_dir_suffix;
1165    ac_top_srcdir=$srcdir ;;
1166  *) # Relative path.
1167    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1168    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1169esac
1170
1171# Do not use `cd foo && pwd` to compute absolute paths, because
1172# the directories may not exist.
1173case `pwd` in
1174.) ac_abs_builddir="$ac_dir";;
1175*)
1176  case "$ac_dir" in
1177  .) ac_abs_builddir=`pwd`;;
1178  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1179  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1180  esac;;
1181esac
1182case $ac_abs_builddir in
1183.) ac_abs_top_builddir=${ac_top_builddir}.;;
1184*)
1185  case ${ac_top_builddir}. in
1186  .) ac_abs_top_builddir=$ac_abs_builddir;;
1187  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1188  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1189  esac;;
1190esac
1191case $ac_abs_builddir in
1192.) ac_abs_srcdir=$ac_srcdir;;
1193*)
1194  case $ac_srcdir in
1195  .) ac_abs_srcdir=$ac_abs_builddir;;
1196  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1197  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1198  esac;;
1199esac
1200case $ac_abs_builddir in
1201.) ac_abs_top_srcdir=$ac_top_srcdir;;
1202*)
1203  case $ac_top_srcdir in
1204  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1205  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1206  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1207  esac;;
1208esac
1209
1210    cd $ac_dir
1211    # Check for guested configure; otherwise get Cygnus style configure.
1212    if test -f $ac_srcdir/configure.gnu; then
1213      echo
1214      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1215    elif test -f $ac_srcdir/configure; then
1216      echo
1217      $SHELL $ac_srcdir/configure  --help=recursive
1218    elif test -f $ac_srcdir/configure.ac ||
1219           test -f $ac_srcdir/configure.in; then
1220      echo
1221      $ac_configure --help
1222    else
1223      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1224    fi
1225    cd $ac_popdir
1226  done
1227fi
1228
1229test -n "$ac_init_help" && exit 0
1230if $ac_init_version; then
1231  cat <<\_ACEOF
1232ThirdPartyLapack configure 0.0
1233generated by GNU Autoconf 2.59
1234
1235Copyright (C) 2003 Free Software Foundation, Inc.
1236This configure script is free software; the Free Software Foundation
1237gives unlimited permission to copy, distribute and modify it.
1238
1239
1240Copyright 2006 International Business Machines and others.
1241All Rights Reserved.
1242This file is part of the open source package Coin which is distributed
1243under the Common Public License.
1244_ACEOF
1245  exit 0
1246fi
1247exec 5>config.log
1248cat >&5 <<_ACEOF
1249This file contains any messages produced by compilers while
1250running configure, to aid debugging if configure makes a mistake.
1251
1252It was created by ThirdPartyLapack $as_me 0.0, which was
1253generated by GNU Autoconf 2.59.  Invocation command line was
1254
1255  $ $0 $@
1256
1257_ACEOF
1258{
1259cat <<_ASUNAME
1260## --------- ##
1261## Platform. ##
1262## --------- ##
1263
1264hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1265uname -m = `(uname -m) 2>/dev/null || echo unknown`
1266uname -r = `(uname -r) 2>/dev/null || echo unknown`
1267uname -s = `(uname -s) 2>/dev/null || echo unknown`
1268uname -v = `(uname -v) 2>/dev/null || echo unknown`
1269
1270/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1271/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1272
1273/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1274/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1275/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1276hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1277/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1278/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1279/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1280
1281_ASUNAME
1282
1283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1284for as_dir in $PATH
1285do
1286  IFS=$as_save_IFS
1287  test -z "$as_dir" && as_dir=.
1288  echo "PATH: $as_dir"
1289done
1290
1291} >&5
1292
1293cat >&5 <<_ACEOF
1294
1295
1296## ----------- ##
1297## Core tests. ##
1298## ----------- ##
1299
1300_ACEOF
1301
1302
1303# Keep a trace of the command line.
1304# Strip out --no-create and --no-recursion so they do not pile up.
1305# Strip out --silent because we don't want to record it for future runs.
1306# Also quote any args containing shell meta-characters.
1307# Make two passes to allow for proper duplicate-argument suppression.
1308ac_configure_args=
1309ac_configure_args0=
1310ac_configure_args1=
1311ac_sep=
1312ac_must_keep_next=false
1313for ac_pass in 1 2
1314do
1315  for ac_arg
1316  do
1317    case $ac_arg in
1318    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1319    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1320    | -silent | --silent | --silen | --sile | --sil)
1321      continue ;;
1322    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1323      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1324    esac
1325    case $ac_pass in
1326    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1327    2)
1328      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1329      if test $ac_must_keep_next = true; then
1330        ac_must_keep_next=false # Got value, back to normal.
1331      else
1332        case $ac_arg in
1333          *=* | --config-cache | -C | -disable-* | --disable-* \
1334          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1335          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1336          | -with-* | --with-* | -without-* | --without-* | --x)
1337            case "$ac_configure_args0 " in
1338              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1339            esac
1340            ;;
1341          -* ) ac_must_keep_next=true ;;
1342        esac
1343      fi
1344      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1345      # Get rid of the leading space.
1346      ac_sep=" "
1347      ;;
1348    esac
1349  done
1350done
1351$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1352$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1353
1354# When interrupted or exit'd, cleanup temporary files, and complete
1355# config.log.  We remove comments because anyway the quotes in there
1356# would cause problems or look ugly.
1357# WARNING: Be sure not to use single quotes in there, as some shells,
1358# such as our DU 5.0 friend, will then `close' the trap.
1359trap 'exit_status=$?
1360  # Save into config.log some information that might help in debugging.
1361  {
1362    echo
1363
1364    cat <<\_ASBOX
1365## ---------------- ##
1366## Cache variables. ##
1367## ---------------- ##
1368_ASBOX
1369    echo
1370    # The following way of writing the cache mishandles newlines in values,
1371{
1372  (set) 2>&1 |
1373    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1374    *ac_space=\ *)
1375      sed -n \
1376        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1377          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1378      ;;
1379    *)
1380      sed -n \
1381        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1382      ;;
1383    esac;
1384}
1385    echo
1386
1387    cat <<\_ASBOX
1388## ----------------- ##
1389## Output variables. ##
1390## ----------------- ##
1391_ASBOX
1392    echo
1393    for ac_var in $ac_subst_vars
1394    do
1395      eval ac_val=$`echo $ac_var`
1396      echo "$ac_var='"'"'$ac_val'"'"'"
1397    done | sort
1398    echo
1399
1400    if test -n "$ac_subst_files"; then
1401      cat <<\_ASBOX
1402## ------------- ##
1403## Output files. ##
1404## ------------- ##
1405_ASBOX
1406      echo
1407      for ac_var in $ac_subst_files
1408      do
1409        eval ac_val=$`echo $ac_var`
1410        echo "$ac_var='"'"'$ac_val'"'"'"
1411      done | sort
1412      echo
1413    fi
1414
1415    if test -s confdefs.h; then
1416      cat <<\_ASBOX
1417## ----------- ##
1418## confdefs.h. ##
1419## ----------- ##
1420_ASBOX
1421      echo
1422      sed "/^$/d" confdefs.h | sort
1423      echo
1424    fi
1425    test "$ac_signal" != 0 &&
1426      echo "$as_me: caught signal $ac_signal"
1427    echo "$as_me: exit $exit_status"
1428  } >&5
1429  rm -f core *.core &&
1430  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1431    exit $exit_status
1432     ' 0
1433for ac_signal in 1 2 13 15; do
1434  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1435done
1436ac_signal=0
1437
1438# confdefs.h avoids OS command line length limits that DEFS can exceed.
1439rm -rf conftest* confdefs.h
1440# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1441echo >confdefs.h
1442
1443# Predefined preprocessor variables.
1444
1445cat >>confdefs.h <<_ACEOF
1446#define PACKAGE_NAME "$PACKAGE_NAME"
1447_ACEOF
1448
1449
1450cat >>confdefs.h <<_ACEOF
1451#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1452_ACEOF
1453
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_VERSION "$PACKAGE_VERSION"
1457_ACEOF
1458
1459
1460cat >>confdefs.h <<_ACEOF
1461#define PACKAGE_STRING "$PACKAGE_STRING"
1462_ACEOF
1463
1464
1465cat >>confdefs.h <<_ACEOF
1466#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1467_ACEOF
1468
1469
1470# Let the site file select an alternate cache file if it wants to.
1471# Prefer explicitly selected file to automatically selected ones.
1472if test -z "$CONFIG_SITE"; then
1473  if test "x$prefix" != xNONE; then
1474    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1475  else
1476    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1477  fi
1478fi
1479for ac_site_file in $CONFIG_SITE; do
1480  if test -r "$ac_site_file"; then
1481    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1482echo "$as_me: loading site script $ac_site_file" >&6;}
1483    sed 's/^/| /' "$ac_site_file" >&5
1484    . "$ac_site_file"
1485  fi
1486done
1487
1488if test -r "$cache_file"; then
1489  # Some versions of bash will fail to source /dev/null (special
1490  # files actually), so we avoid doing that.
1491  if test -f "$cache_file"; then
1492    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1493echo "$as_me: loading cache $cache_file" >&6;}
1494    case $cache_file in
1495      [\\/]* | ?:[\\/]* ) . $cache_file;;
1496      *)                      . ./$cache_file;;
1497    esac
1498  fi
1499else
1500  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1501echo "$as_me: creating cache $cache_file" >&6;}
1502  >$cache_file
1503fi
1504
1505# Check that the precious variables saved in the cache have kept the same
1506# value.
1507ac_cache_corrupted=false
1508for ac_var in `(set) 2>&1 |
1509               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1510  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1511  eval ac_new_set=\$ac_env_${ac_var}_set
1512  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1513  eval ac_new_val="\$ac_env_${ac_var}_value"
1514  case $ac_old_set,$ac_new_set in
1515    set,)
1516      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1517echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1518      ac_cache_corrupted=: ;;
1519    ,set)
1520      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1521echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1522      ac_cache_corrupted=: ;;
1523    ,);;
1524    *)
1525      if test "x$ac_old_val" != "x$ac_new_val"; then
1526        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1527echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1528        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1529echo "$as_me:   former value:  $ac_old_val" >&2;}
1530        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1531echo "$as_me:   current value: $ac_new_val" >&2;}
1532        ac_cache_corrupted=:
1533      fi;;
1534  esac
1535  # Pass precious variables to config.status.
1536  if test "$ac_new_set" = set; then
1537    case $ac_new_val in
1538    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1539      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1540    *) ac_arg=$ac_var=$ac_new_val ;;
1541    esac
1542    case " $ac_configure_args " in
1543      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1544      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1545    esac
1546  fi
1547done
1548if $ac_cache_corrupted; then
1549  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1550echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1551  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1552echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1553   { (exit 1); exit 1; }; }
1554fi
1555
1556ac_ext=c
1557ac_cpp='$CPP $CPPFLAGS'
1558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1560ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1588
1589
1590
1591# List one file in the package so that the configure script can test
1592# whether the package is actually there
1593
1594
1595# Where should everything be installed by default?  Here, we want it
1596# to be installed directly in 'bin', 'lib', 'include' subdirectories
1597# of the directory where configure is run.  The default would be
1598# /usr/local.
1599
1600
1601# Initialize the ADDLIBS variable
1602ADDLIBS="-lm $LIBS"
1603
1604
1605# Initialize the FADDLIBS variable (which is to be used with a fortran
1606# compiler and will not include FLIBS)
1607FADDLIBS="$LIBS"
1608
1609
1610# A useful makefile conditional that is always false
1611
1612
1613if false; then
1614  ALWAYS_FALSE_TRUE=
1615  ALWAYS_FALSE_FALSE='#'
1616else
1617  ALWAYS_FALSE_TRUE='#'
1618  ALWAYS_FALSE_FALSE=
1619fi
1620
1621
1622# We set the following variable so that we know later in AC_COIN_FINALIZE
1623# that we are in a project main directory
1624coin_projectdir=yes
1625
1626# Check if a library version is set for libtool
1627
1628
1629
1630#############################################################################
1631#                         Standard build tool stuff                         #
1632#############################################################################
1633
1634# Get the system type
1635ac_aux_dir=
1636for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1637  if test -f $ac_dir/install-sh; then
1638    ac_aux_dir=$ac_dir
1639    ac_install_sh="$ac_aux_dir/install-sh -c"
1640    break
1641  elif test -f $ac_dir/install.sh; then
1642    ac_aux_dir=$ac_dir
1643    ac_install_sh="$ac_aux_dir/install.sh -c"
1644    break
1645  elif test -f $ac_dir/shtool; then
1646    ac_aux_dir=$ac_dir
1647    ac_install_sh="$ac_aux_dir/shtool install -c"
1648    break
1649  fi
1650done
1651if test -z "$ac_aux_dir"; then
1652  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1653echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1654   { (exit 1); exit 1; }; }
1655fi
1656ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1657ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1658ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1659
1660# Make sure we can run config.sub.
1661$ac_config_sub sun4 >/dev/null 2>&1 ||
1662  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1663echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1664   { (exit 1); exit 1; }; }
1665
1666echo "$as_me:$LINENO: checking build system type" >&5
1667echo $ECHO_N "checking build system type... $ECHO_C" >&6
1668if test "${ac_cv_build+set}" = set; then
1669  echo $ECHO_N "(cached) $ECHO_C" >&6
1670else
1671  ac_cv_build_alias=$build_alias
1672test -z "$ac_cv_build_alias" &&
1673  ac_cv_build_alias=`$ac_config_guess`
1674test -z "$ac_cv_build_alias" &&
1675  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1676echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1677   { (exit 1); exit 1; }; }
1678ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1679  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1680echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1681   { (exit 1); exit 1; }; }
1682
1683fi
1684echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1685echo "${ECHO_T}$ac_cv_build" >&6
1686build=$ac_cv_build
1687build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1690
1691
1692
1693#turn off warnings and pedantic mode since they could make trouble on some platforms,
1694#and we couldn't fix them anyway
1695coin_skip_warn_fflags=yes
1696
1697# Check if user wants to produce debugging code
1698
1699echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1700echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1701
1702# Check whether --enable-debug or --disable-debug was given.
1703if test "${enable_debug+set}" = set; then
1704  enableval="$enable_debug"
1705  case "${enableval}" in
1706   yes) coin_debug_compile=true
1707        if test "${enable_shared+set}" = set; then :; else
1708          enable_shared=no
1709        fi
1710        ;;
1711   no)  coin_debug_compile=false
1712        ;;
1713   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1714echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1715   { (exit 1); exit 1; }; }
1716        ;;
1717esac
1718else
1719  coin_debug_compile=false
1720fi;
1721
1722# Check whether --enable-debug-lapack or --disable-debug-lapack was given.
1723if test "${enable_debug_lapack+set}" = set; then
1724  enableval="$enable_debug_lapack"
1725  case "${enableval}" in
1726    yes) coin_debug_compile=true
1727         enable_shared=no
1728         ;;
1729    no)  coin_debug_compile=false
1730         ;;
1731    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-lapack" >&5
1732echo "$as_me: error: bad value ${enableval} for --enable-debug-lapack" >&2;}
1733   { (exit 1); exit 1; }; }
1734         ;;
1735 esac
1736else
1737  :
1738fi;
1739
1740 # m4_ifvaln([Lapack],
1741
1742if test $coin_debug_compile = true; then
1743  echo "$as_me:$LINENO: result: yes" >&5
1744echo "${ECHO_T}yes" >&6
1745else
1746  echo "$as_me:$LINENO: result: no" >&5
1747echo "${ECHO_T}no" >&6
1748fi
1749
1750
1751# Check whether --with-lapack-verbosity or --without-lapack-verbosity was given.
1752if test "${with_lapack_verbosity+set}" = set; then
1753  withval="$with_lapack_verbosity"
1754  if test "$withval" = yes; then
1755                withval=1
1756              fi
1757              coin_lapack_verbosity=$withval
1758else
1759  coin_lapack_verbosity=0
1760fi;
1761
1762cat >>confdefs.h <<_ACEOF
1763#define COIN_LAPACK_VERBOSITY $coin_lapack_verbosity
1764_ACEOF
1765
1766
1767
1768# Check whether --with-lapack-checklevel or --without-lapack-checklevel was given.
1769if test "${with_lapack_checklevel+set}" = set; then
1770  withval="$with_lapack_checklevel"
1771  if test "$withval" = yes; then
1772                withval=1
1773              fi
1774              coin_lapack_checklevel=$withval
1775else
1776  coin_lapack_checklevel=0
1777fi;
1778
1779cat >>confdefs.h <<_ACEOF
1780#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
1781_ACEOF
1782
1783
1784# We use the following variable to have a string with the upper case
1785# version of the project name
1786COIN_PRJCT=LAPACK
1787
1788
1789 # m4_ifvaln([Lapack],
1790
1791
1792
1793# Get the name of the Fortran compiler and appropriate compiler options
1794case $build in
1795  *-mingw*)
1796    if test "${LD+set}" = set; then :; else
1797      LD=link
1798    fi
1799    ;;
1800 esac
1801 case $enable_doscompile in
1802   msvc)
1803     if test "x${LD+set}" = xset; then :; else
1804       LD=link
1805     fi
1806     ;;
1807 esac
1808
1809
1810 # Check whether --enable-doscompile or --disable-doscompile was given.
1811if test "${enable_doscompile+set}" = set; then
1812  enableval="$enable_doscompile"
1813  if test "$enable_doscompile" != no; then
1814     case $build in
1815       *-cygwin* | *-mingw*) ;;
1816       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1817echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1818   { (exit 1); exit 1; }; } ;;
1819     esac
1820   fi
1821else
1822  enable_doscompile=no
1823fi;
1824 case "$enable_doscompile" in
1825   mingw)
1826     case $build in
1827       *-mingw*) enable_doscompile=no ;;
1828     esac
1829     ;;
1830   msvc|no) ;;
1831   yes) enable_doscompile=mingw ;;
1832   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1833                    Try configure --help=recursive." >&5
1834echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1835                    Try configure --help=recursive." >&2;}
1836   { (exit 1); exit 1; }; }
1837      ;;
1838  esac
1839  if test "$enable_doscompile" != no ; then
1840    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1841echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1842  fi
1843
1844
1845
1846
1847ac_ext=c
1848ac_cpp='$CPP $CPPFLAGS'
1849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852
1853
1854# For consistency, we set the C compiler to the same value of the C++
1855# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1856if test x"$CXX" != x; then
1857  case "$CXX" in
1858    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1859      if test x"$CC" = x; then
1860        CC="$CXX"
1861        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1862echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1863      fi
1864      ;;
1865  esac
1866fi
1867
1868
1869
1870
1871
1872
1873coin_has_cc=yes
1874
1875save_cflags="$CFLAGS"
1876
1877# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1878# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1879# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1880# compiler. In this case, put cc after gcc.
1881
1882case $build in
1883  *-cygwin* | *-mingw*)
1884             if test "$enable_doscompile" = msvc ; then
1885               comps="icl cl"
1886             else
1887               comps="gcc cl"
1888             fi ;;
1889  *-*-solaris*)
1890             # Extract the first word of "cc", so it can be a program name with args.
1891set dummy cc; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1895  echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897  if test -n "$sol_cc_compiler"; then
1898  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1899else
1900  ac_prog_rejected=no
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904  IFS=$as_save_IFS
1905  test -z "$as_dir" && as_dir=.
1906  for ac_exec_ext in '' $ac_executable_extensions; do
1907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1909       ac_prog_rejected=yes
1910       continue
1911     fi
1912    ac_cv_prog_sol_cc_compiler="cc"
1913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914    break 2
1915  fi
1916done
1917done
1918
1919if test $ac_prog_rejected = yes; then
1920  # We found a bogon in the path, so make sure we never use it.
1921  set dummy $ac_cv_prog_sol_cc_compiler
1922  shift
1923  if test $# != 0; then
1924    # We chose a different compiler from the bogus one.
1925    # However, it has the same basename, so the bogon will be chosen
1926    # first if we set sol_cc_compiler to just the basename; use the full file name.
1927    shift
1928    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1929  fi
1930fi
1931fi
1932fi
1933sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1934if test -n "$sol_cc_compiler"; then
1935  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1936echo "${ECHO_T}$sol_cc_compiler" >&6
1937else
1938  echo "$as_me:$LINENO: result: no" >&5
1939echo "${ECHO_T}no" >&6
1940fi
1941
1942             if test "$sol_cc_compiler" = "cc" ; then
1943               comps="cc xlc gcc pgcc icc"
1944             else
1945               comps="xlc gcc pgcc icc cc"
1946             fi
1947             ;;
1948  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1949  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1950esac
1951
1952# We delete the cached value, since the test might not have been
1953# performed with our choice of compilers earlier
1954$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1955# AC_MSG_NOTICE([C compiler candidates: $comps])
1956ac_ext=c
1957ac_cpp='$CPP $CPPFLAGS'
1958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961if test -n "$ac_tool_prefix"; then
1962  for ac_prog in $comps
1963  do
1964    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1966echo "$as_me:$LINENO: checking for $ac_word" >&5
1967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968if test "${ac_cv_prog_CC+set}" = set; then
1969  echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971  if test -n "$CC"; then
1972  ac_cv_prog_CC="$CC" # Let the user override the test.
1973else
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977  IFS=$as_save_IFS
1978  test -z "$as_dir" && as_dir=.
1979  for ac_exec_ext in '' $ac_executable_extensions; do
1980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983    break 2
1984  fi
1985done
1986done
1987
1988fi
1989fi
1990CC=$ac_cv_prog_CC
1991if test -n "$CC"; then
1992  echo "$as_me:$LINENO: result: $CC" >&5
1993echo "${ECHO_T}$CC" >&6
1994else
1995  echo "$as_me:$LINENO: result: no" >&5
1996echo "${ECHO_T}no" >&6
1997fi
1998
1999    test -n "$CC" && break
2000  done
2001fi
2002if test -z "$CC"; then
2003  ac_ct_CC=$CC
2004  for ac_prog in $comps
2005do
2006  # Extract the first word of "$ac_prog", so it can be a program name with args.
2007set dummy $ac_prog; ac_word=$2
2008echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  if test -n "$ac_ct_CC"; then
2014  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021  for ac_exec_ext in '' $ac_executable_extensions; do
2022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023    ac_cv_prog_ac_ct_CC="$ac_prog"
2024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025    break 2
2026  fi
2027done
2028done
2029
2030fi
2031fi
2032ac_ct_CC=$ac_cv_prog_ac_ct_CC
2033if test -n "$ac_ct_CC"; then
2034  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2035echo "${ECHO_T}$ac_ct_CC" >&6
2036else
2037  echo "$as_me:$LINENO: result: no" >&5
2038echo "${ECHO_T}no" >&6
2039fi
2040
2041  test -n "$ac_ct_CC" && break
2042done
2043
2044  CC=$ac_ct_CC
2045fi
2046
2047
2048test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2049See \`config.log' for more details." >&5
2050echo "$as_me: error: no acceptable C compiler found in \$PATH
2051See \`config.log' for more details." >&2;}
2052   { (exit 1); exit 1; }; }
2053
2054# Provide some information about the compiler.
2055echo "$as_me:$LINENO:" \
2056     "checking for C compiler version" >&5
2057ac_compiler=`set X $ac_compile; echo $2`
2058{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2059  (eval $ac_compiler --version </dev/null >&5) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }
2063{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2064  (eval $ac_compiler -v </dev/null >&5) 2>&5
2065  ac_status=$?
2066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067  (exit $ac_status); }
2068{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2069  (eval $ac_compiler -V </dev/null >&5) 2>&5
2070  ac_status=$?
2071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072  (exit $ac_status); }
2073
2074cat >conftest.$ac_ext <<_ACEOF
2075/* confdefs.h.  */
2076_ACEOF
2077cat confdefs.h >>conftest.$ac_ext
2078cat >>conftest.$ac_ext <<_ACEOF
2079/* end confdefs.h.  */
2080
2081int
2082main ()
2083{
2084
2085  ;
2086  return 0;
2087}
2088_ACEOF
2089ac_clean_files_save=$ac_clean_files
2090ac_clean_files="$ac_clean_files a.out a.exe b.out"
2091# Try to create an executable without -o first, disregard a.out.
2092# It will help us diagnose broken compilers, and finding out an intuition
2093# of exeext.
2094echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2095echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2096ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2097if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2098  (eval $ac_link_default) 2>&5
2099  ac_status=$?
2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101  (exit $ac_status); }; then
2102  # Find the output, starting from the most likely.  This scheme is
2103# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2104# resort.
2105
2106# Be careful to initialize this variable, since it used to be cached.
2107# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2108ac_cv_exeext=
2109# b.out is created by i960 compilers.
2110for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2111do
2112  test -f "$ac_file" || continue
2113  case $ac_file in
2114    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2115        ;;
2116    conftest.$ac_ext )
2117        # This is the source file.
2118        ;;
2119    [ab].out )
2120        # We found the default executable, but exeext='' is most
2121        # certainly right.
2122        break;;
2123    *.* )
2124        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2125        # FIXME: I believe we export ac_cv_exeext for Libtool,
2126        # but it would be cool to find out if it's true.  Does anybody
2127        # maintain Libtool? --akim.
2128        export ac_cv_exeext
2129        break;;
2130    * )
2131        break;;
2132  esac
2133done
2134else
2135  echo "$as_me: failed program was:" >&5
2136sed 's/^/| /' conftest.$ac_ext >&5
2137
2138{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2139See \`config.log' for more details." >&5
2140echo "$as_me: error: C compiler cannot create executables
2141See \`config.log' for more details." >&2;}
2142   { (exit 77); exit 77; }; }
2143fi
2144
2145ac_exeext=$ac_cv_exeext
2146echo "$as_me:$LINENO: result: $ac_file" >&5
2147echo "${ECHO_T}$ac_file" >&6
2148
2149# Check the compiler produces executables we can run.  If not, either
2150# the compiler is broken, or we cross compile.
2151echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2152echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2153# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2154# If not cross compiling, check that we can run a simple program.
2155if test "$cross_compiling" != yes; then
2156  if { ac_try='./$ac_file'
2157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158  (eval $ac_try) 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }; }; then
2162    cross_compiling=no
2163  else
2164    if test "$cross_compiling" = maybe; then
2165        cross_compiling=yes
2166    else
2167        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2168If you meant to cross compile, use \`--host'.
2169See \`config.log' for more details." >&5
2170echo "$as_me: error: cannot run C compiled programs.
2171If you meant to cross compile, use \`--host'.
2172See \`config.log' for more details." >&2;}
2173   { (exit 1); exit 1; }; }
2174    fi
2175  fi
2176fi
2177echo "$as_me:$LINENO: result: yes" >&5
2178echo "${ECHO_T}yes" >&6
2179
2180rm -f a.out a.exe conftest$ac_cv_exeext b.out
2181ac_clean_files=$ac_clean_files_save
2182# Check the compiler produces executables we can run.  If not, either
2183# the compiler is broken, or we cross compile.
2184echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2185echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2186echo "$as_me:$LINENO: result: $cross_compiling" >&5
2187echo "${ECHO_T}$cross_compiling" >&6
2188
2189echo "$as_me:$LINENO: checking for suffix of executables" >&5
2190echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2192  (eval $ac_link) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); }; then
2196  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2197# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2198# work properly (i.e., refer to `conftest.exe'), while it won't with
2199# `rm'.
2200for ac_file in conftest.exe conftest conftest.*; do
2201  test -f "$ac_file" || continue
2202  case $ac_file in
2203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2204    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205          export ac_cv_exeext
2206          break;;
2207    * ) break;;
2208  esac
2209done
2210else
2211  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2212See \`config.log' for more details." >&5
2213echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2214See \`config.log' for more details." >&2;}
2215   { (exit 1); exit 1; }; }
2216fi
2217
2218rm -f conftest$ac_cv_exeext
2219echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2220echo "${ECHO_T}$ac_cv_exeext" >&6
2221
2222rm -f conftest.$ac_ext
2223EXEEXT=$ac_cv_exeext
2224ac_exeext=$EXEEXT
2225echo "$as_me:$LINENO: checking for suffix of object files" >&5
2226echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2227if test "${ac_cv_objext+set}" = set; then
2228  echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230  cat >conftest.$ac_ext <<_ACEOF
2231/* confdefs.h.  */
2232_ACEOF
2233cat confdefs.h >>conftest.$ac_ext
2234cat >>conftest.$ac_ext <<_ACEOF
2235/* end confdefs.h.  */
2236
2237int
2238main ()
2239{
2240
2241  ;
2242  return 0;
2243}
2244_ACEOF
2245rm -f conftest.o conftest.obj
2246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247  (eval $ac_compile) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; then
2251  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2252  case $ac_file in
2253    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2254    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2255       break;;
2256  esac
2257done
2258else
2259  echo "$as_me: failed program was:" >&5
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
2262{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2263See \`config.log' for more details." >&5
2264echo "$as_me: error: cannot compute suffix of object files: cannot compile
2265See \`config.log' for more details." >&2;}
2266   { (exit 1); exit 1; }; }
2267fi
2268
2269rm -f conftest.$ac_cv_objext conftest.$ac_ext
2270fi
2271echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2272echo "${ECHO_T}$ac_cv_objext" >&6
2273OBJEXT=$ac_cv_objext
2274ac_objext=$OBJEXT
2275echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2276echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2277if test "${ac_cv_c_compiler_gnu+set}" = set; then
2278  echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280  cat >conftest.$ac_ext <<_ACEOF
2281/* confdefs.h.  */
2282_ACEOF
2283cat confdefs.h >>conftest.$ac_ext
2284cat >>conftest.$ac_ext <<_ACEOF
2285/* end confdefs.h.  */
2286
2287int
2288main ()
2289{
2290#ifndef __GNUC__
2291       choke me
2292#endif
2293
2294  ;
2295  return 0;
2296}
2297_ACEOF
2298rm -f conftest.$ac_objext
2299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300  (eval $ac_compile) 2>conftest.er1
2301  ac_status=$?
2302  grep -v '^ *+' conftest.er1 >conftest.err
2303  rm -f conftest.er1
2304  cat conftest.err >&5
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); } &&
2307         { ac_try='test -z "$ac_c_werror_flag"
2308                         || test ! -s conftest.err'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; } &&
2314         { ac_try='test -s conftest.$ac_objext'
2315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316  (eval $ac_try) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; }; then
2320  ac_compiler_gnu=yes
2321else
2322  echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325ac_compiler_gnu=no
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328ac_cv_c_compiler_gnu=$ac_compiler_gnu
2329
2330fi
2331echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2332echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2333GCC=`test $ac_compiler_gnu = yes && echo yes`
2334ac_test_CFLAGS=${CFLAGS+set}
2335ac_save_CFLAGS=$CFLAGS
2336CFLAGS="-g"
2337echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2338echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2339if test "${ac_cv_prog_cc_g+set}" = set; then
2340  echo $ECHO_N "(cached) $ECHO_C" >&6
2341else
2342  cat >conftest.$ac_ext <<_ACEOF
2343/* confdefs.h.  */
2344_ACEOF
2345cat confdefs.h >>conftest.$ac_ext
2346cat >>conftest.$ac_ext <<_ACEOF
2347/* end confdefs.h.  */
2348
2349int
2350main ()
2351{
2352
2353  ;
2354  return 0;
2355}
2356_ACEOF
2357rm -f conftest.$ac_objext
2358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359  (eval $ac_compile) 2>conftest.er1
2360  ac_status=$?
2361  grep -v '^ *+' conftest.er1 >conftest.err
2362  rm -f conftest.er1
2363  cat conftest.err >&5
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); } &&
2366         { ac_try='test -z "$ac_c_werror_flag"
2367                         || test ! -s conftest.err'
2368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369  (eval $ac_try) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; } &&
2373         { ac_try='test -s conftest.$ac_objext'
2374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375  (eval $ac_try) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; }; then
2379  ac_cv_prog_cc_g=yes
2380else
2381  echo "$as_me: failed program was:" >&5
2382sed 's/^/| /' conftest.$ac_ext >&5
2383
2384ac_cv_prog_cc_g=no
2385fi
2386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387fi
2388echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2389echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2390if test "$ac_test_CFLAGS" = set; then
2391  CFLAGS=$ac_save_CFLAGS
2392elif test $ac_cv_prog_cc_g = yes; then
2393  if test "$GCC" = yes; then
2394    CFLAGS="-g -O2"
2395  else
2396    CFLAGS="-g"
2397  fi
2398else
2399  if test "$GCC" = yes; then
2400    CFLAGS="-O2"
2401  else
2402    CFLAGS=
2403  fi
2404fi
2405echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2406echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2407if test "${ac_cv_prog_cc_stdc+set}" = set; then
2408  echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410  ac_cv_prog_cc_stdc=no
2411ac_save_CC=$CC
2412cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h.  */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h.  */
2418#include <stdarg.h>
2419#include <stdio.h>
2420#include <sys/types.h>
2421#include <sys/stat.h>
2422/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2423struct buf { int x; };
2424FILE * (*rcsopen) (struct buf *, struct stat *, int);
2425static char *e (p, i)
2426     char **p;
2427     int i;
2428{
2429  return p[i];
2430}
2431static char *f (char * (*g) (char **, int), char **p, ...)
2432{
2433  char *s;
2434  va_list v;
2435  va_start (v,p);
2436  s = g (p, va_arg (v,int));
2437  va_end (v);
2438  return s;
2439}
2440
2441/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2442   function prototypes and stuff, but not '\xHH' hex character constants.
2443   These don't provoke an error unfortunately, instead are silently treated
2444   as 'x'.  The following induces an error, until -std1 is added to get
2445   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2446   array size at least.  It's necessary to write '\x00'==0 to get something
2447   that's true only with -std1.  */
2448int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2449
2450int test (int i, double x);
2451struct s1 {int (*f) (int a);};
2452struct s2 {int (*f) (double a);};
2453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2454int argc;
2455char **argv;
2456int
2457main ()
2458{
2459return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2460  ;
2461  return 0;
2462}
2463_ACEOF
2464# Don't try gcc -ansi; that turns off useful extensions and
2465# breaks some systems' header files.
2466# AIX                   -qlanglvl=ansi
2467# Ultrix and OSF/1      -std1
2468# HP-UX 10.20 and later -Ae
2469# HP-UX older versions  -Aa -D_HPUX_SOURCE
2470# SVR4                  -Xc -D__EXTENSIONS__
2471for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2472do
2473  CC="$ac_save_CC $ac_arg"
2474  rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476  (eval $ac_compile) 2>conftest.er1
2477  ac_status=$?
2478  grep -v '^ *+' conftest.er1 >conftest.err
2479  rm -f conftest.er1
2480  cat conftest.err >&5
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); } &&
2483         { ac_try='test -z "$ac_c_werror_flag"
2484                         || test ! -s conftest.err'
2485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486  (eval $ac_try) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; } &&
2490         { ac_try='test -s conftest.$ac_objext'
2491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492  (eval $ac_try) 2>&5
2493  ac_status=$?
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); }; }; then
2496  ac_cv_prog_cc_stdc=$ac_arg
2497break
2498else
2499  echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502fi
2503rm -f conftest.err conftest.$ac_objext
2504done
2505rm -f conftest.$ac_ext conftest.$ac_objext
2506CC=$ac_save_CC
2507
2508fi
2509
2510case "x$ac_cv_prog_cc_stdc" in
2511  x|xno)
2512    echo "$as_me:$LINENO: result: none needed" >&5
2513echo "${ECHO_T}none needed" >&6 ;;
2514  *)
2515    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2516echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2517    CC="$CC $ac_cv_prog_cc_stdc" ;;
2518esac
2519
2520# Some people use a C++ compiler to compile C.  Since we use `exit',
2521# in C++ we need to declare it.  In case someone uses the same compiler
2522# for both compiling C and C++ we need to have the C++ compiler decide
2523# the declaration of exit, since it's the most demanding environment.
2524cat >conftest.$ac_ext <<_ACEOF
2525#ifndef __cplusplus
2526  choke me
2527#endif
2528_ACEOF
2529rm -f conftest.$ac_objext
2530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531  (eval $ac_compile) 2>conftest.er1
2532  ac_status=$?
2533  grep -v '^ *+' conftest.er1 >conftest.err
2534  rm -f conftest.er1
2535  cat conftest.err >&5
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); } &&
2538         { ac_try='test -z "$ac_c_werror_flag"
2539                         || test ! -s conftest.err'
2540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541  (eval $ac_try) 2>&5
2542  ac_status=$?
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); }; } &&
2545         { ac_try='test -s conftest.$ac_objext'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; }; then
2551  for ac_declaration in \
2552   '' \
2553   'extern "C" void std::exit (int) throw (); using std::exit;' \
2554   'extern "C" void std::exit (int); using std::exit;' \
2555   'extern "C" void exit (int) throw ();' \
2556   'extern "C" void exit (int);' \
2557   'void exit (int);'
2558do
2559  cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h.  */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
2564/* end confdefs.h.  */
2565$ac_declaration
2566#include <stdlib.h>
2567int
2568main ()
2569{
2570exit (42);
2571  ;
2572  return 0;
2573}
2574_ACEOF
2575rm -f conftest.$ac_objext
2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577  (eval $ac_compile) 2>conftest.er1
2578  ac_status=$?
2579  grep -v '^ *+' conftest.er1 >conftest.err
2580  rm -f conftest.er1
2581  cat conftest.err >&5
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); } &&
2584         { ac_try='test -z "$ac_c_werror_flag"
2585                         || test ! -s conftest.err'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; } &&
2591         { ac_try='test -s conftest.$ac_objext'
2592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593  (eval $ac_try) 2>&5
2594  ac_status=$?
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }; }; then
2597  :
2598else
2599  echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602continue
2603fi
2604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2605  cat >conftest.$ac_ext <<_ACEOF
2606/* confdefs.h.  */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h.  */
2611$ac_declaration
2612int
2613main ()
2614{
2615exit (42);
2616  ;
2617  return 0;
2618}
2619_ACEOF
2620rm -f conftest.$ac_objext
2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622  (eval $ac_compile) 2>conftest.er1
2623  ac_status=$?
2624  grep -v '^ *+' conftest.er1 >conftest.err
2625  rm -f conftest.er1
2626  cat conftest.err >&5
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); } &&
2629         { ac_try='test -z "$ac_c_werror_flag"
2630                         || test ! -s conftest.err'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; } &&
2636         { ac_try='test -s conftest.$ac_objext'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; }; then
2642  break
2643else
2644  echo "$as_me: failed program was:" >&5
2645sed 's/^/| /' conftest.$ac_ext >&5
2646
2647fi
2648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649done
2650rm -f conftest*
2651if test -n "$ac_declaration"; then
2652  echo '#ifdef __cplusplus' >>confdefs.h
2653  echo $ac_declaration      >>confdefs.h
2654  echo '#endif'             >>confdefs.h
2655fi
2656
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2663ac_ext=c
2664ac_cpp='$CPP $CPPFLAGS'
2665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668
2669if test -z "$CC" ; then
2670  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2671echo "$as_me: error: Failed to find a C compiler!" >&2;}
2672   { (exit 1); exit 1; }; }
2673fi
2674# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2675case "$CC" in
2676  cl* | */cl* | CL* | */CL* )
2677    if test "$ac_cv_prog_cc_g" = yes ; then
2678      ac_cv_prog_cc_g=no
2679      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2680echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2681    fi ;;
2682esac
2683CFLAGS="$save_cflags"
2684
2685# Check if a project specific CFLAGS variable has been set
2686if test x$COIN_PRJCT != x; then
2687  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2688  if test x$coin_tmp = xset; then
2689    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2690  fi
2691fi
2692
2693if test x"$CFLAGS" = x; then
2694
2695  coin_add_cflags=
2696  coin_opt_cflags=
2697  coin_dbg_cflags=
2698  coin_warn_cflags=
2699
2700  if test "$GCC" = "yes"; then
2701    case "$CC" in
2702      icc* | */icc*)
2703        ;;
2704      *)
2705        coin_opt_cflags="-O3 -fomit-frame-pointer"
2706        coin_add_cflags="-pipe"
2707        coin_dbg_cflags="-g"
2708        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2709        case $build in
2710          *-darwin*)
2711            ;;
2712          *)
2713            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2714            ;;
2715        esac
2716        case $enable_doscompile in
2717          mingw)
2718            CFLAGS="-mno-cygwin"
2719            cat >conftest.$ac_ext <<_ACEOF
2720/* confdefs.h.  */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
2724/* end confdefs.h.  */
2725
2726int
2727main ()
2728{
2729int i=0; i++;
2730  ;
2731  return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext conftest$ac_exeext
2735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2736  (eval $ac_link) 2>conftest.er1
2737  ac_status=$?
2738  grep -v '^ *+' conftest.er1 >conftest.err
2739  rm -f conftest.er1
2740  cat conftest.err >&5
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); } &&
2743         { ac_try='test -z "$ac_c_werror_flag"
2744                         || test ! -s conftest.err'
2745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746  (eval $ac_try) 2>&5
2747  ac_status=$?
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); }; } &&
2750         { ac_try='test -s conftest$ac_exeext'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; }; then
2756  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761fi
2762rm -f conftest.err conftest.$ac_objext \
2763      conftest$ac_exeext conftest.$ac_ext
2764            CFLAGS=
2765          ;;
2766        esac
2767    esac
2768  fi
2769  if test -z "$coin_opt_cflags"; then
2770    case $build in
2771      *-cygwin* | *-mingw*)
2772        case "$CC" in
2773          cl* | */cl* | CL* | */CL*)
2774            coin_opt_cflags='-MT -O2'
2775            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2776            coin_dbg_cflags='-MTd'
2777            ;;
2778          icl* | */icl* | ICL* | */ICL*)
2779            coin_opt_cflags='-MT -Ox'
2780            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2781            coin_dbg_cflags='-MTd -debug'
2782            ;;
2783        esac
2784        ;;
2785      *-linux-*)
2786        case "$CC" in
2787          icc* | */icc*)
2788            coin_opt_cflags="-O3 -ip -mp1"
2789            coin_add_cflags=""
2790            coin_dbg_cflags="-g"
2791            # Check if -i_dynamic is necessary (for new glibc library)
2792            CFLAGS=
2793            cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799
2800int
2801main ()
2802{
2803int i=0; i++;
2804  ;
2805  return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext conftest$ac_exeext
2809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2810  (eval $ac_link) 2>conftest.er1
2811  ac_status=$?
2812  grep -v '^ *+' conftest.er1 >conftest.err
2813  rm -f conftest.er1
2814  cat conftest.err >&5
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); } &&
2817         { ac_try='test -z "$ac_c_werror_flag"
2818                         || test ! -s conftest.err'
2819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820  (eval $ac_try) 2>&5
2821  ac_status=$?
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); }; } &&
2824         { ac_try='test -s conftest$ac_exeext'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; }; then
2830  :
2831else
2832  echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835coin_add_cflags="-i_dynamic $coin_add_cflags"
2836fi
2837rm -f conftest.err conftest.$ac_objext \
2838      conftest$ac_exeext conftest.$ac_ext
2839            ;;
2840          pgcc* | */pgcc*)
2841            coin_opt_cflags="-fast"
2842            coin_add_cflags="-Kieee -pc 64"
2843            coin_dbg_cflags="-g"
2844            ;;
2845        esac
2846        ;;
2847      *-ibm-*)
2848        case "$CC" in
2849          xlc* | */xlc* | mpxlc* | */mpxlc*)
2850            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2851            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2852            coin_dbg_cflags="-g"
2853          ;;
2854        esac
2855        ;;
2856      *-hp-*)
2857        coin_opt_cflags="-O"
2858        coin_add_cflags="-Ae"
2859        coin_dbg_cflags="-g"
2860        ;;
2861      *-*-solaris*)
2862        coin_opt_cflags="-xO4"
2863        coin_dbg_cflags="-g"
2864        ;;
2865      *-sgi-*)
2866        coin_opt_cflags="-O -OPT:Olimit=0"
2867        coin_dbg_cflags="-g"
2868        ;;
2869    esac
2870  fi
2871
2872  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2873    coin_dbg_cflags="-g"
2874  fi
2875
2876  if test -z "$coin_opt_cflags"; then
2877    # Try if -O option works if nothing else is set
2878    CFLAGS="-O"
2879    cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h.  */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h.  */
2885
2886int
2887main ()
2888{
2889int i=0; i++;
2890  ;
2891  return 0;
2892}
2893_ACEOF
2894rm -f conftest.$ac_objext conftest$ac_exeext
2895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2896  (eval $ac_link) 2>conftest.er1
2897  ac_status=$?
2898  grep -v '^ *+' conftest.er1 >conftest.err
2899  rm -f conftest.er1
2900  cat conftest.err >&5
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); } &&
2903         { ac_try='test -z "$ac_c_werror_flag"
2904                         || test ! -s conftest.err'
2905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906  (eval $ac_try) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }; } &&
2910         { ac_try='test -s conftest$ac_exeext'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; }; then
2916  coin_opt_cflags="-O"
2917else
2918  echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921fi
2922rm -f conftest.err conftest.$ac_objext \
2923      conftest$ac_exeext conftest.$ac_ext
2924  fi
2925
2926  # if PM doesn't want the warning messages, take them out
2927  if test x"$coin_skip_warn_cflags" = xyes; then
2928    coin_warn_cflags=
2929  fi
2930
2931  if test x${DBG_CFLAGS+set} != xset; then
2932    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2933  fi
2934  if test x${OPT_CFLAGS+set} != xset; then
2935    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2936  fi
2937
2938  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2939  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2940
2941  if test "$coin_debug_compile" = "true"; then
2942    CFLAGS="$DBG_CFLAGS"
2943  else
2944    CFLAGS="$OPT_CFLAGS"
2945  fi
2946else
2947  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2948  if test x${DBG_CFLAGS+set} != xset; then
2949    DBG_CFLAGS="$CFLAGS"
2950  fi
2951  if test x${OPT_CFLAGS+set} != xset; then
2952    OPT_CFLAGS="$CFLAGS"
2953  fi
2954fi
2955
2956# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2957
2958case "$CFLAGS" in
2959  *-mno-cygwin*)
2960    if test x${CPPFLAGS+set} != xset ; then
2961      CPPFLAGS="-mno-cygwin"
2962    else
2963      case "$CPPFLAGS" in
2964        *-mno-cygwin*)
2965          ;;
2966        *)
2967          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2968          ;;
2969      esac
2970    fi ;;
2971esac
2972
2973# Try if CFLAGS works
2974save_CFLAGS="$CFLAGS"
2975cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h.  */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h.  */
2981
2982int
2983main ()
2984{
2985int i=0; i++;
2986  ;
2987  return 0;
2988}
2989_ACEOF
2990rm -f conftest.$ac_objext conftest$ac_exeext
2991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2992  (eval $ac_link) 2>conftest.er1
2993  ac_status=$?
2994  grep -v '^ *+' conftest.er1 >conftest.err
2995  rm -f conftest.er1
2996  cat conftest.err >&5
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); } &&
2999         { ac_try='test -z "$ac_c_werror_flag"
3000                         || test ! -s conftest.err'
3001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002  (eval $ac_try) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; } &&
3006         { ac_try='test -s conftest$ac_exeext'
3007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008  (eval $ac_try) 2>&5
3009  ac_status=$?
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); }; }; then
3012  :
3013else
3014  echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017CFLAGS=
3018fi
3019rm -f conftest.err conftest.$ac_objext \
3020      conftest$ac_exeext conftest.$ac_ext
3021if test -z "$CFLAGS"; then
3022  { 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
3023echo "$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;}
3024  CFLAGS='-O'
3025  cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h.  */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h.  */
3031
3032int
3033main ()
3034{
3035int i=0; i++;
3036  ;
3037  return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext conftest$ac_exeext
3041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3042  (eval $ac_link) 2>conftest.er1
3043  ac_status=$?
3044  grep -v '^ *+' conftest.er1 >conftest.err
3045  rm -f conftest.er1
3046  cat conftest.err >&5
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); } &&
3049         { ac_try='test -z "$ac_c_werror_flag"
3050                         || test ! -s conftest.err'
3051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052  (eval $ac_try) 2>&5
3053  ac_status=$?
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); }; } &&
3056         { ac_try='test -s conftest$ac_exeext'
3057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058  (eval $ac_try) 2>&5
3059  ac_status=$?
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); }; }; then
3062  :
3063else
3064  echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067CFLAGS=
3068fi
3069rm -f conftest.err conftest.$ac_objext \
3070      conftest$ac_exeext conftest.$ac_ext
3071  if test -z "$CFLAGS"; then
3072    { 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
3073echo "$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;}
3074  fi
3075fi
3076
3077{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3078echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3079
3080
3081if test x"$MPICC" = x; then :; else
3082  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3083echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3084  CC="$MPICC"
3085fi
3086
3087# Correct ADDLIBS initialization if we are using the MS compiler
3088case "$CC" in
3089  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3090    ADDLIBS=
3091    case $build in
3092  *-mingw*)
3093    if test "${LD+set}" = set; then :; else
3094      LD=link
3095    fi
3096    ;;
3097 esac
3098 case $enable_doscompile in
3099   msvc)
3100     if test "x${LD+set}" = xset; then :; else
3101       LD=link
3102     fi
3103     ;;
3104 esac
3105
3106    ;;
3107esac
3108
3109ac_ext=c
3110ac_cpp='$CPP $CPPFLAGS'
3111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114
3115
3116case $build in
3117  *-cygwin* | *-mingw*)
3118     if test "$enable_doscompile" = msvc ; then
3119       coin_f77_comps="ifort fl32 compile_f2c"
3120     else
3121       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3122     fi ;;
3123  *-*-solaris*)
3124     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3125  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3126 esac
3127
3128
3129
3130
3131
3132
3133ac_ext=f
3134ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3135ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3137
3138
3139
3140
3141
3142
3143coin_has_f77=yes
3144
3145save_fflags="$FFLAGS"
3146
3147# We delete the cached value, since the test might not have been
3148# performed with our choice of compilers earlier
3149$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3150
3151# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3152# coin_f77_comps to see if there's a program that matches one of the names.
3153# If there's no such program, F77 = unavailable. If we match the name,
3154# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3155# compiler.
3156# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3157
3158
3159{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3160echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3161for ac_prog in $coin_f77_comps
3162do
3163  # Extract the first word of "$ac_prog", so it can be a program name with args.
3164set dummy $ac_prog; ac_word=$2
3165echo "$as_me:$LINENO: checking for $ac_word" >&5
3166echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167if test "${ac_cv_prog_F77+set}" = set; then
3168  echo $ECHO_N "(cached) $ECHO_C" >&6
3169else
3170  if test -n "$F77"; then
3171  ac_cv_prog_F77="$F77" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176  IFS=$as_save_IFS
3177  test -z "$as_dir" && as_dir=.
3178  for ac_exec_ext in '' $ac_executable_extensions; do
3179  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180    ac_cv_prog_F77="$ac_prog"
3181    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3182    break 2
3183  fi
3184done
3185done
3186
3187fi
3188fi
3189F77=$ac_cv_prog_F77
3190if test -n "$F77"; then
3191  echo "$as_me:$LINENO: result: $F77" >&5
3192echo "${ECHO_T}$F77" >&6
3193else
3194  echo "$as_me:$LINENO: result: no" >&5
3195echo "${ECHO_T}no" >&6
3196fi
3197
3198  test -n "$F77" && break
3199done
3200test -n "$F77" || F77="unavailable"
3201
3202
3203if test "$F77" != "unavailable" ; then
3204  ac_ext=f
3205ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3206ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3208if test -n "$ac_tool_prefix"; then
3209  for ac_prog in $coin_f77_comps
3210  do
3211    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213echo "$as_me:$LINENO: checking for $ac_word" >&5
3214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215if test "${ac_cv_prog_F77+set}" = set; then
3216  echo $ECHO_N "(cached) $ECHO_C" >&6
3217else
3218  if test -n "$F77"; then
3219  ac_cv_prog_F77="$F77" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  test -z "$as_dir" && as_dir=.
3226  for ac_exec_ext in '' $ac_executable_extensions; do
3227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230    break 2
3231  fi
3232done
3233done
3234
3235fi
3236fi
3237F77=$ac_cv_prog_F77
3238if test -n "$F77"; then
3239  echo "$as_me:$LINENO: result: $F77" >&5
3240echo "${ECHO_T}$F77" >&6
3241else
3242  echo "$as_me:$LINENO: result: no" >&5
3243echo "${ECHO_T}no" >&6
3244fi
3245
3246    test -n "$F77" && break
3247  done
3248fi
3249if test -z "$F77"; then
3250  ac_ct_F77=$F77
3251  for ac_prog in $coin_f77_comps
3252do
3253  # Extract the first word of "$ac_prog", so it can be a program name with args.
3254set dummy $ac_prog; ac_word=$2
3255echo "$as_me:$LINENO: checking for $ac_word" >&5
3256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3257if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  if test -n "$ac_ct_F77"; then
3261  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  test -z "$as_dir" && as_dir=.
3268  for ac_exec_ext in '' $ac_executable_extensions; do
3269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3270    ac_cv_prog_ac_ct_F77="$ac_prog"
3271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272    break 2
3273  fi
3274done
3275done
3276
3277fi
3278fi
3279ac_ct_F77=$ac_cv_prog_ac_ct_F77
3280if test -n "$ac_ct_F77"; then
3281  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3282echo "${ECHO_T}$ac_ct_F77" >&6
3283else
3284  echo "$as_me:$LINENO: result: no" >&5
3285echo "${ECHO_T}no" >&6
3286fi
3287
3288  test -n "$ac_ct_F77" && break
3289done
3290
3291  F77=$ac_ct_F77
3292fi
3293
3294
3295# Provide some information about the compiler.
3296echo "$as_me:3296:" \
3297     "checking for Fortran 77 compiler version" >&5
3298ac_compiler=`set X $ac_compile; echo $2`
3299{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3300  (eval $ac_compiler --version </dev/null >&5) 2>&5
3301  ac_status=$?
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); }
3304{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3305  (eval $ac_compiler -v </dev/null >&5) 2>&5
3306  ac_status=$?
3307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308  (exit $ac_status); }
3309{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3310  (eval $ac_compiler -V </dev/null >&5) 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }
3314rm -f a.out
3315
3316# If we don't use `.F' as extension, the preprocessor is not run on the
3317# input file.  (Note that this only needs to work for GNU compilers.)
3318ac_save_ext=$ac_ext
3319ac_ext=F
3320echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3321echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3322if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3323  echo $ECHO_N "(cached) $ECHO_C" >&6
3324else
3325  cat >conftest.$ac_ext <<_ACEOF
3326      program main
3327#ifndef __GNUC__
3328       choke me
3329#endif
3330
3331      end
3332_ACEOF
3333rm -f conftest.$ac_objext
3334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335  (eval $ac_compile) 2>conftest.er1
3336  ac_status=$?
3337  grep -v '^ *+' conftest.er1 >conftest.err
3338  rm -f conftest.er1
3339  cat conftest.err >&5
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); } &&
3342         { ac_try='test -z "$ac_f77_werror_flag"
3343                         || test ! -s conftest.err'
3344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3345  (eval $ac_try) 2>&5
3346  ac_status=$?
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); }; } &&
3349         { ac_try='test -s conftest.$ac_objext'
3350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351  (eval $ac_try) 2>&5
3352  ac_status=$?
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); }; }; then
3355  ac_compiler_gnu=yes
3356else
3357  echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
3360ac_compiler_gnu=no
3361fi
3362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3363ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3364
3365fi
3366echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3367echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3368ac_ext=$ac_save_ext
3369ac_test_FFLAGS=${FFLAGS+set}
3370ac_save_FFLAGS=$FFLAGS
3371FFLAGS=
3372echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3373echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3374if test "${ac_cv_prog_f77_g+set}" = set; then
3375  echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377  FFLAGS=-g
3378cat >conftest.$ac_ext <<_ACEOF
3379      program main
3380
3381      end
3382_ACEOF
3383rm -f conftest.$ac_objext
3384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3385  (eval $ac_compile) 2>conftest.er1
3386  ac_status=$?
3387  grep -v '^ *+' conftest.er1 >conftest.err
3388  rm -f conftest.er1
3389  cat conftest.err >&5
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); } &&
3392         { ac_try='test -z "$ac_f77_werror_flag"
3393                         || test ! -s conftest.err'
3394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395  (eval $ac_try) 2>&5
3396  ac_status=$?
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); }; } &&
3399         { ac_try='test -s conftest.$ac_objext'
3400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401  (eval $ac_try) 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }; }; then
3405  ac_cv_prog_f77_g=yes
3406else
3407  echo "$as_me: failed program was:" >&5
3408sed 's/^/| /' conftest.$ac_ext >&5
3409
3410ac_cv_prog_f77_g=no
3411fi
3412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3413
3414fi
3415echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3416echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3417if test "$ac_test_FFLAGS" = set; then
3418  FFLAGS=$ac_save_FFLAGS
3419elif test $ac_cv_prog_f77_g = yes; then
3420  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3421    FFLAGS="-g -O2"
3422  else
3423    FFLAGS="-g"
3424  fi
3425else
3426  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3427    FFLAGS="-O2"
3428  else
3429    FFLAGS=
3430  fi
3431fi
3432
3433G77=`test $ac_compiler_gnu = yes && echo yes`
3434ac_ext=f
3435ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3436ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3438
3439else
3440  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3441echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3442fi
3443
3444FFLAGS="$save_fflags"
3445
3446# Check if a project specific FFLAGS variable has been set
3447if test x$COIN_PRJCT != x; then
3448  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3449  if test x$coin_tmp = xset; then
3450    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3451  fi
3452fi
3453
3454if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3455
3456  coin_add_fflags=
3457  coin_opt_fflags=
3458  coin_dbg_fflags=
3459  coin_warn_fflags=
3460
3461  if test "$G77" = "yes"; then
3462    coin_opt_fflags="-O3 -fomit-frame-pointer"
3463    coin_add_fflags="-pipe"
3464    coin_dbg_fflags="-g"
3465    case $enable_doscompile in
3466      mingw)
3467        FFLAGS="-mno-cygwin"
3468        cat >conftest.$ac_ext <<_ACEOF
3469      program main
3470      write(*,*) 'Hello world'
3471      end
3472_ACEOF
3473rm -f conftest.$ac_objext conftest$ac_exeext
3474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3475  (eval $ac_link) 2>conftest.er1
3476  ac_status=$?
3477  grep -v '^ *+' conftest.er1 >conftest.err
3478  rm -f conftest.er1
3479  cat conftest.err >&5
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); } &&
3482         { ac_try='test -z "$ac_f77_werror_flag"
3483                         || test ! -s conftest.err'
3484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485  (eval $ac_try) 2>&5
3486  ac_status=$?
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); }; } &&
3489         { ac_try='test -s conftest$ac_exeext'
3490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491  (eval $ac_try) 2>&5
3492  ac_status=$?
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); }; }; then
3495  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3496else
3497  echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500fi
3501rm -f conftest.err conftest.$ac_objext \
3502      conftest$ac_exeext conftest.$ac_ext
3503        FFLAGS=
3504      ;;
3505    esac
3506  else
3507    case $build in
3508      *-cygwin* | *-mingw*)
3509        case $F77 in
3510          ifort* | */ifort* | IFORT* | */IFORT* )
3511            coin_opt_fflags='-MT -O3'
3512            coin_add_fflags='-fpp -nologo'
3513            coin_dbg_fflags='-MTd -debug'
3514          ;;
3515          compile_f2c*)
3516            coin_opt_fflags='-MT -O2'
3517            coin_add_fflags='-nologo -wd4996'
3518            coin_dbg_fflags='-MTd'
3519          ;;
3520        esac
3521        ;;
3522      *-linux-*)
3523        case $F77 in
3524          ifc* | */ifc* | ifort* | */ifort*)
3525            coin_opt_fflags="-O3 -ip"
3526            coin_add_fflags="-cm -w90 -w95"
3527            coin_dbg_fflags="-g -CA -CB -CS"
3528            # Check if -i_dynamic is necessary (for new glibc library)
3529            FFLAGS=
3530            cat >conftest.$ac_ext <<_ACEOF
3531      program main
3532      write(*,*) 'Hello world'
3533      end
3534_ACEOF
3535rm -f conftest.$ac_objext conftest$ac_exeext
3536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3537  (eval $ac_link) 2>conftest.er1
3538  ac_status=$?
3539  grep -v '^ *+' conftest.er1 >conftest.err
3540  rm -f conftest.er1
3541  cat conftest.err >&5
3542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543  (exit $ac_status); } &&
3544         { ac_try='test -z "$ac_f77_werror_flag"
3545                         || test ! -s conftest.err'
3546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547  (eval $ac_try) 2>&5
3548  ac_status=$?
3549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550  (exit $ac_status); }; } &&
3551         { ac_try='test -s conftest$ac_exeext'
3552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553  (eval $ac_try) 2>&5
3554  ac_status=$?
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); }; }; then
3557  :
3558else
3559  echo "$as_me: failed program was:" >&5
3560sed 's/^/| /' conftest.$ac_ext >&5
3561
3562coin_add_fflags="-i_dynamic $coin_add_fflags"
3563fi
3564rm -f conftest.err conftest.$ac_objext \
3565      conftest$ac_exeext conftest.$ac_ext
3566            ;;
3567          pgf77* | */pgf77* | pgf90* | */pgf90*)
3568            coin_opt_fflags="-fast"
3569            coin_add_fflags="-Kieee -pc 64"
3570            coin_dbg_fflags="-g"
3571          ;;
3572        esac
3573        ;;
3574      *-ibm-*)
3575        case "$F77" in
3576          xlf* | */xlf* | mpxlf* | */mpxlf* )
3577            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3578            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3579            coin_dbg_fflags="-g -C"
3580            ;;
3581        esac
3582        ;;
3583      *-hp-*)
3584        coin_opt_fflags="+O3"
3585        coin_add_fflags="+U77"
3586        coin_dbg_fflags="-C -g"
3587        ;;
3588      *-*-solaris*)
3589        coin_opt_fflags="-O4"
3590        coin_dbg_fflags="-g"
3591        ;;
3592      *-sgi-*)
3593        coin_opt_fflags="-O5 -OPT:Olimit=0"
3594        coin_dbg_fflags="-g"
3595        ;;
3596    esac
3597  fi
3598
3599  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3600    coin_dbg_fflags="-g"
3601  fi
3602
3603  if test -z "$coin_opt_fflags"; then
3604    # Try if -O option works if nothing else is set
3605    FFLAGS=-O
3606    cat >conftest.$ac_ext <<_ACEOF
3607      program main
3608      integer i
3609      end
3610_ACEOF
3611rm -f conftest.$ac_objext conftest$ac_exeext
3612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3613  (eval $ac_link) 2>conftest.er1
3614  ac_status=$?
3615  grep -v '^ *+' conftest.er1 >conftest.err
3616  rm -f conftest.er1
3617  cat conftest.err >&5
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); } &&
3620         { ac_try='test -z "$ac_f77_werror_flag"
3621                         || test ! -s conftest.err'
3622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623  (eval $ac_try) 2>&5
3624  ac_status=$?
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); }; } &&
3627         { ac_try='test -s conftest$ac_exeext'
3628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3629  (eval $ac_try) 2>&5
3630  ac_status=$?
3631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632  (exit $ac_status); }; }; then
3633  coin_opt_fflags="-O"
3634else
3635  echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638fi
3639rm -f conftest.err conftest.$ac_objext \
3640      conftest$ac_exeext conftest.$ac_ext
3641  fi
3642
3643  # if PM doesn't want the warning messages, take them out
3644  if test x"$coin_skip_warn_fflags" = xyes; then
3645    coin_warn_fflags=
3646  fi
3647
3648  if test x${DBG_FFLAGS+set} != xset; then
3649    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3650  fi
3651  if test x${OPT_FFLAGS+set} != xset; then
3652    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3653  fi
3654
3655  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3656  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3657
3658  if test "$coin_debug_compile" = "true"; then
3659    FFLAGS="$DBG_FFLAGS"
3660  else
3661    FFLAGS="$OPT_FFLAGS"
3662  fi
3663else
3664  FFLAGS="$FFLAGS $ADD_FFLAGS"
3665  if test x${DBG_FFLAGS+set} != xset; then
3666    DBG_FFLAGS="$FFLAGS"
3667  fi
3668  if test x${OPT_FFLAGS+set} != xset; then
3669    OPT_FFLAGS="$FFLAGS"
3670  fi
3671fi
3672
3673# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3674case "$FFLAGS" in
3675  *-mno-cygwin*)
3676    if test x${CPPFLAGS+set} != xset ; then
3677      CPPFLAGS="-mno-cygwin"
3678    else
3679      case "$CPPFLAGS" in
3680        *-mno-cygwin*)
3681          ;;
3682        *)
3683          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3684          ;;
3685      esac
3686    fi ;;
3687esac
3688
3689# Try if FFLAGS works
3690if test "$F77" != "unavailable" ; then
3691  cat >conftest.$ac_ext <<_ACEOF
3692      program main
3693      integer i
3694      end
3695_ACEOF
3696rm -f conftest.$ac_objext conftest$ac_exeext
3697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3698  (eval $ac_link) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } &&
3705         { ac_try='test -z "$ac_f77_werror_flag"
3706                         || test ! -s conftest.err'
3707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3708  (eval $ac_try) 2>&5
3709  ac_status=$?
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); }; } &&
3712         { ac_try='test -s conftest$ac_exeext'
3713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714  (eval $ac_try) 2>&5
3715  ac_status=$?
3716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717  (exit $ac_status); }; }; then
3718  :
3719else
3720  echo "$as_me: failed program was:" >&5
3721sed 's/^/| /' conftest.$ac_ext >&5
3722
3723FFLAGS=
3724fi
3725rm -f conftest.err conftest.$ac_objext \
3726      conftest$ac_exeext conftest.$ac_ext
3727  if test -z "$FFLAGS"; then
3728    { 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
3729echo "$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;}
3730    FFLAGS='-O'
3731    cat >conftest.$ac_ext <<_ACEOF
3732      program main
3733      integer i
3734      end
3735_ACEOF
3736rm -f conftest.$ac_objext conftest$ac_exeext
3737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738  (eval $ac_link) 2>conftest.er1
3739  ac_status=$?
3740  grep -v '^ *+' conftest.er1 >conftest.err
3741  rm -f conftest.er1
3742  cat conftest.err >&5
3743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744  (exit $ac_status); } &&
3745         { ac_try='test -z "$ac_f77_werror_flag"
3746                         || test ! -s conftest.err'
3747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3748  (eval $ac_try) 2>&5
3749  ac_status=$?
3750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751  (exit $ac_status); }; } &&
3752         { ac_try='test -s conftest$ac_exeext'
3753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754  (eval $ac_try) 2>&5
3755  ac_status=$?
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); }; }; then
3758  :
3759else
3760  echo "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5
3762
3763FFLAGS=
3764fi
3765rm -f conftest.err conftest.$ac_objext \
3766      conftest$ac_exeext conftest.$ac_ext
3767    if test -z "$FFLAGS"; then
3768      { 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
3769echo "$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;}
3770    fi
3771  fi
3772fi
3773
3774{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3775echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3776
3777
3778if test x"$MPIF77" = x; then :; else
3779  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3780echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3781  F77="$MPIF77"
3782fi
3783
3784case "$F77" in
3785  ifort* | */ifort* | IFORT* | */IFORT*)
3786    case $build in
3787  *-mingw*)
3788    if test "${LD+set}" = set; then :; else
3789      LD=link
3790    fi
3791    ;;
3792 esac
3793 case $enable_doscompile in
3794   msvc)
3795     if test "x${LD+set}" = xset; then :; else
3796       LD=link
3797     fi
3798     ;;
3799 esac
3800
3801    ;;
3802esac
3803
3804ac_ext=c
3805ac_cpp='$CPP $CPPFLAGS'
3806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809
3810
3811
3812# Get the linker flags (FLIBS) that are required for linking against this blas library
3813ac_ext=f
3814ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3815ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3817echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
3818echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
3819if test "${ac_cv_prog_f77_v+set}" = set; then
3820  echo $ECHO_N "(cached) $ECHO_C" >&6
3821else
3822  cat >conftest.$ac_ext <<_ACEOF
3823      program main
3824
3825      end
3826_ACEOF
3827rm -f conftest.$ac_objext
3828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3829  (eval $ac_compile) 2>conftest.er1
3830  ac_status=$?
3831  grep -v '^ *+' conftest.er1 >conftest.err
3832  rm -f conftest.er1
3833  cat conftest.err >&5
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); } &&
3836         { ac_try='test -z "$ac_f77_werror_flag"
3837                         || test ! -s conftest.err'
3838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839  (eval $ac_try) 2>&5
3840  ac_status=$?
3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); }; } &&
3843         { ac_try='test -s conftest.$ac_objext'
3844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845  (eval $ac_try) 2>&5
3846  ac_status=$?
3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848  (exit $ac_status); }; }; then
3849  ac_cv_prog_f77_v=
3850# Try some options frequently used verbose output
3851for ac_verb in -v -verbose --verbose -V -\#\#\#; do
3852  cat >conftest.$ac_ext <<_ACEOF
3853      program main
3854
3855      end
3856_ACEOF
3857
3858# Compile and link our simple test program by passing a flag (argument
3859# 1 to this macro) to the Fortran compiler in order to get
3860# "verbose" output that we can then parse for the Fortran linker
3861# flags.
3862ac_save_FFLAGS=$FFLAGS
3863FFLAGS="$FFLAGS $ac_verb"
3864(eval echo $as_me:3864: \"$ac_link\") >&5
3865ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3866echo "$ac_f77_v_output" >&5
3867FFLAGS=$ac_save_FFLAGS
3868
3869rm -f conftest*
3870
3871# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3872# /foo, /bar, and /baz are search directories for the Fortran linker.
3873# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3874ac_f77_v_output="`echo $ac_f77_v_output |
3875        grep 'LPATH is:' |
3876        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3877
3878case $ac_f77_v_output in
3879  # If we are using xlf then replace all the commas with spaces.
3880  *xlfentry*)
3881    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3882
3883  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3884  # $LIBS confuse us, and the libraries appear later in the output anyway).
3885  *mGLOB_options_string*)
3886    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3887
3888  # If we are using Cray Fortran then delete quotes.
3889  # Use "\"" instead of '"' for font-lock-mode.
3890  # FIXME: a more general fix for quoted arguments with spaces?
3891  *cft90*)
3892    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3893esac
3894
3895
3896  # look for -l* and *.a constructs in the output
3897  for ac_arg in $ac_f77_v_output; do
3898     case $ac_arg in
3899        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
3900          ac_cv_prog_f77_v=$ac_verb
3901          break 2 ;;
3902     esac
3903  done
3904done
3905if test -z "$ac_cv_prog_f77_v"; then
3906   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
3907echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
3908fi
3909else
3910  echo "$as_me: failed program was:" >&5
3911sed 's/^/| /' conftest.$ac_ext >&5
3912
3913{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
3914echo "$as_me: WARNING: compilation failed" >&2;}
3915fi
3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917
3918fi
3919echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
3920echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
3921echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
3922echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
3923if test "${ac_cv_f77_libs+set}" = set; then
3924  echo $ECHO_N "(cached) $ECHO_C" >&6
3925else
3926  if test "x$FLIBS" != "x"; then
3927  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
3928else
3929
3930cat >conftest.$ac_ext <<_ACEOF
3931      program main
3932
3933      end
3934_ACEOF
3935
3936# Compile and link our simple test program by passing a flag (argument
3937# 1 to this macro) to the Fortran compiler in order to get
3938# "verbose" output that we can then parse for the Fortran linker
3939# flags.
3940ac_save_FFLAGS=$FFLAGS
3941FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
3942(eval echo $as_me:3942: \"$ac_link\") >&5
3943ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3944echo "$ac_f77_v_output" >&5
3945FFLAGS=$ac_save_FFLAGS
3946
3947rm -f conftest*
3948
3949# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
3950# /foo, /bar, and /baz are search directories for the Fortran linker.
3951# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
3952ac_f77_v_output="`echo $ac_f77_v_output |
3953        grep 'LPATH is:' |
3954        sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
3955
3956case $ac_f77_v_output in
3957  # If we are using xlf then replace all the commas with spaces.
3958  *xlfentry*)
3959    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
3960
3961  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
3962  # $LIBS confuse us, and the libraries appear later in the output anyway).
3963  *mGLOB_options_string*)
3964    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
3965
3966  # If we are using Cray Fortran then delete quotes.
3967  # Use "\"" instead of '"' for font-lock-mode.
3968  # FIXME: a more general fix for quoted arguments with spaces?
3969  *cft90*)
3970    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
3971esac
3972
3973
3974
3975ac_cv_f77_libs=
3976
3977# Save positional arguments (if any)
3978ac_save_positional="$@"
3979
3980set X $ac_f77_v_output
3981while test $# != 1; do
3982  shift
3983  ac_arg=$1
3984  case $ac_arg in
3985        [\\/]*.a | ?:[\\/]*.a)
3986            ac_exists=false
3987  for ac_i in $ac_cv_f77_libs; do
3988    if test x"$ac_arg" = x"$ac_i"; then
3989      ac_exists=true
3990      break
3991    fi
3992  done
3993
3994  if test x"$ac_exists" = xtrue; then
3995  :
3996else
3997  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
3998fi
3999
4000          ;;
4001        -bI:*)
4002            ac_exists=false
4003  for ac_i in $ac_cv_f77_libs; do
4004    if test x"$ac_arg" = x"$ac_i"; then
4005      ac_exists=true
4006      break
4007    fi
4008  done
4009
4010  if test x"$ac_exists" = xtrue; then
4011  :
4012else
4013  if test "$ac_compiler_gnu" = yes; then
4014  for ac_link_opt in $ac_arg; do
4015    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4016  done
4017else
4018  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4019fi
4020fi
4021
4022          ;;
4023          # Ignore these flags.
4024        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4025          ;;
4026        -lkernel32)
4027          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4028          ;;
4029        -[LRuY])
4030          # These flags, when seen by themselves, take an argument.
4031          # We remove the space between option and argument and re-iterate
4032          # unless we find an empty arg or a new option (starting with -)
4033          case $2 in
4034             "" | -*);;
4035             *)
4036                ac_arg="$ac_arg$2"
4037                shift; shift
4038                set X $ac_arg "$@"
4039                ;;
4040          esac
4041          ;;
4042        -YP,*)
4043          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
4044              ac_exists=false
4045  for ac_i in $ac_cv_f77_libs; do
4046    if test x"$ac_j" = x"$ac_i"; then
4047      ac_exists=true
4048      break
4049    fi
4050  done
4051
4052  if test x"$ac_exists" = xtrue; then
4053  :
4054else
4055  ac_arg="$ac_arg $ac_j"
4056                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
4057fi
4058
4059          done
4060          ;;
4061        -[lLR]*)
4062            ac_exists=false
4063  for ac_i in $ac_cv_f77_libs; do
4064    if test x"$ac_arg" = x"$ac_i"; then
4065      ac_exists=true
4066      break
4067    fi
4068  done
4069
4070  if test x"$ac_exists" = xtrue; then
4071  :
4072else
4073  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4074fi
4075
4076          ;;
4077          # Ignore everything else.
4078  esac
4079done
4080# restore positional arguments
4081set X $ac_save_positional; shift
4082
4083# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
4084# then we insist that the "run path" must be an absolute path (i.e. it
4085# must begin with a "/").
4086case `(uname -sr) 2>/dev/null` in
4087   "SunOS 5"*)
4088      ac_ld_run_path=`echo $ac_f77_v_output |
4089                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
4090      test "x$ac_ld_run_path" != x &&
4091        if test "$ac_compiler_gnu" = yes; then
4092  for ac_link_opt in $ac_ld_run_path; do
4093    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4094  done
4095else
4096  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
4097fi
4098      ;;
4099esac
4100fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
4101
4102fi
4103echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
4104echo "${ECHO_T}$ac_cv_f77_libs" >&6
4105FLIBS="$ac_cv_f77_libs"
4106
4107
4108ac_ext=f
4109ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4110ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4112
4113ac_ext=f
4114ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4115ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4117
4118echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
4119echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
4120if test "${ac_cv_f77_dummy_main+set}" = set; then
4121  echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123  ac_f77_dm_save_LIBS=$LIBS
4124 LIBS="$LIBS $FLIBS"
4125 ac_fortran_dm_var=F77_DUMMY_MAIN
4126 ac_ext=c
4127ac_cpp='$CPP $CPPFLAGS'
4128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4130ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131
4132 # First, try linking without a dummy main:
4133 cat >conftest.$ac_ext <<_ACEOF
4134/* confdefs.h.  */
4135_ACEOF
4136cat confdefs.h >>conftest.$ac_ext
4137cat >>conftest.$ac_ext <<_ACEOF
4138/* end confdefs.h.  */
4139
4140#ifdef F77_DUMMY_MAIN
4141
4142#  ifdef __cplusplus
4143     extern "C"
4144#  endif
4145   int F77_DUMMY_MAIN() { return 1; }
4146
4147#endif
4148int
4149main ()
4150{
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156rm -f conftest.$ac_objext conftest$ac_exeext
4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158  (eval $ac_link) 2>conftest.er1
4159  ac_status=$?
4160  grep -v '^ *+' conftest.er1 >conftest.err
4161  rm -f conftest.er1
4162  cat conftest.err >&5
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); } &&
4165         { ac_try='test -z "$ac_c_werror_flag"
4166                         || test ! -s conftest.err'
4167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168  (eval $ac_try) 2>&5
4169  ac_status=$?
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); }; } &&
4172         { ac_try='test -s conftest$ac_exeext'
4173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174  (eval $ac_try) 2>&5
4175  ac_status=$?
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); }; }; then
4178  ac_cv_fortran_dummy_main=none
4179else
4180  echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183ac_cv_fortran_dummy_main=unknown
4184fi
4185rm -f conftest.err conftest.$ac_objext \
4186      conftest$ac_exeext conftest.$ac_ext
4187
4188 if test $ac_cv_fortran_dummy_main = unknown; then
4189   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
4190     cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h.  */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h.  */
4196#define $ac_fortran_dm_var $ac_func
4197#ifdef F77_DUMMY_MAIN
4198
4199#  ifdef __cplusplus
4200     extern "C"
4201#  endif
4202   int F77_DUMMY_MAIN() { return 1; }
4203
4204#endif
4205int
4206main ()
4207{
4208
4209  ;
4210  return 0;
4211}
4212_ACEOF
4213rm -f conftest.$ac_objext conftest$ac_exeext
4214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4215  (eval $ac_link) 2>conftest.er1
4216  ac_status=$?
4217  grep -v '^ *+' conftest.er1 >conftest.err
4218  rm -f conftest.er1
4219  cat conftest.err >&5
4220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221  (exit $ac_status); } &&
4222         { ac_try='test -z "$ac_c_werror_flag"
4223                         || test ! -s conftest.err'
4224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4225  (eval $ac_try) 2>&5
4226  ac_status=$?
4227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228  (exit $ac_status); }; } &&
4229         { ac_try='test -s conftest$ac_exeext'
4230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4231  (eval $ac_try) 2>&5
4232  ac_status=$?
4233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234  (exit $ac_status); }; }; then
4235  ac_cv_fortran_dummy_main=$ac_func; break
4236else
4237  echo "$as_me: failed program was:" >&5
4238sed 's/^/| /' conftest.$ac_ext >&5
4239
4240fi
4241rm -f conftest.err conftest.$ac_objext \
4242      conftest$ac_exeext conftest.$ac_ext
4243   done
4244 fi
4245 ac_ext=f
4246ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4247ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4249 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
4250 rm -f conftest*
4251 LIBS=$ac_f77_dm_save_LIBS
4252
4253fi
4254echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
4255echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
4256F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
4257if test "$F77_DUMMY_MAIN" != unknown; then
4258  if test $F77_DUMMY_MAIN != none; then
4259
4260cat >>confdefs.h <<_ACEOF
4261#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
4262_ACEOF
4263
4264  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
4265
4266cat >>confdefs.h <<\_ACEOF
4267#define FC_DUMMY_MAIN_EQ_F77 1
4268_ACEOF
4269
4270  fi
4271fi
4272else
4273  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
4274See \`config.log' for more details." >&5
4275echo "$as_me: error: linking to Fortran libraries from C fails
4276See \`config.log' for more details." >&2;}
4277   { (exit 1); exit 1; }; }
4278fi
4279
4280
4281ac_ext=f
4282ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4283ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4285
4286ac_ext=f
4287ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4288ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4290echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
4291echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
4292if test "${ac_cv_f77_mangling+set}" = set; then
4293  echo $ECHO_N "(cached) $ECHO_C" >&6
4294else
4295  cat >conftest.$ac_ext <<_ACEOF
4296      subroutine foobar()
4297      return
4298      end
4299      subroutine foo_bar()
4300      return
4301      end
4302_ACEOF
4303rm -f conftest.$ac_objext
4304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4305  (eval $ac_compile) 2>conftest.er1
4306  ac_status=$?
4307  grep -v '^ *+' conftest.er1 >conftest.err
4308  rm -f conftest.er1
4309  cat conftest.err >&5
4310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311  (exit $ac_status); } &&
4312         { ac_try='test -z "$ac_f77_werror_flag"
4313                         || test ! -s conftest.err'
4314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315  (eval $ac_try) 2>&5
4316  ac_status=$?
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); }; } &&
4319         { ac_try='test -s conftest.$ac_objext'
4320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321  (eval $ac_try) 2>&5
4322  ac_status=$?
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); }; }; then
4325  mv conftest.$ac_objext cfortran_test.$ac_objext
4326
4327  ac_save_LIBS=$LIBS
4328  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
4329
4330  ac_ext=c
4331ac_cpp='$CPP $CPPFLAGS'
4332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4334ac_compiler_gnu=$ac_cv_c_compiler_gnu
4335  ac_success=no
4336  for ac_foobar in foobar FOOBAR; do
4337    for ac_underscore in "" "_"; do
4338      ac_func="$ac_foobar$ac_underscore"
4339      cat >conftest.$ac_ext <<_ACEOF
4340/* confdefs.h.  */
4341_ACEOF
4342cat confdefs.h >>conftest.$ac_ext
4343cat >>conftest.$ac_ext <<_ACEOF
4344/* end confdefs.h.  */
4345
4346/* Override any gcc2 internal prototype to avoid an error.  */
4347#ifdef __cplusplus
4348extern "C"
4349#endif
4350/* We use char because int might match the return type of a gcc2
4351   builtin and then its argument prototype would still apply.  */
4352char $ac_func ();
4353#ifdef F77_DUMMY_MAIN
4354
4355#  ifdef __cplusplus
4356     extern "C"
4357#  endif
4358   int F77_DUMMY_MAIN() { return 1; }
4359
4360#endif
4361int
4362main ()
4363{
4364$ac_func ();
4365  ;
4366  return 0;
4367}
4368_ACEOF
4369rm -f conftest.$ac_objext conftest$ac_exeext
4370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4371  (eval $ac_link) 2>conftest.er1
4372  ac_status=$?
4373  grep -v '^ *+' conftest.er1 >conftest.err
4374  rm -f conftest.er1
4375  cat conftest.err >&5
4376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377  (exit $ac_status); } &&
4378         { ac_try='test -z "$ac_c_werror_flag"
4379                         || test ! -s conftest.err'
4380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381  (eval $ac_try) 2>&5
4382  ac_status=$?
4383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384  (exit $ac_status); }; } &&
4385         { ac_try='test -s conftest$ac_exeext'
4386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387  (eval $ac_try) 2>&5
4388  ac_status=$?
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); }; }; then
4391  ac_success=yes; break 2
4392else
4393  echo "$as_me: failed program was:" >&5
4394sed 's/^/| /' conftest.$ac_ext >&5
4395
4396fi
4397rm -f conftest.err conftest.$ac_objext \
4398      conftest$ac_exeext conftest.$ac_ext
4399    done
4400  done
4401  ac_ext=f
4402ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4403ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4405
4406  if test "$ac_success" = "yes"; then
4407     case $ac_foobar in
4408        foobar)
4409           ac_case=lower
4410           ac_foo_bar=foo_bar
4411           ;;
4412        FOOBAR)
4413           ac_case=upper
4414           ac_foo_bar=FOO_BAR
4415           ;;
4416     esac
4417
4418     ac_ext=c
4419ac_cpp='$CPP $CPPFLAGS'
4420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423     ac_success_extra=no
4424     for ac_extra in "" "_"; do
4425        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
4426        cat >conftest.$ac_ext <<_ACEOF
4427/* confdefs.h.  */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h.  */
4432
4433/* Override any gcc2 internal prototype to avoid an error.  */
4434#ifdef __cplusplus
4435extern "C"
4436#endif
4437/* We use char because int might match the return type of a gcc2
4438   builtin and then its argument prototype would still apply.  */
4439char $ac_func ();
4440#ifdef F77_DUMMY_MAIN
4441
4442#  ifdef __cplusplus
4443     extern "C"
4444#  endif
4445   int F77_DUMMY_MAIN() { return 1; }
4446
4447#endif
4448int
4449main ()
4450{
4451$ac_func ();
4452  ;
4453  return 0;
4454}
4455_ACEOF
4456rm -f conftest.$ac_objext conftest$ac_exeext
4457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458  (eval $ac_link) 2>conftest.er1
4459  ac_status=$?
4460  grep -v '^ *+' conftest.er1 >conftest.err
4461  rm -f conftest.er1
4462  cat conftest.err >&5
4463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464  (exit $ac_status); } &&
4465         { ac_try='test -z "$ac_c_werror_flag"
4466                         || test ! -s conftest.err'
4467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468  (eval $ac_try) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; } &&
4472         { ac_try='test -s conftest$ac_exeext'
4473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474  (eval $ac_try) 2>&5
4475  ac_status=$?
4476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477  (exit $ac_status); }; }; then
4478  ac_success_extra=yes; break
4479else
4480  echo "$as_me: failed program was:" >&5
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
4483fi
4484rm -f conftest.err conftest.$ac_objext \
4485      conftest$ac_exeext conftest.$ac_ext
4486     done
4487     ac_ext=f
4488ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4489ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4491
4492     if test "$ac_success_extra" = "yes"; then
4493        ac_cv_f77_mangling="$ac_case case"
4494        if test -z "$ac_underscore"; then
4495           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
4496        else
4497           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
4498        fi
4499        if test -z "$ac_extra"; then
4500           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
4501        else
4502           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
4503        fi
4504      else
4505        ac_cv_f77_mangling="unknown"
4506      fi
4507  else
4508     ac_cv_f77_mangling="unknown"
4509  fi
4510
4511  LIBS=$ac_save_LIBS
4512  rm -f cfortran_test* conftest*
4513else
4514  echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
4518See \`config.log' for more details." >&5
4519echo "$as_me: error: cannot compile a simple Fortran program
4520See \`config.log' for more details." >&2;}
4521   { (exit 1); exit 1; }; }
4522fi
4523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4524
4525fi
4526echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
4527echo "${ECHO_T}$ac_cv_f77_mangling" >&6
4528
4529ac_ext=f
4530ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4531ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4533
4534
4535ac_ext=f
4536ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4537ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4539
4540
4541save_FLIBS="$FLIBS"
4542
4543ac_ext=f
4544ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4545ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4546ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4547
4548
4549case $ac_cv_f77_mangling in
4550  "lower case, no underscore, no extra underscore")
4551          cat >>confdefs.h <<\_ACEOF
4552#define F77_FUNC(name,NAME) name
4553_ACEOF
4554
4555          cat >>confdefs.h <<\_ACEOF
4556#define F77_FUNC_(name,NAME) name
4557_ACEOF
4558 ;;
4559  "lower case, no underscore, extra underscore")
4560          cat >>confdefs.h <<\_ACEOF
4561#define F77_FUNC(name,NAME) name
4562_ACEOF
4563
4564          cat >>confdefs.h <<\_ACEOF
4565#define F77_FUNC_(name,NAME) name ## _
4566_ACEOF
4567 ;;
4568  "lower case, underscore, no extra underscore")
4569          cat >>confdefs.h <<\_ACEOF
4570#define F77_FUNC(name,NAME) name ## _
4571_ACEOF
4572
4573          cat >>confdefs.h <<\_ACEOF
4574#define F77_FUNC_(name,NAME) name ## _
4575_ACEOF
4576 ;;
4577  "lower case, underscore, extra underscore")
4578          cat >>confdefs.h <<\_ACEOF
4579#define F77_FUNC(name,NAME) name ## _
4580_ACEOF
4581
4582          cat >>confdefs.h <<\_ACEOF
4583#define F77_FUNC_(name,NAME) name ## __
4584_ACEOF
4585 ;;
4586  "upper case, no underscore, no extra underscore")
4587          cat >>confdefs.h <<\_ACEOF
4588#define F77_FUNC(name,NAME) NAME
4589_ACEOF
4590
4591          cat >>confdefs.h <<\_ACEOF
4592#define F77_FUNC_(name,NAME) NAME
4593_ACEOF
4594 ;;
4595  "upper case, no underscore, extra underscore")
4596          cat >>confdefs.h <<\_ACEOF
4597#define F77_FUNC(name,NAME) NAME
4598_ACEOF
4599
4600          cat >>confdefs.h <<\_ACEOF
4601#define F77_FUNC_(name,NAME) NAME ## _
4602_ACEOF
4603 ;;
4604  "upper case, underscore, no extra underscore")
4605          cat >>confdefs.h <<\_ACEOF
4606#define F77_FUNC(name,NAME) NAME ## _
4607_ACEOF
4608
4609          cat >>confdefs.h <<\_ACEOF
4610#define F77_FUNC_(name,NAME) NAME ## _
4611_ACEOF
4612 ;;
4613  "upper case, underscore, extra underscore")
4614          cat >>confdefs.h <<\_ACEOF
4615#define F77_FUNC(name,NAME) NAME ## _
4616_ACEOF
4617
4618          cat >>confdefs.h <<\_ACEOF
4619#define F77_FUNC_(name,NAME) NAME ## __
4620_ACEOF
4621 ;;
4622  *)
4623          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
4624echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
4625          ;;
4626esac
4627
4628ac_ext=f
4629ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4630ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4632
4633
4634if test x"$save_FLIBS" != x; then
4635  FLIBS="$save_FLIBS"
4636else
4637  # This is to correct a missing exclusion in autoconf 2.59
4638  if test x"$FLIBS" != x; then
4639    my_flibs=
4640    for flag in $FLIBS; do
4641      case $flag in
4642        -lcrt*.o) ;;
4643               *) my_flibs="$my_flibs $flag" ;;
4644      esac
4645    done
4646    FLIBS="$my_flibs"
4647  fi
4648
4649  case $build in
4650  # The following is a fix to define FLIBS for ifort on Windows
4651  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
4652  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
4653  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
4654     *-cygwin* | *-mingw*)
4655       case "$F77" in
4656         ifort* | */ifort* | IFORT* | */IFORT*)
4657           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
4658#           if "$coin_debug_compile" = true ; then
4659#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
4660#           else
4661#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
4662#           fi
4663           ;;
4664         compile_f2c*)
4665           FLIBS=`$F77 -FLIBS` ;;
4666       esac;;
4667     *-hp-*)
4668         FLIBS="$FLIBS -lm";;
4669     *-ibm-*)
4670         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
4671     *-linux-*)
4672       case "$F77" in
4673         pgf77* | */pgf77* | pgf90* | */pgf90*)
4674# ask linker to go through the archives multiple times
4675# (the Fortran compiler seems to do that automatically...
4676           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
4677       esac
4678  esac
4679  ac_cv_f77_libs="$FLIBS"
4680fi
4681
4682ac_ext=c
4683ac_cpp='$CPP $CPPFLAGS'
4684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687
4688
4689
4690
4691# Tell FINALIZE to add FLIBS to ADDLIBS, so that they get into the .pc files
4692coin_need_flibs=yes
4693
4694# Take care that optimization is disbled for DLAMCH.F
4695
4696if test "x$DLAMCH_FFLAGS" = x ; then
4697  #disable optimiziation for dlamch.f by adding -Od or -O0 at end of FFLAGS (hope to overwrite previous -O? option, if present)
4698  case $F77 in
4699    ifort* | */ifort* | IFORT* | */IFORT* )
4700      case $build in
4701        *-cygwin* | *-mingw*)
4702          DLAMCH_FFLAGS="$FFLAGS -Od"
4703          ;;
4704        *)
4705          DLAMCH_FFLAGS="$FFLAGS -O0"
4706          ;;
4707      esac
4708      ;;
4709    compile_f2c*)
4710      case "$CC" in
4711        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4712          DLAMCH_FFLAGS="$FFLAGS -Od"
4713        ;;
4714        *)
4715          DLAMCH_FFLAGS="$FFLAGS -O0"
4716        ;;
4717      esac
4718      ;;
4719    *)
4720      DLAMCH_FFLAGS="$FFLAGS -O0"
4721      ;;
4722  esac
4723fi
4724
4725
4726# Initialize autotools
4727{
4728
4729
4730
4731# START
4732
4733# Test if force_shared has been set
4734if test "x" = xforce_shared; then
4735  if test x$enable_shared = xno; then
4736    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4737echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4738   { (exit 1); exit 1; }; }
4739  fi
4740  enable_shared=yes;
4741else
4742  # On Cygwin and AIX, building DLLs doesn't work
4743  case $build in
4744    *-cygwin*)
4745      coin_disable_shared=yes
4746      platform=Cygwin
4747    ;;
4748    *-aix*)
4749      coin_disable_shared=yes
4750      platform=AIX
4751    ;;
4752    *-mingw*)
4753      coin_disable_shared=yes
4754      platform="Msys"
4755#      case "$CXX" in
4756#        cl*)
4757#          coin_disable_shared=yes
4758#          platform="Msys with cl"
4759#      ;;
4760#      esac
4761    ;;
4762  esac
4763fi
4764if test x"$coin_disable_shared" = xyes; then
4765  if test x"$enable_shared" = xyes; then
4766    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4767echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4768  fi
4769  enable_shared=no
4770fi
4771# By default, we only want the shared objects to be compiled
4772# Check whether --enable-static or --disable-static was given.
4773if test "${enable_static+set}" = set; then
4774  enableval="$enable_static"
4775  p=${PACKAGE-default}
4776    case $enableval in
4777    yes) enable_static=yes ;;
4778    no) enable_static=no ;;
4779    *)
4780     enable_static=no
4781      # Look at the argument we got.  We use all the common list separators.
4782      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4783      for pkg in $enableval; do
4784        IFS="$lt_save_ifs"
4785        if test "X$pkg" = "X$p"; then
4786          enable_static=yes
4787        fi
4788      done
4789      IFS="$lt_save_ifs"
4790      ;;
4791    esac
4792else
4793  enable_static=no
4794fi;
4795
4796
4797
4798
4799# Initialize automake
4800echo "$as_me:$LINENO: checking for egrep" >&5
4801echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4802if test "${ac_cv_prog_egrep+set}" = set; then
4803  echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4806    then ac_cv_prog_egrep='grep -E'
4807    else ac_cv_prog_egrep='egrep'
4808    fi
4809fi
4810echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4811echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4812 EGREP=$ac_cv_prog_egrep
4813
4814
4815am__api_version="1.9"
4816# Find a good install program.  We prefer a C program (faster),
4817# so one script is as good as another.  But avoid the broken or
4818# incompatible versions:
4819# SysV /etc/install, /usr/sbin/install
4820# SunOS /usr/etc/install
4821# IRIX /sbin/install
4822# AIX /bin/install
4823# AmigaOS /C/install, which installs bootblocks on floppy discs
4824# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4825# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4826# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4827# OS/2's system install, which has a completely different semantic
4828# ./install, which can be erroneously created by make from ./install.sh.
4829echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4830echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4831if test -z "$INSTALL"; then
4832if test "${ac_cv_path_install+set}" = set; then
4833  echo $ECHO_N "(cached) $ECHO_C" >&6
4834else
4835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840  # Account for people who put trailing slashes in PATH elements.
4841case $as_dir/ in
4842  ./ | .// | /cC/* | \
4843  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4844  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4845  /usr/ucb/* ) ;;
4846  *)
4847    # OSF1 and SCO ODT 3.0 have their own names for install.
4848    # Don't use installbsd from OSF since it installs stuff as root
4849    # by default.
4850    for ac_prog in ginstall scoinst install; do
4851      for ac_exec_ext in '' $ac_executable_extensions; do
4852        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4853          if test $ac_prog = install &&
4854            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4855            # AIX install.  It has an incompatible calling convention.
4856            :
4857          elif test $ac_prog = install &&
4858            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4859            # program-specific install script used by HP pwplus--don't use.
4860            :
4861          else
4862            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4863            break 3
4864          fi
4865        fi
4866      done
4867    done
4868    ;;
4869esac
4870done
4871
4872
4873fi
4874  if test "${ac_cv_path_install+set}" = set; then
4875    INSTALL=$ac_cv_path_install
4876  else
4877    # As a last resort, use the slow shell script.  We don't cache a
4878    # path for INSTALL within a source directory, because that will
4879    # break other packages using the cache if that directory is
4880    # removed, or if the path is relative.
4881    INSTALL=$ac_install_sh
4882  fi
4883fi
4884echo "$as_me:$LINENO: result: $INSTALL" >&5
4885echo "${ECHO_T}$INSTALL" >&6
4886
4887# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4888# It thinks the first close brace ends the variable substitution.
4889test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4890
4891test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4892
4893test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4894
4895echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4896echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4897# Just in case
4898sleep 1
4899echo timestamp > conftest.file
4900# Do `set' in a subshell so we don't clobber the current shell's
4901# arguments.  Must try -L first in case configure is actually a
4902# symlink; some systems play weird games with the mod time of symlinks
4903# (eg FreeBSD returns the mod time of the symlink's containing
4904# directory).
4905if (
4906   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4907   if test "$*" = "X"; then
4908      # -L didn't work.
4909      set X `ls -t $srcdir/configure conftest.file`
4910   fi
4911   rm -f conftest.file
4912   if test "$*" != "X $srcdir/configure conftest.file" \
4913      && test "$*" != "X conftest.file $srcdir/configure"; then
4914
4915      # If neither matched, then we have a broken ls.  This can happen
4916      # if, for instance, CONFIG_SHELL is bash and it inherits a
4917      # broken ls alias from the environment.  This has actually
4918      # happened.  Such a system could not be considered "sane".
4919      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4920alias in your environment" >&5
4921echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4922alias in your environment" >&2;}
4923   { (exit 1); exit 1; }; }
4924   fi
4925
4926   test "$2" = conftest.file
4927   )
4928then
4929   # Ok.
4930   :
4931else
4932   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4933Check your system clock" >&5
4934echo "$as_me: error: newly created file is older than distributed files!
4935Check your system clock" >&2;}
4936   { (exit 1); exit 1; }; }
4937fi
4938echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940test "$program_prefix" != NONE &&
4941  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4942# Use a double $ so make ignores it.
4943test "$program_suffix" != NONE &&
4944  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4945# Double any \ or $.  echo might interpret backslashes.
4946# By default was `s,x,x', remove it if useless.
4947cat <<\_ACEOF >conftest.sed
4948s/[\\$]/&&/g;s/;s,x,x,$//
4949_ACEOF
4950program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4951rm conftest.sed
4952
4953# expand $ac_aux_dir to an absolute path
4954am_aux_dir=`cd $ac_aux_dir && pwd`
4955
4956test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4957# Use eval to expand $SHELL
4958if eval "$MISSING --run true"; then
4959  am_missing_run="$MISSING --run "
4960else
4961  am_missing_run=
4962  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4963echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4964fi
4965
4966if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4967  # We used to keeping the `.' as first argument, in order to
4968  # allow $(mkdir_p) to be used without argument.  As in
4969  #   $(mkdir_p) $(somedir)
4970  # where $(somedir) is conditionally defined.  However this is wrong
4971  # for two reasons:
4972  #  1. if the package is installed by a user who cannot write `.'
4973  #     make install will fail,
4974  #  2. the above comment should most certainly read
4975  #     $(mkdir_p) $(DESTDIR)$(somedir)
4976  #     so it does not work when $(somedir) is undefined and
4977  #     $(DESTDIR) is not.
4978  #  To support the latter case, we have to write
4979  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4980  #  so the `.' trick is pointless.
4981  mkdir_p='mkdir -p --'
4982else
4983  # On NextStep and OpenStep, the `mkdir' command does not
4984  # recognize any option.  It will interpret all options as
4985  # directories to create, and then abort because `.' already
4986  # exists.
4987  for d in ./-p ./--version;
4988  do
4989    test -d $d && rmdir $d
4990  done
4991  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4992  if test -f "$ac_aux_dir/mkinstalldirs"; then
4993    mkdir_p='$(mkinstalldirs)'
4994  else
4995    mkdir_p='$(install_sh) -d'
4996  fi
4997fi
4998
4999for ac_prog in gawk mawk nawk awk
5000do
5001  # Extract the first word of "$ac_prog", so it can be a program name with args.
5002set dummy $ac_prog; ac_word=$2
5003echo "$as_me:$LINENO: checking for $ac_word" >&5
5004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005if test "${ac_cv_prog_AWK+set}" = set; then
5006  echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008  if test -n "$AWK"; then
5009  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014  IFS=$as_save_IFS
5015  test -z "$as_dir" && as_dir=.
5016  for ac_exec_ext in '' $ac_executable_extensions; do
5017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018    ac_cv_prog_AWK="$ac_prog"
5019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020    break 2
5021  fi
5022done
5023done
5024
5025fi
5026fi
5027AWK=$ac_cv_prog_AWK
5028if test -n "$AWK"; then
5029  echo "$as_me:$LINENO: result: $AWK" >&5
5030echo "${ECHO_T}$AWK" >&6
5031else
5032  echo "$as_me:$LINENO: result: no" >&5
5033echo "${ECHO_T}no" >&6
5034fi
5035
5036  test -n "$AWK" && break
5037done
5038
5039echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5040echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5041set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5042if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5043  echo $ECHO_N "(cached) $ECHO_C" >&6
5044else
5045  cat >conftest.make <<\_ACEOF
5046all:
5047        @echo 'ac_maketemp="$(MAKE)"'
5048_ACEOF
5049# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5050eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5051if test -n "$ac_maketemp"; then
5052  eval ac_cv_prog_make_${ac_make}_set=yes
5053else
5054  eval ac_cv_prog_make_${ac_make}_set=no
5055fi
5056rm -f conftest.make
5057fi
5058if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5059  echo "$as_me:$LINENO: result: yes" >&5
5060echo "${ECHO_T}yes" >&6
5061  SET_MAKE=
5062else
5063  echo "$as_me:$LINENO: result: no" >&5
5064echo "${ECHO_T}no" >&6
5065  SET_MAKE="MAKE=${MAKE-make}"
5066fi
5067
5068rm -rf .tst 2>/dev/null
5069mkdir .tst 2>/dev/null
5070if test -d .tst; then
5071  am__leading_dot=.
5072else
5073  am__leading_dot=_
5074fi
5075rmdir .tst 2>/dev/null
5076
5077DEPDIR="${am__leading_dot}deps"
5078
5079          ac_config_commands="$ac_config_commands depfiles"
5080
5081
5082am_make=${MAKE-make}
5083cat > confinc << 'END'
5084am__doit:
5085        @echo done
5086.PHONY: am__doit
5087END
5088# If we don't find an include directive, just comment out the code.
5089echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5090echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5091am__include="#"
5092am__quote=
5093_am_result=none
5094# First try GNU make style include.
5095echo "include confinc" > confmf
5096# We grep out `Entering directory' and `Leaving directory'
5097# messages which can occur if `w' ends up in MAKEFLAGS.
5098# In particular we don't look at `^make:' because GNU make might
5099# be invoked under some other name (usually "gmake"), in which
5100# case it prints its new name instead of `make'.
5101if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5102   am__include=include
5103   am__quote=
5104   _am_result=GNU
5105fi
5106# Now try BSD make style include.
5107if test "$am__include" = "#"; then
5108   echo '.include "confinc"' > confmf
5109   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5110      am__include=.include
5111      am__quote="\""
5112      _am_result=BSD
5113   fi
5114fi
5115
5116
5117echo "$as_me:$LINENO: result: $_am_result" >&5
5118echo "${ECHO_T}$_am_result" >&6
5119rm -f confinc confmf
5120
5121# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5122if test "${enable_dependency_tracking+set}" = set; then
5123  enableval="$enable_dependency_tracking"
5124
5125fi;
5126if test "x$enable_dependency_tracking" != xno; then
5127  am_depcomp="$ac_aux_dir/depcomp"
5128  AMDEPBACKSLASH='\'
5129fi
5130
5131
5132if test "x$enable_dependency_tracking" != xno; then
5133  AMDEP_TRUE=
5134  AMDEP_FALSE='#'
5135else
5136  AMDEP_TRUE='#'
5137  AMDEP_FALSE=
5138fi
5139
5140
5141
5142
5143
5144# AC_MSG_NOTICE([Beginning automake initialisation.])
5145# Stuff for automake
5146# test to see if srcdir already configured
5147if test "`cd $srcdir && pwd`" != "`pwd`" &&
5148   test -f $srcdir/config.status; then
5149  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5150echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5151   { (exit 1); exit 1; }; }
5152fi
5153
5154# test whether we have cygpath
5155if test -z "$CYGPATH_W"; then
5156  if (cygpath --version) >/dev/null 2>/dev/null; then
5157    CYGPATH_W='cygpath -w'
5158  else
5159    CYGPATH_W=echo
5160  fi
5161fi
5162
5163
5164# Define the identity of the package.
5165 PACKAGE='thirdpartylapack'
5166 VERSION='0.0'
5167
5168
5169cat >>confdefs.h <<_ACEOF
5170#define PACKAGE "$PACKAGE"
5171_ACEOF
5172
5173
5174cat >>confdefs.h <<_ACEOF
5175#define VERSION "$VERSION"
5176_ACEOF
5177
5178# Some tools Automake needs.
5179
5180ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5181
5182
5183AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5184
5185
5186AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5187
5188
5189AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5190
5191
5192MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5193
5194install_sh=${install_sh-"$am_aux_dir/install-sh"}
5195
5196# Installed binaries are usually stripped using `strip' when the user
5197# run `make install-strip'.  However `strip' might not be the right
5198# tool to use in cross-compilation environments, therefore Automake
5199# will honor the `STRIP' environment variable to overrule this program.
5200if test "$cross_compiling" != no; then
5201  if test -n "$ac_tool_prefix"; then
5202  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5203set dummy ${ac_tool_prefix}strip; ac_word=$2
5204echo "$as_me:$LINENO: checking for $ac_word" >&5
5205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5206if test "${ac_cv_prog_STRIP+set}" = set; then
5207  echo $ECHO_N "(cached) $ECHO_C" >&6
5208else
5209  if test -n "$STRIP"; then
5210  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5211else
5212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215  IFS=$as_save_IFS
5216  test -z "$as_dir" && as_dir=.
5217  for ac_exec_ext in '' $ac_executable_extensions; do
5218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5219    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221    break 2
5222  fi
5223done
5224done
5225
5226fi
5227fi
5228STRIP=$ac_cv_prog_STRIP
5229if test -n "$STRIP"; then
5230  echo "$as_me:$LINENO: result: $STRIP" >&5
5231echo "${ECHO_T}$STRIP" >&6
5232else
5233  echo "$as_me:$LINENO: result: no" >&5
5234echo "${ECHO_T}no" >&6
5235fi
5236
5237fi
5238if test -z "$ac_cv_prog_STRIP"; then
5239  ac_ct_STRIP=$STRIP
5240  # Extract the first word of "strip", so it can be a program name with args.
5241set dummy strip; ac_word=$2
5242echo "$as_me:$LINENO: checking for $ac_word" >&5
5243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5244if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5245  echo $ECHO_N "(cached) $ECHO_C" >&6
5246else
5247  if test -n "$ac_ct_STRIP"; then
5248  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5249else
5250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251for as_dir in $PATH
5252do
5253  IFS=$as_save_IFS
5254  test -z "$as_dir" && as_dir=.
5255  for ac_exec_ext in '' $ac_executable_extensions; do
5256  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257    ac_cv_prog_ac_ct_STRIP="strip"
5258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259    break 2
5260  fi
5261done
5262done
5263
5264  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5265fi
5266fi
5267ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5268if test -n "$ac_ct_STRIP"; then
5269  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5270echo "${ECHO_T}$ac_ct_STRIP" >&6
5271else
5272  echo "$as_me:$LINENO: result: no" >&5
5273echo "${ECHO_T}no" >&6
5274fi
5275
5276  STRIP=$ac_ct_STRIP
5277else
5278  STRIP="$ac_cv_prog_STRIP"
5279fi
5280
5281fi
5282INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5283
5284# We need awk for the "check" target.  The system "awk" is bad on
5285# some platforms.
5286# Always define AMTAR for backward compatibility.
5287
5288AMTAR=${AMTAR-"${am_missing_run}tar"}
5289
5290am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5291
5292
5293
5294
5295depcc="$CC"   am_compiler_list=
5296
5297echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5298echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5299if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5303  # We make a subdir and do the tests there.  Otherwise we can end up
5304  # making bogus files that we don't know about and never remove.  For
5305  # instance it was reported that on HP-UX the gcc test will end up
5306  # making a dummy file named `D' -- because `-MD' means `put the output
5307  # in D'.
5308  mkdir conftest.dir
5309  # Copy depcomp to subdir because otherwise we won't find it if we're
5310  # using a relative directory.
5311  cp "$am_depcomp" conftest.dir
5312  cd conftest.dir
5313  # We will build objects and dependencies in a subdirectory because
5314  # it helps to detect inapplicable dependency modes.  For instance
5315  # both Tru64's cc and ICC support -MD to output dependencies as a
5316  # side effect of compilation, but ICC will put the dependencies in
5317  # the current directory while Tru64 will put them in the object
5318  # directory.
5319  mkdir sub
5320
5321  am_cv_CC_dependencies_compiler_type=none
5322  if test "$am_compiler_list" = ""; then
5323     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5324  fi
5325  for depmode in $am_compiler_list; do
5326    # Setup a source with many dependencies, because some compilers
5327    # like to wrap large dependency lists on column 80 (with \), and
5328    # we should not choose a depcomp mode which is confused by this.
5329    #
5330    # We need to recreate these files for each test, as the compiler may
5331    # overwrite some of them when testing with obscure command lines.
5332    # This happens at least with the AIX C compiler.
5333    : > sub/conftest.c
5334    for i in 1 2 3 4 5 6; do
5335      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5336      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5337      # Solaris 8's {/usr,}/bin/sh.
5338      touch sub/conftst$i.h
5339    done
5340    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5341
5342    case $depmode in
5343    nosideeffect)
5344      # after this tag, mechanisms are not by side-effect, so they'll
5345      # only be used when explicitly requested
5346      if test "x$enable_dependency_tracking" = xyes; then
5347        continue
5348      else
5349        break
5350      fi
5351      ;;
5352    none) break ;;
5353    esac
5354    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355    # mode.  It turns out that the SunPro C++ compiler does not properly
5356    # handle `-M -o', and we need to detect this.
5357    if depmode=$depmode \
5358       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5359       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5360       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5361         >/dev/null 2>conftest.err &&
5362       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5363       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5364       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5365      # icc doesn't choke on unknown options, it will just issue warnings
5366      # or remarks (even with -Werror).  So we grep stderr for any message
5367      # that says an option was ignored or not supported.
5368      # When given -MP, icc 7.0 and 7.1 complain thusly:
5369      #   icc: Command line warning: ignoring option '-M'; no argument required
5370      # The diagnosis changed in icc 8.0:
5371      #   icc: Command line remark: option '-MP' not supported
5372      if (grep 'ignoring option' conftest.err ||
5373          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5374        am_cv_CC_dependencies_compiler_type=$depmode
5375        break
5376      fi
5377    fi
5378  done
5379
5380  cd ..
5381  rm -rf conftest.dir
5382else
5383  am_cv_CC_dependencies_compiler_type=none
5384fi
5385
5386fi
5387echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5388echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5389CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5390
5391
5392
5393if
5394  test "x$enable_dependency_tracking" != xno \
5395  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5396  am__fastdepCC_TRUE=
5397  am__fastdepCC_FALSE='#'
5398else
5399  am__fastdepCC_TRUE='#'
5400  am__fastdepCC_FALSE=
5401fi
5402
5403
5404
5405echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5406echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5407    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5408if test "${enable_maintainer_mode+set}" = set; then
5409  enableval="$enable_maintainer_mode"
5410  USE_MAINTAINER_MODE=$enableval
5411else
5412  USE_MAINTAINER_MODE=no
5413fi;
5414  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5415echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5416
5417
5418if test $USE_MAINTAINER_MODE = yes; then
5419  MAINTAINER_MODE_TRUE=
5420  MAINTAINER_MODE_FALSE='#'
5421else
5422  MAINTAINER_MODE_TRUE='#'
5423  MAINTAINER_MODE_FALSE=
5424fi
5425
5426  MAINT=$MAINTAINER_MODE_TRUE
5427
5428
5429
5430coin_have_externals=no
5431if test "$enable_maintainer_mode" = yes; then
5432
5433  # If maintainer mode is chosen, we make sure that the correct versions
5434  # of the tools are used, and that we know where libtool.m4 is (to
5435  # recreate acinclude.m4)
5436
5437
5438  LIBTOOLM4=
5439  # Normally, $HOME
5440  AUTOTOOLS_DFLT=$HOME
5441
5442  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5443echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5444if test "${ac_cv_use_correct_autotools+set}" = set; then
5445  echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447  ac_cv_use_correct_autotools=check
5448fi
5449echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5450echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5451
5452  if test $ac_cv_use_correct_autotools = check; then
5453    ac_cv_use_correct_autotools=yes
5454    # Check if we have autoconf
5455    # Extract the first word of "autoconf", so it can be a program name with args.
5456set dummy autoconf; ac_word=$2
5457echo "$as_me:$LINENO: checking for $ac_word" >&5
5458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459if test "${ac_cv_prog_have_autoconf+set}" = set; then
5460  echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462  if test -n "$have_autoconf"; then
5463  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5464else
5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466for as_dir in $PATH
5467do
5468  IFS=$as_save_IFS
5469  test -z "$as_dir" && as_dir=.
5470  for ac_exec_ext in '' $ac_executable_extensions; do
5471  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472    ac_cv_prog_have_autoconf="yes"
5473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474    break 2
5475  fi
5476done
5477done
5478
5479  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5480fi
5481fi
5482have_autoconf=$ac_cv_prog_have_autoconf
5483if test -n "$have_autoconf"; then
5484  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5485echo "${ECHO_T}$have_autoconf" >&6
5486else
5487  echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
5489fi
5490
5491    if test $have_autoconf = no; then
5492      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5493echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5494   { (exit 1); exit 1; }; }
5495    fi
5496
5497    # Check whether autoconf is the correct version
5498    correct_version='2.59'
5499    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5500    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5501echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5502    autoconf --version > confauto.out 2>&1
5503    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5504      echo "$as_me:$LINENO: result: yes" >&5
5505echo "${ECHO_T}yes" >&6
5506    else
5507      rm -f confauto.out
5508      echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5511echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5512   { (exit 1); exit 1; }; }
5513    fi
5514    rm -f confauto.out
5515
5516    # Check if the executable autoconf is picked up from the correct location
5517    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5518echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5519    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5520    autoconf_dir=`cd $autoconf_dir; pwd`
5521    if test x$AUTOTOOLS_DIR = x; then
5522      want_dir=$AUTOTOOLS_DFLT/bin
5523    else
5524      want_dir=$AUTOTOOLS_DIR/bin
5525    fi
5526    if test $autoconf_dir = `cd $want_dir; pwd`; then
5527      echo "$as_me:$LINENO: result: yes" >&5
5528echo "${ECHO_T}yes" >&6
5529    else
5530      rm -f confauto.out
5531      echo "$as_me:$LINENO: result: no" >&5
5532echo "${ECHO_T}no" >&6
5533      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5534echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5535   { (exit 1); exit 1; }; }
5536    fi
5537
5538    # Check if we have automake
5539    # Extract the first word of "automake", so it can be a program name with args.
5540set dummy automake; ac_word=$2
5541echo "$as_me:$LINENO: checking for $ac_word" >&5
5542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5543if test "${ac_cv_prog_have_automake+set}" = set; then
5544  echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5546  if test -n "$have_automake"; then
5547  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552  IFS=$as_save_IFS
5553  test -z "$as_dir" && as_dir=.
5554  for ac_exec_ext in '' $ac_executable_extensions; do
5555  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556    ac_cv_prog_have_automake="yes"
5557    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558    break 2
5559  fi
5560done
5561done
5562
5563  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5564fi
5565fi
5566have_automake=$ac_cv_prog_have_automake
5567if test -n "$have_automake"; then
5568  echo "$as_me:$LINENO: result: $have_automake" >&5
5569echo "${ECHO_T}$have_automake" >&6
5570else
5571  echo "$as_me:$LINENO: result: no" >&5
5572echo "${ECHO_T}no" >&6
5573fi
5574
5575    if test $have_automake = no; then
5576      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5577echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5578   { (exit 1); exit 1; }; }
5579    fi
5580
5581    # Check whether automake is the correct version
5582    correct_version='1.9.6'
5583    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5584    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5585echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5586    automake --version > confauto.out 2>&1
5587    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5588      echo "$as_me:$LINENO: result: yes" >&5
5589echo "${ECHO_T}yes" >&6
5590    else
5591      rm -f confauto.out
5592      echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5595echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5596   { (exit 1); exit 1; }; }
5597    fi
5598    rm -f confauto.out
5599
5600    # Check if the executable automake is picked up from the correct location
5601    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5602echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5603    automake_dir=`which automake | sed -e 's=/automake=='`
5604    automake_dir=`cd $automake_dir; pwd`
5605    if test x$AUTOTOOLS_DIR = x; then
5606      want_dir=$AUTOTOOLS_DFLT/bin
5607    else
5608      want_dir=$AUTOTOOLS_DIR/bin
5609    fi
5610    if test $automake_dir = `cd $want_dir; pwd`; then
5611      echo "$as_me:$LINENO: result: yes" >&5
5612echo "${ECHO_T}yes" >&6
5613    else
5614      rm -f confauto.out
5615      echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5618echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5619   { (exit 1); exit 1; }; }
5620    fi
5621
5622    # Check if this is the correct version of libtool (with escaped dots)
5623    if test x$AUTOTOOLS_DIR = x; then
5624      want_dir=$AUTOTOOLS_DFLT/share
5625    else
5626      want_dir=$AUTOTOOLS_DIR/share
5627    fi
5628    correct_version='1.5.22'
5629    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5630    if test -r $want_dir/libtool/ltmain.sh; then
5631  have_ltmain=yes
5632  :
5633else
5634  have_ltmain=no
5635  :
5636fi
5637
5638    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5639echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5640    if test $have_ltmain = yes; then
5641    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5642        echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644      else
5645        echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5648echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5649   { (exit 1); exit 1; }; }
5650      fi
5651    else
5652      echo "$as_me:$LINENO: result: no" >&5
5653echo "${ECHO_T}no" >&6
5654      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5655echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5656   { (exit 1); exit 1; }; }
5657    fi
5658  fi
5659
5660  # Check if we can find the libtool file
5661  if test x$AUTOTOOLS_DIR = x; then
5662    want_dir=$AUTOTOOLS_DFLT/share
5663  else
5664    want_dir=$AUTOTOOLS_DIR/share
5665  fi
5666  if test -r $want_dir/aclocal/libtool.m4; then
5667  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5668  :
5669else
5670  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5671echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5672   { (exit 1); exit 1; }; }
5673  :
5674fi
5675
5676
5677  # Check if we have an Externals file
5678  if test -r $srcdir/Externals; then
5679    coin_have_externals=yes
5680  fi
5681  # Check if subversion is installed and understands https
5682  # Extract the first word of "svn", so it can be a program name with args.
5683set dummy svn; ac_word=$2
5684echo "$as_me:$LINENO: checking for $ac_word" >&5
5685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686if test "${ac_cv_prog_have_svn+set}" = set; then
5687  echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689  if test -n "$have_svn"; then
5690  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695  IFS=$as_save_IFS
5696  test -z "$as_dir" && as_dir=.
5697  for ac_exec_ext in '' $ac_executable_extensions; do
5698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699    ac_cv_prog_have_svn="yes"
5700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701    break 2
5702  fi
5703done
5704done
5705
5706  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5707fi
5708fi
5709have_svn=$ac_cv_prog_have_svn
5710if test -n "$have_svn"; then
5711  echo "$as_me:$LINENO: result: $have_svn" >&5
5712echo "${ECHO_T}$have_svn" >&6
5713else
5714  echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
5716fi
5717
5718  if test x$have_svn = xyes; then
5719    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5720echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5721if test "${ac_cv_svn_understands_https+set}" = set; then
5722  echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724  svn --version > confauto.out 2>&1
5725                    if $EGREP https confauto.out >/dev/null 2>&1; then
5726                      ac_cv_svn_understands_https=yes
5727                    else
5728                      ac_cv_svn_understands_https=no
5729                      have_svn=no
5730                      ac_cv_prog_have_svn=no
5731                    fi
5732                    rm -f confauto.out
5733fi
5734echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5735echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5736  fi
5737
5738  # Find the location of the BuildTools directory
5739  BUILDTOOLSDIR=
5740  if test -r $srcdir/BuildTools/coin.m4; then
5741    BUILDTOOLSDIR=$srcdir/BuildTools
5742  else
5743    if test -r $srcdir/../BuildTools/coin.m4; then
5744      BUILDTOOLSDIR=$srcdir/../BuildTools
5745    else
5746      if test -r $srcdir/../../BuildTools/coin.m4; then
5747        BUILDTOOLSDIR=$srcdir/../../BuildTools
5748      else
5749        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5750echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5751   { (exit 1); exit 1; }; }
5752      fi
5753    fi
5754  fi
5755
5756
5757  # The following variable is set to the name of the directory where
5758  # the autotool scripts are located
5759
5760  AUX_DIR=$ac_aux_dir
5761fi
5762
5763# helpful variable for the base directory of this package
5764abs_source_dir=`cd $srcdir; pwd`
5765
5766
5767# Stuff for example Makefiles
5768if test x$prefix = xNONE; then
5769  full_prefix=$ac_default_prefix
5770else
5771  full_prefix=$prefix
5772fi
5773full_prefix=`cd $full_prefix ; pwd`
5774
5775abs_lib_dir=$full_prefix/lib
5776
5777abs_include_dir=$full_prefix/include
5778
5779abs_bin_dir=$full_prefix/bin
5780
5781
5782
5783if test $coin_have_externals = yes && test x$have_svn = xyes; then
5784  HAVE_EXTERNALS_TRUE=
5785  HAVE_EXTERNALS_FALSE='#'
5786else
5787  HAVE_EXTERNALS_TRUE='#'
5788  HAVE_EXTERNALS_FALSE=
5789fi
5790
5791
5792# AC_MSG_NOTICE([End automake initialisation.])
5793
5794
5795
5796LIBTOOL=
5797if test -r ../libtool; then
5798  coin_config_dir=..
5799  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5800fi
5801if test "x$LIBTOOL" = x; then
5802  if test -r ../../libtool; then
5803    coin_config_dir=../..
5804    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5805  fi
5806fi
5807
5808if test "x$LIBTOOL" = x; then
5809# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5810  # Stuff for libtool
5811  # Check whether --enable-shared or --disable-shared was given.
5812if test "${enable_shared+set}" = set; then
5813  enableval="$enable_shared"
5814  p=${PACKAGE-default}
5815    case $enableval in
5816    yes) enable_shared=yes ;;
5817    no) enable_shared=no ;;
5818    *)
5819      enable_shared=no
5820      # Look at the argument we got.  We use all the common list separators.
5821      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5822      for pkg in $enableval; do
5823        IFS="$lt_save_ifs"
5824        if test "X$pkg" = "X$p"; then
5825          enable_shared=yes
5826        fi
5827      done
5828      IFS="$lt_save_ifs"
5829      ;;
5830    esac
5831else
5832  enable_shared=yes
5833fi;
5834
5835# Check whether --enable-fast-install or --disable-fast-install was given.
5836if test "${enable_fast_install+set}" = set; then
5837  enableval="$enable_fast_install"
5838  p=${PACKAGE-default}
5839    case $enableval in
5840    yes) enable_fast_install=yes ;;
5841    no) enable_fast_install=no ;;
5842    *)
5843      enable_fast_install=no
5844      # Look at the argument we got.  We use all the common list separators.
5845      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5846      for pkg in $enableval; do
5847        IFS="$lt_save_ifs"
5848        if test "X$pkg" = "X$p"; then
5849          enable_fast_install=yes
5850        fi
5851      done
5852      IFS="$lt_save_ifs"
5853      ;;
5854    esac
5855else
5856  enable_fast_install=yes
5857fi;
5858
5859echo "$as_me:$LINENO: checking host system type" >&5
5860echo $ECHO_N "checking host system type... $ECHO_C" >&6
5861if test "${ac_cv_host+set}" = set; then
5862  echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864  ac_cv_host_alias=$host_alias
5865test -z "$ac_cv_host_alias" &&
5866  ac_cv_host_alias=$ac_cv_build_alias
5867ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5868  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5869echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5870   { (exit 1); exit 1; }; }
5871
5872fi
5873echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5874echo "${ECHO_T}$ac_cv_host" >&6
5875host=$ac_cv_host
5876host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5877host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5878host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5879
5880
5881echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5882echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5883if test "${lt_cv_path_SED+set}" = set; then
5884  echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886  # Loop through the user's path and test for sed and gsed.
5887# Then use that list of sed's as ones to test for truncation.
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891  IFS=$as_save_IFS
5892  test -z "$as_dir" && as_dir=.
5893  for lt_ac_prog in sed gsed; do
5894    for ac_exec_ext in '' $ac_executable_extensions; do
5895      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5896        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5897      fi
5898    done
5899  done
5900done
5901lt_ac_max=0
5902lt_ac_count=0
5903# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5904# along with /bin/sed that truncates output.
5905for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5906  test ! -f $lt_ac_sed && continue
5907  cat /dev/null > conftest.in
5908  lt_ac_count=0
5909  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5910  # Check for GNU sed and select it if it is found.
5911  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5912    lt_cv_path_SED=$lt_ac_sed
5913    break
5914  fi
5915  while true; do
5916    cat conftest.in conftest.in >conftest.tmp
5917    mv conftest.tmp conftest.in
5918    cp conftest.in conftest.nl
5919    echo >>conftest.nl
5920    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5921    cmp -s conftest.out conftest.nl || break
5922    # 10000 chars as input seems more than enough
5923    test $lt_ac_count -gt 10 && break
5924    lt_ac_count=`expr $lt_ac_count + 1`
5925    if test $lt_ac_count -gt $lt_ac_max; then
5926      lt_ac_max=$lt_ac_count
5927      lt_cv_path_SED=$lt_ac_sed
5928    fi
5929  done
5930done
5931
5932fi
5933
5934SED=$lt_cv_path_SED
5935echo "$as_me:$LINENO: result: $SED" >&5
5936echo "${ECHO_T}$SED" >&6
5937
5938
5939# Check whether --with-gnu-ld or --without-gnu-ld was given.
5940if test "${with_gnu_ld+set}" = set; then
5941  withval="$with_gnu_ld"
5942  test "$withval" = no || with_gnu_ld=yes
5943else
5944  with_gnu_ld=no
5945fi;
5946ac_prog=ld
5947if test "$GCC" = yes; then
5948  # Check if gcc -print-prog-name=ld gives a path.
5949  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5950echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5951  case $host in
5952  *-*-mingw*)
5953    # gcc leaves a trailing carriage return which upsets mingw
5954    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5955  *)
5956    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5957  esac
5958  case $ac_prog in
5959    # Accept absolute paths.
5960    [\\/]* | ?:[\\/]*)
5961      re_direlt='/[^/][^/]*/\.\./'
5962      # Canonicalize the pathname of ld
5963      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5964      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5965        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5966      done
5967      test -z "$LD" && LD="$ac_prog"
5968      ;;
5969  "")
5970    # If it fails, then pretend we aren't using GCC.
5971    ac_prog=ld
5972    ;;
5973  *)
5974    # If it is relative, then search for the first ld in PATH.
5975    with_gnu_ld=unknown
5976    ;;
5977  esac
5978elif test "$with_gnu_ld" = yes; then
5979  echo "$as_me:$LINENO: checking for GNU ld" >&5
5980echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5981else
5982  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5983echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5984fi
5985if test "${lt_cv_path_LD+set}" = set; then
5986  echo $ECHO_N "(cached) $ECHO_C" >&6
5987else
5988  if test -z "$LD"; then
5989  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5990  for ac_dir in $PATH; do
5991    IFS="$lt_save_ifs"
5992    test -z "$ac_dir" && ac_dir=.
5993    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5994      lt_cv_path_LD="$ac_dir/$ac_prog"
5995      # Check to see if the program is GNU ld.  I'd rather use --version,
5996      # but apparently some variants of GNU ld only accept -v.
5997      # Break only if it was the GNU/non-GNU ld that we prefer.
5998      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5999      *GNU* | *'with BFD'*)
6000        test "$with_gnu_ld" != no && break
6001        ;;
6002      *)
6003        test "$with_gnu_ld" != yes && break
6004        ;;
6005      esac
6006    fi
6007  done
6008  IFS="$lt_save_ifs"
6009else
6010  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6011fi
6012fi
6013
6014LD="$lt_cv_path_LD"
6015if test -n "$LD"; then
6016  echo "$as_me:$LINENO: result: $LD" >&5
6017echo "${ECHO_T}$LD" >&6
6018else
6019  echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6
6021fi
6022test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6023echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6024   { (exit 1); exit 1; }; }
6025echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6026echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6027if test "${lt_cv_prog_gnu_ld+set}" = set; then
6028  echo $ECHO_N "(cached) $ECHO_C" >&6
6029else
6030  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6031case `$LD -v 2>&1 </dev/null` in
6032*GNU* | *'with BFD'*)
6033  lt_cv_prog_gnu_ld=yes
6034  ;;
6035*)
6036  lt_cv_prog_gnu_ld=no
6037  ;;
6038esac
6039fi
6040echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6041echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6042with_gnu_ld=$lt_cv_prog_gnu_ld
6043
6044
6045echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6046echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6047if test "${lt_cv_ld_reload_flag+set}" = set; then
6048  echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050  lt_cv_ld_reload_flag='-r'
6051fi
6052echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6053echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6054reload_flag=$lt_cv_ld_reload_flag
6055case $reload_flag in
6056"" | " "*) ;;
6057*) reload_flag=" $reload_flag" ;;
6058esac
6059reload_cmds='$LD$reload_flag -o $output$reload_objs'
6060case $host_os in
6061  darwin*)
6062    if test "$GCC" = yes; then
6063      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6064    else
6065      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6066    fi
6067    ;;
6068esac
6069
6070echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6071echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6072if test "${lt_cv_path_NM+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075  if test -n "$NM"; then
6076  # Let the user override the test.
6077  lt_cv_path_NM="$NM"
6078else
6079  lt_nm_to_check="${ac_tool_prefix}nm"
6080  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6081    lt_nm_to_check="$lt_nm_to_check nm"
6082  fi
6083  for lt_tmp_nm in $lt_nm_to_check; do
6084    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6085    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6086      IFS="$lt_save_ifs"
6087      test -z "$ac_dir" && ac_dir=.
6088      tmp_nm="$ac_dir/$lt_tmp_nm"
6089      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6090        # Check to see if the nm accepts a BSD-compat flag.
6091        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6092        #   nm: unknown option "B" ignored
6093        # Tru64's nm complains that /dev/null is an invalid object file
6094        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6095        */dev/null* | *'Invalid file or object type'*)
6096          lt_cv_path_NM="$tmp_nm -B"
6097          break
6098          ;;
6099        *)
6100          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6101          */dev/null*)
6102            lt_cv_path_NM="$tmp_nm -p"
6103            break
6104            ;;
6105          *)
6106            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6107            continue # so that we can try to find one that supports BSD flags
6108            ;;
6109          esac
6110          ;;
6111        esac
6112      fi
6113    done
6114    IFS="$lt_save_ifs"
6115  done
6116  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6117fi
6118fi
6119echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6120echo "${ECHO_T}$lt_cv_path_NM" >&6
6121NM="$lt_cv_path_NM"
6122
6123echo "$as_me:$LINENO: checking whether ln -s works" >&5
6124echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6125LN_S=$as_ln_s
6126if test "$LN_S" = "ln -s"; then
6127  echo "$as_me:$LINENO: result: yes" >&5
6128echo "${ECHO_T}yes" >&6
6129else
6130  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6131echo "${ECHO_T}no, using $LN_S" >&6
6132fi
6133
6134echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6135echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6136if test "${lt_cv_deplibs_check_method+set}" = set; then
6137  echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139  lt_cv_file_magic_cmd='$MAGIC_CMD'
6140lt_cv_file_magic_test_file=
6141lt_cv_deplibs_check_method='unknown'
6142# Need to set the preceding variable on all platforms that support
6143# interlibrary dependencies.
6144# 'none' -- dependencies not supported.
6145# `unknown' -- same as none, but documents that we really don't know.
6146# 'pass_all' -- all dependencies passed with no checks.
6147# 'test_compile' -- check by making test program.
6148# 'file_magic [[regex]]' -- check by looking for files in library path
6149# which responds to the $file_magic_cmd with a given extended regex.
6150# If you have `file' or equivalent on your system and you're not sure
6151# whether `pass_all' will *always* work, you probably want this one.
6152
6153case $host_os in
6154aix4* | aix5*)
6155  lt_cv_deplibs_check_method=pass_all
6156  ;;
6157
6158beos*)
6159  lt_cv_deplibs_check_method=pass_all
6160  ;;
6161
6162bsdi[45]*)
6163  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6164  lt_cv_file_magic_cmd='/usr/bin/file -L'
6165  lt_cv_file_magic_test_file=/shlib/libc.so
6166  ;;
6167
6168cygwin*)
6169  # func_win32_libid is a shell function defined in ltmain.sh
6170  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6171  lt_cv_file_magic_cmd='func_win32_libid'
6172  ;;
6173
6174mingw* | pw32*)
6175  # Base MSYS/MinGW do not provide the 'file' command needed by
6176  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6177  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6178  lt_cv_file_magic_cmd='$OBJDUMP -f'
6179  ;;
6180
6181darwin* | rhapsody*)
6182  lt_cv_deplibs_check_method=pass_all
6183  ;;
6184
6185freebsd* | kfreebsd*-gnu | dragonfly*)
6186  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6187    case $host_cpu in
6188    i*86 )
6189      # Not sure whether the presence of OpenBSD here was a mistake.
6190      # Let's accept both of them until this is cleared up.
6191      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6192      lt_cv_file_magic_cmd=/usr/bin/file
6193      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6194      ;;
6195    esac
6196  else
6197    lt_cv_deplibs_check_method=pass_all
6198  fi
6199  ;;
6200
6201gnu*)
6202  lt_cv_deplibs_check_method=pass_all
6203  ;;
6204
6205hpux10.20* | hpux11*)
6206  lt_cv_file_magic_cmd=/usr/bin/file
6207  case $host_cpu in
6208  ia64*)
6209    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6210    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6211    ;;
6212  hppa*64*)
6213    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]'
6214    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6215    ;;
6216  *)
6217    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6218    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6219    ;;
6220  esac
6221  ;;
6222
6223interix3*)
6224  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6225  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6226  ;;
6227
6228irix5* | irix6* | nonstopux*)
6229  case $LD in
6230  *-32|*"-32 ") libmagic=32-bit;;
6231  *-n32|*"-n32 ") libmagic=N32;;
6232  *-64|*"-64 ") libmagic=64-bit;;
6233  *) libmagic=never-match;;
6234  esac
6235  lt_cv_deplibs_check_method=pass_all
6236  ;;
6237
6238# This must be Linux ELF.
6239linux*)
6240  lt_cv_deplibs_check_method=pass_all
6241  ;;
6242
6243netbsd*)
6244  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6245    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6246  else
6247    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6248  fi
6249  ;;
6250
6251newos6*)
6252  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6253  lt_cv_file_magic_cmd=/usr/bin/file
6254  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6255  ;;
6256
6257nto-qnx*)
6258  lt_cv_deplibs_check_method=unknown
6259  ;;
6260
6261openbsd*)
6262  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6263    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6264  else
6265    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6266  fi
6267  ;;
6268
6269osf3* | osf4* | osf5*)
6270  lt_cv_deplibs_check_method=pass_all
6271  ;;
6272
6273solaris*)
6274  lt_cv_deplibs_check_method=pass_all
6275  ;;
6276
6277sysv4 | sysv4.3*)
6278  case $host_vendor in
6279  motorola)
6280    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]'
6281    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6282    ;;
6283  ncr)
6284    lt_cv_deplibs_check_method=pass_all
6285    ;;
6286  sequent)
6287    lt_cv_file_magic_cmd='/bin/file'
6288    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6289    ;;
6290  sni)
6291    lt_cv_file_magic_cmd='/bin/file'
6292    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6293    lt_cv_file_magic_test_file=/lib/libc.so
6294    ;;
6295  siemens)
6296    lt_cv_deplibs_check_method=pass_all
6297    ;;
6298  pc)
6299    lt_cv_deplibs_check_method=pass_all
6300    ;;
6301  esac
6302  ;;
6303
6304sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307esac
6308
6309fi
6310echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6311echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6312file_magic_cmd=$lt_cv_file_magic_cmd
6313deplibs_check_method=$lt_cv_deplibs_check_method
6314test -z "$deplibs_check_method" && deplibs_check_method=unknown
6315
6316
6317
6318
6319# If no C compiler was specified, use CC.
6320LTCC=${LTCC-"$CC"}
6321
6322# If no C compiler flags were specified, use CFLAGS.
6323LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6324
6325# Allow CC to be a program name with arguments.
6326compiler=$CC
6327
6328# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6329if test "${enable_libtool_lock+set}" = set; then
6330  enableval="$enable_libtool_lock"
6331
6332fi;
6333test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6334
6335# Some flags need to be propagated to the compiler or linker for good
6336# libtool support.
6337case $host in
6338ia64-*-hpux*)
6339  # Find out which ABI we are using.
6340  echo 'int i;' > conftest.$ac_ext
6341  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342  (eval $ac_compile) 2>&5
6343  ac_status=$?
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); }; then
6346    case `/usr/bin/file conftest.$ac_objext` in
6347    *ELF-32*)
6348      HPUX_IA64_MODE="32"
6349      ;;
6350    *ELF-64*)
6351      HPUX_IA64_MODE="64"
6352      ;;
6353    esac
6354  fi
6355  rm -rf conftest*
6356  ;;
6357*-*-irix6*)
6358  # Find out which ABI we are using.
6359  echo '#line 6359 "configure"' > conftest.$ac_ext
6360  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361  (eval $ac_compile) 2>&5
6362  ac_status=$?
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); }; then
6365   if test "$lt_cv_prog_gnu_ld" = yes; then
6366    case `/usr/bin/file conftest.$ac_objext` in
6367    *32-bit*)
6368      LD="${LD-ld} -melf32bsmip"
6369      ;;
6370    *N32*)
6371      LD="${LD-ld} -melf32bmipn32"
6372      ;;
6373    *64-bit*)
6374      LD="${LD-ld} -melf64bmip"
6375      ;;
6376    esac
6377   else
6378    case `/usr/bin/file conftest.$ac_objext` in
6379    *32-bit*)
6380      LD="${LD-ld} -32"
6381      ;;
6382    *N32*)
6383      LD="${LD-ld} -n32"
6384      ;;
6385    *64-bit*)
6386      LD="${LD-ld} -64"
6387      ;;
6388    esac
6389   fi
6390  fi
6391  rm -rf conftest*
6392  ;;
6393
6394x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6395  # Find out which ABI we are using.
6396  echo 'int i;' > conftest.$ac_ext
6397  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398  (eval $ac_compile) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; then
6402    case `/usr/bin/file conftest.o` in
6403    *32-bit*)
6404      case $host in
6405        x86_64-*linux*)
6406          LD="${LD-ld} -m elf_i386"
6407          ;;
6408        ppc64-*linux*|powerpc64-*linux*)
6409          LD="${LD-ld} -m elf32ppclinux"
6410          ;;
6411        s390x-*linux*)
6412          LD="${LD-ld} -m elf_s390"
6413          ;;
6414        sparc64-*linux*)
6415          LD="${LD-ld} -m elf32_sparc"
6416          ;;
6417      esac
6418      ;;
6419    *64-bit*)
6420      case $host in
6421        x86_64-*linux*)
6422          LD="${LD-ld} -m elf_x86_64"
6423          ;;
6424        ppc*-*linux*|powerpc*-*linux*)
6425          LD="${LD-ld} -m elf64ppc"
6426          ;;
6427        s390*-*linux*)
6428          LD="${LD-ld} -m elf64_s390"
6429          ;;
6430        sparc*-*linux*)
6431          LD="${LD-ld} -m elf64_sparc"
6432          ;;
6433      esac
6434      ;;
6435    esac
6436  fi
6437  rm -rf conftest*
6438  ;;
6439
6440*-*-sco3.2v5*)
6441  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6442  SAVE_CFLAGS="$CFLAGS"
6443  CFLAGS="$CFLAGS -belf"
6444  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6445echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6446if test "${lt_cv_cc_needs_belf+set}" = set; then
6447  echo $ECHO_N "(cached) $ECHO_C" >&6
6448else
6449  ac_ext=c
6450ac_cpp='$CPP $CPPFLAGS'
6451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6453ac_compiler_gnu=$ac_cv_c_compiler_gnu
6454
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
6462#ifdef F77_DUMMY_MAIN
6463
6464#  ifdef __cplusplus
6465     extern "C"
6466#  endif
6467   int F77_DUMMY_MAIN() { return 1; }
6468
6469#endif
6470int
6471main ()
6472{
6473
6474  ;
6475  return 0;
6476}
6477_ACEOF
6478rm -f conftest.$ac_objext conftest$ac_exeext
6479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6480  (eval $ac_link) 2>conftest.er1
6481  ac_status=$?
6482  grep -v '^ *+' conftest.er1 >conftest.err
6483  rm -f conftest.er1
6484  cat conftest.err >&5
6485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486  (exit $ac_status); } &&
6487         { ac_try='test -z "$ac_c_werror_flag"
6488                         || test ! -s conftest.err'
6489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490  (eval $ac_try) 2>&5
6491  ac_status=$?
6492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493  (exit $ac_status); }; } &&
6494         { ac_try='test -s conftest$ac_exeext'
6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496  (eval $ac_try) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; }; then
6500  lt_cv_cc_needs_belf=yes
6501else
6502  echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505lt_cv_cc_needs_belf=no
6506fi
6507rm -f conftest.err conftest.$ac_objext \
6508      conftest$ac_exeext conftest.$ac_ext
6509     ac_ext=c
6510ac_cpp='$CPP $CPPFLAGS'
6511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6513ac_compiler_gnu=$ac_cv_c_compiler_gnu
6514
6515fi
6516echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6517echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6518  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6519    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6520    CFLAGS="$SAVE_CFLAGS"
6521  fi
6522  ;;
6523sparc*-*solaris*)
6524  # Find out which ABI we are using.
6525  echo 'int i;' > conftest.$ac_ext
6526  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6527  (eval $ac_compile) 2>&5
6528  ac_status=$?
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); }; then
6531    case `/usr/bin/file conftest.o` in
6532    *64-bit*)
6533      case $lt_cv_prog_gnu_ld in
6534      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6535      *)    LD="${LD-ld} -64" ;;
6536      esac
6537      ;;
6538    esac
6539  fi
6540  rm -rf conftest*
6541  ;;
6542
6543
6544esac
6545
6546need_locks="$enable_libtool_lock"
6547
6548
6549ac_ext=c
6550ac_cpp='$CPP $CPPFLAGS'
6551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553ac_compiler_gnu=$ac_cv_c_compiler_gnu
6554echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6555echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6556# On Suns, sometimes $CPP names a directory.
6557if test -n "$CPP" && test -d "$CPP"; then
6558  CPP=
6559fi
6560if test -z "$CPP"; then
6561  if test "${ac_cv_prog_CPP+set}" = set; then
6562  echo $ECHO_N "(cached) $ECHO_C" >&6
6563else
6564      # Double quotes because CPP needs to be expanded
6565    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6566    do
6567      ac_preproc_ok=false
6568for ac_c_preproc_warn_flag in '' yes
6569do
6570  # Use a header file that comes with gcc, so configuring glibc
6571  # with a fresh cross-compiler works.
6572  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6573  # <limits.h> exists even on freestanding compilers.
6574  # On the NeXT, cc -E runs the code through the compiler's parser,
6575  # not just through cpp. "Syntax error" is here to catch this case.
6576  cat >conftest.$ac_ext <<_ACEOF
6577/* confdefs.h.  */
6578_ACEOF
6579cat confdefs.h >>conftest.$ac_ext
6580cat >>conftest.$ac_ext <<_ACEOF
6581/* end confdefs.h.  */
6582#ifdef __STDC__
6583# include <limits.h>
6584#else
6585# include <assert.h>
6586#endif
6587                     Syntax error
6588_ACEOF
6589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6590  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6591  ac_status=$?
6592  grep -v '^ *+' conftest.er1 >conftest.err
6593  rm -f conftest.er1
6594  cat conftest.err >&5
6595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596  (exit $ac_status); } >/dev/null; then
6597  if test -s conftest.err; then
6598    ac_cpp_err=$ac_c_preproc_warn_flag
6599    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6600  else
6601    ac_cpp_err=
6602  fi
6603else
6604  ac_cpp_err=yes
6605fi
6606if test -z "$ac_cpp_err"; then
6607  :
6608else
6609  echo "$as_me: failed program was:" >&5
6610sed 's/^/| /' conftest.$ac_ext >&5
6611
6612  # Broken: fails on valid input.
6613continue
6614fi
6615rm -f conftest.err conftest.$ac_ext
6616
6617  # OK, works on sane cases.  Now check whether non-existent headers
6618  # can be detected and how.
6619  cat >conftest.$ac_ext <<_ACEOF
6620/* confdefs.h.  */
6621_ACEOF
6622cat confdefs.h >>conftest.$ac_ext
6623cat >>conftest.$ac_ext <<_ACEOF
6624/* end confdefs.h.  */
6625#include <ac_nonexistent.h>
6626_ACEOF
6627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6628  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6629  ac_status=$?
6630  grep -v '^ *+' conftest.er1 >conftest.err
6631  rm -f conftest.er1
6632  cat conftest.err >&5
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); } >/dev/null; then
6635  if test -s conftest.err; then
6636    ac_cpp_err=$ac_c_preproc_warn_flag
6637    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6638  else
6639    ac_cpp_err=
6640  fi
6641else
6642  ac_cpp_err=yes
6643fi
6644if test -z "$ac_cpp_err"; then
6645  # Broken: success on invalid input.
6646continue
6647else
6648  echo "$as_me: failed program was:" >&5
6649sed 's/^/| /' conftest.$ac_ext >&5
6650
6651  # Passes both tests.
6652ac_preproc_ok=:
6653break
6654fi
6655rm -f conftest.err conftest.$ac_ext
6656
6657done
6658# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6659rm -f conftest.err conftest.$ac_ext
6660if $ac_preproc_ok; then
6661  break
6662fi
6663
6664    done
6665    ac_cv_prog_CPP=$CPP
6666
6667fi
6668  CPP=$ac_cv_prog_CPP
6669else
6670  ac_cv_prog_CPP=$CPP
6671fi
6672echo "$as_me:$LINENO: result: $CPP" >&5
6673echo "${ECHO_T}$CPP" >&6
6674ac_preproc_ok=false
6675for ac_c_preproc_warn_flag in '' yes
6676do
6677  # Use a header file that comes with gcc, so configuring glibc
6678  # with a fresh cross-compiler works.
6679  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6680  # <limits.h> exists even on freestanding compilers.
6681  # On the NeXT, cc -E runs the code through the compiler's parser,
6682  # not just through cpp. "Syntax error" is here to catch this case.
6683  cat >conftest.$ac_ext <<_ACEOF
6684/* confdefs.h.  */
6685_ACEOF
6686cat confdefs.h >>conftest.$ac_ext
6687cat >>conftest.$ac_ext <<_ACEOF
6688/* end confdefs.h.  */
6689#ifdef __STDC__
6690# include <limits.h>
6691#else
6692# include <assert.h>
6693#endif
6694                     Syntax error
6695_ACEOF
6696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6697  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6698  ac_status=$?
6699  grep -v '^ *+' conftest.er1 >conftest.err
6700  rm -f conftest.er1
6701  cat conftest.err >&5
6702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703  (exit $ac_status); } >/dev/null; then
6704  if test -s conftest.err; then
6705    ac_cpp_err=$ac_c_preproc_warn_flag
6706    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6707  else
6708    ac_cpp_err=
6709  fi
6710else
6711  ac_cpp_err=yes
6712fi
6713if test -z "$ac_cpp_err"; then
6714  :
6715else
6716  echo "$as_me: failed program was:" >&5
6717sed 's/^/| /' conftest.$ac_ext >&5
6718
6719  # Broken: fails on valid input.
6720continue
6721fi
6722rm -f conftest.err conftest.$ac_ext
6723
6724  # OK, works on sane cases.  Now check whether non-existent headers
6725  # can be detected and how.
6726  cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h.  */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h.  */
6732#include <ac_nonexistent.h>
6733_ACEOF
6734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6736  ac_status=$?
6737  grep -v '^ *+' conftest.er1 >conftest.err
6738  rm -f conftest.er1
6739  cat conftest.err >&5
6740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741  (exit $ac_status); } >/dev/null; then
6742  if test -s conftest.err; then
6743    ac_cpp_err=$ac_c_preproc_warn_flag
6744    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6745  else
6746    ac_cpp_err=
6747  fi
6748else
6749  ac_cpp_err=yes
6750fi
6751if test -z "$ac_cpp_err"; then
6752  # Broken: success on invalid input.
6753continue
6754else
6755  echo "$as_me: failed program was:" >&5
6756sed 's/^/| /' conftest.$ac_ext >&5
6757
6758  # Passes both tests.
6759ac_preproc_ok=:
6760break
6761fi
6762rm -f conftest.err conftest.$ac_ext
6763
6764done
6765# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6766rm -f conftest.err conftest.$ac_ext
6767if $ac_preproc_ok; then
6768  :
6769else
6770  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6771See \`config.log' for more details." >&5
6772echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6773See \`config.log' for more details." >&2;}
6774   { (exit 1); exit 1; }; }
6775fi
6776
6777ac_ext=c
6778ac_cpp='$CPP $CPPFLAGS'
6779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6781ac_compiler_gnu=$ac_cv_c_compiler_gnu
6782
6783
6784echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6785echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6786if test "${ac_cv_header_stdc+set}" = set; then
6787  echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789  cat >conftest.$ac_ext <<_ACEOF
6790/* confdefs.h.  */
6791_ACEOF
6792cat confdefs.h >>conftest.$ac_ext
6793cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h.  */
6795#include <stdlib.h>
6796#include <stdarg.h>
6797#include <string.h>
6798#include <float.h>
6799
6800#ifdef F77_DUMMY_MAIN
6801
6802#  ifdef __cplusplus
6803     extern "C"
6804#  endif
6805   int F77_DUMMY_MAIN() { return 1; }
6806
6807#endif
6808int
6809main ()
6810{
6811
6812  ;
6813  return 0;
6814}
6815_ACEOF
6816rm -f conftest.$ac_objext
6817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818  (eval $ac_compile) 2>conftest.er1
6819  ac_status=$?
6820  grep -v '^ *+' conftest.er1 >conftest.err
6821  rm -f conftest.er1
6822  cat conftest.err >&5
6823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824  (exit $ac_status); } &&
6825         { ac_try='test -z "$ac_c_werror_flag"
6826                         || test ! -s conftest.err'
6827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828  (eval $ac_try) 2>&5
6829  ac_status=$?
6830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831  (exit $ac_status); }; } &&
6832         { ac_try='test -s conftest.$ac_objext'
6833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834  (eval $ac_try) 2>&5
6835  ac_status=$?
6836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837  (exit $ac_status); }; }; then
6838  ac_cv_header_stdc=yes
6839else
6840  echo "$as_me: failed program was:" >&5
6841sed 's/^/| /' conftest.$ac_ext >&5
6842
6843ac_cv_header_stdc=no
6844fi
6845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6846
6847if test $ac_cv_header_stdc = yes; then
6848  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6849  cat >conftest.$ac_ext <<_ACEOF
6850/* confdefs.h.  */
6851_ACEOF
6852cat confdefs.h >>conftest.$ac_ext
6853cat >>conftest.$ac_ext <<_ACEOF
6854/* end confdefs.h.  */
6855#include <string.h>
6856
6857_ACEOF
6858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6859  $EGREP "memchr" >/dev/null 2>&1; then
6860  :
6861else
6862  ac_cv_header_stdc=no
6863fi
6864rm -f conftest*
6865
6866fi
6867
6868if test $ac_cv_header_stdc = yes; then
6869  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6870  cat >conftest.$ac_ext <<_ACEOF
6871/* confdefs.h.  */
6872_ACEOF
6873cat confdefs.h >>conftest.$ac_ext
6874cat >>conftest.$ac_ext <<_ACEOF
6875/* end confdefs.h.  */
6876#include <stdlib.h>
6877
6878_ACEOF
6879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6880  $EGREP "free" >/dev/null 2>&1; then
6881  :
6882else
6883  ac_cv_header_stdc=no
6884fi
6885rm -f conftest*
6886
6887fi
6888
6889if test $ac_cv_header_stdc = yes; then
6890  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6891  if test "$cross_compiling" = yes; then
6892  :
6893else
6894  cat >conftest.$ac_ext <<_ACEOF
6895/* confdefs.h.  */
6896_ACEOF
6897cat confdefs.h >>conftest.$ac_ext
6898cat >>conftest.$ac_ext <<_ACEOF
6899/* end confdefs.h.  */
6900#include <ctype.h>
6901#if ((' ' & 0x0FF) == 0x020)
6902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6904#else
6905# define ISLOWER(c) \
6906                   (('a' <= (c) && (c) <= 'i') \
6907                     || ('j' <= (c) && (c) <= 'r') \
6908                     || ('s' <= (c) && (c) <= 'z'))
6909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6910#endif
6911
6912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6913int
6914main ()
6915{
6916  int i;
6917  for (i = 0; i < 256; i++)
6918    if (XOR (islower (i), ISLOWER (i))
6919        || toupper (i) != TOUPPER (i))
6920      exit(2);
6921  exit (0);
6922}
6923_ACEOF
6924rm -f conftest$ac_exeext
6925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6926  (eval $ac_link) 2>&5
6927  ac_status=$?
6928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6931  (eval $ac_try) 2>&5
6932  ac_status=$?
6933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934  (exit $ac_status); }; }; then
6935  :
6936else
6937  echo "$as_me: program exited with status $ac_status" >&5
6938echo "$as_me: failed program was:" >&5
6939sed 's/^/| /' conftest.$ac_ext >&5
6940
6941( exit $ac_status )
6942ac_cv_header_stdc=no
6943fi
6944rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6945fi
6946fi
6947fi
6948echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6949echo "${ECHO_T}$ac_cv_header_stdc" >&6
6950if test $ac_cv_header_stdc = yes; then
6951
6952cat >>confdefs.h <<\_ACEOF
6953#define STDC_HEADERS 1
6954_ACEOF
6955
6956fi
6957
6958# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6969                  inttypes.h stdint.h unistd.h
6970do
6971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6972echo "$as_me:$LINENO: checking for $ac_header" >&5
6973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6974if eval "test \"\${$as_ac_Header+set}\" = set"; then
6975  echo $ECHO_N "(cached) $ECHO_C" >&6
6976else
6977  cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h.  */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h.  */
6983$ac_includes_default
6984
6985#include <$ac_header>
6986_ACEOF
6987rm -f conftest.$ac_objext
6988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989  (eval $ac_compile) 2>conftest.er1
6990  ac_status=$?
6991  grep -v '^ *+' conftest.er1 >conftest.err
6992  rm -f conftest.er1
6993  cat conftest.err >&5
6994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995  (exit $ac_status); } &&
6996         { ac_try='test -z "$ac_c_werror_flag"
6997                         || test ! -s conftest.err'
6998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999  (eval $ac_try) 2>&5
7000  ac_status=$?
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); }; } &&
7003         { ac_try='test -s conftest.$ac_objext'
7004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005  (eval $ac_try) 2>&5
7006  ac_status=$?
7007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008  (exit $ac_status); }; }; then
7009  eval "$as_ac_Header=yes"
7010else
7011  echo "$as_me: failed program was:" >&5
7012sed 's/^/| /' conftest.$ac_ext >&5
7013
7014eval "$as_ac_Header=no"
7015fi
7016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7017fi
7018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7020if test `eval echo '${'$as_ac_Header'}'` = yes; then
7021  cat >>confdefs.h <<_ACEOF
7022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7023_ACEOF
7024
7025fi
7026
7027done
7028
7029
7030
7031for ac_header in dlfcn.h
7032do
7033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7034if eval "test \"\${$as_ac_Header+set}\" = set"; then
7035  echo "$as_me:$LINENO: checking for $ac_header" >&5
7036echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7037if eval "test \"\${$as_ac_Header+set}\" = set"; then
7038  echo $ECHO_N "(cached) $ECHO_C" >&6
7039fi
7040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7041echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7042else
7043  # Is the header compilable?
7044echo "$as_me:$LINENO: checking $ac_header usability" >&5
7045echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7046cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h.  */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h.  */
7052$ac_includes_default
7053#include <$ac_header>
7054_ACEOF
7055rm -f conftest.$ac_objext
7056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057  (eval $ac_compile) 2>conftest.er1
7058  ac_status=$?
7059  grep -v '^ *+' conftest.er1 >conftest.err
7060  rm -f conftest.er1
7061  cat conftest.err >&5
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); } &&
7064         { ac_try='test -z "$ac_c_werror_flag"
7065                         || test ! -s conftest.err'
7066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067  (eval $ac_try) 2>&5
7068  ac_status=$?
7069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070  (exit $ac_status); }; } &&
7071         { ac_try='test -s conftest.$ac_objext'
7072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073  (eval $ac_try) 2>&5
7074  ac_status=$?
7075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076  (exit $ac_status); }; }; then
7077  ac_header_compiler=yes
7078else
7079  echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5
7081
7082ac_header_compiler=no
7083fi
7084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7085echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7086echo "${ECHO_T}$ac_header_compiler" >&6
7087
7088# Is the header present?
7089echo "$as_me:$LINENO: checking $ac_header presence" >&5
7090echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7091cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h.  */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h.  */
7097#include <$ac_header>
7098_ACEOF
7099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7100  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7101  ac_status=$?
7102  grep -v '^ *+' conftest.er1 >conftest.err
7103  rm -f conftest.er1
7104  cat conftest.err >&5
7105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106  (exit $ac_status); } >/dev/null; then
7107  if test -s conftest.err; then
7108    ac_cpp_err=$ac_c_preproc_warn_flag
7109    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7110  else
7111    ac_cpp_err=
7112  fi
7113else
7114  ac_cpp_err=yes
7115fi
7116if test -z "$ac_cpp_err"; then
7117  ac_header_preproc=yes
7118else
7119  echo "$as_me: failed program was:" >&5
7120sed 's/^/| /' conftest.$ac_ext >&5
7121
7122  ac_header_preproc=no
7123fi
7124rm -f conftest.err conftest.$ac_ext
7125echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7126echo "${ECHO_T}$ac_header_preproc" >&6
7127
7128# So?  What about this header?
7129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7130  yes:no: )
7131    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7132echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7133    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7134echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7135    ac_header_preproc=yes
7136    ;;
7137  no:yes:* )
7138    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7139echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7140    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7141echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7142    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7143echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7144    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7145echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7146    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7147echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7148    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7149echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7150    (
7151      cat <<\_ASBOX
7152## --------------------------------------------------------------- ##
7153## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7154## --------------------------------------------------------------- ##
7155_ASBOX
7156    ) |
7157      sed "s/^/$as_me: WARNING:     /" >&2
7158    ;;
7159esac
7160echo "$as_me:$LINENO: checking for $ac_header" >&5
7161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7162if eval "test \"\${$as_ac_Header+set}\" = set"; then
7163  echo $ECHO_N "(cached) $ECHO_C" >&6
7164else
7165  eval "$as_ac_Header=\$ac_header_preproc"
7166fi
7167echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7168echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7169
7170fi
7171if test `eval echo '${'$as_ac_Header'}'` = yes; then
7172  cat >>confdefs.h <<_ACEOF
7173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7174_ACEOF
7175
7176fi
7177
7178done
7179
7180ac_ext=cc
7181ac_cpp='$CXXCPP $CPPFLAGS'
7182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7185if test -n "$ac_tool_prefix"; then
7186  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7187  do
7188    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7190echo "$as_me:$LINENO: checking for $ac_word" >&5
7191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7192if test "${ac_cv_prog_CXX+set}" = set; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195  if test -n "$CXX"; then
7196  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201  IFS=$as_save_IFS
7202  test -z "$as_dir" && as_dir=.
7203  for ac_exec_ext in '' $ac_executable_extensions; do
7204  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7206    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207    break 2
7208  fi
7209done
7210done
7211
7212fi
7213fi
7214CXX=$ac_cv_prog_CXX
7215if test -n "$CXX"; then
7216  echo "$as_me:$LINENO: result: $CXX" >&5
7217echo "${ECHO_T}$CXX" >&6
7218else
7219  echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
7221fi
7222
7223    test -n "$CXX" && break
7224  done
7225fi
7226if test -z "$CXX"; then
7227  ac_ct_CXX=$CXX
7228  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7229do
7230  # Extract the first word of "$ac_prog", so it can be a program name with args.
7231set dummy $ac_prog; ac_word=$2
7232echo "$as_me:$LINENO: checking for $ac_word" >&5
7233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7234if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7235  echo $ECHO_N "(cached) $ECHO_C" >&6
7236else
7237  if test -n "$ac_ct_CXX"; then
7238  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7239else
7240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241for as_dir in $PATH
7242do
7243  IFS=$as_save_IFS
7244  test -z "$as_dir" && as_dir=.
7245  for ac_exec_ext in '' $ac_executable_extensions; do
7246  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7247    ac_cv_prog_ac_ct_CXX="$ac_prog"
7248    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249    break 2
7250  fi
7251done
7252done
7253
7254fi
7255fi
7256ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7257if test -n "$ac_ct_CXX"; then
7258  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7259echo "${ECHO_T}$ac_ct_CXX" >&6
7260else
7261  echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263fi
7264
7265  test -n "$ac_ct_CXX" && break
7266done
7267test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7268
7269  CXX=$ac_ct_CXX
7270fi
7271
7272
7273# Provide some information about the compiler.
7274echo "$as_me:$LINENO:" \
7275     "checking for C++ compiler version" >&5
7276ac_compiler=`set X $ac_compile; echo $2`
7277{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7278  (eval $ac_compiler --version </dev/null >&5) 2>&5
7279  ac_status=$?
7280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281  (exit $ac_status); }
7282{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7283  (eval $ac_compiler -v </dev/null >&5) 2>&5
7284  ac_status=$?
7285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286  (exit $ac_status); }
7287{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7288  (eval $ac_compiler -V </dev/null >&5) 2>&5
7289  ac_status=$?
7290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291  (exit $ac_status); }
7292
7293echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7294echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7295if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7296  echo $ECHO_N "(cached) $ECHO_C" >&6
7297else
7298  cat >conftest.$ac_ext <<_ACEOF
7299/* confdefs.h.  */
7300_ACEOF
7301cat confdefs.h >>conftest.$ac_ext
7302cat >>conftest.$ac_ext <<_ACEOF
7303/* end confdefs.h.  */
7304
7305#ifdef F77_DUMMY_MAIN
7306
7307#  ifdef __cplusplus
7308     extern "C"
7309#  endif
7310   int F77_DUMMY_MAIN() { return 1; }
7311
7312#endif
7313int
7314main ()
7315{
7316#ifndef __GNUC__
7317       choke me
7318#endif
7319
7320  ;
7321  return 0;
7322}
7323_ACEOF
7324rm -f conftest.$ac_objext
7325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326  (eval $ac_compile) 2>conftest.er1
7327  ac_status=$?
7328  grep -v '^ *+' conftest.er1 >conftest.err
7329  rm -f conftest.er1
7330  cat conftest.err >&5
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); } &&
7333         { ac_try='test -z "$ac_cxx_werror_flag"
7334                         || test ! -s conftest.err'
7335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336  (eval $ac_try) 2>&5
7337  ac_status=$?
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); }; } &&
7340         { ac_try='test -s conftest.$ac_objext'
7341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342  (eval $ac_try) 2>&5
7343  ac_status=$?
7344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345  (exit $ac_status); }; }; then
7346  ac_compiler_gnu=yes
7347else
7348  echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351ac_compiler_gnu=no
7352fi
7353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7354ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7355
7356fi
7357echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7358echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7359GXX=`test $ac_compiler_gnu = yes && echo yes`
7360ac_test_CXXFLAGS=${CXXFLAGS+set}
7361ac_save_CXXFLAGS=$CXXFLAGS
7362CXXFLAGS="-g"
7363echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7364echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7365if test "${ac_cv_prog_cxx_g+set}" = set; then
7366  echo $ECHO_N "(cached) $ECHO_C" >&6
7367else
7368  cat >conftest.$ac_ext <<_ACEOF
7369/* confdefs.h.  */
7370_ACEOF
7371cat confdefs.h >>conftest.$ac_ext
7372cat >>conftest.$ac_ext <<_ACEOF
7373/* end confdefs.h.  */
7374
7375#ifdef F77_DUMMY_MAIN
7376
7377#  ifdef __cplusplus
7378     extern "C"
7379#  endif
7380   int F77_DUMMY_MAIN() { return 1; }
7381
7382#endif
7383int
7384main ()
7385{
7386
7387  ;
7388  return 0;
7389}
7390_ACEOF
7391rm -f conftest.$ac_objext
7392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7393  (eval $ac_compile) 2>conftest.er1
7394  ac_status=$?
7395  grep -v '^ *+' conftest.er1 >conftest.err
7396  rm -f conftest.er1
7397  cat conftest.err >&5
7398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399  (exit $ac_status); } &&
7400         { ac_try='test -z "$ac_cxx_werror_flag"
7401                         || test ! -s conftest.err'
7402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7403  (eval $ac_try) 2>&5
7404  ac_status=$?
7405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406  (exit $ac_status); }; } &&
7407         { ac_try='test -s conftest.$ac_objext'
7408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409  (eval $ac_try) 2>&5
7410  ac_status=$?
7411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412  (exit $ac_status); }; }; then
7413  ac_cv_prog_cxx_g=yes
7414else
7415  echo "$as_me: failed program was:" >&5
7416sed 's/^/| /' conftest.$ac_ext >&5
7417
7418ac_cv_prog_cxx_g=no
7419fi
7420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7421fi
7422echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7423echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7424if test "$ac_test_CXXFLAGS" = set; then
7425  CXXFLAGS=$ac_save_CXXFLAGS
7426elif test $ac_cv_prog_cxx_g = yes; then
7427  if test "$GXX" = yes; then
7428    CXXFLAGS="-g -O2"
7429  else
7430    CXXFLAGS="-g"
7431  fi
7432else
7433  if test "$GXX" = yes; then
7434    CXXFLAGS="-O2"
7435  else
7436    CXXFLAGS=
7437  fi
7438fi
7439for ac_declaration in \
7440   '' \
7441   'extern "C" void std::exit (int) throw (); using std::exit;' \
7442   'extern "C" void std::exit (int); using std::exit;' \
7443   'extern "C" void exit (int) throw ();' \
7444   'extern "C" void exit (int);' \
7445   'void exit (int);'
7446do
7447  cat >conftest.$ac_ext <<_ACEOF
7448/* confdefs.h.  */
7449_ACEOF
7450cat confdefs.h >>conftest.$ac_ext
7451cat >>conftest.$ac_ext <<_ACEOF
7452/* end confdefs.h.  */
7453$ac_declaration
7454#include <stdlib.h>
7455#ifdef F77_DUMMY_MAIN
7456
7457#  ifdef __cplusplus
7458     extern "C"
7459#  endif
7460   int F77_DUMMY_MAIN() { return 1; }
7461
7462#endif
7463int
7464main ()
7465{
7466exit (42);
7467  ;
7468  return 0;
7469}
7470_ACEOF
7471rm -f conftest.$ac_objext
7472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7473  (eval $ac_compile) 2>conftest.er1
7474  ac_status=$?
7475  grep -v '^ *+' conftest.er1 >conftest.err
7476  rm -f conftest.er1
7477  cat conftest.err >&5
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); } &&
7480         { ac_try='test -z "$ac_cxx_werror_flag"
7481                         || test ! -s conftest.err'
7482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483  (eval $ac_try) 2>&5
7484  ac_status=$?
7485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486  (exit $ac_status); }; } &&
7487         { ac_try='test -s conftest.$ac_objext'
7488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489  (eval $ac_try) 2>&5
7490  ac_status=$?
7491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492  (exit $ac_status); }; }; then
7493  :
7494else
7495  echo "$as_me: failed program was:" >&5
7496sed 's/^/| /' conftest.$ac_ext >&5
7497
7498continue
7499fi
7500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7501  cat >conftest.$ac_ext <<_ACEOF
7502/* confdefs.h.  */
7503_ACEOF
7504cat confdefs.h >>conftest.$ac_ext
7505cat >>conftest.$ac_ext <<_ACEOF
7506/* end confdefs.h.  */
7507$ac_declaration
7508#ifdef F77_DUMMY_MAIN
7509
7510#  ifdef __cplusplus
7511     extern "C"
7512#  endif
7513   int F77_DUMMY_MAIN() { return 1; }
7514
7515#endif
7516int
7517main ()
7518{
7519exit (42);
7520  ;
7521  return 0;
7522}
7523_ACEOF
7524rm -f conftest.$ac_objext
7525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7526  (eval $ac_compile) 2>conftest.er1
7527  ac_status=$?
7528  grep -v '^ *+' conftest.er1 >conftest.err
7529  rm -f conftest.er1
7530  cat conftest.err >&5
7531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532  (exit $ac_status); } &&
7533         { ac_try='test -z "$ac_cxx_werror_flag"
7534                         || test ! -s conftest.err'
7535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536  (eval $ac_try) 2>&5
7537  ac_status=$?
7538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539  (exit $ac_status); }; } &&
7540         { ac_try='test -s conftest.$ac_objext'
7541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542  (eval $ac_try) 2>&5
7543  ac_status=$?
7544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545  (exit $ac_status); }; }; then
7546  break
7547else
7548  echo "$as_me: failed program was:" >&5
7549sed 's/^/| /' conftest.$ac_ext >&5
7550
7551fi
7552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7553done
7554rm -f conftest*
7555if test -n "$ac_declaration"; then
7556  echo '#ifdef __cplusplus' >>confdefs.h
7557  echo $ac_declaration      >>confdefs.h
7558  echo '#endif'             >>confdefs.h
7559fi
7560
7561ac_ext=cc
7562ac_cpp='$CXXCPP $CPPFLAGS'
7563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7566
7567depcc="$CXX"  am_compiler_list=
7568
7569echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7570echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
7571if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7572  echo $ECHO_N "(cached) $ECHO_C" >&6
7573else
7574  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7575  # We make a subdir and do the tests there.  Otherwise we can end up
7576  # making bogus files that we don't know about and never remove.  For
7577  # instance it was reported that on HP-UX the gcc test will end up
7578  # making a dummy file named `D' -- because `-MD' means `put the output
7579  # in D'.
7580  mkdir conftest.dir
7581  # Copy depcomp to subdir because otherwise we won't find it if we're
7582  # using a relative directory.
7583  cp "$am_depcomp" conftest.dir
7584  cd conftest.dir
7585  # We will build objects and dependencies in a subdirectory because
7586  # it helps to detect inapplicable dependency modes.  For instance
7587  # both Tru64's cc and ICC support -MD to output dependencies as a
7588  # side effect of compilation, but ICC will put the dependencies in
7589  # the current directory while Tru64 will put them in the object
7590  # directory.
7591  mkdir sub
7592
7593  am_cv_CXX_dependencies_compiler_type=none
7594  if test "$am_compiler_list" = ""; then
7595     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7596  fi
7597  for depmode in $am_compiler_list; do
7598    # Setup a source with many dependencies, because some compilers
7599    # like to wrap large dependency lists on column 80 (with \), and
7600    # we should not choose a depcomp mode which is confused by this.
7601    #
7602    # We need to recreate these files for each test, as the compiler may
7603    # overwrite some of them when testing with obscure command lines.
7604    # This happens at least with the AIX C compiler.
7605    : > sub/conftest.c
7606    for i in 1 2 3 4 5 6; do
7607      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7608      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7609      # Solaris 8's {/usr,}/bin/sh.
7610      touch sub/conftst$i.h
7611    done
7612    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7613
7614    case $depmode in
7615    nosideeffect)
7616      # after this tag, mechanisms are not by side-effect, so they'll
7617      # only be used when explicitly requested
7618      if test "x$enable_dependency_tracking" = xyes; then
7619        continue
7620      else
7621        break
7622      fi
7623      ;;
7624    none) break ;;
7625    esac
7626    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7627    # mode.  It turns out that the SunPro C++ compiler does not properly
7628    # handle `-M -o', and we need to detect this.
7629    if depmode=$depmode \
7630       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7631       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7632       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7633         >/dev/null 2>conftest.err &&
7634       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7635       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7636       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7637      # icc doesn't choke on unknown options, it will just issue warnings
7638      # or remarks (even with -Werror).  So we grep stderr for any message
7639      # that says an option was ignored or not supported.
7640      # When given -MP, icc 7.0 and 7.1 complain thusly:
7641      #   icc: Command line warning: ignoring option '-M'; no argument required
7642      # The diagnosis changed in icc 8.0:
7643      #   icc: Command line remark: option '-MP' not supported
7644      if (grep 'ignoring option' conftest.err ||
7645          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7646        am_cv_CXX_dependencies_compiler_type=$depmode
7647        break
7648      fi
7649    fi
7650  done
7651
7652  cd ..
7653  rm -rf conftest.dir
7654else
7655  am_cv_CXX_dependencies_compiler_type=none
7656fi
7657
7658fi
7659echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7660echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7661CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7662
7663
7664
7665if
7666  test "x$enable_dependency_tracking" != xno \
7667  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7668  am__fastdepCXX_TRUE=
7669  am__fastdepCXX_FALSE='#'
7670else
7671  am__fastdepCXX_TRUE='#'
7672  am__fastdepCXX_FALSE=
7673fi
7674
7675
7676
7677
7678if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7679    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7680    (test "X$CXX" != "Xg++"))) ; then
7681  ac_ext=cc
7682ac_cpp='$CXXCPP $CPPFLAGS'
7683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7686echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7687echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7688if test -z "$CXXCPP"; then
7689  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7690  echo $ECHO_N "(cached) $ECHO_C" >&6
7691else
7692      # Double quotes because CXXCPP needs to be expanded
7693    for CXXCPP in "$CXX -E" "/lib/cpp"
7694    do
7695      ac_preproc_ok=false
7696for ac_cxx_preproc_warn_flag in '' yes
7697do
7698  # Use a header file that comes with gcc, so configuring glibc
7699  # with a fresh cross-compiler works.
7700  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7701  # <limits.h> exists even on freestanding compilers.
7702  # On the NeXT, cc -E runs the code through the compiler's parser,
7703  # not just through cpp. "Syntax error" is here to catch this case.
7704  cat >conftest.$ac_ext <<_ACEOF
7705/* confdefs.h.  */
7706_ACEOF
7707cat confdefs.h >>conftest.$ac_ext
7708cat >>conftest.$ac_ext <<_ACEOF
7709/* end confdefs.h.  */
7710#ifdef __STDC__
7711# include <limits.h>
7712#else
7713# include <assert.h>
7714#endif
7715                     Syntax error
7716_ACEOF
7717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7718  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7719  ac_status=$?
7720  grep -v '^ *+' conftest.er1 >conftest.err
7721  rm -f conftest.er1
7722  cat conftest.err >&5
7723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724  (exit $ac_status); } >/dev/null; then
7725  if test -s conftest.err; then
7726    ac_cpp_err=$ac_cxx_preproc_warn_flag
7727    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7728  else
7729    ac_cpp_err=
7730  fi
7731else
7732  ac_cpp_err=yes
7733fi
7734if test -z "$ac_cpp_err"; then
7735  :
7736else
7737  echo "$as_me: failed program was:" >&5
7738sed 's/^/| /' conftest.$ac_ext >&5
7739
7740  # Broken: fails on valid input.
7741continue
7742fi
7743rm -f conftest.err conftest.$ac_ext
7744
7745  # OK, works on sane cases.  Now check whether non-existent headers
7746  # can be detected and how.
7747  cat >conftest.$ac_ext <<_ACEOF
7748/* confdefs.h.  */
7749_ACEOF
7750cat confdefs.h >>conftest.$ac_ext
7751cat >>conftest.$ac_ext <<_ACEOF
7752/* end confdefs.h.  */
7753#include <ac_nonexistent.h>
7754_ACEOF
7755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7756  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7757  ac_status=$?
7758  grep -v '^ *+' conftest.er1 >conftest.err
7759  rm -f conftest.er1
7760  cat conftest.err >&5
7761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762  (exit $ac_status); } >/dev/null; then
7763  if test -s conftest.err; then
7764    ac_cpp_err=$ac_cxx_preproc_warn_flag
7765    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7766  else
7767    ac_cpp_err=
7768  fi
7769else
7770  ac_cpp_err=yes
7771fi
7772if test -z "$ac_cpp_err"; then
7773  # Broken: success on invalid input.
7774continue
7775else
7776  echo "$as_me: failed program was:" >&5
7777sed 's/^/| /' conftest.$ac_ext >&5
7778
7779  # Passes both tests.
7780ac_preproc_ok=:
7781break
7782fi
7783rm -f conftest.err conftest.$ac_ext
7784
7785done
7786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7787rm -f conftest.err conftest.$ac_ext
7788if $ac_preproc_ok; then
7789  break
7790fi
7791
7792    done
7793    ac_cv_prog_CXXCPP=$CXXCPP
7794
7795fi
7796  CXXCPP=$ac_cv_prog_CXXCPP
7797else
7798  ac_cv_prog_CXXCPP=$CXXCPP
7799fi
7800echo "$as_me:$LINENO: result: $CXXCPP" >&5
7801echo "${ECHO_T}$CXXCPP" >&6
7802ac_preproc_ok=false
7803for ac_cxx_preproc_warn_flag in '' yes
7804do
7805  # Use a header file that comes with gcc, so configuring glibc
7806  # with a fresh cross-compiler works.
7807  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7808  # <limits.h> exists even on freestanding compilers.
7809  # On the NeXT, cc -E runs the code through the compiler's parser,
7810  # not just through cpp. "Syntax error" is here to catch this case.
7811  cat >conftest.$ac_ext <<_ACEOF
7812/* confdefs.h.  */
7813_ACEOF
7814cat confdefs.h >>conftest.$ac_ext
7815cat >>conftest.$ac_ext <<_ACEOF
7816/* end confdefs.h.  */
7817#ifdef __STDC__
7818# include <limits.h>
7819#else
7820# include <assert.h>
7821#endif
7822                     Syntax error
7823_ACEOF
7824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7825  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7826  ac_status=$?
7827  grep -v '^ *+' conftest.er1 >conftest.err
7828  rm -f conftest.er1
7829  cat conftest.err >&5
7830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831  (exit $ac_status); } >/dev/null; then
7832  if test -s conftest.err; then
7833    ac_cpp_err=$ac_cxx_preproc_warn_flag
7834    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7835  else
7836    ac_cpp_err=
7837  fi
7838else
7839  ac_cpp_err=yes
7840fi
7841if test -z "$ac_cpp_err"; then
7842  :
7843else
7844  echo "$as_me: failed program was:" >&5
7845sed 's/^/| /' conftest.$ac_ext >&5
7846
7847  # Broken: fails on valid input.
7848continue
7849fi
7850rm -f conftest.err conftest.$ac_ext
7851
7852  # OK, works on sane cases.  Now check whether non-existent headers
7853  # can be detected and how.
7854  cat >conftest.$ac_ext <<_ACEOF
7855/* confdefs.h.  */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h.  */
7860#include <ac_nonexistent.h>
7861_ACEOF
7862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7863  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7864  ac_status=$?
7865  grep -v '^ *+' conftest.er1 >conftest.err
7866  rm -f conftest.er1
7867  cat conftest.err >&5
7868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869  (exit $ac_status); } >/dev/null; then
7870  if test -s conftest.err; then
7871    ac_cpp_err=$ac_cxx_preproc_warn_flag
7872    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7873  else
7874    ac_cpp_err=
7875  fi
7876else
7877  ac_cpp_err=yes
7878fi
7879if test -z "$ac_cpp_err"; then
7880  # Broken: success on invalid input.
7881continue
7882else
7883  echo "$as_me: failed program was:" >&5
7884sed 's/^/| /' conftest.$ac_ext >&5
7885
7886  # Passes both tests.
7887ac_preproc_ok=:
7888break
7889fi
7890rm -f conftest.err conftest.$ac_ext
7891
7892done
7893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7894rm -f conftest.err conftest.$ac_ext
7895if $ac_preproc_ok; then
7896  :
7897else
7898  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7899See \`config.log' for more details." >&5
7900echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7901See \`config.log' for more details." >&2;}
7902   { (exit 1); exit 1; }; }
7903fi
7904
7905ac_ext=cc
7906ac_cpp='$CXXCPP $CPPFLAGS'
7907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7910
7911fi
7912
7913
7914
7915# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7916
7917# find the maximum length of command line arguments
7918echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7919echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7920if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7921  echo $ECHO_N "(cached) $ECHO_C" >&6
7922else
7923    i=0
7924  teststring="ABCD"
7925
7926  case $build_os in
7927  msdosdjgpp*)
7928    # On DJGPP, this test can blow up pretty badly due to problems in libc
7929    # (any single argument exceeding 2000 bytes causes a buffer overrun
7930    # during glob expansion).  Even if it were fixed, the result of this
7931    # check would be larger than it should be.
7932    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7933    ;;
7934
7935  gnu*)
7936    # Under GNU Hurd, this test is not required because there is
7937    # no limit to the length of command line arguments.
7938    # Libtool will interpret -1 as no limit whatsoever
7939    lt_cv_sys_max_cmd_len=-1;
7940    ;;
7941
7942  cygwin* | mingw*)
7943    # On Win9x/ME, this test blows up -- it succeeds, but takes
7944    # about 5 minutes as the teststring grows exponentially.
7945    # Worse, since 9x/ME are not pre-emptively multitasking,
7946    # you end up with a "frozen" computer, even though with patience
7947    # the test eventually succeeds (with a max line length of 256k).
7948    # Instead, let's just punt: use the minimum linelength reported by
7949    # all of the supported platforms: 8192 (on NT/2K/XP).
7950    lt_cv_sys_max_cmd_len=8192;
7951    ;;
7952
7953  amigaos*)
7954    # On AmigaOS with pdksh, this test takes hours, literally.
7955    # So we just punt and use a minimum line length of 8192.
7956    lt_cv_sys_max_cmd_len=8192;
7957    ;;
7958
7959  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7960    # This has been around since 386BSD, at least.  Likely further.
7961    if test -x /sbin/sysctl; then
7962      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7963    elif test -x /usr/sbin/sysctl; then
7964      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7965    else
7966      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7967    fi
7968    # And add a safety zone
7969    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7970    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7971    ;;
7972
7973  interix*)
7974    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7975    lt_cv_sys_max_cmd_len=196608
7976    ;;
7977
7978  osf*)
7979    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7980    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7981    # nice to cause kernel panics so lets avoid the loop below.
7982    # First set a reasonable default.
7983    lt_cv_sys_max_cmd_len=16384
7984    #
7985    if test -x /sbin/sysconfig; then
7986      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7987        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7988      esac
7989    fi
7990    ;;
7991  sco3.2v5*)
7992    lt_cv_sys_max_cmd_len=102400
7993    ;;
7994  sysv5* | sco5v6* | sysv4.2uw2*)
7995    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7996    if test -n "$kargmax"; then
7997      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7998    else
7999      lt_cv_sys_max_cmd_len=32768
8000    fi
8001    ;;
8002  *)
8003    # If test is not a shell built-in, we'll probably end up computing a
8004    # maximum length that is only half of the actual maximum length, but
8005    # we can't tell.
8006    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8007    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8008               = "XX$teststring") >/dev/null 2>&1 &&
8009            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8010            lt_cv_sys_max_cmd_len=$new_result &&
8011            test $i != 17 # 1/2 MB should be enough
8012    do
8013      i=`expr $i + 1`
8014      teststring=$teststring$teststring
8015    done
8016    teststring=
8017    # Add a significant safety factor because C++ compilers can tack on massive
8018    # amounts of additional arguments before passing them to the linker.
8019    # It appears as though 1/2 is a usable value.
8020    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8021    ;;
8022  esac
8023
8024fi
8025
8026if test -n $lt_cv_sys_max_cmd_len ; then
8027  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8028echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8029else
8030  echo "$as_me:$LINENO: result: none" >&5
8031echo "${ECHO_T}none" >&6
8032fi
8033
8034
8035
8036
8037# Check for command to grab the raw symbol name followed by C symbol from nm.
8038echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8039echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8040if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8041  echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043
8044# These are sane defaults that work on at least a few old systems.
8045# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8046
8047# Character class describing NM global symbol codes.
8048symcode='[BCDEGRST]'
8049
8050# Regexp to match symbols that can be accessed directly from C.
8051sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8052
8053# Transform an extracted symbol line into a proper C declaration
8054lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8055
8056# Transform an extracted symbol line into symbol name and symbol address
8057lt_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'"
8058
8059# Define system-specific variables.
8060case $host_os in
8061aix*)
8062  symcode='[BCDT]'
8063  ;;
8064cygwin* | mingw* | pw32*)
8065  symcode='[ABCDGISTW]'
8066  ;;
8067hpux*) # Its linker distinguishes data from code symbols
8068  if test "$host_cpu" = ia64; then
8069    symcode='[ABCDEGRST]'
8070  fi
8071  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8072  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'"
8073  ;;
8074linux*)
8075  if test "$host_cpu" = ia64; then
8076    symcode='[ABCDGIRSTW]'
8077    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8078    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'"
8079  fi
8080  ;;
8081irix* | nonstopux*)
8082  symcode='[BCDEGRST]'
8083  ;;
8084osf*)
8085  symcode='[BCDEGQRST]'
8086  ;;
8087solaris*)
8088  symcode='[BDRT]'
8089  ;;
8090sco3.2v5*)
8091  symcode='[DT]'
8092  ;;
8093sysv4.2uw2*)
8094  symcode='[DT]'
8095  ;;
8096sysv5* | sco5v6* | unixware* | OpenUNIX*)
8097  symcode='[ABDT]'
8098  ;;
8099sysv4)
8100  symcode='[DFNSTU]'
8101  ;;
8102esac
8103
8104# Handle CRLF in mingw tool chain
8105opt_cr=
8106case $build_os in
8107mingw*)
8108  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8109  ;;
8110esac
8111
8112# If we're using GNU nm, then use its standard symbol codes.
8113case `$NM -V 2>&1` in
8114*GNU* | *'with BFD'*)
8115  symcode='[ABCDGIRSTW]' ;;
8116esac
8117
8118# Try without a prefix undercore, then with it.
8119for ac_symprfx in "" "_"; do
8120
8121  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8122  symxfrm="\\1 $ac_symprfx\\2 \\2"
8123
8124  # Write the raw and C identifiers.
8125  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8126
8127  # Check to see that the pipe works correctly.
8128  pipe_works=no
8129
8130  rm -f conftest*
8131  cat > conftest.$ac_ext <<EOF
8132#ifdef __cplusplus
8133extern "C" {
8134#endif
8135char nm_test_var;
8136void nm_test_func(){}
8137#ifdef __cplusplus
8138}
8139#endif
8140int main(){nm_test_var='a';nm_test_func();return(0);}
8141EOF
8142
8143  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8144  (eval $ac_compile) 2>&5
8145  ac_status=$?
8146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147  (exit $ac_status); }; then
8148    # Now try to grab the symbols.
8149    nlist=conftest.nm
8150    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8151  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8152  ac_status=$?
8153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154  (exit $ac_status); } && test -s "$nlist"; then
8155      # Try sorting and uniquifying the output.
8156      if sort "$nlist" | uniq > "$nlist"T; then
8157        mv -f "$nlist"T "$nlist"
8158      else
8159        rm -f "$nlist"T
8160      fi
8161
8162      # Make sure that we snagged all the symbols we need.
8163      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8164        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8165          cat <<EOF > conftest.$ac_ext
8166#ifdef __cplusplus
8167extern "C" {
8168#endif
8169
8170EOF
8171          # Now generate the symbol file.
8172          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8173
8174          cat <<EOF >> conftest.$ac_ext
8175#if defined (__STDC__) && __STDC__
8176# define lt_ptr_t void *
8177#else
8178# define lt_ptr_t char *
8179# define const
8180#endif
8181
8182/* The mapping between symbol names and symbols. */
8183const struct {
8184  const char *name;
8185  lt_ptr_t address;
8186}
8187lt_preloaded_symbols[] =
8188{
8189EOF
8190          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8191          cat <<\EOF >> conftest.$ac_ext
8192  {0, (lt_ptr_t) 0}
8193};
8194
8195#ifdef __cplusplus
8196}
8197#endif
8198EOF
8199          # Now try linking the two files.
8200          mv conftest.$ac_objext conftstm.$ac_objext
8201          lt_save_LIBS="$LIBS"
8202          lt_save_CFLAGS="$CFLAGS"
8203          LIBS="conftstm.$ac_objext"
8204          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8205          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8206  (eval $ac_link) 2>&5
8207  ac_status=$?
8208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8210            pipe_works=yes
8211          fi
8212          LIBS="$lt_save_LIBS"
8213          CFLAGS="$lt_save_CFLAGS"
8214        else
8215          echo "cannot find nm_test_func in $nlist" >&5
8216        fi
8217      else
8218        echo "cannot find nm_test_var in $nlist" >&5
8219      fi
8220    else
8221      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8222    fi
8223  else
8224    echo "$progname: failed program was:" >&5
8225    cat conftest.$ac_ext >&5
8226  fi
8227  rm -f conftest* conftst*
8228
8229  # Do not use the global_symbol_pipe unless it works.
8230  if test "$pipe_works" = yes; then
8231    break
8232  else
8233    lt_cv_sys_global_symbol_pipe=
8234  fi
8235done
8236
8237fi
8238
8239if test -z "$lt_cv_sys_global_symbol_pipe"; then
8240  lt_cv_sys_global_symbol_to_cdecl=
8241fi
8242if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8243  echo "$as_me:$LINENO: result: failed" >&5
8244echo "${ECHO_T}failed" >&6
8245else
8246  echo "$as_me:$LINENO: result: ok" >&5
8247echo "${ECHO_T}ok" >&6
8248fi
8249
8250echo "$as_me:$LINENO: checking for objdir" >&5
8251echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8252if test "${lt_cv_objdir+set}" = set; then
8253  echo $ECHO_N "(cached) $ECHO_C" >&6
8254else
8255  rm -f .libs 2>/dev/null
8256mkdir .libs 2>/dev/null
8257if test -d .libs; then
8258  lt_cv_objdir=.libs
8259else
8260  # MS-DOS does not allow filenames that begin with a dot.
8261  lt_cv_objdir=_libs
8262fi
8263rmdir .libs 2>/dev/null
8264fi
8265echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8266echo "${ECHO_T}$lt_cv_objdir" >&6
8267objdir=$lt_cv_objdir
8268
8269
8270
8271
8272
8273case $host_os in
8274aix3*)
8275  # AIX sometimes has problems with the GCC collect2 program.  For some
8276  # reason, if we set the COLLECT_NAMES environment variable, the problems
8277  # vanish in a puff of smoke.
8278  if test "X${COLLECT_NAMES+set}" != Xset; then
8279    COLLECT_NAMES=
8280    export COLLECT_NAMES
8281  fi
8282  ;;
8283esac
8284
8285# Sed substitution that helps us do robust quoting.  It backslashifies
8286# metacharacters that are still active within double-quoted strings.
8287Xsed='sed -e 1s/^X//'
8288sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8289
8290# Same as above, but do not quote variable references.
8291double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8292
8293# Sed substitution to delay expansion of an escaped shell variable in a
8294# double_quote_subst'ed string.
8295delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8296
8297# Sed substitution to avoid accidental globbing in evaled expressions
8298no_glob_subst='s/\*/\\\*/g'
8299
8300# Constants:
8301rm="rm -f"
8302
8303# Global variables:
8304default_ofile=libtool
8305can_build_shared=yes
8306
8307# All known linkers require a `.a' archive for static linking (except MSVC,
8308# which needs '.lib').
8309libext=a
8310ltmain="$ac_aux_dir/ltmain.sh"
8311ofile="$default_ofile"
8312with_gnu_ld="$lt_cv_prog_gnu_ld"
8313
8314if test -n "$ac_tool_prefix"; then
8315  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8316set dummy ${ac_tool_prefix}ar; ac_word=$2
8317echo "$as_me:$LINENO: checking for $ac_word" >&5
8318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8319if test "${ac_cv_prog_AR+set}" = set; then
8320  echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322  if test -n "$AR"; then
8323  ac_cv_prog_AR="$AR" # Let the user override the test.
8324else
8325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326for as_dir in $PATH
8327do
8328  IFS=$as_save_IFS
8329  test -z "$as_dir" && as_dir=.
8330  for ac_exec_ext in '' $ac_executable_extensions; do
8331  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332    ac_cv_prog_AR="${ac_tool_prefix}ar"
8333    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8334    break 2
8335  fi
8336done
8337done
8338
8339fi
8340fi
8341AR=$ac_cv_prog_AR
8342if test -n "$AR"; then
8343  echo "$as_me:$LINENO: result: $AR" >&5
8344echo "${ECHO_T}$AR" >&6
8345else
8346  echo "$as_me:$LINENO: result: no" >&5
8347echo "${ECHO_T}no" >&6
8348fi
8349
8350fi
8351if test -z "$ac_cv_prog_AR"; then
8352  ac_ct_AR=$AR
8353  # Extract the first word of "ar", so it can be a program name with args.
8354set dummy ar; ac_word=$2
8355echo "$as_me:$LINENO: checking for $ac_word" >&5
8356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8357if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8358  echo $ECHO_N "(cached) $ECHO_C" >&6
8359else
8360  if test -n "$ac_ct_AR"; then
8361  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8362else
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366  IFS=$as_save_IFS
8367  test -z "$as_dir" && as_dir=.
8368  for ac_exec_ext in '' $ac_executable_extensions; do
8369  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8370    ac_cv_prog_ac_ct_AR="ar"
8371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8372    break 2
8373  fi
8374done
8375done
8376
8377  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8378fi
8379fi
8380ac_ct_AR=$ac_cv_prog_ac_ct_AR
8381if test -n "$ac_ct_AR"; then
8382  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8383echo "${ECHO_T}$ac_ct_AR" >&6
8384else
8385  echo "$as_me:$LINENO: result: no" >&5
8386echo "${ECHO_T}no" >&6
8387fi
8388
8389  AR=$ac_ct_AR
8390else
8391  AR="$ac_cv_prog_AR"
8392fi
8393
8394if test -n "$ac_tool_prefix"; then
8395  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8396set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8397echo "$as_me:$LINENO: checking for $ac_word" >&5
8398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8399if test "${ac_cv_prog_RANLIB+set}" = set; then
8400  echo $ECHO_N "(cached) $ECHO_C" >&6
8401else
8402  if test -n "$RANLIB"; then
8403  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8404else
8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408  IFS=$as_save_IFS
8409  test -z "$as_dir" && as_dir=.
8410  for ac_exec_ext in '' $ac_executable_extensions; do
8411  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8413    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8414    break 2
8415  fi
8416done
8417done
8418
8419fi
8420fi
8421RANLIB=$ac_cv_prog_RANLIB
8422if test -n "$RANLIB"; then
8423  echo "$as_me:$LINENO: result: $RANLIB" >&5
8424echo "${ECHO_T}$RANLIB" >&6
8425else
8426  echo "$as_me:$LINENO: result: no" >&5
8427echo "${ECHO_T}no" >&6
8428fi
8429
8430fi
8431if test -z "$ac_cv_prog_RANLIB"; then
8432  ac_ct_RANLIB=$RANLIB
8433  # Extract the first word of "ranlib", so it can be a program name with args.
8434set dummy ranlib; ac_word=$2
8435echo "$as_me:$LINENO: checking for $ac_word" >&5
8436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8437if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8438  echo $ECHO_N "(cached) $ECHO_C" >&6
8439else
8440  if test -n "$ac_ct_RANLIB"; then
8441  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8442else
8443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444for as_dir in $PATH
8445do
8446  IFS=$as_save_IFS
8447  test -z "$as_dir" && as_dir=.
8448  for ac_exec_ext in '' $ac_executable_extensions; do
8449  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8450    ac_cv_prog_ac_ct_RANLIB="ranlib"
8451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8452    break 2
8453  fi
8454done
8455done
8456
8457  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8458fi
8459fi
8460ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8461if test -n "$ac_ct_RANLIB"; then
8462  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8463echo "${ECHO_T}$ac_ct_RANLIB" >&6
8464else
8465  echo "$as_me:$LINENO: result: no" >&5
8466echo "${ECHO_T}no" >&6
8467fi
8468
8469  RANLIB=$ac_ct_RANLIB
8470else
8471  RANLIB="$ac_cv_prog_RANLIB"
8472fi
8473
8474if test -n "$ac_tool_prefix"; then
8475  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8476set dummy ${ac_tool_prefix}strip; ac_word=$2
8477echo "$as_me:$LINENO: checking for $ac_word" >&5
8478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8479if test "${ac_cv_prog_STRIP+set}" = set; then
8480  echo $ECHO_N "(cached) $ECHO_C" >&6
8481else
8482  if test -n "$STRIP"; then
8483  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8484else
8485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8486for as_dir in $PATH
8487do
8488  IFS=$as_save_IFS
8489  test -z "$as_dir" && as_dir=.
8490  for ac_exec_ext in '' $ac_executable_extensions; do
8491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8492    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8494    break 2
8495  fi
8496done
8497done
8498
8499fi
8500fi
8501STRIP=$ac_cv_prog_STRIP
8502if test -n "$STRIP"; then
8503  echo "$as_me:$LINENO: result: $STRIP" >&5
8504echo "${ECHO_T}$STRIP" >&6
8505else
8506  echo "$as_me:$LINENO: result: no" >&5
8507echo "${ECHO_T}no" >&6
8508fi
8509
8510fi
8511if test -z "$ac_cv_prog_STRIP"; then
8512  ac_ct_STRIP=$STRIP
8513  # Extract the first word of "strip", so it can be a program name with args.
8514set dummy strip; ac_word=$2
8515echo "$as_me:$LINENO: checking for $ac_word" >&5
8516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8517if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8518  echo $ECHO_N "(cached) $ECHO_C" >&6
8519else
8520  if test -n "$ac_ct_STRIP"; then
8521  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8522else
8523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524for as_dir in $PATH
8525do
8526  IFS=$as_save_IFS
8527  test -z "$as_dir" && as_dir=.
8528  for ac_exec_ext in '' $ac_executable_extensions; do
8529  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8530    ac_cv_prog_ac_ct_STRIP="strip"
8531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8532    break 2
8533  fi
8534done
8535done
8536
8537  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8538fi
8539fi
8540ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8541if test -n "$ac_ct_STRIP"; then
8542  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8543echo "${ECHO_T}$ac_ct_STRIP" >&6
8544else
8545  echo "$as_me:$LINENO: result: no" >&5
8546echo "${ECHO_T}no" >&6
8547fi
8548
8549  STRIP=$ac_ct_STRIP
8550else
8551  STRIP="$ac_cv_prog_STRIP"
8552fi
8553
8554
8555old_CC="$CC"
8556old_CFLAGS="$CFLAGS"
8557
8558# Set sane defaults for various variables
8559test -z "$AR" && AR=ar
8560test -z "$AR_FLAGS" && AR_FLAGS=cru
8561test -z "$AS" && AS=as
8562test -z "$CC" && CC=cc
8563test -z "$LTCC" && LTCC=$CC
8564test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8565test -z "$DLLTOOL" && DLLTOOL=dlltool
8566test -z "$LD" && LD=ld
8567test -z "$LN_S" && LN_S="ln -s"
8568test -z "$MAGIC_CMD" && MAGIC_CMD=file
8569test -z "$NM" && NM=nm
8570test -z "$SED" && SED=sed
8571test -z "$OBJDUMP" && OBJDUMP=objdump
8572test -z "$RANLIB" && RANLIB=:
8573test -z "$STRIP" && STRIP=:
8574test -z "$ac_objext" && ac_objext=o
8575
8576# Determine commands to create old-style static archives.
8577old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8578old_postinstall_cmds='chmod 644 $oldlib'
8579old_postuninstall_cmds=
8580
8581if test -n "$RANLIB"; then
8582  case $host_os in
8583  openbsd*)
8584    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8585    ;;
8586  *)
8587    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8588    ;;
8589  esac
8590  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8591fi
8592
8593for cc_temp in $compiler""; do
8594  case $cc_temp in
8595    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8596    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8597    \-*) ;;
8598    *) break;;
8599  esac
8600done
8601cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8602
8603
8604# Only perform the check for file, if the check method requires it
8605case $deplibs_check_method in
8606file_magic*)
8607  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8608    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8609echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8610if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8611  echo $ECHO_N "(cached) $ECHO_C" >&6
8612else
8613  case $MAGIC_CMD in
8614[\\/*] |  ?:[\\/]*)
8615  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8616  ;;
8617*)
8618  lt_save_MAGIC_CMD="$MAGIC_CMD"
8619  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8620  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8621  for ac_dir in $ac_dummy; do
8622    IFS="$lt_save_ifs"
8623    test -z "$ac_dir" && ac_dir=.
8624    if test -f $ac_dir/${ac_tool_prefix}file; then
8625      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8626      if test -n "$file_magic_test_file"; then
8627        case $deplibs_check_method in
8628        "file_magic "*)
8629          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8630          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8631          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8632            $EGREP "$file_magic_regex" > /dev/null; then
8633            :
8634          else
8635            cat <<EOF 1>&2
8636
8637*** Warning: the command libtool uses to detect shared libraries,
8638*** $file_magic_cmd, produces output that libtool cannot recognize.
8639*** The result is that libtool may fail to recognize shared libraries
8640*** as such.  This will affect the creation of libtool libraries that
8641*** depend on shared libraries, but programs linked with such libtool
8642*** libraries will work regardless of this problem.  Nevertheless, you
8643*** may want to report the problem to your system manager and/or to
8644*** bug-libtool@gnu.org
8645
8646EOF
8647          fi ;;
8648        esac
8649      fi
8650      break
8651    fi
8652  done
8653  IFS="$lt_save_ifs"
8654  MAGIC_CMD="$lt_save_MAGIC_CMD"
8655  ;;
8656esac
8657fi
8658
8659MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8660if test -n "$MAGIC_CMD"; then
8661  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8662echo "${ECHO_T}$MAGIC_CMD" >&6
8663else
8664  echo "$as_me:$LINENO: result: no" >&5
8665echo "${ECHO_T}no" >&6
8666fi
8667
8668if test -z "$lt_cv_path_MAGIC_CMD"; then
8669  if test -n "$ac_tool_prefix"; then
8670    echo "$as_me:$LINENO: checking for file" >&5
8671echo $ECHO_N "checking for file... $ECHO_C" >&6
8672if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8673  echo $ECHO_N "(cached) $ECHO_C" >&6
8674else
8675  case $MAGIC_CMD in
8676[\\/*] |  ?:[\\/]*)
8677  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8678  ;;
8679*)
8680  lt_save_MAGIC_CMD="$MAGIC_CMD"
8681  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8682  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8683  for ac_dir in $ac_dummy; do
8684    IFS="$lt_save_ifs"
8685    test -z "$ac_dir" && ac_dir=.
8686    if test -f $ac_dir/file; then
8687      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8688      if test -n "$file_magic_test_file"; then
8689        case $deplibs_check_method in
8690        "file_magic "*)
8691          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8692          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8693          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8694            $EGREP "$file_magic_regex" > /dev/null; then
8695            :
8696          else
8697            cat <<EOF 1>&2
8698
8699*** Warning: the command libtool uses to detect shared libraries,
8700*** $file_magic_cmd, produces output that libtool cannot recognize.
8701*** The result is that libtool may fail to recognize shared libraries
8702*** as such.  This will affect the creation of libtool libraries that
8703*** depend on shared libraries, but programs linked with such libtool
8704*** libraries will work regardless of this problem.  Nevertheless, you
8705*** may want to report the problem to your system manager and/or to
8706*** bug-libtool@gnu.org
8707
8708EOF
8709          fi ;;
8710        esac
8711      fi
8712      break
8713    fi
8714  done
8715  IFS="$lt_save_ifs"
8716  MAGIC_CMD="$lt_save_MAGIC_CMD"
8717  ;;
8718esac
8719fi
8720
8721MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8722if test -n "$MAGIC_CMD"; then
8723  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8724echo "${ECHO_T}$MAGIC_CMD" >&6
8725else
8726  echo "$as_me:$LINENO: result: no" >&5
8727echo "${ECHO_T}no" >&6
8728fi
8729
8730  else
8731    MAGIC_CMD=:
8732  fi
8733fi
8734
8735  fi
8736  ;;
8737esac
8738
8739enable_dlopen=no
8740enable_win32_dll=no
8741
8742# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8743if test "${enable_libtool_lock+set}" = set; then
8744  enableval="$enable_libtool_lock"
8745
8746fi;
8747test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8748
8749
8750# Check whether --with-pic or --without-pic was given.
8751if test "${with_pic+set}" = set; then
8752  withval="$with_pic"
8753  pic_mode="$withval"
8754else
8755  pic_mode=default
8756fi;
8757test -z "$pic_mode" && pic_mode=default
8758
8759# Use C for the default configuration in the libtool script
8760tagname=
8761lt_save_CC="$CC"
8762ac_ext=c
8763ac_cpp='$CPP $CPPFLAGS'
8764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8766ac_compiler_gnu=$ac_cv_c_compiler_gnu
8767
8768
8769# Source file extension for C test sources.
8770ac_ext=c
8771
8772# Object file extension for compiled C test sources.
8773objext=o
8774objext=$objext
8775
8776# Code to be used in simple compile tests
8777lt_simple_compile_test_code="int some_variable = 0;\n"
8778
8779# Code to be used in simple link tests
8780lt_simple_link_test_code='int main(){return(0);}\n'
8781
8782
8783# If no C compiler was specified, use CC.
8784LTCC=${LTCC-"$CC"}
8785
8786# If no C compiler flags were specified, use CFLAGS.
8787LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8788
8789# Allow CC to be a program name with arguments.
8790compiler=$CC
8791
8792
8793# save warnings/boilerplate of simple test code
8794ac_outfile=conftest.$ac_objext
8795printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8796eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8797_lt_compiler_boilerplate=`cat conftest.err`
8798$rm conftest*
8799
8800ac_outfile=conftest.$ac_objext
8801printf "$lt_simple_link_test_code" >conftest.$ac_ext
8802eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8803_lt_linker_boilerplate=`cat conftest.err`
8804$rm conftest*
8805
8806
8807## CAVEAT EMPTOR:
8808## There is no encapsulation within the following macros, do not change
8809## the running order or otherwise move them around unless you know exactly
8810## what you are doing...
8811
8812lt_prog_compiler_no_builtin_flag=
8813
8814if test "$GCC" = yes; then
8815  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8816
8817
8818echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8819echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8820if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8821  echo $ECHO_N "(cached) $ECHO_C" >&6
8822else
8823  lt_cv_prog_compiler_rtti_exceptions=no
8824  ac_outfile=conftest.$ac_objext
8825   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8826   lt_compiler_flag="-fno-rtti -fno-exceptions"
8827   # Insert the option either (1) after the last *FLAGS variable, or
8828   # (2) before a word containing "conftest.", or (3) at the end.
8829   # Note that $ac_compile itself does not contain backslashes and begins
8830   # with a dollar sign (not a hyphen), so the echo should work correctly.
8831   # The option is referenced via a variable to avoid confusing sed.
8832   lt_compile=`echo "$ac_compile" | $SED \
8833   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8834   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8835   -e 's:$: $lt_compiler_flag:'`
8836   (eval echo "\"\$as_me:8836: $lt_compile\"" >&5)
8837   (eval "$lt_compile" 2>conftest.err)
8838   ac_status=$?
8839   cat conftest.err >&5
8840   echo "$as_me:8840: \$? = $ac_status" >&5
8841   if (exit $ac_status) && test -s "$ac_outfile"; then
8842     # The compiler can only warn and ignore the option if not recognized
8843     # So say no if there are warnings other than the usual output.
8844     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8845     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8846     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8847       lt_cv_prog_compiler_rtti_exceptions=yes
8848     fi
8849   fi
8850   $rm conftest*
8851
8852fi
8853echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8854echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8855
8856if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8857    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8858else
8859    :
8860fi
8861
8862fi
8863
8864lt_prog_compiler_wl=
8865lt_prog_compiler_pic=
8866lt_prog_compiler_static=
8867
8868echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8869echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8870
8871  if test "$GCC" = yes; then
8872    lt_prog_compiler_wl='-Wl,'
8873    lt_prog_compiler_static='-static'
8874
8875    case $host_os in
8876      aix*)
8877      # All AIX code is PIC.
8878      if test "$host_cpu" = ia64; then
8879        # AIX 5 now supports IA64 processor
8880        lt_prog_compiler_static='-Bstatic'
8881      fi
8882      ;;
8883
8884    amigaos*)
8885      # FIXME: we need at least 68020 code to build shared libraries, but
8886      # adding the `-m68020' flag to GCC prevents building anything better,
8887      # like `-m68040'.
8888      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8889      ;;
8890
8891    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8892      # PIC is the default for these OSes.
8893      ;;
8894
8895    mingw* | pw32* | os2*)
8896      # This hack is so that the source file can tell whether it is being
8897      # built for inclusion in a dll (and should export symbols for example).
8898      lt_prog_compiler_pic='-DDLL_EXPORT'
8899      ;;
8900
8901    darwin* | rhapsody*)
8902      # PIC is the default on this platform
8903      # Common symbols not allowed in MH_DYLIB files
8904      lt_prog_compiler_pic='-fno-common'
8905      ;;
8906
8907    interix3*)
8908      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8909      # Instead, we relocate shared libraries at runtime.
8910      ;;
8911
8912    msdosdjgpp*)
8913      # Just because we use GCC doesn't mean we suddenly get shared libraries
8914      # on systems that don't support them.
8915      lt_prog_compiler_can_build_shared=no
8916      enable_shared=no
8917      ;;
8918
8919    sysv4*MP*)
8920      if test -d /usr/nec; then
8921        lt_prog_compiler_pic=-Kconform_pic
8922      fi
8923      ;;
8924
8925    hpux*)
8926      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8927      # not for PA HP-UX.
8928      case $host_cpu in
8929      hppa*64*|ia64*)
8930        # +Z the default
8931        ;;
8932      *)
8933        lt_prog_compiler_pic='-fPIC'
8934        ;;
8935      esac
8936      ;;
8937
8938    *)
8939      lt_prog_compiler_pic='-fPIC'
8940      ;;
8941    esac
8942  else
8943    # PORTME Check for flag to pass linker flags through the system compiler.
8944    case $host_os in
8945    aix*)
8946      lt_prog_compiler_wl='-Wl,'
8947      if test "$host_cpu" = ia64; then
8948        # AIX 5 now supports IA64 processor
8949        lt_prog_compiler_static='-Bstatic'
8950      else
8951        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8952      fi
8953      ;;
8954      darwin*)
8955        # PIC is the default on this platform
8956        # Common symbols not allowed in MH_DYLIB files
8957       case $cc_basename in
8958         xlc*)
8959         lt_prog_compiler_pic='-qnocommon'
8960         lt_prog_compiler_wl='-Wl,'
8961         ;;
8962       esac
8963       ;;
8964
8965    mingw* | pw32* | os2*)
8966      # This hack is so that the source file can tell whether it is being
8967      # built for inclusion in a dll (and should export symbols for example).
8968      lt_prog_compiler_pic='-DDLL_EXPORT'
8969      ;;
8970
8971    hpux9* | hpux10* | hpux11*)
8972      lt_prog_compiler_wl='-Wl,'
8973      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8974      # not for PA HP-UX.
8975      case $host_cpu in
8976      hppa*64*|ia64*)
8977        # +Z the default
8978        ;;
8979      *)
8980        lt_prog_compiler_pic='+Z'
8981        ;;
8982      esac
8983      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8984      lt_prog_compiler_static='${wl}-a ${wl}archive'
8985      ;;
8986
8987    irix5* | irix6* | nonstopux*)
8988      lt_prog_compiler_wl='-Wl,'
8989      # PIC (with -KPIC) is the default.
8990      lt_prog_compiler_static='-non_shared'
8991      ;;
8992
8993    newsos6)
8994      lt_prog_compiler_pic='-KPIC'
8995      lt_prog_compiler_static='-Bstatic'
8996      ;;
8997
8998    linux*)
8999      case $cc_basename in
9000      icc* | ecc*)
9001        lt_prog_compiler_wl='-Wl,'
9002        lt_prog_compiler_pic='-KPIC'
9003        lt_prog_compiler_static='-static'
9004        ;;
9005      pgcc* | pgf77* | pgf90* | pgf95*)
9006        # Portland Group compilers (*not* the Pentium gcc compiler,
9007        # which looks to be a dead project)
9008        lt_prog_compiler_wl='-Wl,'
9009        lt_prog_compiler_pic='-fpic'
9010        lt_prog_compiler_static='-Bstatic'
9011        ;;
9012      ccc*)
9013        lt_prog_compiler_wl='-Wl,'
9014        # All Alpha code is PIC.
9015        lt_prog_compiler_static='-non_shared'
9016        ;;
9017      esac
9018      ;;
9019
9020    osf3* | osf4* | osf5*)
9021      lt_prog_compiler_wl='-Wl,'
9022      # All OSF/1 code is PIC.
9023      lt_prog_compiler_static='-non_shared'
9024      ;;
9025
9026    solaris*)
9027      lt_prog_compiler_pic='-KPIC'
9028      lt_prog_compiler_static='-Bstatic'
9029      case $cc_basename in
9030      f77* | f90* | f95*)
9031        lt_prog_compiler_wl='-Qoption ld ';;
9032      *)
9033        lt_prog_compiler_wl='-Wl,';;
9034      esac
9035      ;;
9036
9037    sunos4*)
9038      lt_prog_compiler_wl='-Qoption ld '
9039      lt_prog_compiler_pic='-PIC'
9040      lt_prog_compiler_static='-Bstatic'
9041      ;;
9042
9043    sysv4 | sysv4.2uw2* | sysv4.3*)
9044      lt_prog_compiler_wl='-Wl,'
9045      lt_prog_compiler_pic='-KPIC'
9046      lt_prog_compiler_static='-Bstatic'
9047      ;;
9048
9049    sysv4*MP*)
9050      if test -d /usr/nec ;then
9051        lt_prog_compiler_pic='-Kconform_pic'
9052        lt_prog_compiler_static='-Bstatic'
9053      fi
9054      ;;
9055
9056    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9057      lt_prog_compiler_wl='-Wl,'
9058      lt_prog_compiler_pic='-KPIC'
9059      lt_prog_compiler_static='-Bstatic'
9060      ;;
9061
9062    unicos*)
9063      lt_prog_compiler_wl='-Wl,'
9064      lt_prog_compiler_can_build_shared=no
9065      ;;
9066
9067    uts4*)
9068      lt_prog_compiler_pic='-pic'
9069      lt_prog_compiler_static='-Bstatic'
9070      ;;
9071
9072    *)
9073      lt_prog_compiler_can_build_shared=no
9074      ;;
9075    esac
9076  fi
9077
9078echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9079echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9080
9081#
9082# Check to make sure the PIC flag actually works.
9083#
9084if test -n "$lt_prog_compiler_pic"; then
9085
9086echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9087echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9088if test "${lt_prog_compiler_pic_works+set}" = set; then
9089  echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091  lt_prog_compiler_pic_works=no
9092  ac_outfile=conftest.$ac_objext
9093   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9094   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9095   # Insert the option either (1) after the last *FLAGS variable, or
9096   # (2) before a word containing "conftest.", or (3) at the end.
9097   # Note that $ac_compile itself does not contain backslashes and begins
9098   # with a dollar sign (not a hyphen), so the echo should work correctly.
9099   # The option is referenced via a variable to avoid confusing sed.
9100   lt_compile=`echo "$ac_compile" | $SED \
9101   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9103   -e 's:$: $lt_compiler_flag:'`
9104   (eval echo "\"\$as_me:9104: $lt_compile\"" >&5)
9105   (eval "$lt_compile" 2>conftest.err)
9106   ac_status=$?
9107   cat conftest.err >&5
9108   echo "$as_me:9108: \$? = $ac_status" >&5
9109   if (exit $ac_status) && test -s "$ac_outfile"; then
9110     # The compiler can only warn and ignore the option if not recognized
9111     # So say no if there are warnings other than the usual output.
9112     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9113     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9114     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9115       lt_prog_compiler_pic_works=yes
9116     fi
9117   fi
9118   $rm conftest*
9119
9120fi
9121echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9122echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9123
9124if test x"$lt_prog_compiler_pic_works" = xyes; then
9125    case $lt_prog_compiler_pic in
9126     "" | " "*) ;;
9127     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9128     esac
9129else
9130    lt_prog_compiler_pic=
9131     lt_prog_compiler_can_build_shared=no
9132fi
9133
9134fi
9135case $host_os in
9136  # For platforms which do not support PIC, -DPIC is meaningless:
9137  *djgpp*)
9138    lt_prog_compiler_pic=
9139    ;;
9140  *)
9141    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9142    ;;
9143esac
9144
9145#
9146# Check to make sure the static flag actually works.
9147#
9148wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9149echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9150echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9151if test "${lt_prog_compiler_static_works+set}" = set; then
9152  echo $ECHO_N "(cached) $ECHO_C" >&6
9153else
9154  lt_prog_compiler_static_works=no
9155   save_LDFLAGS="$LDFLAGS"
9156   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9157   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9158   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9159     # The linker can only warn and ignore the option if not recognized
9160     # So say no if there are warnings
9161     if test -s conftest.err; then
9162       # Append any errors to the config.log.
9163       cat conftest.err 1>&5
9164       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9165       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9166       if diff conftest.exp conftest.er2 >/dev/null; then
9167         lt_prog_compiler_static_works=yes
9168       fi
9169     else
9170       lt_prog_compiler_static_works=yes
9171     fi
9172   fi
9173   $rm conftest*
9174   LDFLAGS="$save_LDFLAGS"
9175
9176fi
9177echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9178echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9179
9180if test x"$lt_prog_compiler_static_works" = xyes; then
9181    :
9182else
9183    lt_prog_compiler_static=
9184fi
9185
9186
9187echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9188echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9189if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9190  echo $ECHO_N "(cached) $ECHO_C" >&6
9191else
9192  lt_cv_prog_compiler_c_o=no
9193   $rm -r conftest 2>/dev/null
9194   mkdir conftest
9195   cd conftest
9196   mkdir out
9197   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9198
9199   lt_compiler_flag="-o out/conftest2.$ac_objext"
9200   # Insert the option either (1) after the last *FLAGS variable, or
9201   # (2) before a word containing "conftest.", or (3) at the end.
9202   # Note that $ac_compile itself does not contain backslashes and begins
9203   # with a dollar sign (not a hyphen), so the echo should work correctly.
9204   lt_compile=`echo "$ac_compile" | $SED \
9205   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9206   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9207   -e 's:$: $lt_compiler_flag:'`
9208   (eval echo "\"\$as_me:9208: $lt_compile\"" >&5)
9209   (eval "$lt_compile" 2>out/conftest.err)
9210   ac_status=$?
9211   cat out/conftest.err >&5
9212   echo "$as_me:9212: \$? = $ac_status" >&5
9213   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9214   then
9215     # The compiler can only warn and ignore the option if not recognized
9216     # So say no if there are warnings
9217     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9218     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9219     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9220       lt_cv_prog_compiler_c_o=yes
9221     fi
9222   fi
9223   chmod u+w . 2>&5
9224   $rm conftest*
9225   # SGI C++ compiler will create directory out/ii_files/ for
9226   # template instantiation
9227   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9228   $rm out/* && rmdir out
9229   cd ..
9230   rmdir conftest
9231   $rm conftest*
9232
9233fi
9234echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9235echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9236
9237
9238hard_links="nottested"
9239if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9240  # do not overwrite the value of need_locks provided by the user
9241  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9242echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9243  hard_links=yes
9244  $rm conftest*
9245  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9246  touch conftest.a
9247  ln conftest.a conftest.b 2>&5 || hard_links=no
9248  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9249  echo "$as_me:$LINENO: result: $hard_links" >&5
9250echo "${ECHO_T}$hard_links" >&6
9251  if test "$hard_links" = no; then
9252    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9253echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9254    need_locks=warn
9255  fi
9256else
9257  need_locks=no
9258fi
9259
9260echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9261echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9262
9263  runpath_var=
9264  allow_undefined_flag=
9265  enable_shared_with_static_runtimes=no
9266  archive_cmds=
9267  archive_expsym_cmds=
9268  old_archive_From_new_cmds=
9269  old_archive_from_expsyms_cmds=
9270  export_dynamic_flag_spec=
9271  whole_archive_flag_spec=
9272  thread_safe_flag_spec=
9273  hardcode_libdir_flag_spec=
9274  hardcode_libdir_flag_spec_ld=
9275  hardcode_libdir_separator=
9276  hardcode_direct=no
9277  hardcode_minus_L=no
9278  hardcode_shlibpath_var=unsupported
9279  link_all_deplibs=unknown
9280  hardcode_automatic=no
9281  module_cmds=
9282  module_expsym_cmds=
9283  always_export_symbols=no
9284  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9285  # include_expsyms should be a list of space-separated symbols to be *always*
9286  # included in the symbol list
9287  include_expsyms=
9288  # exclude_expsyms can be an extended regexp of symbols to exclude
9289  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9290  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9291  # as well as any symbol that contains `d'.
9292  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9293  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9294  # platforms (ab)use it in PIC code, but their linkers get confused if
9295  # the symbol is explicitly referenced.  Since portable code cannot
9296  # rely on this symbol name, it's probably fine to never include it in
9297  # preloaded symbol tables.
9298  extract_expsyms_cmds=
9299  # Just being paranoid about ensuring that cc_basename is set.
9300  for cc_temp in $compiler""; do
9301  case $cc_temp in
9302    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9303    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9304    \-*) ;;
9305    *) break;;
9306  esac
9307done
9308cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9309
9310  case $host_os in
9311  cygwin* | mingw* | pw32*)
9312    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9313    # When not using gcc, we currently assume that we are using
9314    # Microsoft Visual C++.
9315    if test "$GCC" != yes; then
9316      with_gnu_ld=no
9317    fi
9318    ;;
9319  interix*)
9320    # we just hope/assume this is gcc and not c89 (= MSVC++)
9321    with_gnu_ld=yes
9322    ;;
9323  openbsd*)
9324    with_gnu_ld=no
9325    ;;
9326  esac
9327
9328  ld_shlibs=yes
9329  if test "$with_gnu_ld" = yes; then
9330    # If archive_cmds runs LD, not CC, wlarc should be empty
9331    wlarc='${wl}'
9332
9333    # Set some defaults for GNU ld with shared library support. These
9334    # are reset later if shared libraries are not supported. Putting them
9335    # here allows them to be overridden if necessary.
9336    runpath_var=LD_RUN_PATH
9337    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9338    export_dynamic_flag_spec='${wl}--export-dynamic'
9339    # ancient GNU ld didn't support --whole-archive et. al.
9340    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9341        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9342      else
9343        whole_archive_flag_spec=
9344    fi
9345    supports_anon_versioning=no
9346    case `$LD -v 2>/dev/null` in
9347      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9348      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9349      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9350      *\ 2.11.*) ;; # other 2.11 versions
9351      *) supports_anon_versioning=yes ;;
9352    esac
9353
9354    # See if GNU ld supports shared libraries.
9355    case $host_os in
9356    aix3* | aix4* | aix5*)
9357      # On AIX/PPC, the GNU linker is very broken
9358      if test "$host_cpu" != ia64; then
9359        ld_shlibs=no
9360        cat <<EOF 1>&2
9361
9362*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9363*** to be unable to reliably create shared libraries on AIX.
9364*** Therefore, libtool is disabling shared libraries support.  If you
9365*** really care for shared libraries, you may want to modify your PATH
9366*** so that a non-GNU linker is found, and then restart.
9367
9368EOF
9369      fi
9370      ;;
9371
9372    amigaos*)
9373      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)'
9374      hardcode_libdir_flag_spec='-L$libdir'
9375      hardcode_minus_L=yes
9376
9377      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9378      # that the semantics of dynamic libraries on AmigaOS, at least up
9379      # to version 4, is to share data among multiple programs linked
9380      # with the same dynamic library.  Since this doesn't match the
9381      # behavior of shared libraries on other platforms, we can't use
9382      # them.
9383      ld_shlibs=no
9384      ;;
9385
9386    beos*)
9387      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9388        allow_undefined_flag=unsupported
9389        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9390        # support --undefined.  This deserves some investigation.  FIXME
9391        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392      else
9393        ld_shlibs=no
9394      fi
9395      ;;
9396
9397    cygwin* | mingw* | pw32*)
9398      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9399      # as there is no search path for DLLs.
9400      hardcode_libdir_flag_spec='-L$libdir'
9401      allow_undefined_flag=unsupported
9402      always_export_symbols=no
9403      enable_shared_with_static_runtimes=yes
9404      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9405
9406      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9407        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9408        # If the export-symbols file already is a .def file (1st line
9409        # is EXPORTS), use it as is; otherwise, prepend...
9410        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9411          cp $export_symbols $output_objdir/$soname.def;
9412        else
9413          echo EXPORTS > $output_objdir/$soname.def;
9414          cat $export_symbols >> $output_objdir/$soname.def;
9415        fi~
9416        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9417      else
9418        ld_shlibs=no
9419      fi
9420      ;;
9421
9422    interix3*)
9423      hardcode_direct=no
9424      hardcode_shlibpath_var=no
9425      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9426      export_dynamic_flag_spec='${wl}-E'
9427      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9428      # Instead, shared libraries are loaded at an image base (0x10000000 by
9429      # default) and relocated if they conflict, which is a slow very memory
9430      # consuming and fragmenting process.  To avoid this, we pick a random,
9431      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9432      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9433      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9434      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'
9435      ;;
9436
9437    linux*)
9438      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9439        tmp_addflag=
9440        case $cc_basename,$host_cpu in
9441        pgcc*)                          # Portland Group C compiler
9442          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'
9443          tmp_addflag=' $pic_flag'
9444          ;;
9445        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9446          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'
9447          tmp_addflag=' $pic_flag -Mnomain' ;;
9448        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9449          tmp_addflag=' -i_dynamic' ;;
9450        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9451          tmp_addflag=' -i_dynamic -nofor_main' ;;
9452        ifc* | ifort*)                  # Intel Fortran compiler
9453          tmp_addflag=' -nofor_main' ;;
9454        esac
9455        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9456
9457        if test $supports_anon_versioning = yes; then
9458          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9459  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9460  $echo "local: *; };" >> $output_objdir/$libname.ver~
9461          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9462        fi
9463      else
9464        ld_shlibs=no
9465      fi
9466      ;;
9467
9468    netbsd*)
9469      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9470        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9471        wlarc=
9472      else
9473        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9475      fi
9476      ;;
9477
9478    solaris*)
9479      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9480        ld_shlibs=no
9481        cat <<EOF 1>&2
9482
9483*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9484*** create shared libraries on Solaris systems.  Therefore, libtool
9485*** is disabling shared libraries support.  We urge you to upgrade GNU
9486*** binutils to release 2.9.1 or newer.  Another option is to modify
9487*** your PATH or compiler configuration so that the native linker is
9488*** used, and then restart.
9489
9490EOF
9491      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9492        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9494      else
9495        ld_shlibs=no
9496      fi
9497      ;;
9498
9499    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9500      case `$LD -v 2>&1` in
9501        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9502        ld_shlibs=no
9503        cat <<_LT_EOF 1>&2
9504
9505*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9506*** reliably create shared libraries on SCO systems.  Therefore, libtool
9507*** is disabling shared libraries support.  We urge you to upgrade GNU
9508*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9509*** your PATH or compiler configuration so that the native linker is
9510*** used, and then restart.
9511
9512_LT_EOF
9513        ;;
9514        *)
9515          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9516            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9517            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9518            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9519          else
9520            ld_shlibs=no
9521          fi
9522        ;;
9523      esac
9524      ;;
9525
9526    sunos4*)
9527      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9528      wlarc=
9529      hardcode_direct=yes
9530      hardcode_shlibpath_var=no
9531      ;;
9532
9533    *)
9534      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9535        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9536        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9537      else
9538        ld_shlibs=no
9539      fi
9540      ;;
9541    esac
9542
9543    if test "$ld_shlibs" = no; then
9544      runpath_var=
9545      hardcode_libdir_flag_spec=
9546      export_dynamic_flag_spec=
9547      whole_archive_flag_spec=
9548    fi
9549  else
9550    # PORTME fill in a description of your system's linker (not GNU ld)
9551    case $host_os in
9552    aix3*)
9553      allow_undefined_flag=unsupported
9554      always_export_symbols=yes
9555      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'
9556      # Note: this linker hardcodes the directories in LIBPATH if there
9557      # are no directories specified by -L.
9558      hardcode_minus_L=yes
9559      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9560        # Neither direct hardcoding nor static linking is supported with a
9561        # broken collect2.
9562        hardcode_direct=unsupported
9563      fi
9564      ;;
9565
9566    aix4* | aix5*)
9567      if test "$host_cpu" = ia64; then
9568        # On IA64, the linker does run time linking by default, so we don't
9569        # have to do anything special.
9570        aix_use_runtimelinking=no
9571        exp_sym_flag='-Bexport'
9572        no_entry_flag=""
9573      else
9574        # If we're using GNU nm, then we don't want the "-C" option.
9575        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9576        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9577          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'
9578        else
9579          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'
9580        fi
9581        aix_use_runtimelinking=no
9582
9583        # Test if we are trying to use run time linking or normal
9584        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9585        # need to do runtime linking.
9586        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9587          for ld_flag in $LDFLAGS; do
9588          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9589            aix_use_runtimelinking=yes
9590            break
9591          fi
9592          done
9593          ;;
9594        esac
9595
9596        exp_sym_flag='-bexport'
9597        no_entry_flag='-bnoentry'
9598      fi
9599
9600      # When large executables or shared objects are built, AIX ld can
9601      # have problems creating the table of contents.  If linking a library
9602      # or program results in "error TOC overflow" add -mminimal-toc to
9603      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9604      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9605
9606      archive_cmds=''
9607      hardcode_direct=yes
9608      hardcode_libdir_separator=':'
9609      link_all_deplibs=yes
9610
9611      if test "$GCC" = yes; then
9612        case $host_os in aix4.[012]|aix4.[012].*)
9613        # We only want to do this on AIX 4.2 and lower, the check
9614        # below for broken collect2 doesn't work under 4.3+
9615          collect2name=`${CC} -print-prog-name=collect2`
9616          if test -f "$collect2name" && \
9617           strings "$collect2name" | grep resolve_lib_name >/dev/null
9618          then
9619          # We have reworked collect2
9620          hardcode_direct=yes
9621          else
9622          # We have old collect2
9623          hardcode_direct=unsupported
9624          # It fails to find uninstalled libraries when the uninstalled
9625          # path is not listed in the libpath.  Setting hardcode_minus_L
9626          # to unsupported forces relinking
9627          hardcode_minus_L=yes
9628          hardcode_libdir_flag_spec='-L$libdir'
9629          hardcode_libdir_separator=
9630          fi
9631          ;;
9632        esac
9633        shared_flag='-shared'
9634        if test "$aix_use_runtimelinking" = yes; then
9635          shared_flag="$shared_flag "'${wl}-G'
9636        fi
9637      else
9638        # not using gcc
9639        if test "$host_cpu" = ia64; then
9640        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9641        # chokes on -Wl,-G. The following line is correct:
9642          shared_flag='-G'
9643        else
9644          if test "$aix_use_runtimelinking" = yes; then
9645            shared_flag='${wl}-G'
9646          else
9647            shared_flag='${wl}-bM:SRE'
9648          fi
9649        fi
9650      fi
9651
9652      # It seems that -bexpall does not export symbols beginning with
9653      # underscore (_), so it is better to generate a list of symbols to export.
9654      always_export_symbols=yes
9655      if test "$aix_use_runtimelinking" = yes; then
9656        # Warning - without using the other runtime loading flags (-brtl),
9657        # -berok will link without error, but may produce a broken library.
9658        allow_undefined_flag='-berok'
9659       # Determine the default libpath from the value encoded in an empty executable.
9660       cat >conftest.$ac_ext <<_ACEOF
9661/* confdefs.h.  */
9662_ACEOF
9663cat confdefs.h >>conftest.$ac_ext
9664cat >>conftest.$ac_ext <<_ACEOF
9665/* end confdefs.h.  */
9666
9667#ifdef F77_DUMMY_MAIN
9668
9669#  ifdef __cplusplus
9670     extern "C"
9671#  endif
9672   int F77_DUMMY_MAIN() { return 1; }
9673
9674#endif
9675int
9676main ()
9677{
9678
9679  ;
9680  return 0;
9681}
9682_ACEOF
9683rm -f conftest.$ac_objext conftest$ac_exeext
9684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9685  (eval $ac_link) 2>conftest.er1
9686  ac_status=$?
9687  grep -v '^ *+' conftest.er1 >conftest.err
9688  rm -f conftest.er1
9689  cat conftest.err >&5
9690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691  (exit $ac_status); } &&
9692         { ac_try='test -z "$ac_c_werror_flag"
9693                         || test ! -s conftest.err'
9694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695  (eval $ac_try) 2>&5
9696  ac_status=$?
9697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698  (exit $ac_status); }; } &&
9699         { ac_try='test -s conftest$ac_exeext'
9700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701  (eval $ac_try) 2>&5
9702  ac_status=$?
9703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704  (exit $ac_status); }; }; then
9705
9706aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9707}'`
9708# Check for a 64-bit object if we didn't find anything.
9709if 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; }
9710}'`; fi
9711else
9712  echo "$as_me: failed program was:" >&5
9713sed 's/^/| /' conftest.$ac_ext >&5
9714
9715fi
9716rm -f conftest.err conftest.$ac_objext \
9717      conftest$ac_exeext conftest.$ac_ext
9718if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9719
9720       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9721        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"
9722       else
9723        if test "$host_cpu" = ia64; then
9724          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9725          allow_undefined_flag="-z nodefs"
9726          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"
9727        else
9728         # Determine the default libpath from the value encoded in an empty executable.
9729         cat >conftest.$ac_ext <<_ACEOF
9730/* confdefs.h.  */
9731_ACEOF
9732cat confdefs.h >>conftest.$ac_ext
9733cat >>conftest.$ac_ext <<_ACEOF
9734/* end confdefs.h.  */
9735
9736#ifdef F77_DUMMY_MAIN
9737
9738#  ifdef __cplusplus
9739     extern "C"
9740#  endif
9741   int F77_DUMMY_MAIN() { return 1; }
9742
9743#endif
9744int
9745main ()
9746{
9747
9748  ;
9749  return 0;
9750}
9751_ACEOF
9752rm -f conftest.$ac_objext conftest$ac_exeext
9753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754  (eval $ac_link) 2>conftest.er1
9755  ac_status=$?
9756  grep -v '^ *+' conftest.er1 >conftest.err
9757  rm -f conftest.er1
9758  cat conftest.err >&5
9759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760  (exit $ac_status); } &&
9761         { ac_try='test -z "$ac_c_werror_flag"
9762                         || test ! -s conftest.err'
9763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9764  (eval $ac_try) 2>&5
9765  ac_status=$?
9766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767  (exit $ac_status); }; } &&
9768         { ac_try='test -s conftest$ac_exeext'
9769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9770  (eval $ac_try) 2>&5
9771  ac_status=$?
9772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773  (exit $ac_status); }; }; then
9774
9775aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9776}'`
9777# Check for a 64-bit object if we didn't find anything.
9778if 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; }
9779}'`; fi
9780else
9781  echo "$as_me: failed program was:" >&5
9782sed 's/^/| /' conftest.$ac_ext >&5
9783
9784fi
9785rm -f conftest.err conftest.$ac_objext \
9786      conftest$ac_exeext conftest.$ac_ext
9787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9788
9789         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9790          # Warning - without using the other run time loading flags,
9791          # -berok will link without error, but may produce a broken library.
9792          no_undefined_flag=' ${wl}-bernotok'
9793          allow_undefined_flag=' ${wl}-berok'
9794          # Exported symbols can be pulled into shared objects from archives
9795          whole_archive_flag_spec='$convenience'
9796          archive_cmds_need_lc=yes
9797          # This is similar to how AIX traditionally builds its shared libraries.
9798          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'
9799        fi
9800      fi
9801      ;;
9802
9803    amigaos*)
9804      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)'
9805      hardcode_libdir_flag_spec='-L$libdir'
9806      hardcode_minus_L=yes
9807      # see comment about different semantics on the GNU ld section
9808      ld_shlibs=no
9809      ;;
9810
9811    bsdi[45]*)
9812      export_dynamic_flag_spec=-rdynamic
9813      ;;
9814
9815    cygwin* | mingw* | pw32*)
9816      # When not using gcc, we currently assume that we are using
9817      # Microsoft Visual C++.
9818      # hardcode_libdir_flag_spec is actually meaningless, as there is
9819      # no search path for DLLs.
9820      hardcode_libdir_flag_spec=' '
9821      allow_undefined_flag=unsupported
9822      # Tell ltmain to make .lib files, not .a files.
9823      libext=lib
9824      # Tell ltmain to make .dll files, not .so files.
9825      shrext_cmds=".dll"
9826      # FIXME: Setting linknames here is a bad hack.
9827      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9828      # The linker will automatically build a .lib file if we build a DLL.
9829      old_archive_From_new_cmds='true'
9830      # FIXME: Should let the user specify the lib program.
9831      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9832      fix_srcfile_path='`cygpath -w "$srcfile"`'
9833      enable_shared_with_static_runtimes=yes
9834      ;;
9835
9836    darwin* | rhapsody*)
9837      case $host_os in
9838        rhapsody* | darwin1.[012])
9839         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9840         ;;
9841       *) # Darwin 1.3 on
9842         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9843           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9844         else
9845           case ${MACOSX_DEPLOYMENT_TARGET} in
9846             10.[012])
9847               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9848               ;;
9849             10.*)
9850               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9851               ;;
9852           esac
9853         fi
9854         ;;
9855      esac
9856      archive_cmds_need_lc=no
9857      hardcode_direct=no
9858      hardcode_automatic=yes
9859      hardcode_shlibpath_var=unsupported
9860      whole_archive_flag_spec=''
9861      link_all_deplibs=yes
9862    if test "$GCC" = yes ; then
9863        output_verbose_link_cmd='echo'
9864        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9865      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9866      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9867      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}'
9868      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}'
9869    else
9870      case $cc_basename in
9871        xlc*)
9872         output_verbose_link_cmd='echo'
9873         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9874         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9875          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9876         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}'
9877          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}'
9878          ;;
9879       *)
9880         ld_shlibs=no
9881          ;;
9882      esac
9883    fi
9884      ;;
9885
9886    dgux*)
9887      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9888      hardcode_libdir_flag_spec='-L$libdir'
9889      hardcode_shlibpath_var=no
9890      ;;
9891
9892    freebsd1*)
9893      ld_shlibs=no
9894      ;;
9895
9896    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9897    # support.  Future versions do this automatically, but an explicit c++rt0.o
9898    # does not break anything, and helps significantly (at the cost of a little
9899    # extra space).
9900    freebsd2.2*)
9901      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9902      hardcode_libdir_flag_spec='-R$libdir'
9903      hardcode_direct=yes
9904      hardcode_shlibpath_var=no
9905      ;;
9906
9907    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9908    freebsd2*)
9909      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9910      hardcode_direct=yes
9911      hardcode_minus_L=yes
9912      hardcode_shlibpath_var=no
9913      ;;
9914
9915    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9916    freebsd* | kfreebsd*-gnu | dragonfly*)
9917      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9918      hardcode_libdir_flag_spec='-R$libdir'
9919      hardcode_direct=yes
9920      hardcode_shlibpath_var=no
9921      ;;
9922
9923    hpux9*)
9924      if test "$GCC" = yes; then
9925        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'
9926      else
9927        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'
9928      fi
9929      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9930      hardcode_libdir_separator=:
9931      hardcode_direct=yes
9932
9933      # hardcode_minus_L: Not really in the search PATH,
9934      # but as the default location of the library.
9935      hardcode_minus_L=yes
9936      export_dynamic_flag_spec='${wl}-E'
9937      ;;
9938
9939    hpux10*)
9940      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9941        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9942      else
9943        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9944      fi
9945      if test "$with_gnu_ld" = no; then
9946        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9947        hardcode_libdir_separator=:
9948
9949        hardcode_direct=yes
9950        export_dynamic_flag_spec='${wl}-E'
9951
9952        # hardcode_minus_L: Not really in the search PATH,
9953        # but as the default location of the library.
9954        hardcode_minus_L=yes
9955      fi
9956      ;;
9957
9958    hpux11*)
9959      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9960        case $host_cpu in
9961        hppa*64*)
9962          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9963          ;;
9964        ia64*)
9965          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9966          ;;
9967        *)
9968          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9969          ;;
9970        esac
9971      else
9972        case $host_cpu in
9973        hppa*64*)
9974          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9975          ;;
9976        ia64*)
9977          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9978          ;;
9979        *)
9980          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9981          ;;
9982        esac
9983      fi
9984      if test "$with_gnu_ld" = no; then
9985        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9986        hardcode_libdir_separator=:
9987
9988        case $host_cpu in
9989        hppa*64*|ia64*)
9990          hardcode_libdir_flag_spec_ld='+b $libdir'
9991          hardcode_direct=no
9992          hardcode_shlibpath_var=no
9993          ;;
9994        *)
9995          hardcode_direct=yes
9996          export_dynamic_flag_spec='${wl}-E'
9997
9998          # hardcode_minus_L: Not really in the search PATH,
9999          # but as the default location of the library.
10000          hardcode_minus_L=yes
10001          ;;
10002        esac
10003      fi
10004      ;;
10005
10006    irix5* | irix6* | nonstopux*)
10007      if test "$GCC" = yes; then
10008        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'
10009      else
10010        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'
10011        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10012      fi
10013      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014      hardcode_libdir_separator=:
10015      link_all_deplibs=yes
10016      ;;
10017
10018    netbsd*)
10019      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10020        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10021      else
10022        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10023      fi
10024      hardcode_libdir_flag_spec='-R$libdir'
10025      hardcode_direct=yes
10026      hardcode_shlibpath_var=no
10027      ;;
10028
10029    newsos6)
10030      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031      hardcode_direct=yes
10032      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10033      hardcode_libdir_separator=:
10034      hardcode_shlibpath_var=no
10035      ;;
10036
10037    openbsd*)
10038      hardcode_direct=yes
10039      hardcode_shlibpath_var=no
10040      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10041        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10043        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10044        export_dynamic_flag_spec='${wl}-E'
10045      else
10046       case $host_os in
10047         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10048           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10049           hardcode_libdir_flag_spec='-R$libdir'
10050           ;;
10051         *)
10052           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10053           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10054           ;;
10055       esac
10056      fi
10057      ;;
10058
10059    os2*)
10060      hardcode_libdir_flag_spec='-L$libdir'
10061      hardcode_minus_L=yes
10062      allow_undefined_flag=unsupported
10063      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'
10064      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10065      ;;
10066
10067    osf3*)
10068      if test "$GCC" = yes; then
10069        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10070        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'
10071      else
10072        allow_undefined_flag=' -expect_unresolved \*'
10073        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'
10074      fi
10075      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10076      hardcode_libdir_separator=:
10077      ;;
10078
10079    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10080      if test "$GCC" = yes; then
10081        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10082        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'
10083        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10084      else
10085        allow_undefined_flag=' -expect_unresolved \*'
10086        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'
10087        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10088        $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'
10089
10090        # Both c and cxx compiler support -rpath directly
10091        hardcode_libdir_flag_spec='-rpath $libdir'
10092      fi
10093      hardcode_libdir_separator=:
10094      ;;
10095
10096    solaris*)
10097      no_undefined_flag=' -z text'
10098      if test "$GCC" = yes; then
10099        wlarc='${wl}'
10100        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10101        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10102          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10103      else
10104        wlarc=''
10105        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10106        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10107        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10108      fi
10109      hardcode_libdir_flag_spec='-R$libdir'
10110      hardcode_shlibpath_var=no
10111      case $host_os in
10112      solaris2.[0-5] | solaris2.[0-5].*) ;;
10113      *)
10114        # The compiler driver will combine linker options so we
10115        # cannot just pass the convience library names through
10116        # without $wl, iff we do not link with $LD.
10117        # Luckily, gcc supports the same syntax we need for Sun Studio.
10118        # Supported since Solaris 2.6 (maybe 2.5.1?)
10119        case $wlarc in
10120        '')
10121          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10122        *)
10123          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' ;;
10124        esac ;;
10125      esac
10126      link_all_deplibs=yes
10127      ;;
10128
10129    sunos4*)
10130      if test "x$host_vendor" = xsequent; then
10131        # Use $CC to link under sequent, because it throws in some extra .o
10132        # files that make .init and .fini sections work.
10133        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10134      else
10135        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10136      fi
10137      hardcode_libdir_flag_spec='-L$libdir'
10138      hardcode_direct=yes
10139      hardcode_minus_L=yes
10140      hardcode_shlibpath_var=no
10141      ;;
10142
10143    sysv4)
10144      case $host_vendor in
10145        sni)
10146          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147          hardcode_direct=yes # is this really true???
10148        ;;
10149        siemens)
10150          ## LD is ld it makes a PLAMLIB
10151          ## CC just makes a GrossModule.
10152          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10153          reload_cmds='$CC -r -o $output$reload_objs'
10154          hardcode_direct=no
10155        ;;
10156        motorola)
10157          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10158          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10159        ;;
10160      esac
10161      runpath_var='LD_RUN_PATH'
10162      hardcode_shlibpath_var=no
10163      ;;
10164
10165    sysv4.3*)
10166      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10167      hardcode_shlibpath_var=no
10168      export_dynamic_flag_spec='-Bexport'
10169      ;;
10170
10171    sysv4*MP*)
10172      if test -d /usr/nec; then
10173        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174        hardcode_shlibpath_var=no
10175        runpath_var=LD_RUN_PATH
10176        hardcode_runpath_var=yes
10177        ld_shlibs=yes
10178      fi
10179      ;;
10180
10181    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10182      no_undefined_flag='${wl}-z,text'
10183      archive_cmds_need_lc=no
10184      hardcode_shlibpath_var=no
10185      runpath_var='LD_RUN_PATH'
10186
10187      if test "$GCC" = yes; then
10188        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10189        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10190      else
10191        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193      fi
10194      ;;
10195
10196    sysv5* | sco3.2v5* | sco5v6*)
10197      # Note: We can NOT use -z defs as we might desire, because we do not
10198      # link with -lc, and that would cause any symbols used from libc to
10199      # always be unresolved, which means just about no library would
10200      # ever link correctly.  If we're not using GNU ld we use -z text
10201      # though, which does catch some bad symbols but isn't as heavy-handed
10202      # as -z defs.
10203      no_undefined_flag='${wl}-z,text'
10204      allow_undefined_flag='${wl}-z,nodefs'
10205      archive_cmds_need_lc=no
10206      hardcode_shlibpath_var=no
10207      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10208      hardcode_libdir_separator=':'
10209      link_all_deplibs=yes
10210      export_dynamic_flag_spec='${wl}-Bexport'
10211      runpath_var='LD_RUN_PATH'
10212
10213      if test "$GCC" = yes; then
10214        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10215        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10216      else
10217        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10218        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10219      fi
10220      ;;
10221
10222    uts4*)
10223      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10224      hardcode_libdir_flag_spec='-L$libdir'
10225      hardcode_shlibpath_var=no
10226      ;;
10227
10228    *)
10229      ld_shlibs=no
10230      ;;
10231    esac
10232  fi
10233
10234echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10235echo "${ECHO_T}$ld_shlibs" >&6
10236test "$ld_shlibs" = no && can_build_shared=no
10237
10238#
10239# Do we need to explicitly link libc?
10240#
10241case "x$archive_cmds_need_lc" in
10242x|xyes)
10243  # Assume -lc should be added
10244  archive_cmds_need_lc=yes
10245
10246  if test "$enable_shared" = yes && test "$GCC" = yes; then
10247    case $archive_cmds in
10248    *'~'*)
10249      # FIXME: we may have to deal with multi-command sequences.
10250      ;;
10251    '$CC '*)
10252      # Test whether the compiler implicitly links with -lc since on some
10253      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10254      # to ld, don't add -lc before -lgcc.
10255      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10256echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10257      $rm conftest*
10258      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10259
10260      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261  (eval $ac_compile) 2>&5
10262  ac_status=$?
10263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264  (exit $ac_status); } 2>conftest.err; then
10265        soname=conftest
10266        lib=conftest
10267        libobjs=conftest.$ac_objext
10268        deplibs=
10269        wl=$lt_prog_compiler_wl
10270        pic_flag=$lt_prog_compiler_pic
10271        compiler_flags=-v
10272        linker_flags=-v
10273        verstring=
10274        output_objdir=.
10275        libname=conftest
10276        lt_save_allow_undefined_flag=$allow_undefined_flag
10277        allow_undefined_flag=
10278        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10279  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10280  ac_status=$?
10281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); }
10283        then
10284          archive_cmds_need_lc=no
10285        else
10286          archive_cmds_need_lc=yes
10287        fi
10288        allow_undefined_flag=$lt_save_allow_undefined_flag
10289      else
10290        cat conftest.err 1>&5
10291      fi
10292      $rm conftest*
10293      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10294echo "${ECHO_T}$archive_cmds_need_lc" >&6
10295      ;;
10296    esac
10297  fi
10298  ;;
10299esac
10300
10301echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10302echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10303library_names_spec=
10304libname_spec='lib$name'
10305soname_spec=
10306shrext_cmds=".so"
10307postinstall_cmds=
10308postuninstall_cmds=
10309finish_cmds=
10310finish_eval=
10311shlibpath_var=
10312shlibpath_overrides_runpath=unknown
10313version_type=none
10314dynamic_linker="$host_os ld.so"
10315sys_lib_dlsearch_path_spec="/lib /usr/lib"
10316if test "$GCC" = yes; then
10317  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10318  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10319    # if the path contains ";" then we assume it to be the separator
10320    # otherwise default to the standard path separator (i.e. ":") - it is
10321    # assumed that no part of a normal pathname contains ";" but that should
10322    # okay in the real world where ";" in dirpaths is itself problematic.
10323    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10324  else
10325    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10326  fi
10327else
10328  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10329fi
10330need_lib_prefix=unknown
10331hardcode_into_libs=no
10332
10333# when you set need_version to no, make sure it does not cause -set_version
10334# flags to be left without arguments
10335need_version=unknown
10336
10337case $host_os in
10338aix3*)
10339  version_type=linux
10340  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10341  shlibpath_var=LIBPATH
10342
10343  # AIX 3 has no versioning support, so we append a major version to the name.
10344  soname_spec='${libname}${release}${shared_ext}$major'
10345  ;;
10346
10347aix4* | aix5*)
10348  version_type=linux
10349  need_lib_prefix=no
10350  need_version=no
10351  hardcode_into_libs=yes
10352  if test "$host_cpu" = ia64; then
10353    # AIX 5 supports IA64
10354    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10355    shlibpath_var=LD_LIBRARY_PATH
10356  else
10357    # With GCC up to 2.95.x, collect2 would create an import file
10358    # for dependence libraries.  The import file would start with
10359    # the line `#! .'.  This would cause the generated library to
10360    # depend on `.', always an invalid library.  This was fixed in
10361    # development snapshots of GCC prior to 3.0.
10362    case $host_os in
10363      aix4 | aix4.[01] | aix4.[01].*)
10364      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10365           echo ' yes '
10366           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10367        :
10368      else
10369        can_build_shared=no
10370      fi
10371      ;;
10372    esac
10373    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10374    # soname into executable. Probably we can add versioning support to
10375    # collect2, so additional links can be useful in future.
10376    if test "$aix_use_runtimelinking" = yes; then
10377      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10378      # instead of lib<name>.a to let people know that these are not
10379      # typical AIX shared libraries.
10380      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381    else
10382      # We preserve .a as extension for shared libraries through AIX4.2
10383      # and later when we are not doing run time linking.
10384      library_names_spec='${libname}${release}.a $libname.a'
10385      soname_spec='${libname}${release}${shared_ext}$major'
10386    fi
10387    shlibpath_var=LIBPATH
10388  fi
10389  ;;
10390
10391amigaos*)
10392  library_names_spec='$libname.ixlibrary $libname.a'
10393  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10394  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'
10395  ;;
10396
10397beos*)
10398  library_names_spec='${libname}${shared_ext}'
10399  dynamic_linker="$host_os ld.so"
10400  shlibpath_var=LIBRARY_PATH
10401  ;;
10402
10403bsdi[45]*)
10404  version_type=linux
10405  need_version=no
10406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10407  soname_spec='${libname}${release}${shared_ext}$major'
10408  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10409  shlibpath_var=LD_LIBRARY_PATH
10410  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10411  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10412  # the default ld.so.conf also contains /usr/contrib/lib and
10413  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10414  # libtool to hard-code these into programs
10415  ;;
10416
10417cygwin* | mingw* | pw32*)
10418  version_type=windows
10419  shrext_cmds=".dll"
10420  need_version=no
10421  need_lib_prefix=no
10422
10423  case $GCC,$host_os in
10424  yes,cygwin* | yes,mingw* | yes,pw32*)
10425    library_names_spec='$libname.dll.a'
10426    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10427    postinstall_cmds='base_file=`basename \${file}`~
10428      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10429      dldir=$destdir/`dirname \$dlpath`~
10430      test -d \$dldir || mkdir -p \$dldir~
10431      $install_prog $dir/$dlname \$dldir/$dlname~
10432      chmod a+x \$dldir/$dlname'
10433    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10434      dlpath=$dir/\$dldll~
10435       $rm \$dlpath'
10436    shlibpath_overrides_runpath=yes
10437
10438    case $host_os in
10439    cygwin*)
10440      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10441      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10442      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10443      ;;
10444    mingw*)
10445      # MinGW DLLs use traditional 'lib' prefix
10446      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10447      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10448      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10449        # It is most probably a Windows format PATH printed by
10450        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10451        # path with ; separators, and with drive letters. We can handle the
10452        # drive letters (cygwin fileutils understands them), so leave them,
10453        # especially as we might pass files found there to a mingw objdump,
10454        # which wouldn't understand a cygwinified path. Ahh.
10455        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10456      else
10457        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10458      fi
10459      ;;
10460    pw32*)
10461      # pw32 DLLs use 'pw' prefix rather than 'lib'
10462      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10463      ;;
10464    esac
10465    ;;
10466
10467  *)
10468    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10469    ;;
10470  esac
10471  dynamic_linker='Win32 ld.exe'
10472  # FIXME: first we should search . and the directory the executable is in
10473  shlibpath_var=PATH
10474  ;;
10475
10476darwin* | rhapsody*)
10477  dynamic_linker="$host_os dyld"
10478  version_type=darwin
10479  need_lib_prefix=no
10480  need_version=no
10481  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10482  soname_spec='${libname}${release}${major}$shared_ext'
10483  shlibpath_overrides_runpath=yes
10484  shlibpath_var=DYLD_LIBRARY_PATH
10485  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10486  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10487  if test "$GCC" = yes; then
10488    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"`
10489  else
10490    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10491  fi
10492  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10493  ;;
10494
10495dgux*)
10496  version_type=linux
10497  need_lib_prefix=no
10498  need_version=no
10499  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10500  soname_spec='${libname}${release}${shared_ext}$major'
10501  shlibpath_var=LD_LIBRARY_PATH
10502  ;;
10503
10504freebsd1*)
10505  dynamic_linker=no
10506  ;;
10507
10508kfreebsd*-gnu)
10509  version_type=linux
10510  need_lib_prefix=no
10511  need_version=no
10512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10513  soname_spec='${libname}${release}${shared_ext}$major'
10514  shlibpath_var=LD_LIBRARY_PATH
10515  shlibpath_overrides_runpath=no
10516  hardcode_into_libs=yes
10517  dynamic_linker='GNU ld.so'
10518  ;;
10519
10520freebsd* | dragonfly*)
10521  # DragonFly does not have aout.  When/if they implement a new
10522  # versioning mechanism, adjust this.
10523  if test -x /usr/bin/objformat; then
10524    objformat=`/usr/bin/objformat`
10525  else
10526    case $host_os in
10527    freebsd[123]*) objformat=aout ;;
10528    *) objformat=elf ;;
10529    esac
10530  fi
10531  version_type=freebsd-$objformat
10532  case $version_type in
10533    freebsd-elf*)
10534      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10535      need_version=no
10536      need_lib_prefix=no
10537      ;;
10538    freebsd-*)
10539      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10540      need_version=yes
10541      ;;
10542  esac
10543  shlibpath_var=LD_LIBRARY_PATH
10544  case $host_os in
10545  freebsd2*)
10546    shlibpath_overrides_runpath=yes
10547    ;;
10548  freebsd3.[01]* | freebsdelf3.[01]*)
10549    shlibpath_overrides_runpath=yes
10550    hardcode_into_libs=yes
10551    ;;
10552  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10553  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10554    shlibpath_overrides_runpath=no
10555    hardcode_into_libs=yes
10556    ;;
10557  freebsd*) # from 4.6 on
10558    shlibpath_overrides_runpath=yes
10559    hardcode_into_libs=yes
10560    ;;
10561  esac
10562  ;;
10563
10564gnu*)
10565  version_type=linux
10566  need_lib_prefix=no
10567  need_version=no
10568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10569  soname_spec='${libname}${release}${shared_ext}$major'
10570  shlibpath_var=LD_LIBRARY_PATH
10571  hardcode_into_libs=yes
10572  ;;
10573
10574hpux9* | hpux10* | hpux11*)
10575  # Give a soname corresponding to the major version so that dld.sl refuses to
10576  # link against other versions.
10577  version_type=sunos
10578  need_lib_prefix=no
10579  need_version=no
10580  case $host_cpu in
10581  ia64*)
10582    shrext_cmds='.so'
10583    hardcode_into_libs=yes
10584    dynamic_linker="$host_os dld.so"
10585    shlibpath_var=LD_LIBRARY_PATH
10586    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10587    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588    soname_spec='${libname}${release}${shared_ext}$major'
10589    if test "X$HPUX_IA64_MODE" = X32; then
10590      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10591    else
10592      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10593    fi
10594    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10595    ;;
10596   hppa*64*)
10597     shrext_cmds='.sl'
10598     hardcode_into_libs=yes
10599     dynamic_linker="$host_os dld.sl"
10600     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10601     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10603     soname_spec='${libname}${release}${shared_ext}$major'
10604     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10605     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10606     ;;
10607   *)
10608    shrext_cmds='.sl'
10609    dynamic_linker="$host_os dld.sl"
10610    shlibpath_var=SHLIB_PATH
10611    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613    soname_spec='${libname}${release}${shared_ext}$major'
10614    ;;
10615  esac
10616  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10617  postinstall_cmds='chmod 555 $lib'
10618  ;;
10619
10620interix3*)
10621  version_type=linux
10622  need_lib_prefix=no
10623  need_version=no
10624  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10625  soname_spec='${libname}${release}${shared_ext}$major'
10626  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10627  shlibpath_var=LD_LIBRARY_PATH
10628  shlibpath_overrides_runpath=no
10629  hardcode_into_libs=yes
10630  ;;
10631
10632irix5* | irix6* | nonstopux*)
10633  case $host_os in
10634    nonstopux*) version_type=nonstopux ;;
10635    *)
10636        if test "$lt_cv_prog_gnu_ld" = yes; then
10637                version_type=linux
10638        else
10639                version_type=irix
10640        fi ;;
10641  esac
10642  need_lib_prefix=no
10643  need_version=no
10644  soname_spec='${libname}${release}${shared_ext}$major'
10645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10646  case $host_os in
10647  irix5* | nonstopux*)
10648    libsuff= shlibsuff=
10649    ;;
10650  *)
10651    case $LD in # libtool.m4 will add one of these switches to LD
10652    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10653      libsuff= shlibsuff= libmagic=32-bit;;
10654    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10655      libsuff=32 shlibsuff=N32 libmagic=N32;;
10656    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10657      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10658    *) libsuff= shlibsuff= libmagic=never-match;;
10659    esac
10660    ;;
10661  esac
10662  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10663  shlibpath_overrides_runpath=no
10664  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10665  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10666  hardcode_into_libs=yes
10667  ;;
10668
10669# No shared lib support for Linux oldld, aout, or coff.
10670linux*oldld* | linux*aout* | linux*coff*)
10671  dynamic_linker=no
10672  ;;
10673
10674# This must be Linux ELF.
10675linux*)
10676  version_type=linux
10677  need_lib_prefix=no
10678  need_version=no
10679  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680  soname_spec='${libname}${release}${shared_ext}$major'
10681  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10682  shlibpath_var=LD_LIBRARY_PATH
10683  shlibpath_overrides_runpath=no
10684  # This implies no fast_install, which is unacceptable.
10685  # Some rework will be needed to allow for fast_install
10686  # before this can be enabled.
10687  hardcode_into_libs=yes
10688
10689  # Append ld.so.conf contents to the search path
10690  if test -f /etc/ld.so.conf; then
10691    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' ' '`
10692    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10693  fi
10694
10695  # We used to test for /lib/ld.so.1 and disable shared libraries on
10696  # powerpc, because MkLinux only supported shared libraries with the
10697  # GNU dynamic linker.  Since this was broken with cross compilers,
10698  # most powerpc-linux boxes support dynamic linking these days and
10699  # people can always --disable-shared, the test was removed, and we
10700  # assume the GNU/Linux dynamic linker is in use.
10701  dynamic_linker='GNU/Linux ld.so'
10702  ;;
10703
10704knetbsd*-gnu)
10705  version_type=linux
10706  need_lib_prefix=no
10707  need_version=no
10708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10709  soname_spec='${libname}${release}${shared_ext}$major'
10710  shlibpath_var=LD_LIBRARY_PATH
10711  shlibpath_overrides_runpath=no
10712  hardcode_into_libs=yes
10713  dynamic_linker='GNU ld.so'
10714  ;;
10715
10716netbsd*)
10717  version_type=sunos
10718  need_lib_prefix=no
10719  need_version=no
10720  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10721    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10722    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10723    dynamic_linker='NetBSD (a.out) ld.so'
10724  else
10725    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10726    soname_spec='${libname}${release}${shared_ext}$major'
10727    dynamic_linker='NetBSD ld.elf_so'
10728  fi
10729  shlibpath_var=LD_LIBRARY_PATH
10730  shlibpath_overrides_runpath=yes
10731  hardcode_into_libs=yes
10732  ;;
10733
10734newsos6)
10735  version_type=linux
10736  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737  shlibpath_var=LD_LIBRARY_PATH
10738  shlibpath_overrides_runpath=yes
10739  ;;
10740
10741nto-qnx*)
10742  version_type=linux
10743  need_lib_prefix=no
10744  need_version=no
10745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746  soname_spec='${libname}${release}${shared_ext}$major'
10747  shlibpath_var=LD_LIBRARY_PATH
10748  shlibpath_overrides_runpath=yes
10749  ;;
10750
10751openbsd*)
10752  version_type=sunos
10753  sys_lib_dlsearch_path_spec="/usr/lib"
10754  need_lib_prefix=no
10755  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10756  case $host_os in
10757    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10758    *)                         need_version=no  ;;
10759  esac
10760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10761  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10762  shlibpath_var=LD_LIBRARY_PATH
10763  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10764    case $host_os in
10765      openbsd2.[89] | openbsd2.[89].*)
10766        shlibpath_overrides_runpath=no
10767        ;;
10768      *)
10769        shlibpath_overrides_runpath=yes
10770        ;;
10771      esac
10772  else
10773    shlibpath_overrides_runpath=yes
10774  fi
10775  ;;
10776
10777os2*)
10778  libname_spec='$name'
10779  shrext_cmds=".dll"
10780  need_lib_prefix=no
10781  library_names_spec='$libname${shared_ext} $libname.a'
10782  dynamic_linker='OS/2 ld.exe'
10783  shlibpath_var=LIBPATH
10784  ;;
10785
10786osf3* | osf4* | osf5*)
10787  version_type=osf
10788  need_lib_prefix=no
10789  need_version=no
10790  soname_spec='${libname}${release}${shared_ext}$major'
10791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792