source: ThirdParty/Blas/trunk/configure @ 1602

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

rerun autotools

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