source: trunk/Clp/configure @ 1611

Last change on this file since 1611 was 1603, checked in by stefan, 9 years ago

change from COIN_HAS_MODULE to COIN_HAS_PACKAGE

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