source: ThirdParty/Blas/stable/1.0/configure @ 910

Last change on this file since 910 was 910, checked in by andreasw, 14 years ago

temporarily committing release candidate to stable

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