source: ThirdParty/Blas/stable/1.1/configure @ 1930

Last change on this file since 1930 was 1930, checked in by stefan, 10 years ago

temporarily committing release candidate

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