source: ThirdParty/Lapack/trunk/configure @ 229

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

compile third party code only if not otherwise available

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