source: ThirdParty/Blas/trunk/configure @ 1411

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

revert my recent changes related to BSPsplit after copying them into branches

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