source: trunk/Clp/configure @ 1164

Last change on this file since 1164 was 1155, checked in by tkr, 12 years ago

Changing installation location for addlibs.txt file

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