source: ThirdParty/Blas/trunk/configure @ 238

Last change on this file since 238 was 238, checked in by andreasw, 15 years ago

use test -r to check existence of libtool script, not AC_CHECK_FILE, since that does not seem to work for cross compilation

  • Property svn:executable set to *
File size: 763.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyBlas 0.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyBlas'
431PACKAGE_TARNAME='thirdpartyblas'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyBlas 0.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="dgemm.f"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
954ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
955ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
956ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
957ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
958ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
959ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
960ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
961ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
962ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
963ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
964ac_env_F77_set=${F77+set}
965ac_env_F77_value=$F77
966ac_cv_env_F77_set=${F77+set}
967ac_cv_env_F77_value=$F77
968ac_env_FFLAGS_set=${FFLAGS+set}
969ac_env_FFLAGS_value=$FFLAGS
970ac_cv_env_FFLAGS_set=${FFLAGS+set}
971ac_cv_env_FFLAGS_value=$FFLAGS
972ac_env_MPIF77_set=${MPIF77+set}
973ac_env_MPIF77_value=$MPIF77
974ac_cv_env_MPIF77_set=${MPIF77+set}
975ac_cv_env_MPIF77_value=$MPIF77
976ac_env_CPP_set=${CPP+set}
977ac_env_CPP_value=$CPP
978ac_cv_env_CPP_set=${CPP+set}
979ac_cv_env_CPP_value=$CPP
980ac_env_CXX_set=${CXX+set}
981ac_env_CXX_value=$CXX
982ac_cv_env_CXX_set=${CXX+set}
983ac_cv_env_CXX_value=$CXX
984ac_env_CXXFLAGS_set=${CXXFLAGS+set}
985ac_env_CXXFLAGS_value=$CXXFLAGS
986ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_cv_env_CXXFLAGS_value=$CXXFLAGS
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992
993#
994# Report the --help message.
995#
996if test "$ac_init_help" = "long"; then
997  # Omit some internal or obsolete options to make the list less imposing.
998  # This message is too long to be a string in the A/UX 3.1 sh.
999  cat <<_ACEOF
1000\`configure' configures ThirdPartyBlas 0.0 to adapt to many kinds of systems.
1001
1002Usage: $0 [OPTION]... [VAR=VALUE]...
1003
1004To assign environment variables (e.g., CC, CFLAGS...), specify them as
1005VAR=VALUE.  See below for descriptions of some of the useful variables.
1006
1007Defaults for the options are specified in brackets.
1008
1009Configuration:
1010  -h, --help              display this help and exit
1011      --help=short        display options specific to this package
1012      --help=recursive    display the short help of all the included packages
1013  -V, --version           display version information and exit
1014  -q, --quiet, --silent   do not print \`checking...' messages
1015      --cache-file=FILE   cache test results in FILE [disabled]
1016  -C, --config-cache      alias for \`--cache-file=config.cache'
1017  -n, --no-create         do not create output files
1018      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1019
1020_ACEOF
1021
1022  cat <<_ACEOF
1023Installation directories:
1024  --prefix=PREFIX         install architecture-independent files in PREFIX
1025                          [$ac_default_prefix]
1026  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1027                          [PREFIX]
1028
1029By default, \`make install' will install all the files in
1030\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1031an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1032for instance \`--prefix=\$HOME'.
1033
1034For better control, use the options below.
1035
1036Fine tuning of the installation directories:
1037  --bindir=DIR           user executables [EPREFIX/bin]
1038  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1039  --libexecdir=DIR       program executables [EPREFIX/libexec]
1040  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1041  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1042  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1043  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1044  --libdir=DIR           object code libraries [EPREFIX/lib]
1045  --includedir=DIR       C header files [PREFIX/include]
1046  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1047  --infodir=DIR          info documentation [PREFIX/info]
1048  --mandir=DIR           man documentation [PREFIX/man]
1049_ACEOF
1050
1051  cat <<\_ACEOF
1052
1053Program names:
1054  --program-prefix=PREFIX            prepend PREFIX to installed program names
1055  --program-suffix=SUFFIX            append SUFFIX to installed program names
1056  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1057
1058System types:
1059  --build=BUILD     configure for building on BUILD [guessed]
1060  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1061_ACEOF
1062fi
1063
1064if test -n "$ac_init_help"; then
1065  case $ac_init_help in
1066     short | recursive ) echo "Configuration of ThirdPartyBlas 0.0:";;
1067   esac
1068  cat <<\_ACEOF
1069
1070Optional Features:
1071  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1072  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1073  --enable-debug          compile all projects with debug options tests
1074  --enable-debug-blas compile this project (Blas) with debug options
1075  --enable-doscompile     Under Cygwin, compile so that executables run under
1076                          DOS. Set to mingw to use gcc/g++/ld with
1077                          -mno-cygwin. Set to msvc to use cl/link. Default
1078                          when mentioned: mingw. Default when not mentioned:
1079                          disabled.
1080  --enable-static[=PKGS]
1081                          build static libraries [default=no]
1082  --disable-dependency-tracking  speeds up one-time build
1083  --enable-dependency-tracking   do not reject slow dependency extractors
1084  --enable-maintainer-mode  enable make rules and dependencies not useful
1085                          (and sometimes confusing) to the casual installer
1086  --enable-shared[=PKGS]
1087                          build shared libraries [default=yes]
1088  --enable-fast-install[=PKGS]
1089                          optimize for fast installation [default=yes]
1090  --disable-libtool-lock  avoid locking (might break parallel builds)
1091
1092Optional Packages:
1093  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1094  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1095  --with-blas-verbosity specify the debug verbosity level for project Blas
1096  --with-blas-checklevel specify the sanity check level for project Blas
1097  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098  --with-pic              try to use only PIC/non-PIC objects [default=use
1099                          both]
1100  --with-tags[=TAGS]
1101                          include additional configurations [automatic]
1102  --with-blas             specify BLAS library (or BUILD for compilation)
1103
1104Some influential environment variables:
1105  CDEFS       Additional -D flags to be used when compiling C code.
1106  ADD_CFLAGS  Additional C compiler options
1107  DBG_CFLAGS  Debug C compiler options
1108  OPT_CFLAGS  Optimize C compiler options
1109  CC          C compiler command
1110  CFLAGS      C compiler flags
1111  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1112              nonstandard directory <lib dir>
1113  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114              headers in a nonstandard directory <include dir>
1115  MPICC       C MPI Compiler
1116  ADD_FFLAGS  Additional Fortran compiler options
1117  DBG_FFLAGS  Debug Fortran compiler options
1118  OPT_FFLAGS  Optimize Fortran compiler options
1119  F77         Fortran 77 compiler command
1120  FFLAGS      Fortran 77 compiler flags
1121  MPIF77      Fortran MPI Compiler
1122  CPP         C preprocessor
1123  CXX         C++ compiler command
1124  CXXFLAGS    C++ compiler flags
1125  CXXCPP      C++ preprocessor
1126
1127Use these variables to override the choices made by `configure' or to help
1128it to find libraries and programs with nonstandard names/locations.
1129
1130Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1131_ACEOF
1132fi
1133
1134if test "$ac_init_help" = "recursive"; then
1135  # If there are subdirs, report their specific --help.
1136  ac_popdir=`pwd`
1137  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1138    test -d $ac_dir || continue
1139    ac_builddir=.
1140
1141if test "$ac_dir" != .; then
1142  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1143  # A "../" for each directory in $ac_dir_suffix.
1144  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1145else
1146  ac_dir_suffix= ac_top_builddir=
1147fi
1148
1149case $srcdir in
1150  .)  # No --srcdir option.  We are building in place.
1151    ac_srcdir=.
1152    if test -z "$ac_top_builddir"; then
1153       ac_top_srcdir=.
1154    else
1155       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1156    fi ;;
1157  [\\/]* | ?:[\\/]* )  # Absolute path.
1158    ac_srcdir=$srcdir$ac_dir_suffix;
1159    ac_top_srcdir=$srcdir ;;
1160  *) # Relative path.
1161    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1162    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1163esac
1164
1165# Do not use `cd foo && pwd` to compute absolute paths, because
1166# the directories may not exist.
1167case `pwd` in
1168.) ac_abs_builddir="$ac_dir";;
1169*)
1170  case "$ac_dir" in
1171  .) ac_abs_builddir=`pwd`;;
1172  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1173  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1174  esac;;
1175esac
1176case $ac_abs_builddir in
1177.) ac_abs_top_builddir=${ac_top_builddir}.;;
1178*)
1179  case ${ac_top_builddir}. in
1180  .) ac_abs_top_builddir=$ac_abs_builddir;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1182  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_srcdir=$ac_srcdir;;
1187*)
1188  case $ac_srcdir in
1189  .) ac_abs_srcdir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1191  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_top_srcdir=$ac_top_srcdir;;
1196*)
1197  case $ac_top_srcdir in
1198  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1200  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1201  esac;;
1202esac
1203
1204    cd $ac_dir
1205    # Check for guested configure; otherwise get Cygnus style configure.
1206    if test -f $ac_srcdir/configure.gnu; then
1207      echo
1208      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1209    elif test -f $ac_srcdir/configure; then
1210      echo
1211      $SHELL $ac_srcdir/configure  --help=recursive
1212    elif test -f $ac_srcdir/configure.ac ||
1213           test -f $ac_srcdir/configure.in; then
1214      echo
1215      $ac_configure --help
1216    else
1217      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1218    fi
1219    cd $ac_popdir
1220  done
1221fi
1222
1223test -n "$ac_init_help" && exit 0
1224if $ac_init_version; then
1225  cat <<\_ACEOF
1226ThirdPartyBlas configure 0.0
1227generated by GNU Autoconf 2.59
1228
1229Copyright (C) 2003 Free Software Foundation, Inc.
1230This configure script is free software; the Free Software Foundation
1231gives unlimited permission to copy, distribute and modify it.
1232
1233
1234Copyright 2006 International Business Machines and others.
1235All Rights Reserved.
1236This file is part of the open source package Coin which is distributed
1237under the Common Public License.
1238_ACEOF
1239  exit 0
1240fi
1241exec 5>config.log
1242cat >&5 <<_ACEOF
1243This file contains any messages produced by compilers while
1244running configure, to aid debugging if configure makes a mistake.
1245
1246It was created by ThirdPartyBlas $as_me 0.0, which was
1247generated by GNU Autoconf 2.59.  Invocation command line was
1248
1249  $ $0 $@
1250
1251_ACEOF
1252{
1253cat <<_ASUNAME
1254## --------- ##
1255## Platform. ##
1256## --------- ##
1257
1258hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1259uname -m = `(uname -m) 2>/dev/null || echo unknown`
1260uname -r = `(uname -r) 2>/dev/null || echo unknown`
1261uname -s = `(uname -s) 2>/dev/null || echo unknown`
1262uname -v = `(uname -v) 2>/dev/null || echo unknown`
1263
1264/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1265/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1266
1267/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1268/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1269/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1270hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1271/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1272/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1273/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1274
1275_ASUNAME
1276
1277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1278for as_dir in $PATH
1279do
1280  IFS=$as_save_IFS
1281  test -z "$as_dir" && as_dir=.
1282  echo "PATH: $as_dir"
1283done
1284
1285} >&5
1286
1287cat >&5 <<_ACEOF
1288
1289
1290## ----------- ##
1291## Core tests. ##
1292## ----------- ##
1293
1294_ACEOF
1295
1296
1297# Keep a trace of the command line.
1298# Strip out --no-create and --no-recursion so they do not pile up.
1299# Strip out --silent because we don't want to record it for future runs.
1300# Also quote any args containing shell meta-characters.
1301# Make two passes to allow for proper duplicate-argument suppression.
1302ac_configure_args=
1303ac_configure_args0=
1304ac_configure_args1=
1305ac_sep=
1306ac_must_keep_next=false
1307for ac_pass in 1 2
1308do
1309  for ac_arg
1310  do
1311    case $ac_arg in
1312    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1313    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314    | -silent | --silent | --silen | --sile | --sil)
1315      continue ;;
1316    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1317      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1318    esac
1319    case $ac_pass in
1320    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1321    2)
1322      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1323      if test $ac_must_keep_next = true; then
1324        ac_must_keep_next=false # Got value, back to normal.
1325      else
1326        case $ac_arg in
1327          *=* | --config-cache | -C | -disable-* | --disable-* \
1328          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1329          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1330          | -with-* | --with-* | -without-* | --without-* | --x)
1331            case "$ac_configure_args0 " in
1332              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1333            esac
1334            ;;
1335          -* ) ac_must_keep_next=true ;;
1336        esac
1337      fi
1338      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1339      # Get rid of the leading space.
1340      ac_sep=" "
1341      ;;
1342    esac
1343  done
1344done
1345$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1346$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1347
1348# When interrupted or exit'd, cleanup temporary files, and complete
1349# config.log.  We remove comments because anyway the quotes in there
1350# would cause problems or look ugly.
1351# WARNING: Be sure not to use single quotes in there, as some shells,
1352# such as our DU 5.0 friend, will then `close' the trap.
1353trap 'exit_status=$?
1354  # Save into config.log some information that might help in debugging.
1355  {
1356    echo
1357
1358    cat <<\_ASBOX
1359## ---------------- ##
1360## Cache variables. ##
1361## ---------------- ##
1362_ASBOX
1363    echo
1364    # The following way of writing the cache mishandles newlines in values,
1365{
1366  (set) 2>&1 |
1367    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1368    *ac_space=\ *)
1369      sed -n \
1370        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1371          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1372      ;;
1373    *)
1374      sed -n \
1375        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1376      ;;
1377    esac;
1378}
1379    echo
1380
1381    cat <<\_ASBOX
1382## ----------------- ##
1383## Output variables. ##
1384## ----------------- ##
1385_ASBOX
1386    echo
1387    for ac_var in $ac_subst_vars
1388    do
1389      eval ac_val=$`echo $ac_var`
1390      echo "$ac_var='"'"'$ac_val'"'"'"
1391    done | sort
1392    echo
1393
1394    if test -n "$ac_subst_files"; then
1395      cat <<\_ASBOX
1396## ------------- ##
1397## Output files. ##
1398## ------------- ##
1399_ASBOX
1400      echo
1401      for ac_var in $ac_subst_files
1402      do
1403        eval ac_val=$`echo $ac_var`
1404        echo "$ac_var='"'"'$ac_val'"'"'"
1405      done | sort
1406      echo
1407    fi
1408
1409    if test -s confdefs.h; then
1410      cat <<\_ASBOX
1411## ----------- ##
1412## confdefs.h. ##
1413## ----------- ##
1414_ASBOX
1415      echo
1416      sed "/^$/d" confdefs.h | sort
1417      echo
1418    fi
1419    test "$ac_signal" != 0 &&
1420      echo "$as_me: caught signal $ac_signal"
1421    echo "$as_me: exit $exit_status"
1422  } >&5
1423  rm -f core *.core &&
1424  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1425    exit $exit_status
1426     ' 0
1427for ac_signal in 1 2 13 15; do
1428  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1429done
1430ac_signal=0
1431
1432# confdefs.h avoids OS command line length limits that DEFS can exceed.
1433rm -rf conftest* confdefs.h
1434# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1435echo >confdefs.h
1436
1437# Predefined preprocessor variables.
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_NAME "$PACKAGE_NAME"
1441_ACEOF
1442
1443
1444cat >>confdefs.h <<_ACEOF
1445#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1446_ACEOF
1447
1448
1449cat >>confdefs.h <<_ACEOF
1450#define PACKAGE_VERSION "$PACKAGE_VERSION"
1451_ACEOF
1452
1453
1454cat >>confdefs.h <<_ACEOF
1455#define PACKAGE_STRING "$PACKAGE_STRING"
1456_ACEOF
1457
1458
1459cat >>confdefs.h <<_ACEOF
1460#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1461_ACEOF
1462
1463
1464# Let the site file select an alternate cache file if it wants to.
1465# Prefer explicitly selected file to automatically selected ones.
1466if test -z "$CONFIG_SITE"; then
1467  if test "x$prefix" != xNONE; then
1468    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1469  else
1470    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1471  fi
1472fi
1473for ac_site_file in $CONFIG_SITE; do
1474  if test -r "$ac_site_file"; then
1475    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1476echo "$as_me: loading site script $ac_site_file" >&6;}
1477    sed 's/^/| /' "$ac_site_file" >&5
1478    . "$ac_site_file"
1479  fi
1480done
1481
1482if test -r "$cache_file"; then
1483  # Some versions of bash will fail to source /dev/null (special
1484  # files actually), so we avoid doing that.
1485  if test -f "$cache_file"; then
1486    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1487echo "$as_me: loading cache $cache_file" >&6;}
1488    case $cache_file in
1489      [\\/]* | ?:[\\/]* ) . $cache_file;;
1490      *)                      . ./$cache_file;;
1491    esac
1492  fi
1493else
1494  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1495echo "$as_me: creating cache $cache_file" >&6;}
1496  >$cache_file
1497fi
1498
1499# Check that the precious variables saved in the cache have kept the same
1500# value.
1501ac_cache_corrupted=false
1502for ac_var in `(set) 2>&1 |
1503               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1504  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1505  eval ac_new_set=\$ac_env_${ac_var}_set
1506  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1507  eval ac_new_val="\$ac_env_${ac_var}_value"
1508  case $ac_old_set,$ac_new_set in
1509    set,)
1510      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1511echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1512      ac_cache_corrupted=: ;;
1513    ,set)
1514      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1515echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1516      ac_cache_corrupted=: ;;
1517    ,);;
1518    *)
1519      if test "x$ac_old_val" != "x$ac_new_val"; then
1520        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1521echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1522        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1523echo "$as_me:   former value:  $ac_old_val" >&2;}
1524        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1525echo "$as_me:   current value: $ac_new_val" >&2;}
1526        ac_cache_corrupted=:
1527      fi;;
1528  esac
1529  # Pass precious variables to config.status.
1530  if test "$ac_new_set" = set; then
1531    case $ac_new_val in
1532    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1533      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1534    *) ac_arg=$ac_var=$ac_new_val ;;
1535    esac
1536    case " $ac_configure_args " in
1537      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1538      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1539    esac
1540  fi
1541done
1542if $ac_cache_corrupted; then
1543  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1544echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1545  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1546echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1547   { (exit 1); exit 1; }; }
1548fi
1549
1550ac_ext=c
1551ac_cpp='$CPP $CPPFLAGS'
1552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1554ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585# List one file in the package so that the configure script can test
1586# whether the package is actually there
1587
1588
1589# Where should everything be installed by default?  Here, we want it
1590# to be installed directly in 'bin', 'lib', 'include' subdirectories
1591# of the directory where configure is run.  The default would be
1592# /usr/local.
1593
1594
1595# Initialize the ADDLIBS variable
1596ADDLIBS="-lm $LIBS"
1597
1598
1599# Initialize the FADDLIBS variable (which is to be used with a fortran
1600# compiler and will not include FLIBS)
1601FADDLIBS="$LIBS"
1602
1603
1604# A useful makefile conditional that is always false
1605
1606
1607if false; then
1608  ALWAYS_FALSE_TRUE=
1609  ALWAYS_FALSE_FALSE='#'
1610else
1611  ALWAYS_FALSE_TRUE='#'
1612  ALWAYS_FALSE_FALSE=
1613fi
1614
1615
1616# We set the following variable so that we know later in AC_COIN_FINALIZE
1617# that we are in a project main directory
1618coin_projectdir=yes
1619
1620
1621#############################################################################
1622#                         Standard build tool stuff                         #
1623#############################################################################
1624
1625# Get the system type
1626ac_aux_dir=
1627for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1628  if test -f $ac_dir/install-sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install-sh -c"
1631    break
1632  elif test -f $ac_dir/install.sh; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/install.sh -c"
1635    break
1636  elif test -f $ac_dir/shtool; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/shtool install -c"
1639    break
1640  fi
1641done
1642if test -z "$ac_aux_dir"; then
1643  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1644echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1645   { (exit 1); exit 1; }; }
1646fi
1647ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1648ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1649ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1650
1651# Make sure we can run config.sub.
1652$ac_config_sub sun4 >/dev/null 2>&1 ||
1653  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1654echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657echo "$as_me:$LINENO: checking build system type" >&5
1658echo $ECHO_N "checking build system type... $ECHO_C" >&6
1659if test "${ac_cv_build+set}" = set; then
1660  echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662  ac_cv_build_alias=$build_alias
1663test -z "$ac_cv_build_alias" &&
1664  ac_cv_build_alias=`$ac_config_guess`
1665test -z "$ac_cv_build_alias" &&
1666  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1667echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1668   { (exit 1); exit 1; }; }
1669ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1670  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1671echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674fi
1675echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1676echo "${ECHO_T}$ac_cv_build" >&6
1677build=$ac_cv_build
1678build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1679build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1680build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681
1682
1683
1684# Check if user wants to produce debugging code
1685
1686echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1687echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1688
1689# Check whether --enable-debug or --disable-debug was given.
1690if test "${enable_debug+set}" = set; then
1691  enableval="$enable_debug"
1692  case "${enableval}" in
1693   yes) coin_debug_compile=true
1694        enable_shared=no
1695        ;;
1696   no)  coin_debug_compile=false
1697        ;;
1698   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1699echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1700   { (exit 1); exit 1; }; }
1701        ;;
1702esac
1703else
1704  coin_debug_compile=false
1705fi;
1706
1707# Check whether --enable-debug-blas or --disable-debug-blas was given.
1708if test "${enable_debug_blas+set}" = set; then
1709  enableval="$enable_debug_blas"
1710  case "${enableval}" in
1711    yes) coin_debug_compile=true
1712         enable_shared=no
1713         ;;
1714    no)  coin_debug_compile=false
1715         ;;
1716    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-blas" >&5
1717echo "$as_me: error: bad value ${enableval} for --enable-debug-blas" >&2;}
1718   { (exit 1); exit 1; }; }
1719         ;;
1720 esac
1721else
1722  :
1723fi;
1724
1725 # m4_ifvaln([Blas],
1726
1727if test $coin_debug_compile = true; then
1728  echo "$as_me:$LINENO: result: yes" >&5
1729echo "${ECHO_T}yes" >&6
1730else
1731  echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733fi
1734
1735
1736# Check whether --with-blas-verbosity or --without-blas-verbosity was given.
1737if test "${with_blas_verbosity+set}" = set; then
1738  withval="$with_blas_verbosity"
1739  coin_blas_verbosity=$withval
1740else
1741  coin_blas_verbosity=0
1742fi;
1743
1744cat >>confdefs.h <<_ACEOF
1745#define COIN_BLAS_VERBOSITY $coin_blas_verbosity
1746_ACEOF
1747
1748
1749
1750# Check whether --with-blas-checklevel or --without-blas-checklevel was given.
1751if test "${with_blas_checklevel+set}" = set; then
1752  withval="$with_blas_checklevel"
1753  coin_blas_checklevel=$withval
1754else
1755  coin_blas_checklevel=0
1756fi;
1757
1758cat >>confdefs.h <<_ACEOF
1759#define COIN_BLAS_CHECKLEVEL $coin_blas_checklevel
1760_ACEOF
1761
1762
1763# We use the following variable to have a string with the upper case
1764# version of the project name
1765COIN_PRJCT=BLAS
1766
1767
1768 # m4_ifvaln([Blas],
1769
1770
1771
1772# Get the name of the Fortran compiler and appropriate compiler options
1773case $build in
1774  *-mingw*)
1775    if test "${LD+set}" = set; then :; else
1776      LD=link
1777    fi
1778    ;;
1779 esac
1780 case $enable_doscompile in
1781   msvc)
1782     if test "x${LD+set}" = xset; then :; else
1783       LD=link
1784     fi
1785     ;;
1786 esac
1787
1788
1789 # Check whether --enable-doscompile or --disable-doscompile was given.
1790if test "${enable_doscompile+set}" = set; then
1791  enableval="$enable_doscompile"
1792  if test "$enable_doscompile" != no; then
1793     case $build in
1794       *-cygwin*) ;;
1795       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1796echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1797   { (exit 1); exit 1; }; } ;;
1798     esac
1799   fi
1800else
1801  enable_doscompile=no
1802fi;
1803 case "$enable_doscompile" in
1804   msvc|mingw|no) ;;
1805   yes) enable_doscompile=mingw ;;
1806   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1807                    Try configure --help=recursive." >&5
1808echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1809                    Try configure --help=recursive." >&2;}
1810   { (exit 1); exit 1; }; }
1811      ;;
1812  esac
1813  if test "$enable_doscompile" != no ; then
1814    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1815echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1816  fi
1817
1818
1819
1820
1821ac_ext=c
1822ac_cpp='$CPP $CPPFLAGS'
1823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826
1827
1828# For consistency, we set the C compiler to the same value of the C++
1829# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1830if test x"$CXX" != x; then
1831  case "$CXX" in
1832    cl* | */cl* | CL* | */CL*)
1833      if test x"$CC" = x; then
1834        CC="$CXX"
1835        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1836echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1837      fi
1838      ;;
1839  esac
1840fi
1841
1842
1843
1844
1845
1846
1847coin_has_cc=yes
1848
1849save_cflags="$CFLAGS"
1850# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1851# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1852# is likely to be a non-functional shell. But many installations will have
1853# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1854case $build in
1855  *-cygwin* | *-mingw*)
1856             if test "$enable_doscompile" = msvc ; then
1857               comps="cl"
1858             else
1859               comps="gcc cl"
1860             fi ;;
1861  sparc-sun-solaris*)
1862             comps="cc xlc gcc pgcc icc" ;;
1863  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1864  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1865esac
1866
1867# We delete the cached value, since the test might not have been
1868# performed with our choice of compilers earlier
1869$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1870# AC_MSG_NOTICE([C compiler candidates: $comps])
1871ac_ext=c
1872ac_cpp='$CPP $CPPFLAGS'
1873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876if test -n "$ac_tool_prefix"; then
1877  for ac_prog in $comps
1878  do
1879    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1880set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_CC+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$CC"; then
1887  ac_cv_prog_CC="$CC" # Let the user override the test.
1888else
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  test -z "$as_dir" && as_dir=.
1894  for ac_exec_ext in '' $ac_executable_extensions; do
1895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898    break 2
1899  fi
1900done
1901done
1902
1903fi
1904fi
1905CC=$ac_cv_prog_CC
1906if test -n "$CC"; then
1907  echo "$as_me:$LINENO: result: $CC" >&5
1908echo "${ECHO_T}$CC" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914    test -n "$CC" && break
1915  done
1916fi
1917if test -z "$CC"; then
1918  ac_ct_CC=$CC
1919  for ac_prog in $comps
1920do
1921  # Extract the first word of "$ac_prog", so it can be a program name with args.
1922set dummy $ac_prog; ac_word=$2
1923echo "$as_me:$LINENO: checking for $ac_word" >&5
1924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1926  echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928  if test -n "$ac_ct_CC"; then
1929  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1930else
1931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932for as_dir in $PATH
1933do
1934  IFS=$as_save_IFS
1935  test -z "$as_dir" && as_dir=.
1936  for ac_exec_ext in '' $ac_executable_extensions; do
1937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938    ac_cv_prog_ac_ct_CC="$ac_prog"
1939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940    break 2
1941  fi
1942done
1943done
1944
1945fi
1946fi
1947ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948if test -n "$ac_ct_CC"; then
1949  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950echo "${ECHO_T}$ac_ct_CC" >&6
1951else
1952  echo "$as_me:$LINENO: result: no" >&5
1953echo "${ECHO_T}no" >&6
1954fi
1955
1956  test -n "$ac_ct_CC" && break
1957done
1958
1959  CC=$ac_ct_CC
1960fi
1961
1962
1963test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1964See \`config.log' for more details." >&5
1965echo "$as_me: error: no acceptable C compiler found in \$PATH
1966See \`config.log' for more details." >&2;}
1967   { (exit 1); exit 1; }; }
1968
1969# Provide some information about the compiler.
1970echo "$as_me:$LINENO:" \
1971     "checking for C compiler version" >&5
1972ac_compiler=`set X $ac_compile; echo $2`
1973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1974  (eval $ac_compiler --version </dev/null >&5) 2>&5
1975  ac_status=$?
1976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977  (exit $ac_status); }
1978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1979  (eval $ac_compiler -v </dev/null >&5) 2>&5
1980  ac_status=$?
1981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982  (exit $ac_status); }
1983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1984  (eval $ac_compiler -V </dev/null >&5) 2>&5
1985  ac_status=$?
1986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987  (exit $ac_status); }
1988
1989cat >conftest.$ac_ext <<_ACEOF
1990/* confdefs.h.  */
1991_ACEOF
1992cat confdefs.h >>conftest.$ac_ext
1993cat >>conftest.$ac_ext <<_ACEOF
1994/* end confdefs.h.  */
1995
1996int
1997main ()
1998{
1999
2000  ;
2001  return 0;
2002}
2003_ACEOF
2004ac_clean_files_save=$ac_clean_files
2005ac_clean_files="$ac_clean_files a.out a.exe b.out"
2006# Try to create an executable without -o first, disregard a.out.
2007# It will help us diagnose broken compilers, and finding out an intuition
2008# of exeext.
2009echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2010echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2011ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2012if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2013  (eval $ac_link_default) 2>&5
2014  ac_status=$?
2015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016  (exit $ac_status); }; then
2017  # Find the output, starting from the most likely.  This scheme is
2018# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2019# resort.
2020
2021# Be careful to initialize this variable, since it used to be cached.
2022# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2023ac_cv_exeext=
2024# b.out is created by i960 compilers.
2025for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2026do
2027  test -f "$ac_file" || continue
2028  case $ac_file in
2029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2030        ;;
2031    conftest.$ac_ext )
2032        # This is the source file.
2033        ;;
2034    [ab].out )
2035        # We found the default executable, but exeext='' is most
2036        # certainly right.
2037        break;;
2038    *.* )
2039        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2040        # FIXME: I believe we export ac_cv_exeext for Libtool,
2041        # but it would be cool to find out if it's true.  Does anybody
2042        # maintain Libtool? --akim.
2043        export ac_cv_exeext
2044        break;;
2045    * )
2046        break;;
2047  esac
2048done
2049else
2050  echo "$as_me: failed program was:" >&5
2051sed 's/^/| /' conftest.$ac_ext >&5
2052
2053{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2054See \`config.log' for more details." >&5
2055echo "$as_me: error: C compiler cannot create executables
2056See \`config.log' for more details." >&2;}
2057   { (exit 77); exit 77; }; }
2058fi
2059
2060ac_exeext=$ac_cv_exeext
2061echo "$as_me:$LINENO: result: $ac_file" >&5
2062echo "${ECHO_T}$ac_file" >&6
2063
2064# Check the compiler produces executables we can run.  If not, either
2065# the compiler is broken, or we cross compile.
2066echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2067echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2068# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2069# If not cross compiling, check that we can run a simple program.
2070if test "$cross_compiling" != yes; then
2071  if { ac_try='./$ac_file'
2072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073  (eval $ac_try) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }; }; then
2077    cross_compiling=no
2078  else
2079    if test "$cross_compiling" = maybe; then
2080        cross_compiling=yes
2081    else
2082        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2083If you meant to cross compile, use \`--host'.
2084See \`config.log' for more details." >&5
2085echo "$as_me: error: cannot run C compiled programs.
2086If you meant to cross compile, use \`--host'.
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089    fi
2090  fi
2091fi
2092echo "$as_me:$LINENO: result: yes" >&5
2093echo "${ECHO_T}yes" >&6
2094
2095rm -f a.out a.exe conftest$ac_cv_exeext b.out
2096ac_clean_files=$ac_clean_files_save
2097# Check the compiler produces executables we can run.  If not, either
2098# the compiler is broken, or we cross compile.
2099echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2100echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2101echo "$as_me:$LINENO: result: $cross_compiling" >&5
2102echo "${ECHO_T}$cross_compiling" >&6
2103
2104echo "$as_me:$LINENO: checking for suffix of executables" >&5
2105echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2107  (eval $ac_link) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; then
2111  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2112# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2113# work properly (i.e., refer to `conftest.exe'), while it won't with
2114# `rm'.
2115for ac_file in conftest.exe conftest conftest.*; do
2116  test -f "$ac_file" || continue
2117  case $ac_file in
2118    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2119    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2120          export ac_cv_exeext
2121          break;;
2122    * ) break;;
2123  esac
2124done
2125else
2126  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2127See \`config.log' for more details." >&5
2128echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2129See \`config.log' for more details." >&2;}
2130   { (exit 1); exit 1; }; }
2131fi
2132
2133rm -f conftest$ac_cv_exeext
2134echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2135echo "${ECHO_T}$ac_cv_exeext" >&6
2136
2137rm -f conftest.$ac_ext
2138EXEEXT=$ac_cv_exeext
2139ac_exeext=$EXEEXT
2140echo "$as_me:$LINENO: checking for suffix of object files" >&5
2141echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2142if test "${ac_cv_objext+set}" = set; then
2143  echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145  cat >conftest.$ac_ext <<_ACEOF
2146/* confdefs.h.  */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h.  */
2151
2152int
2153main ()
2154{
2155
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160rm -f conftest.o conftest.obj
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162  (eval $ac_compile) 2>&5
2163  ac_status=$?
2164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165  (exit $ac_status); }; then
2166  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2167  case $ac_file in
2168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2169    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2170       break;;
2171  esac
2172done
2173else
2174  echo "$as_me: failed program was:" >&5
2175sed 's/^/| /' conftest.$ac_ext >&5
2176
2177{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2178See \`config.log' for more details." >&5
2179echo "$as_me: error: cannot compute suffix of object files: cannot compile
2180See \`config.log' for more details." >&2;}
2181   { (exit 1); exit 1; }; }
2182fi
2183
2184rm -f conftest.$ac_cv_objext conftest.$ac_ext
2185fi
2186echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2187echo "${ECHO_T}$ac_cv_objext" >&6
2188OBJEXT=$ac_cv_objext
2189ac_objext=$OBJEXT
2190echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2191echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2192if test "${ac_cv_c_compiler_gnu+set}" = set; then
2193  echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195  cat >conftest.$ac_ext <<_ACEOF
2196/* confdefs.h.  */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h.  */
2201
2202int
2203main ()
2204{
2205#ifndef __GNUC__
2206       choke me
2207#endif
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213rm -f conftest.$ac_objext
2214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2215  (eval $ac_compile) 2>conftest.er1
2216  ac_status=$?
2217  grep -v '^ *+' conftest.er1 >conftest.err
2218  rm -f conftest.er1
2219  cat conftest.err >&5
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); } &&
2222         { ac_try='test -z "$ac_c_werror_flag"
2223                         || test ! -s conftest.err'
2224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225  (eval $ac_try) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; } &&
2229         { ac_try='test -s conftest.$ac_objext'
2230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231  (eval $ac_try) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }; }; then
2235  ac_compiler_gnu=yes
2236else
2237  echo "$as_me: failed program was:" >&5
2238sed 's/^/| /' conftest.$ac_ext >&5
2239
2240ac_compiler_gnu=no
2241fi
2242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2243ac_cv_c_compiler_gnu=$ac_compiler_gnu
2244
2245fi
2246echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2247echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2248GCC=`test $ac_compiler_gnu = yes && echo yes`
2249ac_test_CFLAGS=${CFLAGS+set}
2250ac_save_CFLAGS=$CFLAGS
2251CFLAGS="-g"
2252echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2253echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2254if test "${ac_cv_prog_cc_g+set}" = set; then
2255  echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
2257  cat >conftest.$ac_ext <<_ACEOF
2258/* confdefs.h.  */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h.  */
2263
2264int
2265main ()
2266{
2267
2268  ;
2269  return 0;
2270}
2271_ACEOF
2272rm -f conftest.$ac_objext
2273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274  (eval $ac_compile) 2>conftest.er1
2275  ac_status=$?
2276  grep -v '^ *+' conftest.er1 >conftest.err
2277  rm -f conftest.er1
2278  cat conftest.err >&5
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); } &&
2281         { ac_try='test -z "$ac_c_werror_flag"
2282                         || test ! -s conftest.err'
2283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284  (eval $ac_try) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; } &&
2288         { ac_try='test -s conftest.$ac_objext'
2289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290  (eval $ac_try) 2>&5
2291  ac_status=$?
2292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293  (exit $ac_status); }; }; then
2294  ac_cv_prog_cc_g=yes
2295else
2296  echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299ac_cv_prog_cc_g=no
2300fi
2301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2304echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2305if test "$ac_test_CFLAGS" = set; then
2306  CFLAGS=$ac_save_CFLAGS
2307elif test $ac_cv_prog_cc_g = yes; then
2308  if test "$GCC" = yes; then
2309    CFLAGS="-g -O2"
2310  else
2311    CFLAGS="-g"
2312  fi
2313else
2314  if test "$GCC" = yes; then
2315    CFLAGS="-O2"
2316  else
2317    CFLAGS=
2318  fi
2319fi
2320echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2321echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2322if test "${ac_cv_prog_cc_stdc+set}" = set; then
2323  echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325  ac_cv_prog_cc_stdc=no
2326ac_save_CC=$CC
2327cat >conftest.$ac_ext <<_ACEOF
2328/* confdefs.h.  */
2329_ACEOF
2330cat confdefs.h >>conftest.$ac_ext
2331cat >>conftest.$ac_ext <<_ACEOF
2332/* end confdefs.h.  */
2333#include <stdarg.h>
2334#include <stdio.h>
2335#include <sys/types.h>
2336#include <sys/stat.h>
2337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2338struct buf { int x; };
2339FILE * (*rcsopen) (struct buf *, struct stat *, int);
2340static char *e (p, i)
2341     char **p;
2342     int i;
2343{
2344  return p[i];
2345}
2346static char *f (char * (*g) (char **, int), char **p, ...)
2347{
2348  char *s;
2349  va_list v;
2350  va_start (v,p);
2351  s = g (p, va_arg (v,int));
2352  va_end (v);
2353  return s;
2354}
2355
2356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2357   function prototypes and stuff, but not '\xHH' hex character constants.
2358   These don't provoke an error unfortunately, instead are silently treated
2359   as 'x'.  The following induces an error, until -std1 is added to get
2360   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2361   array size at least.  It's necessary to write '\x00'==0 to get something
2362   that's true only with -std1.  */
2363int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2364
2365int test (int i, double x);
2366struct s1 {int (*f) (int a);};
2367struct s2 {int (*f) (double a);};
2368int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2369int argc;
2370char **argv;
2371int
2372main ()
2373{
2374return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379# Don't try gcc -ansi; that turns off useful extensions and
2380# breaks some systems' header files.
2381# AIX                   -qlanglvl=ansi
2382# Ultrix and OSF/1      -std1
2383# HP-UX 10.20 and later -Ae
2384# HP-UX older versions  -Aa -D_HPUX_SOURCE
2385# SVR4                  -Xc -D__EXTENSIONS__
2386for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2387do
2388  CC="$ac_save_CC $ac_arg"
2389  rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398         { ac_try='test -z "$ac_c_werror_flag"
2399                         || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_cv_prog_cc_stdc=$ac_arg
2412break
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417fi
2418rm -f conftest.err conftest.$ac_objext
2419done
2420rm -f conftest.$ac_ext conftest.$ac_objext
2421CC=$ac_save_CC
2422
2423fi
2424
2425case "x$ac_cv_prog_cc_stdc" in
2426  x|xno)
2427    echo "$as_me:$LINENO: result: none needed" >&5
2428echo "${ECHO_T}none needed" >&6 ;;
2429  *)
2430    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2431echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2432    CC="$CC $ac_cv_prog_cc_stdc" ;;
2433esac
2434
2435# Some people use a C++ compiler to compile C.  Since we use `exit',
2436# in C++ we need to declare it.  In case someone uses the same compiler
2437# for both compiling C and C++ we need to have the C++ compiler decide
2438# the declaration of exit, since it's the most demanding environment.
2439cat >conftest.$ac_ext <<_ACEOF
2440#ifndef __cplusplus
2441  choke me
2442#endif
2443_ACEOF
2444rm -f conftest.$ac_objext
2445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2446  (eval $ac_compile) 2>conftest.er1
2447  ac_status=$?
2448  grep -v '^ *+' conftest.er1 >conftest.err
2449  rm -f conftest.er1
2450  cat conftest.err >&5
2451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452  (exit $ac_status); } &&
2453         { ac_try='test -z "$ac_c_werror_flag"
2454                         || test ! -s conftest.err'
2455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2456  (eval $ac_try) 2>&5
2457  ac_status=$?
2458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459  (exit $ac_status); }; } &&
2460         { ac_try='test -s conftest.$ac_objext'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; }; then
2466  for ac_declaration in \
2467   '' \
2468   'extern "C" void std::exit (int) throw (); using std::exit;' \
2469   'extern "C" void std::exit (int); using std::exit;' \
2470   'extern "C" void exit (int) throw ();' \
2471   'extern "C" void exit (int);' \
2472   'void exit (int);'
2473do
2474  cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h.  */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h.  */
2480$ac_declaration
2481#include <stdlib.h>
2482int
2483main ()
2484{
2485exit (42);
2486  ;
2487  return 0;
2488}
2489_ACEOF
2490rm -f conftest.$ac_objext
2491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2492  (eval $ac_compile) 2>conftest.er1
2493  ac_status=$?
2494  grep -v '^ *+' conftest.er1 >conftest.err
2495  rm -f conftest.er1
2496  cat conftest.err >&5
2497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498  (exit $ac_status); } &&
2499         { ac_try='test -z "$ac_c_werror_flag"
2500                         || test ! -s conftest.err'
2501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502  (eval $ac_try) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; } &&
2506         { ac_try='test -s conftest.$ac_objext'
2507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508  (eval $ac_try) 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }; }; then
2512  :
2513else
2514  echo "$as_me: failed program was:" >&5
2515sed 's/^/| /' conftest.$ac_ext >&5
2516
2517continue
2518fi
2519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2520  cat >conftest.$ac_ext <<_ACEOF
2521/* confdefs.h.  */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h.  */
2526$ac_declaration
2527int
2528main ()
2529{
2530exit (42);
2531  ;
2532  return 0;
2533}
2534_ACEOF
2535rm -f conftest.$ac_objext
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537  (eval $ac_compile) 2>conftest.er1
2538  ac_status=$?
2539  grep -v '^ *+' conftest.er1 >conftest.err
2540  rm -f conftest.er1
2541  cat conftest.err >&5
2542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543  (exit $ac_status); } &&
2544         { ac_try='test -z "$ac_c_werror_flag"
2545                         || test ! -s conftest.err'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; } &&
2551         { ac_try='test -s conftest.$ac_objext'
2552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553  (eval $ac_try) 2>&5
2554  ac_status=$?
2555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556  (exit $ac_status); }; }; then
2557  break
2558else
2559  echo "$as_me: failed program was:" >&5
2560sed 's/^/| /' conftest.$ac_ext >&5
2561
2562fi
2563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564done
2565rm -f conftest*
2566if test -n "$ac_declaration"; then
2567  echo '#ifdef __cplusplus' >>confdefs.h
2568  echo $ac_declaration      >>confdefs.h
2569  echo '#endif'             >>confdefs.h
2570fi
2571
2572else
2573  echo "$as_me: failed program was:" >&5
2574sed 's/^/| /' conftest.$ac_ext >&5
2575
2576fi
2577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2578ac_ext=c
2579ac_cpp='$CPP $CPPFLAGS'
2580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582ac_compiler_gnu=$ac_cv_c_compiler_gnu
2583
2584if test -z "$CC" ; then
2585  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2586echo "$as_me: error: Failed to find a C compiler!" >&2;}
2587   { (exit 1); exit 1; }; }
2588fi
2589# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2590case "$CC" in
2591  cl* | */cl* | CL* | */CL* )
2592    if test "$ac_cv_prog_cc_g" = yes ; then
2593      ac_cv_prog_cc_g=no
2594      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2595echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2596    fi ;;
2597esac
2598CFLAGS="$save_cflags"
2599
2600# Check if a project specific CFLAGS variable has been set
2601if test x$COIN_PRJCT != x; then
2602  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2603  if test x$coin_tmp = xset; then
2604    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2605  fi
2606fi
2607
2608if test x"$CFLAGS" = x; then
2609
2610  coin_add_cflags=
2611  coin_opt_cflags=
2612  coin_dbg_cflags=
2613  coin_warn_cflags=
2614
2615  if test "$GCC" = "yes"; then
2616    case "$CC" in
2617      icc* | */icc*)
2618        ;;
2619      *)
2620        coin_opt_cflags="-O3 -fomit-frame-pointer"
2621        coin_add_cflags="-pipe"
2622        coin_dbg_cflags="-g"
2623        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2624        case $enable_doscompile in
2625          mingw)
2626            CFLAGS="-mno-cygwin"
2627            cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633
2634int
2635main ()
2636{
2637int i=0; i++;
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext conftest$ac_exeext
2643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2644  (eval $ac_link) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651         { ac_try='test -z "$ac_c_werror_flag"
2652                         || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658         { ac_try='test -s conftest$ac_exeext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669fi
2670rm -f conftest.err conftest.$ac_objext \
2671      conftest$ac_exeext conftest.$ac_ext
2672            CFLAGS=
2673          ;;
2674        esac
2675    esac
2676  fi
2677  if test -z "$coin_opt_cflags"; then
2678    case $build in
2679      *-cygwin* | *-mingw*)
2680        case "$CC" in
2681          cl* | */cl* | CL* | */CL*)
2682            coin_opt_cflags='-MT -O2'
2683            coin_add_cflags='-nologo -wd4996'
2684            coin_dbg_cflags='-MTd'
2685            ;;
2686        esac
2687        ;;
2688      *-linux-*)
2689        case "$CC" in
2690          icc* | */icc*)
2691            coin_opt_cflags="-O3 -ip"
2692            coin_add_cflags=""
2693            coin_dbg_cflags="-g"
2694            # Check if -i_dynamic is necessary (for new glibc library)
2695            CFLAGS=
2696            cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h.  */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h.  */
2702
2703int
2704main ()
2705{
2706int i=0; i++;
2707  ;
2708  return 0;
2709}
2710_ACEOF
2711rm -f conftest.$ac_objext conftest$ac_exeext
2712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2713  (eval $ac_link) 2>conftest.er1
2714  ac_status=$?
2715  grep -v '^ *+' conftest.er1 >conftest.err
2716  rm -f conftest.er1
2717  cat conftest.err >&5
2718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719  (exit $ac_status); } &&
2720         { ac_try='test -z "$ac_c_werror_flag"
2721                         || test ! -s conftest.err'
2722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723  (eval $ac_try) 2>&5
2724  ac_status=$?
2725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726  (exit $ac_status); }; } &&
2727         { ac_try='test -s conftest$ac_exeext'
2728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729  (eval $ac_try) 2>&5
2730  ac_status=$?
2731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732  (exit $ac_status); }; }; then
2733  :
2734else
2735  echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738coin_add_cflags="-i_dynamic $coin_add_cflags"
2739fi
2740rm -f conftest.err conftest.$ac_objext \
2741      conftest$ac_exeext conftest.$ac_ext
2742            ;;
2743          pgcc* | */pgcc*)
2744            coin_opt_cflags="-fast"
2745            coin_add_cflags="-Kieee -pc 64"
2746            coin_dbg_cflags="-g"
2747            ;;
2748        esac
2749        ;;
2750      *-ibm-*)
2751        case "$CC" in
2752          xlc* | */xlc* | mpxlc* | */mpxlc*)
2753            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2754            coin_add_cflags="-bmaxdata:0x80000000"
2755            coin_dbg_cflags="-g"
2756          ;;
2757        esac
2758        ;;
2759      *-hp-*)
2760        coin_opt_cflags="-O"
2761        coin_add_cflags="-Ae"
2762        coin_dbg_cflags="-g"
2763        ;;
2764      *-sun-*)
2765        coin_opt_cflags="-xO4"
2766        coin_dbg_cflags="-g"
2767        ;;
2768      *-sgi-*)
2769        coin_opt_cflags="-O -OPT:Olimit=0"
2770        coin_dbg_cflags="-g"
2771        ;;
2772    esac
2773  fi
2774
2775  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2776    coin_dbg_cflags="-g"
2777  fi
2778
2779  if test -z "$coin_opt_cflags"; then
2780    # Try if -O option works if nothing else is set
2781    CFLAGS="-O"
2782    cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h.  */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h.  */
2788
2789int
2790main ()
2791{
2792int i=0; i++;
2793  ;
2794  return 0;
2795}
2796_ACEOF
2797rm -f conftest.$ac_objext conftest$ac_exeext
2798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2799  (eval $ac_link) 2>conftest.er1
2800  ac_status=$?
2801  grep -v '^ *+' conftest.er1 >conftest.err
2802  rm -f conftest.er1
2803  cat conftest.err >&5
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); } &&
2806         { ac_try='test -z "$ac_c_werror_flag"
2807                         || test ! -s conftest.err'
2808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809  (eval $ac_try) 2>&5
2810  ac_status=$?
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); }; } &&
2813         { ac_try='test -s conftest$ac_exeext'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; }; then
2819  coin_opt_cflags="-O"
2820else
2821  echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824fi
2825rm -f conftest.err conftest.$ac_objext \
2826      conftest$ac_exeext conftest.$ac_ext
2827  fi
2828
2829  # if PM doesn't want the warning messages, take them out
2830  if test x"$coin_skip_warn_cflags" = xyes; then
2831    coin_warn_cflags=
2832  fi
2833
2834  if test x${DBG_CFLAGS+set} != xset; then
2835    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2836  fi
2837  if test x${OPT_CFLAGS+set} != xset; then
2838    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2839  fi
2840
2841  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2842  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2843
2844  if test "$coin_debug_compile" = "true"; then
2845    CFLAGS="$DBG_CFLAGS"
2846  else
2847    CFLAGS="$OPT_CFLAGS"
2848  fi
2849else
2850  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2851  if test x${DBG_CFLAGS+set} != xset; then
2852    DBG_CFLAGS="$CFLAGS"
2853  fi
2854  if test x${OPT_CFLAGS+set} != xset; then
2855    OPT_CFLAGS="$CFLAGS"
2856  fi
2857fi
2858
2859# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2860
2861case "$CFLAGS" in
2862  *-mno-cygwin*)
2863    if test x${CPPFLAGS+set} != xset ; then
2864      CPPFLAGS="-mno-cygwin"
2865    else
2866      case "$CPPFLAGS" in
2867        *-mno-cygwin*)
2868          ;;
2869        *)
2870          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2871          ;;
2872      esac
2873    fi ;;
2874esac
2875
2876# Try if CFLAGS works
2877save_CFLAGS="$CFLAGS"
2878cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888int i=0; i++;
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext conftest$ac_exeext
2894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895  (eval $ac_link) 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } &&
2902         { ac_try='test -z "$ac_c_werror_flag"
2903                         || test ! -s conftest.err'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; } &&
2909         { ac_try='test -s conftest$ac_exeext'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; }; then
2915  :
2916else
2917  echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920CFLAGS=
2921fi
2922rm -f conftest.err conftest.$ac_objext \
2923      conftest$ac_exeext conftest.$ac_ext
2924if test -z "$CFLAGS"; then
2925  { 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
2926echo "$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;}
2927  CFLAGS='-O'
2928  cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h.  */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h.  */
2934
2935int
2936main ()
2937{
2938int i=0; i++;
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext conftest$ac_exeext
2944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2945  (eval $ac_link) 2>conftest.er1
2946  ac_status=$?
2947  grep -v '^ *+' conftest.er1 >conftest.err
2948  rm -f conftest.er1
2949  cat conftest.err >&5
2950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951  (exit $ac_status); } &&
2952         { ac_try='test -z "$ac_c_werror_flag"
2953                         || test ! -s conftest.err'
2954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955  (eval $ac_try) 2>&5
2956  ac_status=$?
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); }; } &&
2959         { ac_try='test -s conftest$ac_exeext'
2960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961  (eval $ac_try) 2>&5
2962  ac_status=$?
2963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964  (exit $ac_status); }; }; then
2965  :
2966else
2967  echo "$as_me: failed program was:" >&5
2968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970CFLAGS=
2971fi
2972rm -f conftest.err conftest.$ac_objext \
2973      conftest$ac_exeext conftest.$ac_ext
2974  if test -z "$CFLAGS"; then
2975    { 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
2976echo "$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;}
2977  fi
2978fi
2979
2980{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2981echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2982
2983
2984if test x"$MPICC" = x; then :; else
2985  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2986echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2987  CC="$MPICC"
2988fi
2989
2990# Correct ADDLIBS initialization if we are using the MS compiler
2991case "$CC" in
2992  cl* | */cl* | CL* | */CL*)
2993    ADDLIBS=
2994    case $build in
2995  *-mingw*)
2996    if test "${LD+set}" = set; then :; else
2997      LD=link
2998    fi
2999    ;;
3000 esac
3001 case $enable_doscompile in
3002   msvc)
3003     if test "x${LD+set}" = xset; then :; else
3004       LD=link
3005     fi
3006     ;;
3007 esac
3008
3009    ;;
3010esac
3011
3012ac_ext=c
3013ac_cpp='$CPP $CPPFLAGS'
3014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3016ac_compiler_gnu=$ac_cv_c_compiler_gnu
3017
3018
3019case $build in
3020  *-cygwin* | *-mingw*)
3021     if test "$enable_doscompile" = msvc ; then
3022       coin_f77_comps="ifort fl32"
3023     else
3024       coin_f77_comps="gfortran g77 ifort fl32"
3025     fi ;;
3026  sparc-sun-solaris*)
3027     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3028  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3029 esac
3030
3031
3032
3033
3034
3035
3036ac_ext=f
3037ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3038ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3040
3041
3042
3043
3044
3045
3046coin_has_f77=yes
3047
3048save_fflags="$FFLAGS"
3049
3050# We delete the cached value, since the test might not have been
3051# performed with our choice of compilers earlier
3052$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3053
3054# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3055# coin_f77_comps to see if there's a program that matches one of the names.
3056# If there's no such program, F77 = unavailable. If we match the name,
3057# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3058# compiler.
3059# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3060
3061
3062{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3063echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3064for ac_prog in $coin_f77_comps
3065do
3066  # Extract the first word of "$ac_prog", so it can be a program name with args.
3067set dummy $ac_prog; ac_word=$2
3068echo "$as_me:$LINENO: checking for $ac_word" >&5
3069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3070if test "${ac_cv_prog_F77+set}" = set; then
3071  echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
3073  if test -n "$F77"; then
3074  ac_cv_prog_F77="$F77" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079  IFS=$as_save_IFS
3080  test -z "$as_dir" && as_dir=.
3081  for ac_exec_ext in '' $ac_executable_extensions; do
3082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083    ac_cv_prog_F77="$ac_prog"
3084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085    break 2
3086  fi
3087done
3088done
3089
3090fi
3091fi
3092F77=$ac_cv_prog_F77
3093if test -n "$F77"; then
3094  echo "$as_me:$LINENO: result: $F77" >&5
3095echo "${ECHO_T}$F77" >&6
3096else
3097  echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
3099fi
3100
3101  test -n "$F77" && break
3102done
3103test -n "$F77" || F77="unavailable"
3104
3105
3106if test "$F77" != "unavailable" ; then
3107  ac_ext=f
3108ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3109ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3111if test -n "$ac_tool_prefix"; then
3112  for ac_prog in $coin_f77_comps
3113  do
3114    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116echo "$as_me:$LINENO: checking for $ac_word" >&5
3117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3118if test "${ac_cv_prog_F77+set}" = set; then
3119  echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121  if test -n "$F77"; then
3122  ac_cv_prog_F77="$F77" # Let the user override the test.
3123else
3124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125for as_dir in $PATH
3126do
3127  IFS=$as_save_IFS
3128  test -z "$as_dir" && as_dir=.
3129  for ac_exec_ext in '' $ac_executable_extensions; do
3130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133    break 2
3134  fi
3135done
3136done
3137
3138fi
3139fi
3140F77=$ac_cv_prog_F77
3141if test -n "$F77"; then
3142  echo "$as_me:$LINENO: result: $F77" >&5
3143echo "${ECHO_T}$F77" >&6
3144else
3145  echo "$as_me:$LINENO: result: no" >&5
3146echo "${ECHO_T}no" >&6
3147fi
3148
3149    test -n "$F77" && break
3150  done
3151fi
3152if test -z "$F77"; then
3153  ac_ct_F77=$F77
3154  for ac_prog in $coin_f77_comps
3155do
3156  # Extract the first word of "$ac_prog", so it can be a program name with args.
3157set dummy $ac_prog; ac_word=$2
3158echo "$as_me:$LINENO: checking for $ac_word" >&5
3159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3161  echo $ECHO_N "(cached) $ECHO_C" >&6
3162else
3163  if test -n "$ac_ct_F77"; then
3164  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171  for ac_exec_ext in '' $ac_executable_extensions; do
3172  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173    ac_cv_prog_ac_ct_F77="$ac_prog"
3174    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178done
3179
3180fi
3181fi
3182ac_ct_F77=$ac_cv_prog_ac_ct_F77
3183if test -n "$ac_ct_F77"; then
3184  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3185echo "${ECHO_T}$ac_ct_F77" >&6
3186else
3187  echo "$as_me:$LINENO: result: no" >&5
3188echo "${ECHO_T}no" >&6
3189fi
3190
3191  test -n "$ac_ct_F77" && break
3192done
3193
3194  F77=$ac_ct_F77
3195fi
3196
3197
3198# Provide some information about the compiler.
3199echo "$as_me:3199:" \
3200     "checking for Fortran 77 compiler version" >&5
3201ac_compiler=`set X $ac_compile; echo $2`
3202{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3203  (eval $ac_compiler --version </dev/null >&5) 2>&5
3204  ac_status=$?
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); }
3207{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3208  (eval $ac_compiler -v </dev/null >&5) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }
3212{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3213  (eval $ac_compiler -V </dev/null >&5) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }
3217rm -f a.out
3218
3219# If we don't use `.F' as extension, the preprocessor is not run on the
3220# input file.  (Note that this only needs to work for GNU compilers.)
3221ac_save_ext=$ac_ext
3222ac_ext=F
3223echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
3224echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
3225if test "${ac_cv_f77_compiler_gnu+set}" = set; then
3226  echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
3228  cat >conftest.$ac_ext <<_ACEOF
3229      program main
3230#ifndef __GNUC__
3231       choke me
3232#endif
3233
3234      end
3235_ACEOF
3236rm -f conftest.$ac_objext
3237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3238  (eval $ac_compile) 2>conftest.er1
3239  ac_status=$?
3240  grep -v '^ *+' conftest.er1 >conftest.err
3241  rm -f conftest.er1
3242  cat conftest.err >&5
3243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244  (exit $ac_status); } &&
3245         { ac_try='test -z "$ac_f77_werror_flag"
3246                         || test ! -s conftest.err'
3247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248  (eval $ac_try) 2>&5
3249  ac_status=$?
3250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251  (exit $ac_status); }; } &&
3252         { ac_try='test -s conftest.$ac_objext'
3253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3254  (eval $ac_try) 2>&5
3255  ac_status=$?
3256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257  (exit $ac_status); }; }; then
3258  ac_compiler_gnu=yes
3259else
3260  echo "$as_me: failed program was:" >&5
3261sed 's/^/| /' conftest.$ac_ext >&5
3262
3263ac_compiler_gnu=no
3264fi
3265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3266ac_cv_f77_compiler_gnu=$ac_compiler_gnu
3267
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
3270echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
3271ac_ext=$ac_save_ext
3272ac_test_FFLAGS=${FFLAGS+set}
3273ac_save_FFLAGS=$FFLAGS
3274FFLAGS=
3275echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
3276echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
3277if test "${ac_cv_prog_f77_g+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  FFLAGS=-g
3281cat >conftest.$ac_ext <<_ACEOF
3282      program main
3283
3284      end
3285_ACEOF
3286rm -f conftest.$ac_objext
3287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3288  (eval $ac_compile) 2>conftest.er1
3289  ac_status=$?
3290  grep -v '^ *+' conftest.er1 >conftest.err
3291  rm -f conftest.er1
3292  cat conftest.err >&5
3293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294  (exit $ac_status); } &&
3295         { ac_try='test -z "$ac_f77_werror_flag"
3296                         || test ! -s conftest.err'
3297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298  (eval $ac_try) 2>&5
3299  ac_status=$?
3300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301  (exit $ac_status); }; } &&
3302         { ac_try='test -s conftest.$ac_objext'
3303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304  (eval $ac_try) 2>&5
3305  ac_status=$?
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); }; }; then
3308  ac_cv_prog_f77_g=yes
3309else
3310  echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313ac_cv_prog_f77_g=no
3314fi
3315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3316
3317fi
3318echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
3319echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
3320if test "$ac_test_FFLAGS" = set; then
3321  FFLAGS=$ac_save_FFLAGS
3322elif test $ac_cv_prog_f77_g = yes; then
3323  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3324    FFLAGS="-g -O2"
3325  else
3326    FFLAGS="-g"
3327  fi
3328else
3329  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
3330    FFLAGS="-O2"
3331  else
3332    FFLAGS=
3333  fi
3334fi
3335
3336G77=`test $ac_compiler_gnu = yes && echo yes`
3337ac_ext=f
3338ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3339ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3341
3342else
3343  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
3344echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
3345fi
3346
3347FFLAGS="$save_fflags"
3348
3349# Check if a project specific FFLAGS variable has been set
3350if test x$COIN_PRJCT != x; then
3351  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
3352  if test x$coin_tmp = xset; then
3353    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
3354  fi
3355fi
3356
3357if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
3358
3359  coin_add_fflags=
3360  coin_opt_fflags=
3361  coin_dbg_fflags=
3362  coin_warn_fflags=
3363
3364  if test "$G77" = "yes"; then
3365    coin_opt_fflags="-O3 -fomit-frame-pointer"
3366    coin_add_fflags="-pipe"
3367    coin_dbg_fflags="-g"
3368    case $enable_doscompile in
3369      mingw)
3370        FFLAGS="-mno-cygwin"
3371        cat >conftest.$ac_ext <<_ACEOF
3372      program main
3373      write(*,*) 'Hello world'
3374      end
3375_ACEOF
3376rm -f conftest.$ac_objext conftest$ac_exeext
3377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3378  (eval $ac_link) 2>conftest.er1
3379  ac_status=$?
3380  grep -v '^ *+' conftest.er1 >conftest.err
3381  rm -f conftest.er1
3382  cat conftest.err >&5
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } &&
3385         { ac_try='test -z "$ac_f77_werror_flag"
3386                         || test ! -s conftest.err'
3387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388  (eval $ac_try) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }; } &&
3392         { ac_try='test -s conftest$ac_exeext'
3393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394  (eval $ac_try) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; }; then
3398  coin_add_fflags="-mno-cygwin $coin_add_fflags"
3399else
3400  echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403fi
3404rm -f conftest.err conftest.$ac_objext \
3405      conftest$ac_exeext conftest.$ac_ext
3406        FFLAGS=
3407      ;;
3408    esac
3409  else
3410    case $build in
3411      *-cygwin* | *-mingw*)
3412        case $F77 in
3413          ifort* | */ifort* | IFORT* | */IFORT* )
3414            coin_opt_fflags='-O3'
3415            coin_add_fflags='-nologo -MT'
3416            coin_dbg_fflags='-debug'
3417          ;;
3418        esac
3419        ;;
3420      *-linux-*)
3421        case $F77 in
3422          ifc* | */ifc* | ifort* | */ifort*)
3423            coin_opt_fflags="-O3 -ip"
3424            coin_add_fflags="-cm -w90 -w95"
3425            coin_dbg_fflags="-g -CA -CB -CS"
3426            # Check if -i_dynamic is necessary (for new glibc library)
3427            FFLAGS=
3428            cat >conftest.$ac_ext <<_ACEOF
3429      program main
3430      write(*,*) 'Hello world'
3431      end
3432_ACEOF
3433rm -f conftest.$ac_objext conftest$ac_exeext
3434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3435  (eval $ac_link) 2>conftest.er1
3436  ac_status=$?
3437  grep -v '^ *+' conftest.er1 >conftest.err
3438  rm -f conftest.er1
3439  cat conftest.err >&5
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); } &&
3442         { ac_try='test -z "$ac_f77_werror_flag"
3443                         || test ! -s conftest.err'
3444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445  (eval $ac_try) 2>&5
3446  ac_status=$?
3447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448  (exit $ac_status); }; } &&
3449         { ac_try='test -s conftest$ac_exeext'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; }; then
3455  :
3456else
3457  echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460coin_add_fflags="-i_dynamic $coin_add_fflags"
3461fi
3462rm -f conftest.err conftest.$ac_objext \
3463      conftest$ac_exeext conftest.$ac_ext
3464            ;;
3465          pgf77* | */pgf77* | pgf90* | */pgf90*)
3466            coin_opt_fflags="-fast"
3467            coin_add_fflags="-Kieee -pc 64"
3468            coin_dbg_fflags="-g"
3469          ;;
3470        esac
3471        ;;
3472      *-ibm-*)
3473        case "$F77" in
3474          xlf* | */xlf* | mpxlf* | */mpxlf* )
3475            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3476            coin_add_fflags="-bmaxdata:0x80000000"
3477            coin_dbg_fflags="-g -C"
3478            ;;
3479        esac
3480        ;;
3481      *-hp-*)
3482        coin_opt_fflags="+O3"
3483        coin_add_fflags="+U77"
3484        coin_dbg_fflags="-C -g"
3485        ;;
3486      *-sun-*)
3487        coin_opt_fflags="-O4"
3488        coin_dbg_fflags="-g"
3489        ;;
3490      *-sgi-*)
3491        coin_opt_fflags="-O5 -OPT:Olimit=0"
3492        coin_dbg_fflags="-g"
3493        ;;
3494    esac
3495  fi
3496
3497  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
3498    coin_dbg_fflags="-g"
3499  fi
3500
3501  if test -z "$coin_opt_fflags"; then
3502    # Try if -O option works if nothing else is set
3503    FFLAGS=-O
3504    cat >conftest.$ac_ext <<_ACEOF
3505      program main
3506      integer i
3507      end
3508_ACEOF
3509rm -f conftest.$ac_objext conftest$ac_exeext
3510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3511  (eval $ac_link) 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } &&
3518         { ac_try='test -z "$ac_f77_werror_flag"
3519                         || test ! -s conftest.err'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; } &&
3525         { ac_try='test -s conftest$ac_exeext'
3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527  (eval $ac_try) 2>&5
3528  ac_status=$?
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); }; }; then
3531  coin_opt_fflags="-O"
3532else
3533  echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536fi
3537rm -f conftest.err conftest.$ac_objext \
3538      conftest$ac_exeext conftest.$ac_ext
3539  fi
3540
3541  # if PM doesn't want the warning messages, take them out
3542  if test x"$coin_skip_warn_fflags" = xyes; then
3543    coin_warn_fflags=
3544  fi
3545
3546  if test x${DBG_FFLAGS+set} != xset; then
3547    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
3548  fi
3549  if test x${OPT_FFLAGS+set} != xset; then
3550    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
3551  fi
3552
3553  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
3554  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
3555
3556  if test "$coin_debug_compile" = "true"; then
3557    FFLAGS="$DBG_FFLAGS"
3558  else
3559    FFLAGS="$OPT_FFLAGS"
3560  fi
3561else
3562  FFLAGS="$FFLAGS $ADD_FFLAGS"
3563  if test x${DBG_FFLAGS+set} != xset; then
3564    DBG_FFLAGS="$FFLAGS"
3565  fi
3566  if test x${OPT_FFLAGS+set} != xset; then
3567    OPT_FFLAGS="$FFLAGS"
3568  fi
3569fi
3570
3571# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
3572case "$FFLAGS" in
3573  *-mno-cygwin*)
3574    if test x${CPPFLAGS+set} != xset ; then
3575      CPPFLAGS="-mno-cygwin"
3576    else
3577      case "$CPPFLAGS" in
3578        *-mno-cygwin*)
3579          ;;
3580        *)
3581          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3582          ;;
3583      esac
3584    fi ;;
3585esac
3586
3587# Try if FFLAGS works
3588if test "$F77" != "unavailable" ; then
3589  cat >conftest.$ac_ext <<_ACEOF
3590      program main
3591      integer i
3592      end
3593_ACEOF
3594rm -f conftest.$ac_objext conftest$ac_exeext
3595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3596  (eval $ac_link) 2>conftest.er1
3597  ac_status=$?
3598  grep -v '^ *+' conftest.er1 >conftest.err
3599  rm -f conftest.er1
3600  cat conftest.err >&5
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); } &&
3603         { ac_try='test -z "$ac_f77_werror_flag"
3604                         || test ! -s conftest.err'
3605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606  (eval $ac_try) 2>&5
3607  ac_status=$?
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); }; } &&
3610         { ac_try='test -s conftest$ac_exeext'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; }; then
3616  :
3617else
3618  echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621FFLAGS=
3622fi
3623rm -f conftest.err conftest.$ac_objext \
3624      conftest$ac_exeext conftest.$ac_ext
3625  if test -z "$FFLAGS"; then
3626    { 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
3627echo "$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;}
3628    FFLAGS='-O'
3629    cat >conftest.$ac_ext <<_ACEOF
3630      program main
3631      integer i
3632      end
3633_ACEOF
3634rm -f conftest.$ac_objext conftest$ac_exeext
3635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3636  (eval $ac_link) 2>conftest.er1
3637  ac_status=$?
3638  grep -v '^ *+' conftest.er1 >conftest.err
3639  rm -f conftest.er1
3640  cat conftest.err >&5
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); } &&
3643         { ac_try='test -z "$ac_f77_werror_flag"
3644                         || test ! -s conftest.err'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; } &&
3650         { ac_try='test -s conftest$ac_exeext'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; }; then
3656  :
3657else
3658  echo "$as_me: failed program was:" >&5
3659sed 's/^/| /' conftest.$ac_ext >&5
3660
3661FFLAGS=
3662fi
3663rm -f conftest.err conftest.$ac_objext \
3664      conftest$ac_exeext conftest.$ac_ext
3665    if test -z "$FFLAGS"; then
3666      { 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
3667echo "$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;}
3668    fi
3669  fi
3670fi
3671
3672{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
3673echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
3674
3675
3676if test x"$MPIF77" = x; then :; else
3677  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
3678echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
3679  F77="$MPIF77"
3680fi
3681
3682case "$F77" in
3683  ifort* | */ifort* | IFORT* | */IFORT*)
3684    case $build in
3685  *-mingw*)
3686    if test "${LD+set}" = set; then :; else
3687      LD=link
3688    fi
3689    ;;
3690 esac
3691 case $enable_doscompile in
3692   msvc)
3693     if test "x${LD+set}" = xset; then :; else
3694       LD=link
3695     fi
3696     ;;
3697 esac
3698
3699    ;;
3700esac
3701
3702ac_ext=c
3703ac_cpp='$CPP $CPPFLAGS'
3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708
3709
3710# Initialize automake
3711{
3712
3713
3714
3715# START
3716
3717# On Cygwin, building DLLs doesn't work
3718case $build in
3719  *-cygwin*)
3720    coin_disable_shared=yes
3721    platform=Cygwin
3722  ;;
3723  *-mingw*)
3724    coin_disable_shared=yes
3725    platform="Msys"
3726#    case "$CXX" in
3727#      cl*)
3728#        coin_disable_shared=yes
3729#        platform="Msys with cl"
3730#    ;;
3731#    esac
3732  ;;
3733esac
3734if test x"$coin_disable_shared" = xyes; then
3735  if test x"$enable_shared" = xyes; then
3736    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3737echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3738  fi
3739  enable_shared=no
3740fi
3741# By default, we only want the shared objects to be compiled
3742# Check whether --enable-static or --disable-static was given.
3743if test "${enable_static+set}" = set; then
3744  enableval="$enable_static"
3745  p=${PACKAGE-default}
3746    case $enableval in
3747    yes) enable_static=yes ;;
3748    no) enable_static=no ;;
3749    *)
3750     enable_static=no
3751      # Look at the argument we got.  We use all the common list separators.
3752      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3753      for pkg in $enableval; do
3754        IFS="$lt_save_ifs"
3755        if test "X$pkg" = "X$p"; then
3756          enable_static=yes
3757        fi
3758      done
3759      IFS="$lt_save_ifs"
3760      ;;
3761    esac
3762else
3763  enable_static=no
3764fi;
3765
3766
3767
3768
3769# Initialize automake
3770echo "$as_me:$LINENO: checking for egrep" >&5
3771echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3772if test "${ac_cv_prog_egrep+set}" = set; then
3773  echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3776    then ac_cv_prog_egrep='grep -E'
3777    else ac_cv_prog_egrep='egrep'
3778    fi
3779fi
3780echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3781echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3782 EGREP=$ac_cv_prog_egrep
3783
3784
3785am__api_version="1.9"
3786# Find a good install program.  We prefer a C program (faster),
3787# so one script is as good as another.  But avoid the broken or
3788# incompatible versions:
3789# SysV /etc/install, /usr/sbin/install
3790# SunOS /usr/etc/install
3791# IRIX /sbin/install
3792# AIX /bin/install
3793# AmigaOS /C/install, which installs bootblocks on floppy discs
3794# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3795# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3796# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3797# OS/2's system install, which has a completely different semantic
3798# ./install, which can be erroneously created by make from ./install.sh.
3799echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3800echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3801if test -z "$INSTALL"; then
3802if test "${ac_cv_path_install+set}" = set; then
3803  echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808  IFS=$as_save_IFS
3809  test -z "$as_dir" && as_dir=.
3810  # Account for people who put trailing slashes in PATH elements.
3811case $as_dir/ in
3812  ./ | .// | /cC/* | \
3813  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3814  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3815  /usr/ucb/* ) ;;
3816  *)
3817    # OSF1 and SCO ODT 3.0 have their own names for install.
3818    # Don't use installbsd from OSF since it installs stuff as root
3819    # by default.
3820    for ac_prog in ginstall scoinst install; do
3821      for ac_exec_ext in '' $ac_executable_extensions; do
3822        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3823          if test $ac_prog = install &&
3824            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3825            # AIX install.  It has an incompatible calling convention.
3826            :
3827          elif test $ac_prog = install &&
3828            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3829            # program-specific install script used by HP pwplus--don't use.
3830            :
3831          else
3832            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3833            break 3
3834          fi
3835        fi
3836      done
3837    done
3838    ;;
3839esac
3840done
3841
3842
3843fi
3844  if test "${ac_cv_path_install+set}" = set; then
3845    INSTALL=$ac_cv_path_install
3846  else
3847    # As a last resort, use the slow shell script.  We don't cache a
3848    # path for INSTALL within a source directory, because that will
3849    # break other packages using the cache if that directory is
3850    # removed, or if the path is relative.
3851    INSTALL=$ac_install_sh
3852  fi
3853fi
3854echo "$as_me:$LINENO: result: $INSTALL" >&5
3855echo "${ECHO_T}$INSTALL" >&6
3856
3857# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3858# It thinks the first close brace ends the variable substitution.
3859test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3860
3861test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3862
3863test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3864
3865echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3866echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3867# Just in case
3868sleep 1
3869echo timestamp > conftest.file
3870# Do `set' in a subshell so we don't clobber the current shell's
3871# arguments.  Must try -L first in case configure is actually a
3872# symlink; some systems play weird games with the mod time of symlinks
3873# (eg FreeBSD returns the mod time of the symlink's containing
3874# directory).
3875if (
3876   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3877   if test "$*" = "X"; then
3878      # -L didn't work.
3879      set X `ls -t $srcdir/configure conftest.file`
3880   fi
3881   rm -f conftest.file
3882   if test "$*" != "X $srcdir/configure conftest.file" \
3883      && test "$*" != "X conftest.file $srcdir/configure"; then
3884
3885      # If neither matched, then we have a broken ls.  This can happen
3886      # if, for instance, CONFIG_SHELL is bash and it inherits a
3887      # broken ls alias from the environment.  This has actually
3888      # happened.  Such a system could not be considered "sane".
3889      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3890alias in your environment" >&5
3891echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3892alias in your environment" >&2;}
3893   { (exit 1); exit 1; }; }
3894   fi
3895
3896   test "$2" = conftest.file
3897   )
3898then
3899   # Ok.
3900   :
3901else
3902   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3903Check your system clock" >&5
3904echo "$as_me: error: newly created file is older than distributed files!
3905Check your system clock" >&2;}
3906   { (exit 1); exit 1; }; }
3907fi
3908echo "$as_me:$LINENO: result: yes" >&5
3909echo "${ECHO_T}yes" >&6
3910test "$program_prefix" != NONE &&
3911  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3912# Use a double $ so make ignores it.
3913test "$program_suffix" != NONE &&
3914  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3915# Double any \ or $.  echo might interpret backslashes.
3916# By default was `s,x,x', remove it if useless.
3917cat <<\_ACEOF >conftest.sed
3918s/[\\$]/&&/g;s/;s,x,x,$//
3919_ACEOF
3920program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3921rm conftest.sed
3922
3923# expand $ac_aux_dir to an absolute path
3924am_aux_dir=`cd $ac_aux_dir && pwd`
3925
3926test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3927# Use eval to expand $SHELL
3928if eval "$MISSING --run true"; then
3929  am_missing_run="$MISSING --run "
3930else
3931  am_missing_run=
3932  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3933echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3934fi
3935
3936if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3937  # We used to keeping the `.' as first argument, in order to
3938  # allow $(mkdir_p) to be used without argument.  As in
3939  #   $(mkdir_p) $(somedir)
3940  # where $(somedir) is conditionally defined.  However this is wrong
3941  # for two reasons:
3942  #  1. if the package is installed by a user who cannot write `.'
3943  #     make install will fail,
3944  #  2. the above comment should most certainly read
3945  #     $(mkdir_p) $(DESTDIR)$(somedir)
3946  #     so it does not work when $(somedir) is undefined and
3947  #     $(DESTDIR) is not.
3948  #  To support the latter case, we have to write
3949  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3950  #  so the `.' trick is pointless.
3951  mkdir_p='mkdir -p --'
3952else
3953  # On NextStep and OpenStep, the `mkdir' command does not
3954  # recognize any option.  It will interpret all options as
3955  # directories to create, and then abort because `.' already
3956  # exists.
3957  for d in ./-p ./--version;
3958  do
3959    test -d $d && rmdir $d
3960  done
3961  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3962  if test -f "$ac_aux_dir/mkinstalldirs"; then
3963    mkdir_p='$(mkinstalldirs)'
3964  else
3965    mkdir_p='$(install_sh) -d'
3966  fi
3967fi
3968
3969for ac_prog in gawk mawk nawk awk
3970do
3971  # Extract the first word of "$ac_prog", so it can be a program name with args.
3972set dummy $ac_prog; ac_word=$2
3973echo "$as_me:$LINENO: checking for $ac_word" >&5
3974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975if test "${ac_cv_prog_AWK+set}" = set; then
3976  echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978  if test -n "$AWK"; then
3979  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3980else
3981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982for as_dir in $PATH
3983do
3984  IFS=$as_save_IFS
3985  test -z "$as_dir" && as_dir=.
3986  for ac_exec_ext in '' $ac_executable_extensions; do
3987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988    ac_cv_prog_AWK="$ac_prog"
3989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990    break 2
3991  fi
3992done
3993done
3994
3995fi
3996fi
3997AWK=$ac_cv_prog_AWK
3998if test -n "$AWK"; then
3999  echo "$as_me:$LINENO: result: $AWK" >&5
4000echo "${ECHO_T}$AWK" >&6
4001else
4002  echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6
4004fi
4005
4006  test -n "$AWK" && break
4007done
4008
4009echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4010echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4011set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4012if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4013  echo $ECHO_N "(cached) $ECHO_C" >&6
4014else
4015  cat >conftest.make <<\_ACEOF
4016all:
4017        @echo 'ac_maketemp="$(MAKE)"'
4018_ACEOF
4019# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4020eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4021if test -n "$ac_maketemp"; then
4022  eval ac_cv_prog_make_${ac_make}_set=yes
4023else
4024  eval ac_cv_prog_make_${ac_make}_set=no
4025fi
4026rm -f conftest.make
4027fi
4028if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4029  echo "$as_me:$LINENO: result: yes" >&5
4030echo "${ECHO_T}yes" >&6
4031  SET_MAKE=
4032else
4033  echo "$as_me:$LINENO: result: no" >&5
4034echo "${ECHO_T}no" >&6
4035  SET_MAKE="MAKE=${MAKE-make}"
4036fi
4037
4038rm -rf .tst 2>/dev/null
4039mkdir .tst 2>/dev/null
4040if test -d .tst; then
4041  am__leading_dot=.
4042else
4043  am__leading_dot=_
4044fi
4045rmdir .tst 2>/dev/null
4046
4047DEPDIR="${am__leading_dot}deps"
4048
4049          ac_config_commands="$ac_config_commands depfiles"
4050
4051
4052am_make=${MAKE-make}
4053cat > confinc << 'END'
4054am__doit:
4055        @echo done
4056.PHONY: am__doit
4057END
4058# If we don't find an include directive, just comment out the code.
4059echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4060echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4061am__include="#"
4062am__quote=
4063_am_result=none
4064# First try GNU make style include.
4065echo "include confinc" > confmf
4066# We grep out `Entering directory' and `Leaving directory'
4067# messages which can occur if `w' ends up in MAKEFLAGS.
4068# In particular we don't look at `^make:' because GNU make might
4069# be invoked under some other name (usually "gmake"), in which
4070# case it prints its new name instead of `make'.
4071if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4072   am__include=include
4073   am__quote=
4074   _am_result=GNU
4075fi
4076# Now try BSD make style include.
4077if test "$am__include" = "#"; then
4078   echo '.include "confinc"' > confmf
4079   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4080      am__include=.include
4081      am__quote="\""
4082      _am_result=BSD
4083   fi
4084fi
4085
4086
4087echo "$as_me:$LINENO: result: $_am_result" >&5
4088echo "${ECHO_T}$_am_result" >&6
4089rm -f confinc confmf
4090
4091# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4092if test "${enable_dependency_tracking+set}" = set; then
4093  enableval="$enable_dependency_tracking"
4094
4095fi;
4096if test "x$enable_dependency_tracking" != xno; then
4097  am_depcomp="$ac_aux_dir/depcomp"
4098  AMDEPBACKSLASH='\'
4099fi
4100
4101
4102if test "x$enable_dependency_tracking" != xno; then
4103  AMDEP_TRUE=
4104  AMDEP_FALSE='#'
4105else
4106  AMDEP_TRUE='#'
4107  AMDEP_FALSE=
4108fi
4109
4110
4111
4112
4113
4114# AC_MSG_NOTICE([Beginning automake initialisation.])
4115# Stuff for automake
4116# test to see if srcdir already configured
4117if test "`cd $srcdir && pwd`" != "`pwd`" &&
4118   test -f $srcdir/config.status; then
4119  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4120echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4121   { (exit 1); exit 1; }; }
4122fi
4123
4124# test whether we have cygpath
4125if test -z "$CYGPATH_W"; then
4126  if (cygpath --version) >/dev/null 2>/dev/null; then
4127    CYGPATH_W='cygpath -w'
4128  else
4129    CYGPATH_W=echo
4130  fi
4131fi
4132
4133
4134# Define the identity of the package.
4135 PACKAGE='thirdpartyblas'
4136 VERSION='0.0'
4137
4138
4139cat >>confdefs.h <<_ACEOF
4140#define PACKAGE "$PACKAGE"
4141_ACEOF
4142
4143
4144cat >>confdefs.h <<_ACEOF
4145#define VERSION "$VERSION"
4146_ACEOF
4147
4148# Some tools Automake needs.
4149
4150ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4151
4152
4153AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4154
4155
4156AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4157
4158
4159AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4160
4161
4162MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4163
4164install_sh=${install_sh-"$am_aux_dir/install-sh"}
4165
4166# Installed binaries are usually stripped using `strip' when the user
4167# run `make install-strip'.  However `strip' might not be the right
4168# tool to use in cross-compilation environments, therefore Automake
4169# will honor the `STRIP' environment variable to overrule this program.
4170if test "$cross_compiling" != no; then
4171  if test -n "$ac_tool_prefix"; then
4172  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4173set dummy ${ac_tool_prefix}strip; ac_word=$2
4174echo "$as_me:$LINENO: checking for $ac_word" >&5
4175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176if test "${ac_cv_prog_STRIP+set}" = set; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  if test -n "$STRIP"; then
4180  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185  IFS=$as_save_IFS
4186  test -z "$as_dir" && as_dir=.
4187  for ac_exec_ext in '' $ac_executable_extensions; do
4188  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191    break 2
4192  fi
4193done
4194done
4195
4196fi
4197fi
4198STRIP=$ac_cv_prog_STRIP
4199if test -n "$STRIP"; then
4200  echo "$as_me:$LINENO: result: $STRIP" >&5
4201echo "${ECHO_T}$STRIP" >&6
4202else
4203  echo "$as_me:$LINENO: result: no" >&5
4204echo "${ECHO_T}no" >&6
4205fi
4206
4207fi
4208if test -z "$ac_cv_prog_STRIP"; then
4209  ac_ct_STRIP=$STRIP
4210  # Extract the first word of "strip", so it can be a program name with args.
4211set dummy strip; ac_word=$2
4212echo "$as_me:$LINENO: checking for $ac_word" >&5
4213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4215  echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217  if test -n "$ac_ct_STRIP"; then
4218  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4219else
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225  for ac_exec_ext in '' $ac_executable_extensions; do
4226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227    ac_cv_prog_ac_ct_STRIP="strip"
4228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229    break 2
4230  fi
4231done
4232done
4233
4234  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4235fi
4236fi
4237ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4238if test -n "$ac_ct_STRIP"; then
4239  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4240echo "${ECHO_T}$ac_ct_STRIP" >&6
4241else
4242  echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244fi
4245
4246  STRIP=$ac_ct_STRIP
4247else
4248  STRIP="$ac_cv_prog_STRIP"
4249fi
4250
4251fi
4252INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4253
4254# We need awk for the "check" target.  The system "awk" is bad on
4255# some platforms.
4256# Always define AMTAR for backward compatibility.
4257
4258AMTAR=${AMTAR-"${am_missing_run}tar"}
4259
4260am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4261
4262
4263
4264
4265depcc="$CC"   am_compiler_list=
4266
4267echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4268echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4269if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4270  echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4273  # We make a subdir and do the tests there.  Otherwise we can end up
4274  # making bogus files that we don't know about and never remove.  For
4275  # instance it was reported that on HP-UX the gcc test will end up
4276  # making a dummy file named `D' -- because `-MD' means `put the output
4277  # in D'.
4278  mkdir conftest.dir
4279  # Copy depcomp to subdir because otherwise we won't find it if we're
4280  # using a relative directory.
4281  cp "$am_depcomp" conftest.dir
4282  cd conftest.dir
4283  # We will build objects and dependencies in a subdirectory because
4284  # it helps to detect inapplicable dependency modes.  For instance
4285  # both Tru64's cc and ICC support -MD to output dependencies as a
4286  # side effect of compilation, but ICC will put the dependencies in
4287  # the current directory while Tru64 will put them in the object
4288  # directory.
4289  mkdir sub
4290
4291  am_cv_CC_dependencies_compiler_type=none
4292  if test "$am_compiler_list" = ""; then
4293     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4294  fi
4295  for depmode in $am_compiler_list; do
4296    # Setup a source with many dependencies, because some compilers
4297    # like to wrap large dependency lists on column 80 (with \), and
4298    # we should not choose a depcomp mode which is confused by this.
4299    #
4300    # We need to recreate these files for each test, as the compiler may
4301    # overwrite some of them when testing with obscure command lines.
4302    # This happens at least with the AIX C compiler.
4303    : > sub/conftest.c
4304    for i in 1 2 3 4 5 6; do
4305      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4306      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4307      # Solaris 8's {/usr,}/bin/sh.
4308      touch sub/conftst$i.h
4309    done
4310    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4311
4312    case $depmode in
4313    nosideeffect)
4314      # after this tag, mechanisms are not by side-effect, so they'll
4315      # only be used when explicitly requested
4316      if test "x$enable_dependency_tracking" = xyes; then
4317        continue
4318      else
4319        break
4320      fi
4321      ;;
4322    none) break ;;
4323    esac
4324    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4325    # mode.  It turns out that the SunPro C++ compiler does not properly
4326    # handle `-M -o', and we need to detect this.
4327    if depmode=$depmode \
4328       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4329       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4330       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4331         >/dev/null 2>conftest.err &&
4332       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4333       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4334       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4335      # icc doesn't choke on unknown options, it will just issue warnings
4336      # or remarks (even with -Werror).  So we grep stderr for any message
4337      # that says an option was ignored or not supported.
4338      # When given -MP, icc 7.0 and 7.1 complain thusly:
4339      #   icc: Command line warning: ignoring option '-M'; no argument required
4340      # The diagnosis changed in icc 8.0:
4341      #   icc: Command line remark: option '-MP' not supported
4342      if (grep 'ignoring option' conftest.err ||
4343          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4344        am_cv_CC_dependencies_compiler_type=$depmode
4345        break
4346      fi
4347    fi
4348  done
4349
4350  cd ..
4351  rm -rf conftest.dir
4352else
4353  am_cv_CC_dependencies_compiler_type=none
4354fi
4355
4356fi
4357echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4358echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4359CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4360
4361
4362
4363if
4364  test "x$enable_dependency_tracking" != xno \
4365  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4366  am__fastdepCC_TRUE=
4367  am__fastdepCC_FALSE='#'
4368else
4369  am__fastdepCC_TRUE='#'
4370  am__fastdepCC_FALSE=
4371fi
4372
4373
4374
4375echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4376echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4377    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4378if test "${enable_maintainer_mode+set}" = set; then
4379  enableval="$enable_maintainer_mode"
4380  USE_MAINTAINER_MODE=$enableval
4381else
4382  USE_MAINTAINER_MODE=no
4383fi;
4384  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4385echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4386
4387
4388if test $USE_MAINTAINER_MODE = yes; then
4389  MAINTAINER_MODE_TRUE=
4390  MAINTAINER_MODE_FALSE='#'
4391else
4392  MAINTAINER_MODE_TRUE='#'
4393  MAINTAINER_MODE_FALSE=
4394fi
4395
4396  MAINT=$MAINTAINER_MODE_TRUE
4397
4398
4399
4400coin_have_externals=no
4401if test "$enable_maintainer_mode" = yes; then
4402
4403  # If maintainer mode is chosen, we make sure that the correct versions
4404  # of the tools are used, and that we know where libtool.m4 is (to
4405  # recreate acinclude.m4)
4406
4407
4408  LIBTOOLM4=
4409  # Normally, $HOME
4410  AUTOTOOLS_DFLT=$HOME
4411
4412  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4413echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4414if test "${ac_cv_use_correct_autotools+set}" = set; then
4415  echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417  ac_cv_use_correct_autotools=check
4418fi
4419echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4420echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4421
4422  if test $ac_cv_use_correct_autotools = check; then
4423    ac_cv_use_correct_autotools=yes
4424    # Check if we have autoconf
4425    # Extract the first word of "autoconf", so it can be a program name with args.
4426set dummy autoconf; ac_word=$2
4427echo "$as_me:$LINENO: checking for $ac_word" >&5
4428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4429if test "${ac_cv_prog_have_autoconf+set}" = set; then
4430  echo $ECHO_N "(cached) $ECHO_C" >&6
4431else
4432  if test -n "$have_autoconf"; then
4433  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4434else
4435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436for as_dir in $PATH
4437do
4438  IFS=$as_save_IFS
4439  test -z "$as_dir" && as_dir=.
4440  for ac_exec_ext in '' $ac_executable_extensions; do
4441  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4442    ac_cv_prog_have_autoconf="yes"
4443    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444    break 2
4445  fi
4446done
4447done
4448
4449  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4450fi
4451fi
4452have_autoconf=$ac_cv_prog_have_autoconf
4453if test -n "$have_autoconf"; then
4454  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4455echo "${ECHO_T}$have_autoconf" >&6
4456else
4457  echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
4459fi
4460
4461    if test $have_autoconf = no; then
4462      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4463echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4464   { (exit 1); exit 1; }; }
4465    fi
4466
4467    # Check whether autoconf is the correct version
4468    correct_version='2.59'
4469    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4470    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4471echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4472    autoconf --version > confauto.out 2>&1
4473    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4474      echo "$as_me:$LINENO: result: yes" >&5
4475echo "${ECHO_T}yes" >&6
4476    else
4477      rm -f confauto.out
4478      echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6
4480      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4481echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4482   { (exit 1); exit 1; }; }
4483    fi
4484    rm -f confauto.out
4485
4486    # Check if the executable autoconf is picked up from the correct location
4487    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4488echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4489    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4490    autoconf_dir=`cd $autoconf_dir; pwd`
4491    if test x$AUTOTOOLS_DIR = x; then
4492      want_dir=$AUTOTOOLS_DFLT/bin
4493    else
4494      want_dir=$AUTOTOOLS_DIR/bin
4495    fi
4496    if test $autoconf_dir = `cd $want_dir; pwd`; then
4497      echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
4499    else
4500      rm -f confauto.out
4501      echo "$as_me:$LINENO: result: no" >&5
4502echo "${ECHO_T}no" >&6
4503      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4504echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4505   { (exit 1); exit 1; }; }
4506    fi
4507
4508    # Check if we have automake
4509    # Extract the first word of "automake", so it can be a program name with args.
4510set dummy automake; ac_word=$2
4511echo "$as_me:$LINENO: checking for $ac_word" >&5
4512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513if test "${ac_cv_prog_have_automake+set}" = set; then
4514  echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516  if test -n "$have_automake"; then
4517  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4518else
4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520for as_dir in $PATH
4521do
4522  IFS=$as_save_IFS
4523  test -z "$as_dir" && as_dir=.
4524  for ac_exec_ext in '' $ac_executable_extensions; do
4525  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526    ac_cv_prog_have_automake="yes"
4527    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528    break 2
4529  fi
4530done
4531done
4532
4533  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4534fi
4535fi
4536have_automake=$ac_cv_prog_have_automake
4537if test -n "$have_automake"; then
4538  echo "$as_me:$LINENO: result: $have_automake" >&5
4539echo "${ECHO_T}$have_automake" >&6
4540else
4541  echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
4543fi
4544
4545    if test $have_automake = no; then
4546      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4547echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4548   { (exit 1); exit 1; }; }
4549    fi
4550
4551    # Check whether automake is the correct version
4552    correct_version='1.9.6'
4553    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4554    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4555echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4556    automake --version > confauto.out 2>&1
4557    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4558      echo "$as_me:$LINENO: result: yes" >&5
4559echo "${ECHO_T}yes" >&6
4560    else
4561      rm -f confauto.out
4562      echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
4564      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4565echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4566   { (exit 1); exit 1; }; }
4567    fi
4568    rm -f confauto.out
4569
4570    # Check if the executable automake is picked up from the correct location
4571    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4572echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4573    automake_dir=`which automake | sed -e 's=/automake=='`
4574    automake_dir=`cd $automake_dir; pwd`
4575    if test x$AUTOTOOLS_DIR = x; then
4576      want_dir=$AUTOTOOLS_DFLT/bin
4577    else
4578      want_dir=$AUTOTOOLS_DIR/bin
4579    fi
4580    if test $automake_dir = `cd $want_dir; pwd`; then
4581      echo "$as_me:$LINENO: result: yes" >&5
4582echo "${ECHO_T}yes" >&6
4583    else
4584      rm -f confauto.out
4585      echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4588echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4589   { (exit 1); exit 1; }; }
4590    fi
4591
4592    # Check if this is the correct version of libtool (with escaped dots)
4593    if test x$AUTOTOOLS_DIR = x; then
4594      want_dir=$AUTOTOOLS_DFLT/share
4595    else
4596      want_dir=$AUTOTOOLS_DIR/share
4597    fi
4598    correct_version='1.5.22'
4599    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4600    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4601echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4602echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4603if eval "test \"\${$as_ac_File+set}\" = set"; then
4604  echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606  test "$cross_compiling" = yes &&
4607  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4608echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4609   { (exit 1); exit 1; }; }
4610if test -r "$want_dir/libtool/ltmain.sh"; then
4611  eval "$as_ac_File=yes"
4612else
4613  eval "$as_ac_File=no"
4614fi
4615fi
4616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4617echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4618if test `eval echo '${'$as_ac_File'}'` = yes; then
4619  have_ltmain=yes
4620else
4621  have_ltmain=no
4622fi
4623
4624    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4625echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4626    if test $have_ltmain = yes; then
4627    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4628        echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
4630      else
4631        echo "$as_me:$LINENO: result: no" >&5
4632echo "${ECHO_T}no" >&6
4633        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4634echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4635   { (exit 1); exit 1; }; }
4636      fi
4637    else
4638      echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6
4640      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4641echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4642   { (exit 1); exit 1; }; }
4643    fi
4644  fi
4645
4646  # Check if we can find the libtool file
4647  if test x$AUTOTOOLS_DIR = x; then
4648    want_dir=$AUTOTOOLS_DFLT/share
4649  else
4650    want_dir=$AUTOTOOLS_DIR/share
4651  fi
4652  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4653echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4654echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4655if eval "test \"\${$as_ac_File+set}\" = set"; then
4656  echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658  test "$cross_compiling" = yes &&
4659  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4660echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4661   { (exit 1); exit 1; }; }
4662if test -r "$want_dir/aclocal/libtool.m4"; then
4663  eval "$as_ac_File=yes"
4664else
4665  eval "$as_ac_File=no"
4666fi
4667fi
4668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4669echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4670if test `eval echo '${'$as_ac_File'}'` = yes; then
4671  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4672else
4673  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4674echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4675   { (exit 1); exit 1; }; }
4676fi
4677
4678
4679  # Check if we have an Externals file
4680  if test -r $srcdir/Externals; then
4681    coin_have_externals=yes
4682  fi
4683  # Check if subversion is installed and understands https
4684  # Extract the first word of "svn", so it can be a program name with args.
4685set dummy svn; ac_word=$2
4686echo "$as_me:$LINENO: checking for $ac_word" >&5
4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4688if test "${ac_cv_prog_have_svn+set}" = set; then
4689  echo $ECHO_N "(cached) $ECHO_C" >&6
4690else
4691  if test -n "$have_svn"; then
4692  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699  for ac_exec_ext in '' $ac_executable_extensions; do
4700  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701    ac_cv_prog_have_svn="yes"
4702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703    break 2
4704  fi
4705done
4706done
4707
4708  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4709fi
4710fi
4711have_svn=$ac_cv_prog_have_svn
4712if test -n "$have_svn"; then
4713  echo "$as_me:$LINENO: result: $have_svn" >&5
4714echo "${ECHO_T}$have_svn" >&6
4715else
4716  echo "$as_me:$LINENO: result: no" >&5
4717echo "${ECHO_T}no" >&6
4718fi
4719
4720  if test x$have_svn = xyes; then
4721    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4722echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4723if test "${ac_cv_svn_understands_https+set}" = set; then
4724  echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726  svn --version > confauto.out 2>&1
4727                    if $EGREP https confauto.out >/dev/null 2>&1; then
4728                      ac_cv_svn_understands_https=yes
4729                    else
4730                      ac_cv_svn_understands_https=no
4731                      have_svn=no
4732                      ac_cv_prog_have_svn=no
4733                    fi
4734                    rm -f confauto.out
4735fi
4736echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4737echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4738  fi
4739
4740  # Find the location of the BuildTools directory
4741  BUILDTOOLSDIR=
4742  if test -r $srcdir/BuildTools/coin.m4; then
4743    BUILDTOOLSDIR=$srcdir/BuildTools
4744  else
4745    if test -r $srcdir/../BuildTools/coin.m4; then
4746      BUILDTOOLSDIR=$srcdir/../BuildTools
4747    else
4748      if test -r $srcdir/../../BuildTools/coin.m4; then
4749        BUILDTOOLSDIR=$srcdir/../../BuildTools
4750      else
4751        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4752echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4753   { (exit 1); exit 1; }; }
4754      fi
4755    fi
4756  fi
4757
4758
4759  # The following variable is set to the name of the directory where
4760  # the autotool scripts are located
4761
4762  AUX_DIR=$ac_aux_dir
4763fi
4764
4765# helpful variable for the base directory of this package
4766abs_source_dir=`cd $srcdir; pwd`
4767
4768
4769# Stuff for example Makefiles
4770if test x$prefix = xNONE; then
4771  full_prefix=$ac_default_prefix
4772else
4773  full_prefix=$prefix
4774fi
4775full_prefix=`cd $full_prefix ; pwd`
4776
4777abs_lib_dir=$full_prefix/lib
4778
4779abs_include_dir=$full_prefix/include
4780
4781abs_bin_dir=$full_prefix/bin
4782
4783
4784
4785if test $coin_have_externals = yes && test x$have_svn = xyes; then
4786  HAVE_EXTERNALS_TRUE=
4787  HAVE_EXTERNALS_FALSE='#'
4788else
4789  HAVE_EXTERNALS_TRUE='#'
4790  HAVE_EXTERNALS_FALSE=
4791fi
4792
4793
4794# AC_MSG_NOTICE([End automake initialisation.])
4795
4796
4797
4798unset ac_cv_file__________libtool
4799unset ac_cv_file_______libtool
4800unset ac_cv_file____libtool
4801
4802LIBTOOL=
4803if test -r ../libtool; then
4804  coin_config_dir=..
4805  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4806fi
4807if test "x$LIBTOOL" = x; then
4808  if test -r ../../libtool; then
4809    coin_config_dir=../..
4810    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4811  fi
4812fi
4813
4814# AC_CHECK_FILE seems to complain when doing cross compilation...(?!??)
4815#AC_CHECK_FILE([../libtool],
4816#              [coin_config_dir=..
4817#               LIBTOOL='$(SHELL) $(top_builddir)/../libtool'])
4818#if test "x$LIBTOOL" = x; then
4819#  AC_CHECK_FILE([../../libtool],
4820#                [coin_config_dir=../..
4821#                 LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'])
4822#fi
4823# if test "x$LIBTOOL" = x; then
4824#   AC_CHECK_FILE([../../../libtool],
4825#                 [coin_config_dir=../../..
4826#                  LIBTOOL='$(SHELL) $(top_builddir)/../../../libtool'])
4827# fi
4828
4829if test "x$LIBTOOL" = x; then
4830# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4831  # Stuff for libtool
4832  # Check whether --enable-shared or --disable-shared was given.
4833if test "${enable_shared+set}" = set; then
4834  enableval="$enable_shared"
4835  p=${PACKAGE-default}
4836    case $enableval in
4837    yes) enable_shared=yes ;;
4838    no) enable_shared=no ;;
4839    *)
4840      enable_shared=no
4841      # Look at the argument we got.  We use all the common list separators.
4842      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4843      for pkg in $enableval; do
4844        IFS="$lt_save_ifs"
4845        if test "X$pkg" = "X$p"; then
4846          enable_shared=yes
4847        fi
4848      done
4849      IFS="$lt_save_ifs"
4850      ;;
4851    esac
4852else
4853  enable_shared=yes
4854fi;
4855
4856# Check whether --enable-fast-install or --disable-fast-install was given.
4857if test "${enable_fast_install+set}" = set; then
4858  enableval="$enable_fast_install"
4859  p=${PACKAGE-default}
4860    case $enableval in
4861    yes) enable_fast_install=yes ;;
4862    no) enable_fast_install=no ;;
4863    *)
4864      enable_fast_install=no
4865      # Look at the argument we got.  We use all the common list separators.
4866      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4867      for pkg in $enableval; do
4868        IFS="$lt_save_ifs"
4869        if test "X$pkg" = "X$p"; then
4870          enable_fast_install=yes
4871        fi
4872      done
4873      IFS="$lt_save_ifs"
4874      ;;
4875    esac
4876else
4877  enable_fast_install=yes
4878fi;
4879
4880echo "$as_me:$LINENO: checking host system type" >&5
4881echo $ECHO_N "checking host system type... $ECHO_C" >&6
4882if test "${ac_cv_host+set}" = set; then
4883  echo $ECHO_N "(cached) $ECHO_C" >&6
4884else
4885  ac_cv_host_alias=$host_alias
4886test -z "$ac_cv_host_alias" &&
4887  ac_cv_host_alias=$ac_cv_build_alias
4888ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4889  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4890echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4891   { (exit 1); exit 1; }; }
4892
4893fi
4894echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4895echo "${ECHO_T}$ac_cv_host" >&6
4896host=$ac_cv_host
4897host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4898host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4899host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4900
4901
4902echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4903echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4904if test "${lt_cv_path_SED+set}" = set; then
4905  echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907  # Loop through the user's path and test for sed and gsed.
4908# Then use that list of sed's as ones to test for truncation.
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912  IFS=$as_save_IFS
4913  test -z "$as_dir" && as_dir=.
4914  for lt_ac_prog in sed gsed; do
4915    for ac_exec_ext in '' $ac_executable_extensions; do
4916      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4917        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4918      fi
4919    done
4920  done
4921done
4922lt_ac_max=0
4923lt_ac_count=0
4924# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4925# along with /bin/sed that truncates output.
4926for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4927  test ! -f $lt_ac_sed && continue
4928  cat /dev/null > conftest.in
4929  lt_ac_count=0
4930  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4931  # Check for GNU sed and select it if it is found.
4932  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4933    lt_cv_path_SED=$lt_ac_sed
4934    break
4935  fi
4936  while true; do
4937    cat conftest.in conftest.in >conftest.tmp
4938    mv conftest.tmp conftest.in
4939    cp conftest.in conftest.nl
4940    echo >>conftest.nl
4941    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4942    cmp -s conftest.out conftest.nl || break
4943    # 10000 chars as input seems more than enough
4944    test $lt_ac_count -gt 10 && break
4945    lt_ac_count=`expr $lt_ac_count + 1`
4946    if test $lt_ac_count -gt $lt_ac_max; then
4947      lt_ac_max=$lt_ac_count
4948      lt_cv_path_SED=$lt_ac_sed
4949    fi
4950  done
4951done
4952
4953fi
4954
4955SED=$lt_cv_path_SED
4956echo "$as_me:$LINENO: result: $SED" >&5
4957echo "${ECHO_T}$SED" >&6
4958
4959
4960# Check whether --with-gnu-ld or --without-gnu-ld was given.
4961if test "${with_gnu_ld+set}" = set; then
4962  withval="$with_gnu_ld"
4963  test "$withval" = no || with_gnu_ld=yes
4964else
4965  with_gnu_ld=no
4966fi;
4967ac_prog=ld
4968if test "$GCC" = yes; then
4969  # Check if gcc -print-prog-name=ld gives a path.
4970  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4971echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4972  case $host in
4973  *-*-mingw*)
4974    # gcc leaves a trailing carriage return which upsets mingw
4975    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4976  *)
4977    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4978  esac
4979  case $ac_prog in
4980    # Accept absolute paths.
4981    [\\/]* | ?:[\\/]*)
4982      re_direlt='/[^/][^/]*/\.\./'
4983      # Canonicalize the pathname of ld
4984      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4985      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4986        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4987      done
4988      test -z "$LD" && LD="$ac_prog"
4989      ;;
4990  "")
4991    # If it fails, then pretend we aren't using GCC.
4992    ac_prog=ld
4993    ;;
4994  *)
4995    # If it is relative, then search for the first ld in PATH.
4996    with_gnu_ld=unknown
4997    ;;
4998  esac
4999elif test "$with_gnu_ld" = yes; then
5000  echo "$as_me:$LINENO: checking for GNU ld" >&5
5001echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5002else
5003  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5004echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5005fi
5006if test "${lt_cv_path_LD+set}" = set; then
5007  echo $ECHO_N "(cached) $ECHO_C" >&6
5008else
5009  if test -z "$LD"; then
5010  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5011  for ac_dir in $PATH; do
5012    IFS="$lt_save_ifs"
5013    test -z "$ac_dir" && ac_dir=.
5014    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5015      lt_cv_path_LD="$ac_dir/$ac_prog"
5016      # Check to see if the program is GNU ld.  I'd rather use --version,
5017      # but apparently some variants of GNU ld only accept -v.
5018      # Break only if it was the GNU/non-GNU ld that we prefer.
5019      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5020      *GNU* | *'with BFD'*)
5021        test "$with_gnu_ld" != no && break
5022        ;;
5023      *)
5024        test "$with_gnu_ld" != yes && break
5025        ;;
5026      esac
5027    fi
5028  done
5029  IFS="$lt_save_ifs"
5030else
5031  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5032fi
5033fi
5034
5035LD="$lt_cv_path_LD"
5036if test -n "$LD"; then
5037  echo "$as_me:$LINENO: result: $LD" >&5
5038echo "${ECHO_T}$LD" >&6
5039else
5040  echo "$as_me:$LINENO: result: no" >&5
5041echo "${ECHO_T}no" >&6
5042fi
5043test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5044echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5045   { (exit 1); exit 1; }; }
5046echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5047echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5048if test "${lt_cv_prog_gnu_ld+set}" = set; then
5049  echo $ECHO_N "(cached) $ECHO_C" >&6
5050else
5051  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5052case `$LD -v 2>&1 </dev/null` in
5053*GNU* | *'with BFD'*)
5054  lt_cv_prog_gnu_ld=yes
5055  ;;
5056*)
5057  lt_cv_prog_gnu_ld=no
5058  ;;
5059esac
5060fi
5061echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5062echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5063with_gnu_ld=$lt_cv_prog_gnu_ld
5064
5065
5066echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5067echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5068if test "${lt_cv_ld_reload_flag+set}" = set; then
5069  echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071  lt_cv_ld_reload_flag='-r'
5072fi
5073echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5074echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5075reload_flag=$lt_cv_ld_reload_flag
5076case $reload_flag in
5077"" | " "*) ;;
5078*) reload_flag=" $reload_flag" ;;
5079esac
5080reload_cmds='$LD$reload_flag -o $output$reload_objs'
5081case $host_os in
5082  darwin*)
5083    if test "$GCC" = yes; then
5084      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5085    else
5086      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5087    fi
5088    ;;
5089esac
5090
5091echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5092echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5093if test "${lt_cv_path_NM+set}" = set; then
5094  echo $ECHO_N "(cached) $ECHO_C" >&6
5095else
5096  if test -n "$NM"; then
5097  # Let the user override the test.
5098  lt_cv_path_NM="$NM"
5099else
5100  lt_nm_to_check="${ac_tool_prefix}nm"
5101  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5102    lt_nm_to_check="$lt_nm_to_check nm"
5103  fi
5104  for lt_tmp_nm in $lt_nm_to_check; do
5105    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5106    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5107      IFS="$lt_save_ifs"
5108      test -z "$ac_dir" && ac_dir=.
5109      tmp_nm="$ac_dir/$lt_tmp_nm"
5110      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5111        # Check to see if the nm accepts a BSD-compat flag.
5112        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5113        #   nm: unknown option "B" ignored
5114        # Tru64's nm complains that /dev/null is an invalid object file
5115        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5116        */dev/null* | *'Invalid file or object type'*)
5117          lt_cv_path_NM="$tmp_nm -B"
5118          break
5119          ;;
5120        *)
5121          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5122          */dev/null*)
5123            lt_cv_path_NM="$tmp_nm -p"
5124            break
5125            ;;
5126          *)
5127            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5128            continue # so that we can try to find one that supports BSD flags
5129            ;;
5130          esac
5131          ;;
5132        esac
5133      fi
5134    done
5135    IFS="$lt_save_ifs"
5136  done
5137  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5138fi
5139fi
5140echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5141echo "${ECHO_T}$lt_cv_path_NM" >&6
5142NM="$lt_cv_path_NM"
5143
5144echo "$as_me:$LINENO: checking whether ln -s works" >&5
5145echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5146LN_S=$as_ln_s
5147if test "$LN_S" = "ln -s"; then
5148  echo "$as_me:$LINENO: result: yes" >&5
5149echo "${ECHO_T}yes" >&6
5150else
5151  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5152echo "${ECHO_T}no, using $LN_S" >&6
5153fi
5154
5155echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5156echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5157if test "${lt_cv_deplibs_check_method+set}" = set; then
5158  echo $ECHO_N "(cached) $ECHO_C" >&6
5159else
5160  lt_cv_file_magic_cmd='$MAGIC_CMD'
5161lt_cv_file_magic_test_file=
5162lt_cv_deplibs_check_method='unknown'
5163# Need to set the preceding variable on all platforms that support
5164# interlibrary dependencies.
5165# 'none' -- dependencies not supported.
5166# `unknown' -- same as none, but documents that we really don't know.
5167# 'pass_all' -- all dependencies passed with no checks.
5168# 'test_compile' -- check by making test program.
5169# 'file_magic [[regex]]' -- check by looking for files in library path
5170# which responds to the $file_magic_cmd with a given extended regex.
5171# If you have `file' or equivalent on your system and you're not sure
5172# whether `pass_all' will *always* work, you probably want this one.
5173
5174case $host_os in
5175aix4* | aix5*)
5176  lt_cv_deplibs_check_method=pass_all
5177  ;;
5178
5179beos*)
5180  lt_cv_deplibs_check_method=pass_all
5181  ;;
5182
5183bsdi[45]*)
5184  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5185  lt_cv_file_magic_cmd='/usr/bin/file -L'
5186  lt_cv_file_magic_test_file=/shlib/libc.so
5187  ;;
5188
5189cygwin*)
5190  # func_win32_libid is a shell function defined in ltmain.sh
5191  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5192  lt_cv_file_magic_cmd='func_win32_libid'
5193  ;;
5194
5195mingw* | pw32*)
5196  # Base MSYS/MinGW do not provide the 'file' command needed by
5197  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5198  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5199  lt_cv_file_magic_cmd='$OBJDUMP -f'
5200  ;;
5201
5202darwin* | rhapsody*)
5203  lt_cv_deplibs_check_method=pass_all
5204  ;;
5205
5206freebsd* | kfreebsd*-gnu | dragonfly*)
5207  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5208    case $host_cpu in
5209    i*86 )
5210      # Not sure whether the presence of OpenBSD here was a mistake.
5211      # Let's accept both of them until this is cleared up.
5212      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5213      lt_cv_file_magic_cmd=/usr/bin/file
5214      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5215      ;;
5216    esac
5217  else
5218    lt_cv_deplibs_check_method=pass_all
5219  fi
5220  ;;
5221
5222gnu*)
5223  lt_cv_deplibs_check_method=pass_all
5224  ;;
5225
5226hpux10.20* | hpux11*)
5227  lt_cv_file_magic_cmd=/usr/bin/file
5228  case $host_cpu in
5229  ia64*)
5230    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5231    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5232    ;;
5233  hppa*64*)
5234    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]'
5235    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5236    ;;
5237  *)
5238    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5239    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5240    ;;
5241  esac
5242  ;;
5243
5244interix3*)
5245  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5246  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5247  ;;
5248
5249irix5* | irix6* | nonstopux*)
5250  case $LD in
5251  *-32|*"-32 ") libmagic=32-bit;;
5252  *-n32|*"-n32 ") libmagic=N32;;
5253  *-64|*"-64 ") libmagic=64-bit;;
5254  *) libmagic=never-match;;
5255  esac
5256  lt_cv_deplibs_check_method=pass_all
5257  ;;
5258
5259# This must be Linux ELF.
5260linux*)
5261  lt_cv_deplibs_check_method=pass_all
5262  ;;
5263
5264netbsd*)
5265  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5266    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5267  else
5268    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5269  fi
5270  ;;
5271
5272newos6*)
5273  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5274  lt_cv_file_magic_cmd=/usr/bin/file
5275  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5276  ;;
5277
5278nto-qnx*)
5279  lt_cv_deplibs_check_method=unknown
5280  ;;
5281
5282openbsd*)
5283  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5284    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5285  else
5286    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5287  fi
5288  ;;
5289
5290osf3* | osf4* | osf5*)
5291  lt_cv_deplibs_check_method=pass_all
5292  ;;
5293
5294solaris*)
5295  lt_cv_deplibs_check_method=pass_all
5296  ;;
5297
5298sysv4 | sysv4.3*)
5299  case $host_vendor in
5300  motorola)
5301    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]'
5302    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5303    ;;
5304  ncr)
5305    lt_cv_deplibs_check_method=pass_all
5306    ;;
5307  sequent)
5308    lt_cv_file_magic_cmd='/bin/file'
5309    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5310    ;;
5311  sni)
5312    lt_cv_file_magic_cmd='/bin/file'
5313    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5314    lt_cv_file_magic_test_file=/lib/libc.so
5315    ;;
5316  siemens)
5317    lt_cv_deplibs_check_method=pass_all
5318    ;;
5319  pc)
5320    lt_cv_deplibs_check_method=pass_all
5321    ;;
5322  esac
5323  ;;
5324
5325sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5326  lt_cv_deplibs_check_method=pass_all
5327  ;;
5328esac
5329
5330fi
5331echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5332echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5333file_magic_cmd=$lt_cv_file_magic_cmd
5334deplibs_check_method=$lt_cv_deplibs_check_method
5335test -z "$deplibs_check_method" && deplibs_check_method=unknown
5336
5337
5338
5339
5340# If no C compiler was specified, use CC.
5341LTCC=${LTCC-"$CC"}
5342
5343# If no C compiler flags were specified, use CFLAGS.
5344LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5345
5346# Allow CC to be a program name with arguments.
5347compiler=$CC
5348
5349# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5350if test "${enable_libtool_lock+set}" = set; then
5351  enableval="$enable_libtool_lock"
5352
5353fi;
5354test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5355
5356# Some flags need to be propagated to the compiler or linker for good
5357# libtool support.
5358case $host in
5359ia64-*-hpux*)
5360  # Find out which ABI we are using.
5361  echo 'int i;' > conftest.$ac_ext
5362  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5363  (eval $ac_compile) 2>&5
5364  ac_status=$?
5365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366  (exit $ac_status); }; then
5367    case `/usr/bin/file conftest.$ac_objext` in
5368    *ELF-32*)
5369      HPUX_IA64_MODE="32"
5370      ;;
5371    *ELF-64*)
5372      HPUX_IA64_MODE="64"
5373      ;;
5374    esac
5375  fi
5376  rm -rf conftest*
5377  ;;
5378*-*-irix6*)
5379  # Find out which ABI we are using.
5380  echo '#line 5380 "configure"' > conftest.$ac_ext
5381  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382  (eval $ac_compile) 2>&5
5383  ac_status=$?
5384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385  (exit $ac_status); }; then
5386   if test "$lt_cv_prog_gnu_ld" = yes; then
5387    case `/usr/bin/file conftest.$ac_objext` in
5388    *32-bit*)
5389      LD="${LD-ld} -melf32bsmip"
5390      ;;
5391    *N32*)
5392      LD="${LD-ld} -melf32bmipn32"
5393      ;;
5394    *64-bit*)
5395      LD="${LD-ld} -melf64bmip"
5396      ;;
5397    esac
5398   else
5399    case `/usr/bin/file conftest.$ac_objext` in
5400    *32-bit*)
5401      LD="${LD-ld} -32"
5402      ;;
5403    *N32*)
5404      LD="${LD-ld} -n32"
5405      ;;
5406    *64-bit*)
5407      LD="${LD-ld} -64"
5408      ;;
5409    esac
5410   fi
5411  fi
5412  rm -rf conftest*
5413  ;;
5414
5415x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5416  # Find out which ABI we are using.
5417  echo 'int i;' > conftest.$ac_ext
5418  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5419  (eval $ac_compile) 2>&5
5420  ac_status=$?
5421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422  (exit $ac_status); }; then
5423    case `/usr/bin/file conftest.o` in
5424    *32-bit*)
5425      case $host in
5426        x86_64-*linux*)
5427          LD="${LD-ld} -m elf_i386"
5428          ;;
5429        ppc64-*linux*|powerpc64-*linux*)
5430          LD="${LD-ld} -m elf32ppclinux"
5431          ;;
5432        s390x-*linux*)
5433          LD="${LD-ld} -m elf_s390"
5434          ;;
5435        sparc64-*linux*)
5436          LD="${LD-ld} -m elf32_sparc"
5437          ;;
5438      esac
5439      ;;
5440    *64-bit*)
5441      case $host in
5442        x86_64-*linux*)
5443          LD="${LD-ld} -m elf_x86_64"
5444          ;;
5445        ppc*-*linux*|powerpc*-*linux*)
5446          LD="${LD-ld} -m elf64ppc"
5447          ;;
5448        s390*-*linux*)
5449          LD="${LD-ld} -m elf64_s390"
5450          ;;
5451        sparc*-*linux*)
5452          LD="${LD-ld} -m elf64_sparc"
5453          ;;
5454      esac
5455      ;;
5456    esac
5457  fi
5458  rm -rf conftest*
5459  ;;
5460
5461*-*-sco3.2v5*)
5462  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5463  SAVE_CFLAGS="$CFLAGS"
5464  CFLAGS="$CFLAGS -belf"
5465  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5466echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5467if test "${lt_cv_cc_needs_belf+set}" = set; then
5468  echo $ECHO_N "(cached) $ECHO_C" >&6
5469else
5470  ac_ext=c
5471ac_cpp='$CPP $CPPFLAGS'
5472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476     cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h.  */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h.  */
5482
5483int
5484main ()
5485{
5486
5487  ;
5488  return 0;
5489}
5490_ACEOF
5491rm -f conftest.$ac_objext conftest$ac_exeext
5492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5493  (eval $ac_link) 2>conftest.er1
5494  ac_status=$?
5495  grep -v '^ *+' conftest.er1 >conftest.err
5496  rm -f conftest.er1
5497  cat conftest.err >&5
5498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499  (exit $ac_status); } &&
5500         { ac_try='test -z "$ac_c_werror_flag"
5501                         || test ! -s conftest.err'
5502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503  (eval $ac_try) 2>&5
5504  ac_status=$?
5505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506  (exit $ac_status); }; } &&
5507         { ac_try='test -s conftest$ac_exeext'
5508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509  (eval $ac_try) 2>&5
5510  ac_status=$?
5511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512  (exit $ac_status); }; }; then
5513  lt_cv_cc_needs_belf=yes
5514else
5515  echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518lt_cv_cc_needs_belf=no
5519fi
5520rm -f conftest.err conftest.$ac_objext \
5521      conftest$ac_exeext conftest.$ac_ext
5522     ac_ext=c
5523ac_cpp='$CPP $CPPFLAGS'
5524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526ac_compiler_gnu=$ac_cv_c_compiler_gnu
5527
5528fi
5529echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5530echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5531  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5532    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5533    CFLAGS="$SAVE_CFLAGS"
5534  fi
5535  ;;
5536sparc*-*solaris*)
5537  # Find out which ABI we are using.
5538  echo 'int i;' > conftest.$ac_ext
5539  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540  (eval $ac_compile) 2>&5
5541  ac_status=$?
5542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543  (exit $ac_status); }; then
5544    case `/usr/bin/file conftest.o` in
5545    *64-bit*)
5546      case $lt_cv_prog_gnu_ld in
5547      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5548      *)    LD="${LD-ld} -64" ;;
5549      esac
5550      ;;
5551    esac
5552  fi
5553  rm -rf conftest*
5554  ;;
5555
5556
5557esac
5558
5559need_locks="$enable_libtool_lock"
5560
5561
5562ac_ext=c
5563ac_cpp='$CPP $CPPFLAGS'
5564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5568echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5569# On Suns, sometimes $CPP names a directory.
5570if test -n "$CPP" && test -d "$CPP"; then
5571  CPP=
5572fi
5573if test -z "$CPP"; then
5574  if test "${ac_cv_prog_CPP+set}" = set; then
5575  echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577      # Double quotes because CPP needs to be expanded
5578    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5579    do
5580      ac_preproc_ok=false
5581for ac_c_preproc_warn_flag in '' yes
5582do
5583  # Use a header file that comes with gcc, so configuring glibc
5584  # with a fresh cross-compiler works.
5585  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586  # <limits.h> exists even on freestanding compilers.
5587  # On the NeXT, cc -E runs the code through the compiler's parser,
5588  # not just through cpp. "Syntax error" is here to catch this case.
5589  cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h.  */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
5594/* end confdefs.h.  */
5595#ifdef __STDC__
5596# include <limits.h>
5597#else
5598# include <assert.h>
5599#endif
5600                     Syntax error
5601_ACEOF
5602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5603  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5604  ac_status=$?
5605  grep -v '^ *+' conftest.er1 >conftest.err
5606  rm -f conftest.er1
5607  cat conftest.err >&5
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); } >/dev/null; then
5610  if test -s conftest.err; then
5611    ac_cpp_err=$ac_c_preproc_warn_flag
5612    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5613  else
5614    ac_cpp_err=
5615  fi
5616else
5617  ac_cpp_err=yes
5618fi
5619if test -z "$ac_cpp_err"; then
5620  :
5621else
5622  echo "$as_me: failed program was:" >&5
5623sed 's/^/| /' conftest.$ac_ext >&5
5624
5625  # Broken: fails on valid input.
5626continue
5627fi
5628rm -f conftest.err conftest.$ac_ext
5629
5630  # OK, works on sane cases.  Now check whether non-existent headers
5631  # can be detected and how.
5632  cat >conftest.$ac_ext <<_ACEOF
5633/* confdefs.h.  */
5634_ACEOF
5635cat confdefs.h >>conftest.$ac_ext
5636cat >>conftest.$ac_ext <<_ACEOF
5637/* end confdefs.h.  */
5638#include <ac_nonexistent.h>
5639_ACEOF
5640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5641  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5642  ac_status=$?
5643  grep -v '^ *+' conftest.er1 >conftest.err
5644  rm -f conftest.er1
5645  cat conftest.err >&5
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); } >/dev/null; then
5648  if test -s conftest.err; then
5649    ac_cpp_err=$ac_c_preproc_warn_flag
5650    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5651  else
5652    ac_cpp_err=
5653  fi
5654else
5655  ac_cpp_err=yes
5656fi
5657if test -z "$ac_cpp_err"; then
5658  # Broken: success on invalid input.
5659continue
5660else
5661  echo "$as_me: failed program was:" >&5
5662sed 's/^/| /' conftest.$ac_ext >&5
5663
5664  # Passes both tests.
5665ac_preproc_ok=:
5666break
5667fi
5668rm -f conftest.err conftest.$ac_ext
5669
5670done
5671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5672rm -f conftest.err conftest.$ac_ext
5673if $ac_preproc_ok; then
5674  break
5675fi
5676
5677    done
5678    ac_cv_prog_CPP=$CPP
5679
5680fi
5681  CPP=$ac_cv_prog_CPP
5682else
5683  ac_cv_prog_CPP=$CPP
5684fi
5685echo "$as_me:$LINENO: result: $CPP" >&5
5686echo "${ECHO_T}$CPP" >&6
5687ac_preproc_ok=false
5688for ac_c_preproc_warn_flag in '' yes
5689do
5690  # Use a header file that comes with gcc, so configuring glibc
5691  # with a fresh cross-compiler works.
5692  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5693  # <limits.h> exists even on freestanding compilers.
5694  # On the NeXT, cc -E runs the code through the compiler's parser,
5695  # not just through cpp. "Syntax error" is here to catch this case.
5696  cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h.  */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h.  */
5702#ifdef __STDC__
5703# include <limits.h>
5704#else
5705# include <assert.h>
5706#endif
5707                     Syntax error
5708_ACEOF
5709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5711  ac_status=$?
5712  grep -v '^ *+' conftest.er1 >conftest.err
5713  rm -f conftest.er1
5714  cat conftest.err >&5
5715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716  (exit $ac_status); } >/dev/null; then
5717  if test -s conftest.err; then
5718    ac_cpp_err=$ac_c_preproc_warn_flag
5719    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5720  else
5721    ac_cpp_err=
5722  fi
5723else
5724  ac_cpp_err=yes
5725fi
5726if test -z "$ac_cpp_err"; then
5727  :
5728else
5729  echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
5731
5732  # Broken: fails on valid input.
5733continue
5734fi
5735rm -f conftest.err conftest.$ac_ext
5736
5737  # OK, works on sane cases.  Now check whether non-existent headers
5738  # can be detected and how.
5739  cat >conftest.$ac_ext <<_ACEOF
5740/* confdefs.h.  */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h.  */
5745#include <ac_nonexistent.h>
5746_ACEOF
5747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5748  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5749  ac_status=$?
5750  grep -v '^ *+' conftest.er1 >conftest.err
5751  rm -f conftest.er1
5752  cat conftest.err >&5
5753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754  (exit $ac_status); } >/dev/null; then
5755  if test -s conftest.err; then
5756    ac_cpp_err=$ac_c_preproc_warn_flag
5757    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5758  else
5759    ac_cpp_err=
5760  fi
5761else
5762  ac_cpp_err=yes
5763fi
5764if test -z "$ac_cpp_err"; then
5765  # Broken: success on invalid input.
5766continue
5767else
5768  echo "$as_me: failed program was:" >&5
5769sed 's/^/| /' conftest.$ac_ext >&5
5770
5771  # Passes both tests.
5772ac_preproc_ok=:
5773break
5774fi
5775rm -f conftest.err conftest.$ac_ext
5776
5777done
5778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779rm -f conftest.err conftest.$ac_ext
5780if $ac_preproc_ok; then
5781  :
5782else
5783  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5784See \`config.log' for more details." >&5
5785echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5786See \`config.log' for more details." >&2;}
5787   { (exit 1); exit 1; }; }
5788fi
5789
5790ac_ext=c
5791ac_cpp='$CPP $CPPFLAGS'
5792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794ac_compiler_gnu=$ac_cv_c_compiler_gnu
5795
5796
5797echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5798echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5799if test "${ac_cv_header_stdc+set}" = set; then
5800  echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802  cat >conftest.$ac_ext <<_ACEOF
5803/* confdefs.h.  */
5804_ACEOF
5805cat confdefs.h >>conftest.$ac_ext
5806cat >>conftest.$ac_ext <<_ACEOF
5807/* end confdefs.h.  */
5808#include <stdlib.h>
5809#include <stdarg.h>
5810#include <string.h>
5811#include <float.h>
5812
5813int
5814main ()
5815{
5816
5817  ;
5818  return 0;
5819}
5820_ACEOF
5821rm -f conftest.$ac_objext
5822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5823  (eval $ac_compile) 2>conftest.er1
5824  ac_status=$?
5825  grep -v '^ *+' conftest.er1 >conftest.err
5826  rm -f conftest.er1
5827  cat conftest.err >&5
5828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829  (exit $ac_status); } &&
5830         { ac_try='test -z "$ac_c_werror_flag"
5831                         || test ! -s conftest.err'
5832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833  (eval $ac_try) 2>&5
5834  ac_status=$?
5835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836  (exit $ac_status); }; } &&
5837         { ac_try='test -s conftest.$ac_objext'
5838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839  (eval $ac_try) 2>&5
5840  ac_status=$?
5841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842  (exit $ac_status); }; }; then
5843  ac_cv_header_stdc=yes
5844else
5845  echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848ac_cv_header_stdc=no
5849fi
5850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5851
5852if test $ac_cv_header_stdc = yes; then
5853  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5854  cat >conftest.$ac_ext <<_ACEOF
5855/* confdefs.h.  */
5856_ACEOF
5857cat confdefs.h >>conftest.$ac_ext
5858cat >>conftest.$ac_ext <<_ACEOF
5859/* end confdefs.h.  */
5860#include <string.h>
5861
5862_ACEOF
5863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5864  $EGREP "memchr" >/dev/null 2>&1; then
5865  :
5866else
5867  ac_cv_header_stdc=no
5868fi
5869rm -f conftest*
5870
5871fi
5872
5873if test $ac_cv_header_stdc = yes; then
5874  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5875  cat >conftest.$ac_ext <<_ACEOF
5876/* confdefs.h.  */
5877_ACEOF
5878cat confdefs.h >>conftest.$ac_ext
5879cat >>conftest.$ac_ext <<_ACEOF
5880/* end confdefs.h.  */
5881#include <stdlib.h>
5882
5883_ACEOF
5884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5885  $EGREP "free" >/dev/null 2>&1; then
5886  :
5887else
5888  ac_cv_header_stdc=no
5889fi
5890rm -f conftest*
5891
5892fi
5893
5894if test $ac_cv_header_stdc = yes; then
5895  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5896  if test "$cross_compiling" = yes; then
5897  :
5898else
5899  cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h.  */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h.  */
5905#include <ctype.h>
5906#if ((' ' & 0x0FF) == 0x020)
5907# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909#else
5910# define ISLOWER(c) \
5911                   (('a' <= (c) && (c) <= 'i') \
5912                     || ('j' <= (c) && (c) <= 'r') \
5913                     || ('s' <= (c) && (c) <= 'z'))
5914# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915#endif
5916
5917#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5918int
5919main ()
5920{
5921  int i;
5922  for (i = 0; i < 256; i++)
5923    if (XOR (islower (i), ISLOWER (i))
5924        || toupper (i) != TOUPPER (i))
5925      exit(2);
5926  exit (0);
5927}
5928_ACEOF
5929rm -f conftest$ac_exeext
5930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5931  (eval $ac_link) 2>&5
5932  ac_status=$?
5933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936  (eval $ac_try) 2>&5
5937  ac_status=$?
5938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939  (exit $ac_status); }; }; then
5940  :
5941else
5942  echo "$as_me: program exited with status $ac_status" >&5
5943echo "$as_me: failed program was:" >&5
5944sed 's/^/| /' conftest.$ac_ext >&5
5945
5946( exit $ac_status )
5947ac_cv_header_stdc=no
5948fi
5949rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5950fi
5951fi
5952fi
5953echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5954echo "${ECHO_T}$ac_cv_header_stdc" >&6
5955if test $ac_cv_header_stdc = yes; then
5956
5957cat >>confdefs.h <<\_ACEOF
5958#define STDC_HEADERS 1
5959_ACEOF
5960
5961fi
5962
5963# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5974                  inttypes.h stdint.h unistd.h
5975do
5976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977echo "$as_me:$LINENO: checking for $ac_header" >&5
5978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5979if eval "test \"\${$as_ac_Header+set}\" = set"; then
5980  echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982  cat >conftest.$ac_ext <<_ACEOF
5983/* confdefs.h.  */
5984_ACEOF
5985cat confdefs.h >>conftest.$ac_ext
5986cat >>conftest.$ac_ext <<_ACEOF
5987/* end confdefs.h.  */
5988$ac_includes_default
5989
5990#include <$ac_header>
5991_ACEOF
5992rm -f conftest.$ac_objext
5993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994  (eval $ac_compile) 2>conftest.er1
5995  ac_status=$?
5996  grep -v '^ *+' conftest.er1 >conftest.err
5997  rm -f conftest.er1
5998  cat conftest.err >&5
5999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000  (exit $ac_status); } &&
6001         { ac_try='test -z "$ac_c_werror_flag"
6002                         || test ! -s conftest.err'
6003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004  (eval $ac_try) 2>&5
6005  ac_status=$?
6006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007  (exit $ac_status); }; } &&
6008         { ac_try='test -s conftest.$ac_objext'
6009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010  (eval $ac_try) 2>&5
6011  ac_status=$?
6012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013  (exit $ac_status); }; }; then
6014  eval "$as_ac_Header=yes"
6015else
6016  echo "$as_me: failed program was:" >&5
6017sed 's/^/| /' conftest.$ac_ext >&5
6018
6019eval "$as_ac_Header=no"
6020fi
6021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6022fi
6023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6025if test `eval echo '${'$as_ac_Header'}'` = yes; then
6026  cat >>confdefs.h <<_ACEOF
6027#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6028_ACEOF
6029
6030fi
6031
6032done
6033
6034
6035
6036for ac_header in dlfcn.h
6037do
6038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6039if eval "test \"\${$as_ac_Header+set}\" = set"; then
6040  echo "$as_me:$LINENO: checking for $ac_header" >&5
6041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6042if eval "test \"\${$as_ac_Header+set}\" = set"; then
6043  echo $ECHO_N "(cached) $ECHO_C" >&6
6044fi
6045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6047else
6048  # Is the header compilable?
6049echo "$as_me:$LINENO: checking $ac_header usability" >&5
6050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6051cat >conftest.$ac_ext <<_ACEOF
6052/* confdefs.h.  */
6053_ACEOF
6054cat confdefs.h >>conftest.$ac_ext
6055cat >>conftest.$ac_ext <<_ACEOF
6056/* end confdefs.h.  */
6057$ac_includes_default
6058#include <$ac_header>
6059_ACEOF
6060rm -f conftest.$ac_objext
6061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6062  (eval $ac_compile) 2>conftest.er1
6063  ac_status=$?
6064  grep -v '^ *+' conftest.er1 >conftest.err
6065  rm -f conftest.er1
6066  cat conftest.err >&5
6067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068  (exit $ac_status); } &&
6069         { ac_try='test -z "$ac_c_werror_flag"
6070                         || test ! -s conftest.err'
6071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6072  (eval $ac_try) 2>&5
6073  ac_status=$?
6074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); }; } &&
6076         { ac_try='test -s conftest.$ac_objext'
6077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078  (eval $ac_try) 2>&5
6079  ac_status=$?
6080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081  (exit $ac_status); }; }; then
6082  ac_header_compiler=yes
6083else
6084  echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087ac_header_compiler=no
6088fi
6089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6090echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6091echo "${ECHO_T}$ac_header_compiler" >&6
6092
6093# Is the header present?
6094echo "$as_me:$LINENO: checking $ac_header presence" >&5
6095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6096cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h.  */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h.  */
6102#include <$ac_header>
6103_ACEOF
6104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6105  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6106  ac_status=$?
6107  grep -v '^ *+' conftest.er1 >conftest.err
6108  rm -f conftest.er1
6109  cat conftest.err >&5
6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111  (exit $ac_status); } >/dev/null; then
6112  if test -s conftest.err; then
6113    ac_cpp_err=$ac_c_preproc_warn_flag
6114    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6115  else
6116    ac_cpp_err=
6117  fi
6118else
6119  ac_cpp_err=yes
6120fi
6121if test -z "$ac_cpp_err"; then
6122  ac_header_preproc=yes
6123else
6124  echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127  ac_header_preproc=no
6128fi
6129rm -f conftest.err conftest.$ac_ext
6130echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6131echo "${ECHO_T}$ac_header_preproc" >&6
6132
6133# So?  What about this header?
6134case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6135  yes:no: )
6136    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6138    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6139echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6140    ac_header_preproc=yes
6141    ;;
6142  no:yes:* )
6143    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6144echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6145    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6146echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6147    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6148echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6149    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6150echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6151    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6152echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6153    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6154echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6155    (
6156      cat <<\_ASBOX
6157## --------------------------------------------------------------- ##
6158## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6159## --------------------------------------------------------------- ##
6160_ASBOX
6161    ) |
6162      sed "s/^/$as_me: WARNING:     /" >&2
6163    ;;
6164esac
6165echo "$as_me:$LINENO: checking for $ac_header" >&5
6166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6167if eval "test \"\${$as_ac_Header+set}\" = set"; then
6168  echo $ECHO_N "(cached) $ECHO_C" >&6
6169else
6170  eval "$as_ac_Header=\$ac_header_preproc"
6171fi
6172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6174
6175fi
6176if test `eval echo '${'$as_ac_Header'}'` = yes; then
6177  cat >>confdefs.h <<_ACEOF
6178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6179_ACEOF
6180
6181fi
6182
6183done
6184
6185ac_ext=cc
6186ac_cpp='$CXXCPP $CPPFLAGS'
6187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6190if test -n "$ac_tool_prefix"; then
6191  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6192  do
6193    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6195echo "$as_me:$LINENO: checking for $ac_word" >&5
6196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6197if test "${ac_cv_prog_CXX+set}" = set; then
6198  echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200  if test -n "$CXX"; then
6201  ac_cv_prog_CXX="$CXX" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206  IFS=$as_save_IFS
6207  test -z "$as_dir" && as_dir=.
6208  for ac_exec_ext in '' $ac_executable_extensions; do
6209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6210    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212    break 2
6213  fi
6214done
6215done
6216
6217fi
6218fi
6219CXX=$ac_cv_prog_CXX
6220if test -n "$CXX"; then
6221  echo "$as_me:$LINENO: result: $CXX" >&5
6222echo "${ECHO_T}$CXX" >&6
6223else
6224  echo "$as_me:$LINENO: result: no" >&5
6225echo "${ECHO_T}no" >&6
6226fi
6227
6228    test -n "$CXX" && break
6229  done
6230fi
6231if test -z "$CXX"; then
6232  ac_ct_CXX=$CXX
6233  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6234do
6235  # Extract the first word of "$ac_prog", so it can be a program name with args.
6236set dummy $ac_prog; ac_word=$2
6237echo "$as_me:$LINENO: checking for $ac_word" >&5
6238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6239if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6240  echo $ECHO_N "(cached) $ECHO_C" >&6
6241else
6242  if test -n "$ac_ct_CXX"; then
6243  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248  IFS=$as_save_IFS
6249  test -z "$as_dir" && as_dir=.
6250  for ac_exec_ext in '' $ac_executable_extensions; do
6251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252    ac_cv_prog_ac_ct_CXX="$ac_prog"
6253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6254    break 2
6255  fi
6256done
6257done
6258
6259fi
6260fi
6261ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6262if test -n "$ac_ct_CXX"; then
6263  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6264echo "${ECHO_T}$ac_ct_CXX" >&6
6265else
6266  echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6
6268fi
6269
6270  test -n "$ac_ct_CXX" && break
6271done
6272test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6273
6274  CXX=$ac_ct_CXX
6275fi
6276
6277
6278# Provide some information about the compiler.
6279echo "$as_me:$LINENO:" \
6280     "checking for C++ compiler version" >&5
6281ac_compiler=`set X $ac_compile; echo $2`
6282{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6283  (eval $ac_compiler --version </dev/null >&5) 2>&5
6284  ac_status=$?
6285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286  (exit $ac_status); }
6287{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6288  (eval $ac_compiler -v </dev/null >&5) 2>&5
6289  ac_status=$?
6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); }
6292{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6293  (eval $ac_compiler -V </dev/null >&5) 2>&5
6294  ac_status=$?
6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); }
6297
6298echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6299echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6300if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  cat >conftest.$ac_ext <<_ACEOF
6304/* confdefs.h.  */
6305_ACEOF
6306cat confdefs.h >>conftest.$ac_ext
6307cat >>conftest.$ac_ext <<_ACEOF
6308/* end confdefs.h.  */
6309
6310int
6311main ()
6312{
6313#ifndef __GNUC__
6314       choke me
6315#endif
6316
6317  ;
6318  return 0;
6319}
6320_ACEOF
6321rm -f conftest.$ac_objext
6322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323  (eval $ac_compile) 2>conftest.er1
6324  ac_status=$?
6325  grep -v '^ *+' conftest.er1 >conftest.err
6326  rm -f conftest.er1
6327  cat conftest.err >&5
6328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); } &&
6330         { ac_try='test -z "$ac_cxx_werror_flag"
6331                         || test ! -s conftest.err'
6332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333  (eval $ac_try) 2>&5
6334  ac_status=$?
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); }; } &&
6337         { ac_try='test -s conftest.$ac_objext'
6338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339  (eval $ac_try) 2>&5
6340  ac_status=$?
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); }; }; then
6343  ac_compiler_gnu=yes
6344else
6345  echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348ac_compiler_gnu=no
6349fi
6350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6351ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6352
6353fi
6354echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6355echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6356GXX=`test $ac_compiler_gnu = yes && echo yes`
6357ac_test_CXXFLAGS=${CXXFLAGS+set}
6358ac_save_CXXFLAGS=$CXXFLAGS
6359CXXFLAGS="-g"
6360echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6361echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6362if test "${ac_cv_prog_cxx_g+set}" = set; then
6363  echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365  cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h.  */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h.  */
6371
6372int
6373main ()
6374{
6375
6376  ;
6377  return 0;
6378}
6379_ACEOF
6380rm -f conftest.$ac_objext
6381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6382  (eval $ac_compile) 2>conftest.er1
6383  ac_status=$?
6384  grep -v '^ *+' conftest.er1 >conftest.err
6385  rm -f conftest.er1
6386  cat conftest.err >&5
6387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388  (exit $ac_status); } &&
6389         { ac_try='test -z "$ac_cxx_werror_flag"
6390                         || test ! -s conftest.err'
6391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392  (eval $ac_try) 2>&5
6393  ac_status=$?
6394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395  (exit $ac_status); }; } &&
6396         { ac_try='test -s conftest.$ac_objext'
6397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398  (eval $ac_try) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; }; then
6402  ac_cv_prog_cxx_g=yes
6403else
6404  echo "$as_me: failed program was:" >&5
6405sed 's/^/| /' conftest.$ac_ext >&5
6406
6407ac_cv_prog_cxx_g=no
6408fi
6409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6410fi
6411echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6412echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6413if test "$ac_test_CXXFLAGS" = set; then
6414  CXXFLAGS=$ac_save_CXXFLAGS
6415elif test $ac_cv_prog_cxx_g = yes; then
6416  if test "$GXX" = yes; then
6417    CXXFLAGS="-g -O2"
6418  else
6419    CXXFLAGS="-g"
6420  fi
6421else
6422  if test "$GXX" = yes; then
6423    CXXFLAGS="-O2"
6424  else
6425    CXXFLAGS=
6426  fi
6427fi
6428for ac_declaration in \
6429   '' \
6430   'extern "C" void std::exit (int) throw (); using std::exit;' \
6431   'extern "C" void std::exit (int); using std::exit;' \
6432   'extern "C" void exit (int) throw ();' \
6433   'extern "C" void exit (int);' \
6434   'void exit (int);'
6435do
6436  cat >conftest.$ac_ext <<_ACEOF
6437/* confdefs.h.  */
6438_ACEOF
6439cat confdefs.h >>conftest.$ac_ext
6440cat >>conftest.$ac_ext <<_ACEOF
6441/* end confdefs.h.  */
6442$ac_declaration
6443#include <stdlib.h>
6444int
6445main ()
6446{
6447exit (42);
6448  ;
6449  return 0;
6450}
6451_ACEOF
6452rm -f conftest.$ac_objext
6453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6454  (eval $ac_compile) 2>conftest.er1
6455  ac_status=$?
6456  grep -v '^ *+' conftest.er1 >conftest.err
6457  rm -f conftest.er1
6458  cat conftest.err >&5
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); } &&
6461         { ac_try='test -z "$ac_cxx_werror_flag"
6462                         || test ! -s conftest.err'
6463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6464  (eval $ac_try) 2>&5
6465  ac_status=$?
6466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467  (exit $ac_status); }; } &&
6468         { ac_try='test -s conftest.$ac_objext'
6469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6470  (eval $ac_try) 2>&5
6471  ac_status=$?
6472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473  (exit $ac_status); }; }; then
6474  :
6475else
6476  echo "$as_me: failed program was:" >&5
6477sed 's/^/| /' conftest.$ac_ext >&5
6478
6479continue
6480fi
6481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6482  cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h.  */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h.  */
6488$ac_declaration
6489int
6490main ()
6491{
6492exit (42);
6493  ;
6494  return 0;
6495}
6496_ACEOF
6497rm -f conftest.$ac_objext
6498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6499  (eval $ac_compile) 2>conftest.er1
6500  ac_status=$?
6501  grep -v '^ *+' conftest.er1 >conftest.err
6502  rm -f conftest.er1
6503  cat conftest.err >&5
6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505  (exit $ac_status); } &&
6506         { ac_try='test -z "$ac_cxx_werror_flag"
6507                         || test ! -s conftest.err'
6508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509  (eval $ac_try) 2>&5
6510  ac_status=$?
6511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512  (exit $ac_status); }; } &&
6513         { ac_try='test -s conftest.$ac_objext'
6514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6515  (eval $ac_try) 2>&5
6516  ac_status=$?
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); }; }; then
6519  break
6520else
6521  echo "$as_me: failed program was:" >&5
6522sed 's/^/| /' conftest.$ac_ext >&5
6523
6524fi
6525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6526done
6527rm -f conftest*
6528if test -n "$ac_declaration"; then
6529  echo '#ifdef __cplusplus' >>confdefs.h
6530  echo $ac_declaration      >>confdefs.h
6531  echo '#endif'             >>confdefs.h
6532fi
6533
6534ac_ext=cc
6535ac_cpp='$CXXCPP $CPPFLAGS'
6536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6539
6540depcc="$CXX"  am_compiler_list=
6541
6542echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6543echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6544if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6548  # We make a subdir and do the tests there.  Otherwise we can end up
6549  # making bogus files that we don't know about and never remove.  For
6550  # instance it was reported that on HP-UX the gcc test will end up
6551  # making a dummy file named `D' -- because `-MD' means `put the output
6552  # in D'.
6553  mkdir conftest.dir
6554  # Copy depcomp to subdir because otherwise we won't find it if we're
6555  # using a relative directory.
6556  cp "$am_depcomp" conftest.dir
6557  cd conftest.dir
6558  # We will build objects and dependencies in a subdirectory because
6559  # it helps to detect inapplicable dependency modes.  For instance
6560  # both Tru64's cc and ICC support -MD to output dependencies as a
6561  # side effect of compilation, but ICC will put the dependencies in
6562  # the current directory while Tru64 will put them in the object
6563  # directory.
6564  mkdir sub
6565
6566  am_cv_CXX_dependencies_compiler_type=none
6567  if test "$am_compiler_list" = ""; then
6568     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6569  fi
6570  for depmode in $am_compiler_list; do
6571    # Setup a source with many dependencies, because some compilers
6572    # like to wrap large dependency lists on column 80 (with \), and
6573    # we should not choose a depcomp mode which is confused by this.
6574    #
6575    # We need to recreate these files for each test, as the compiler may
6576    # overwrite some of them when testing with obscure command lines.
6577    # This happens at least with the AIX C compiler.
6578    : > sub/conftest.c
6579    for i in 1 2 3 4 5 6; do
6580      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6581      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6582      # Solaris 8's {/usr,}/bin/sh.
6583      touch sub/conftst$i.h
6584    done
6585    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6586
6587    case $depmode in
6588    nosideeffect)
6589      # after this tag, mechanisms are not by side-effect, so they'll
6590      # only be used when explicitly requested
6591      if test "x$enable_dependency_tracking" = xyes; then
6592        continue
6593      else
6594        break
6595      fi
6596      ;;
6597    none) break ;;
6598    esac
6599    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6600    # mode.  It turns out that the SunPro C++ compiler does not properly
6601    # handle `-M -o', and we need to detect this.
6602    if depmode=$depmode \
6603       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6604       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6605       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6606         >/dev/null 2>conftest.err &&
6607       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6608       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6609       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6610      # icc doesn't choke on unknown options, it will just issue warnings
6611      # or remarks (even with -Werror).  So we grep stderr for any message
6612      # that says an option was ignored or not supported.
6613      # When given -MP, icc 7.0 and 7.1 complain thusly:
6614      #   icc: Command line warning: ignoring option '-M'; no argument required
6615      # The diagnosis changed in icc 8.0:
6616      #   icc: Command line remark: option '-MP' not supported
6617      if (grep 'ignoring option' conftest.err ||
6618          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6619        am_cv_CXX_dependencies_compiler_type=$depmode
6620        break
6621      fi
6622    fi
6623  done
6624
6625  cd ..
6626  rm -rf conftest.dir
6627else
6628  am_cv_CXX_dependencies_compiler_type=none
6629fi
6630
6631fi
6632echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6633echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6634CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6635
6636
6637
6638if
6639  test "x$enable_dependency_tracking" != xno \
6640  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6641  am__fastdepCXX_TRUE=
6642  am__fastdepCXX_FALSE='#'
6643else
6644  am__fastdepCXX_TRUE='#'
6645  am__fastdepCXX_FALSE=
6646fi
6647
6648
6649
6650
6651if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6652    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6653    (test "X$CXX" != "Xg++"))) ; then
6654  ac_ext=cc
6655ac_cpp='$CXXCPP $CPPFLAGS'
6656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6659echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6660echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6661if test -z "$CXXCPP"; then
6662  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6663  echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665      # Double quotes because CXXCPP needs to be expanded
6666    for CXXCPP in "$CXX -E" "/lib/cpp"
6667    do
6668      ac_preproc_ok=false
6669for ac_cxx_preproc_warn_flag in '' yes
6670do
6671  # Use a header file that comes with gcc, so configuring glibc
6672  # with a fresh cross-compiler works.
6673  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6674  # <limits.h> exists even on freestanding compilers.
6675  # On the NeXT, cc -E runs the code through the compiler's parser,
6676  # not just through cpp. "Syntax error" is here to catch this case.
6677  cat >conftest.$ac_ext <<_ACEOF
6678/* confdefs.h.  */
6679_ACEOF
6680cat confdefs.h >>conftest.$ac_ext
6681cat >>conftest.$ac_ext <<_ACEOF
6682/* end confdefs.h.  */
6683#ifdef __STDC__
6684# include <limits.h>
6685#else
6686# include <assert.h>
6687#endif
6688                     Syntax error
6689_ACEOF
6690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6691  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6692  ac_status=$?
6693  grep -v '^ *+' conftest.er1 >conftest.err
6694  rm -f conftest.er1
6695  cat conftest.err >&5
6696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697  (exit $ac_status); } >/dev/null; then
6698  if test -s conftest.err; then
6699    ac_cpp_err=$ac_cxx_preproc_warn_flag
6700    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6701  else
6702    ac_cpp_err=
6703  fi
6704else
6705  ac_cpp_err=yes
6706fi
6707if test -z "$ac_cpp_err"; then
6708  :
6709else
6710  echo "$as_me: failed program was:" >&5
6711sed 's/^/| /' conftest.$ac_ext >&5
6712
6713  # Broken: fails on valid input.
6714continue
6715fi
6716rm -f conftest.err conftest.$ac_ext
6717
6718  # OK, works on sane cases.  Now check whether non-existent headers
6719  # can be detected and how.
6720  cat >conftest.$ac_ext <<_ACEOF
6721/* confdefs.h.  */
6722_ACEOF
6723cat confdefs.h >>conftest.$ac_ext
6724cat >>conftest.$ac_ext <<_ACEOF
6725/* end confdefs.h.  */
6726#include <ac_nonexistent.h>
6727_ACEOF
6728if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6729  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6730  ac_status=$?
6731  grep -v '^ *+' conftest.er1 >conftest.err
6732  rm -f conftest.er1
6733  cat conftest.err >&5
6734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735  (exit $ac_status); } >/dev/null; then
6736  if test -s conftest.err; then
6737    ac_cpp_err=$ac_cxx_preproc_warn_flag
6738    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6739  else
6740    ac_cpp_err=
6741  fi
6742else
6743  ac_cpp_err=yes
6744fi
6745if test -z "$ac_cpp_err"; then
6746  # Broken: success on invalid input.
6747continue
6748else
6749  echo "$as_me: failed program was:" >&5
6750sed 's/^/| /' conftest.$ac_ext >&5
6751
6752  # Passes both tests.
6753ac_preproc_ok=:
6754break
6755fi
6756rm -f conftest.err conftest.$ac_ext
6757
6758done
6759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6760rm -f conftest.err conftest.$ac_ext
6761if $ac_preproc_ok; then
6762  break
6763fi
6764
6765    done
6766    ac_cv_prog_CXXCPP=$CXXCPP
6767
6768fi
6769  CXXCPP=$ac_cv_prog_CXXCPP
6770else
6771  ac_cv_prog_CXXCPP=$CXXCPP
6772fi
6773echo "$as_me:$LINENO: result: $CXXCPP" >&5
6774echo "${ECHO_T}$CXXCPP" >&6
6775ac_preproc_ok=false
6776for ac_cxx_preproc_warn_flag in '' yes
6777do
6778  # Use a header file that comes with gcc, so configuring glibc
6779  # with a fresh cross-compiler works.
6780  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6781  # <limits.h> exists even on freestanding compilers.
6782  # On the NeXT, cc -E runs the code through the compiler's parser,
6783  # not just through cpp. "Syntax error" is here to catch this case.
6784  cat >conftest.$ac_ext <<_ACEOF
6785/* confdefs.h.  */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h.  */
6790#ifdef __STDC__
6791# include <limits.h>
6792#else
6793# include <assert.h>
6794#endif
6795                     Syntax error
6796_ACEOF
6797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6798  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6799  ac_status=$?
6800  grep -v '^ *+' conftest.er1 >conftest.err
6801  rm -f conftest.er1
6802  cat conftest.err >&5
6803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804  (exit $ac_status); } >/dev/null; then
6805  if test -s conftest.err; then
6806    ac_cpp_err=$ac_cxx_preproc_warn_flag
6807    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6808  else
6809    ac_cpp_err=
6810  fi
6811else
6812  ac_cpp_err=yes
6813fi
6814if test -z "$ac_cpp_err"; then
6815  :
6816else
6817  echo "$as_me: failed program was:" >&5
6818sed 's/^/| /' conftest.$ac_ext >&5
6819
6820  # Broken: fails on valid input.
6821continue
6822fi
6823rm -f conftest.err conftest.$ac_ext
6824
6825  # OK, works on sane cases.  Now check whether non-existent headers
6826  # can be detected and how.
6827  cat >conftest.$ac_ext <<_ACEOF
6828/* confdefs.h.  */
6829_ACEOF
6830cat confdefs.h >>conftest.$ac_ext
6831cat >>conftest.$ac_ext <<_ACEOF
6832/* end confdefs.h.  */
6833#include <ac_nonexistent.h>
6834_ACEOF
6835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6836  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6837  ac_status=$?
6838  grep -v '^ *+' conftest.er1 >conftest.err
6839  rm -f conftest.er1
6840  cat conftest.err >&5
6841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842  (exit $ac_status); } >/dev/null; then
6843  if test -s conftest.err; then
6844    ac_cpp_err=$ac_cxx_preproc_warn_flag
6845    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6846  else
6847    ac_cpp_err=
6848  fi
6849else
6850  ac_cpp_err=yes
6851fi
6852if test -z "$ac_cpp_err"; then
6853  # Broken: success on invalid input.
6854continue
6855else
6856  echo "$as_me: failed program was:" >&5
6857sed 's/^/| /' conftest.$ac_ext >&5
6858
6859  # Passes both tests.
6860ac_preproc_ok=:
6861break
6862fi
6863rm -f conftest.err conftest.$ac_ext
6864
6865done
6866# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6867rm -f conftest.err conftest.$ac_ext
6868if $ac_preproc_ok; then
6869  :
6870else
6871  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6872See \`config.log' for more details." >&5
6873echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6874See \`config.log' for more details." >&2;}
6875   { (exit 1); exit 1; }; }
6876fi
6877
6878ac_ext=cc
6879ac_cpp='$CXXCPP $CPPFLAGS'
6880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6883
6884fi
6885
6886
6887
6888# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6889
6890# find the maximum length of command line arguments
6891echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6892echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6893if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6894  echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896    i=0
6897  teststring="ABCD"
6898
6899  case $build_os in
6900  msdosdjgpp*)
6901    # On DJGPP, this test can blow up pretty badly due to problems in libc
6902    # (any single argument exceeding 2000 bytes causes a buffer overrun
6903    # during glob expansion).  Even if it were fixed, the result of this
6904    # check would be larger than it should be.
6905    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6906    ;;
6907
6908  gnu*)
6909    # Under GNU Hurd, this test is not required because there is
6910    # no limit to the length of command line arguments.
6911    # Libtool will interpret -1 as no limit whatsoever
6912    lt_cv_sys_max_cmd_len=-1;
6913    ;;
6914
6915  cygwin* | mingw*)
6916    # On Win9x/ME, this test blows up -- it succeeds, but takes
6917    # about 5 minutes as the teststring grows exponentially.
6918    # Worse, since 9x/ME are not pre-emptively multitasking,
6919    # you end up with a "frozen" computer, even though with patience
6920    # the test eventually succeeds (with a max line length of 256k).
6921    # Instead, let's just punt: use the minimum linelength reported by
6922    # all of the supported platforms: 8192 (on NT/2K/XP).
6923    lt_cv_sys_max_cmd_len=8192;
6924    ;;
6925
6926  amigaos*)
6927    # On AmigaOS with pdksh, this test takes hours, literally.
6928    # So we just punt and use a minimum line length of 8192.
6929    lt_cv_sys_max_cmd_len=8192;
6930    ;;
6931
6932  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6933    # This has been around since 386BSD, at least.  Likely further.
6934    if test -x /sbin/sysctl; then
6935      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6936    elif test -x /usr/sbin/sysctl; then
6937      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6938    else
6939      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6940    fi
6941    # And add a safety zone
6942    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6943    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6944    ;;
6945
6946  interix*)
6947    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6948    lt_cv_sys_max_cmd_len=196608
6949    ;;
6950
6951  osf*)
6952    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6953    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6954    # nice to cause kernel panics so lets avoid the loop below.
6955    # First set a reasonable default.
6956    lt_cv_sys_max_cmd_len=16384
6957    #
6958    if test -x /sbin/sysconfig; then
6959      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6960        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6961      esac
6962    fi
6963    ;;
6964  sco3.2v5*)
6965    lt_cv_sys_max_cmd_len=102400
6966    ;;
6967  sysv5* | sco5v6* | sysv4.2uw2*)
6968    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6969    if test -n "$kargmax"; then
6970      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6971    else
6972      lt_cv_sys_max_cmd_len=32768
6973    fi
6974    ;;
6975  *)
6976    # If test is not a shell built-in, we'll probably end up computing a
6977    # maximum length that is only half of the actual maximum length, but
6978    # we can't tell.
6979    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6980    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6981               = "XX$teststring") >/dev/null 2>&1 &&
6982            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6983            lt_cv_sys_max_cmd_len=$new_result &&
6984            test $i != 17 # 1/2 MB should be enough
6985    do
6986      i=`expr $i + 1`
6987      teststring=$teststring$teststring
6988    done
6989    teststring=
6990    # Add a significant safety factor because C++ compilers can tack on massive
6991    # amounts of additional arguments before passing them to the linker.
6992    # It appears as though 1/2 is a usable value.
6993    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6994    ;;
6995  esac
6996
6997fi
6998
6999if test -n $lt_cv_sys_max_cmd_len ; then
7000  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7001echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7002else
7003  echo "$as_me:$LINENO: result: none" >&5
7004echo "${ECHO_T}none" >&6
7005fi
7006
7007
7008
7009
7010# Check for command to grab the raw symbol name followed by C symbol from nm.
7011echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7012echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7013if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7014  echo $ECHO_N "(cached) $ECHO_C" >&6
7015else
7016
7017# These are sane defaults that work on at least a few old systems.
7018# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7019
7020# Character class describing NM global symbol codes.
7021symcode='[BCDEGRST]'
7022
7023# Regexp to match symbols that can be accessed directly from C.
7024sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7025
7026# Transform an extracted symbol line into a proper C declaration
7027lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7028
7029# Transform an extracted symbol line into symbol name and symbol address
7030lt_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'"
7031
7032# Define system-specific variables.
7033case $host_os in
7034aix*)
7035  symcode='[BCDT]'
7036  ;;
7037cygwin* | mingw* | pw32*)
7038  symcode='[ABCDGISTW]'
7039  ;;
7040hpux*) # Its linker distinguishes data from code symbols
7041  if test "$host_cpu" = ia64; then
7042    symcode='[ABCDEGRST]'
7043  fi
7044  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7045  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'"
7046  ;;
7047linux*)
7048  if test "$host_cpu" = ia64; then
7049    symcode='[ABCDGIRSTW]'
7050    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7051    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'"
7052  fi
7053  ;;
7054irix* | nonstopux*)
7055  symcode='[BCDEGRST]'
7056  ;;
7057osf*)
7058  symcode='[BCDEGQRST]'
7059  ;;
7060solaris*)
7061  symcode='[BDRT]'
7062  ;;
7063sco3.2v5*)
7064  symcode='[DT]'
7065  ;;
7066sysv4.2uw2*)
7067  symcode='[DT]'
7068  ;;
7069sysv5* | sco5v6* | unixware* | OpenUNIX*)
7070  symcode='[ABDT]'
7071  ;;
7072sysv4)
7073  symcode='[DFNSTU]'
7074  ;;
7075esac
7076
7077# Handle CRLF in mingw tool chain
7078opt_cr=
7079case $build_os in
7080mingw*)
7081  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7082  ;;
7083esac
7084
7085# If we're using GNU nm, then use its standard symbol codes.
7086case `$NM -V 2>&1` in
7087*GNU* | *'with BFD'*)
7088  symcode='[ABCDGIRSTW]' ;;
7089esac
7090
7091# Try without a prefix undercore, then with it.
7092for ac_symprfx in "" "_"; do
7093
7094  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7095  symxfrm="\\1 $ac_symprfx\\2 \\2"
7096
7097  # Write the raw and C identifiers.
7098  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7099
7100  # Check to see that the pipe works correctly.
7101  pipe_works=no
7102
7103  rm -f conftest*
7104  cat > conftest.$ac_ext <<EOF
7105#ifdef __cplusplus
7106extern "C" {
7107#endif
7108char nm_test_var;
7109void nm_test_func(){}
7110#ifdef __cplusplus
7111}
7112#endif
7113int main(){nm_test_var='a';nm_test_func();return(0);}
7114EOF
7115
7116  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117  (eval $ac_compile) 2>&5
7118  ac_status=$?
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); }; then
7121    # Now try to grab the symbols.
7122    nlist=conftest.nm
7123    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7124  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7125  ac_status=$?
7126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127  (exit $ac_status); } && test -s "$nlist"; then
7128      # Try sorting and uniquifying the output.
7129      if sort "$nlist" | uniq > "$nlist"T; then
7130        mv -f "$nlist"T "$nlist"
7131      else
7132        rm -f "$nlist"T
7133      fi
7134
7135      # Make sure that we snagged all the symbols we need.
7136      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7137        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7138          cat <<EOF > conftest.$ac_ext
7139#ifdef __cplusplus
7140extern "C" {
7141#endif
7142
7143EOF
7144          # Now generate the symbol file.
7145          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7146
7147          cat <<EOF >> conftest.$ac_ext
7148#if defined (__STDC__) && __STDC__
7149# define lt_ptr_t void *
7150#else
7151# define lt_ptr_t char *
7152# define const
7153#endif
7154
7155/* The mapping between symbol names and symbols. */
7156const struct {
7157  const char *name;
7158  lt_ptr_t address;
7159}
7160lt_preloaded_symbols[] =
7161{
7162EOF
7163          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7164          cat <<\EOF >> conftest.$ac_ext
7165  {0, (lt_ptr_t) 0}
7166};
7167
7168#ifdef __cplusplus
7169}
7170#endif
7171EOF
7172          # Now try linking the two files.
7173          mv conftest.$ac_objext conftstm.$ac_objext
7174          lt_save_LIBS="$LIBS"
7175          lt_save_CFLAGS="$CFLAGS"
7176          LIBS="conftstm.$ac_objext"
7177          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7178          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179  (eval $ac_link) 2>&5
7180  ac_status=$?
7181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7183            pipe_works=yes
7184          fi
7185          LIBS="$lt_save_LIBS"
7186          CFLAGS="$lt_save_CFLAGS"
7187        else
7188          echo "cannot find nm_test_func in $nlist" >&5
7189        fi
7190      else
7191        echo "cannot find nm_test_var in $nlist" >&5
7192      fi
7193    else
7194      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7195    fi
7196  else
7197    echo "$progname: failed program was:" >&5
7198    cat conftest.$ac_ext >&5
7199  fi
7200  rm -f conftest* conftst*
7201
7202  # Do not use the global_symbol_pipe unless it works.
7203  if test "$pipe_works" = yes; then
7204    break
7205  else
7206    lt_cv_sys_global_symbol_pipe=
7207  fi
7208done
7209
7210fi
7211
7212if test -z "$lt_cv_sys_global_symbol_pipe"; then
7213  lt_cv_sys_global_symbol_to_cdecl=
7214fi
7215if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7216  echo "$as_me:$LINENO: result: failed" >&5
7217echo "${ECHO_T}failed" >&6
7218else
7219  echo "$as_me:$LINENO: result: ok" >&5
7220echo "${ECHO_T}ok" >&6
7221fi
7222
7223echo "$as_me:$LINENO: checking for objdir" >&5
7224echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7225if test "${lt_cv_objdir+set}" = set; then
7226  echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228  rm -f .libs 2>/dev/null
7229mkdir .libs 2>/dev/null
7230if test -d .libs; then
7231  lt_cv_objdir=.libs
7232else
7233  # MS-DOS does not allow filenames that begin with a dot.
7234  lt_cv_objdir=_libs
7235fi
7236rmdir .libs 2>/dev/null
7237fi
7238echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7239echo "${ECHO_T}$lt_cv_objdir" >&6
7240objdir=$lt_cv_objdir
7241
7242
7243
7244
7245
7246case $host_os in
7247aix3*)
7248  # AIX sometimes has problems with the GCC collect2 program.  For some
7249  # reason, if we set the COLLECT_NAMES environment variable, the problems
7250  # vanish in a puff of smoke.
7251  if test "X${COLLECT_NAMES+set}" != Xset; then
7252    COLLECT_NAMES=
7253    export COLLECT_NAMES
7254  fi
7255  ;;
7256esac
7257
7258# Sed substitution that helps us do robust quoting.  It backslashifies
7259# metacharacters that are still active within double-quoted strings.
7260Xsed='sed -e 1s/^X//'
7261sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7262
7263# Same as above, but do not quote variable references.
7264double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7265
7266# Sed substitution to delay expansion of an escaped shell variable in a
7267# double_quote_subst'ed string.
7268delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7269
7270# Sed substitution to avoid accidental globbing in evaled expressions
7271no_glob_subst='s/\*/\\\*/g'
7272
7273# Constants:
7274rm="rm -f"
7275
7276# Global variables:
7277default_ofile=libtool
7278can_build_shared=yes
7279
7280# All known linkers require a `.a' archive for static linking (except MSVC,
7281# which needs '.lib').
7282libext=a
7283ltmain="$ac_aux_dir/ltmain.sh"
7284ofile="$default_ofile"
7285with_gnu_ld="$lt_cv_prog_gnu_ld"
7286
7287if test -n "$ac_tool_prefix"; then
7288  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7289set dummy ${ac_tool_prefix}ar; ac_word=$2
7290echo "$as_me:$LINENO: checking for $ac_word" >&5
7291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7292if test "${ac_cv_prog_AR+set}" = set; then
7293  echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295  if test -n "$AR"; then
7296  ac_cv_prog_AR="$AR" # Let the user override the test.
7297else
7298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299for as_dir in $PATH
7300do
7301  IFS=$as_save_IFS
7302  test -z "$as_dir" && as_dir=.
7303  for ac_exec_ext in '' $ac_executable_extensions; do
7304  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305    ac_cv_prog_AR="${ac_tool_prefix}ar"
7306    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307    break 2
7308  fi
7309done
7310done
7311
7312fi
7313fi
7314AR=$ac_cv_prog_AR
7315if test -n "$AR"; then
7316  echo "$as_me:$LINENO: result: $AR" >&5
7317echo "${ECHO_T}$AR" >&6
7318else
7319  echo "$as_me:$LINENO: result: no" >&5
7320echo "${ECHO_T}no" >&6
7321fi
7322
7323fi
7324if test -z "$ac_cv_prog_AR"; then
7325  ac_ct_AR=$AR
7326  # Extract the first word of "ar", so it can be a program name with args.
7327set dummy ar; ac_word=$2
7328echo "$as_me:$LINENO: checking for $ac_word" >&5
7329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7330if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7331  echo $ECHO_N "(cached) $ECHO_C" >&6
7332else
7333  if test -n "$ac_ct_AR"; then
7334  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339  IFS=$as_save_IFS
7340  test -z "$as_dir" && as_dir=.
7341  for ac_exec_ext in '' $ac_executable_extensions; do
7342  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343    ac_cv_prog_ac_ct_AR="ar"
7344    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345    break 2
7346  fi
7347done
7348done
7349
7350  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7351fi
7352fi
7353ac_ct_AR=$ac_cv_prog_ac_ct_AR
7354if test -n "$ac_ct_AR"; then
7355  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7356echo "${ECHO_T}$ac_ct_AR" >&6
7357else
7358  echo "$as_me:$LINENO: result: no" >&5
7359echo "${ECHO_T}no" >&6
7360fi
7361
7362  AR=$ac_ct_AR
7363else
7364  AR="$ac_cv_prog_AR"
7365fi
7366
7367if test -n "$ac_tool_prefix"; then
7368  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7369set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7370echo "$as_me:$LINENO: checking for $ac_word" >&5
7371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7372if test "${ac_cv_prog_RANLIB+set}" = set; then
7373  echo $ECHO_N "(cached) $ECHO_C" >&6
7374else
7375  if test -n "$RANLIB"; then
7376  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381  IFS=$as_save_IFS
7382  test -z "$as_dir" && as_dir=.
7383  for ac_exec_ext in '' $ac_executable_extensions; do
7384  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7386    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387    break 2
7388  fi
7389done
7390done
7391
7392fi
7393fi
7394RANLIB=$ac_cv_prog_RANLIB
7395if test -n "$RANLIB"; then
7396  echo "$as_me:$LINENO: result: $RANLIB" >&5
7397echo "${ECHO_T}$RANLIB" >&6
7398else
7399  echo "$as_me:$LINENO: result: no" >&5
7400echo "${ECHO_T}no" >&6
7401fi
7402
7403fi
7404if test -z "$ac_cv_prog_RANLIB"; then
7405  ac_ct_RANLIB=$RANLIB
7406  # Extract the first word of "ranlib", so it can be a program name with args.
7407set dummy ranlib; ac_word=$2
7408echo "$as_me:$LINENO: checking for $ac_word" >&5
7409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7411  echo $ECHO_N "(cached) $ECHO_C" >&6
7412else
7413  if test -n "$ac_ct_RANLIB"; then
7414  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7415else
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419  IFS=$as_save_IFS
7420  test -z "$as_dir" && as_dir=.
7421  for ac_exec_ext in '' $ac_executable_extensions; do
7422  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423    ac_cv_prog_ac_ct_RANLIB="ranlib"
7424    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425    break 2
7426  fi
7427done
7428done
7429
7430  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7431fi
7432fi
7433ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7434if test -n "$ac_ct_RANLIB"; then
7435  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7436echo "${ECHO_T}$ac_ct_RANLIB" >&6
7437else
7438  echo "$as_me:$LINENO: result: no" >&5
7439echo "${ECHO_T}no" >&6
7440fi
7441
7442  RANLIB=$ac_ct_RANLIB
7443else
7444  RANLIB="$ac_cv_prog_RANLIB"
7445fi
7446
7447if test -n "$ac_tool_prefix"; then
7448  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7449set dummy ${ac_tool_prefix}strip; ac_word=$2
7450echo "$as_me:$LINENO: checking for $ac_word" >&5
7451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7452if test "${ac_cv_prog_STRIP+set}" = set; then
7453  echo $ECHO_N "(cached) $ECHO_C" >&6
7454else
7455  if test -n "$STRIP"; then
7456  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7457else
7458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461  IFS=$as_save_IFS
7462  test -z "$as_dir" && as_dir=.
7463  for ac_exec_ext in '' $ac_executable_extensions; do
7464  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7466    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467    break 2
7468  fi
7469done
7470done
7471
7472fi
7473fi
7474STRIP=$ac_cv_prog_STRIP
7475if test -n "$STRIP"; then
7476  echo "$as_me:$LINENO: result: $STRIP" >&5
7477echo "${ECHO_T}$STRIP" >&6
7478else
7479  echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
7481fi
7482
7483fi
7484if test -z "$ac_cv_prog_STRIP"; then
7485  ac_ct_STRIP=$STRIP
7486  # Extract the first word of "strip", so it can be a program name with args.
7487set dummy strip; ac_word=$2
7488echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7490if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7491  echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493  if test -n "$ac_ct_STRIP"; then
7494  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7495else
7496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497for as_dir in $PATH
7498do
7499  IFS=$as_save_IFS
7500  test -z "$as_dir" && as_dir=.
7501  for ac_exec_ext in '' $ac_executable_extensions; do
7502  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503    ac_cv_prog_ac_ct_STRIP="strip"
7504    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505    break 2
7506  fi
7507done
7508done
7509
7510  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7511fi
7512fi
7513ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7514if test -n "$ac_ct_STRIP"; then
7515  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7516echo "${ECHO_T}$ac_ct_STRIP" >&6
7517else
7518  echo "$as_me:$LINENO: result: no" >&5
7519echo "${ECHO_T}no" >&6
7520fi
7521
7522  STRIP=$ac_ct_STRIP
7523else
7524  STRIP="$ac_cv_prog_STRIP"
7525fi
7526
7527
7528old_CC="$CC"
7529old_CFLAGS="$CFLAGS"
7530
7531# Set sane defaults for various variables
7532test -z "$AR" && AR=ar
7533test -z "$AR_FLAGS" && AR_FLAGS=cru
7534test -z "$AS" && AS=as
7535test -z "$CC" && CC=cc
7536test -z "$LTCC" && LTCC=$CC
7537test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7538test -z "$DLLTOOL" && DLLTOOL=dlltool
7539test -z "$LD" && LD=ld
7540test -z "$LN_S" && LN_S="ln -s"
7541test -z "$MAGIC_CMD" && MAGIC_CMD=file
7542test -z "$NM" && NM=nm
7543test -z "$SED" && SED=sed
7544test -z "$OBJDUMP" && OBJDUMP=objdump
7545test -z "$RANLIB" && RANLIB=:
7546test -z "$STRIP" && STRIP=:
7547test -z "$ac_objext" && ac_objext=o
7548
7549# Determine commands to create old-style static archives.
7550old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7551old_postinstall_cmds='chmod 644 $oldlib'
7552old_postuninstall_cmds=
7553
7554if test -n "$RANLIB"; then
7555  case $host_os in
7556  openbsd*)
7557    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7558    ;;
7559  *)
7560    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7561    ;;
7562  esac
7563  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7564fi
7565
7566for cc_temp in $compiler""; do
7567  case $cc_temp in
7568    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7569    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7570    \-*) ;;
7571    *) break;;
7572  esac
7573done
7574cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7575
7576
7577# Only perform the check for file, if the check method requires it
7578case $deplibs_check_method in
7579file_magic*)
7580  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7581    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7582echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7583if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7584  echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586  case $MAGIC_CMD in
7587[\\/*] |  ?:[\\/]*)
7588  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7589  ;;
7590*)
7591  lt_save_MAGIC_CMD="$MAGIC_CMD"
7592  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7593  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7594  for ac_dir in $ac_dummy; do
7595    IFS="$lt_save_ifs"
7596    test -z "$ac_dir" && ac_dir=.
7597    if test -f $ac_dir/${ac_tool_prefix}file; then
7598      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7599      if test -n "$file_magic_test_file"; then
7600        case $deplibs_check_method in
7601        "file_magic "*)
7602          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7603          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7605            $EGREP "$file_magic_regex" > /dev/null; then
7606            :
7607          else
7608            cat <<EOF 1>&2
7609
7610*** Warning: the command libtool uses to detect shared libraries,
7611*** $file_magic_cmd, produces output that libtool cannot recognize.
7612*** The result is that libtool may fail to recognize shared libraries
7613*** as such.  This will affect the creation of libtool libraries that
7614*** depend on shared libraries, but programs linked with such libtool
7615*** libraries will work regardless of this problem.  Nevertheless, you
7616*** may want to report the problem to your system manager and/or to
7617*** bug-libtool@gnu.org
7618
7619EOF
7620          fi ;;
7621        esac
7622      fi
7623      break
7624    fi
7625  done
7626  IFS="$lt_save_ifs"
7627  MAGIC_CMD="$lt_save_MAGIC_CMD"
7628  ;;
7629esac
7630fi
7631
7632MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7633if test -n "$MAGIC_CMD"; then
7634  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7635echo "${ECHO_T}$MAGIC_CMD" >&6
7636else
7637  echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6
7639fi
7640
7641if test -z "$lt_cv_path_MAGIC_CMD"; then
7642  if test -n "$ac_tool_prefix"; then
7643    echo "$as_me:$LINENO: checking for file" >&5
7644echo $ECHO_N "checking for file... $ECHO_C" >&6
7645if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7646  echo $ECHO_N "(cached) $ECHO_C" >&6
7647else
7648  case $MAGIC_CMD in
7649[\\/*] |  ?:[\\/]*)
7650  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7651  ;;
7652*)
7653  lt_save_MAGIC_CMD="$MAGIC_CMD"
7654  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7655  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7656  for ac_dir in $ac_dummy; do
7657    IFS="$lt_save_ifs"
7658    test -z "$ac_dir" && ac_dir=.
7659    if test -f $ac_dir/file; then
7660      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7661      if test -n "$file_magic_test_file"; then
7662        case $deplibs_check_method in
7663        "file_magic "*)
7664          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7665          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7667            $EGREP "$file_magic_regex" > /dev/null; then
7668            :
7669          else
7670            cat <<EOF 1>&2
7671
7672*** Warning: the command libtool uses to detect shared libraries,
7673*** $file_magic_cmd, produces output that libtool cannot recognize.
7674*** The result is that libtool may fail to recognize shared libraries
7675*** as such.  This will affect the creation of libtool libraries that
7676*** depend on shared libraries, but programs linked with such libtool
7677*** libraries will work regardless of this problem.  Nevertheless, you
7678*** may want to report the problem to your system manager and/or to
7679*** bug-libtool@gnu.org
7680
7681EOF
7682          fi ;;
7683        esac
7684      fi
7685      break
7686    fi
7687  done
7688  IFS="$lt_save_ifs"
7689  MAGIC_CMD="$lt_save_MAGIC_CMD"
7690  ;;
7691esac
7692fi
7693
7694MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7695if test -n "$MAGIC_CMD"; then
7696  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7697echo "${ECHO_T}$MAGIC_CMD" >&6
7698else
7699  echo "$as_me:$LINENO: result: no" >&5
7700echo "${ECHO_T}no" >&6
7701fi
7702
7703  else
7704    MAGIC_CMD=:
7705  fi
7706fi
7707
7708  fi
7709  ;;
7710esac
7711
7712enable_dlopen=no
7713enable_win32_dll=no
7714
7715# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7716if test "${enable_libtool_lock+set}" = set; then
7717  enableval="$enable_libtool_lock"
7718
7719fi;
7720test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7721
7722
7723# Check whether --with-pic or --without-pic was given.
7724if test "${with_pic+set}" = set; then
7725  withval="$with_pic"
7726  pic_mode="$withval"
7727else
7728  pic_mode=default
7729fi;
7730test -z "$pic_mode" && pic_mode=default
7731
7732# Use C for the default configuration in the libtool script
7733tagname=
7734lt_save_CC="$CC"
7735ac_ext=c
7736ac_cpp='$CPP $CPPFLAGS'
7737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739ac_compiler_gnu=$ac_cv_c_compiler_gnu
7740
7741
7742# Source file extension for C test sources.
7743ac_ext=c
7744
7745# Object file extension for compiled C test sources.
7746objext=o
7747objext=$objext
7748
7749# Code to be used in simple compile tests
7750lt_simple_compile_test_code="int some_variable = 0;\n"
7751
7752# Code to be used in simple link tests
7753lt_simple_link_test_code='int main(){return(0);}\n'
7754
7755
7756# If no C compiler was specified, use CC.
7757LTCC=${LTCC-"$CC"}
7758
7759# If no C compiler flags were specified, use CFLAGS.
7760LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7761
7762# Allow CC to be a program name with arguments.
7763compiler=$CC
7764
7765
7766# save warnings/boilerplate of simple test code
7767ac_outfile=conftest.$ac_objext
7768printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7769eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7770_lt_compiler_boilerplate=`cat conftest.err`
7771$rm conftest*
7772
7773ac_outfile=conftest.$ac_objext
7774printf "$lt_simple_link_test_code" >conftest.$ac_ext
7775eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7776_lt_linker_boilerplate=`cat conftest.err`
7777$rm conftest*
7778
7779
7780## CAVEAT EMPTOR:
7781## There is no encapsulation within the following macros, do not change
7782## the running order or otherwise move them around unless you know exactly
7783## what you are doing...
7784
7785lt_prog_compiler_no_builtin_flag=
7786
7787if test "$GCC" = yes; then
7788  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7789
7790
7791echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7792echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7793if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7794  echo $ECHO_N "(cached) $ECHO_C" >&6
7795else
7796  lt_cv_prog_compiler_rtti_exceptions=no
7797  ac_outfile=conftest.$ac_objext
7798   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7799   lt_compiler_flag="-fno-rtti -fno-exceptions"
7800   # Insert the option either (1) after the last *FLAGS variable, or
7801   # (2) before a word containing "conftest.", or (3) at the end.
7802   # Note that $ac_compile itself does not contain backslashes and begins
7803   # with a dollar sign (not a hyphen), so the echo should work correctly.
7804   # The option is referenced via a variable to avoid confusing sed.
7805   lt_compile=`echo "$ac_compile" | $SED \
7806   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7807   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7808   -e 's:$: $lt_compiler_flag:'`
7809   (eval echo "\"\$as_me:7809: $lt_compile\"" >&5)
7810   (eval "$lt_compile" 2>conftest.err)
7811   ac_status=$?
7812   cat conftest.err >&5
7813   echo "$as_me:7813: \$? = $ac_status" >&5
7814   if (exit $ac_status) && test -s "$ac_outfile"; then
7815     # The compiler can only warn and ignore the option if not recognized
7816     # So say no if there are warnings other than the usual output.
7817     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7818     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7819     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7820       lt_cv_prog_compiler_rtti_exceptions=yes
7821     fi
7822   fi
7823   $rm conftest*
7824
7825fi
7826echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7827echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7828
7829if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7830    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7831else
7832    :
7833fi
7834
7835fi
7836
7837lt_prog_compiler_wl=
7838lt_prog_compiler_pic=
7839lt_prog_compiler_static=
7840
7841echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7842echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7843
7844  if test "$GCC" = yes; then
7845    lt_prog_compiler_wl='-Wl,'
7846    lt_prog_compiler_static='-static'
7847
7848    case $host_os in
7849      aix*)
7850      # All AIX code is PIC.
7851      if test "$host_cpu" = ia64; then
7852        # AIX 5 now supports IA64 processor
7853        lt_prog_compiler_static='-Bstatic'
7854      fi
7855      ;;
7856
7857    amigaos*)
7858      # FIXME: we need at least 68020 code to build shared libraries, but
7859      # adding the `-m68020' flag to GCC prevents building anything better,
7860      # like `-m68040'.
7861      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7862      ;;
7863
7864    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7865      # PIC is the default for these OSes.
7866      ;;
7867
7868    mingw* | pw32* | os2*)
7869      # This hack is so that the source file can tell whether it is being
7870      # built for inclusion in a dll (and should export symbols for example).
7871      lt_prog_compiler_pic='-DDLL_EXPORT'
7872      ;;
7873
7874    darwin* | rhapsody*)
7875      # PIC is the default on this platform
7876      # Common symbols not allowed in MH_DYLIB files
7877      lt_prog_compiler_pic='-fno-common'
7878      ;;
7879
7880    interix3*)
7881      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7882      # Instead, we relocate shared libraries at runtime.
7883      ;;
7884
7885    msdosdjgpp*)
7886      # Just because we use GCC doesn't mean we suddenly get shared libraries
7887      # on systems that don't support them.
7888      lt_prog_compiler_can_build_shared=no
7889      enable_shared=no
7890      ;;
7891
7892    sysv4*MP*)
7893      if test -d /usr/nec; then
7894        lt_prog_compiler_pic=-Kconform_pic
7895      fi
7896      ;;
7897
7898    hpux*)
7899      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7900      # not for PA HP-UX.
7901      case $host_cpu in
7902      hppa*64*|ia64*)
7903        # +Z the default
7904        ;;
7905      *)
7906        lt_prog_compiler_pic='-fPIC'
7907        ;;
7908      esac
7909      ;;
7910
7911    *)
7912      lt_prog_compiler_pic='-fPIC'
7913      ;;
7914    esac
7915  else
7916    # PORTME Check for flag to pass linker flags through the system compiler.
7917    case $host_os in
7918    aix*)
7919      lt_prog_compiler_wl='-Wl,'
7920      if test "$host_cpu" = ia64; then
7921        # AIX 5 now supports IA64 processor
7922        lt_prog_compiler_static='-Bstatic'
7923      else
7924        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7925      fi
7926      ;;
7927      darwin*)
7928        # PIC is the default on this platform
7929        # Common symbols not allowed in MH_DYLIB files
7930       case $cc_basename in
7931         xlc*)
7932         lt_prog_compiler_pic='-qnocommon'
7933         lt_prog_compiler_wl='-Wl,'
7934         ;;
7935       esac
7936       ;;
7937
7938    mingw* | pw32* | os2*)
7939      # This hack is so that the source file can tell whether it is being
7940      # built for inclusion in a dll (and should export symbols for example).
7941      lt_prog_compiler_pic='-DDLL_EXPORT'
7942      ;;
7943
7944    hpux9* | hpux10* | hpux11*)
7945      lt_prog_compiler_wl='-Wl,'
7946      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7947      # not for PA HP-UX.
7948      case $host_cpu in
7949      hppa*64*|ia64*)
7950        # +Z the default
7951        ;;
7952      *)
7953        lt_prog_compiler_pic='+Z'
7954        ;;
7955      esac
7956      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7957      lt_prog_compiler_static='${wl}-a ${wl}archive'
7958      ;;
7959
7960    irix5* | irix6* | nonstopux*)
7961      lt_prog_compiler_wl='-Wl,'
7962      # PIC (with -KPIC) is the default.
7963      lt_prog_compiler_static='-non_shared'
7964      ;;
7965
7966    newsos6)
7967      lt_prog_compiler_pic='-KPIC'
7968      lt_prog_compiler_static='-Bstatic'
7969      ;;
7970
7971    linux*)
7972      case $cc_basename in
7973      icc* | ecc*)
7974        lt_prog_compiler_wl='-Wl,'
7975        lt_prog_compiler_pic='-KPIC'
7976        lt_prog_compiler_static='-static'
7977        ;;
7978      pgcc* | pgf77* | pgf90* | pgf95*)
7979        # Portland Group compilers (*not* the Pentium gcc compiler,
7980        # which looks to be a dead project)
7981        lt_prog_compiler_wl='-Wl,'
7982        lt_prog_compiler_pic='-fpic'
7983        lt_prog_compiler_static='-Bstatic'
7984        ;;
7985      ccc*)
7986        lt_prog_compiler_wl='-Wl,'
7987        # All Alpha code is PIC.
7988        lt_prog_compiler_static='-non_shared'
7989        ;;
7990      esac
7991      ;;
7992
7993    osf3* | osf4* | osf5*)
7994      lt_prog_compiler_wl='-Wl,'
7995      # All OSF/1 code is PIC.
7996      lt_prog_compiler_static='-non_shared'
7997      ;;
7998
7999    solaris*)
8000      lt_prog_compiler_pic='-KPIC'
8001      lt_prog_compiler_static='-Bstatic'
8002      case $cc_basename in
8003      f77* | f90* | f95*)
8004        lt_prog_compiler_wl='-Qoption ld ';;
8005      *)
8006        lt_prog_compiler_wl='-Wl,';;
8007      esac
8008      ;;
8009
8010    sunos4*)
8011      lt_prog_compiler_wl='-Qoption ld '
8012      lt_prog_compiler_pic='-PIC'
8013      lt_prog_compiler_static='-Bstatic'
8014      ;;
8015
8016    sysv4 | sysv4.2uw2* | sysv4.3*)
8017      lt_prog_compiler_wl='-Wl,'
8018      lt_prog_compiler_pic='-KPIC'
8019      lt_prog_compiler_static='-Bstatic'
8020      ;;
8021
8022    sysv4*MP*)
8023      if test -d /usr/nec ;then
8024        lt_prog_compiler_pic='-Kconform_pic'
8025        lt_prog_compiler_static='-Bstatic'
8026      fi
8027      ;;
8028
8029    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8030      lt_prog_compiler_wl='-Wl,'
8031      lt_prog_compiler_pic='-KPIC'
8032      lt_prog_compiler_static='-Bstatic'
8033      ;;
8034
8035    unicos*)
8036      lt_prog_compiler_wl='-Wl,'
8037      lt_prog_compiler_can_build_shared=no
8038      ;;
8039
8040    uts4*)
8041      lt_prog_compiler_pic='-pic'
8042      lt_prog_compiler_static='-Bstatic'
8043      ;;
8044
8045    *)
8046      lt_prog_compiler_can_build_shared=no
8047      ;;
8048    esac
8049  fi
8050
8051echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8052echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8053
8054#
8055# Check to make sure the PIC flag actually works.
8056#
8057if test -n "$lt_prog_compiler_pic"; then
8058
8059echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8060echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8061if test "${lt_prog_compiler_pic_works+set}" = set; then
8062  echo $ECHO_N "(cached) $ECHO_C" >&6
8063else
8064  lt_prog_compiler_pic_works=no
8065  ac_outfile=conftest.$ac_objext
8066   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8067   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8068   # Insert the option either (1) after the last *FLAGS variable, or
8069   # (2) before a word containing "conftest.", or (3) at the end.
8070   # Note that $ac_compile itself does not contain backslashes and begins
8071   # with a dollar sign (not a hyphen), so the echo should work correctly.
8072   # The option is referenced via a variable to avoid confusing sed.
8073   lt_compile=`echo "$ac_compile" | $SED \
8074   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8075   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8076   -e 's:$: $lt_compiler_flag:'`
8077   (eval echo "\"\$as_me:8077: $lt_compile\"" >&5)
8078   (eval "$lt_compile" 2>conftest.err)
8079   ac_status=$?
8080   cat conftest.err >&5
8081   echo "$as_me:8081: \$? = $ac_status" >&5
8082   if (exit $ac_status) && test -s "$ac_outfile"; then
8083     # The compiler can only warn and ignore the option if not recognized
8084     # So say no if there are warnings other than the usual output.
8085     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8086     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8087     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8088       lt_prog_compiler_pic_works=yes
8089     fi
8090   fi
8091   $rm conftest*
8092
8093fi
8094echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8095echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8096
8097if test x"$lt_prog_compiler_pic_works" = xyes; then
8098    case $lt_prog_compiler_pic in
8099     "" | " "*) ;;
8100     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8101     esac
8102else
8103    lt_prog_compiler_pic=
8104     lt_prog_compiler_can_build_shared=no
8105fi
8106
8107fi
8108case $host_os in
8109  # For platforms which do not support PIC, -DPIC is meaningless:
8110  *djgpp*)
8111    lt_prog_compiler_pic=
8112    ;;
8113  *)
8114    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8115    ;;
8116esac
8117
8118#
8119# Check to make sure the static flag actually works.
8120#
8121wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8122echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8123echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8124if test "${lt_prog_compiler_static_works+set}" = set; then
8125  echo $ECHO_N "(cached) $ECHO_C" >&6
8126else
8127  lt_prog_compiler_static_works=no
8128   save_LDFLAGS="$LDFLAGS"
8129   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8130   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8131   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8132     # The linker can only warn and ignore the option if not recognized
8133     # So say no if there are warnings
8134     if test -s conftest.err; then
8135       # Append any errors to the config.log.
8136       cat conftest.err 1>&5
8137       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8138       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8139       if diff conftest.exp conftest.er2 >/dev/null; then
8140         lt_prog_compiler_static_works=yes
8141       fi
8142     else
8143       lt_prog_compiler_static_works=yes
8144     fi
8145   fi
8146   $rm conftest*
8147   LDFLAGS="$save_LDFLAGS"
8148
8149fi
8150echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8151echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8152
8153if test x"$lt_prog_compiler_static_works" = xyes; then
8154    :
8155else
8156    lt_prog_compiler_static=
8157fi
8158
8159
8160echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8161echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8162if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8163  echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165  lt_cv_prog_compiler_c_o=no
8166   $rm -r conftest 2>/dev/null
8167   mkdir conftest
8168   cd conftest
8169   mkdir out
8170   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8171
8172   lt_compiler_flag="-o out/conftest2.$ac_objext"
8173   # Insert the option either (1) after the last *FLAGS variable, or
8174   # (2) before a word containing "conftest.", or (3) at the end.
8175   # Note that $ac_compile itself does not contain backslashes and begins
8176   # with a dollar sign (not a hyphen), so the echo should work correctly.
8177   lt_compile=`echo "$ac_compile" | $SED \
8178   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180   -e 's:$: $lt_compiler_flag:'`
8181   (eval echo "\"\$as_me:8181: $lt_compile\"" >&5)
8182   (eval "$lt_compile" 2>out/conftest.err)
8183   ac_status=$?
8184   cat out/conftest.err >&5
8185   echo "$as_me:8185: \$? = $ac_status" >&5
8186   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8187   then
8188     # The compiler can only warn and ignore the option if not recognized
8189     # So say no if there are warnings
8190     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8191     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8192     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8193       lt_cv_prog_compiler_c_o=yes
8194     fi
8195   fi
8196   chmod u+w . 2>&5
8197   $rm conftest*
8198   # SGI C++ compiler will create directory out/ii_files/ for
8199   # template instantiation
8200   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8201   $rm out/* && rmdir out
8202   cd ..
8203   rmdir conftest
8204   $rm conftest*
8205
8206fi
8207echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8208echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8209
8210
8211hard_links="nottested"
8212if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8213  # do not overwrite the value of need_locks provided by the user
8214  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8215echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8216  hard_links=yes
8217  $rm conftest*
8218  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8219  touch conftest.a
8220  ln conftest.a conftest.b 2>&5 || hard_links=no
8221  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8222  echo "$as_me:$LINENO: result: $hard_links" >&5
8223echo "${ECHO_T}$hard_links" >&6
8224  if test "$hard_links" = no; then
8225    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8226echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8227    need_locks=warn
8228  fi
8229else
8230  need_locks=no
8231fi
8232
8233echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8234echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8235
8236  runpath_var=
8237  allow_undefined_flag=
8238  enable_shared_with_static_runtimes=no
8239  archive_cmds=
8240  archive_expsym_cmds=
8241  old_archive_From_new_cmds=
8242  old_archive_from_expsyms_cmds=
8243  export_dynamic_flag_spec=
8244  whole_archive_flag_spec=
8245  thread_safe_flag_spec=
8246  hardcode_libdir_flag_spec=
8247  hardcode_libdir_flag_spec_ld=
8248  hardcode_libdir_separator=
8249  hardcode_direct=no
8250  hardcode_minus_L=no
8251  hardcode_shlibpath_var=unsupported
8252  link_all_deplibs=unknown
8253  hardcode_automatic=no
8254  module_cmds=
8255  module_expsym_cmds=
8256  always_export_symbols=no
8257  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8258  # include_expsyms should be a list of space-separated symbols to be *always*
8259  # included in the symbol list
8260  include_expsyms=
8261  # exclude_expsyms can be an extended regexp of symbols to exclude
8262  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8263  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8264  # as well as any symbol that contains `d'.
8265  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8266  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8267  # platforms (ab)use it in PIC code, but their linkers get confused if
8268  # the symbol is explicitly referenced.  Since portable code cannot
8269  # rely on this symbol name, it's probably fine to never include it in
8270  # preloaded symbol tables.
8271  extract_expsyms_cmds=
8272  # Just being paranoid about ensuring that cc_basename is set.
8273  for cc_temp in $compiler""; do
8274  case $cc_temp in
8275    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8276    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8277    \-*) ;;
8278    *) break;;
8279  esac
8280done
8281cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8282
8283  case $host_os in
8284  cygwin* | mingw* | pw32*)
8285    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8286    # When not using gcc, we currently assume that we are using
8287    # Microsoft Visual C++.
8288    if test "$GCC" != yes; then
8289      with_gnu_ld=no
8290    fi
8291    ;;
8292  interix*)
8293    # we just hope/assume this is gcc and not c89 (= MSVC++)
8294    with_gnu_ld=yes
8295    ;;
8296  openbsd*)
8297    with_gnu_ld=no
8298    ;;
8299  esac
8300
8301  ld_shlibs=yes
8302  if test "$with_gnu_ld" = yes; then
8303    # If archive_cmds runs LD, not CC, wlarc should be empty
8304    wlarc='${wl}'
8305
8306    # Set some defaults for GNU ld with shared library support. These
8307    # are reset later if shared libraries are not supported. Putting them
8308    # here allows them to be overridden if necessary.
8309    runpath_var=LD_RUN_PATH
8310    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8311    export_dynamic_flag_spec='${wl}--export-dynamic'
8312    # ancient GNU ld didn't support --whole-archive et. al.
8313    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8314        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8315      else
8316        whole_archive_flag_spec=
8317    fi
8318    supports_anon_versioning=no
8319    case `$LD -v 2>/dev/null` in
8320      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8321      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8322      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8323      *\ 2.11.*) ;; # other 2.11 versions
8324      *) supports_anon_versioning=yes ;;
8325    esac
8326
8327    # See if GNU ld supports shared libraries.
8328    case $host_os in
8329    aix3* | aix4* | aix5*)
8330      # On AIX/PPC, the GNU linker is very broken
8331      if test "$host_cpu" != ia64; then
8332        ld_shlibs=no
8333        cat <<EOF 1>&2
8334
8335*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8336*** to be unable to reliably create shared libraries on AIX.
8337*** Therefore, libtool is disabling shared libraries support.  If you
8338*** really care for shared libraries, you may want to modify your PATH
8339*** so that a non-GNU linker is found, and then restart.
8340
8341EOF
8342      fi
8343      ;;
8344
8345    amigaos*)
8346      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)'
8347      hardcode_libdir_flag_spec='-L$libdir'
8348      hardcode_minus_L=yes
8349
8350      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8351      # that the semantics of dynamic libraries on AmigaOS, at least up
8352      # to version 4, is to share data among multiple programs linked
8353      # with the same dynamic library.  Since this doesn't match the
8354      # behavior of shared libraries on other platforms, we can't use
8355      # them.
8356      ld_shlibs=no
8357      ;;
8358
8359    beos*)
8360      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8361        allow_undefined_flag=unsupported
8362        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8363        # support --undefined.  This deserves some investigation.  FIXME
8364        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8365      else
8366        ld_shlibs=no
8367      fi
8368      ;;
8369
8370    cygwin* | mingw* | pw32*)
8371      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8372      # as there is no search path for DLLs.
8373      hardcode_libdir_flag_spec='-L$libdir'
8374      allow_undefined_flag=unsupported
8375      always_export_symbols=no
8376      enable_shared_with_static_runtimes=yes
8377      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8378
8379      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8380        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8381        # If the export-symbols file already is a .def file (1st line
8382        # is EXPORTS), use it as is; otherwise, prepend...
8383        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8384          cp $export_symbols $output_objdir/$soname.def;
8385        else
8386          echo EXPORTS > $output_objdir/$soname.def;
8387          cat $export_symbols >> $output_objdir/$soname.def;
8388        fi~
8389        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8390      else
8391        ld_shlibs=no
8392      fi
8393      ;;
8394
8395    interix3*)
8396      hardcode_direct=no
8397      hardcode_shlibpath_var=no
8398      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8399      export_dynamic_flag_spec='${wl}-E'
8400      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8401      # Instead, shared libraries are loaded at an image base (0x10000000 by
8402      # default) and relocated if they conflict, which is a slow very memory
8403      # consuming and fragmenting process.  To avoid this, we pick a random,
8404      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8405      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8406      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8407      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'
8408      ;;
8409
8410    linux*)
8411      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8412        tmp_addflag=
8413        case $cc_basename,$host_cpu in
8414        pgcc*)                          # Portland Group C compiler
8415          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'
8416          tmp_addflag=' $pic_flag'
8417          ;;
8418        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8419          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'
8420          tmp_addflag=' $pic_flag -Mnomain' ;;
8421        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8422          tmp_addflag=' -i_dynamic' ;;
8423        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8424          tmp_addflag=' -i_dynamic -nofor_main' ;;
8425        ifc* | ifort*)                  # Intel Fortran compiler
8426          tmp_addflag=' -nofor_main' ;;
8427        esac
8428        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8429
8430        if test $supports_anon_versioning = yes; then
8431          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8432  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8433  $echo "local: *; };" >> $output_objdir/$libname.ver~
8434          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8435        fi
8436      else
8437        ld_shlibs=no
8438      fi
8439      ;;
8440
8441    netbsd*)
8442      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8443        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8444        wlarc=
8445      else
8446        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8448      fi
8449      ;;
8450
8451    solaris*)
8452      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8453        ld_shlibs=no
8454        cat <<EOF 1>&2
8455
8456*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8457*** create shared libraries on Solaris systems.  Therefore, libtool
8458*** is disabling shared libraries support.  We urge you to upgrade GNU
8459*** binutils to release 2.9.1 or newer.  Another option is to modify
8460*** your PATH or compiler configuration so that the native linker is
8461*** used, and then restart.
8462
8463EOF
8464      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8465        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8466        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8467      else
8468        ld_shlibs=no
8469      fi
8470      ;;
8471
8472    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8473      case `$LD -v 2>&1` in
8474        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8475        ld_shlibs=no
8476        cat <<_LT_EOF 1>&2
8477
8478*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8479*** reliably create shared libraries on SCO systems.  Therefore, libtool
8480*** is disabling shared libraries support.  We urge you to upgrade GNU
8481*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8482*** your PATH or compiler configuration so that the native linker is
8483*** used, and then restart.
8484
8485_LT_EOF
8486        ;;
8487        *)
8488          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8489            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8490            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8491            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8492          else
8493            ld_shlibs=no
8494          fi
8495        ;;
8496      esac
8497      ;;
8498
8499    sunos4*)
8500      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8501      wlarc=
8502      hardcode_direct=yes
8503      hardcode_shlibpath_var=no
8504      ;;
8505
8506    *)
8507      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8508        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8509        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8510      else
8511        ld_shlibs=no
8512      fi
8513      ;;
8514    esac
8515
8516    if test "$ld_shlibs" = no; then
8517      runpath_var=
8518      hardcode_libdir_flag_spec=
8519      export_dynamic_flag_spec=
8520      whole_archive_flag_spec=
8521    fi
8522  else
8523    # PORTME fill in a description of your system's linker (not GNU ld)
8524    case $host_os in
8525    aix3*)
8526      allow_undefined_flag=unsupported
8527      always_export_symbols=yes
8528      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'
8529      # Note: this linker hardcodes the directories in LIBPATH if there
8530      # are no directories specified by -L.
8531      hardcode_minus_L=yes
8532      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8533        # Neither direct hardcoding nor static linking is supported with a
8534        # broken collect2.
8535        hardcode_direct=unsupported
8536      fi
8537      ;;
8538
8539    aix4* | aix5*)
8540      if test "$host_cpu" = ia64; then
8541        # On IA64, the linker does run time linking by default, so we don't
8542        # have to do anything special.
8543        aix_use_runtimelinking=no
8544        exp_sym_flag='-Bexport'
8545        no_entry_flag=""
8546      else
8547        # If we're using GNU nm, then we don't want the "-C" option.
8548        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8549        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8550          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'
8551        else
8552          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'
8553        fi
8554        aix_use_runtimelinking=no
8555
8556        # Test if we are trying to use run time linking or normal
8557        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8558        # need to do runtime linking.
8559        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8560          for ld_flag in $LDFLAGS; do
8561          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8562            aix_use_runtimelinking=yes
8563            break
8564          fi
8565          done
8566          ;;
8567        esac
8568
8569        exp_sym_flag='-bexport'
8570        no_entry_flag='-bnoentry'
8571      fi
8572
8573      # When large executables or shared objects are built, AIX ld can
8574      # have problems creating the table of contents.  If linking a library
8575      # or program results in "error TOC overflow" add -mminimal-toc to
8576      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8577      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8578
8579      archive_cmds=''
8580      hardcode_direct=yes
8581      hardcode_libdir_separator=':'
8582      link_all_deplibs=yes
8583
8584      if test "$GCC" = yes; then
8585        case $host_os in aix4.[012]|aix4.[012].*)
8586        # We only want to do this on AIX 4.2 and lower, the check
8587        # below for broken collect2 doesn't work under 4.3+
8588          collect2name=`${CC} -print-prog-name=collect2`
8589          if test -f "$collect2name" && \
8590           strings "$collect2name" | grep resolve_lib_name >/dev/null
8591          then
8592          # We have reworked collect2
8593          hardcode_direct=yes
8594          else
8595          # We have old collect2
8596          hardcode_direct=unsupported
8597          # It fails to find uninstalled libraries when the uninstalled
8598          # path is not listed in the libpath.  Setting hardcode_minus_L
8599          # to unsupported forces relinking
8600          hardcode_minus_L=yes
8601          hardcode_libdir_flag_spec='-L$libdir'
8602          hardcode_libdir_separator=
8603          fi
8604          ;;
8605        esac
8606        shared_flag='-shared'
8607        if test "$aix_use_runtimelinking" = yes; then
8608          shared_flag="$shared_flag "'${wl}-G'
8609        fi
8610      else
8611        # not using gcc
8612        if test "$host_cpu" = ia64; then
8613        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8614        # chokes on -Wl,-G. The following line is correct:
8615          shared_flag='-G'
8616        else
8617          if test "$aix_use_runtimelinking" = yes; then
8618            shared_flag='${wl}-G'
8619          else
8620            shared_flag='${wl}-bM:SRE'
8621          fi
8622        fi
8623      fi
8624
8625      # It seems that -bexpall does not export symbols beginning with
8626      # underscore (_), so it is better to generate a list of symbols to export.
8627      always_export_symbols=yes
8628      if test "$aix_use_runtimelinking" = yes; then
8629        # Warning - without using the other runtime loading flags (-brtl),
8630        # -berok will link without error, but may produce a broken library.
8631        allow_undefined_flag='-berok'
8632       # Determine the default libpath from the value encoded in an empty executable.
8633       cat >conftest.$ac_ext <<_ACEOF
8634/* confdefs.h.  */
8635_ACEOF
8636cat confdefs.h >>conftest.$ac_ext
8637cat >>conftest.$ac_ext <<_ACEOF
8638/* end confdefs.h.  */
8639
8640int
8641main ()
8642{
8643
8644  ;
8645  return 0;
8646}
8647_ACEOF
8648rm -f conftest.$ac_objext conftest$ac_exeext
8649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650  (eval $ac_link) 2>conftest.er1
8651  ac_status=$?
8652  grep -v '^ *+' conftest.er1 >conftest.err
8653  rm -f conftest.er1
8654  cat conftest.err >&5
8655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656  (exit $ac_status); } &&
8657         { ac_try='test -z "$ac_c_werror_flag"
8658                         || test ! -s conftest.err'
8659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660  (eval $ac_try) 2>&5
8661  ac_status=$?
8662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663  (exit $ac_status); }; } &&
8664         { ac_try='test -s conftest$ac_exeext'
8665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666  (eval $ac_try) 2>&5
8667  ac_status=$?
8668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669  (exit $ac_status); }; }; then
8670
8671aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8672}'`
8673# Check for a 64-bit object if we didn't find anything.
8674if 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; }
8675}'`; fi
8676else
8677  echo "$as_me: failed program was:" >&5
8678sed 's/^/| /' conftest.$ac_ext >&5
8679
8680fi
8681rm -f conftest.err conftest.$ac_objext \
8682      conftest$ac_exeext conftest.$ac_ext
8683if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8684
8685       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8686        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"
8687       else
8688        if test "$host_cpu" = ia64; then
8689          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8690          allow_undefined_flag="-z nodefs"
8691          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"
8692        else
8693         # Determine the default libpath from the value encoded in an empty executable.
8694         cat >conftest.$ac_ext <<_ACEOF
8695/* confdefs.h.  */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h.  */
8700
8701int
8702main ()
8703{
8704
8705  ;
8706  return 0;
8707}
8708_ACEOF
8709rm -f conftest.$ac_objext conftest$ac_exeext
8710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711  (eval $ac_link) 2>conftest.er1
8712  ac_status=$?
8713  grep -v '^ *+' conftest.er1 >conftest.err
8714  rm -f conftest.er1
8715  cat conftest.err >&5
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); } &&
8718         { ac_try='test -z "$ac_c_werror_flag"
8719                         || test ! -s conftest.err'
8720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721  (eval $ac_try) 2>&5
8722  ac_status=$?
8723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724  (exit $ac_status); }; } &&
8725         { ac_try='test -s conftest$ac_exeext'
8726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727  (eval $ac_try) 2>&5
8728  ac_status=$?
8729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730  (exit $ac_status); }; }; then
8731
8732aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8733}'`
8734# Check for a 64-bit object if we didn't find anything.
8735if 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; }
8736}'`; fi
8737else
8738  echo "$as_me: failed program was:" >&5
8739sed 's/^/| /' conftest.$ac_ext >&5
8740
8741fi
8742rm -f conftest.err conftest.$ac_objext \
8743      conftest$ac_exeext conftest.$ac_ext
8744if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8745
8746         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8747          # Warning - without using the other run time loading flags,
8748          # -berok will link without error, but may produce a broken library.
8749          no_undefined_flag=' ${wl}-bernotok'
8750          allow_undefined_flag=' ${wl}-berok'
8751          # Exported symbols can be pulled into shared objects from archives
8752          whole_archive_flag_spec='$convenience'
8753          archive_cmds_need_lc=yes
8754          # This is similar to how AIX traditionally builds its shared libraries.
8755          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'
8756        fi
8757      fi
8758      ;;
8759
8760    amigaos*)
8761      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)'
8762      hardcode_libdir_flag_spec='-L$libdir'
8763      hardcode_minus_L=yes
8764      # see comment about different semantics on the GNU ld section
8765      ld_shlibs=no
8766      ;;
8767
8768    bsdi[45]*)
8769      export_dynamic_flag_spec=-rdynamic
8770      ;;
8771
8772    cygwin* | mingw* | pw32*)
8773      # When not using gcc, we currently assume that we are using
8774      # Microsoft Visual C++.
8775      # hardcode_libdir_flag_spec is actually meaningless, as there is
8776      # no search path for DLLs.
8777      hardcode_libdir_flag_spec=' '
8778      allow_undefined_flag=unsupported
8779      # Tell ltmain to make .lib files, not .a files.
8780      libext=lib
8781      # Tell ltmain to make .dll files, not .so files.
8782      shrext_cmds=".dll"
8783      # FIXME: Setting linknames here is a bad hack.
8784      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8785      # The linker will automatically build a .lib file if we build a DLL.
8786      old_archive_From_new_cmds='true'
8787      # FIXME: Should let the user specify the lib program.
8788      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8789      fix_srcfile_path='`cygpath -w "$srcfile"`'
8790      enable_shared_with_static_runtimes=yes
8791      ;;
8792
8793    darwin* | rhapsody*)
8794      case $host_os in
8795        rhapsody* | darwin1.[012])
8796         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8797         ;;
8798       *) # Darwin 1.3 on
8799         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8800           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8801         else
8802           case ${MACOSX_DEPLOYMENT_TARGET} in
8803             10.[012])
8804               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8805               ;;
8806             10.*)
8807               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8808               ;;
8809           esac
8810         fi
8811         ;;
8812      esac
8813      archive_cmds_need_lc=no
8814      hardcode_direct=no
8815      hardcode_automatic=yes
8816      hardcode_shlibpath_var=unsupported
8817      whole_archive_flag_spec=''
8818      link_all_deplibs=yes
8819    if test "$GCC" = yes ; then
8820        output_verbose_link_cmd='echo'
8821        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8822      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8823      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8824      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}'
8825      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}'
8826    else
8827      case $cc_basename in
8828        xlc*)
8829         output_verbose_link_cmd='echo'
8830         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8831         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8832          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8833         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}'
8834          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}'
8835          ;;
8836       *)
8837         ld_shlibs=no
8838          ;;
8839      esac
8840    fi
8841      ;;
8842
8843    dgux*)
8844      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8845      hardcode_libdir_flag_spec='-L$libdir'
8846      hardcode_shlibpath_var=no
8847      ;;
8848
8849    freebsd1*)
8850      ld_shlibs=no
8851      ;;
8852
8853    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8854    # support.  Future versions do this automatically, but an explicit c++rt0.o
8855    # does not break anything, and helps significantly (at the cost of a little
8856    # extra space).
8857    freebsd2.2*)
8858      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8859      hardcode_libdir_flag_spec='-R$libdir'
8860      hardcode_direct=yes
8861      hardcode_shlibpath_var=no
8862      ;;
8863
8864    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8865    freebsd2*)
8866      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8867      hardcode_direct=yes
8868      hardcode_minus_L=yes
8869      hardcode_shlibpath_var=no
8870      ;;
8871
8872    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8873    freebsd* | kfreebsd*-gnu | dragonfly*)
8874      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8875      hardcode_libdir_flag_spec='-R$libdir'
8876      hardcode_direct=yes
8877      hardcode_shlibpath_var=no
8878      ;;
8879
8880    hpux9*)
8881      if test "$GCC" = yes; then
8882        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'
8883      else
8884        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'
8885      fi
8886      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8887      hardcode_libdir_separator=:
8888      hardcode_direct=yes
8889
8890      # hardcode_minus_L: Not really in the search PATH,
8891      # but as the default location of the library.
8892      hardcode_minus_L=yes
8893      export_dynamic_flag_spec='${wl}-E'
8894      ;;
8895
8896    hpux10*)
8897      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8898        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8899      else
8900        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8901      fi
8902      if test "$with_gnu_ld" = no; then
8903        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8904        hardcode_libdir_separator=:
8905
8906        hardcode_direct=yes
8907        export_dynamic_flag_spec='${wl}-E'
8908
8909        # hardcode_minus_L: Not really in the search PATH,
8910        # but as the default location of the library.
8911        hardcode_minus_L=yes
8912      fi
8913      ;;
8914
8915    hpux11*)
8916      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8917        case $host_cpu in
8918        hppa*64*)
8919          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8920          ;;
8921        ia64*)
8922          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8923          ;;
8924        *)
8925          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8926          ;;
8927        esac
8928      else
8929        case $host_cpu in
8930        hppa*64*)
8931          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932          ;;
8933        ia64*)
8934          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8935          ;;
8936        *)
8937          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8938          ;;
8939        esac
8940      fi
8941      if test "$with_gnu_ld" = no; then
8942        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8943        hardcode_libdir_separator=:
8944
8945        case $host_cpu in
8946        hppa*64*|ia64*)
8947          hardcode_libdir_flag_spec_ld='+b $libdir'
8948          hardcode_direct=no
8949          hardcode_shlibpath_var=no
8950          ;;
8951        *)
8952          hardcode_direct=yes
8953          export_dynamic_flag_spec='${wl}-E'
8954
8955          # hardcode_minus_L: Not really in the search PATH,
8956          # but as the default location of the library.
8957          hardcode_minus_L=yes
8958          ;;
8959        esac
8960      fi
8961      ;;
8962
8963    irix5* | irix6* | nonstopux*)
8964      if test "$GCC" = yes; then
8965        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'
8966      else
8967        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'
8968        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8969      fi
8970      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971      hardcode_libdir_separator=:
8972      link_all_deplibs=yes
8973      ;;
8974
8975    netbsd*)
8976      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8977        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8978      else
8979        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8980      fi
8981      hardcode_libdir_flag_spec='-R$libdir'
8982      hardcode_direct=yes
8983      hardcode_shlibpath_var=no
8984      ;;
8985
8986    newsos6)
8987      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988      hardcode_direct=yes
8989      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8990      hardcode_libdir_separator=:
8991      hardcode_shlibpath_var=no
8992      ;;
8993
8994    openbsd*)
8995      hardcode_direct=yes
8996      hardcode_shlibpath_var=no
8997      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8998        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8999        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9000        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9001        export_dynamic_flag_spec='${wl}-E'
9002      else
9003       case $host_os in
9004         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9005           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9006           hardcode_libdir_flag_spec='-R$libdir'
9007           ;;
9008         *)
9009           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9010           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9011           ;;
9012       esac
9013      fi
9014      ;;
9015
9016    os2*)
9017      hardcode_libdir_flag_spec='-L$libdir'
9018      hardcode_minus_L=yes
9019      allow_undefined_flag=unsupported
9020      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'
9021      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9022      ;;
9023
9024    osf3*)
9025      if test "$GCC" = yes; then
9026        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9027        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'
9028      else
9029        allow_undefined_flag=' -expect_unresolved \*'
9030        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'
9031      fi
9032      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9033      hardcode_libdir_separator=:
9034      ;;
9035
9036    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9037      if test "$GCC" = yes; then
9038        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9039        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'
9040        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9041      else
9042        allow_undefined_flag=' -expect_unresolved \*'
9043        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'
9044        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9045        $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'
9046
9047        # Both c and cxx compiler support -rpath directly
9048        hardcode_libdir_flag_spec='-rpath $libdir'
9049      fi
9050      hardcode_libdir_separator=:
9051      ;;
9052
9053    solaris*)
9054      no_undefined_flag=' -z text'
9055      if test "$GCC" = yes; then
9056        wlarc='${wl}'
9057        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9058        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9059          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9060      else
9061        wlarc=''
9062        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9064        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9065      fi
9066      hardcode_libdir_flag_spec='-R$libdir'
9067      hardcode_shlibpath_var=no
9068      case $host_os in
9069      solaris2.[0-5] | solaris2.[0-5].*) ;;
9070      *)
9071        # The compiler driver will combine linker options so we
9072        # cannot just pass the convience library names through
9073        # without $wl, iff we do not link with $LD.
9074        # Luckily, gcc supports the same syntax we need for Sun Studio.
9075        # Supported since Solaris 2.6 (maybe 2.5.1?)
9076        case $wlarc in
9077        '')
9078          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9079        *)
9080          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' ;;
9081        esac ;;
9082      esac
9083      link_all_deplibs=yes
9084      ;;
9085
9086    sunos4*)
9087      if test "x$host_vendor" = xsequent; then
9088        # Use $CC to link under sequent, because it throws in some extra .o
9089        # files that make .init and .fini sections work.
9090        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9091      else
9092        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9093      fi
9094      hardcode_libdir_flag_spec='-L$libdir'
9095      hardcode_direct=yes
9096      hardcode_minus_L=yes
9097      hardcode_shlibpath_var=no
9098      ;;
9099
9100    sysv4)
9101      case $host_vendor in
9102        sni)
9103          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104          hardcode_direct=yes # is this really true???
9105        ;;
9106        siemens)
9107          ## LD is ld it makes a PLAMLIB
9108          ## CC just makes a GrossModule.
9109          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9110          reload_cmds='$CC -r -o $output$reload_objs'
9111          hardcode_direct=no
9112        ;;
9113        motorola)
9114          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9116        ;;
9117      esac
9118      runpath_var='LD_RUN_PATH'
9119      hardcode_shlibpath_var=no
9120      ;;
9121
9122    sysv4.3*)
9123      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124      hardcode_shlibpath_var=no
9125      export_dynamic_flag_spec='-Bexport'
9126      ;;
9127
9128    sysv4*MP*)
9129      if test -d /usr/nec; then
9130        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9131        hardcode_shlibpath_var=no
9132        runpath_var=LD_RUN_PATH
9133        hardcode_runpath_var=yes
9134        ld_shlibs=yes
9135      fi
9136      ;;
9137
9138    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9139      no_undefined_flag='${wl}-z,text'
9140      archive_cmds_need_lc=no
9141      hardcode_shlibpath_var=no
9142      runpath_var='LD_RUN_PATH'
9143
9144      if test "$GCC" = yes; then
9145        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9146        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9147      else
9148        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150      fi
9151      ;;
9152
9153    sysv5* | sco3.2v5* | sco5v6*)
9154      # Note: We can NOT use -z defs as we might desire, because we do not
9155      # link with -lc, and that would cause any symbols used from libc to
9156      # always be unresolved, which means just about no library would
9157      # ever link correctly.  If we're not using GNU ld we use -z text
9158      # though, which does catch some bad symbols but isn't as heavy-handed
9159      # as -z defs.
9160      no_undefined_flag='${wl}-z,text'
9161      allow_undefined_flag='${wl}-z,nodefs'
9162      archive_cmds_need_lc=no
9163      hardcode_shlibpath_var=no
9164      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9165      hardcode_libdir_separator=':'
9166      link_all_deplibs=yes
9167      export_dynamic_flag_spec='${wl}-Bexport'
9168      runpath_var='LD_RUN_PATH'
9169
9170      if test "$GCC" = yes; then
9171        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9172        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9173      else
9174        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9176      fi
9177      ;;
9178
9179    uts4*)
9180      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9181      hardcode_libdir_flag_spec='-L$libdir'
9182      hardcode_shlibpath_var=no
9183      ;;
9184
9185    *)
9186      ld_shlibs=no
9187      ;;
9188    esac
9189  fi
9190
9191echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9192echo "${ECHO_T}$ld_shlibs" >&6
9193test "$ld_shlibs" = no && can_build_shared=no
9194
9195#
9196# Do we need to explicitly link libc?
9197#
9198case "x$archive_cmds_need_lc" in
9199x|xyes)
9200  # Assume -lc should be added
9201  archive_cmds_need_lc=yes
9202
9203  if test "$enable_shared" = yes && test "$GCC" = yes; then
9204    case $archive_cmds in
9205    *'~'*)
9206      # FIXME: we may have to deal with multi-command sequences.
9207      ;;
9208    '$CC '*)
9209      # Test whether the compiler implicitly links with -lc since on some
9210      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9211      # to ld, don't add -lc before -lgcc.
9212      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9213echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9214      $rm conftest*
9215      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9216
9217      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218  (eval $ac_compile) 2>&5
9219  ac_status=$?
9220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221  (exit $ac_status); } 2>conftest.err; then
9222        soname=conftest
9223        lib=conftest
9224        libobjs=conftest.$ac_objext
9225        deplibs=
9226        wl=$lt_prog_compiler_wl
9227        pic_flag=$lt_prog_compiler_pic
9228        compiler_flags=-v
9229        linker_flags=-v
9230        verstring=
9231        output_objdir=.
9232        libname=conftest
9233        lt_save_allow_undefined_flag=$allow_undefined_flag
9234        allow_undefined_flag=
9235        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9236  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9237  ac_status=$?
9238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239  (exit $ac_status); }
9240        then
9241          archive_cmds_need_lc=no
9242        else
9243          archive_cmds_need_lc=yes
9244        fi
9245        allow_undefined_flag=$lt_save_allow_undefined_flag
9246      else
9247        cat conftest.err 1>&5
9248      fi
9249      $rm conftest*
9250      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9251echo "${ECHO_T}$archive_cmds_need_lc" >&6
9252      ;;
9253    esac
9254  fi
9255  ;;
9256esac
9257
9258echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9259echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9260library_names_spec=
9261libname_spec='lib$name'
9262soname_spec=
9263shrext_cmds=".so"
9264postinstall_cmds=
9265postuninstall_cmds=
9266finish_cmds=
9267finish_eval=
9268shlibpath_var=
9269shlibpath_overrides_runpath=unknown
9270version_type=none
9271dynamic_linker="$host_os ld.so"
9272sys_lib_dlsearch_path_spec="/lib /usr/lib"
9273if test "$GCC" = yes; then
9274  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9275  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9276    # if the path contains ";" then we assume it to be the separator
9277    # otherwise default to the standard path separator (i.e. ":") - it is
9278    # assumed that no part of a normal pathname contains ";" but that should
9279    # okay in the real world where ";" in dirpaths is itself problematic.
9280    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9281  else
9282    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9283  fi
9284else
9285  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9286fi
9287need_lib_prefix=unknown
9288hardcode_into_libs=no
9289
9290# when you set need_version to no, make sure it does not cause -set_version
9291# flags to be left without arguments
9292need_version=unknown
9293
9294case $host_os in
9295aix3*)
9296  version_type=linux
9297  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9298  shlibpath_var=LIBPATH
9299
9300  # AIX 3 has no versioning support, so we append a major version to the name.
9301  soname_spec='${libname}${release}${shared_ext}$major'
9302  ;;
9303
9304aix4* | aix5*)
9305  version_type=linux
9306  need_lib_prefix=no
9307  need_version=no
9308  hardcode_into_libs=yes
9309  if test "$host_cpu" = ia64; then
9310    # AIX 5 supports IA64
9311    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9312    shlibpath_var=LD_LIBRARY_PATH
9313  else
9314    # With GCC up to 2.95.x, collect2 would create an import file
9315    # for dependence libraries.  The import file would start with
9316    # the line `#! .'.  This would cause the generated library to
9317    # depend on `.', always an invalid library.  This was fixed in
9318    # development snapshots of GCC prior to 3.0.
9319    case $host_os in
9320      aix4 | aix4.[01] | aix4.[01].*)
9321      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9322           echo ' yes '
9323           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9324        :
9325      else
9326        can_build_shared=no
9327      fi
9328      ;;
9329    esac
9330    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9331    # soname into executable. Probably we can add versioning support to
9332    # collect2, so additional links can be useful in future.
9333    if test "$aix_use_runtimelinking" = yes; then
9334      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9335      # instead of lib<name>.a to let people know that these are not
9336      # typical AIX shared libraries.
9337      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338    else
9339      # We preserve .a as extension for shared libraries through AIX4.2
9340      # and later when we are not doing run time linking.
9341      library_names_spec='${libname}${release}.a $libname.a'
9342      soname_spec='${libname}${release}${shared_ext}$major'
9343    fi
9344    shlibpath_var=LIBPATH
9345  fi
9346  ;;
9347
9348amigaos*)
9349  library_names_spec='$libname.ixlibrary $libname.a'
9350  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9351  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'
9352  ;;
9353
9354beos*)
9355  library_names_spec='${libname}${shared_ext}'
9356  dynamic_linker="$host_os ld.so"
9357  shlibpath_var=LIBRARY_PATH
9358  ;;
9359
9360bsdi[45]*)
9361  version_type=linux
9362  need_version=no
9363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364  soname_spec='${libname}${release}${shared_ext}$major'
9365  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9366  shlibpath_var=LD_LIBRARY_PATH
9367  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9368  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9369  # the default ld.so.conf also contains /usr/contrib/lib and
9370  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9371  # libtool to hard-code these into programs
9372  ;;
9373
9374cygwin* | mingw* | pw32*)
9375  version_type=windows
9376  shrext_cmds=".dll"
9377  need_version=no
9378  need_lib_prefix=no
9379
9380  case $GCC,$host_os in
9381  yes,cygwin* | yes,mingw* | yes,pw32*)
9382    library_names_spec='$libname.dll.a'
9383    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9384    postinstall_cmds='base_file=`basename \${file}`~
9385      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9386      dldir=$destdir/`dirname \$dlpath`~
9387      test -d \$dldir || mkdir -p \$dldir~
9388      $install_prog $dir/$dlname \$dldir/$dlname~
9389      chmod a+x \$dldir/$dlname'
9390    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9391      dlpath=$dir/\$dldll~
9392       $rm \$dlpath'
9393    shlibpath_overrides_runpath=yes
9394
9395    case $host_os in
9396    cygwin*)
9397      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9398      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9399      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9400      ;;
9401    mingw*)
9402      # MinGW DLLs use traditional 'lib' prefix
9403      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9404      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9405      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9406        # It is most probably a Windows format PATH printed by
9407        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9408        # path with ; separators, and with drive letters. We can handle the
9409        # drive letters (cygwin fileutils understands them), so leave them,
9410        # especially as we might pass files found there to a mingw objdump,
9411        # which wouldn't understand a cygwinified path. Ahh.
9412        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9413      else
9414        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9415      fi
9416      ;;
9417    pw32*)
9418      # pw32 DLLs use 'pw' prefix rather than 'lib'
9419      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9420      ;;
9421    esac
9422    ;;
9423
9424  *)
9425    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9426    ;;
9427  esac
9428  dynamic_linker='Win32 ld.exe'
9429  # FIXME: first we should search . and the directory the executable is in
9430  shlibpath_var=PATH
9431  ;;
9432
9433darwin* | rhapsody*)
9434  dynamic_linker="$host_os dyld"
9435  version_type=darwin
9436  need_lib_prefix=no
9437  need_version=no
9438  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9439  soname_spec='${libname}${release}${major}$shared_ext'
9440  shlibpath_overrides_runpath=yes
9441  shlibpath_var=DYLD_LIBRARY_PATH
9442  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9443  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9444  if test "$GCC" = yes; then
9445    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"`
9446  else
9447    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9448  fi
9449  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9450  ;;
9451
9452dgux*)
9453  version_type=linux
9454  need_lib_prefix=no
9455  need_version=no
9456  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9457  soname_spec='${libname}${release}${shared_ext}$major'
9458  shlibpath_var=LD_LIBRARY_PATH
9459  ;;
9460
9461freebsd1*)
9462  dynamic_linker=no
9463  ;;
9464
9465kfreebsd*-gnu)
9466  version_type=linux
9467  need_lib_prefix=no
9468  need_version=no
9469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9470  soname_spec='${libname}${release}${shared_ext}$major'
9471  shlibpath_var=LD_LIBRARY_PATH
9472  shlibpath_overrides_runpath=no
9473  hardcode_into_libs=yes
9474  dynamic_linker='GNU ld.so'
9475  ;;
9476
9477freebsd* | dragonfly*)
9478  # DragonFly does not have aout.  When/if they implement a new
9479  # versioning mechanism, adjust this.
9480  if test -x /usr/bin/objformat; then
9481    objformat=`/usr/bin/objformat`
9482  else
9483    case $host_os in
9484    freebsd[123]*) objformat=aout ;;
9485    *) objformat=elf ;;
9486    esac
9487  fi
9488  version_type=freebsd-$objformat
9489  case $version_type in
9490    freebsd-elf*)
9491      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9492      need_version=no
9493      need_lib_prefix=no
9494      ;;
9495    freebsd-*)
9496      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9497      need_version=yes
9498      ;;
9499  esac
9500  shlibpath_var=LD_LIBRARY_PATH
9501  case $host_os in
9502  freebsd2*)
9503    shlibpath_overrides_runpath=yes
9504    ;;
9505  freebsd3.[01]* | freebsdelf3.[01]*)
9506    shlibpath_overrides_runpath=yes
9507    hardcode_into_libs=yes
9508    ;;
9509  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9510  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9511    shlibpath_overrides_runpath=no
9512    hardcode_into_libs=yes
9513    ;;
9514  freebsd*) # from 4.6 on
9515    shlibpath_overrides_runpath=yes
9516    hardcode_into_libs=yes
9517    ;;
9518  esac
9519  ;;
9520
9521gnu*)
9522  version_type=linux
9523  need_lib_prefix=no
9524  need_version=no
9525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9526  soname_spec='${libname}${release}${shared_ext}$major'
9527  shlibpath_var=LD_LIBRARY_PATH
9528  hardcode_into_libs=yes
9529  ;;
9530
9531hpux9* | hpux10* | hpux11*)
9532  # Give a soname corresponding to the major version so that dld.sl refuses to
9533  # link against other versions.
9534  version_type=sunos
9535  need_lib_prefix=no
9536  need_version=no
9537  case $host_cpu in
9538  ia64*)
9539    shrext_cmds='.so'
9540    hardcode_into_libs=yes
9541    dynamic_linker="$host_os dld.so"
9542    shlibpath_var=LD_LIBRARY_PATH
9543    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9544    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545    soname_spec='${libname}${release}${shared_ext}$major'
9546    if test "X$HPUX_IA64_MODE" = X32; then
9547      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9548    else
9549      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9550    fi
9551    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9552    ;;
9553   hppa*64*)
9554     shrext_cmds='.sl'
9555     hardcode_into_libs=yes
9556     dynamic_linker="$host_os dld.sl"
9557     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9558     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9559     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560     soname_spec='${libname}${release}${shared_ext}$major'
9561     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9563     ;;
9564   *)
9565    shrext_cmds='.sl'
9566    dynamic_linker="$host_os dld.sl"
9567    shlibpath_var=SHLIB_PATH
9568    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9569    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570    soname_spec='${libname}${release}${shared_ext}$major'
9571    ;;
9572  esac
9573  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9574  postinstall_cmds='chmod 555 $lib'
9575  ;;
9576
9577interix3*)
9578  version_type=linux
9579  need_lib_prefix=no
9580  need_version=no
9581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9582  soname_spec='${libname}${release}${shared_ext}$major'
9583  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9584  shlibpath_var=LD_LIBRARY_PATH
9585  shlibpath_overrides_runpath=no
9586  hardcode_into_libs=yes
9587  ;;
9588
9589irix5* | irix6* | nonstopux*)
9590  case $host_os in
9591    nonstopux*) version_type=nonstopux ;;
9592    *)
9593        if test "$lt_cv_prog_gnu_ld" = yes; then
9594                version_type=linux
9595        else
9596                version_type=irix
9597        fi ;;
9598  esac
9599  need_lib_prefix=no
9600  need_version=no
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9603  case $host_os in
9604  irix5* | nonstopux*)
9605    libsuff= shlibsuff=
9606    ;;
9607  *)
9608    case $LD in # libtool.m4 will add one of these switches to LD
9609    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9610      libsuff= shlibsuff= libmagic=32-bit;;
9611    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9612      libsuff=32 shlibsuff=N32 libmagic=N32;;
9613    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9614      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9615    *) libsuff= shlibsuff= libmagic=never-match;;
9616    esac
9617    ;;
9618  esac
9619  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9620  shlibpath_overrides_runpath=no
9621  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9622  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9623  hardcode_into_libs=yes
9624  ;;
9625
9626# No shared lib support for Linux oldld, aout, or coff.
9627linux*oldld* | linux*aout* | linux*coff*)
9628  dynamic_linker=no
9629  ;;
9630
9631# This must be Linux ELF.
9632linux*)
9633  version_type=linux
9634  need_lib_prefix=no
9635  need_version=no
9636  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637  soname_spec='${libname}${release}${shared_ext}$major'
9638  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9639  shlibpath_var=LD_LIBRARY_PATH
9640  shlibpath_overrides_runpath=no
9641  # This implies no fast_install, which is unacceptable.
9642  # Some rework will be needed to allow for fast_install
9643  # before this can be enabled.
9644  hardcode_into_libs=yes
9645
9646  # Append ld.so.conf contents to the search path
9647  if test -f /etc/ld.so.conf; then
9648    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9649    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9650  fi
9651
9652  # We used to test for /lib/ld.so.1 and disable shared libraries on
9653  # powerpc, because MkLinux only supported shared libraries with the
9654  # GNU dynamic linker.  Since this was broken with cross compilers,
9655  # most powerpc-linux boxes support dynamic linking these days and
9656  # people can always --disable-shared, the test was removed, and we
9657  # assume the GNU/Linux dynamic linker is in use.
9658  dynamic_linker='GNU/Linux ld.so'
9659  ;;
9660
9661knetbsd*-gnu)
9662  version_type=linux
9663  need_lib_prefix=no
9664  need_version=no
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9666  soname_spec='${libname}${release}${shared_ext}$major'
9667  shlibpath_var=LD_LIBRARY_PATH
9668  shlibpath_overrides_runpath=no
9669  hardcode_into_libs=yes
9670  dynamic_linker='GNU ld.so'
9671  ;;
9672
9673netbsd*)
9674  version_type=sunos
9675  need_lib_prefix=no
9676  need_version=no
9677  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9678    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9679    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9680    dynamic_linker='NetBSD (a.out) ld.so'
9681  else
9682    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9683    soname_spec='${libname}${release}${shared_ext}$major'
9684    dynamic_linker='NetBSD ld.elf_so'
9685  fi
9686  shlibpath_var=LD_LIBRARY_PATH
9687  shlibpath_overrides_runpath=yes
9688  hardcode_into_libs=yes
9689  ;;
9690
9691newsos6)
9692  version_type=linux
9693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9694  shlibpath_var=LD_LIBRARY_PATH
9695  shlibpath_overrides_runpath=yes
9696  ;;
9697
9698nto-qnx*)
9699  version_type=linux
9700  need_lib_prefix=no
9701  need_version=no
9702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703  soname_spec='${libname}${release}${shared_ext}$major'
9704  shlibpath_var=LD_LIBRARY_PATH
9705  shlibpath_overrides_runpath=yes
9706  ;;
9707
9708openbsd*)
9709  version_type=sunos
9710  sys_lib_dlsearch_path_spec="/usr/lib"
9711  need_lib_prefix=no
9712  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9713  case $host_os in
9714    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9715    *)                         need_version=no  ;;
9716  esac
9717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9718  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9719  shlibpath_var=LD_LIBRARY_PATH
9720  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9721    case $host_os in
9722      openbsd2.[89] | openbsd2.[89].*)
9723        shlibpath_overrides_runpath=no
9724        ;;
9725      *)
9726        shlibpath_overrides_runpath=yes
9727        ;;
9728      esac
9729  else
9730    shlibpath_overrides_runpath=yes
9731  fi
9732  ;;
9733
9734os2*)
9735  libname_spec='$name'
9736  shrext_cmds=".dll"
9737  need_lib_prefix=no
9738  library_names_spec='$libname${shared_ext} $libname.a'
9739  dynamic_linker='OS/2 ld.exe'
9740  shlibpath_var=LIBPATH
9741  ;;
9742
9743osf3* | osf4* | osf5*)
9744  version_type=osf
9745  need_lib_prefix=no
9746  need_version=no
9747  soname_spec='${libname}${release}${shared_ext}$major'
9748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749  shlibpath_var=LD_LIBRARY_PATH
9750  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9751  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9752  ;;
9753
9754solaris*)
9755  version_type=linux
9756  need_lib_prefix=no
9757  need_version=no
9758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9759  soname_spec='${libname}${release}${shared_ext}$major'
9760  shlibpath_var=LD_LIBRARY_PATH
9761  shlibpath_overrides_runpath=yes
9762  hardcode_into_libs=yes
9763  # ldd complains unless libraries are executable
9764  postinstall_cmds='chmod +x $lib'
9765  ;;
9766
9767sunos4*)
9768  version_type=sunos
9769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9770  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9771  shlibpath_var=LD_LIBRARY_PATH
9772  shlibpath_overrides_runpath=yes
9773  if test "$with_gnu_ld" = yes; then
9774    need_lib_prefix=no
9775  fi
9776  need_version=yes
9777  ;;
9778
9779sysv4 | sysv4.3*)
9780  version_type=linux
9781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782  soname_spec='${libname}${release}${shared_ext}$major'
9783  shlibpath_var=LD_LIBRARY_PATH
9784  case $host_vendor in
9785    sni)
9786      shlibpath_overrides_runpath=no
9787      need_lib_prefix=no
9788      export_dynamic_flag_spec='${wl}-Blargedynsym'
9789      runpath_var=LD_RUN_PATH
9790      ;;
9791    siemens)
9792      need_lib_prefix=no
9793      ;;
9794    motorola)
9795      need_lib_prefix=no
9796      need_version=no
9797      shlibpath_overrides_runpath=no
9798      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9799      ;;
9800  esac
9801  ;;
9802
9803sysv4*MP*)
9804  if test -d /usr/nec ;then
9805    version_type=linux
9806    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9807    soname_spec='$libname${shared_ext}.$major'
9808    shlibpath_var=LD_LIBRARY_PATH
9809  fi
9810  ;;
9811
9812sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9813  version_type=freebsd-elf
9814  need_lib_prefix=no
9815  need_version=no
9816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9817  soname_spec='${libname}${release}${shared_ext}$major'
9818  shlibpath_var=LD_LIBRARY_PATH
9819  hardcode_into_libs=yes
9820  if test "$with_gnu_ld" = yes; then
9821    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9822    shlibpath_overrides_runpath=no
9823  else
9824    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9825    shlibpath_overrides_runpath=yes
9826    case $host_os in
9827      sco3.2v5*)
9828        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9829        ;;
9830    esac
9831  fi
9832  sys_lib_dlsearch_path_spec='/usr/lib'
9833  ;;
9834
9835uts4*)
9836  version_type=linux
9837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838  soname_spec='${libname}${release}${shared_ext}$major'
9839  shlibpath_var=LD_LIBRARY_PATH
9840  ;;
9841
9842*)
9843  dynamic_linker=no
9844  ;;
9845esac
9846echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9847echo "${ECHO_T}$dynamic_linker" >&6
9848test "$dynamic_linker" = no && can_build_shared=no
9849
9850variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9851if test "$GCC" = yes; then
9852  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9853fi
9854
9855echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9856echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9857hardcode_action=
9858if test -n "$hardcode_libdir_flag_spec" || \
9859   test -n "$runpath_var" || \
9860   test "X$hardcode_automatic" = "Xyes" ; then
9861
9862  # We can hardcode non-existant directories.
9863  if test "$hardcode_direct" != no &&
9864     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9865     # have to relink, otherwise we might link with an installed library
9866     # when we should be linking with a yet-to-be-installed one
9867     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9868     test "$hardcode_minus_L" != no; then
9869    # Linking always hardcodes the temporary library directory.
9870    hardcode_action=relink
9871  else
9872    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9873    hardcode_action=immediate
9874  fi
9875else
9876  # We cannot hardcode anything, or else we can only hardcode existing
9877  # directories.
9878  hardcode_action=unsupported
9879fi
9880echo "$as_me:$LINENO: result: $hardcode_action" >&5
9881echo "${ECHO_T}$hardcode_action" >&6
9882
9883if test "$hardcode_action" = relink; then
9884  # Fast installation is not supported
9885  enable_fast_install=no
9886elif test "$shlibpath_overrides_runpath" = yes ||
9887     test "$enable_shared" = no; then
9888  # Fast installation is not necessary
9889  enable_fast_install=needless
9890fi
9891
9892striplib=
9893old_striplib=
9894echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9895echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9896if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9897  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9898  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9899  echo "$as_me:$LINENO: result: yes" >&5
9900echo "${ECHO_T}yes" >&6
9901else
9902# FIXME - insert some real tests, host_os isn't really good enough
9903  case $host_os in
9904   darwin*)
9905       if test -n "$STRIP" ; then
9906         striplib="$STRIP -x"
9907         echo "$as_me:$LINENO: result: yes" >&5
9908echo "${ECHO_T}yes" >&6
9909       else
9910  echo "$as_me:$LINENO: result: no" >&5
9911echo "${ECHO_T}no" >&6
9912fi
9913       ;;
9914   *)
9915  echo "$as_me:$LINENO: result: no" >&5
9916echo "${ECHO_T}no" >&6
9917    ;;
9918  esac
9919fi
9920
9921if test "x$enable_dlopen" != xyes; then
9922  enable_dlopen=unknown
9923  enable_dlopen_self=unknown
9924  enable_dlopen_self_static=unknown
9925else
9926  lt_cv_dlopen=no
9927  lt_cv_dlopen_libs=
9928
9929  case $host_os in
9930  beos*)
9931    lt_cv_dlopen="load_add_on"
9932    lt_cv_dlopen_libs=
9933    lt_cv_dlopen_self=yes
9934    ;;
9935
9936  mingw* | pw32*)
9937    lt_cv_dlopen="LoadLibrary"
9938    lt_cv_dlopen_libs=
9939   ;;
9940
9941  cygwin*)
9942    lt_cv_dlopen="dlopen"
9943    lt_cv_dlopen_libs=
9944   ;;
9945
9946  darwin*)
9947  # if libdl is installed we need to link against it
9948    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9949echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9950if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9951  echo $ECHO_N "(cached) $ECHO_C" >&6
9952else
9953  ac_check_lib_save_LIBS=$LIBS
9954LIBS="-ldl  $LIBS"
9955cat >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/* Override any gcc2 internal prototype to avoid an error.  */
9963#ifdef __cplusplus
9964extern "C"
9965#endif
9966/* We use char because int might match the return type of a gcc2
9967   builtin and then its argument prototype would still apply.  */
9968char dlopen ();
9969int
9970main ()
9971{
9972dlopen ();
9973  ;
9974  return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext conftest$ac_exeext
9978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9979  (eval $ac_link) 2>conftest.er1
9980  ac_status=$?
9981  grep -v '^ *+' conftest.er1 >conftest.err
9982  rm -f conftest.er1
9983  cat conftest.err >&5
9984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985  (exit $ac_status); } &&
9986         { ac_try='test -z "$ac_c_werror_flag"
9987                         || test ! -s conftest.err'
9988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9989  (eval $ac_try) 2>&5
9990  ac_status=$?
9991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992  (exit $ac_status); }; } &&
9993         { ac_try='test -s conftest$ac_exeext'
9994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995  (eval $ac_try) 2>&5
9996  ac_status=$?
9997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998  (exit $ac_status); }; }; then
9999  ac_cv_lib_dl_dlopen=yes
10000else
10001  echo "$as_me: failed program was:" >&5
10002sed 's/^/| /' conftest.$ac_ext >&5
10003
10004ac_cv_lib_dl_dlopen=no
10005fi
10006rm -f conftest.err conftest.$ac_objext \
10007      conftest$ac_exeext conftest.$ac_ext
10008LIBS=$ac_check_lib_save_LIBS
10009fi
10010echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10011echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10012if test $ac_cv_lib_dl_dlopen = yes; then
10013  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10014else
10015
10016    lt_cv_dlopen="dyld"
10017    lt_cv_dlopen_libs=
10018    lt_cv_dlopen_self=yes
10019
10020fi
10021
10022   ;;
10023
10024  *)
10025    echo "$as_me:$LINENO: checking for shl_load" >&5
10026echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10027if test "${ac_cv_func_shl_load+set}" = set; then
10028  echo $ECHO_N "(cached) $ECHO_C" >&6
10029else
10030  cat >conftest.$ac_ext <<_ACEOF
10031/* confdefs.h.  */
10032_ACEOF
10033cat confdefs.h >>conftest.$ac_ext
10034cat >>conftest.$ac_ext <<_ACEOF
10035/* end confdefs.h.  */
10036/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10037   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10038#define shl_load innocuous_shl_load
10039
10040/* System header to define __stub macros and hopefully few prototypes,
10041    which can conflict with char shl_load (); below.
10042    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10043    <limits.h> exists even on freestanding compilers.  */
10044
10045#ifdef __STDC__
10046# include <limits.h>
10047#else
10048# include <assert.h>
10049#endif
10050
10051#undef shl_load
10052
10053/* Override any gcc2 internal prototype to avoid an error.  */
10054#ifdef __cplusplus
10055extern "C"
10056{
10057#endif
10058/* We use char because int might match the return type of a gcc2
10059   builtin and then its argument prototype would still apply.  */
10060char shl_load ();
10061/* The GNU C library defines this for functions which it implements
10062    to always fail with ENOSYS.  Some functions are actually named
10063    something starting with __ and the normal name is an alias.  */
10064#if defined (__stub_shl_load) || defined (__stub___shl_load)
10065choke me
10066#else
10067char (*f) () = shl_load;
10068#endif
10069#ifdef __cplusplus
10070}
10071#endif
10072
10073int
10074main ()
10075{
10076return f != shl_load;
10077  ;
10078  return 0;
10079}
10080_ACEOF
10081rm -f conftest.$ac_objext conftest$ac_exeext
10082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083  (eval $ac_link) 2>conftest.er1
10084  ac_status=$?
10085  grep -v '^ *+' conftest.er1 >conftest.err
10086  rm -f conftest.er1
10087  cat conftest.err >&5
10088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089  (exit $ac_status); } &&
10090         { ac_try='test -z "$ac_c_werror_flag"
10091                         || test ! -s conftest.err'
10092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093  (eval $ac_try) 2>&5
10094  ac_status=$?
10095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096  (exit $ac_status); }; } &&
10097         { ac_try='test -s conftest$ac_exeext'
10098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099  (eval $ac_try) 2>&5
10100  ac_status=$?
10101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102  (exit $ac_status); }; }; then
10103  ac_cv_func_shl_load=yes
10104else
10105  echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
10108ac_cv_func_shl_load=no
10109fi
10110rm -f conftest.err conftest.$ac_objext \
10111      conftest$ac_exeext conftest.$ac_ext
10112fi
10113echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10114echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10115if test $ac_cv_func_shl_load = yes; then
10116  lt_cv_dlopen="shl_load"
10117else
10118  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10119echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10120if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10121  echo $ECHO_N "(cached) $ECHO_C" >&6
10122else
10123  ac_check_lib_save_LIBS=$LIBS
10124LIBS="-ldld  $LIBS"
10125cat >conftest.$ac_ext <<_ACEOF
10126/* confdefs.h.  */
10127_ACEOF
10128cat confdefs.h >>conftest.$ac_ext
10129cat >>conftest.$ac_ext <<_ACEOF
10130/* end confdefs.h.  */
10131
10132/* Override any gcc2 internal prototype to avoid an error.  */
10133#ifdef __cplusplus
10134extern "C"
10135#endif
10136/* We use char because int might match the return type of a gcc2
10137   builtin and then its argument prototype would still apply.  */
10138char shl_load ();
10139int
10140main ()
10141{
10142shl_load ();
10143  ;
10144  return 0;
10145}
10146_ACEOF
10147rm -f conftest.$ac_objext conftest$ac_exeext
10148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10149  (eval $ac_link) 2>conftest.er1
10150  ac_status=$?
10151  grep -v '^ *+' conftest.er1 >conftest.err
10152  rm -f conftest.er1
10153  cat conftest.err >&5
10154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155  (exit $ac_status); } &&
10156         { ac_try='test -z "$ac_c_werror_flag"
10157                         || test ! -s conftest.err'
10158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159  (eval $ac_try) 2>&5
10160  ac_status=$?
10161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162  (exit $ac_status); }; } &&
10163         { ac_try='test -s conftest$ac_exeext'
10164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165  (eval $ac_try) 2>&5
10166  ac_status=$?
10167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168  (exit $ac_status); }; }; then
10169  ac_cv_lib_dld_shl_load=yes
10170else
10171  echo "$as_me: failed program was:" >&5
10172sed 's/^/| /' conftest.$ac_ext >&5
10173
10174ac_cv_lib_dld_shl_load=no
10175fi
10176rm -f conftest.err conftest.$ac_objext \
10177      conftest$ac_exeext conftest.$ac_ext
10178LIBS=$ac_check_lib_save_LIBS
10179fi
10180echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10181echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10182if test $ac_cv_lib_dld_shl_load = yes; then
10183  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10184else
10185  echo "$as_me:$LINENO: checking for dlopen" >&5
10186echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10187if test "${ac_cv_func_dlopen+set}" = set; then
10188  echo $ECHO_N "(cached) $ECHO_C" >&6
10189else
10190  cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h.  */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h.  */
10196/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10197   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10198#define dlopen innocuous_dlopen
10199
10200/* System header to define __stub macros and hopefully few prototypes,
10201    which can conflict with char dlopen (); below.
10202    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10203    <limits.h> exists even on freestanding compilers.  */
10204
10205#ifdef __STDC__
10206# include <limits.h>
10207#else
10208# include <assert.h>
10209#endif
10210
10211#undef dlopen
10212
10213/* Override any gcc2 internal prototype to avoid an error.  */
10214#ifdef __cplusplus
10215extern "C"
10216{
10217#endif
10218/* We use char because int might match the return type of a gcc2
10219   builtin and then its argument prototype would still apply.  */
10220char dlopen ();
10221/* The GNU C library defines this for functions which it implements
10222    to always fail with ENOSYS.  Some functions are actually named
10223    something starting with __ and the normal name is an alias.  */
10224#if defined (__stub_dlopen) || defined (__stub___dlopen)
10225choke me
10226#else
10227char (*f) () = dlopen;
10228#endif
10229#ifdef __cplusplus
10230}
10231#endif
10232
10233int
10234main ()
10235{
10236return f != dlopen;
10237  ;
10238  return 0;
10239}
10240_ACEOF
10241rm -f conftest.$ac_objext conftest$ac_exeext
10242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10243  (eval $ac_link) 2>conftest.er1
10244  ac_status=$?
10245  grep -v '^ *+' conftest.er1 >conftest.err
10246  rm -f conftest.er1
10247  cat conftest.err >&5
10248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249  (exit $ac_status); } &&
10250         { ac_try='test -z "$ac_c_werror_flag"
10251                         || test ! -s conftest.err'
10252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253  (eval $ac_try) 2>&5
10254  ac_status=$?
10255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256  (exit $ac_status); }; } &&
10257         { ac_try='test -s conftest$ac_exeext'
10258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259  (eval $ac_try) 2>&5
10260  ac_status=$?
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); }; }; then
10263  ac_cv_func_dlopen=yes
10264else
10265  echo "$as_me: failed program was:" >&5
10266sed 's/^/| /' conftest.$ac_ext >&5
10267
10268ac_cv_func_dlopen=no
10269fi
10270rm -f conftest.err conftest.$ac_objext \
10271      conftest$ac_exeext conftest.$ac_ext
10272fi
10273echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10274echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10275if test $ac_cv_func_dlopen = yes; then
10276  lt_cv_dlopen="dlopen"
10277else
10278  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10279echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10280if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10281  echo $ECHO_N "(cached) $ECHO_C" >&6
10282else
10283  ac_check_lib_save_LIBS=$LIBS
10284LIBS="-ldl  $LIBS"
10285cat >conftest.$ac_ext <<_ACEOF
10286/* confdefs.h.  */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h.  */
10291
10292/* Override any gcc2 internal prototype to avoid an error.  */
10293#ifdef __cplusplus
10294extern "C"
10295#endif
10296/* We use char because int might match the return type of a gcc2
10297   builtin and then its argument prototype would still apply.  */
10298char dlopen ();
10299int
10300main ()
10301{
10302dlopen ();
10303  ;
10304  return 0;
10305}
10306_ACEOF
10307rm -f conftest.$ac_objext conftest$ac_exeext
10308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309  (eval $ac_link) 2>conftest.er1
10310  ac_status=$?
10311  grep -v '^ *+' conftest.er1 >conftest.err
10312  rm -f conftest.er1
10313  cat conftest.err >&5
10314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315  (exit $ac_status); } &&
10316         { ac_try='test -z "$ac_c_werror_flag"
10317                         || test ! -s conftest.err'
10318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319  (eval $ac_try) 2>&5
10320  ac_status=$?
10321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322  (exit $ac_status); }; } &&
10323         { ac_try='test -s conftest$ac_exeext'
10324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325  (eval $ac_try) 2>&5
10326  ac_status=$?
10327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328  (exit $ac_status); }; }; then
10329  ac_cv_lib_dl_dlopen=yes
10330else
10331  echo "$as_me: failed program was:" >&5
10332sed 's/^/| /' conftest.$ac_ext >&5
10333
10334ac_cv_lib_dl_dlopen=no
10335fi
10336rm -f conftest.err conftest.$ac_objext \
10337      conftest$ac_exeext conftest.$ac_ext
10338LIBS=$ac_check_lib_save_LIBS
10339fi
10340echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10341echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10342if test $ac_cv_lib_dl_dlopen = yes; then
10343  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10344else
10345  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10346echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10347if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10348  echo $ECHO_N "(cached) $ECHO_C" >&6
10349else
10350  ac_check_lib_save_LIBS=$LIBS
10351LIBS="-lsvld  $LIBS"
10352cat >conftest.$ac_ext <<_ACEOF
10353/* confdefs.h.  */
10354_ACEOF
10355cat confdefs.h >>conftest.$ac_ext
10356cat >>conftest.$ac_ext <<_ACEOF
10357/* end confdefs.h.  */
10358
10359/* Override any gcc2 internal prototype to avoid an error.  */
10360#ifdef __cplusplus
10361extern "C"
10362#endif
10363/* We use char because int might match the return type of a gcc2
10364   builtin and then its argument prototype would still apply.  */
10365char dlopen ();
10366int
10367main ()
10368{
10369dlopen ();
10370  ;
10371  return 0;
10372}
10373_ACEOF
10374rm -f conftest.$ac_objext conftest$ac_exeext
10375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376  (eval $ac_link) 2>conftest.er1
10377  ac_status=$?
10378  grep -v '^ *+' conftest.er1 >conftest.err
10379  rm -f conftest.er1
10380  cat conftest.err >&5
10381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382  (exit $ac_status); } &&
10383         { ac_try='test -z "$ac_c_werror_flag"
10384                         || test ! -s conftest.err'
10385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386  (eval $ac_try) 2>&5
10387  ac_status=$?
10388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389  (exit $ac_status); }; } &&
10390         { ac_try='test -s conftest$ac_exeext'
10391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392  (eval $ac_try) 2>&5
10393  ac_status=$?
10394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395  (exit $ac_status); }; }; then
10396  ac_cv_lib_svld_dlopen=yes
10397else
10398  echo "$as_me: failed program was:" >&5
10399sed 's/^/| /' conftest.$ac_ext >&5
10400
10401ac_cv_lib_svld_dlopen=no
10402fi
10403rm -f conftest.err conftest.$ac_objext \
10404      conftest$ac_exeext conftest.$ac_ext
10405LIBS=$ac_check_lib_save_LIBS
10406fi
10407echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10408echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10409if test $ac_cv_lib_svld_dlopen = yes; then
10410  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10411else
10412  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10413echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10414if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10415  echo $ECHO_N "(cached) $ECHO_C" >&6
10416else
10417  ac_check_lib_save_LIBS=$LIBS
10418LIBS="-ldld  $LIBS"
10419cat >conftest.$ac_ext <<_ACEOF
10420/* confdefs.h.  */
10421_ACEOF
10422cat confdefs.h >>conftest.$ac_ext
10423cat >>conftest.$ac_ext <<_ACEOF
10424/* end confdefs.h.  */
10425
10426/* Override any gcc2 internal prototype to avoid an error.  */
10427#ifdef __cplusplus
10428extern "C"
10429#endif
10430/* We use char because int might match the return type of a gcc2
10431   builtin and then its argument prototype would still apply.  */
10432char dld_link ();
10433int
10434main ()
10435{
10436dld_link ();
10437  ;
10438  return 0;
10439}
10440_ACEOF
10441rm -f conftest.$ac_objext conftest$ac_exeext
10442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10443  (eval $ac_link) 2>conftest.er1
10444  ac_status=$?
10445  grep -v '^ *+' conftest.er1 >conftest.err
10446  rm -f conftest.er1
10447  cat conftest.err >&5
10448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449  (exit $ac_status); } &&
10450         { ac_try='test -z "$ac_c_werror_flag"
10451                         || test ! -s conftest.err'
10452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453  (eval $ac_try) 2>&5
10454  ac_status=$?
10455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456  (exit $ac_status); }; } &&
10457         { ac_try='test -s conftest$ac_exeext'
10458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459  (eval $ac_try) 2>&5
10460  ac_status=$?
10461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462  (exit $ac_status); }; }; then
10463  ac_cv_lib_dld_dld_link=yes
10464else
10465  echo "$as_me: failed program was:" >&5
10466sed 's/^/| /' conftest.$ac_ext >&5
10467
10468ac_cv_lib_dld_dld_link=no
10469fi
10470rm -f conftest.err conftest.$ac_objext \
10471      conftest$ac_exeext conftest.$ac_ext
10472LIBS=$ac_check_lib_save_LIBS
10473fi
10474echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10475echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10476if test $ac_cv_lib_dld_dld_link = yes; then
10477  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10478fi
10479
10480
10481fi
10482
10483
10484fi
10485
10486
10487fi
10488
10489
10490fi
10491
10492
10493fi
10494
10495    ;;
10496  esac
10497
10498  if test "x$lt_cv_dlopen" != xno; then
10499    enable_dlopen=yes
10500  else
10501    enable_dlopen=no
10502  fi
10503
10504  case $lt_cv_dlopen in
10505  dlopen)
10506    save_CPPFLAGS="$CPPFLAGS"
10507    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10508
10509    save_LDFLAGS="$LDFLAGS"
10510    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10511
10512    save_LIBS="$LIBS"
10513    LIBS="$lt_cv_dlopen_libs $LIBS"
10514
10515    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10516echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10517if test "${lt_cv_dlopen_self+set}" = set; then
10518  echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520          if test "$cross_compiling" = yes; then :
10521  lt_cv_dlopen_self=cross
10522else
10523  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10524  lt_status=$lt_dlunknown
10525  cat > conftest.$ac_ext <<EOF
10526#line 10526 "configure"
10527#include "confdefs.h"
10528
10529#if HAVE_DLFCN_H
10530#include <dlfcn.h>
10531#endif
10532
10533#include <stdio.h>
10534
10535#ifdef RTLD_GLOBAL
10536#  define LT_DLGLOBAL           RTLD_GLOBAL
10537#else
10538#  ifdef DL_GLOBAL
10539#    define LT_DLGLOBAL         DL_GLOBAL
10540#  else
10541#    define LT_DLGLOBAL         0
10542#  endif
10543#endif
10544
10545/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10546   find out it does not work in some platform. */
10547#ifndef LT_DLLAZY_OR_NOW
10548#  ifdef RTLD_LAZY
10549#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10550#  else
10551#    ifdef DL_LAZY
10552#      define LT_DLLAZY_OR_NOW          DL_LAZY
10553#    else
10554#      ifdef RTLD_NOW
10555#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10556#      else
10557#        ifdef DL_NOW
10558#          define LT_DLLAZY_OR_NOW      DL_NOW
10559#        else
10560#          define LT_DLLAZY_OR_NOW      0
10561#        endif
10562#      endif
10563#    endif
10564#  endif
10565#endif
10566
10567#ifdef __cplusplus
10568extern "C" void exit (int);
10569#endif
10570
10571void fnord() { int i=42;}
10572int main ()
10573{
10574  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10575  int status = $lt_dlunknown;
10576
10577  if (self)
10578    {
10579      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10580      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10581      /* dlclose (self); */
10582    }
10583  else
10584    puts (dlerror ());
10585
10586    exit (status);
10587}
10588EOF
10589  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10590  (eval $ac_link) 2>&5
10591  ac_status=$?
10592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10594    (./conftest; exit; ) >&5 2>/dev/null
10595    lt_status=$?
10596    case x$lt_status in
10597      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10598      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10599      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10600    esac
10601  else :
10602    # compilation failed
10603    lt_cv_dlopen_self=no
10604  fi
10605fi
10606rm -fr conftest*
10607
10608
10609fi
10610echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10611echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10612
10613    if test "x$lt_cv_dlopen_self" = xyes; then
10614      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10615      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10616echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10617if test "${lt_cv_dlopen_self_static+set}" = set; then
10618  echo $ECHO_N "(cached) $ECHO_C" >&6
10619else
10620          if test "$cross_compiling" = yes; then :
10621  lt_cv_dlopen_self_static=cross
10622else
10623  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10624  lt_status=$lt_dlunknown
10625  cat > conftest.$ac_ext <<EOF
10626#line 10626 "configure"
10627#include "confdefs.h"
10628
10629#if HAVE_DLFCN_H
10630#include <dlfcn.h>
10631#endif
10632
10633#include <stdio.h>
10634
10635#ifdef RTLD_GLOBAL
10636#  define LT_DLGLOBAL           RTLD_GLOBAL
10637#else
10638#  ifdef DL_GLOBAL
10639#    define LT_DLGLOBAL         DL_GLOBAL
10640#  else
10641#    define LT_DLGLOBAL         0
10642#  endif
10643#endif
10644
10645/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10646   find out it does not work in some platform. */
10647#ifndef LT_DLLAZY_OR_NOW
10648#  ifdef RTLD_LAZY
10649#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10650#  else
10651#    ifdef DL_LAZY
10652#      define LT_DLLAZY_OR_NOW          DL_LAZY
10653#    else
10654#      ifdef RTLD_NOW
10655#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10656#      else
10657#        ifdef DL_NOW
10658#          define LT_DLLAZY_OR_NOW      DL_NOW
10659#        else
10660#          define LT_DLLAZY_OR_NOW      0
10661#        endif
10662#      endif
10663#    endif
10664#  endif
10665#endif
10666
10667#ifdef __cplusplus
10668extern "C" void exit (int);
10669#endif
10670
10671void fnord() { int i=42;}
10672int main ()
10673{
10674  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10675  int status = $lt_dlunknown;
10676
10677  if (self)
10678    {
10679      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10680      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10681      /* dlclose (self); */
10682    }
10683  else
10684    puts (dlerror ());
10685
10686    exit (status);
10687}
10688EOF
10689  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10690  (eval $ac_link) 2>&5
10691  ac_status=$?
10692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10694    (./conftest; exit; ) >&5 2>/dev/null
10695    lt_status=$?
10696    case x$lt_status in
10697      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10698      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10699      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10700    esac
10701  else :
10702    # compilation failed
10703    lt_cv_dlopen_self_static=no
10704  fi
10705fi
10706rm -fr conftest*
10707
10708
10709fi
10710echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10711echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10712    fi
10713
10714    CPPFLAGS="$save_CPPFLAGS"
10715    LDFLAGS="$save_LDFLAGS"
10716    LIBS="$save_LIBS"
10717    ;;
10718  esac
10719
10720  case $lt_cv_dlopen_self in
10721  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10722  *) enable_dlopen_self=unknown ;;
10723  esac
10724
10725  case $lt_cv_dlopen_self_static in
10726  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10727  *) enable_dlopen_self_static=unknown ;;
10728  esac
10729fi
10730
10731
10732# Report which library types will actually be built
10733echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10734echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10735echo "$as_me:$LINENO: result: $can_build_shared" >&5
10736echo "${ECHO_T}$can_build_shared" >&6
10737
10738echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10739echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10740test "$can_build_shared" = "no" && enable_shared=no
10741
10742# On AIX, shared libraries and static libraries use the same namespace, and
10743# are all built from PIC.
10744case $host_os in
10745aix3*)
10746  test "$enable_shared" = yes && enable_static=no
10747  if test -n "$RANLIB"; then
10748    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10749    postinstall_cmds='$RANLIB $lib'
10750  fi
10751  ;;
10752
10753aix4* | aix5*)
10754  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10755    test "$enable_shared" = yes && enable_static=no
10756  fi
10757    ;;
10758esac
10759echo "$as_me:$LINENO: result: $enable_shared" >&5
10760echo "${ECHO_T}$enable_shared" >&6
10761
10762echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10763echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10764# Make sure either enable_shared or enable_static is yes.
10765test "$enable_shared" = yes || enable_static=yes
10766echo "$as_me:$LINENO: result: $enable_static" >&5
10767echo "${ECHO_T}$enable_static" >&6
10768
10769# The else clause should only fire when bootstrapping the
10770# libtool distribution, otherwise you forgot to ship ltmain.sh
10771# with your package, and you will get complaints that there are
10772# no rules to generate ltmain.sh.
10773if test -f "$ltmain"; then
10774  # See if we are running on zsh, and set the options which allow our commands through
10775  # without removal of \ escapes.
10776  if test -n "${ZSH_VERSION+set}" ; then
10777    setopt NO_GLOB_SUBST
10778  fi
10779  # Now quote all the things that may contain metacharacters while being
10780  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10781  # variables and quote the copies for generation of the libtool script.
10782  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10783    SED SHELL STRIP \
10784    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10785    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10786    deplibs_ch