source: stable/1.13/Clp/configure @ 1625

Last change on this file since 1625 was 1625, checked in by lou, 10 years ago

temporarily committing release candidate

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