source: ThirdParty/Lapack/releases/1.0.5/configure @ 308

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

synchronize Lapack stable/1.0 with trunk rev 300

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