source: ThirdParty/Blas/trunk/configure @ 1665

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

add prefix to COIN_PKG_CONFIG_PATH, also if it does not exists at configure time

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