source: branches/split/Clp/configure @ 1530

Last change on this file since 1530 was 1530, checked in by stefan, 10 years ago

add Osi to no pkg-config fallback (not tested)

  • Property svn:executable set to *
File size: 770.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp trunk.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Clp trunk'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA REQUIREDPACKAGES COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA 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 COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR OSISRCDIR OSIOBJDIR OSIDOCDIR LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Clp trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Clp trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-clp compile this project (Clp) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --disable-dependency-tracking  speeds up one-time build
1091  --enable-dependency-tracking   do not reject slow dependency extractors
1092  --enable-maintainer-mode  enable make rules and dependencies not useful
1093                          (and sometimes confusing) to the casual installer
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099  --enable-pkg-config     use pkg-config if available (default is yes)
1100  --enable-gnu-packages   compile with GNU packages (disabled by default)
1101
1102Optional Packages:
1103  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1104  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1105  --with-clp-verbosity specify the debug verbosity level for project Clp
1106  --with-clp-checklevel specify the sanity check level for project Clp
1107  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1108  --with-pic              try to use only PIC/non-PIC objects [default=use
1109                          both]
1110  --with-tags[=TAGS]
1111                          include additional configurations [automatic]
1112  --with-coinutils-lib linker flags for using module CoinUtils
1113  --with-coinutils-incdir directory with header files for using module
1114                          CoinUtils
1115  --with-coinutils-datadir
1116                          directory with data files for using module CoinUtils
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119  --with-osi-lib linker flags for using module Osi
1120  --with-osi-incdir directory with header files for using module Osi
1121  --with-osi-datadir directory with data files for using module Osi
1122  --with-ositests-lib linker flags for using module OsiTests
1123  --with-ositests-incdir directory with header files for using module OsiTests
1124  --with-ositests-datadir directory with data files for using module OsiTests
1125  --with-sample-lib linker flags for using module Sample
1126  --with-sample-incdir directory with header files for using module Sample
1127  --with-sample-datadir directory with data files for using module Sample
1128  --with-netlib-lib linker flags for using module Netlib
1129  --with-netlib-incdir directory with header files for using module Netlib
1130  --with-netlib-datadir directory with data files for using module Netlib
1131  --with-wsmp             specify WSMP library
1132
1133Some influential environment variables:
1134  CDEFS       Additional -D flags to be used when compiling C code.
1135  ADD_CFLAGS  Additional C compiler options
1136  DBG_CFLAGS  Debug C compiler options
1137  OPT_CFLAGS  Optimize C compiler options
1138  CC          C compiler command
1139  CFLAGS      C compiler flags
1140  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1141              nonstandard directory <lib dir>
1142  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1143              headers in a nonstandard directory <include dir>
1144  MPICC       C MPI Compiler
1145  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1146  ADD_CXXFLAGS
1147              Additional C++ compiler options
1148  DBG_CXXFLAGS
1149              Debug C++ compiler options
1150  OPT_CXXFLAGS
1151              Optimize C++ compiler options
1152  CXX         C++ compiler command
1153  CXXFLAGS    C++ compiler flags
1154  MPICXX      C++ MPI Compiler
1155  CPP         C preprocessor
1156  CXXCPP      C++ preprocessor
1157  F77         Fortran 77 compiler command
1158  FFLAGS      Fortran 77 compiler flags
1159  PKG_CONFIG  path to pkg-config utility
1160
1161Use these variables to override the choices made by `configure' or to help
1162it to find libraries and programs with nonstandard names/locations.
1163
1164Report bugs to <clp@list.coin-or.org>.
1165_ACEOF
1166fi
1167
1168if test "$ac_init_help" = "recursive"; then
1169  # If there are subdirs, report their specific --help.
1170  ac_popdir=`pwd`
1171  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1172    test -d $ac_dir || continue
1173    ac_builddir=.
1174
1175if test "$ac_dir" != .; then
1176  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1177  # A "../" for each directory in $ac_dir_suffix.
1178  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1179else
1180  ac_dir_suffix= ac_top_builddir=
1181fi
1182
1183case $srcdir in
1184  .)  # No --srcdir option.  We are building in place.
1185    ac_srcdir=.
1186    if test -z "$ac_top_builddir"; then
1187       ac_top_srcdir=.
1188    else
1189       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1190    fi ;;
1191  [\\/]* | ?:[\\/]* )  # Absolute path.
1192    ac_srcdir=$srcdir$ac_dir_suffix;
1193    ac_top_srcdir=$srcdir ;;
1194  *) # Relative path.
1195    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1196    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1197esac
1198
1199# Do not use `cd foo && pwd` to compute absolute paths, because
1200# the directories may not exist.
1201case `pwd` in
1202.) ac_abs_builddir="$ac_dir";;
1203*)
1204  case "$ac_dir" in
1205  .) ac_abs_builddir=`pwd`;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1207  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_top_builddir=${ac_top_builddir}.;;
1212*)
1213  case ${ac_top_builddir}. in
1214  .) ac_abs_top_builddir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1216  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1217  esac;;
1218esac
1219case $ac_abs_builddir in
1220.) ac_abs_srcdir=$ac_srcdir;;
1221*)
1222  case $ac_srcdir in
1223  .) ac_abs_srcdir=$ac_abs_builddir;;
1224  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1225  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1226  esac;;
1227esac
1228case $ac_abs_builddir in
1229.) ac_abs_top_srcdir=$ac_top_srcdir;;
1230*)
1231  case $ac_top_srcdir in
1232  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1233  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1234  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1235  esac;;
1236esac
1237
1238    cd $ac_dir
1239    # Check for guested configure; otherwise get Cygnus style configure.
1240    if test -f $ac_srcdir/configure.gnu; then
1241      echo
1242      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1243    elif test -f $ac_srcdir/configure; then
1244      echo
1245      $SHELL $ac_srcdir/configure  --help=recursive
1246    elif test -f $ac_srcdir/configure.ac ||
1247           test -f $ac_srcdir/configure.in; then
1248      echo
1249      $ac_configure --help
1250    else
1251      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1252    fi
1253    cd $ac_popdir
1254  done
1255fi
1256
1257test -n "$ac_init_help" && exit 0
1258if $ac_init_version; then
1259  cat <<\_ACEOF
1260Clp configure trunk
1261generated by GNU Autoconf 2.59
1262
1263Copyright (C) 2003 Free Software Foundation, Inc.
1264This configure script is free software; the Free Software Foundation
1265gives unlimited permission to copy, distribute and modify it.
1266
1267
1268Copyright 2006 International Business Machines and others.
1269All Rights Reserved.
1270This file is part of the open source package Coin which is distributed
1271under the Common Public License.
1272_ACEOF
1273  exit 0
1274fi
1275exec 5>config.log
1276cat >&5 <<_ACEOF
1277This file contains any messages produced by compilers while
1278running configure, to aid debugging if configure makes a mistake.
1279
1280It was created by Clp $as_me trunk, which was
1281generated by GNU Autoconf 2.59.  Invocation command line was
1282
1283  $ $0 $@
1284
1285_ACEOF
1286{
1287cat <<_ASUNAME
1288## --------- ##
1289## Platform. ##
1290## --------- ##
1291
1292hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1293uname -m = `(uname -m) 2>/dev/null || echo unknown`
1294uname -r = `(uname -r) 2>/dev/null || echo unknown`
1295uname -s = `(uname -s) 2>/dev/null || echo unknown`
1296uname -v = `(uname -v) 2>/dev/null || echo unknown`
1297
1298/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1299/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1300
1301/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1302/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1303/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1304hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1305/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1306/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1307/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1308
1309_ASUNAME
1310
1311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1312for as_dir in $PATH
1313do
1314  IFS=$as_save_IFS
1315  test -z "$as_dir" && as_dir=.
1316  echo "PATH: $as_dir"
1317done
1318
1319} >&5
1320
1321cat >&5 <<_ACEOF
1322
1323
1324## ----------- ##
1325## Core tests. ##
1326## ----------- ##
1327
1328_ACEOF
1329
1330
1331# Keep a trace of the command line.
1332# Strip out --no-create and --no-recursion so they do not pile up.
1333# Strip out --silent because we don't want to record it for future runs.
1334# Also quote any args containing shell meta-characters.
1335# Make two passes to allow for proper duplicate-argument suppression.
1336ac_configure_args=
1337ac_configure_args0=
1338ac_configure_args1=
1339ac_sep=
1340ac_must_keep_next=false
1341for ac_pass in 1 2
1342do
1343  for ac_arg
1344  do
1345    case $ac_arg in
1346    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1347    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1348    | -silent | --silent | --silen | --sile | --sil)
1349      continue ;;
1350    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1351      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1352    esac
1353    case $ac_pass in
1354    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1355    2)
1356      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1357      if test $ac_must_keep_next = true; then
1358        ac_must_keep_next=false # Got value, back to normal.
1359      else
1360        case $ac_arg in
1361          *=* | --config-cache | -C | -disable-* | --disable-* \
1362          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1363          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1364          | -with-* | --with-* | -without-* | --without-* | --x)
1365            case "$ac_configure_args0 " in
1366              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1367            esac
1368            ;;
1369          -* ) ac_must_keep_next=true ;;
1370        esac
1371      fi
1372      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1373      # Get rid of the leading space.
1374      ac_sep=" "
1375      ;;
1376    esac
1377  done
1378done
1379$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1380$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1381
1382# When interrupted or exit'd, cleanup temporary files, and complete
1383# config.log.  We remove comments because anyway the quotes in there
1384# would cause problems or look ugly.
1385# WARNING: Be sure not to use single quotes in there, as some shells,
1386# such as our DU 5.0 friend, will then `close' the trap.
1387trap 'exit_status=$?
1388  # Save into config.log some information that might help in debugging.
1389  {
1390    echo
1391
1392    cat <<\_ASBOX
1393## ---------------- ##
1394## Cache variables. ##
1395## ---------------- ##
1396_ASBOX
1397    echo
1398    # The following way of writing the cache mishandles newlines in values,
1399{
1400  (set) 2>&1 |
1401    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1402    *ac_space=\ *)
1403      sed -n \
1404        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1405          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1406      ;;
1407    *)
1408      sed -n \
1409        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1410      ;;
1411    esac;
1412}
1413    echo
1414
1415    cat <<\_ASBOX
1416## ----------------- ##
1417## Output variables. ##
1418## ----------------- ##
1419_ASBOX
1420    echo
1421    for ac_var in $ac_subst_vars
1422    do
1423      eval ac_val=$`echo $ac_var`
1424      echo "$ac_var='"'"'$ac_val'"'"'"
1425    done | sort
1426    echo
1427
1428    if test -n "$ac_subst_files"; then
1429      cat <<\_ASBOX
1430## ------------- ##
1431## Output files. ##
1432## ------------- ##
1433_ASBOX
1434      echo
1435      for ac_var in $ac_subst_files
1436      do
1437        eval ac_val=$`echo $ac_var`
1438        echo "$ac_var='"'"'$ac_val'"'"'"
1439      done | sort
1440      echo
1441    fi
1442
1443    if test -s confdefs.h; then
1444      cat <<\_ASBOX
1445## ----------- ##
1446## confdefs.h. ##
1447## ----------- ##
1448_ASBOX
1449      echo
1450      sed "/^$/d" confdefs.h | sort
1451      echo
1452    fi
1453    test "$ac_signal" != 0 &&
1454      echo "$as_me: caught signal $ac_signal"
1455    echo "$as_me: exit $exit_status"
1456  } >&5
1457  rm -f core *.core &&
1458  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1459    exit $exit_status
1460     ' 0
1461for ac_signal in 1 2 13 15; do
1462  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1463done
1464ac_signal=0
1465
1466# confdefs.h avoids OS command line length limits that DEFS can exceed.
1467rm -rf conftest* confdefs.h
1468# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1469echo >confdefs.h
1470
1471# Predefined preprocessor variables.
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_NAME "$PACKAGE_NAME"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1480_ACEOF
1481
1482
1483cat >>confdefs.h <<_ACEOF
1484#define PACKAGE_VERSION "$PACKAGE_VERSION"
1485_ACEOF
1486
1487
1488cat >>confdefs.h <<_ACEOF
1489#define PACKAGE_STRING "$PACKAGE_STRING"
1490_ACEOF
1491
1492
1493cat >>confdefs.h <<_ACEOF
1494#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1495_ACEOF
1496
1497
1498# Let the site file select an alternate cache file if it wants to.
1499# Prefer explicitly selected file to automatically selected ones.
1500if test -z "$CONFIG_SITE"; then
1501  if test "x$prefix" != xNONE; then
1502    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1503  else
1504    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1505  fi
1506fi
1507for ac_site_file in $CONFIG_SITE; do
1508  if test -r "$ac_site_file"; then
1509    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1510echo "$as_me: loading site script $ac_site_file" >&6;}
1511    sed 's/^/| /' "$ac_site_file" >&5
1512    . "$ac_site_file"
1513  fi
1514done
1515
1516if test -r "$cache_file"; then
1517  # Some versions of bash will fail to source /dev/null (special
1518  # files actually), so we avoid doing that.
1519  if test -f "$cache_file"; then
1520    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1521echo "$as_me: loading cache $cache_file" >&6;}
1522    case $cache_file in
1523      [\\/]* | ?:[\\/]* ) . $cache_file;;
1524      *)                      . ./$cache_file;;
1525    esac
1526  fi
1527else
1528  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1529echo "$as_me: creating cache $cache_file" >&6;}
1530  >$cache_file
1531fi
1532
1533# Check that the precious variables saved in the cache have kept the same
1534# value.
1535ac_cache_corrupted=false
1536for ac_var in `(set) 2>&1 |
1537               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1538  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1539  eval ac_new_set=\$ac_env_${ac_var}_set
1540  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1541  eval ac_new_val="\$ac_env_${ac_var}_value"
1542  case $ac_old_set,$ac_new_set in
1543    set,)
1544      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1545echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1546      ac_cache_corrupted=: ;;
1547    ,set)
1548      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1549echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1550      ac_cache_corrupted=: ;;
1551    ,);;
1552    *)
1553      if test "x$ac_old_val" != "x$ac_new_val"; then
1554        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1555echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1556        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1557echo "$as_me:   former value:  $ac_old_val" >&2;}
1558        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1559echo "$as_me:   current value: $ac_new_val" >&2;}
1560        ac_cache_corrupted=:
1561      fi;;
1562  esac
1563  # Pass precious variables to config.status.
1564  if test "$ac_new_set" = set; then
1565    case $ac_new_val in
1566    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1567      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1568    *) ac_arg=$ac_var=$ac_new_val ;;
1569    esac
1570    case " $ac_configure_args " in
1571      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1572      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1573    esac
1574  fi
1575done
1576if $ac_cache_corrupted; then
1577  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1578echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1579  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1580echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1581   { (exit 1); exit 1; }; }
1582fi
1583
1584ac_ext=c
1585ac_cpp='$CPP $CPPFLAGS'
1586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589
1590
1591
1592
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# List one file in the package so that the configure script can test
1620# whether the package is actually there
1621
1622
1623# Where should everything be installed by default?  Here, we want it
1624# to be installed directly in 'bin', 'lib', 'include' subdirectories
1625# of the directory where configure is run.  The default would be
1626# /usr/local.
1627
1628
1629#############################################################################
1630#                         Standard build tool stuff                         #
1631#############################################################################
1632
1633# Get the system type
1634ac_aux_dir=
1635for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1636  if test -f $ac_dir/install-sh; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/install-sh -c"
1639    break
1640  elif 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/shtool; then
1645    ac_aux_dir=$ac_dir
1646    ac_install_sh="$ac_aux_dir/shtool install -c"
1647    break
1648  fi
1649done
1650if test -z "$ac_aux_dir"; then
1651  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1652echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1653   { (exit 1); exit 1; }; }
1654fi
1655ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1656ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1657ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1658
1659# Make sure we can run config.sub.
1660$ac_config_sub sun4 >/dev/null 2>&1 ||
1661  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1662echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1663   { (exit 1); exit 1; }; }
1664
1665echo "$as_me:$LINENO: checking build system type" >&5
1666echo $ECHO_N "checking build system type... $ECHO_C" >&6
1667if test "${ac_cv_build+set}" = set; then
1668  echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670  ac_cv_build_alias=$build_alias
1671test -z "$ac_cv_build_alias" &&
1672  ac_cv_build_alias=`$ac_config_guess`
1673test -z "$ac_cv_build_alias" &&
1674  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1675echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1676   { (exit 1); exit 1; }; }
1677ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1678  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1679echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1680   { (exit 1); exit 1; }; }
1681
1682fi
1683echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1684echo "${ECHO_T}$ac_cv_build" >&6
1685build=$ac_cv_build
1686build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691
1692# If this project depends on external projects, the Externals file in
1693# the source root directory contains definition of where to find those
1694# externals.  The following macro ensures that those externals are
1695# retrieved by svn if they are not there yet.
1696# Initialize the ADDLIBS variable
1697ADDLIBS="-lm $LIBS"
1698
1699
1700# As backup, we make sure we don't loose an FLIBS if it has been set
1701# by the user
1702save_FLIBS="$FLIBS"
1703
1704# Initialize the FADDLIBS variable (which is to be used with a fortran
1705# compiler and will not include FLIBS)
1706FADDLIBS="$LIBS"
1707
1708
1709# A useful makefile conditional that is always false
1710
1711
1712if false; then
1713  ALWAYS_FALSE_TRUE=
1714  ALWAYS_FALSE_FALSE='#'
1715else
1716  ALWAYS_FALSE_TRUE='#'
1717  ALWAYS_FALSE_FALSE=
1718fi
1719
1720
1721# We set the following variable so that we know later in AC_COIN_FINALIZE
1722# that we are in a project main directory
1723coin_projectdir=yes
1724
1725# Check if a library version is set for libtool
1726
1727
1728
1729# Check if user wants to produce debugging code
1730
1731echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1732echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1733
1734# Check whether --enable-debug or --disable-debug was given.
1735if test "${enable_debug+set}" = set; then
1736  enableval="$enable_debug"
1737  case "${enableval}" in
1738   yes) coin_debug_compile=true
1739        if test "${enable_shared+set}" = set; then :; else
1740          enable_shared=no
1741        fi
1742        ;;
1743   no)  coin_debug_compile=false
1744        ;;
1745   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1746echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1747   { (exit 1); exit 1; }; }
1748        ;;
1749esac
1750else
1751  coin_debug_compile=false
1752fi;
1753
1754# Check whether --enable-debug-clp or --disable-debug-clp was given.
1755if test "${enable_debug_clp+set}" = set; then
1756  enableval="$enable_debug_clp"
1757  case "${enableval}" in
1758    yes) coin_debug_compile=true
1759         enable_shared=no
1760         ;;
1761    no)  coin_debug_compile=false
1762         ;;
1763    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1764echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1765   { (exit 1); exit 1; }; }
1766         ;;
1767 esac
1768else
1769  :
1770fi;
1771
1772 # m4_ifvaln([Clp],
1773
1774if test $coin_debug_compile = true; then
1775  echo "$as_me:$LINENO: result: yes" >&5
1776echo "${ECHO_T}yes" >&6
1777else
1778  echo "$as_me:$LINENO: result: no" >&5
1779echo "${ECHO_T}no" >&6
1780fi
1781
1782
1783# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1784if test "${with_clp_verbosity+set}" = set; then
1785  withval="$with_clp_verbosity"
1786  if test "$withval" = yes; then
1787                withval=1
1788              fi
1789              coin_clp_verbosity=$withval
1790else
1791  coin_clp_verbosity=0
1792fi;
1793
1794cat >>confdefs.h <<_ACEOF
1795#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1796_ACEOF
1797
1798
1799
1800# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1801if test "${with_clp_checklevel+set}" = set; then
1802  withval="$with_clp_checklevel"
1803  if test "$withval" = yes; then
1804                withval=1
1805              fi
1806              coin_clp_checklevel=$withval
1807else
1808  coin_clp_checklevel=0
1809fi;
1810
1811cat >>confdefs.h <<_ACEOF
1812#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1813_ACEOF
1814
1815
1816# We use the following variable to have a string with the upper case
1817# version of the project name
1818COIN_PRJCT=CLP
1819
1820
1821 # m4_ifvaln([Clp],
1822
1823
1824
1825# Get the name of the C++ compiler and appropriate compiler options
1826case $build in
1827  *-mingw*)
1828    if test "${LD+set}" = set; then :; else
1829      LD=link
1830    fi
1831    ;;
1832 esac
1833 case $enable_doscompile in
1834   msvc)
1835     if test "x${LD+set}" = xset; then :; else
1836       LD=link
1837     fi
1838     ;;
1839 esac
1840
1841
1842 # Check whether --enable-doscompile or --disable-doscompile was given.
1843if test "${enable_doscompile+set}" = set; then
1844  enableval="$enable_doscompile"
1845  if test "$enable_doscompile" != no; then
1846     case $build in
1847       *-cygwin* | *-mingw*) ;;
1848       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1849echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1850   { (exit 1); exit 1; }; } ;;
1851     esac
1852   fi
1853else
1854  enable_doscompile=no
1855fi;
1856 case "$enable_doscompile" in
1857   mingw)
1858     case $build in
1859       *-mingw*) enable_doscompile=no ;;
1860     esac
1861     ;;
1862   msvc|no) ;;
1863   yes) enable_doscompile=mingw ;;
1864   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1865                    Try configure --help=recursive." >&5
1866echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1867                    Try configure --help=recursive." >&2;}
1868   { (exit 1); exit 1; }; }
1869      ;;
1870  esac
1871  if test "$enable_doscompile" != no ; then
1872    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1873echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1874  fi
1875
1876
1877
1878
1879ac_ext=c
1880ac_cpp='$CPP $CPPFLAGS'
1881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1883ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884
1885
1886# For consistency, we set the C compiler to the same value of the C++
1887# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1888if test x"$CXX" != x; then
1889  case "$CXX" in
1890    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1891      if test x"$CC" = x; then
1892        CC="$CXX"
1893        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1894echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1895      fi
1896      ;;
1897  esac
1898fi
1899
1900
1901
1902
1903
1904
1905coin_has_cc=yes
1906
1907save_cflags="$CFLAGS"
1908
1909# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1910# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1911# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1912# compiler. In this case, put cc after gcc.
1913
1914case $build in
1915  *-cygwin* | *-mingw*)
1916             if test "$enable_doscompile" = msvc ; then
1917               comps="icl cl"
1918             else
1919               comps="gcc cl"
1920             fi ;;
1921  *-*-solaris*)
1922             # Extract the first word of "cc", so it can be a program name with args.
1923set dummy cc; ac_word=$2
1924echo "$as_me:$LINENO: checking for $ac_word" >&5
1925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1927  echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
1929  if test -n "$sol_cc_compiler"; then
1930  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1931else
1932  ac_prog_rejected=no
1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934for as_dir in $PATH
1935do
1936  IFS=$as_save_IFS
1937  test -z "$as_dir" && as_dir=.
1938  for ac_exec_ext in '' $ac_executable_extensions; do
1939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1940    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1941       ac_prog_rejected=yes
1942       continue
1943     fi
1944    ac_cv_prog_sol_cc_compiler="cc"
1945    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946    break 2
1947  fi
1948done
1949done
1950
1951if test $ac_prog_rejected = yes; then
1952  # We found a bogon in the path, so make sure we never use it.
1953  set dummy $ac_cv_prog_sol_cc_compiler
1954  shift
1955  if test $# != 0; then
1956    # We chose a different compiler from the bogus one.
1957    # However, it has the same basename, so the bogon will be chosen
1958    # first if we set sol_cc_compiler to just the basename; use the full file name.
1959    shift
1960    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1961  fi
1962fi
1963fi
1964fi
1965sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1966if test -n "$sol_cc_compiler"; then
1967  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1968echo "${ECHO_T}$sol_cc_compiler" >&6
1969else
1970  echo "$as_me:$LINENO: result: no" >&5
1971echo "${ECHO_T}no" >&6
1972fi
1973
1974             if test "$sol_cc_compiler" = "cc" ; then
1975               comps="cc xlc gcc pgcc icc"
1976             else
1977               comps="xlc gcc pgcc icc cc"
1978             fi
1979             ;;
1980  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1981  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1982esac
1983
1984# We delete the cached value, since the test might not have been
1985# performed with our choice of compilers earlier
1986$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1987# AC_MSG_NOTICE([C compiler candidates: $comps])
1988ac_ext=c
1989ac_cpp='$CPP $CPPFLAGS'
1990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1992ac_compiler_gnu=$ac_cv_c_compiler_gnu
1993if test -n "$ac_tool_prefix"; then
1994  for ac_prog in $comps
1995  do
1996    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1997set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1998echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000if test "${ac_cv_prog_CC+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  if test -n "$CC"; then
2004  ac_cv_prog_CC="$CC" # Let the user override the test.
2005else
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009  IFS=$as_save_IFS
2010  test -z "$as_dir" && as_dir=.
2011  for ac_exec_ext in '' $ac_executable_extensions; do
2012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015    break 2
2016  fi
2017done
2018done
2019
2020fi
2021fi
2022CC=$ac_cv_prog_CC
2023if test -n "$CC"; then
2024  echo "$as_me:$LINENO: result: $CC" >&5
2025echo "${ECHO_T}$CC" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031    test -n "$CC" && break
2032  done
2033fi
2034if test -z "$CC"; then
2035  ac_ct_CC=$CC
2036  for ac_prog in $comps
2037do
2038  # Extract the first word of "$ac_prog", so it can be a program name with args.
2039set dummy $ac_prog; ac_word=$2
2040echo "$as_me:$LINENO: checking for $ac_word" >&5
2041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043  echo $ECHO_N "(cached) $ECHO_C" >&6
2044else
2045  if test -n "$ac_ct_CC"; then
2046  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2047else
2048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049for as_dir in $PATH
2050do
2051  IFS=$as_save_IFS
2052  test -z "$as_dir" && as_dir=.
2053  for ac_exec_ext in '' $ac_executable_extensions; do
2054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055    ac_cv_prog_ac_ct_CC="$ac_prog"
2056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057    break 2
2058  fi
2059done
2060done
2061
2062fi
2063fi
2064ac_ct_CC=$ac_cv_prog_ac_ct_CC
2065if test -n "$ac_ct_CC"; then
2066  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2067echo "${ECHO_T}$ac_ct_CC" >&6
2068else
2069  echo "$as_me:$LINENO: result: no" >&5
2070echo "${ECHO_T}no" >&6
2071fi
2072
2073  test -n "$ac_ct_CC" && break
2074done
2075
2076  CC=$ac_ct_CC
2077fi
2078
2079
2080test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2081See \`config.log' for more details." >&5
2082echo "$as_me: error: no acceptable C compiler found in \$PATH
2083See \`config.log' for more details." >&2;}
2084   { (exit 1); exit 1; }; }
2085
2086# Provide some information about the compiler.
2087echo "$as_me:$LINENO:" \
2088     "checking for C compiler version" >&5
2089ac_compiler=`set X $ac_compile; echo $2`
2090{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2091  (eval $ac_compiler --version </dev/null >&5) 2>&5
2092  ac_status=$?
2093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094  (exit $ac_status); }
2095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2096  (eval $ac_compiler -v </dev/null >&5) 2>&5
2097  ac_status=$?
2098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099  (exit $ac_status); }
2100{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2101  (eval $ac_compiler -V </dev/null >&5) 2>&5
2102  ac_status=$?
2103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104  (exit $ac_status); }
2105
2106cat >conftest.$ac_ext <<_ACEOF
2107/* confdefs.h.  */
2108_ACEOF
2109cat confdefs.h >>conftest.$ac_ext
2110cat >>conftest.$ac_ext <<_ACEOF
2111/* end confdefs.h.  */
2112
2113int
2114main ()
2115{
2116
2117  ;
2118  return 0;
2119}
2120_ACEOF
2121ac_clean_files_save=$ac_clean_files
2122ac_clean_files="$ac_clean_files a.out a.exe b.out"
2123# Try to create an executable without -o first, disregard a.out.
2124# It will help us diagnose broken compilers, and finding out an intuition
2125# of exeext.
2126echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2127echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2128ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2129if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2130  (eval $ac_link_default) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }; then
2134  # Find the output, starting from the most likely.  This scheme is
2135# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2136# resort.
2137
2138# Be careful to initialize this variable, since it used to be cached.
2139# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2140ac_cv_exeext=
2141# b.out is created by i960 compilers.
2142for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2143do
2144  test -f "$ac_file" || continue
2145  case $ac_file in
2146    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2147        ;;
2148    conftest.$ac_ext )
2149        # This is the source file.
2150        ;;
2151    [ab].out )
2152        # We found the default executable, but exeext='' is most
2153        # certainly right.
2154        break;;
2155    *.* )
2156        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2157        # FIXME: I believe we export ac_cv_exeext for Libtool,
2158        # but it would be cool to find out if it's true.  Does anybody
2159        # maintain Libtool? --akim.
2160        export ac_cv_exeext
2161        break;;
2162    * )
2163        break;;
2164  esac
2165done
2166else
2167  echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
2169
2170{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2171See \`config.log' for more details." >&5
2172echo "$as_me: error: C compiler cannot create executables
2173See \`config.log' for more details." >&2;}
2174   { (exit 77); exit 77; }; }
2175fi
2176
2177ac_exeext=$ac_cv_exeext
2178echo "$as_me:$LINENO: result: $ac_file" >&5
2179echo "${ECHO_T}$ac_file" >&6
2180
2181# Check the compiler produces executables we can run.  If not, either
2182# the compiler is broken, or we cross compile.
2183echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2184echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2185# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2186# If not cross compiling, check that we can run a simple program.
2187if test "$cross_compiling" != yes; then
2188  if { ac_try='./$ac_file'
2189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190  (eval $ac_try) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); }; }; then
2194    cross_compiling=no
2195  else
2196    if test "$cross_compiling" = maybe; then
2197        cross_compiling=yes
2198    else
2199        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2200If you meant to cross compile, use \`--host'.
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: cannot run C compiled programs.
2203If you meant to cross compile, use \`--host'.
2204See \`config.log' for more details." >&2;}
2205   { (exit 1); exit 1; }; }
2206    fi
2207  fi
2208fi
2209echo "$as_me:$LINENO: result: yes" >&5
2210echo "${ECHO_T}yes" >&6
2211
2212rm -f a.out a.exe conftest$ac_cv_exeext b.out
2213ac_clean_files=$ac_clean_files_save
2214# Check the compiler produces executables we can run.  If not, either
2215# the compiler is broken, or we cross compile.
2216echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2217echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2218echo "$as_me:$LINENO: result: $cross_compiling" >&5
2219echo "${ECHO_T}$cross_compiling" >&6
2220
2221echo "$as_me:$LINENO: checking for suffix of executables" >&5
2222echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2224  (eval $ac_link) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }; then
2228  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2229# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2230# work properly (i.e., refer to `conftest.exe'), while it won't with
2231# `rm'.
2232for ac_file in conftest.exe conftest conftest.*; do
2233  test -f "$ac_file" || continue
2234  case $ac_file in
2235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2236    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2237          export ac_cv_exeext
2238          break;;
2239    * ) break;;
2240  esac
2241done
2242else
2243  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2244See \`config.log' for more details." >&5
2245echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2246See \`config.log' for more details." >&2;}
2247   { (exit 1); exit 1; }; }
2248fi
2249
2250rm -f conftest$ac_cv_exeext
2251echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2252echo "${ECHO_T}$ac_cv_exeext" >&6
2253
2254rm -f conftest.$ac_ext
2255EXEEXT=$ac_cv_exeext
2256ac_exeext=$EXEEXT
2257echo "$as_me:$LINENO: checking for suffix of object files" >&5
2258echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2259if test "${ac_cv_objext+set}" = set; then
2260  echo $ECHO_N "(cached) $ECHO_C" >&6
2261else
2262  cat >conftest.$ac_ext <<_ACEOF
2263/* confdefs.h.  */
2264_ACEOF
2265cat confdefs.h >>conftest.$ac_ext
2266cat >>conftest.$ac_ext <<_ACEOF
2267/* end confdefs.h.  */
2268
2269int
2270main ()
2271{
2272
2273  ;
2274  return 0;
2275}
2276_ACEOF
2277rm -f conftest.o conftest.obj
2278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2279  (eval $ac_compile) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); }; then
2283  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2284  case $ac_file in
2285    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2286    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2287       break;;
2288  esac
2289done
2290else
2291  echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2295See \`config.log' for more details." >&5
2296echo "$as_me: error: cannot compute suffix of object files: cannot compile
2297See \`config.log' for more details." >&2;}
2298   { (exit 1); exit 1; }; }
2299fi
2300
2301rm -f conftest.$ac_cv_objext conftest.$ac_ext
2302fi
2303echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2304echo "${ECHO_T}$ac_cv_objext" >&6
2305OBJEXT=$ac_cv_objext
2306ac_objext=$OBJEXT
2307echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2308echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2309if test "${ac_cv_c_compiler_gnu+set}" = set; then
2310  echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312  cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h.  */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h.  */
2318
2319int
2320main ()
2321{
2322#ifndef __GNUC__
2323       choke me
2324#endif
2325
2326  ;
2327  return 0;
2328}
2329_ACEOF
2330rm -f conftest.$ac_objext
2331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332  (eval $ac_compile) 2>conftest.er1
2333  ac_status=$?
2334  grep -v '^ *+' conftest.er1 >conftest.err
2335  rm -f conftest.er1
2336  cat conftest.err >&5
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); } &&
2339         { ac_try='test -z "$ac_c_werror_flag"
2340                         || test ! -s conftest.err'
2341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342  (eval $ac_try) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; } &&
2346         { ac_try='test -s conftest.$ac_objext'
2347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348  (eval $ac_try) 2>&5
2349  ac_status=$?
2350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351  (exit $ac_status); }; }; then
2352  ac_compiler_gnu=yes
2353else
2354  echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357ac_compiler_gnu=no
2358fi
2359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2360ac_cv_c_compiler_gnu=$ac_compiler_gnu
2361
2362fi
2363echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2364echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2365GCC=`test $ac_compiler_gnu = yes && echo yes`
2366ac_test_CFLAGS=${CFLAGS+set}
2367ac_save_CFLAGS=$CFLAGS
2368CFLAGS="-g"
2369echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2370echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2371if test "${ac_cv_prog_cc_g+set}" = set; then
2372  echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374  cat >conftest.$ac_ext <<_ACEOF
2375/* confdefs.h.  */
2376_ACEOF
2377cat confdefs.h >>conftest.$ac_ext
2378cat >>conftest.$ac_ext <<_ACEOF
2379/* end confdefs.h.  */
2380
2381int
2382main ()
2383{
2384
2385  ;
2386  return 0;
2387}
2388_ACEOF
2389rm -f conftest.$ac_objext
2390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391  (eval $ac_compile) 2>conftest.er1
2392  ac_status=$?
2393  grep -v '^ *+' conftest.er1 >conftest.err
2394  rm -f conftest.er1
2395  cat conftest.err >&5
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); } &&
2398         { ac_try='test -z "$ac_c_werror_flag"
2399                         || test ! -s conftest.err'
2400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401  (eval $ac_try) 2>&5
2402  ac_status=$?
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); }; } &&
2405         { ac_try='test -s conftest.$ac_objext'
2406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407  (eval $ac_try) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; }; then
2411  ac_cv_prog_cc_g=yes
2412else
2413  echo "$as_me: failed program was:" >&5
2414sed 's/^/| /' conftest.$ac_ext >&5
2415
2416ac_cv_prog_cc_g=no
2417fi
2418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419fi
2420echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2421echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2422if test "$ac_test_CFLAGS" = set; then
2423  CFLAGS=$ac_save_CFLAGS
2424elif test $ac_cv_prog_cc_g = yes; then
2425  if test "$GCC" = yes; then
2426    CFLAGS="-g -O2"
2427  else
2428    CFLAGS="-g"
2429  fi
2430else
2431  if test "$GCC" = yes; then
2432    CFLAGS="-O2"
2433  else
2434    CFLAGS=
2435  fi
2436fi
2437echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2438echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2439if test "${ac_cv_prog_cc_stdc+set}" = set; then
2440  echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442  ac_cv_prog_cc_stdc=no
2443ac_save_CC=$CC
2444cat >conftest.$ac_ext <<_ACEOF
2445/* confdefs.h.  */
2446_ACEOF
2447cat confdefs.h >>conftest.$ac_ext
2448cat >>conftest.$ac_ext <<_ACEOF
2449/* end confdefs.h.  */
2450#include <stdarg.h>
2451#include <stdio.h>
2452#include <sys/types.h>
2453#include <sys/stat.h>
2454/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2455struct buf { int x; };
2456FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457static char *e (p, i)
2458     char **p;
2459     int i;
2460{
2461  return p[i];
2462}
2463static char *f (char * (*g) (char **, int), char **p, ...)
2464{
2465  char *s;
2466  va_list v;
2467  va_start (v,p);
2468  s = g (p, va_arg (v,int));
2469  va_end (v);
2470  return s;
2471}
2472
2473/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2474   function prototypes and stuff, but not '\xHH' hex character constants.
2475   These don't provoke an error unfortunately, instead are silently treated
2476   as 'x'.  The following induces an error, until -std1 is added to get
2477   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2478   array size at least.  It's necessary to write '\x00'==0 to get something
2479   that's true only with -std1.  */
2480int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2481
2482int test (int i, double x);
2483struct s1 {int (*f) (int a);};
2484struct s2 {int (*f) (double a);};
2485int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2486int argc;
2487char **argv;
2488int
2489main ()
2490{
2491return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2492  ;
2493  return 0;
2494}
2495_ACEOF
2496# Don't try gcc -ansi; that turns off useful extensions and
2497# breaks some systems' header files.
2498# AIX                   -qlanglvl=ansi
2499# Ultrix and OSF/1      -std1
2500# HP-UX 10.20 and later -Ae
2501# HP-UX older versions  -Aa -D_HPUX_SOURCE
2502# SVR4                  -Xc -D__EXTENSIONS__
2503for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2504do
2505  CC="$ac_save_CC $ac_arg"
2506  rm -f conftest.$ac_objext
2507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508  (eval $ac_compile) 2>conftest.er1
2509  ac_status=$?
2510  grep -v '^ *+' conftest.er1 >conftest.err
2511  rm -f conftest.er1
2512  cat conftest.err >&5
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); } &&
2515         { ac_try='test -z "$ac_c_werror_flag"
2516                         || test ! -s conftest.err'
2517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518  (eval $ac_try) 2>&5
2519  ac_status=$?
2520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); }; } &&
2522         { ac_try='test -s conftest.$ac_objext'
2523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524  (eval $ac_try) 2>&5
2525  ac_status=$?
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); }; }; then
2528  ac_cv_prog_cc_stdc=$ac_arg
2529break
2530else
2531  echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534fi
2535rm -f conftest.err conftest.$ac_objext
2536done
2537rm -f conftest.$ac_ext conftest.$ac_objext
2538CC=$ac_save_CC
2539
2540fi
2541
2542case "x$ac_cv_prog_cc_stdc" in
2543  x|xno)
2544    echo "$as_me:$LINENO: result: none needed" >&5
2545echo "${ECHO_T}none needed" >&6 ;;
2546  *)
2547    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2548echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2549    CC="$CC $ac_cv_prog_cc_stdc" ;;
2550esac
2551
2552# Some people use a C++ compiler to compile C.  Since we use `exit',
2553# in C++ we need to declare it.  In case someone uses the same compiler
2554# for both compiling C and C++ we need to have the C++ compiler decide
2555# the declaration of exit, since it's the most demanding environment.
2556cat >conftest.$ac_ext <<_ACEOF
2557#ifndef __cplusplus
2558  choke me
2559#endif
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563  (eval $ac_compile) 2>conftest.er1
2564  ac_status=$?
2565  grep -v '^ *+' conftest.er1 >conftest.err
2566  rm -f conftest.er1
2567  cat conftest.err >&5
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); } &&
2570         { ac_try='test -z "$ac_c_werror_flag"
2571                         || test ! -s conftest.err'
2572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573  (eval $ac_try) 2>&5
2574  ac_status=$?
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); }; } &&
2577         { ac_try='test -s conftest.$ac_objext'
2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579  (eval $ac_try) 2>&5
2580  ac_status=$?
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); }; }; then
2583  for ac_declaration in \
2584   '' \
2585   'extern "C" void std::exit (int) throw (); using std::exit;' \
2586   'extern "C" void std::exit (int); using std::exit;' \
2587   'extern "C" void exit (int) throw ();' \
2588   'extern "C" void exit (int);' \
2589   'void exit (int);'
2590do
2591  cat >conftest.$ac_ext <<_ACEOF
2592/* confdefs.h.  */
2593_ACEOF
2594cat confdefs.h >>conftest.$ac_ext
2595cat >>conftest.$ac_ext <<_ACEOF
2596/* end confdefs.h.  */
2597$ac_declaration
2598#include <stdlib.h>
2599int
2600main ()
2601{
2602exit (42);
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext
2608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609  (eval $ac_compile) 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616         { ac_try='test -z "$ac_c_werror_flag"
2617                         || test ! -s conftest.err'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; } &&
2623         { ac_try='test -s conftest.$ac_objext'
2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625  (eval $ac_try) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; }; then
2629  :
2630else
2631  echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634continue
2635fi
2636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637  cat >conftest.$ac_ext <<_ACEOF
2638/* confdefs.h.  */
2639_ACEOF
2640cat confdefs.h >>conftest.$ac_ext
2641cat >>conftest.$ac_ext <<_ACEOF
2642/* end confdefs.h.  */
2643$ac_declaration
2644int
2645main ()
2646{
2647exit (42);
2648  ;
2649  return 0;
2650}
2651_ACEOF
2652rm -f conftest.$ac_objext
2653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654  (eval $ac_compile) 2>conftest.er1
2655  ac_status=$?
2656  grep -v '^ *+' conftest.er1 >conftest.err
2657  rm -f conftest.er1
2658  cat conftest.err >&5
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); } &&
2661         { ac_try='test -z "$ac_c_werror_flag"
2662                         || test ! -s conftest.err'
2663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664  (eval $ac_try) 2>&5
2665  ac_status=$?
2666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667  (exit $ac_status); }; } &&
2668         { ac_try='test -s conftest.$ac_objext'
2669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670  (eval $ac_try) 2>&5
2671  ac_status=$?
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); }; }; then
2674  break
2675else
2676  echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679fi
2680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681done
2682rm -f conftest*
2683if test -n "$ac_declaration"; then
2684  echo '#ifdef __cplusplus' >>confdefs.h
2685  echo $ac_declaration      >>confdefs.h
2686  echo '#endif'             >>confdefs.h
2687fi
2688
2689else
2690  echo "$as_me: failed program was:" >&5
2691sed 's/^/| /' conftest.$ac_ext >&5
2692
2693fi
2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695ac_ext=c
2696ac_cpp='$CPP $CPPFLAGS'
2697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700
2701if test -z "$CC" ; then
2702  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2703echo "$as_me: error: Failed to find a C compiler!" >&2;}
2704   { (exit 1); exit 1; }; }
2705fi
2706# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2707case "$CC" in
2708  cl* | */cl* | CL* | */CL* )
2709    if test "$ac_cv_prog_cc_g" = yes ; then
2710      ac_cv_prog_cc_g=no
2711      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2712echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2713    fi ;;
2714esac
2715CFLAGS="$save_cflags"
2716
2717# Check if a project specific CFLAGS variable has been set
2718if test x$COIN_PRJCT != x; then
2719  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2720  if test x$coin_tmp = xset; then
2721    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2722  fi
2723fi
2724
2725if test x"$CFLAGS" = x; then
2726
2727  coin_add_cflags=
2728  coin_opt_cflags=
2729  coin_dbg_cflags=
2730  coin_warn_cflags=
2731
2732  if test "$GCC" = "yes"; then
2733    case "$CC" in
2734      icc* | */icc*)
2735        ;;
2736      *)
2737        coin_opt_cflags="-O3 -fomit-frame-pointer"
2738        coin_add_cflags="-pipe"
2739        coin_dbg_cflags="-g"
2740        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2741        case $build in
2742          *-darwin*)
2743            ;;
2744          *)
2745            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2746            ;;
2747        esac
2748        case $enable_doscompile in
2749          mingw)
2750            CFLAGS="-mno-cygwin"
2751            cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h.  */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h.  */
2757
2758int
2759main ()
2760{
2761int i=0; i++;
2762  ;
2763  return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext conftest$ac_exeext
2767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2768  (eval $ac_link) 2>conftest.er1
2769  ac_status=$?
2770  grep -v '^ *+' conftest.er1 >conftest.err
2771  rm -f conftest.er1
2772  cat conftest.err >&5
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); } &&
2775         { ac_try='test -z "$ac_c_werror_flag"
2776                         || test ! -s conftest.err'
2777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778  (eval $ac_try) 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }; } &&
2782         { ac_try='test -s conftest$ac_exeext'
2783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784  (eval $ac_try) 2>&5
2785  ac_status=$?
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); }; }; then
2788  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2789else
2790  echo "$as_me: failed program was:" >&5
2791sed 's/^/| /' conftest.$ac_ext >&5
2792
2793fi
2794rm -f conftest.err conftest.$ac_objext \
2795      conftest$ac_exeext conftest.$ac_ext
2796            CFLAGS=
2797          ;;
2798        esac
2799    esac
2800  fi
2801  if test -z "$coin_opt_cflags"; then
2802    case $build in
2803      *-cygwin* | *-mingw*)
2804        case "$CC" in
2805          cl* | */cl* | CL* | */CL*)
2806            coin_opt_cflags='-MT -O2'
2807            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2808            coin_dbg_cflags='-MTd'
2809            ;;
2810          icl* | */icl* | ICL* | */ICL*)
2811            coin_opt_cflags='-MT -Ox'
2812            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2813            coin_dbg_cflags='-MTd -debug'
2814            ;;
2815        esac
2816        ;;
2817      *-linux-*)
2818        case "$CC" in
2819          icc* | */icc*)
2820            coin_opt_cflags="-O3 -ip -mp1"
2821            coin_add_cflags=""
2822            coin_dbg_cflags="-g"
2823            # Check if -i_dynamic is necessary (for new glibc library)
2824            CFLAGS=
2825            cat >conftest.$ac_ext <<_ACEOF
2826/* confdefs.h.  */
2827_ACEOF
2828cat confdefs.h >>conftest.$ac_ext
2829cat >>conftest.$ac_ext <<_ACEOF
2830/* end confdefs.h.  */
2831
2832int
2833main ()
2834{
2835int i=0; i++;
2836  ;
2837  return 0;
2838}
2839_ACEOF
2840rm -f conftest.$ac_objext conftest$ac_exeext
2841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2842  (eval $ac_link) 2>conftest.er1
2843  ac_status=$?
2844  grep -v '^ *+' conftest.er1 >conftest.err
2845  rm -f conftest.er1
2846  cat conftest.err >&5
2847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848  (exit $ac_status); } &&
2849         { ac_try='test -z "$ac_c_werror_flag"
2850                         || test ! -s conftest.err'
2851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852  (eval $ac_try) 2>&5
2853  ac_status=$?
2854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855  (exit $ac_status); }; } &&
2856         { ac_try='test -s conftest$ac_exeext'
2857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858  (eval $ac_try) 2>&5
2859  ac_status=$?
2860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861  (exit $ac_status); }; }; then
2862  :
2863else
2864  echo "$as_me: failed program was:" >&5
2865sed 's/^/| /' conftest.$ac_ext >&5
2866
2867coin_add_cflags="-i_dynamic $coin_add_cflags"
2868fi
2869rm -f conftest.err conftest.$ac_objext \
2870      conftest$ac_exeext conftest.$ac_ext
2871            ;;
2872          pgcc* | */pgcc*)
2873            coin_opt_cflags="-fast"
2874            coin_add_cflags="-Kieee -pc 64"
2875            coin_dbg_cflags="-g"
2876            ;;
2877        esac
2878        ;;
2879      *-ibm-*)
2880        case "$CC" in
2881          xlc* | */xlc* | mpxlc* | */mpxlc*)
2882            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2883            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2884            coin_dbg_cflags="-g"
2885          ;;
2886        esac
2887        ;;
2888      *-hp-*)
2889        coin_opt_cflags="-O"
2890        coin_add_cflags="-Ae"
2891        coin_dbg_cflags="-g"
2892        ;;
2893      *-*-solaris*)
2894        coin_opt_cflags="-xO4"
2895        coin_dbg_cflags="-g"
2896        ;;
2897      *-sgi-*)
2898        coin_opt_cflags="-O -OPT:Olimit=0"
2899        coin_dbg_cflags="-g"
2900        ;;
2901    esac
2902  fi
2903
2904  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2905    coin_dbg_cflags="-g"
2906  fi
2907
2908  if test -z "$coin_opt_cflags"; then
2909    # Try if -O option works if nothing else is set
2910    CFLAGS="-O"
2911    cat >conftest.$ac_ext <<_ACEOF
2912/* confdefs.h.  */
2913_ACEOF
2914cat confdefs.h >>conftest.$ac_ext
2915cat >>conftest.$ac_ext <<_ACEOF
2916/* end confdefs.h.  */
2917
2918int
2919main ()
2920{
2921int i=0; i++;
2922  ;
2923  return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext conftest$ac_exeext
2927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928  (eval $ac_link) 2>conftest.er1
2929  ac_status=$?
2930  grep -v '^ *+' conftest.er1 >conftest.err
2931  rm -f conftest.er1
2932  cat conftest.err >&5
2933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934  (exit $ac_status); } &&
2935         { ac_try='test -z "$ac_c_werror_flag"
2936                         || test ! -s conftest.err'
2937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938  (eval $ac_try) 2>&5
2939  ac_status=$?
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); }; } &&
2942         { ac_try='test -s conftest$ac_exeext'
2943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944  (eval $ac_try) 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; }; then
2948  coin_opt_cflags="-O"
2949else
2950  echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953fi
2954rm -f conftest.err conftest.$ac_objext \
2955      conftest$ac_exeext conftest.$ac_ext
2956  fi
2957
2958  # if PM doesn't want the warning messages, take them out
2959  if test x"$coin_skip_warn_cflags" = xyes; then
2960    coin_warn_cflags=
2961  fi
2962
2963  if test x${DBG_CFLAGS+set} != xset; then
2964    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2965  fi
2966  if test x${OPT_CFLAGS+set} != xset; then
2967    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2968  fi
2969
2970  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2971  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2972
2973  if test "$coin_debug_compile" = "true"; then
2974    CFLAGS="$DBG_CFLAGS"
2975  else
2976    CFLAGS="$OPT_CFLAGS"
2977  fi
2978else
2979  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2980  if test x${DBG_CFLAGS+set} != xset; then
2981    DBG_CFLAGS="$CFLAGS"
2982  fi
2983  if test x${OPT_CFLAGS+set} != xset; then
2984    OPT_CFLAGS="$CFLAGS"
2985  fi
2986fi
2987
2988# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2989
2990case "$CFLAGS" in
2991  *-mno-cygwin*)
2992    if test x${CPPFLAGS+set} != xset ; then
2993      CPPFLAGS="-mno-cygwin"
2994    else
2995      case "$CPPFLAGS" in
2996        *-mno-cygwin*)
2997          ;;
2998        *)
2999          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3000          ;;
3001      esac
3002    fi ;;
3003esac
3004
3005# Try if CFLAGS works
3006save_CFLAGS="$CFLAGS"
3007cat >conftest.$ac_ext <<_ACEOF
3008/* confdefs.h.  */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h.  */
3013
3014int
3015main ()
3016{
3017int i=0; i++;
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022rm -f conftest.$ac_objext conftest$ac_exeext
3023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3024  (eval $ac_link) 2>conftest.er1
3025  ac_status=$?
3026  grep -v '^ *+' conftest.er1 >conftest.err
3027  rm -f conftest.er1
3028  cat conftest.err >&5
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); } &&
3031         { ac_try='test -z "$ac_c_werror_flag"
3032                         || test ! -s conftest.err'
3033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034  (eval $ac_try) 2>&5
3035  ac_status=$?
3036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037  (exit $ac_status); }; } &&
3038         { ac_try='test -s conftest$ac_exeext'
3039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040  (eval $ac_try) 2>&5
3041  ac_status=$?
3042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043  (exit $ac_status); }; }; then
3044  :
3045else
3046  echo "$as_me: failed program was:" >&5
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
3049CFLAGS=
3050fi
3051rm -f conftest.err conftest.$ac_objext \
3052      conftest$ac_exeext conftest.$ac_ext
3053if test -z "$CFLAGS"; then
3054  { 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
3055echo "$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;}
3056  CFLAGS='-O'
3057  cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h.  */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h.  */
3063
3064int
3065main ()
3066{
3067int i=0; i++;
3068  ;
3069  return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext conftest$ac_exeext
3073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3074  (eval $ac_link) 2>conftest.er1
3075  ac_status=$?
3076  grep -v '^ *+' conftest.er1 >conftest.err
3077  rm -f conftest.er1
3078  cat conftest.err >&5
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); } &&
3081         { ac_try='test -z "$ac_c_werror_flag"
3082                         || test ! -s conftest.err'
3083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084  (eval $ac_try) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }; } &&
3088         { ac_try='test -s conftest$ac_exeext'
3089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090  (eval $ac_try) 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }; }; then
3094  :
3095else
3096  echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099CFLAGS=
3100fi
3101rm -f conftest.err conftest.$ac_objext \
3102      conftest$ac_exeext conftest.$ac_ext
3103  if test -z "$CFLAGS"; then
3104    { 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
3105echo "$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;}
3106  fi
3107fi
3108
3109{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3110echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3111
3112
3113if test x"$MPICC" = x; then :; else
3114  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3115echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3116  CC="$MPICC"
3117fi
3118
3119# Correct ADDLIBS initialization if we are using the MS compiler
3120case "$CC" in
3121  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3122    ADDLIBS=
3123    case $build in
3124  *-mingw*)
3125    if test "${LD+set}" = set; then :; else
3126      LD=link
3127    fi
3128    ;;
3129 esac
3130 case $enable_doscompile in
3131   msvc)
3132     if test "x${LD+set}" = xset; then :; else
3133       LD=link
3134     fi
3135     ;;
3136 esac
3137
3138    ;;
3139esac
3140
3141ac_ext=c
3142ac_cpp='$CPP $CPPFLAGS'
3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146
3147
3148
3149 #Let's try if that overcomes configuration problem with VC++ 6.0
3150
3151ac_ext=cc
3152ac_cpp='$CXXCPP $CPPFLAGS'
3153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3156
3157
3158
3159
3160
3161
3162
3163coin_has_cxx=yes
3164
3165save_cxxflags="$CXXFLAGS"
3166# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3167case $build in
3168  *-cygwin* | *-mingw*)
3169             if test "$enable_doscompile" = msvc ; then
3170               comps="icl cl"
3171             else
3172               comps="g++ cl"
3173             fi ;;
3174  *-*-solaris*)
3175             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3176  *-darwin*) comps="g++ c++ CC" ;;
3177          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3178esac
3179
3180# We delete the cached value, since the test might not have been
3181# performed with our choice of compilers earlier
3182$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3183# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3184ac_ext=cc
3185ac_cpp='$CXXCPP $CPPFLAGS'
3186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3189if test -n "$ac_tool_prefix"; then
3190  for ac_prog in $CCC $comps
3191  do
3192    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194echo "$as_me:$LINENO: checking for $ac_word" >&5
3195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196if test "${ac_cv_prog_CXX+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  if test -n "$CXX"; then
3200  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207  for ac_exec_ext in '' $ac_executable_extensions; do
3208  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214done
3215
3216fi
3217fi
3218CXX=$ac_cv_prog_CXX
3219if test -n "$CXX"; then
3220  echo "$as_me:$LINENO: result: $CXX" >&5
3221echo "${ECHO_T}$CXX" >&6
3222else
3223  echo "$as_me:$LINENO: result: no" >&5
3224echo "${ECHO_T}no" >&6
3225fi
3226
3227    test -n "$CXX" && break
3228  done
3229fi
3230if test -z "$CXX"; then
3231  ac_ct_CXX=$CXX
3232  for ac_prog in $CCC $comps
3233do
3234  # Extract the first word of "$ac_prog", so it can be a program name with args.
3235set dummy $ac_prog; ac_word=$2
3236echo "$as_me:$LINENO: checking for $ac_word" >&5
3237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3239  echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241  if test -n "$ac_ct_CXX"; then
3242  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3243else
3244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245for as_dir in $PATH
3246do
3247  IFS=$as_save_IFS
3248  test -z "$as_dir" && as_dir=.
3249  for ac_exec_ext in '' $ac_executable_extensions; do
3250  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251    ac_cv_prog_ac_ct_CXX="$ac_prog"
3252    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253    break 2
3254  fi
3255done
3256done
3257
3258fi
3259fi
3260ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3261if test -n "$ac_ct_CXX"; then
3262  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3263echo "${ECHO_T}$ac_ct_CXX" >&6
3264else
3265  echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267fi
3268
3269  test -n "$ac_ct_CXX" && break
3270done
3271test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3272
3273  CXX=$ac_ct_CXX
3274fi
3275
3276
3277# Provide some information about the compiler.
3278echo "$as_me:$LINENO:" \
3279     "checking for C++ compiler version" >&5
3280ac_compiler=`set X $ac_compile; echo $2`
3281{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3282  (eval $ac_compiler --version </dev/null >&5) 2>&5
3283  ac_status=$?
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }
3286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3287  (eval $ac_compiler -v </dev/null >&5) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }
3291{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3292  (eval $ac_compiler -V </dev/null >&5) 2>&5
3293  ac_status=$?
3294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295  (exit $ac_status); }
3296
3297echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3298echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3299if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3300  echo $ECHO_N "(cached) $ECHO_C" >&6
3301else
3302  cat >conftest.$ac_ext <<_ACEOF
3303/* confdefs.h.  */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h.  */
3308
3309int
3310main ()
3311{
3312#ifndef __GNUC__
3313       choke me
3314#endif
3315
3316  ;
3317  return 0;
3318}
3319_ACEOF
3320rm -f conftest.$ac_objext
3321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322  (eval $ac_compile) 2>conftest.er1
3323  ac_status=$?
3324  grep -v '^ *+' conftest.er1 >conftest.err
3325  rm -f conftest.er1
3326  cat conftest.err >&5
3327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328  (exit $ac_status); } &&
3329         { ac_try='test -z "$ac_cxx_werror_flag"
3330                         || test ! -s conftest.err'
3331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332  (eval $ac_try) 2>&5
3333  ac_status=$?
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); }; } &&
3336         { ac_try='test -s conftest.$ac_objext'
3337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338  (eval $ac_try) 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }; }; then
3342  ac_compiler_gnu=yes
3343else
3344  echo "$as_me: failed program was:" >&5
3345sed 's/^/| /' conftest.$ac_ext >&5
3346
3347ac_compiler_gnu=no
3348fi
3349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3350ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3351
3352fi
3353echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3354echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3355GXX=`test $ac_compiler_gnu = yes && echo yes`
3356ac_test_CXXFLAGS=${CXXFLAGS+set}
3357ac_save_CXXFLAGS=$CXXFLAGS
3358CXXFLAGS="-g"
3359echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3360echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3361if test "${ac_cv_prog_cxx_g+set}" = set; then
3362  echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364  cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h.  */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h.  */
3370
3371int
3372main ()
3373{
3374
3375  ;
3376  return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381  (eval $ac_compile) 2>conftest.er1
3382  ac_status=$?
3383  grep -v '^ *+' conftest.er1 >conftest.err
3384  rm -f conftest.er1
3385  cat conftest.err >&5
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); } &&
3388         { ac_try='test -z "$ac_cxx_werror_flag"
3389                         || test ! -s conftest.err'
3390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391  (eval $ac_try) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }; } &&
3395         { ac_try='test -s conftest.$ac_objext'
3396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397  (eval $ac_try) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; }; then
3401  ac_cv_prog_cxx_g=yes
3402else
3403  echo "$as_me: failed program was:" >&5
3404sed 's/^/| /' conftest.$ac_ext >&5
3405
3406ac_cv_prog_cxx_g=no
3407fi
3408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3409fi
3410echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3411echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3412if test "$ac_test_CXXFLAGS" = set; then
3413  CXXFLAGS=$ac_save_CXXFLAGS
3414elif test $ac_cv_prog_cxx_g = yes; then
3415  if test "$GXX" = yes; then
3416    CXXFLAGS="-g -O2"
3417  else
3418    CXXFLAGS="-g"
3419  fi
3420else
3421  if test "$GXX" = yes; then
3422    CXXFLAGS="-O2"
3423  else
3424    CXXFLAGS=
3425  fi
3426fi
3427for ac_declaration in \
3428   '' \
3429   'extern "C" void std::exit (int) throw (); using std::exit;' \
3430   'extern "C" void std::exit (int); using std::exit;' \
3431   'extern "C" void exit (int) throw ();' \
3432   'extern "C" void exit (int);' \
3433   'void exit (int);'
3434do
3435  cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h.  */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h.  */
3441$ac_declaration
3442#include <stdlib.h>
3443int
3444main ()
3445{
3446exit (42);
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  :
3474else
3475  echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478continue
3479fi
3480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3481  cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h.  */
3483_ACEOF
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h.  */
3487$ac_declaration
3488int
3489main ()
3490{
3491exit (42);
3492  ;
3493  return 0;
3494}
3495_ACEOF
3496rm -f conftest.$ac_objext
3497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498  (eval $ac_compile) 2>conftest.er1
3499  ac_status=$?
3500  grep -v '^ *+' conftest.er1 >conftest.err
3501  rm -f conftest.er1
3502  cat conftest.err >&5
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); } &&
3505         { ac_try='test -z "$ac_cxx_werror_flag"
3506                         || test ! -s conftest.err'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; } &&
3512         { ac_try='test -s conftest.$ac_objext'
3513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514  (eval $ac_try) 2>&5
3515  ac_status=$?
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); }; }; then
3518  break
3519else
3520  echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523fi
3524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3525done
3526rm -f conftest*
3527if test -n "$ac_declaration"; then
3528  echo '#ifdef __cplusplus' >>confdefs.h
3529  echo $ac_declaration      >>confdefs.h
3530  echo '#endif'             >>confdefs.h
3531fi
3532
3533ac_ext=cc
3534ac_cpp='$CXXCPP $CPPFLAGS'
3535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3538
3539
3540#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3541#thus, we test here whether $CXX is actually working
3542ac_ext=cc
3543ac_cpp='$CXXCPP $CPPFLAGS'
3544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3547
3548echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3549echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3550cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h.  */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h.  */
3556
3557int
3558main ()
3559{
3560int i=0;
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565rm -f conftest.$ac_objext
3566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567  (eval $ac_compile) 2>conftest.er1
3568  ac_status=$?
3569  grep -v '^ *+' conftest.er1 >conftest.err
3570  rm -f conftest.er1
3571  cat conftest.err >&5
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); } &&
3574         { ac_try='test -z "$ac_cxx_werror_flag"
3575                         || test ! -s conftest.err'
3576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577  (eval $ac_try) 2>&5
3578  ac_status=$?
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); }; } &&
3581         { ac_try='test -s conftest.$ac_objext'
3582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583  (eval $ac_try) 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; }; then
3587  echo "$as_me:$LINENO: result: yes" >&5
3588echo "${ECHO_T}yes" >&6
3589else
3590  echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593echo "$as_me:$LINENO: result: no" >&5
3594echo "${ECHO_T}no" >&6
3595   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3596echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3597   { (exit 1); exit 1; }; }
3598
3599fi
3600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3601ac_ext=cc
3602ac_cpp='$CXXCPP $CPPFLAGS'
3603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3606
3607
3608# It seems that we need to cleanup something here for the Windows
3609case "$CXX" in
3610  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3611    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3612    mv confdefs.hh confdefs.h
3613    ;;
3614esac
3615
3616# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3617case "$CXX" in
3618  cl* | */cl* | CL* | */CL* )
3619    if test "$ac_cv_prog_cxx_g" = yes ; then
3620      ac_cv_prog_cxx_g=no
3621      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3622echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3623    fi ;;
3624esac
3625CXXFLAGS="$save_cxxflags"
3626
3627# Check if a project specific CXXFLAGS variable has been set
3628if test x$COIN_PRJCT != x; then
3629  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3630  if test x$coin_tmp = xset; then
3631    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3632  fi
3633fi
3634
3635if test x"$CXXFLAGS" = x; then
3636
3637# ToDo decide whether we want -DNDEBUG for optimization
3638  coin_add_cxxflags=
3639  coin_opt_cxxflags=
3640  coin_dbg_cxxflags=
3641  coin_warn_cxxflags=
3642
3643  if test "$GXX" = "yes"; then
3644    case "$CXX" in
3645      icpc* | */icpc*)
3646        ;;
3647      *)
3648# ToDo decide about unroll-loops
3649        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3650        coin_add_cxxflags="-pipe"
3651        coin_dbg_cxxflags="-g"
3652        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3653        case $build in
3654          *-darwin*)
3655            ;;
3656          *)
3657            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3658            ;;
3659        esac
3660
3661        case $enable_doscompile in
3662          mingw)
3663            CXXFLAGS="-mno-cygwin"
3664            cat >conftest.$ac_ext <<_ACEOF
3665/* confdefs.h.  */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h.  */
3670
3671int
3672main ()
3673{
3674int i=0; i++;
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679rm -f conftest.$ac_objext conftest$ac_exeext
3680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3681  (eval $ac_link) 2>conftest.er1
3682  ac_status=$?
3683  grep -v '^ *+' conftest.er1 >conftest.err
3684  rm -f conftest.er1
3685  cat conftest.err >&5
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); } &&
3688         { ac_try='test -z "$ac_cxx_werror_flag"
3689                         || test ! -s conftest.err'
3690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691  (eval $ac_try) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }; } &&
3695         { ac_try='test -s conftest$ac_exeext'
3696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697  (eval $ac_try) 2>&5
3698  ac_status=$?
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); }; }; then
3701  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3702else
3703  echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706fi
3707rm -f conftest.err conftest.$ac_objext \
3708      conftest$ac_exeext conftest.$ac_ext
3709            CXXFLAGS=
3710          ;;
3711        esac
3712    esac
3713  fi
3714
3715# Note that we do not need to cover GCC in the following tests.
3716
3717  if test -z "$coin_opt_cxxflags"; then
3718    case $build in
3719      *-cygwin* | *-mingw*)
3720        case "$CXX" in
3721          cl* | */cl* | CL* | */CL*)
3722            # The MT and MTd options are mutually exclusive
3723            coin_opt_cxxflags='-MT -O2'
3724            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3725            coin_dbg_cxxflags='-MTd'
3726            ;;
3727          icl* | */icl* | ICL* | */ICL*)
3728            # The MT and MTd options are mutually exclusive
3729            coin_opt_cxxflags='-MT -Ox'
3730            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3731            coin_dbg_cxxflags='-MTd -debug'
3732            ;;
3733        esac
3734        ;;
3735      *-linux-*)
3736        case "$CXX" in
3737          icpc* | */icpc*)
3738            coin_opt_cxxflags="-O3 -ip -mp1"
3739            coin_add_cxxflags=""
3740            coin_dbg_cxxflags="-g"
3741            # Check if -i_dynamic is necessary (for new glibc library)
3742            CXXFLAGS=
3743            cat >conftest.$ac_ext <<_ACEOF
3744/* confdefs.h.  */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h.  */
3749
3750int
3751main ()
3752{
3753int i=0; i++;
3754  ;
3755  return 0;
3756}
3757_ACEOF
3758rm -f conftest.$ac_objext conftest$ac_exeext
3759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3760  (eval $ac_link) 2>conftest.er1
3761  ac_status=$?
3762  grep -v '^ *+' conftest.er1 >conftest.err
3763  rm -f conftest.er1
3764  cat conftest.err >&5
3765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766  (exit $ac_status); } &&
3767         { ac_try='test -z "$ac_cxx_werror_flag"
3768                         || test ! -s conftest.err'
3769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770  (eval $ac_try) 2>&5
3771  ac_status=$?
3772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773  (exit $ac_status); }; } &&
3774         { ac_try='test -s conftest$ac_exeext'
3775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776  (eval $ac_try) 2>&5
3777  ac_status=$?
3778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779  (exit $ac_status); }; }; then
3780  :
3781else
3782  echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3786fi
3787rm -f conftest.err conftest.$ac_objext \
3788      conftest$ac_exeext conftest.$ac_ext
3789            ;;
3790          pgCC* | */pgCC*)
3791            coin_opt_cxxflags="-fast"
3792            coin_add_cxxflags="-Kieee -pc 64"
3793            coin_dbg_cxxflags="-g"
3794            ;;
3795        esac
3796        ;;
3797      *-ibm-*)
3798        case "$CXX" in
3799          xlC* | */xlC* | mpxlC* | */mpxlC*)
3800            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3801            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3802            coin_dbg_cxxflags="-g"
3803            ;;
3804        esac
3805        ;;
3806      *-hp-*)
3807        case "$CXX" in
3808          aCC* | */aCC* )
3809            coin_opt_cxxflags="-O"
3810            coin_add_cxxflags="-AA"
3811            coin_dbg_cxxflags="-g"
3812            ;;
3813        esac
3814        ;;
3815      *-*-solaris*)
3816          coin_opt_cxxflags="-O4"
3817          coin_dbg_cxxflags="-g"
3818        ;;
3819    esac
3820  fi
3821
3822# Generic flag settings. If these don't work, add a case above.
3823
3824  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3825    coin_dbg_cxxflags="-g"
3826  fi
3827
3828  if test -z "$coin_opt_cxxflags"; then
3829    # Try if -O option works if nothing else is set
3830    CXXFLAGS=-O
3831    cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h.  */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h.  */
3837
3838int
3839main ()
3840{
3841int i=0; i++;
3842  ;
3843  return 0;
3844}
3845_ACEOF
3846rm -f conftest.$ac_objext conftest$ac_exeext
3847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848  (eval $ac_link) 2>conftest.er1
3849  ac_status=$?
3850  grep -v '^ *+' conftest.er1 >conftest.err
3851  rm -f conftest.er1
3852  cat conftest.err >&5
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); } &&
3855         { ac_try='test -z "$ac_cxx_werror_flag"
3856                         || test ! -s conftest.err'
3857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858  (eval $ac_try) 2>&5
3859  ac_status=$?
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }; } &&
3862         { ac_try='test -s conftest$ac_exeext'
3863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864  (eval $ac_try) 2>&5
3865  ac_status=$?
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); }; }; then
3868  coin_opt_cxxflags="-O"
3869else
3870  echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873fi
3874rm -f conftest.err conftest.$ac_objext \
3875      conftest$ac_exeext conftest.$ac_ext
3876  fi
3877
3878  # if PM doesn't want the warning messages, take them out
3879  if test x"$coin_skip_warn_cxxflags" = xyes; then
3880    coin_warn_cxxflags=
3881  fi
3882
3883# Do final setup of flags based on values determined above.
3884
3885  if test x${DBG_CXXFLAGS+set} != xset; then
3886    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3887  fi
3888  if test x${OPT_CXXFLAGS+set} != xset; then
3889    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3890  fi
3891
3892  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3893  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3894
3895  if test "$coin_debug_compile" = "true"; then
3896    CXXFLAGS="$DBG_CXXFLAGS"
3897  else
3898    CXXFLAGS="$OPT_CXXFLAGS"
3899  fi
3900
3901# Handle the case where CXXFLAGS was set externally.
3902else
3903  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3904  if test x${DBG_CXXFLAGS+set} != xset; then
3905    DBG_CXXFLAGS="$CXXFLAGS"
3906  fi
3907  if test x${OPT_CXXFLAGS+set} != xset; then
3908    OPT_CXXFLAGS="$CXXFLAGS"
3909  fi
3910fi
3911
3912# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3913
3914case "$CXXFLAGS" in
3915  *-mno-cygwin*)
3916    if test x${CPPFLAGS+set} != xset ; then
3917      CPPFLAGS="-mno-cygwin"
3918    else
3919      case "$CPPFLAGS" in
3920        *-mno-cygwin*)
3921          ;;
3922        *)
3923          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3924          ;;
3925      esac
3926    fi ;;
3927esac
3928
3929# Try if CXXFLAGS works
3930save_CXXFLAGS="$CXXFLAGS"
3931cat >conftest.$ac_ext <<_ACEOF
3932/* confdefs.h.  */
3933_ACEOF
3934cat confdefs.h >>conftest.$ac_ext
3935cat >>conftest.$ac_ext <<_ACEOF
3936/* end confdefs.h.  */
3937
3938int
3939main ()
3940{
3941int i=0; i++;
3942  ;
3943  return 0;
3944}
3945_ACEOF
3946rm -f conftest.$ac_objext conftest$ac_exeext
3947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3948  (eval $ac_link) 2>conftest.er1
3949  ac_status=$?
3950  grep -v '^ *+' conftest.er1 >conftest.err
3951  rm -f conftest.er1
3952  cat conftest.err >&5
3953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954  (exit $ac_status); } &&
3955         { ac_try='test -z "$ac_cxx_werror_flag"
3956                         || test ! -s conftest.err'
3957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958  (eval $ac_try) 2>&5
3959  ac_status=$?
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); }; } &&
3962         { ac_try='test -s conftest$ac_exeext'
3963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964  (eval $ac_try) 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; }; then
3968  :
3969else
3970  echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973CXXFLAGS=
3974fi
3975rm -f conftest.err conftest.$ac_objext \
3976      conftest$ac_exeext conftest.$ac_ext
3977if test -z "$CXXFLAGS"; then
3978  { 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
3979echo "$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;}
3980  CXXFLAGS='-O'
3981  cat >conftest.$ac_ext <<_ACEOF
3982/* confdefs.h.  */
3983_ACEOF
3984cat confdefs.h >>conftest.$ac_ext
3985cat >>conftest.$ac_ext <<_ACEOF
3986/* end confdefs.h.  */
3987
3988int
3989main ()
3990{
3991int i=0; i++;
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996rm -f conftest.$ac_objext conftest$ac_exeext
3997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998  (eval $ac_link) 2>conftest.er1
3999  ac_status=$?
4000  grep -v '^ *+' conftest.er1 >conftest.err
4001  rm -f conftest.er1
4002  cat conftest.err >&5
4003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004  (exit $ac_status); } &&
4005         { ac_try='test -z "$ac_cxx_werror_flag"
4006                         || test ! -s conftest.err'
4007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008  (eval $ac_try) 2>&5
4009  ac_status=$?
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); }; } &&
4012         { ac_try='test -s conftest$ac_exeext'
4013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014  (eval $ac_try) 2>&5
4015  ac_status=$?
4016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017  (exit $ac_status); }; }; then
4018  :
4019else
4020  echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023CXXFLAGS=
4024fi
4025rm -f conftest.err conftest.$ac_objext \
4026      conftest$ac_exeext conftest.$ac_ext
4027  if test -z "$CXXFLAGS"; then
4028    { 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
4029echo "$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;}
4030  fi
4031fi
4032
4033{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4034echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4035
4036
4037if test x"$MPICXX" = x; then :; else
4038  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4039echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4040  CXX="$MPICXX"
4041fi
4042
4043case "$CXX" in
4044  cl* | */cl* | CL* | */CL* )
4045    case $build in
4046  *-mingw*)
4047    if test "${LD+set}" = set; then :; else
4048      LD=link
4049    fi
4050    ;;
4051 esac
4052 case $enable_doscompile in
4053   msvc)
4054     if test "x${LD+set}" = xset; then :; else
4055       LD=link
4056     fi
4057     ;;
4058 esac
4059
4060    ;;
4061esac
4062
4063ac_ext=c
4064ac_cpp='$CPP $CPPFLAGS'
4065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068
4069
4070
4071# Initialize automake and libtool
4072{
4073
4074
4075
4076# START
4077
4078# Test if force_shared has been set
4079if test "x" = xforce_shared; then
4080  if test x$enable_shared = xno; then
4081    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4082echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4083   { (exit 1); exit 1; }; }
4084  fi
4085  enable_shared=yes;
4086else
4087  # On Cygwin and AIX, building DLLs doesn't work
4088  case $build in
4089    *-cygwin*)
4090      coin_disable_shared=yes
4091      platform=Cygwin
4092    ;;
4093    *-aix*)
4094      coin_disable_shared=yes
4095      platform=AIX
4096    ;;
4097    *-mingw*)
4098      coin_disable_shared=yes
4099      platform="Msys"
4100#      case "$CXX" in
4101#        cl*)
4102#          coin_disable_shared=yes
4103#          platform="Msys with cl"
4104#      ;;
4105#      esac
4106    ;;
4107  esac
4108fi
4109if test x"$coin_disable_shared" = xyes; then
4110  if test x"$enable_shared" = xyes; then
4111    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4112echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4113  fi
4114  enable_shared=no
4115fi
4116# By default, we only want the shared objects to be compiled
4117# Check whether --enable-static or --disable-static was given.
4118if test "${enable_static+set}" = set; then
4119  enableval="$enable_static"
4120  p=${PACKAGE-default}
4121    case $enableval in
4122    yes) enable_static=yes ;;
4123    no) enable_static=no ;;
4124    *)
4125     enable_static=no
4126      # Look at the argument we got.  We use all the common list separators.
4127      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4128      for pkg in $enableval; do
4129        IFS="$lt_save_ifs"
4130        if test "X$pkg" = "X$p"; then
4131          enable_static=yes
4132        fi
4133      done
4134      IFS="$lt_save_ifs"
4135      ;;
4136    esac
4137else
4138  enable_static=no
4139fi;
4140
4141
4142
4143
4144# Initialize automake
4145echo "$as_me:$LINENO: checking for egrep" >&5
4146echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4147if test "${ac_cv_prog_egrep+set}" = set; then
4148  echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4151    then ac_cv_prog_egrep='grep -E'
4152    else ac_cv_prog_egrep='egrep'
4153    fi
4154fi
4155echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4156echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4157 EGREP=$ac_cv_prog_egrep
4158
4159
4160am__api_version="1.9"
4161# Find a good install program.  We prefer a C program (faster),
4162# so one script is as good as another.  But avoid the broken or
4163# incompatible versions:
4164# SysV /etc/install, /usr/sbin/install
4165# SunOS /usr/etc/install
4166# IRIX /sbin/install
4167# AIX /bin/install
4168# AmigaOS /C/install, which installs bootblocks on floppy discs
4169# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4170# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4171# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4172# OS/2's system install, which has a completely different semantic
4173# ./install, which can be erroneously created by make from ./install.sh.
4174echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4175echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4176if test -z "$INSTALL"; then
4177if test "${ac_cv_path_install+set}" = set; then
4178  echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183  IFS=$as_save_IFS
4184  test -z "$as_dir" && as_dir=.
4185  # Account for people who put trailing slashes in PATH elements.
4186case $as_dir/ in
4187  ./ | .// | /cC/* | \
4188  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4189  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4190  /usr/ucb/* ) ;;
4191  *)
4192    # OSF1 and SCO ODT 3.0 have their own names for install.
4193    # Don't use installbsd from OSF since it installs stuff as root
4194    # by default.
4195    for ac_prog in ginstall scoinst install; do
4196      for ac_exec_ext in '' $ac_executable_extensions; do
4197        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4198          if test $ac_prog = install &&
4199            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4200            # AIX install.  It has an incompatible calling convention.
4201            :
4202          elif test $ac_prog = install &&
4203            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4204            # program-specific install script used by HP pwplus--don't use.
4205            :
4206          else
4207            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4208            break 3
4209          fi
4210        fi
4211      done
4212    done
4213    ;;
4214esac
4215done
4216
4217
4218fi
4219  if test "${ac_cv_path_install+set}" = set; then
4220    INSTALL=$ac_cv_path_install
4221  else
4222    # As a last resort, use the slow shell script.  We don't cache a
4223    # path for INSTALL within a source directory, because that will
4224    # break other packages using the cache if that directory is
4225    # removed, or if the path is relative.
4226    INSTALL=$ac_install_sh
4227  fi
4228fi
4229echo "$as_me:$LINENO: result: $INSTALL" >&5
4230echo "${ECHO_T}$INSTALL" >&6
4231
4232# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4233# It thinks the first close brace ends the variable substitution.
4234test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4235
4236test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4237
4238test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4239
4240echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4241echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4242# Just in case
4243sleep 1
4244echo timestamp > conftest.file
4245# Do `set' in a subshell so we don't clobber the current shell's
4246# arguments.  Must try -L first in case configure is actually a
4247# symlink; some systems play weird games with the mod time of symlinks
4248# (eg FreeBSD returns the mod time of the symlink's containing
4249# directory).
4250if (
4251   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4252   if test "$*" = "X"; then
4253      # -L didn't work.
4254      set X `ls -t $srcdir/configure conftest.file`
4255   fi
4256   rm -f conftest.file
4257   if test "$*" != "X $srcdir/configure conftest.file" \
4258      && test "$*" != "X conftest.file $srcdir/configure"; then
4259
4260      # If neither matched, then we have a broken ls.  This can happen
4261      # if, for instance, CONFIG_SHELL is bash and it inherits a
4262      # broken ls alias from the environment.  This has actually
4263      # happened.  Such a system could not be considered "sane".
4264      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4265alias in your environment" >&5
4266echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4267alias in your environment" >&2;}
4268   { (exit 1); exit 1; }; }
4269   fi
4270
4271   test "$2" = conftest.file
4272   )
4273then
4274   # Ok.
4275   :
4276else
4277   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4278Check your system clock" >&5
4279echo "$as_me: error: newly created file is older than distributed files!
4280Check your system clock" >&2;}
4281   { (exit 1); exit 1; }; }
4282fi
4283echo "$as_me:$LINENO: result: yes" >&5
4284echo "${ECHO_T}yes" >&6
4285test "$program_prefix" != NONE &&
4286  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4287# Use a double $ so make ignores it.
4288test "$program_suffix" != NONE &&
4289  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4290# Double any \ or $.  echo might interpret backslashes.
4291# By default was `s,x,x', remove it if useless.
4292cat <<\_ACEOF >conftest.sed
4293s/[\\$]/&&/g;s/;s,x,x,$//
4294_ACEOF
4295program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4296rm conftest.sed
4297
4298# expand $ac_aux_dir to an absolute path
4299am_aux_dir=`cd $ac_aux_dir && pwd`
4300
4301test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4302# Use eval to expand $SHELL
4303if eval "$MISSING --run true"; then
4304  am_missing_run="$MISSING --run "
4305else
4306  am_missing_run=
4307  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4308echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4309fi
4310
4311if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4312  # We used to keeping the `.' as first argument, in order to
4313  # allow $(mkdir_p) to be used without argument.  As in
4314  #   $(mkdir_p) $(somedir)
4315  # where $(somedir) is conditionally defined.  However this is wrong
4316  # for two reasons:
4317  #  1. if the package is installed by a user who cannot write `.'
4318  #     make install will fail,
4319  #  2. the above comment should most certainly read
4320  #     $(mkdir_p) $(DESTDIR)$(somedir)
4321  #     so it does not work when $(somedir) is undefined and
4322  #     $(DESTDIR) is not.
4323  #  To support the latter case, we have to write
4324  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4325  #  so the `.' trick is pointless.
4326  mkdir_p='mkdir -p --'
4327else
4328  # On NextStep and OpenStep, the `mkdir' command does not
4329  # recognize any option.  It will interpret all options as
4330  # directories to create, and then abort because `.' already
4331  # exists.
4332  for d in ./-p ./--version;
4333  do
4334    test -d $d && rmdir $d
4335  done
4336  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4337  if test -f "$ac_aux_dir/mkinstalldirs"; then
4338    mkdir_p='$(mkinstalldirs)'
4339  else
4340    mkdir_p='$(install_sh) -d'
4341  fi
4342fi
4343
4344for ac_prog in gawk mawk nawk awk
4345do
4346  # Extract the first word of "$ac_prog", so it can be a program name with args.
4347set dummy $ac_prog; ac_word=$2
4348echo "$as_me:$LINENO: checking for $ac_word" >&5
4349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350if test "${ac_cv_prog_AWK+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  if test -n "$AWK"; then
4354  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359  IFS=$as_save_IFS
4360  test -z "$as_dir" && as_dir=.
4361  for ac_exec_ext in '' $ac_executable_extensions; do
4362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363    ac_cv_prog_AWK="$ac_prog"
4364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365    break 2
4366  fi
4367done
4368done
4369
4370fi
4371fi
4372AWK=$ac_cv_prog_AWK
4373if test -n "$AWK"; then
4374  echo "$as_me:$LINENO: result: $AWK" >&5
4375echo "${ECHO_T}$AWK" >&6
4376else
4377  echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
4379fi
4380
4381  test -n "$AWK" && break
4382done
4383
4384echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4385echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4386set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4387if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4388  echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390  cat >conftest.make <<\_ACEOF
4391all:
4392        @echo 'ac_maketemp="$(MAKE)"'
4393_ACEOF
4394# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4395eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4396if test -n "$ac_maketemp"; then
4397  eval ac_cv_prog_make_${ac_make}_set=yes
4398else
4399  eval ac_cv_prog_make_${ac_make}_set=no
4400fi
4401rm -f conftest.make
4402fi
4403if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4404  echo "$as_me:$LINENO: result: yes" >&5
4405echo "${ECHO_T}yes" >&6
4406  SET_MAKE=
4407else
4408  echo "$as_me:$LINENO: result: no" >&5
4409echo "${ECHO_T}no" >&6
4410  SET_MAKE="MAKE=${MAKE-make}"
4411fi
4412
4413rm -rf .tst 2>/dev/null
4414mkdir .tst 2>/dev/null
4415if test -d .tst; then
4416  am__leading_dot=.
4417else
4418  am__leading_dot=_
4419fi
4420rmdir .tst 2>/dev/null
4421
4422DEPDIR="${am__leading_dot}deps"
4423
4424          ac_config_commands="$ac_config_commands depfiles"
4425
4426
4427am_make=${MAKE-make}
4428cat > confinc << 'END'
4429am__doit:
4430        @echo done
4431.PHONY: am__doit
4432END
4433# If we don't find an include directive, just comment out the code.
4434echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4435echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4436am__include="#"
4437am__quote=
4438_am_result=none
4439# First try GNU make style include.
4440echo "include confinc" > confmf
4441# We grep out `Entering directory' and `Leaving directory'
4442# messages which can occur if `w' ends up in MAKEFLAGS.
4443# In particular we don't look at `^make:' because GNU make might
4444# be invoked under some other name (usually "gmake"), in which
4445# case it prints its new name instead of `make'.
4446if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4447   am__include=include
4448   am__quote=
4449   _am_result=GNU
4450fi
4451# Now try BSD make style include.
4452if test "$am__include" = "#"; then
4453   echo '.include "confinc"' > confmf
4454   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4455      am__include=.include
4456      am__quote="\""
4457      _am_result=BSD
4458   fi
4459fi
4460
4461
4462echo "$as_me:$LINENO: result: $_am_result" >&5
4463echo "${ECHO_T}$_am_result" >&6
4464rm -f confinc confmf
4465
4466# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4467if test "${enable_dependency_tracking+set}" = set; then
4468  enableval="$enable_dependency_tracking"
4469
4470fi;
4471if test "x$enable_dependency_tracking" != xno; then
4472  am_depcomp="$ac_aux_dir/depcomp"
4473  AMDEPBACKSLASH='\'
4474fi
4475
4476
4477if test "x$enable_dependency_tracking" != xno; then
4478  AMDEP_TRUE=
4479  AMDEP_FALSE='#'
4480else
4481  AMDEP_TRUE='#'
4482  AMDEP_FALSE=
4483fi
4484
4485
4486
4487
4488
4489# AC_MSG_NOTICE([Beginning automake initialisation.])
4490# Stuff for automake
4491# test to see if srcdir already configured
4492if test "`cd $srcdir && pwd`" != "`pwd`" &&
4493   test -f $srcdir/config.status; then
4494  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4495echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4496   { (exit 1); exit 1; }; }
4497fi
4498
4499# test whether we have cygpath
4500if test -z "$CYGPATH_W"; then
4501  if (cygpath --version) >/dev/null 2>/dev/null; then
4502    CYGPATH_W='cygpath -w'
4503  else
4504    CYGPATH_W=echo
4505  fi
4506fi
4507
4508
4509# Define the identity of the package.
4510 PACKAGE='clp'
4511 VERSION='trunk'
4512
4513
4514cat >>confdefs.h <<_ACEOF
4515#define PACKAGE "$PACKAGE"
4516_ACEOF
4517
4518
4519cat >>confdefs.h <<_ACEOF
4520#define VERSION "$VERSION"
4521_ACEOF
4522
4523# Some tools Automake needs.
4524
4525ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4526
4527
4528AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4529
4530
4531AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4532
4533
4534AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4535
4536
4537MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4538
4539install_sh=${install_sh-"$am_aux_dir/install-sh"}
4540
4541# Installed binaries are usually stripped using `strip' when the user
4542# run `make install-strip'.  However `strip' might not be the right
4543# tool to use in cross-compilation environments, therefore Automake
4544# will honor the `STRIP' environment variable to overrule this program.
4545if test "$cross_compiling" != no; then
4546  if test -n "$ac_tool_prefix"; then
4547  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4548set dummy ${ac_tool_prefix}strip; ac_word=$2
4549echo "$as_me:$LINENO: checking for $ac_word" >&5
4550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551if test "${ac_cv_prog_STRIP+set}" = set; then
4552  echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554  if test -n "$STRIP"; then
4555  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560  IFS=$as_save_IFS
4561  test -z "$as_dir" && as_dir=.
4562  for ac_exec_ext in '' $ac_executable_extensions; do
4563  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4565    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566    break 2
4567  fi
4568done
4569done
4570
4571fi
4572fi
4573STRIP=$ac_cv_prog_STRIP
4574if test -n "$STRIP"; then
4575  echo "$as_me:$LINENO: result: $STRIP" >&5
4576echo "${ECHO_T}$STRIP" >&6
4577else
4578  echo "$as_me:$LINENO: result: no" >&5
4579echo "${ECHO_T}no" >&6
4580fi
4581
4582fi
4583if test -z "$ac_cv_prog_STRIP"; then
4584  ac_ct_STRIP=$STRIP
4585  # Extract the first word of "strip", so it can be a program name with args.
4586set dummy strip; ac_word=$2
4587echo "$as_me:$LINENO: checking for $ac_word" >&5
4588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4589if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4590  echo $ECHO_N "(cached) $ECHO_C" >&6
4591else
4592  if test -n "$ac_ct_STRIP"; then
4593  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598  IFS=$as_save_IFS
4599  test -z "$as_dir" && as_dir=.
4600  for ac_exec_ext in '' $ac_executable_extensions; do
4601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602    ac_cv_prog_ac_ct_STRIP="strip"
4603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604    break 2
4605  fi
4606done
4607done
4608
4609  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4610fi
4611fi
4612ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4613if test -n "$ac_ct_STRIP"; then
4614  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4615echo "${ECHO_T}$ac_ct_STRIP" >&6
4616else
4617  echo "$as_me:$LINENO: result: no" >&5
4618echo "${ECHO_T}no" >&6
4619fi
4620
4621  STRIP=$ac_ct_STRIP
4622else
4623  STRIP="$ac_cv_prog_STRIP"
4624fi
4625
4626fi
4627INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4628
4629# We need awk for the "check" target.  The system "awk" is bad on
4630# some platforms.
4631# Always define AMTAR for backward compatibility.
4632
4633AMTAR=${AMTAR-"${am_missing_run}tar"}
4634
4635am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4636
4637
4638
4639
4640depcc="$CC"   am_compiler_list=
4641
4642echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4643echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4644if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4645  echo $ECHO_N "(cached) $ECHO_C" >&6
4646else
4647  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4648  # We make a subdir and do the tests there.  Otherwise we can end up
4649  # making bogus files that we don't know about and never remove.  For
4650  # instance it was reported that on HP-UX the gcc test will end up
4651  # making a dummy file named `D' -- because `-MD' means `put the output
4652  # in D'.
4653  mkdir conftest.dir
4654  # Copy depcomp to subdir because otherwise we won't find it if we're
4655  # using a relative directory.
4656  cp "$am_depcomp" conftest.dir
4657  cd conftest.dir
4658  # We will build objects and dependencies in a subdirectory because
4659  # it helps to detect inapplicable dependency modes.  For instance
4660  # both Tru64's cc and ICC support -MD to output dependencies as a
4661  # side effect of compilation, but ICC will put the dependencies in
4662  # the current directory while Tru64 will put them in the object
4663  # directory.
4664  mkdir sub
4665
4666  am_cv_CC_dependencies_compiler_type=none
4667  if test "$am_compiler_list" = ""; then
4668     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4669  fi
4670  for depmode in $am_compiler_list; do
4671    # Setup a source with many dependencies, because some compilers
4672    # like to wrap large dependency lists on column 80 (with \), and
4673    # we should not choose a depcomp mode which is confused by this.
4674    #
4675    # We need to recreate these files for each test, as the compiler may
4676    # overwrite some of them when testing with obscure command lines.
4677    # This happens at least with the AIX C compiler.
4678    : > sub/conftest.c
4679    for i in 1 2 3 4 5 6; do
4680      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4681      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4682      # Solaris 8's {/usr,}/bin/sh.
4683      touch sub/conftst$i.h
4684    done
4685    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4686
4687    case $depmode in
4688    nosideeffect)
4689      # after this tag, mechanisms are not by side-effect, so they'll
4690      # only be used when explicitly requested
4691      if test "x$enable_dependency_tracking" = xyes; then
4692        continue
4693      else
4694        break
4695      fi
4696      ;;
4697    none) break ;;
4698    esac
4699    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4700    # mode.  It turns out that the SunPro C++ compiler does not properly
4701    # handle `-M -o', and we need to detect this.
4702    if depmode=$depmode \
4703       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4704       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4705       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4706         >/dev/null 2>conftest.err &&
4707       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4708       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4709       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4710      # icc doesn't choke on unknown options, it will just issue warnings
4711      # or remarks (even with -Werror).  So we grep stderr for any message
4712      # that says an option was ignored or not supported.
4713      # When given -MP, icc 7.0 and 7.1 complain thusly:
4714      #   icc: Command line warning: ignoring option '-M'; no argument required
4715      # The diagnosis changed in icc 8.0:
4716      #   icc: Command line remark: option '-MP' not supported
4717      if (grep 'ignoring option' conftest.err ||
4718          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4719        am_cv_CC_dependencies_compiler_type=$depmode
4720        break
4721      fi
4722    fi
4723  done
4724
4725  cd ..
4726  rm -rf conftest.dir
4727else
4728  am_cv_CC_dependencies_compiler_type=none
4729fi
4730
4731fi
4732echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4733echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4734CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4735
4736
4737
4738if
4739  test "x$enable_dependency_tracking" != xno \
4740  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4741  am__fastdepCC_TRUE=
4742  am__fastdepCC_FALSE='#'
4743else
4744  am__fastdepCC_TRUE='#'
4745  am__fastdepCC_FALSE=
4746fi
4747
4748
4749depcc="$CXX"  am_compiler_list=
4750
4751echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4752echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4753if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4754  echo $ECHO_N "(cached) $ECHO_C" >&6
4755else
4756  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4757  # We make a subdir and do the tests there.  Otherwise we can end up
4758  # making bogus files that we don't know about and never remove.  For
4759  # instance it was reported that on HP-UX the gcc test will end up
4760  # making a dummy file named `D' -- because `-MD' means `put the output
4761  # in D'.
4762  mkdir conftest.dir
4763  # Copy depcomp to subdir because otherwise we won't find it if we're
4764  # using a relative directory.
4765  cp "$am_depcomp" conftest.dir
4766  cd conftest.dir
4767  # We will build objects and dependencies in a subdirectory because
4768  # it helps to detect inapplicable dependency modes.  For instance
4769  # both Tru64's cc and ICC support -MD to output dependencies as a
4770  # side effect of compilation, but ICC will put the dependencies in
4771  # the current directory while Tru64 will put them in the object
4772  # directory.
4773  mkdir sub
4774
4775  am_cv_CXX_dependencies_compiler_type=none
4776  if test "$am_compiler_list" = ""; then
4777     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4778  fi
4779  for depmode in $am_compiler_list; do
4780    # Setup a source with many dependencies, because some compilers
4781    # like to wrap large dependency lists on column 80 (with \), and
4782    # we should not choose a depcomp mode which is confused by this.
4783    #
4784    # We need to recreate these files for each test, as the compiler may
4785    # overwrite some of them when testing with obscure command lines.
4786    # This happens at least with the AIX C compiler.
4787    : > sub/conftest.c
4788    for i in 1 2 3 4 5 6; do
4789      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4790      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4791      # Solaris 8's {/usr,}/bin/sh.
4792      touch sub/conftst$i.h
4793    done
4794    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4795
4796    case $depmode in
4797    nosideeffect)
4798      # after this tag, mechanisms are not by side-effect, so they'll
4799      # only be used when explicitly requested
4800      if test "x$enable_dependency_tracking" = xyes; then
4801        continue
4802      else
4803        break
4804      fi
4805      ;;
4806    none) break ;;
4807    esac
4808    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4809    # mode.  It turns out that the SunPro C++ compiler does not properly
4810    # handle `-M -o', and we need to detect this.
4811    if depmode=$depmode \
4812       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4813       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4814       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4815         >/dev/null 2>conftest.err &&
4816       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4817       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4818       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4819      # icc doesn't choke on unknown options, it will just issue warnings
4820      # or remarks (even with -Werror).  So we grep stderr for any message
4821      # that says an option was ignored or not supported.
4822      # When given -MP, icc 7.0 and 7.1 complain thusly:
4823      #   icc: Command line warning: ignoring option '-M'; no argument required
4824      # The diagnosis changed in icc 8.0:
4825      #   icc: Command line remark: option '-MP' not supported
4826      if (grep 'ignoring option' conftest.err ||
4827          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4828        am_cv_CXX_dependencies_compiler_type=$depmode
4829        break
4830      fi
4831    fi
4832  done
4833
4834  cd ..
4835  rm -rf conftest.dir
4836else
4837  am_cv_CXX_dependencies_compiler_type=none
4838fi
4839
4840fi
4841echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4842echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4843CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4844
4845
4846
4847if
4848  test "x$enable_dependency_tracking" != xno \
4849  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4850  am__fastdepCXX_TRUE=
4851  am__fastdepCXX_FALSE='#'
4852else
4853  am__fastdepCXX_TRUE='#'
4854  am__fastdepCXX_FALSE=
4855fi
4856
4857
4858
4859echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4860echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4861    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4862if test "${enable_maintainer_mode+set}" = set; then
4863  enableval="$enable_maintainer_mode"
4864  USE_MAINTAINER_MODE=$enableval
4865else
4866  USE_MAINTAINER_MODE=no
4867fi;
4868  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4869echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4870
4871
4872if test $USE_MAINTAINER_MODE = yes; then
4873  MAINTAINER_MODE_TRUE=
4874  MAINTAINER_MODE_FALSE='#'
4875else
4876  MAINTAINER_MODE_TRUE='#'
4877  MAINTAINER_MODE_FALSE=
4878fi
4879
4880  MAINT=$MAINTAINER_MODE_TRUE
4881
4882
4883
4884coin_have_externals=no
4885if test "$enable_maintainer_mode" = yes; then
4886
4887  # If maintainer mode is chosen, we make sure that the correct versions
4888  # of the tools are used, and that we know where libtool.m4 is (to
4889  # recreate acinclude.m4)
4890
4891
4892  LIBTOOLM4=
4893  # Normally, $HOME
4894  AUTOTOOLS_DFLT=$HOME
4895
4896  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4897echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4898if test "${ac_cv_use_correct_autotools+set}" = set; then
4899  echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901  ac_cv_use_correct_autotools=check
4902fi
4903echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4904echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4905
4906  if test $ac_cv_use_correct_autotools = check; then
4907    ac_cv_use_correct_autotools=yes
4908    # Check if we have autoconf
4909    # Extract the first word of "autoconf", so it can be a program name with args.
4910set dummy autoconf; ac_word=$2
4911echo "$as_me:$LINENO: checking for $ac_word" >&5
4912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4913if test "${ac_cv_prog_have_autoconf+set}" = set; then
4914  echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916  if test -n "$have_autoconf"; then
4917  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922  IFS=$as_save_IFS
4923  test -z "$as_dir" && as_dir=.
4924  for ac_exec_ext in '' $ac_executable_extensions; do
4925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926    ac_cv_prog_have_autoconf="yes"
4927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928    break 2
4929  fi
4930done
4931done
4932
4933  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4934fi
4935fi
4936have_autoconf=$ac_cv_prog_have_autoconf
4937if test -n "$have_autoconf"; then
4938  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4939echo "${ECHO_T}$have_autoconf" >&6
4940else
4941  echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943fi
4944
4945    if test $have_autoconf = no; then
4946      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4947echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4948   { (exit 1); exit 1; }; }
4949    fi
4950
4951    # Check whether autoconf is the correct version
4952    correct_version='2.59'
4953    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4954    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4955echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4956    autoconf --version > confauto.out 2>&1
4957    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4958      echo "$as_me:$LINENO: result: yes" >&5
4959echo "${ECHO_T}yes" >&6
4960    else
4961      rm -f confauto.out
4962      echo "$as_me:$LINENO: result: no" >&5
4963echo "${ECHO_T}no" >&6
4964      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4965echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4966   { (exit 1); exit 1; }; }
4967    fi
4968    rm -f confauto.out
4969
4970    # Check if the executable autoconf is picked up from the correct location
4971    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4972echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4973    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4974    autoconf_dir=`cd $autoconf_dir; pwd`
4975    if test x$AUTOTOOLS_DIR = x; then
4976      want_dir=$AUTOTOOLS_DFLT/bin
4977    else
4978      want_dir=$AUTOTOOLS_DIR/bin
4979    fi
4980    if test $autoconf_dir = `cd $want_dir; pwd`; then
4981      echo "$as_me:$LINENO: result: yes" >&5
4982echo "${ECHO_T}yes" >&6
4983    else
4984      rm -f confauto.out
4985      echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6
4987      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4988echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4989   { (exit 1); exit 1; }; }
4990    fi
4991
4992    # Check if we have automake
4993    # Extract the first word of "automake", so it can be a program name with args.
4994set dummy automake; ac_word=$2
4995echo "$as_me:$LINENO: checking for $ac_word" >&5
4996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4997if test "${ac_cv_prog_have_automake+set}" = set; then
4998  echo $ECHO_N "(cached) $ECHO_C" >&6
4999else
5000  if test -n "$have_automake"; then
5001  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5002else
5003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH
5005do
5006  IFS=$as_save_IFS
5007  test -z "$as_dir" && as_dir=.
5008  for ac_exec_ext in '' $ac_executable_extensions; do
5009  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5010    ac_cv_prog_have_automake="yes"
5011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012    break 2
5013  fi
5014done
5015done
5016
5017  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5018fi
5019fi
5020have_automake=$ac_cv_prog_have_automake
5021if test -n "$have_automake"; then
5022  echo "$as_me:$LINENO: result: $have_automake" >&5
5023echo "${ECHO_T}$have_automake" >&6
5024else
5025  echo "$as_me:$LINENO: result: no" >&5
5026echo "${ECHO_T}no" >&6
5027fi
5028
5029    if test $have_automake = no; then
5030      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5031echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5032   { (exit 1); exit 1; }; }
5033    fi
5034
5035    # Check whether automake is the correct version
5036    correct_version='1.9.6'
5037    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5038    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5039echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5040    automake --version > confauto.out 2>&1
5041    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5042      echo "$as_me:$LINENO: result: yes" >&5
5043echo "${ECHO_T}yes" >&6
5044    else
5045      rm -f confauto.out
5046      echo "$as_me:$LINENO: result: no" >&5
5047echo "${ECHO_T}no" >&6
5048      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5049echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5050   { (exit 1); exit 1; }; }
5051    fi
5052    rm -f confauto.out
5053
5054    # Check if the executable automake is picked up from the correct location
5055    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5056echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5057    automake_dir=`which automake | sed -e 's=/automake=='`
5058    automake_dir=`cd $automake_dir; pwd`
5059    if test x$AUTOTOOLS_DIR = x; then
5060      want_dir=$AUTOTOOLS_DFLT/bin
5061    else
5062      want_dir=$AUTOTOOLS_DIR/bin
5063    fi
5064    if test $automake_dir = `cd $want_dir; pwd`; then
5065      echo "$as_me:$LINENO: result: yes" >&5
5066echo "${ECHO_T}yes" >&6
5067    else
5068      rm -f confauto.out
5069      echo "$as_me:$LINENO: result: no" >&5
5070echo "${ECHO_T}no" >&6
5071      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5072echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5073   { (exit 1); exit 1; }; }
5074    fi
5075
5076    # Check if this is the correct version of libtool (with escaped dots)
5077    if test x$AUTOTOOLS_DIR = x; then
5078      want_dir=$AUTOTOOLS_DFLT/share
5079    else
5080      want_dir=$AUTOTOOLS_DIR/share
5081    fi
5082    correct_version='1.5.22'
5083    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5084    if test -r $want_dir/libtool/ltmain.sh; then
5085  have_ltmain=yes
5086  :
5087else
5088  have_ltmain=no
5089  :
5090fi
5091
5092    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5093echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5094    if test $have_ltmain = yes; then
5095    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5096        echo "$as_me:$LINENO: result: yes" >&5
5097echo "${ECHO_T}yes" >&6
5098      else
5099        echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6
5101        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5102echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5103   { (exit 1); exit 1; }; }
5104      fi
5105    else
5106      echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5109echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5110   { (exit 1); exit 1; }; }
5111    fi
5112  fi
5113
5114  # Check if we can find the libtool file
5115  if test x$AUTOTOOLS_DIR = x; then
5116    want_dir=$AUTOTOOLS_DFLT/share
5117  else
5118    want_dir=$AUTOTOOLS_DIR/share
5119  fi
5120  if test -r $want_dir/aclocal/libtool.m4; then
5121  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5122  :
5123else
5124  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5125echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5126   { (exit 1); exit 1; }; }
5127  :
5128fi
5129
5130
5131  # Check if we have an Externals file
5132  if test -r $srcdir/Externals; then
5133    coin_have_externals=yes
5134  fi
5135  # Check if subversion is installed and understands https
5136  # Extract the first word of "svn", so it can be a program name with args.
5137set dummy svn; ac_word=$2
5138echo "$as_me:$LINENO: checking for $ac_word" >&5
5139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5140if test "${ac_cv_prog_have_svn+set}" = set; then
5141  echo $ECHO_N "(cached) $ECHO_C" >&6
5142else
5143  if test -n "$have_svn"; then
5144  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5145else
5146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147for as_dir in $PATH
5148do
5149  IFS=$as_save_IFS
5150  test -z "$as_dir" && as_dir=.
5151  for ac_exec_ext in '' $ac_executable_extensions; do
5152  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5153    ac_cv_prog_have_svn="yes"
5154    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155    break 2
5156  fi
5157done
5158done
5159
5160  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5161fi
5162fi
5163have_svn=$ac_cv_prog_have_svn
5164if test -n "$have_svn"; then
5165  echo "$as_me:$LINENO: result: $have_svn" >&5
5166echo "${ECHO_T}$have_svn" >&6
5167else
5168  echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170fi
5171
5172  if test x$have_svn = xyes; then
5173    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5174echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5175if test "${ac_cv_svn_understands_https+set}" = set; then
5176  echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178  svn --version > confauto.out 2>&1
5179                    if $EGREP https confauto.out >/dev/null 2>&1; then
5180                      ac_cv_svn_understands_https=yes
5181                    else
5182                      ac_cv_svn_understands_https=no
5183                      have_svn=no
5184                      ac_cv_prog_have_svn=no
5185                    fi
5186                    rm -f confauto.out
5187fi
5188echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5189echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5190  fi
5191
5192  # Find the location of the BuildTools directory
5193  BUILDTOOLSDIR=
5194  if test -r $srcdir/BuildTools/coin.m4; then
5195    BUILDTOOLSDIR=$srcdir/BuildTools
5196  else
5197    if test -r $srcdir/../BuildTools/coin.m4; then
5198      BUILDTOOLSDIR=$srcdir/../BuildTools
5199    else
5200      if test -r $srcdir/../../BuildTools/coin.m4; then
5201        BUILDTOOLSDIR=$srcdir/../../BuildTools
5202      else
5203        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5204echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5205   { (exit 1); exit 1; }; }
5206      fi
5207    fi
5208  fi
5209
5210
5211  # The following variable is set to the name of the directory where
5212  # the autotool scripts are located
5213
5214  AUX_DIR=$ac_aux_dir
5215fi
5216
5217# helpful variable for the base directory of this package
5218abs_source_dir=`cd $srcdir; pwd`
5219
5220
5221# Stuff for example Makefiles
5222if test x$prefix = xNONE; then
5223  full_prefix=$ac_default_prefix
5224else
5225  full_prefix=$prefix
5226fi
5227full_prefix=`cd $full_prefix ; pwd`
5228
5229abs_lib_dir=$full_prefix/lib
5230
5231abs_include_dir=$full_prefix/include
5232
5233abs_bin_dir=$full_prefix/bin
5234
5235
5236
5237if test $coin_have_externals = yes && test x$have_svn = xyes; then
5238  HAVE_EXTERNALS_TRUE=
5239  HAVE_EXTERNALS_FALSE='#'
5240else
5241  HAVE_EXTERNALS_TRUE='#'
5242  HAVE_EXTERNALS_FALSE=
5243fi
5244
5245
5246# AC_MSG_NOTICE([End automake initialisation.])
5247
5248
5249
5250LIBTOOL=
5251if test -r ../libtool; then
5252  coin_config_dir=..
5253  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5254fi
5255if test "x$LIBTOOL" = x; then
5256  if test -r ../../libtool; then
5257    coin_config_dir=../..
5258    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5259  fi
5260fi
5261
5262if test "x$LIBTOOL" = x; then
5263# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5264  # Stuff for libtool
5265  # Check whether --enable-shared or --disable-shared was given.
5266if test "${enable_shared+set}" = set; then
5267  enableval="$enable_shared"
5268  p=${PACKAGE-default}
5269    case $enableval in
5270    yes) enable_shared=yes ;;
5271    no) enable_shared=no ;;
5272    *)
5273      enable_shared=no
5274      # Look at the argument we got.  We use all the common list separators.
5275      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5276      for pkg in $enableval; do
5277        IFS="$lt_save_ifs"
5278        if test "X$pkg" = "X$p"; then
5279          enable_shared=yes
5280        fi
5281      done
5282      IFS="$lt_save_ifs"
5283      ;;
5284    esac
5285else
5286  enable_shared=yes
5287fi;
5288
5289# Check whether --enable-fast-install or --disable-fast-install was given.
5290if test "${enable_fast_install+set}" = set; then
5291  enableval="$enable_fast_install"
5292  p=${PACKAGE-default}
5293    case $enableval in
5294    yes) enable_fast_install=yes ;;
5295    no) enable_fast_install=no ;;
5296    *)
5297      enable_fast_install=no
5298      # Look at the argument we got.  We use all the common list separators.
5299      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5300      for pkg in $enableval; do
5301        IFS="$lt_save_ifs"
5302        if test "X$pkg" = "X$p"; then
5303          enable_fast_install=yes
5304        fi
5305      done
5306      IFS="$lt_save_ifs"
5307      ;;
5308    esac
5309else
5310  enable_fast_install=yes
5311fi;
5312
5313echo "$as_me:$LINENO: checking host system type" >&5
5314echo $ECHO_N "checking host system type... $ECHO_C" >&6
5315if test "${ac_cv_host+set}" = set; then
5316  echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318  ac_cv_host_alias=$host_alias
5319test -z "$ac_cv_host_alias" &&
5320  ac_cv_host_alias=$ac_cv_build_alias
5321ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5322  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5323echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5324   { (exit 1); exit 1; }; }
5325
5326fi
5327echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5328echo "${ECHO_T}$ac_cv_host" >&6
5329host=$ac_cv_host
5330host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5331host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5332host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5333
5334
5335echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5336echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5337if test "${lt_cv_path_SED+set}" = set; then
5338  echo $ECHO_N "(cached) $ECHO_C" >&6
5339else
5340  # Loop through the user's path and test for sed and gsed.
5341# Then use that list of sed's as ones to test for truncation.
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345  IFS=$as_save_IFS
5346  test -z "$as_dir" && as_dir=.
5347  for lt_ac_prog in sed gsed; do
5348    for ac_exec_ext in '' $ac_executable_extensions; do
5349      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5350        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5351      fi
5352    done
5353  done
5354done
5355lt_ac_max=0
5356lt_ac_count=0
5357# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5358# along with /bin/sed that truncates output.
5359for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5360  test ! -f $lt_ac_sed && continue
5361  cat /dev/null > conftest.in
5362  lt_ac_count=0
5363  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5364  # Check for GNU sed and select it if it is found.
5365  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5366    lt_cv_path_SED=$lt_ac_sed
5367    break
5368  fi
5369  while true; do
5370    cat conftest.in conftest.in >conftest.tmp
5371    mv conftest.tmp conftest.in
5372    cp conftest.in conftest.nl
5373    echo >>conftest.nl
5374    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5375    cmp -s conftest.out conftest.nl || break
5376    # 10000 chars as input seems more than enough
5377    test $lt_ac_count -gt 10 && break
5378    lt_ac_count=`expr $lt_ac_count + 1`
5379    if test $lt_ac_count -gt $lt_ac_max; then
5380      lt_ac_max=$lt_ac_count
5381      lt_cv_path_SED=$lt_ac_sed
5382    fi
5383  done
5384done
5385
5386fi
5387
5388SED=$lt_cv_path_SED
5389echo "$as_me:$LINENO: result: $SED" >&5
5390echo "${ECHO_T}$SED" >&6
5391
5392
5393# Check whether --with-gnu-ld or --without-gnu-ld was given.
5394if test "${with_gnu_ld+set}" = set; then
5395  withval="$with_gnu_ld"
5396  test "$withval" = no || with_gnu_ld=yes
5397else
5398  with_gnu_ld=no
5399fi;
5400ac_prog=ld
5401if test "$GCC" = yes; then
5402  # Check if gcc -print-prog-name=ld gives a path.
5403  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5404echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5405  case $host in
5406  *-*-mingw*)
5407    # gcc leaves a trailing carriage return which upsets mingw
5408    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5409  *)
5410    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5411  esac
5412  case $ac_prog in
5413    # Accept absolute paths.
5414    [\\/]* | ?:[\\/]*)
5415      re_direlt='/[^/][^/]*/\.\./'
5416      # Canonicalize the pathname of ld
5417      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5418      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5419        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5420      done
5421      test -z "$LD" && LD="$ac_prog"
5422      ;;
5423  "")
5424    # If it fails, then pretend we aren't using GCC.
5425    ac_prog=ld
5426    ;;
5427  *)
5428    # If it is relative, then search for the first ld in PATH.
5429    with_gnu_ld=unknown
5430    ;;
5431  esac
5432elif test "$with_gnu_ld" = yes; then
5433  echo "$as_me:$LINENO: checking for GNU ld" >&5
5434echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5435else
5436  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5437echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5438fi
5439if test "${lt_cv_path_LD+set}" = set; then
5440  echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442  if test -z "$LD"; then
5443  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5444  for ac_dir in $PATH; do
5445    IFS="$lt_save_ifs"
5446    test -z "$ac_dir" && ac_dir=.
5447    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5448      lt_cv_path_LD="$ac_dir/$ac_prog"
5449      # Check to see if the program is GNU ld.  I'd rather use --version,
5450      # but apparently some variants of GNU ld only accept -v.
5451      # Break only if it was the GNU/non-GNU ld that we prefer.
5452      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5453      *GNU* | *'with BFD'*)
5454        test "$with_gnu_ld" != no && break
5455        ;;
5456      *)
5457        test "$with_gnu_ld" != yes && break
5458        ;;
5459      esac
5460    fi
5461  done
5462  IFS="$lt_save_ifs"
5463else
5464  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5465fi
5466fi
5467
5468LD="$lt_cv_path_LD"
5469if test -n "$LD"; then
5470  echo "$as_me:$LINENO: result: $LD" >&5
5471echo "${ECHO_T}$LD" >&6
5472else
5473  echo "$as_me:$LINENO: result: no" >&5
5474echo "${ECHO_T}no" >&6
5475fi
5476test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5477echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5478   { (exit 1); exit 1; }; }
5479echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5480echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5481if test "${lt_cv_prog_gnu_ld+set}" = set; then
5482  echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5485case `$LD -v 2>&1 </dev/null` in
5486*GNU* | *'with BFD'*)
5487  lt_cv_prog_gnu_ld=yes
5488  ;;
5489*)
5490  lt_cv_prog_gnu_ld=no
5491  ;;
5492esac
5493fi
5494echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5495echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5496with_gnu_ld=$lt_cv_prog_gnu_ld
5497
5498
5499echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5500echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5501if test "${lt_cv_ld_reload_flag+set}" = set; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  lt_cv_ld_reload_flag='-r'
5505fi
5506echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5507echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5508reload_flag=$lt_cv_ld_reload_flag
5509case $reload_flag in
5510"" | " "*) ;;
5511*) reload_flag=" $reload_flag" ;;
5512esac
5513reload_cmds='$LD$reload_flag -o $output$reload_objs'
5514case $host_os in
5515  darwin*)
5516    if test "$GCC" = yes; then
5517      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5518    else
5519      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5520    fi
5521    ;;
5522esac
5523
5524echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5525echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5526if test "${lt_cv_path_NM+set}" = set; then
5527  echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
5529  if test -n "$NM"; then
5530  # Let the user override the test.
5531  lt_cv_path_NM="$NM"
5532else
5533  lt_nm_to_check="${ac_tool_prefix}nm"
5534  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5535    lt_nm_to_check="$lt_nm_to_check nm"
5536  fi
5537  for lt_tmp_nm in $lt_nm_to_check; do
5538    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5539    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5540      IFS="$lt_save_ifs"
5541      test -z "$ac_dir" && ac_dir=.
5542      tmp_nm="$ac_dir/$lt_tmp_nm"
5543      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5544        # Check to see if the nm accepts a BSD-compat flag.
5545        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5546        #   nm: unknown option "B" ignored
5547        # Tru64's nm complains that /dev/null is an invalid object file
5548        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5549        */dev/null* | *'Invalid file or object type'*)
5550          lt_cv_path_NM="$tmp_nm -B"
5551          break
5552          ;;
5553        *)
5554          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5555          */dev/null*)
5556            lt_cv_path_NM="$tmp_nm -p"
5557            break
5558            ;;
5559          *)
5560            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5561            continue # so that we can try to find one that supports BSD flags
5562            ;;
5563          esac
5564          ;;
5565        esac
5566      fi
5567    done
5568    IFS="$lt_save_ifs"
5569  done
5570  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5571fi
5572fi
5573echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5574echo "${ECHO_T}$lt_cv_path_NM" >&6
5575NM="$lt_cv_path_NM"
5576
5577echo "$as_me:$LINENO: checking whether ln -s works" >&5
5578echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5579LN_S=$as_ln_s
5580if test "$LN_S" = "ln -s"; then
5581  echo "$as_me:$LINENO: result: yes" >&5
5582echo "${ECHO_T}yes" >&6
5583else
5584  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5585echo "${ECHO_T}no, using $LN_S" >&6
5586fi
5587
5588echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5589echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5590if test "${lt_cv_deplibs_check_method+set}" = set; then
5591  echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593  lt_cv_file_magic_cmd='$MAGIC_CMD'
5594lt_cv_file_magic_test_file=
5595lt_cv_deplibs_check_method='unknown'
5596# Need to set the preceding variable on all platforms that support
5597# interlibrary dependencies.
5598# 'none' -- dependencies not supported.
5599# `unknown' -- same as none, but documents that we really don't know.
5600# 'pass_all' -- all dependencies passed with no checks.
5601# 'test_compile' -- check by making test program.
5602# 'file_magic [[regex]]' -- check by looking for files in library path
5603# which responds to the $file_magic_cmd with a given extended regex.
5604# If you have `file' or equivalent on your system and you're not sure
5605# whether `pass_all' will *always* work, you probably want this one.
5606
5607case $host_os in
5608aix4* | aix5*)
5609  lt_cv_deplibs_check_method=pass_all
5610  ;;
5611
5612beos*)
5613  lt_cv_deplibs_check_method=pass_all
5614  ;;
5615
5616bsdi[45]*)
5617  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5618  lt_cv_file_magic_cmd='/usr/bin/file -L'
5619  lt_cv_file_magic_test_file=/shlib/libc.so
5620  ;;
5621
5622cygwin*)
5623  # func_win32_libid is a shell function defined in ltmain.sh
5624  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5625  lt_cv_file_magic_cmd='func_win32_libid'
5626  ;;
5627
5628mingw* | pw32*)
5629  # Base MSYS/MinGW do not provide the 'file' command needed by
5630  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5631  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5632  lt_cv_file_magic_cmd='$OBJDUMP -f'
5633  ;;
5634
5635darwin* | rhapsody*)
5636  lt_cv_deplibs_check_method=pass_all
5637  ;;
5638
5639freebsd* | kfreebsd*-gnu | dragonfly*)
5640  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5641    case $host_cpu in
5642    i*86 )
5643      # Not sure whether the presence of OpenBSD here was a mistake.
5644      # Let's accept both of them until this is cleared up.
5645      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5646      lt_cv_file_magic_cmd=/usr/bin/file
5647      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5648      ;;
5649    esac
5650  else
5651    lt_cv_deplibs_check_method=pass_all
5652  fi
5653  ;;
5654
5655gnu*)
5656  lt_cv_deplibs_check_method=pass_all
5657  ;;
5658
5659hpux10.20* | hpux11*)
5660  lt_cv_file_magic_cmd=/usr/bin/file
5661  case $host_cpu in
5662  ia64*)
5663    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5664    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5665    ;;
5666  hppa*64*)
5667    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]'
5668    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5669    ;;
5670  *)
5671    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5672    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5673    ;;
5674  esac
5675  ;;
5676
5677interix3*)
5678  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5679  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5680  ;;
5681
5682irix5* | irix6* | nonstopux*)
5683  case $LD in
5684  *-32|*"-32 ") libmagic=32-bit;;
5685  *-n32|*"-n32 ") libmagic=N32;;
5686  *-64|*"-64 ") libmagic=64-bit;;
5687  *) libmagic=never-match;;
5688  esac
5689  lt_cv_deplibs_check_method=pass_all
5690  ;;
5691
5692# This must be Linux ELF.
5693linux*)
5694  lt_cv_deplibs_check_method=pass_all
5695  ;;
5696
5697netbsd*)
5698  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5699    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5700  else
5701    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5702  fi
5703  ;;
5704
5705newos6*)
5706  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5707  lt_cv_file_magic_cmd=/usr/bin/file
5708  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5709  ;;
5710
5711nto-qnx*)
5712  lt_cv_deplibs_check_method=unknown
5713  ;;
5714
5715openbsd*)
5716  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5717    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5718  else
5719    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5720  fi
5721  ;;
5722
5723osf3* | osf4* | osf5*)
5724  lt_cv_deplibs_check_method=pass_all
5725  ;;
5726
5727solaris*)
5728  lt_cv_deplibs_check_method=pass_all
5729  ;;
5730
5731sysv4 | sysv4.3*)
5732  case $host_vendor in
5733  motorola)
5734    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]'
5735    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5736    ;;
5737  ncr)
5738    lt_cv_deplibs_check_method=pass_all
5739    ;;
5740  sequent)
5741    lt_cv_file_magic_cmd='/bin/file'
5742    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5743    ;;
5744  sni)
5745    lt_cv_file_magic_cmd='/bin/file'
5746    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5747    lt_cv_file_magic_test_file=/lib/libc.so
5748    ;;
5749  siemens)
5750    lt_cv_deplibs_check_method=pass_all
5751    ;;
5752  pc)
5753    lt_cv_deplibs_check_method=pass_all
5754    ;;
5755  esac
5756  ;;
5757
5758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5759  lt_cv_deplibs_check_method=pass_all
5760  ;;
5761esac
5762
5763fi
5764echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5765echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5766file_magic_cmd=$lt_cv_file_magic_cmd
5767deplibs_check_method=$lt_cv_deplibs_check_method
5768test -z "$deplibs_check_method" && deplibs_check_method=unknown
5769
5770
5771
5772
5773# If no C compiler was specified, use CC.
5774LTCC=${LTCC-"$CC"}
5775
5776# If no C compiler flags were specified, use CFLAGS.
5777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5778
5779# Allow CC to be a program name with arguments.
5780compiler=$CC
5781
5782# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5783if test "${enable_libtool_lock+set}" = set; then
5784  enableval="$enable_libtool_lock"
5785
5786fi;
5787test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5788
5789# Some flags need to be propagated to the compiler or linker for good
5790# libtool support.
5791case $host in
5792ia64-*-hpux*)
5793  # Find out which ABI we are using.
5794  echo 'int i;' > conftest.$ac_ext
5795  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796  (eval $ac_compile) 2>&5
5797  ac_status=$?
5798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799  (exit $ac_status); }; then
5800    case `/usr/bin/file conftest.$ac_objext` in
5801    *ELF-32*)
5802      HPUX_IA64_MODE="32"
5803      ;;
5804    *ELF-64*)
5805      HPUX_IA64_MODE="64"
5806      ;;
5807    esac
5808  fi
5809  rm -rf conftest*
5810  ;;
5811*-*-irix6*)
5812  # Find out which ABI we are using.
5813  echo '#line 5813 "configure"' > conftest.$ac_ext
5814  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5815  (eval $ac_compile) 2>&5
5816  ac_status=$?
5817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818  (exit $ac_status); }; then
5819   if test "$lt_cv_prog_gnu_ld" = yes; then
5820    case `/usr/bin/file conftest.$ac_objext` in
5821    *32-bit*)
5822      LD="${LD-ld} -melf32bsmip"
5823      ;;
5824    *N32*)
5825      LD="${LD-ld} -melf32bmipn32"
5826      ;;
5827    *64-bit*)
5828      LD="${LD-ld} -melf64bmip"
5829      ;;
5830    esac
5831   else
5832    case `/usr/bin/file conftest.$ac_objext` in
5833    *32-bit*)
5834      LD="${LD-ld} -32"
5835      ;;
5836    *N32*)
5837      LD="${LD-ld} -n32"
5838      ;;
5839    *64-bit*)
5840      LD="${LD-ld} -64"
5841      ;;
5842    esac
5843   fi
5844  fi
5845  rm -rf conftest*
5846  ;;
5847
5848x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5849  # Find out which ABI we are using.
5850  echo 'int i;' > conftest.$ac_ext
5851  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5852  (eval $ac_compile) 2>&5
5853  ac_status=$?
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); }; then
5856    case `/usr/bin/file conftest.o` in
5857    *32-bit*)
5858      case $host in
5859        x86_64-*linux*)
5860          LD="${LD-ld} -m elf_i386"
5861          ;;
5862        ppc64-*linux*|powerpc64-*linux*)
5863          LD="${LD-ld} -m elf32ppclinux"
5864          ;;
5865        s390x-*linux*)
5866          LD="${LD-ld} -m elf_s390"
5867          ;;
5868        sparc64-*linux*)
5869          LD="${LD-ld} -m elf32_sparc"
5870          ;;
5871      esac
5872      ;;
5873    *64-bit*)
5874      case $host in
5875        x86_64-*linux*)
5876          LD="${LD-ld} -m elf_x86_64"
5877          ;;
5878        ppc*-*linux*|powerpc*-*linux*)
5879          LD="${LD-ld} -m elf64ppc"
5880          ;;
5881        s390*-*linux*)
5882          LD="${LD-ld} -m elf64_s390"
5883          ;;
5884        sparc*-*linux*)
5885          LD="${LD-ld} -m elf64_sparc"
5886          ;;
5887      esac
5888      ;;
5889    esac
5890  fi
5891  rm -rf conftest*
5892  ;;
5893
5894*-*-sco3.2v5*)
5895  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5896  SAVE_CFLAGS="$CFLAGS"
5897  CFLAGS="$CFLAGS -belf"
5898  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5899echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5900if test "${lt_cv_cc_needs_belf+set}" = set; then
5901  echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903  ac_ext=c
5904ac_cpp='$CPP $CPPFLAGS'
5905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5907ac_compiler_gnu=$ac_cv_c_compiler_gnu
5908
5909     cat >conftest.$ac_ext <<_ACEOF
5910/* confdefs.h.  */
5911_ACEOF
5912cat confdefs.h >>conftest.$ac_ext
5913cat >>conftest.$ac_ext <<_ACEOF
5914/* end confdefs.h.  */
5915
5916int
5917main ()
5918{
5919
5920  ;
5921  return 0;
5922}
5923_ACEOF
5924rm -f conftest.$ac_objext conftest$ac_exeext
5925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926  (eval $ac_link) 2>conftest.er1
5927  ac_status=$?
5928  grep -v '^ *+' conftest.er1 >conftest.err
5929  rm -f conftest.er1
5930  cat conftest.err >&5
5931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932  (exit $ac_status); } &&
5933         { ac_try='test -z "$ac_c_werror_flag"
5934                         || test ! -s conftest.err'
5935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5936  (eval $ac_try) 2>&5
5937  ac_status=$?
5938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939  (exit $ac_status); }; } &&
5940         { ac_try='test -s conftest$ac_exeext'
5941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942  (eval $ac_try) 2>&5
5943  ac_status=$?
5944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945  (exit $ac_status); }; }; then
5946  lt_cv_cc_needs_belf=yes
5947else
5948  echo "$as_me: failed program was:" >&5
5949sed 's/^/| /' conftest.$ac_ext >&5
5950
5951lt_cv_cc_needs_belf=no
5952fi
5953rm -f conftest.err conftest.$ac_objext \
5954      conftest$ac_exeext conftest.$ac_ext
5955     ac_ext=c
5956ac_cpp='$CPP $CPPFLAGS'
5957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959ac_compiler_gnu=$ac_cv_c_compiler_gnu
5960
5961fi
5962echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5963echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5964  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5965    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5966    CFLAGS="$SAVE_CFLAGS"
5967  fi
5968  ;;
5969sparc*-*solaris*)
5970  # Find out which ABI we are using.
5971  echo 'int i;' > conftest.$ac_ext
5972  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973  (eval $ac_compile) 2>&5
5974  ac_status=$?
5975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); }; then
5977    case `/usr/bin/file conftest.o` in
5978    *64-bit*)
5979      case $lt_cv_prog_gnu_ld in
5980      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5981      *)    LD="${LD-ld} -64" ;;
5982      esac
5983      ;;
5984    esac
5985  fi
5986  rm -rf conftest*
5987  ;;
5988
5989
5990esac
5991
5992need_locks="$enable_libtool_lock"
5993
5994
5995ac_ext=c
5996ac_cpp='$CPP $CPPFLAGS'
5997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5999ac_compiler_gnu=$ac_cv_c_compiler_gnu
6000echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6001echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6002# On Suns, sometimes $CPP names a directory.
6003if test -n "$CPP" && test -d "$CPP"; then
6004  CPP=
6005fi
6006if test -z "$CPP"; then
6007  if test "${ac_cv_prog_CPP+set}" = set; then
6008  echo $ECHO_N "(cached) $ECHO_C" >&6
6009else
6010      # Double quotes because CPP needs to be expanded
6011    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6012    do
6013      ac_preproc_ok=false
6014for ac_c_preproc_warn_flag in '' yes
6015do
6016  # Use a header file that comes with gcc, so configuring glibc
6017  # with a fresh cross-compiler works.
6018  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6019  # <limits.h> exists even on freestanding compilers.
6020  # On the NeXT, cc -E runs the code through the compiler's parser,
6021  # not just through cpp. "Syntax error" is here to catch this case.
6022  cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h.  */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h.  */
6028#ifdef __STDC__
6029# include <limits.h>
6030#else
6031# include <assert.h>
6032#endif
6033                     Syntax error
6034_ACEOF
6035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6036  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6037  ac_status=$?
6038  grep -v '^ *+' conftest.er1 >conftest.err
6039  rm -f conftest.er1
6040  cat conftest.err >&5
6041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042  (exit $ac_status); } >/dev/null; then
6043  if test -s conftest.err; then
6044    ac_cpp_err=$ac_c_preproc_warn_flag
6045    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6046  else
6047    ac_cpp_err=
6048  fi
6049else
6050  ac_cpp_err=yes
6051fi
6052if test -z "$ac_cpp_err"; then
6053  :
6054else
6055  echo "$as_me: failed program was:" >&5
6056sed 's/^/| /' conftest.$ac_ext >&5
6057
6058  # Broken: fails on valid input.
6059continue
6060fi
6061rm -f conftest.err conftest.$ac_ext
6062
6063  # OK, works on sane cases.  Now check whether non-existent headers
6064  # can be detected and how.
6065  cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h.  */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h.  */
6071#include <ac_nonexistent.h>
6072_ACEOF
6073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6074  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6075  ac_status=$?
6076  grep -v '^ *+' conftest.er1 >conftest.err
6077  rm -f conftest.er1
6078  cat conftest.err >&5
6079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080  (exit $ac_status); } >/dev/null; then
6081  if test -s conftest.err; then
6082    ac_cpp_err=$ac_c_preproc_warn_flag
6083    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6084  else
6085    ac_cpp_err=
6086  fi
6087else
6088  ac_cpp_err=yes
6089fi
6090if test -z "$ac_cpp_err"; then
6091  # Broken: success on invalid input.
6092continue
6093else
6094  echo "$as_me: failed program was:" >&5
6095sed 's/^/| /' conftest.$ac_ext >&5
6096
6097  # Passes both tests.
6098ac_preproc_ok=:
6099break
6100fi
6101rm -f conftest.err conftest.$ac_ext
6102
6103done
6104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6105rm -f conftest.err conftest.$ac_ext
6106if $ac_preproc_ok; then
6107  break
6108fi
6109
6110    done
6111    ac_cv_prog_CPP=$CPP
6112
6113fi
6114  CPP=$ac_cv_prog_CPP
6115else
6116  ac_cv_prog_CPP=$CPP
6117fi
6118echo "$as_me:$LINENO: result: $CPP" >&5
6119echo "${ECHO_T}$CPP" >&6
6120ac_preproc_ok=false
6121for ac_c_preproc_warn_flag in '' yes
6122do
6123  # Use a header file that comes with gcc, so configuring glibc
6124  # with a fresh cross-compiler works.
6125  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6126  # <limits.h> exists even on freestanding compilers.
6127  # On the NeXT, cc -E runs the code through the compiler's parser,
6128  # not just through cpp. "Syntax error" is here to catch this case.
6129  cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h.  */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h.  */
6135#ifdef __STDC__
6136# include <limits.h>
6137#else
6138# include <assert.h>
6139#endif
6140                     Syntax error
6141_ACEOF
6142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6143  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6144  ac_status=$?
6145  grep -v '^ *+' conftest.er1 >conftest.err
6146  rm -f conftest.er1
6147  cat conftest.err >&5
6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); } >/dev/null; then
6150  if test -s conftest.err; then
6151    ac_cpp_err=$ac_c_preproc_warn_flag
6152    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6153  else
6154    ac_cpp_err=
6155  fi
6156else
6157  ac_cpp_err=yes
6158fi
6159if test -z "$ac_cpp_err"; then
6160  :
6161else
6162  echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165  # Broken: fails on valid input.
6166continue
6167fi
6168rm -f conftest.err conftest.$ac_ext
6169
6170  # OK, works on sane cases.  Now check whether non-existent headers
6171  # can be detected and how.
6172  cat >conftest.$ac_ext <<_ACEOF
6173/* confdefs.h.  */
6174_ACEOF
6175cat confdefs.h >>conftest.$ac_ext
6176cat >>conftest.$ac_ext <<_ACEOF
6177/* end confdefs.h.  */
6178#include <ac_nonexistent.h>
6179_ACEOF
6180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6181  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6182  ac_status=$?
6183  grep -v '^ *+' conftest.er1 >conftest.err
6184  rm -f conftest.er1
6185  cat conftest.err >&5
6186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187  (exit $ac_status); } >/dev/null; then
6188  if test -s conftest.err; then
6189    ac_cpp_err=$ac_c_preproc_warn_flag
6190    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6191  else
6192    ac_cpp_err=
6193  fi
6194else
6195  ac_cpp_err=yes
6196fi
6197if test -z "$ac_cpp_err"; then
6198  # Broken: success on invalid input.
6199continue
6200else
6201  echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204  # Passes both tests.
6205ac_preproc_ok=:
6206break
6207fi
6208rm -f conftest.err conftest.$ac_ext
6209
6210done
6211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6212rm -f conftest.err conftest.$ac_ext
6213if $ac_preproc_ok; then
6214  :
6215else
6216  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6217See \`config.log' for more details." >&5
6218echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6219See \`config.log' for more details." >&2;}
6220   { (exit 1); exit 1; }; }
6221fi
6222
6223ac_ext=c
6224ac_cpp='$CPP $CPPFLAGS'
6225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228
6229
6230echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6231echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6232if test "${ac_cv_header_stdc+set}" = set; then
6233  echo $ECHO_N "(cached) $ECHO_C" >&6
6234else
6235  cat >conftest.$ac_ext <<_ACEOF
6236/* confdefs.h.  */
6237_ACEOF
6238cat confdefs.h >>conftest.$ac_ext
6239cat >>conftest.$ac_ext <<_ACEOF
6240/* end confdefs.h.  */
6241#include <stdlib.h>
6242#include <stdarg.h>
6243#include <string.h>
6244#include <float.h>
6245
6246int
6247main ()
6248{
6249
6250  ;
6251  return 0;
6252}
6253_ACEOF
6254rm -f conftest.$ac_objext
6255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256  (eval $ac_compile) 2>conftest.er1
6257  ac_status=$?
6258  grep -v '^ *+' conftest.er1 >conftest.err
6259  rm -f conftest.er1
6260  cat conftest.err >&5
6261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262  (exit $ac_status); } &&
6263         { ac_try='test -z "$ac_c_werror_flag"
6264                         || test ! -s conftest.err'
6265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266  (eval $ac_try) 2>&5
6267  ac_status=$?
6268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269  (exit $ac_status); }; } &&
6270         { ac_try='test -s conftest.$ac_objext'
6271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6272  (eval $ac_try) 2>&5
6273  ac_status=$?
6274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275  (exit $ac_status); }; }; then
6276  ac_cv_header_stdc=yes
6277else
6278  echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281ac_cv_header_stdc=no
6282fi
6283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6284
6285if test $ac_cv_header_stdc = yes; then
6286  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6287  cat >conftest.$ac_ext <<_ACEOF
6288/* confdefs.h.  */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h.  */
6293#include <string.h>
6294
6295_ACEOF
6296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6297  $EGREP "memchr" >/dev/null 2>&1; then
6298  :
6299else
6300  ac_cv_header_stdc=no
6301fi
6302rm -f conftest*
6303
6304fi
6305
6306if test $ac_cv_header_stdc = yes; then
6307  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6308  cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h.  */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h.  */
6314#include <stdlib.h>
6315
6316_ACEOF
6317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318  $EGREP "free" >/dev/null 2>&1; then
6319  :
6320else
6321  ac_cv_header_stdc=no
6322fi
6323rm -f conftest*
6324
6325fi
6326
6327if test $ac_cv_header_stdc = yes; then
6328  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6329  if test "$cross_compiling" = yes; then
6330  :
6331else
6332  cat >conftest.$ac_ext <<_ACEOF
6333/* confdefs.h.  */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
6337/* end confdefs.h.  */
6338#include <ctype.h>
6339#if ((' ' & 0x0FF) == 0x020)
6340# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6341# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6342#else
6343# define ISLOWER(c) \
6344                   (('a' <= (c) && (c) <= 'i') \
6345                     || ('j' <= (c) && (c) <= 'r') \
6346                     || ('s' <= (c) && (c) <= 'z'))
6347# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6348#endif
6349
6350#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6351int
6352main ()
6353{
6354  int i;
6355  for (i = 0; i < 256; i++)
6356    if (XOR (islower (i), ISLOWER (i))
6357        || toupper (i) != TOUPPER (i))
6358      exit(2);
6359  exit (0);
6360}
6361_ACEOF
6362rm -f conftest$ac_exeext
6363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364  (eval $ac_link) 2>&5
6365  ac_status=$?
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369  (eval $ac_try) 2>&5
6370  ac_status=$?
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); }; }; then
6373  :
6374else
6375  echo "$as_me: program exited with status $ac_status" >&5
6376echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379( exit $ac_status )
6380ac_cv_header_stdc=no
6381fi
6382rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6383fi
6384fi
6385fi
6386echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6387echo "${ECHO_T}$ac_cv_header_stdc" >&6
6388if test $ac_cv_header_stdc = yes; then
6389
6390cat >>confdefs.h <<\_ACEOF
6391#define STDC_HEADERS 1
6392_ACEOF
6393
6394fi
6395
6396# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6407                  inttypes.h stdint.h unistd.h
6408do
6409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410echo "$as_me:$LINENO: checking for $ac_header" >&5
6411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6412if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413  echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415  cat >conftest.$ac_ext <<_ACEOF
6416/* confdefs.h.  */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h.  */
6421$ac_includes_default
6422
6423#include <$ac_header>
6424_ACEOF
6425rm -f conftest.$ac_objext
6426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427  (eval $ac_compile) 2>conftest.er1
6428  ac_status=$?
6429  grep -v '^ *+' conftest.er1 >conftest.err
6430  rm -f conftest.er1
6431  cat conftest.err >&5
6432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433  (exit $ac_status); } &&
6434         { ac_try='test -z "$ac_c_werror_flag"
6435                         || test ! -s conftest.err'
6436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437  (eval $ac_try) 2>&5
6438  ac_status=$?
6439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440  (exit $ac_status); }; } &&
6441         { ac_try='test -s conftest.$ac_objext'
6442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443  (eval $ac_try) 2>&5
6444  ac_status=$?
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); }; }; then
6447  eval "$as_ac_Header=yes"
6448else
6449  echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452eval "$as_ac_Header=no"
6453fi
6454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6455fi
6456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6457echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6458if test `eval echo '${'$as_ac_Header'}'` = yes; then
6459  cat >>confdefs.h <<_ACEOF
6460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6461_ACEOF
6462
6463fi
6464
6465done
6466
6467
6468
6469for ac_header in dlfcn.h
6470do
6471as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6472if eval "test \"\${$as_ac_Header+set}\" = set"; then
6473  echo "$as_me:$LINENO: checking for $ac_header" >&5
6474echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6475if eval "test \"\${$as_ac_Header+set}\" = set"; then
6476  echo $ECHO_N "(cached) $ECHO_C" >&6
6477fi
6478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6480else
6481  # Is the header compilable?
6482echo "$as_me:$LINENO: checking $ac_header usability" >&5
6483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6484cat >conftest.$ac_ext <<_ACEOF
6485/* confdefs.h.  */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h.  */
6490$ac_includes_default
6491#include <$ac_header>
6492_ACEOF
6493rm -f conftest.$ac_objext
6494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6495  (eval $ac_compile) 2>conftest.er1
6496  ac_status=$?
6497  grep -v '^ *+' conftest.er1 >conftest.err
6498  rm -f conftest.er1
6499  cat conftest.err >&5
6500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501  (exit $ac_status); } &&
6502         { ac_try='test -z "$ac_c_werror_flag"
6503                         || test ! -s conftest.err'
6504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6505  (eval $ac_try) 2>&5
6506  ac_status=$?
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); }; } &&
6509         { ac_try='test -s conftest.$ac_objext'
6510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511  (eval $ac_try) 2>&5
6512  ac_status=$?
6513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514  (exit $ac_status); }; }; then
6515  ac_header_compiler=yes
6516else
6517  echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520ac_header_compiler=no
6521fi
6522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6523echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6524echo "${ECHO_T}$ac_header_compiler" >&6
6525
6526# Is the header present?
6527echo "$as_me:$LINENO: checking $ac_header presence" >&5
6528echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6529cat >conftest.$ac_ext <<_ACEOF
6530/* confdefs.h.  */
6531_ACEOF
6532cat confdefs.h >>conftest.$ac_ext
6533cat >>conftest.$ac_ext <<_ACEOF
6534/* end confdefs.h.  */
6535#include <$ac_header>
6536_ACEOF
6537if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6538  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6539  ac_status=$?
6540  grep -v '^ *+' conftest.er1 >conftest.err
6541  rm -f conftest.er1
6542  cat conftest.err >&5
6543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); } >/dev/null; then
6545  if test -s conftest.err; then
6546    ac_cpp_err=$ac_c_preproc_warn_flag
6547    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6548  else
6549    ac_cpp_err=
6550  fi
6551else
6552  ac_cpp_err=yes
6553fi
6554if test -z "$ac_cpp_err"; then
6555  ac_header_preproc=yes
6556else
6557  echo "$as_me: failed program was:" >&5
6558sed 's/^/| /' conftest.$ac_ext >&5
6559
6560  ac_header_preproc=no
6561fi
6562rm -f conftest.err conftest.$ac_ext
6563echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6564echo "${ECHO_T}$ac_header_preproc" >&6
6565
6566# So?  What about this header?
6567case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6568  yes:no: )
6569    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6570echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6571    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6572echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6573    ac_header_preproc=yes
6574    ;;
6575  no:yes:* )
6576    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6577echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6578    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6579echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6580    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6581echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6582    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6583echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6584    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6585echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6586    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6587echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6588    (
6589      cat <<\_ASBOX
6590## ----------------------------------- ##
6591## Report this to clp@list.coin-or.org ##
6592## ----------------------------------- ##
6593_ASBOX
6594    ) |
6595      sed "s/^/$as_me: WARNING:     /" >&2
6596    ;;
6597esac
6598echo "$as_me:$LINENO: checking for $ac_header" >&5
6599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6600if eval "test \"\${$as_ac_Header+set}\" = set"; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  eval "$as_ac_Header=\$ac_header_preproc"
6604fi
6605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6607
6608fi
6609if test `eval echo '${'$as_ac_Header'}'` = yes; then
6610  cat >>confdefs.h <<_ACEOF
6611#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6612_ACEOF
6613
6614fi
6615
6616done
6617
6618
6619
6620if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6621    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6622    (test "X$CXX" != "Xg++"))) ; then
6623  ac_ext=cc
6624ac_cpp='$CXXCPP $CPPFLAGS'
6625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6628echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6629echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6630if test -z "$CXXCPP"; then
6631  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6632  echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634      # Double quotes because CXXCPP needs to be expanded
6635    for CXXCPP in "$CXX -E" "/lib/cpp"
6636    do
6637      ac_preproc_ok=false
6638for ac_cxx_preproc_warn_flag in '' yes
6639do
6640  # Use a header file that comes with gcc, so configuring glibc
6641  # with a fresh cross-compiler works.
6642  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6643  # <limits.h> exists even on freestanding compilers.
6644  # On the NeXT, cc -E runs the code through the compiler's parser,
6645  # not just through cpp. "Syntax error" is here to catch this case.
6646  cat >conftest.$ac_ext <<_ACEOF
6647/* confdefs.h.  */
6648_ACEOF
6649cat confdefs.h >>conftest.$ac_ext
6650cat >>conftest.$ac_ext <<_ACEOF
6651/* end confdefs.h.  */
6652#ifdef __STDC__
6653# include <limits.h>
6654#else
6655# include <assert.h>
6656#endif
6657                     Syntax error
6658_ACEOF
6659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6661  ac_status=$?
6662  grep -v '^ *+' conftest.er1 >conftest.err
6663  rm -f conftest.er1
6664  cat conftest.err >&5
6665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666  (exit $ac_status); } >/dev/null; then
6667  if test -s conftest.err; then
6668    ac_cpp_err=$ac_cxx_preproc_warn_flag
6669    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6670  else
6671    ac_cpp_err=
6672  fi
6673else
6674  ac_cpp_err=yes
6675fi
6676if test -z "$ac_cpp_err"; then
6677  :
6678else
6679  echo "$as_me: failed program was:" >&5
6680sed 's/^/| /' conftest.$ac_ext >&5
6681
6682  # Broken: fails on valid input.
6683continue
6684fi
6685rm -f conftest.err conftest.$ac_ext
6686
6687  # OK, works on sane cases.  Now check whether non-existent headers
6688  # can be detected and how.
6689  cat >conftest.$ac_ext <<_ACEOF
6690/* confdefs.h.  */
6691_ACEOF
6692cat confdefs.h >>conftest.$ac_ext
6693cat >>conftest.$ac_ext <<_ACEOF
6694/* end confdefs.h.  */
6695#include <ac_nonexistent.h>
6696_ACEOF
6697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6698  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6699  ac_status=$?
6700  grep -v '^ *+' conftest.er1 >conftest.err
6701  rm -f conftest.er1
6702  cat conftest.err >&5
6703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704  (exit $ac_status); } >/dev/null; then
6705  if test -s conftest.err; then
6706    ac_cpp_err=$ac_cxx_preproc_warn_flag
6707    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6708  else
6709    ac_cpp_err=
6710  fi
6711else
6712  ac_cpp_err=yes
6713fi
6714if test -z "$ac_cpp_err"; then
6715  # Broken: success on invalid input.
6716continue
6717else
6718  echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721  # Passes both tests.
6722ac_preproc_ok=:
6723break
6724fi
6725rm -f conftest.err conftest.$ac_ext
6726
6727done
6728# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6729rm -f conftest.err conftest.$ac_ext
6730if $ac_preproc_ok; then
6731  break
6732fi
6733
6734    done
6735    ac_cv_prog_CXXCPP=$CXXCPP
6736
6737fi
6738  CXXCPP=$ac_cv_prog_CXXCPP
6739else
6740  ac_cv_prog_CXXCPP=$CXXCPP
6741fi
6742echo "$as_me:$LINENO: result: $CXXCPP" >&5
6743echo "${ECHO_T}$CXXCPP" >&6
6744ac_preproc_ok=false
6745for ac_cxx_preproc_warn_flag in '' yes
6746do
6747  # Use a header file that comes with gcc, so configuring glibc
6748  # with a fresh cross-compiler works.
6749  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6750  # <limits.h> exists even on freestanding compilers.
6751  # On the NeXT, cc -E runs the code through the compiler's parser,
6752  # not just through cpp. "Syntax error" is here to catch this case.
6753  cat >conftest.$ac_ext <<_ACEOF
6754/* confdefs.h.  */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h.  */
6759#ifdef __STDC__
6760# include <limits.h>
6761#else
6762# include <assert.h>
6763#endif
6764                     Syntax error
6765_ACEOF
6766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6767  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6768  ac_status=$?
6769  grep -v '^ *+' conftest.er1 >conftest.err
6770  rm -f conftest.er1
6771  cat conftest.err >&5
6772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773  (exit $ac_status); } >/dev/null; then
6774  if test -s conftest.err; then
6775    ac_cpp_err=$ac_cxx_preproc_warn_flag
6776    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6777  else
6778    ac_cpp_err=
6779  fi
6780else
6781  ac_cpp_err=yes
6782fi
6783if test -z "$ac_cpp_err"; then
6784  :
6785else
6786  echo "$as_me: failed program was:" >&5
6787sed 's/^/| /' conftest.$ac_ext >&5
6788
6789  # Broken: fails on valid input.
6790continue
6791fi
6792rm -f conftest.err conftest.$ac_ext
6793
6794  # OK, works on sane cases.  Now check whether non-existent headers
6795  # can be detected and how.
6796  cat >conftest.$ac_ext <<_ACEOF
6797/* confdefs.h.  */
6798_ACEOF
6799cat confdefs.h >>conftest.$ac_ext
6800cat >>conftest.$ac_ext <<_ACEOF
6801/* end confdefs.h.  */
6802#include <ac_nonexistent.h>
6803_ACEOF
6804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6806  ac_status=$?
6807  grep -v '^ *+' conftest.er1 >conftest.err
6808  rm -f conftest.er1
6809  cat conftest.err >&5
6810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811  (exit $ac_status); } >/dev/null; then
6812  if test -s conftest.err; then
6813    ac_cpp_err=$ac_cxx_preproc_warn_flag
6814    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6815  else
6816    ac_cpp_err=
6817  fi
6818else
6819  ac_cpp_err=yes
6820fi
6821if test -z "$ac_cpp_err"; then
6822  # Broken: success on invalid input.
6823continue
6824else
6825  echo "$as_me: failed program was:" >&5
6826sed 's/^/| /' conftest.$ac_ext >&5
6827
6828  # Passes both tests.
6829ac_preproc_ok=:
6830break
6831fi
6832rm -f conftest.err conftest.$ac_ext
6833
6834done
6835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6836rm -f conftest.err conftest.$ac_ext
6837if $ac_preproc_ok; then
6838  :
6839else
6840  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6841See \`config.log' for more details." >&5
6842echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6843See \`config.log' for more details." >&2;}
6844   { (exit 1); exit 1; }; }
6845fi
6846
6847ac_ext=cc
6848ac_cpp='$CXXCPP $CPPFLAGS'
6849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6852
6853fi
6854
6855ac_ext=f
6856ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6857ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6859if test -n "$ac_tool_prefix"; then
6860  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6861  do
6862    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6863set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6864echo "$as_me:$LINENO: checking for $ac_word" >&5
6865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6866if test "${ac_cv_prog_F77+set}" = set; then
6867  echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869  if test -n "$F77"; then
6870  ac_cv_prog_F77="$F77" # Let the user override the test.
6871else
6872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875  IFS=$as_save_IFS
6876  test -z "$as_dir" && as_dir=.
6877  for ac_exec_ext in '' $ac_executable_extensions; do
6878  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6880    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881    break 2
6882  fi
6883done
6884done
6885
6886fi
6887fi
6888F77=$ac_cv_prog_F77
6889if test -n "$F77"; then
6890  echo "$as_me:$LINENO: result: $F77" >&5
6891echo "${ECHO_T}$F77" >&6
6892else
6893  echo "$as_me:$LINENO: result: no" >&5
6894echo "${ECHO_T}no" >&6
6895fi
6896
6897    test -n "$F77" && break
6898  done
6899fi
6900if test -z "$F77"; then
6901  ac_ct_F77=$F77
6902  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6903do
6904  # Extract the first word of "$ac_prog", so it can be a program name with args.
6905set dummy $ac_prog; ac_word=$2
6906echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6908if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6909  echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911  if test -n "$ac_ct_F77"; then
6912  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6913else
6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917  IFS=$as_save_IFS
6918  test -z "$as_dir" && as_dir=.
6919  for ac_exec_ext in '' $ac_executable_extensions; do
6920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921    ac_cv_prog_ac_ct_F77="$ac_prog"
6922    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923    break 2
6924  fi
6925done
6926done
6927
6928fi
6929fi
6930ac_ct_F77=$ac_cv_prog_ac_ct_F77
6931if test -n "$ac_ct_F77"; then
6932  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6933echo "${ECHO_T}$ac_ct_F77" >&6
6934else
6935  echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
6937fi
6938
6939  test -n "$ac_ct_F77" && break
6940done
6941
6942  F77=$ac_ct_F77
6943fi
6944
6945
6946# Provide some information about the compiler.
6947echo "$as_me:6947:" \
6948     "checking for Fortran 77 compiler version" >&5
6949ac_compiler=`set X $ac_compile; echo $2`
6950{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6951  (eval $ac_compiler --version </dev/null >&5) 2>&5
6952  ac_status=$?
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); }
6955{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6956  (eval $ac_compiler -v </dev/null >&5) 2>&5
6957  ac_status=$?
6958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959  (exit $ac_status); }
6960{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6961  (eval $ac_compiler -V </dev/null >&5) 2>&5
6962  ac_status=$?
6963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964  (exit $ac_status); }
6965rm -f a.out
6966
6967# If we don't use `.F' as extension, the preprocessor is not run on the
6968# input file.  (Note that this only needs to work for GNU compilers.)
6969ac_save_ext=$ac_ext
6970ac_ext=F
6971echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6972echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6973if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6974  echo $ECHO_N "(cached) $ECHO_C" >&6
6975else
6976  cat >conftest.$ac_ext <<_ACEOF
6977      program main
6978#ifndef __GNUC__
6979       choke me
6980#endif
6981
6982      end
6983_ACEOF
6984rm -f conftest.$ac_objext
6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6986  (eval $ac_compile) 2>conftest.er1
6987  ac_status=$?
6988  grep -v '^ *+' conftest.er1 >conftest.err
6989  rm -f conftest.er1
6990  cat conftest.err >&5
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); } &&
6993         { ac_try='test -z "$ac_f77_werror_flag"
6994                         || test ! -s conftest.err'
6995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996  (eval $ac_try) 2>&5
6997  ac_status=$?
6998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999  (exit $ac_status); }; } &&
7000         { ac_try='test -s conftest.$ac_objext'
7001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002  (eval $ac_try) 2>&5
7003  ac_status=$?
7004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005  (exit $ac_status); }; }; then
7006  ac_compiler_gnu=yes
7007else
7008  echo "$as_me: failed program was:" >&5
7009sed 's/^/| /' conftest.$ac_ext >&5
7010
7011ac_compiler_gnu=no
7012fi
7013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7014ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7015
7016fi
7017echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7018echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7019ac_ext=$ac_save_ext
7020ac_test_FFLAGS=${FFLAGS+set}
7021ac_save_FFLAGS=$FFLAGS
7022FFLAGS=
7023echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7024echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7025if test "${ac_cv_prog_f77_g+set}" = set; then
7026  echo $ECHO_N "(cached) $ECHO_C" >&6
7027else
7028  FFLAGS=-g
7029cat >conftest.$ac_ext <<_ACEOF
7030      program main
7031
7032      end
7033_ACEOF
7034rm -f conftest.$ac_objext
7035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036  (eval $ac_compile) 2>conftest.er1
7037  ac_status=$?
7038  grep -v '^ *+' conftest.er1 >conftest.err
7039  rm -f conftest.er1
7040  cat conftest.err >&5
7041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042  (exit $ac_status); } &&
7043         { ac_try='test -z "$ac_f77_werror_flag"
7044                         || test ! -s conftest.err'
7045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046  (eval $ac_try) 2>&5
7047  ac_status=$?
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); }; } &&
7050         { ac_try='test -s conftest.$ac_objext'
7051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052  (eval $ac_try) 2>&5
7053  ac_status=$?
7054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055  (exit $ac_status); }; }; then
7056  ac_cv_prog_f77_g=yes
7057else
7058  echo "$as_me: failed program was:" >&5
7059sed 's/^/| /' conftest.$ac_ext >&5
7060
7061ac_cv_prog_f77_g=no
7062fi
7063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064
7065fi
7066echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7067echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7068if test "$ac_test_FFLAGS" = set; then
7069  FFLAGS=$ac_save_FFLAGS
7070elif test $ac_cv_prog_f77_g = yes; then
7071  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7072    FFLAGS="-g -O2"
7073  else
7074    FFLAGS="-g"
7075  fi
7076else
7077  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7078    FFLAGS="-O2"
7079  else
7080    FFLAGS=
7081  fi
7082fi
7083
7084G77=`test $ac_compiler_gnu = yes && echo yes`
7085ac_ext=c
7086ac_cpp='$CPP $CPPFLAGS'
7087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089ac_compiler_gnu=$ac_cv_c_compiler_gnu
7090
7091
7092
7093# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7094
7095# find the maximum length of command line arguments
7096echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7097echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7098if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7099  echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101    i=0
7102  teststring="ABCD"
7103
7104  case $build_os in
7105  msdosdjgpp*)
7106    # On DJGPP, this test can blow up pretty badly due to problems in libc
7107    # (any single argument exceeding 2000 bytes causes a buffer overrun
7108    # during glob expansion).  Even if it were fixed, the result of this
7109    # check would be larger than it should be.
7110    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7111    ;;
7112
7113  gnu*)
7114    # Under GNU Hurd, this test is not required because there is
7115    # no limit to the length of command line arguments.
7116    # Libtool will interpret -1 as no limit whatsoever
7117    lt_cv_sys_max_cmd_len=-1;
7118    ;;
7119
7120  cygwin* | mingw*)
7121    # On Win9x/ME, this test blows up -- it succeeds, but takes
7122    # about 5 minutes as the teststring grows exponentially.
7123    # Worse, since 9x/ME are not pre-emptively multitasking,
7124    # you end up with a "frozen" computer, even though with patience
7125    # the test eventually succeeds (with a max line length of 256k).
7126    # Instead, let's just punt: use the minimum linelength reported by
7127    # all of the supported platforms: 8192 (on NT/2K/XP).
7128    lt_cv_sys_max_cmd_len=8192;
7129    ;;
7130
7131  amigaos*)
7132    # On AmigaOS with pdksh, this test takes hours, literally.
7133    # So we just punt and use a minimum line length of 8192.
7134    lt_cv_sys_max_cmd_len=8192;
7135    ;;
7136
7137  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7138    # This has been around since 386BSD, at least.  Likely further.
7139    if test -x /sbin/sysctl; then
7140      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7141    elif test -x /usr/sbin/sysctl; then
7142      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7143    else
7144      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7145    fi
7146    # And add a safety zone
7147    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7148    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7149    ;;
7150
7151  interix*)
7152    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7153    lt_cv_sys_max_cmd_len=196608
7154    ;;
7155
7156  osf*)
7157    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7158    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7159    # nice to cause kernel panics so lets avoid the loop below.
7160    # First set a reasonable default.
7161    lt_cv_sys_max_cmd_len=16384
7162    #
7163    if test -x /sbin/sysconfig; then
7164      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7165        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7166      esac
7167    fi
7168    ;;
7169  sco3.2v5*)
7170    lt_cv_sys_max_cmd_len=102400
7171    ;;
7172  sysv5* | sco5v6* | sysv4.2uw2*)
7173    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7174    if test -n "$kargmax"; then
7175      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7176    else
7177      lt_cv_sys_max_cmd_len=32768
7178    fi
7179    ;;
7180  *)
7181    # If test is not a shell built-in, we'll probably end up computing a
7182    # maximum length that is only half of the actual maximum length, but
7183    # we can't tell.
7184    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7185    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7186               = "XX$teststring") >/dev/null 2>&1 &&
7187            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7188            lt_cv_sys_max_cmd_len=$new_result &&
7189            test $i != 17 # 1/2 MB should be enough
7190    do
7191      i=`expr $i + 1`
7192      teststring=$teststring$teststring
7193    done
7194    teststring=
7195    # Add a significant safety factor because C++ compilers can tack on massive
7196    # amounts of additional arguments before passing them to the linker.
7197    # It appears as though 1/2 is a usable value.
7198    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7199    ;;
7200  esac
7201
7202fi
7203
7204if test -n $lt_cv_sys_max_cmd_len ; then
7205  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7206echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7207else
7208  echo "$as_me:$LINENO: result: none" >&5
7209echo "${ECHO_T}none" >&6
7210fi
7211
7212
7213
7214
7215# Check for command to grab the raw symbol name followed by C symbol from nm.
7216echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7217echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7218if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7219  echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221
7222# These are sane defaults that work on at least a few old systems.
7223# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7224
7225# Character class describing NM global symbol codes.
7226symcode='[BCDEGRST]'
7227
7228# Regexp to match symbols that can be accessed directly from C.
7229sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7230
7231# Transform an extracted symbol line into a proper C declaration
7232lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7233
7234# Transform an extracted symbol line into symbol name and symbol address
7235lt_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'"
7236
7237# Define system-specific variables.
7238case $host_os in
7239aix*)
7240  symcode='[BCDT]'
7241  ;;
7242cygwin* | mingw* | pw32*)
7243  symcode='[ABCDGISTW]'
7244  ;;
7245hpux*) # Its linker distinguishes data from code symbols
7246  if test "$host_cpu" = ia64; then
7247    symcode='[ABCDEGRST]'
7248  fi
7249  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7250  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'"
7251  ;;
7252linux*)
7253  if test "$host_cpu" = ia64; then
7254    symcode='[ABCDGIRSTW]'
7255    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7256    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'"
7257  fi
7258  ;;
7259irix* | nonstopux*)
7260  symcode='[BCDEGRST]'
7261  ;;
7262osf*)
7263  symcode='[BCDEGQRST]'
7264  ;;
7265solaris*)
7266  symcode='[BDRT]'
7267  ;;
7268sco3.2v5*)
7269  symcode='[DT]'
7270  ;;
7271sysv4.2uw2*)
7272  symcode='[DT]'
7273  ;;
7274sysv5* | sco5v6* | unixware* | OpenUNIX*)
7275  symcode='[ABDT]'
7276  ;;
7277sysv4)
7278  symcode='[DFNSTU]'
7279  ;;
7280esac
7281
7282# Handle CRLF in mingw tool chain
7283opt_cr=
7284case $build_os in
7285mingw*)
7286  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7287  ;;
7288esac
7289
7290# If we're using GNU nm, then use its standard symbol codes.
7291case `$NM -V 2>&1` in
7292*GNU* | *'with BFD'*)
7293  symcode='[ABCDGIRSTW]' ;;
7294esac
7295
7296# Try without a prefix undercore, then with it.
7297for ac_symprfx in "" "_"; do
7298
7299  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7300  symxfrm="\\1 $ac_symprfx\\2 \\2"
7301
7302  # Write the raw and C identifiers.
7303  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7304
7305  # Check to see that the pipe works correctly.
7306  pipe_works=no
7307
7308  rm -f conftest*
7309  cat > conftest.$ac_ext <<EOF
7310#ifdef __cplusplus
7311extern "C" {
7312#endif
7313char nm_test_var;
7314void nm_test_func(){}
7315#ifdef __cplusplus
7316}
7317#endif
7318int main(){nm_test_var='a';nm_test_func();return(0);}
7319EOF
7320
7321  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7322  (eval $ac_compile) 2>&5
7323  ac_status=$?
7324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325  (exit $ac_status); }; then
7326    # Now try to grab the symbols.
7327    nlist=conftest.nm
7328    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7329  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7330  ac_status=$?
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); } && test -s "$nlist"; then
7333      # Try sorting and uniquifying the output.
7334      if sort "$nlist" | uniq > "$nlist"T; then
7335        mv -f "$nlist"T "$nlist"
7336      else
7337        rm -f "$nlist"T
7338      fi
7339
7340      # Make sure that we snagged all the symbols we need.
7341      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7342        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7343          cat <<EOF > conftest.$ac_ext
7344#ifdef __cplusplus
7345extern "C" {
7346#endif
7347
7348EOF
7349          # Now generate the symbol file.
7350          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7351
7352          cat <<EOF >> conftest.$ac_ext
7353#if defined (__STDC__) && __STDC__
7354# define lt_ptr_t void *
7355#else
7356# define lt_ptr_t char *
7357# define const
7358#endif
7359
7360/* The mapping between symbol names and symbols. */
7361const struct {
7362  const char *name;
7363  lt_ptr_t address;
7364}
7365lt_preloaded_symbols[] =
7366{
7367EOF
7368          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7369          cat <<\EOF >> conftest.$ac_ext
7370  {0, (lt_ptr_t) 0}
7371};
7372
7373#ifdef __cplusplus
7374}
7375#endif
7376EOF
7377          # Now try linking the two files.
7378          mv conftest.$ac_objext conftstm.$ac_objext
7379          lt_save_LIBS="$LIBS"
7380          lt_save_CFLAGS="$CFLAGS"
7381          LIBS="conftstm.$ac_objext"
7382          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7383          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384  (eval $ac_link) 2>&5
7385  ac_status=$?
7386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7388            pipe_works=yes
7389          fi
7390          LIBS="$lt_save_LIBS"
7391          CFLAGS="$lt_save_CFLAGS"
7392        else
7393          echo "cannot find nm_test_func in $nlist" >&5
7394        fi
7395      else
7396        echo "cannot find nm_test_var in $nlist" >&5
7397      fi
7398    else
7399      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7400    fi
7401  else
7402    echo "$progname: failed program was:" >&5
7403    cat conftest.$ac_ext >&5
7404  fi
7405  rm -f conftest* conftst*
7406
7407  # Do not use the global_symbol_pipe unless it works.
7408  if test "$pipe_works" = yes; then
7409    break
7410  else
7411    lt_cv_sys_global_symbol_pipe=
7412  fi
7413done
7414
7415fi
7416
7417if test -z "$lt_cv_sys_global_symbol_pipe"; then
7418  lt_cv_sys_global_symbol_to_cdecl=
7419fi
7420if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7421  echo "$as_me:$LINENO: result: failed" >&5
7422echo "${ECHO_T}failed" >&6
7423else
7424  echo "$as_me:$LINENO: result: ok" >&5
7425echo "${ECHO_T}ok" >&6
7426fi
7427
7428echo "$as_me:$LINENO: checking for objdir" >&5
7429echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7430if test "${lt_cv_objdir+set}" = set; then
7431  echo $ECHO_N "(cached) $ECHO_C" >&6
7432else
7433  rm -f .libs 2>/dev/null
7434mkdir .libs 2>/dev/null
7435if test -d .libs; then
7436  lt_cv_objdir=.libs
7437else
7438  # MS-DOS does not allow filenames that begin with a dot.
7439  lt_cv_objdir=_libs
7440fi
7441rmdir .libs 2>/dev/null
7442fi
7443echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7444echo "${ECHO_T}$lt_cv_objdir" >&6
7445objdir=$lt_cv_objdir
7446
7447
7448
7449
7450
7451case $host_os in
7452aix3*)
7453  # AIX sometimes has problems with the GCC collect2 program.  For some
7454  # reason, if we set the COLLECT_NAMES environment variable, the problems
7455  # vanish in a puff of smoke.
7456  if test "X${COLLECT_NAMES+set}" != Xset; then
7457    COLLECT_NAMES=
7458    export COLLECT_NAMES
7459  fi
7460  ;;
7461esac
7462
7463# Sed substitution that helps us do robust quoting.  It backslashifies
7464# metacharacters that are still active within double-quoted strings.
7465Xsed='sed -e 1s/^X//'
7466sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7467
7468# Same as above, but do not quote variable references.
7469double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7470
7471# Sed substitution to delay expansion of an escaped shell variable in a
7472# double_quote_subst'ed string.
7473delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7474
7475# Sed substitution to avoid accidental globbing in evaled expressions
7476no_glob_subst='s/\*/\\\*/g'
7477
7478# Constants:
7479rm="rm -f"
7480
7481# Global variables:
7482default_ofile=libtool
7483can_build_shared=yes
7484
7485# All known linkers require a `.a' archive for static linking (except MSVC,
7486# which needs '.lib').
7487libext=a
7488ltmain="$ac_aux_dir/ltmain.sh"
7489ofile="$default_ofile"
7490with_gnu_ld="$lt_cv_prog_gnu_ld"
7491
7492if test -n "$ac_tool_prefix"; then
7493  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7494set dummy ${ac_tool_prefix}ar; ac_word=$2
7495echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7497if test "${ac_cv_prog_AR+set}" = set; then
7498  echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500  if test -n "$AR"; then
7501  ac_cv_prog_AR="$AR" # Let the user override the test.
7502else
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506  IFS=$as_save_IFS
7507  test -z "$as_dir" && as_dir=.
7508  for ac_exec_ext in '' $ac_executable_extensions; do
7509  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510    ac_cv_prog_AR="${ac_tool_prefix}ar"
7511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512    break 2
7513  fi
7514done
7515done
7516
7517fi
7518fi
7519AR=$ac_cv_prog_AR
7520if test -n "$AR"; then
7521  echo "$as_me:$LINENO: result: $AR" >&5
7522echo "${ECHO_T}$AR" >&6
7523else
7524  echo "$as_me:$LINENO: result: no" >&5
7525echo "${ECHO_T}no" >&6
7526fi
7527
7528fi
7529if test -z "$ac_cv_prog_AR"; then
7530  ac_ct_AR=$AR
7531  # Extract the first word of "ar", so it can be a program name with args.
7532set dummy ar; ac_word=$2
7533echo "$as_me:$LINENO: checking for $ac_word" >&5
7534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7535if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7536  echo $ECHO_N "(cached) $ECHO_C" >&6
7537else
7538  if test -n "$ac_ct_AR"; then
7539  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7540else
7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544  IFS=$as_save_IFS
7545  test -z "$as_dir" && as_dir=.
7546  for ac_exec_ext in '' $ac_executable_extensions; do
7547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548    ac_cv_prog_ac_ct_AR="ar"
7549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550    break 2
7551  fi
7552done
7553done
7554
7555  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7556fi
7557fi
7558ac_ct_AR=$ac_cv_prog_ac_ct_AR
7559if test -n "$ac_ct_AR"; then
7560  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7561echo "${ECHO_T}$ac_ct_AR" >&6
7562else
7563  echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6
7565fi
7566
7567  AR=$ac_ct_AR
7568else
7569  AR="$ac_cv_prog_AR"
7570fi
7571
7572if test -n "$ac_tool_prefix"; then
7573  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7574set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7575echo "$as_me:$LINENO: checking for $ac_word" >&5
7576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7577if test "${ac_cv_prog_RANLIB+set}" = set; then
7578  echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580  if test -n "$RANLIB"; then
7581  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7582else
7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584for as_dir in $PATH
7585do
7586  IFS=$as_save_IFS
7587  test -z "$as_dir" && as_dir=.
7588  for ac_exec_ext in '' $ac_executable_extensions; do
7589  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7591    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592    break 2
7593  fi
7594done
7595done
7596
7597fi
7598fi
7599RANLIB=$ac_cv_prog_RANLIB
7600if test -n "$RANLIB"; then
7601  echo "$as_me:$LINENO: result: $RANLIB" >&5
7602echo "${ECHO_T}$RANLIB" >&6
7603else
7604  echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6
7606fi
7607
7608fi
7609if test -z "$ac_cv_prog_RANLIB"; then
7610  ac_ct_RANLIB=$RANLIB
7611  # Extract the first word of "ranlib", so it can be a program name with args.
7612set dummy ranlib; ac_word=$2
7613echo "$as_me:$LINENO: checking for $ac_word" >&5
7614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7615if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7616  echo $ECHO_N "(cached) $ECHO_C" >&6
7617else
7618  if test -n "$ac_ct_RANLIB"; then
7619  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7620else
7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624  IFS=$as_save_IFS
7625  test -z "$as_dir" && as_dir=.
7626  for ac_exec_ext in '' $ac_executable_extensions; do
7627  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628    ac_cv_prog_ac_ct_RANLIB="ranlib"
7629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630    break 2
7631  fi
7632done
7633done
7634
7635  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7636fi
7637fi
7638ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7639if test -n "$ac_ct_RANLIB"; then
7640  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7641echo "${ECHO_T}$ac_ct_RANLIB" >&6
7642else
7643  echo "$as_me:$LINENO: result: no" >&5
7644echo "${ECHO_T}no" >&6
7645fi
7646
7647  RANLIB=$ac_ct_RANLIB
7648else
7649  RANLIB="$ac_cv_prog_RANLIB"
7650fi
7651
7652if test -n "$ac_tool_prefix"; then
7653  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7654set dummy ${ac_tool_prefix}strip; ac_word=$2
7655echo "$as_me:$LINENO: checking for $ac_word" >&5
7656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7657if test "${ac_cv_prog_STRIP+set}" = set; then
7658  echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660  if test -n "$STRIP"; then
7661  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7662else
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666  IFS=$as_save_IFS
7667  test -z "$as_dir" && as_dir=.
7668  for ac_exec_ext in '' $ac_executable_extensions; do
7669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672    break 2
7673  fi
7674done
7675done
7676
7677fi
7678fi
7679STRIP=$ac_cv_prog_STRIP
7680if test -n "$STRIP"; then
7681  echo "$as_me:$LINENO: result: $STRIP" >&5
7682echo "${ECHO_T}$STRIP" >&6
7683else
7684  echo "$as_me:$LINENO: result: no" >&5
7685echo "${ECHO_T}no" >&6
7686fi
7687
7688fi
7689if test -z "$ac_cv_prog_STRIP"; then
7690  ac_ct_STRIP=$STRIP
7691  # Extract the first word of "strip", so it can be a program name with args.
7692set dummy strip; ac_word=$2
7693echo "$as_me:$LINENO: checking for $ac_word" >&5
7694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7695if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7696  echo $ECHO_N "(cached) $ECHO_C" >&6
7697else
7698  if test -n "$ac_ct_STRIP"; then
7699  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7700else
7701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702for as_dir in $PATH
7703do
7704  IFS=$as_save_IFS
7705  test -z "$as_dir" && as_dir=.
7706  for ac_exec_ext in '' $ac_executable_extensions; do
7707  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708    ac_cv_prog_ac_ct_STRIP="strip"
7709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7710    break 2
7711  fi
7712done
7713done
7714
7715  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7716fi
7717fi
7718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7719if test -n "$ac_ct_STRIP"; then
7720  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7721echo "${ECHO_T}$ac_ct_STRIP" >&6
7722else
7723  echo "$as_me:$LINENO: result: no" >&5
7724echo "${ECHO_T}no" >&6
7725fi
7726
7727  STRIP=$ac_ct_STRIP
7728else
7729  STRIP="$ac_cv_prog_STRIP"
7730fi
7731
7732
7733old_CC="$CC"
7734old_CFLAGS="$CFLAGS"
7735
7736# Set sane defaults for various variables
7737test -z "$AR" && AR=ar
7738test -z "$AR_FLAGS" && AR_FLAGS=cru
7739test -z "$AS" && AS=as
7740test -z "$CC" && CC=cc
7741test -z "$LTCC" && LTCC=$CC
7742test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7743test -z "$DLLTOOL" && DLLTOOL=dlltool
7744test -z "$LD" && LD=ld
7745test -z "$LN_S" && LN_S="ln -s"
7746test -z "$MAGIC_CMD" && MAGIC_CMD=file
7747test -z "$NM" && NM=nm
7748test -z "$SED" && SED=sed
7749test -z "$OBJDUMP" && OBJDUMP=objdump
7750test -z "$RANLIB" && RANLIB=:
7751test -z "$STRIP" && STRIP=:
7752test -z "$ac_objext" && ac_objext=o
7753
7754# Determine commands to create old-style static archives.
7755old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7756old_postinstall_cmds='chmod 644 $oldlib'
7757old_postuninstall_cmds=
7758
7759if test -n "$RANLIB"; then
7760  case $host_os in
7761  openbsd*)
7762    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7763    ;;
7764  *)
7765    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7766    ;;
7767  esac
7768  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7769fi
7770
7771for cc_temp in $compiler""; do
7772  case $cc_temp in
7773    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7774    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7775    \-*) ;;
7776    *) break;;
7777  esac
7778done
7779cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7780
7781
7782# Only perform the check for file, if the check method requires it
7783case $deplibs_check_method in
7784file_magic*)
7785  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7786    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7787echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7788if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7789  echo $ECHO_N "(cached) $ECHO_C" >&6
7790else
7791  case $MAGIC_CMD in
7792[\\/*] |  ?:[\\/]*)
7793  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7794  ;;
7795*)
7796  lt_save_MAGIC_CMD="$MAGIC_CMD"
7797  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7798  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7799  for ac_dir in $ac_dummy; do
7800    IFS="$lt_save_ifs"
7801    test -z "$ac_dir" && ac_dir=.
7802    if test -f $ac_dir/${ac_tool_prefix}file; then
7803      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7804      if test -n "$file_magic_test_file"; then
7805        case $deplibs_check_method in
7806        "file_magic "*)
7807          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7808          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7810            $EGREP "$file_magic_regex" > /dev/null; then
7811            :
7812          else
7813            cat <<EOF 1>&2
7814
7815*** Warning: the command libtool uses to detect shared libraries,
7816*** $file_magic_cmd, produces output that libtool cannot recognize.
7817*** The result is that libtool may fail to recognize shared libraries
7818*** as such.  This will affect the creation of libtool libraries that
7819*** depend on shared libraries, but programs linked with such libtool
7820*** libraries will work regardless of this problem.  Nevertheless, you
7821*** may want to report the problem to your system manager and/or to
7822*** bug-libtool@gnu.org
7823
7824EOF
7825          fi ;;
7826        esac
7827      fi
7828      break
7829    fi
7830  done
7831  IFS="$lt_save_ifs"
7832  MAGIC_CMD="$lt_save_MAGIC_CMD"
7833  ;;
7834esac
7835fi
7836
7837MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7838if test -n "$MAGIC_CMD"; then
7839  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7840echo "${ECHO_T}$MAGIC_CMD" >&6
7841else
7842  echo "$as_me:$LINENO: result: no" >&5
7843echo "${ECHO_T}no" >&6
7844fi
7845
7846if test -z "$lt_cv_path_MAGIC_CMD"; then
7847  if test -n "$ac_tool_prefix"; then
7848    echo "$as_me:$LINENO: checking for file" >&5
7849echo $ECHO_N "checking for file... $ECHO_C" >&6
7850if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7851  echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853  case $MAGIC_CMD in
7854[\\/*] |  ?:[\\/]*)
7855  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7856  ;;
7857*)
7858  lt_save_MAGIC_CMD="$MAGIC_CMD"
7859  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7860  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7861  for ac_dir in $ac_dummy; do
7862    IFS="$lt_save_ifs"
7863    test -z "$ac_dir" && ac_dir=.
7864    if test -f $ac_dir/file; then
7865      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7866      if test -n "$file_magic_test_file"; then
7867        case $deplibs_check_method in
7868        "file_magic "*)
7869          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7870          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7871          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7872            $EGREP "$file_magic_regex" > /dev/null; then
7873            :
7874          else
7875            cat <<EOF 1>&2
7876
7877*** Warning: the command libtool uses to detect shared libraries,
7878*** $file_magic_cmd, produces output that libtool cannot recognize.
7879*** The result is that libtool may fail to recognize shared libraries
7880*** as such.  This will affect the creation of libtool libraries that
7881*** depend on shared libraries, but programs linked with such libtool
7882*** libraries will work regardless of this problem.  Nevertheless, you
7883*** may want to report the problem to your system manager and/or to
7884*** bug-libtool@gnu.org
7885
7886EOF
7887          fi ;;
7888        esac
7889      fi
7890      break
7891    fi
7892  done
7893  IFS="$lt_save_ifs"
7894  MAGIC_CMD="$lt_save_MAGIC_CMD"
7895  ;;
7896esac
7897fi
7898
7899MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7900if test -n "$MAGIC_CMD"; then
7901  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7902echo "${ECHO_T}$MAGIC_CMD" >&6
7903else
7904  echo "$as_me:$LINENO: result: no" >&5
7905echo "${ECHO_T}no" >&6
7906fi
7907
7908  else
7909    MAGIC_CMD=:
7910  fi
7911fi
7912
7913  fi
7914  ;;
7915esac
7916
7917enable_dlopen=no
7918enable_win32_dll=no
7919
7920# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7921if test "${enable_libtool_lock+set}" = set; then
7922  enableval="$enable_libtool_lock"
7923
7924fi;
7925test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7926
7927
7928# Check whether --with-pic or --without-pic was given.
7929if test "${with_pic+set}" = set; then
7930  withval="$with_pic"
7931  pic_mode="$withval"
7932else
7933  pic_mode=default
7934fi;
7935test -z "$pic_mode" && pic_mode=default
7936
7937# Use C for the default configuration in the libtool script
7938tagname=
7939lt_save_CC="$CC"
7940ac_ext=c
7941ac_cpp='$CPP $CPPFLAGS'
7942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944ac_compiler_gnu=$ac_cv_c_compiler_gnu
7945
7946
7947# Source file extension for C test sources.
7948ac_ext=c
7949
7950# Object file extension for compiled C test sources.
7951objext=o
7952objext=$objext
7953
7954# Code to be used in simple compile tests
7955lt_simple_compile_test_code="int some_variable = 0;\n"
7956
7957# Code to be used in simple link tests
7958lt_simple_link_test_code='int main(){return(0);}\n'
7959
7960
7961# If no C compiler was specified, use CC.
7962LTCC=${LTCC-"$CC"}
7963
7964# If no C compiler flags were specified, use CFLAGS.
7965LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7966
7967# Allow CC to be a program name with arguments.
7968compiler=$CC
7969
7970
7971# save warnings/boilerplate of simple test code
7972ac_outfile=conftest.$ac_objext
7973printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7974eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7975_lt_compiler_boilerplate=`cat conftest.err`
7976$rm conftest*
7977
7978ac_outfile=conftest.$ac_objext
7979printf "$lt_simple_link_test_code" >conftest.$ac_ext
7980eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7981_lt_linker_boilerplate=`cat conftest.err`
7982$rm conftest*
7983
7984
7985## CAVEAT EMPTOR:
7986## There is no encapsulation within the following macros, do not change
7987## the running order or otherwise move them around unless you know exactly
7988## what you are doing...
7989
7990lt_prog_compiler_no_builtin_flag=
7991
7992if test "$GCC" = yes; then
7993  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7994
7995
7996echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7997echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7998if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7999  echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001  lt_cv_prog_compiler_rtti_exceptions=no
8002  ac_outfile=conftest.$ac_objext
8003   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8004   lt_compiler_flag="-fno-rtti -fno-exceptions"
8005   # Insert the option either (1) after the last *FLAGS variable, or
8006   # (2) before a word containing "conftest.", or (3) at the end.
8007   # Note that $ac_compile itself does not contain backslashes and begins
8008   # with a dollar sign (not a hyphen), so the echo should work correctly.
8009   # The option is referenced via a variable to avoid confusing sed.
8010   lt_compile=`echo "$ac_compile" | $SED \
8011   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8012   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8013   -e 's:$: $lt_compiler_flag:'`
8014   (eval echo "\"\$as_me:8014: $lt_compile\"" >&5)
8015   (eval "$lt_compile" 2>conftest.err)
8016   ac_status=$?
8017   cat conftest.err >&5
8018   echo "$as_me:8018: \$? = $ac_status" >&5
8019   if (exit $ac_status) && test -s "$ac_outfile"; then
8020     # The compiler can only warn and ignore the option if not recognized
8021     # So say no if there are warnings other than the usual output.
8022     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8023     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8024     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8025       lt_cv_prog_compiler_rtti_exceptions=yes
8026     fi
8027   fi
8028   $rm conftest*
8029
8030fi
8031echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8032echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8033
8034if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8035    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8036else
8037    :
8038fi
8039
8040fi
8041
8042lt_prog_compiler_wl=
8043lt_prog_compiler_pic=
8044lt_prog_compiler_static=
8045
8046echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8047echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8048
8049  if test "$GCC" = yes; then
8050    lt_prog_compiler_wl='-Wl,'
8051    lt_prog_compiler_static='-static'
8052
8053    case $host_os in
8054      aix*)
8055      # All AIX code is PIC.
8056      if test "$host_cpu" = ia64; then
8057        # AIX 5 now supports IA64 processor
8058        lt_prog_compiler_static='-Bstatic'
8059      fi
8060      ;;
8061
8062    amigaos*)
8063      # FIXME: we need at least 68020 code to build shared libraries, but
8064      # adding the `-m68020' flag to GCC prevents building anything better,
8065      # like `-m68040'.
8066      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8067      ;;
8068
8069    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8070      # PIC is the default for these OSes.
8071      ;;
8072
8073    mingw* | pw32* | os2*)
8074      # This hack is so that the source file can tell whether it is being
8075      # built for inclusion in a dll (and should export symbols for example).
8076      lt_prog_compiler_pic='-DDLL_EXPORT'
8077      ;;
8078
8079    darwin* | rhapsody*)
8080      # PIC is the default on this platform
8081      # Common symbols not allowed in MH_DYLIB files
8082      lt_prog_compiler_pic='-fno-common'
8083      ;;
8084
8085    interix3*)
8086      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8087      # Instead, we relocate shared libraries at runtime.
8088      ;;
8089
8090    msdosdjgpp*)
8091      # Just because we use GCC doesn't mean we suddenly get shared libraries
8092      # on systems that don't support them.
8093      lt_prog_compiler_can_build_shared=no
8094      enable_shared=no
8095      ;;
8096
8097    sysv4*MP*)
8098      if test -d /usr/nec; then
8099        lt_prog_compiler_pic=-Kconform_pic
8100      fi
8101      ;;
8102
8103    hpux*)
8104      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8105      # not for PA HP-UX.
8106      case $host_cpu in
8107      hppa*64*|ia64*)
8108        # +Z the default
8109        ;;
8110      *)
8111        lt_prog_compiler_pic='-fPIC'
8112        ;;
8113      esac
8114      ;;
8115
8116    *)
8117      lt_prog_compiler_pic='-fPIC'
8118      ;;
8119    esac
8120  else
8121    # PORTME Check for flag to pass linker flags through the system compiler.
8122    case $host_os in
8123    aix*)
8124      lt_prog_compiler_wl='-Wl,'
8125      if test "$host_cpu" = ia64; then
8126        # AIX 5 now supports IA64 processor
8127        lt_prog_compiler_static='-Bstatic'
8128      else
8129        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8130      fi
8131      ;;
8132      darwin*)
8133        # PIC is the default on this platform
8134        # Common symbols not allowed in MH_DYLIB files
8135       case $cc_basename in
8136         xlc*)
8137         lt_prog_compiler_pic='-qnocommon'
8138         lt_prog_compiler_wl='-Wl,'
8139         ;;
8140       esac
8141       ;;
8142
8143    mingw* | pw32* | os2*)
8144      # This hack is so that the source file can tell whether it is being
8145      # built for inclusion in a dll (and should export symbols for example).
8146      lt_prog_compiler_pic='-DDLL_EXPORT'
8147      ;;
8148
8149    hpux9* | hpux10* | hpux11*)
8150      lt_prog_compiler_wl='-Wl,'
8151      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8152      # not for PA HP-UX.
8153      case $host_cpu in
8154      hppa*64*|ia64*)
8155        # +Z the default
8156        ;;
8157      *)
8158        lt_prog_compiler_pic='+Z'
8159        ;;
8160      esac
8161      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8162      lt_prog_compiler_static='${wl}-a ${wl}archive'
8163      ;;
8164
8165    irix5* | irix6* | nonstopux*)
8166      lt_prog_compiler_wl='-Wl,'
8167      # PIC (with -KPIC) is the default.
8168      lt_prog_compiler_static='-non_shared'
8169      ;;
8170
8171    newsos6)
8172      lt_prog_compiler_pic='-KPIC'
8173      lt_prog_compiler_static='-Bstatic'
8174      ;;
8175
8176    linux*)
8177      case $cc_basename in
8178      icc* | ecc*)
8179        lt_prog_compiler_wl='-Wl,'
8180        lt_prog_compiler_pic='-KPIC'
8181        lt_prog_compiler_static='-static'
8182        ;;
8183      pgcc* | pgf77* | pgf90* | pgf95*)
8184        # Portland Group compilers (*not* the Pentium gcc compiler,
8185        # which looks to be a dead project)
8186        lt_prog_compiler_wl='-Wl,'
8187        lt_prog_compiler_pic='-fpic'
8188        lt_prog_compiler_static='-Bstatic'
8189        ;;
8190      ccc*)
8191        lt_prog_compiler_wl='-Wl,'
8192        # All Alpha code is PIC.
8193        lt_prog_compiler_static='-non_shared'
8194        ;;
8195      esac
8196      ;;
8197
8198    osf3* | osf4* | osf5*)
8199      lt_prog_compiler_wl='-Wl,'
8200      # All OSF/1 code is PIC.
8201      lt_prog_compiler_static='-non_shared'
8202      ;;
8203
8204    solaris*)
8205      lt_prog_compiler_pic='-KPIC'
8206      lt_prog_compiler_static='-Bstatic'
8207      case $cc_basename in
8208      f77* | f90* | f95*)
8209        lt_prog_compiler_wl='-Qoption ld ';;
8210      *)
8211        lt_prog_compiler_wl='-Wl,';;
8212      esac
8213      ;;
8214
8215    sunos4*)
8216      lt_prog_compiler_wl='-Qoption ld '
8217      lt_prog_compiler_pic='-PIC'
8218      lt_prog_compiler_static='-Bstatic'
8219      ;;
8220
8221    sysv4 | sysv4.2uw2* | sysv4.3*)
8222      lt_prog_compiler_wl='-Wl,'
8223      lt_prog_compiler_pic='-KPIC'
8224      lt_prog_compiler_static='-Bstatic'
8225      ;;
8226
8227    sysv4*MP*)
8228      if test -d /usr/nec ;then
8229        lt_prog_compiler_pic='-Kconform_pic'
8230        lt_prog_compiler_static='-Bstatic'
8231      fi
8232      ;;
8233
8234    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8235      lt_prog_compiler_wl='-Wl,'
8236      lt_prog_compiler_pic='-KPIC'
8237      lt_prog_compiler_static='-Bstatic'
8238      ;;
8239
8240    unicos*)
8241      lt_prog_compiler_wl='-Wl,'
8242      lt_prog_compiler_can_build_shared=no
8243      ;;
8244
8245    uts4*)
8246      lt_prog_compiler_pic='-pic'
8247      lt_prog_compiler_static='-Bstatic'
8248      ;;
8249
8250    *)
8251      lt_prog_compiler_can_build_shared=no
8252      ;;
8253    esac
8254  fi
8255
8256echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8257echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8258
8259#
8260# Check to make sure the PIC flag actually works.
8261#
8262if test -n "$lt_prog_compiler_pic"; then
8263
8264echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8265echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8266if test "${lt_prog_compiler_pic_works+set}" = set; then
8267  echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269  lt_prog_compiler_pic_works=no
8270  ac_outfile=conftest.$ac_objext
8271   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8272   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8273   # Insert the option either (1) after the last *FLAGS variable, or
8274   # (2) before a word containing "conftest.", or (3) at the end.
8275   # Note that $ac_compile itself does not contain backslashes and begins
8276   # with a dollar sign (not a hyphen), so the echo should work correctly.
8277   # The option is referenced via a variable to avoid confusing sed.
8278   lt_compile=`echo "$ac_compile" | $SED \
8279   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8280   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8281   -e 's:$: $lt_compiler_flag:'`
8282   (eval echo "\"\$as_me:8282: $lt_compile\"" >&5)
8283   (eval "$lt_compile" 2>conftest.err)
8284   ac_status=$?
8285   cat conftest.err >&5
8286   echo "$as_me:8286: \$? = $ac_status" >&5
8287   if (exit $ac_status) && test -s "$ac_outfile"; then
8288     # The compiler can only warn and ignore the option if not recognized
8289     # So say no if there are warnings other than the usual output.
8290     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8291     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8292     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8293       lt_prog_compiler_pic_works=yes
8294     fi
8295   fi
8296   $rm conftest*
8297
8298fi
8299echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8300echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8301
8302if test x"$lt_prog_compiler_pic_works" = xyes; then
8303    case $lt_prog_compiler_pic in
8304     "" | " "*) ;;
8305     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8306     esac
8307else
8308    lt_prog_compiler_pic=
8309     lt_prog_compiler_can_build_shared=no
8310fi
8311
8312fi
8313case $host_os in
8314  # For platforms which do not support PIC, -DPIC is meaningless:
8315  *djgpp*)
8316    lt_prog_compiler_pic=
8317    ;;
8318  *)
8319    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8320    ;;
8321esac
8322
8323#
8324# Check to make sure the static flag actually works.
8325#
8326wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8327echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8328echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8329if test "${lt_prog_compiler_static_works+set}" = set; then
8330  echo $ECHO_N "(cached) $ECHO_C" >&6
8331else
8332  lt_prog_compiler_static_works=no
8333   save_LDFLAGS="$LDFLAGS"
8334   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8335   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8336   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8337     # The linker can only warn and ignore the option if not recognized
8338     # So say no if there are warnings
8339     if test -s conftest.err; then
8340       # Append any errors to the config.log.
8341       cat conftest.err 1>&5
8342       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8343       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8344       if diff conftest.exp conftest.er2 >/dev/null; then
8345         lt_prog_compiler_static_works=yes
8346       fi
8347     else
8348       lt_prog_compiler_static_works=yes
8349     fi
8350   fi
8351   $rm conftest*
8352   LDFLAGS="$save_LDFLAGS"
8353
8354fi
8355echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8356echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8357
8358if test x"$lt_prog_compiler_static_works" = xyes; then
8359    :
8360else
8361    lt_prog_compiler_static=
8362fi
8363
8364
8365echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8366echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8367if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8368  echo $ECHO_N "(cached) $ECHO_C" >&6
8369else
8370  lt_cv_prog_compiler_c_o=no
8371   $rm -r conftest 2>/dev/null
8372   mkdir conftest
8373   cd conftest
8374   mkdir out
8375   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8376
8377   lt_compiler_flag="-o out/conftest2.$ac_objext"
8378   # Insert the option either (1) after the last *FLAGS variable, or
8379   # (2) before a word containing "conftest.", or (3) at the end.
8380   # Note that $ac_compile itself does not contain backslashes and begins
8381   # with a dollar sign (not a hyphen), so the echo should work correctly.
8382   lt_compile=`echo "$ac_compile" | $SED \
8383   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8384   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8385   -e 's:$: $lt_compiler_flag:'`
8386   (eval echo "\"\$as_me:8386: $lt_compile\"" >&5)
8387   (eval "$lt_compile" 2>out/conftest.err)
8388   ac_status=$?
8389   cat out/conftest.err >&5
8390   echo "$as_me:8390: \$? = $ac_status" >&5
8391   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8392   then
8393     # The compiler can only warn and ignore the option if not recognized
8394     # So say no if there are warnings
8395     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8396     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8397     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8398       lt_cv_prog_compiler_c_o=yes
8399     fi
8400   fi
8401   chmod u+w . 2>&5
8402   $rm conftest*
8403   # SGI C++ compiler will create directory out/ii_files/ for
8404   # template instantiation
8405   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8406   $rm out/* && rmdir out
8407   cd ..
8408   rmdir conftest
8409   $rm conftest*
8410
8411fi
8412echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8413echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8414
8415
8416hard_links="nottested"
8417if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8418  # do not overwrite the value of need_locks provided by the user
8419  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8420echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8421  hard_links=yes
8422  $rm conftest*
8423  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8424  touch conftest.a
8425  ln conftest.a conftest.b 2>&5 || hard_links=no
8426  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8427  echo "$as_me:$LINENO: result: $hard_links" >&5
8428echo "${ECHO_T}$hard_links" >&6
8429  if test "$hard_links" = no; then
8430    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8431echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8432    need_locks=warn
8433  fi
8434else
8435  need_locks=no
8436fi
8437
8438echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8439echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8440
8441  runpath_var=
8442  allow_undefined_flag=
8443  enable_shared_with_static_runtimes=no
8444  archive_cmds=
8445  archive_expsym_cmds=
8446  old_archive_From_new_cmds=
8447  old_archive_from_expsyms_cmds=
8448  export_dynamic_flag_spec=
8449  whole_archive_flag_spec=
8450  thread_safe_flag_spec=
8451  hardcode_libdir_flag_spec=
8452  hardcode_libdir_flag_spec_ld=
8453  hardcode_libdir_separator=
8454  hardcode_direct=no
8455  hardcode_minus_L=no
8456  hardcode_shlibpath_var=unsupported
8457  link_all_deplibs=unknown
8458  hardcode_automatic=no
8459  module_cmds=
8460  module_expsym_cmds=
8461  always_export_symbols=no
8462  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8463  # include_expsyms should be a list of space-separated symbols to be *always*
8464  # included in the symbol list
8465  include_expsyms=
8466  # exclude_expsyms can be an extended regexp of symbols to exclude
8467  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8468  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8469  # as well as any symbol that contains `d'.
8470  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8471  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8472  # platforms (ab)use it in PIC code, but their linkers get confused if
8473  # the symbol is explicitly referenced.  Since portable code cannot
8474  # rely on this symbol name, it's probably fine to never include it in
8475  # preloaded symbol tables.
8476  extract_expsyms_cmds=
8477  # Just being paranoid about ensuring that cc_basename is set.
8478  for cc_temp in $compiler""; do
8479  case $cc_temp in
8480    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8481    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8482    \-*) ;;
8483    *) break;;
8484  esac
8485done
8486cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8487
8488  case $host_os in
8489  cygwin* | mingw* | pw32*)
8490    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8491    # When not using gcc, we currently assume that we are using
8492    # Microsoft Visual C++.
8493    if test "$GCC" != yes; then
8494      with_gnu_ld=no
8495    fi
8496    ;;
8497  interix*)
8498    # we just hope/assume this is gcc and not c89 (= MSVC++)
8499    with_gnu_ld=yes
8500    ;;
8501  openbsd*)
8502    with_gnu_ld=no
8503    ;;
8504  esac
8505
8506  ld_shlibs=yes
8507  if test "$with_gnu_ld" = yes; then
8508    # If archive_cmds runs LD, not CC, wlarc should be empty
8509    wlarc='${wl}'
8510
8511    # Set some defaults for GNU ld with shared library support. These
8512    # are reset later if shared libraries are not supported. Putting them
8513    # here allows them to be overridden if necessary.
8514    runpath_var=LD_RUN_PATH
8515    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8516    export_dynamic_flag_spec='${wl}--export-dynamic'
8517    # ancient GNU ld didn't support --whole-archive et. al.
8518    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8519        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8520      else
8521        whole_archive_flag_spec=
8522    fi
8523    supports_anon_versioning=no
8524    case `$LD -v 2>/dev/null` in
8525      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8526      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8527      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8528      *\ 2.11.*) ;; # other 2.11 versions
8529      *) supports_anon_versioning=yes ;;
8530    esac
8531
8532    # See if GNU ld supports shared libraries.
8533    case $host_os in
8534    aix3* | aix4* | aix5*)
8535      # On AIX/PPC, the GNU linker is very broken
8536      if test "$host_cpu" != ia64; then
8537        ld_shlibs=no
8538        cat <<EOF 1>&2
8539
8540*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8541*** to be unable to reliably create shared libraries on AIX.
8542*** Therefore, libtool is disabling shared libraries support.  If you
8543*** really care for shared libraries, you may want to modify your PATH
8544*** so that a non-GNU linker is found, and then restart.
8545
8546EOF
8547      fi
8548      ;;
8549
8550    amigaos*)
8551      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)'
8552      hardcode_libdir_flag_spec='-L$libdir'
8553      hardcode_minus_L=yes
8554
8555      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8556      # that the semantics of dynamic libraries on AmigaOS, at least up
8557      # to version 4, is to share data among multiple programs linked
8558      # with the same dynamic library.  Since this doesn't match the
8559      # behavior of shared libraries on other platforms, we can't use
8560      # them.
8561      ld_shlibs=no
8562      ;;
8563
8564    beos*)
8565      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8566        allow_undefined_flag=unsupported
8567        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8568        # support --undefined.  This deserves some investigation.  FIXME
8569        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8570      else
8571        ld_shlibs=no
8572      fi
8573      ;;
8574
8575    cygwin* | mingw* | pw32*)
8576      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8577      # as there is no search path for DLLs.
8578      hardcode_libdir_flag_spec='-L$libdir'
8579      allow_undefined_flag=unsupported
8580      always_export_symbols=no
8581      enable_shared_with_static_runtimes=yes
8582      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8583
8584      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8585        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8586        # If the export-symbols file already is a .def file (1st line
8587        # is EXPORTS), use it as is; otherwise, prepend...
8588        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8589          cp $export_symbols $output_objdir/$soname.def;
8590        else
8591          echo EXPORTS > $output_objdir/$soname.def;
8592          cat $export_symbols >> $output_objdir/$soname.def;
8593        fi~
8594        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8595      else
8596        ld_shlibs=no
8597      fi
8598      ;;
8599
8600    interix3*)
8601      hardcode_direct=no
8602      hardcode_shlibpath_var=no
8603      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8604      export_dynamic_flag_spec='${wl}-E'
8605      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8606      # Instead, shared libraries are loaded at an image base (0x10000000 by
8607      # default) and relocated if they conflict, which is a slow very memory
8608      # consuming and fragmenting process.  To avoid this, we pick a random,
8609      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8610      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8611      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8612      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'
8613      ;;
8614
8615    linux*)
8616      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8617        tmp_addflag=
8618        case $cc_basename,$host_cpu in
8619        pgcc*)                          # Portland Group C compiler
8620          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'
8621          tmp_addflag=' $pic_flag'
8622          ;;
8623        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8624          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'
8625          tmp_addflag=' $pic_flag -Mnomain' ;;
8626        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8627          tmp_addflag=' -i_dynamic' ;;
8628        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8629          tmp_addflag=' -i_dynamic -nofor_main' ;;
8630        ifc* | ifort*)                  # Intel Fortran compiler
8631          tmp_addflag=' -nofor_main' ;;
8632        esac
8633        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8634
8635        if test $supports_anon_versioning = yes; then
8636          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8637  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8638  $echo "local: *; };" >> $output_objdir/$libname.ver~
8639          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8640        fi
8641      else
8642        ld_shlibs=no
8643      fi
8644      ;;
8645
8646    netbsd*)
8647      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8648        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8649        wlarc=
8650      else
8651        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653      fi
8654      ;;
8655
8656    solaris*)
8657      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8658        ld_shlibs=no
8659        cat <<EOF 1>&2
8660
8661*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8662*** create shared libraries on Solaris systems.  Therefore, libtool
8663*** is disabling shared libraries support.  We urge you to upgrade GNU
8664*** binutils to release 2.9.1 or newer.  Another option is to modify
8665*** your PATH or compiler configuration so that the native linker is
8666*** used, and then restart.
8667
8668EOF
8669      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8670        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8672      else
8673        ld_shlibs=no
8674      fi
8675      ;;
8676
8677    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8678      case `$LD -v 2>&1` in
8679        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8680        ld_shlibs=no
8681        cat <<_LT_EOF 1>&2
8682
8683*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8684*** reliably create shared libraries on SCO systems.  Therefore, libtool
8685*** is disabling shared libraries support.  We urge you to upgrade GNU
8686*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8687*** your PATH or compiler configuration so that the native linker is
8688*** used, and then restart.
8689
8690_LT_EOF
8691        ;;
8692        *)
8693          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8694            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8695            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8696            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8697          else
8698            ld_shlibs=no
8699          fi
8700        ;;
8701      esac
8702      ;;
8703
8704    sunos4*)
8705      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8706      wlarc=
8707      hardcode_direct=yes
8708      hardcode_shlibpath_var=no
8709      ;;
8710
8711    *)
8712      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8713        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8715      else
8716        ld_shlibs=no
8717      fi
8718      ;;
8719    esac
8720
8721    if test "$ld_shlibs" = no; then
8722      runpath_var=
8723      hardcode_libdir_flag_spec=
8724      export_dynamic_flag_spec=
8725      whole_archive_flag_spec=
8726    fi
8727  else
8728    # PORTME fill in a description of your system's linker (not GNU ld)
8729    case $host_os in
8730    aix3*)
8731      allow_undefined_flag=unsupported
8732      always_export_symbols=yes
8733      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'
8734      # Note: this linker hardcodes the directories in LIBPATH if there
8735      # are no directories specified by -L.
8736      hardcode_minus_L=yes
8737      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8738        # Neither direct hardcoding nor static linking is supported with a
8739        # broken collect2.
8740        hardcode_direct=unsupported
8741      fi
8742      ;;
8743
8744    aix4* | aix5*)
8745      if test "$host_cpu" = ia64; then
8746        # On IA64, the linker does run time linking by default, so we don't
8747        # have to do anything special.
8748        aix_use_runtimelinking=no
8749        exp_sym_flag='-Bexport'
8750        no_entry_flag=""
8751      else
8752        # If we're using GNU nm, then we don't want the "-C" option.
8753        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8754        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8755          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'
8756        else
8757          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'
8758        fi
8759        aix_use_runtimelinking=no
8760
8761        # Test if we are trying to use run time linking or normal
8762        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8763        # need to do runtime linking.
8764        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8765          for ld_flag in $LDFLAGS; do
8766          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8767            aix_use_runtimelinking=yes
8768            break
8769          fi
8770          done
8771          ;;
8772        esac
8773
8774        exp_sym_flag='-bexport'
8775        no_entry_flag='-bnoentry'
8776      fi
8777
8778      # When large executables or shared objects are built, AIX ld can
8779      # have problems creating the table of contents.  If linking a library
8780      # or program results in "error TOC overflow" add -mminimal-toc to
8781      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8782      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8783
8784      archive_cmds=''
8785      hardcode_direct=yes
8786      hardcode_libdir_separator=':'
8787      link_all_deplibs=yes
8788
8789      if test "$GCC" = yes; then
8790        case $host_os in aix4.[012]|aix4.[012].*)
8791        # We only want to do this on AIX 4.2 and lower, the check
8792        # below for broken collect2 doesn't work under 4.3+
8793          collect2name=`${CC} -print-prog-name=collect2`
8794          if test -f "$collect2name" && \
8795           strings "$collect2name" | grep resolve_lib_name >/dev/null
8796          then
8797          # We have reworked collect2
8798          hardcode_direct=yes
8799          else
8800          # We have old collect2
8801          hardcode_direct=unsupported
8802          # It fails to find uninstalled libraries when the uninstalled
8803          # path is not listed in the libpath.  Setting hardcode_minus_L
8804          # to unsupported forces relinking
8805          hardcode_minus_L=yes
8806          hardcode_libdir_flag_spec='-L$libdir'
8807          hardcode_libdir_separator=
8808          fi
8809          ;;
8810        esac
8811        shared_flag='-shared'
8812        if test "$aix_use_runtimelinking" = yes; then
8813          shared_flag="$shared_flag "'${wl}-G'
8814        fi
8815      else
8816        # not using gcc
8817        if test "$host_cpu" = ia64; then
8818        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8819        # chokes on -Wl,-G. The following line is correct:
8820          shared_flag='-G'
8821        else
8822          if test "$aix_use_runtimelinking" = yes; then
8823            shared_flag='${wl}-G'
8824          else
8825            shared_flag='${wl}-bM:SRE'
8826          fi
8827        fi
8828      fi
8829
8830      # It seems that -bexpall does not export symbols beginning with
8831      # underscore (_), so it is better to generate a list of symbols to export.
8832      always_export_symbols=yes
8833      if test "$aix_use_runtimelinking" = yes; then
8834        # Warning - without using the other runtime loading flags (-brtl),
8835        # -berok will link without error, but may produce a broken library.
8836        allow_undefined_flag='-berok'
8837       # Determine the default libpath from the value encoded in an empty executable.
8838       cat >conftest.$ac_ext <<_ACEOF
8839/* confdefs.h.  */
8840_ACEOF
8841cat confdefs.h >>conftest.$ac_ext
8842cat >>conftest.$ac_ext <<_ACEOF
8843/* end confdefs.h.  */
8844
8845int
8846main ()
8847{
8848
8849  ;
8850  return 0;
8851}
8852_ACEOF
8853rm -f conftest.$ac_objext conftest$ac_exeext
8854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855  (eval $ac_link) 2>conftest.er1
8856  ac_status=$?
8857  grep -v '^ *+' conftest.er1 >conftest.err
8858  rm -f conftest.er1
8859  cat conftest.err >&5
8860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861  (exit $ac_status); } &&
8862         { ac_try='test -z "$ac_c_werror_flag"
8863                         || test ! -s conftest.err'
8864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865  (eval $ac_try) 2>&5
8866  ac_status=$?
8867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868  (exit $ac_status); }; } &&
8869         { ac_try='test -s conftest$ac_exeext'
8870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871  (eval $ac_try) 2>&5
8872  ac_status=$?
8873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874  (exit $ac_status); }; }; then
8875
8876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8877}'`
8878# Check for a 64-bit object if we didn't find anything.
8879if 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; }
8880}'`; fi
8881else
8882  echo "$as_me: failed program was:" >&5
8883sed 's/^/| /' conftest.$ac_ext >&5
8884
8885fi
8886rm -f conftest.err conftest.$ac_objext \
8887      conftest$ac_exeext conftest.$ac_ext
8888if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8889
8890       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8891        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"
8892       else
8893        if test "$host_cpu" = ia64; then
8894          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8895          allow_undefined_flag="-z nodefs"
8896          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"
8897        else
8898         # Determine the default libpath from the value encoded in an empty executable.
8899         cat >conftest.$ac_ext <<_ACEOF
8900/* confdefs.h.  */
8901_ACEOF
8902cat confdefs.h >>conftest.$ac_ext
8903cat >>conftest.$ac_ext <<_ACEOF
8904/* end confdefs.h.  */
8905
8906int
8907main ()
8908{
8909
8910  ;
8911  return 0;
8912}
8913_ACEOF
8914rm -f conftest.$ac_objext conftest$ac_exeext
8915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916  (eval $ac_link) 2>conftest.er1
8917  ac_status=$?
8918  grep -v '^ *+' conftest.er1 >conftest.err
8919  rm -f conftest.er1
8920  cat conftest.err >&5
8921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922  (exit $ac_status); } &&
8923         { ac_try='test -z "$ac_c_werror_flag"
8924                         || test ! -s conftest.err'
8925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926  (eval $ac_try) 2>&5
8927  ac_status=$?
8928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929  (exit $ac_status); }; } &&
8930         { ac_try='test -s conftest$ac_exeext'
8931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932  (eval $ac_try) 2>&5
8933  ac_status=$?
8934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935  (exit $ac_status); }; }; then
8936
8937aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8938}'`
8939# Check for a 64-bit object if we didn't find anything.
8940if 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; }
8941}'`; fi
8942else
8943  echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
8945
8946fi
8947rm -f conftest.err conftest.$ac_objext \
8948      conftest$ac_exeext conftest.$ac_ext
8949if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8950
8951         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8952          # Warning - without using the other run time loading flags,
8953          # -berok will link without error, but may produce a broken library.
8954          no_undefined_flag=' ${wl}-bernotok'
8955          allow_undefined_flag=' ${wl}-berok'
8956          # Exported symbols can be pulled into shared objects from archives
8957          whole_archive_flag_spec='$convenience'
8958          archive_cmds_need_lc=yes
8959          # This is similar to how AIX traditionally builds its shared libraries.
8960          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'
8961        fi
8962      fi
8963      ;;
8964
8965    amigaos*)
8966      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)'
8967      hardcode_libdir_flag_spec='-L$libdir'
8968      hardcode_minus_L=yes
8969      # see comment about different semantics on the GNU ld section
8970      ld_shlibs=no
8971      ;;
8972
8973    bsdi[45]*)
8974      export_dynamic_flag_spec=-rdynamic
8975      ;;
8976
8977    cygwin* | mingw* | pw32*)
8978      # When not using gcc, we currently assume that we are using
8979      # Microsoft Visual C++.
8980      # hardcode_libdir_flag_spec is actually meaningless, as there is
8981      # no search path for DLLs.
8982      hardcode_libdir_flag_spec=' '
8983      allow_undefined_flag=unsupported
8984      # Tell ltmain to make .lib files, not .a files.
8985      libext=lib
8986      # Tell ltmain to make .dll files, not .so files.
8987      shrext_cmds=".dll"
8988      # FIXME: Setting linknames here is a bad hack.
8989      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8990      # The linker will automatically build a .lib file if we build a DLL.
8991      old_archive_From_new_cmds='true'
8992      # FIXME: Should let the user specify the lib program.
8993      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8994      fix_srcfile_path='`cygpath -w "$srcfile"`'
8995      enable_shared_with_static_runtimes=yes
8996      ;;
8997
8998    darwin* | rhapsody*)
8999      case $host_os in
9000        rhapsody* | darwin1.[012])
9001         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9002         ;;
9003       *) # Darwin 1.3 on
9004         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9005           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9006         else
9007           case ${MACOSX_DEPLOYMENT_TARGET} in
9008             10.[012])
9009               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9010               ;;
9011             10.*)
9012               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9013               ;;
9014           esac
9015         fi
9016         ;;
9017      esac
9018      archive_cmds_need_lc=no
9019      hardcode_direct=no
9020      hardcode_automatic=yes
9021      hardcode_shlibpath_var=unsupported
9022      whole_archive_flag_spec=''
9023      link_all_deplibs=yes
9024    if test "$GCC" = yes ; then
9025        output_verbose_link_cmd='echo'
9026        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9027      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9028      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9029      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}'
9030      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}'
9031    else
9032      case $cc_basename in
9033        xlc*)
9034         output_verbose_link_cmd='echo'
9035         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9036         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9037          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9038         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}'
9039          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}'
9040          ;;
9041       *)
9042         ld_shlibs=no
9043          ;;
9044      esac
9045    fi
9046      ;;
9047
9048    dgux*)
9049      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9050      hardcode_libdir_flag_spec='-L$libdir'
9051      hardcode_shlibpath_var=no
9052      ;;
9053
9054    freebsd1*)
9055      ld_shlibs=no
9056      ;;
9057
9058    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9059    # support.  Future versions do this automatically, but an explicit c++rt0.o
9060    # does not break anything, and helps significantly (at the cost of a little
9061    # extra space).
9062    freebsd2.2*)
9063      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9064      hardcode_libdir_flag_spec='-R$libdir'
9065      hardcode_direct=yes
9066      hardcode_shlibpath_var=no
9067      ;;
9068
9069    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9070    freebsd2*)
9071      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9072      hardcode_direct=yes
9073      hardcode_minus_L=yes
9074      hardcode_shlibpath_var=no
9075      ;;
9076
9077    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9078    freebsd* | kfreebsd*-gnu | dragonfly*)
9079      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9080      hardcode_libdir_flag_spec='-R$libdir'
9081      hardcode_direct=yes
9082      hardcode_shlibpath_var=no
9083      ;;
9084
9085    hpux9*)
9086      if test "$GCC" = yes; then
9087        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'
9088      else
9089        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'
9090      fi
9091      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9092      hardcode_libdir_separator=:
9093      hardcode_direct=yes
9094
9095      # hardcode_minus_L: Not really in the search PATH,
9096      # but as the default location of the library.
9097      hardcode_minus_L=yes
9098      export_dynamic_flag_spec='${wl}-E'
9099      ;;
9100
9101    hpux10*)
9102      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9103        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9104      else
9105        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9106      fi
9107      if test "$with_gnu_ld" = no; then
9108        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9109        hardcode_libdir_separator=:
9110
9111        hardcode_direct=yes
9112        export_dynamic_flag_spec='${wl}-E'
9113
9114        # hardcode_minus_L: Not really in the search PATH,
9115        # but as the default location of the library.
9116        hardcode_minus_L=yes
9117      fi
9118      ;;
9119
9120    hpux11*)
9121      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9122        case $host_cpu in
9123        hppa*64*)
9124          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9125          ;;
9126        ia64*)
9127          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9128          ;;
9129        *)
9130          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9131          ;;
9132        esac
9133      else
9134        case $host_cpu in
9135        hppa*64*)
9136          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9137          ;;
9138        ia64*)
9139          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9140          ;;
9141        *)
9142          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9143          ;;
9144        esac
9145      fi
9146      if test "$with_gnu_ld" = no; then
9147        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9148        hardcode_libdir_separator=:
9149
9150        case $host_cpu in
9151        hppa*64*|ia64*)
9152          hardcode_libdir_flag_spec_ld='+b $libdir'
9153          hardcode_direct=no
9154          hardcode_shlibpath_var=no
9155          ;;
9156        *)
9157          hardcode_direct=yes
9158          export_dynamic_flag_spec='${wl}-E'
9159
9160          # hardcode_minus_L: Not really in the search PATH,
9161          # but as the default location of the library.
9162          hardcode_minus_L=yes
9163          ;;
9164        esac
9165      fi
9166      ;;
9167
9168    irix5* | irix6* | nonstopux*)
9169      if test "$GCC" = yes; then
9170        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'
9171      else
9172        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'
9173        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9174      fi
9175      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176      hardcode_libdir_separator=:
9177      link_all_deplibs=yes
9178      ;;
9179
9180    netbsd*)
9181      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9182        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9183      else
9184        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9185      fi
9186      hardcode_libdir_flag_spec='-R$libdir'
9187      hardcode_direct=yes
9188      hardcode_shlibpath_var=no
9189      ;;
9190
9191    newsos6)
9192      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9193      hardcode_direct=yes
9194      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9195      hardcode_libdir_separator=:
9196      hardcode_shlibpath_var=no
9197      ;;
9198
9199    openbsd*)
9200      hardcode_direct=yes
9201      hardcode_shlibpath_var=no
9202      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9203        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9204        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9205        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9206        export_dynamic_flag_spec='${wl}-E'
9207      else
9208       case $host_os in
9209         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9210           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9211           hardcode_libdir_flag_spec='-R$libdir'
9212           ;;
9213         *)
9214           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9215           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9216           ;;
9217       esac
9218      fi
9219      ;;
9220
9221    os2*)
9222      hardcode_libdir_flag_spec='-L$libdir'
9223      hardcode_minus_L=yes
9224      allow_undefined_flag=unsupported
9225      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'
9226      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9227      ;;
9228
9229    osf3*)
9230      if test "$GCC" = yes; then
9231        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9232        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'
9233      else
9234        allow_undefined_flag=' -expect_unresolved \*'
9235        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'
9236      fi
9237      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9238      hardcode_libdir_separator=:
9239      ;;
9240
9241    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9242      if test "$GCC" = yes; then
9243        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9244        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'
9245        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9246      else
9247        allow_undefined_flag=' -expect_unresolved \*'
9248        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'
9249        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9250        $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'
9251
9252        # Both c and cxx compiler support -rpath directly
9253        hardcode_libdir_flag_spec='-rpath $libdir'
9254      fi
9255      hardcode_libdir_separator=:
9256      ;;
9257
9258    solaris*)
9259      no_undefined_flag=' -z text'
9260      if test "$GCC" = yes; then
9261        wlarc='${wl}'
9262        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9263        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9264          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9265      else
9266        wlarc=''
9267        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9268        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9269        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9270      fi
9271      hardcode_libdir_flag_spec='-R$libdir'
9272      hardcode_shlibpath_var=no
9273      case $host_os in
9274      solaris2.[0-5] | solaris2.[0-5].*) ;;
9275      *)
9276        # The compiler driver will combine linker options so we
9277        # cannot just pass the convience library names through
9278        # without $wl, iff we do not link with $LD.
9279        # Luckily, gcc supports the same syntax we need for Sun Studio.
9280        # Supported since Solaris 2.6 (maybe 2.5.1?)
9281        case $wlarc in
9282        '')
9283          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9284        *)
9285          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' ;;
9286        esac ;;
9287      esac
9288      link_all_deplibs=yes
9289      ;;
9290
9291    sunos4*)
9292      if test "x$host_vendor" = xsequent; then
9293        # Use $CC to link under sequent, because it throws in some extra .o
9294        # files that make .init and .fini sections work.
9295        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9296      else
9297        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9298      fi
9299      hardcode_libdir_flag_spec='-L$libdir'
9300      hardcode_direct=yes
9301      hardcode_minus_L=yes
9302      hardcode_shlibpath_var=no
9303      ;;
9304
9305    sysv4)
9306      case $host_vendor in
9307        sni)
9308          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9309          hardcode_direct=yes # is this really true???
9310        ;;
9311        siemens)
9312          ## LD is ld it makes a PLAMLIB
9313          ## CC just makes a GrossModule.
9314          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9315          reload_cmds='$CC -r -o $output$reload_objs'
9316          hardcode_direct=no
9317        ;;
9318        motorola)
9319          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9321        ;;
9322      esac
9323      runpath_var='LD_RUN_PATH'
9324      hardcode_shlibpath_var=no
9325      ;;
9326
9327    sysv4.3*)
9328      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329      hardcode_shlibpath_var=no
9330      export_dynamic_flag_spec='-Bexport'
9331      ;;
9332
9333    sysv4*MP*)
9334      if test -d /usr/nec; then
9335        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336        hardcode_shlibpath_var=no
9337        runpath_var=LD_RUN_PATH
9338        hardcode_runpath_var=yes
9339        ld_shlibs=yes
9340      fi
9341      ;;
9342
9343    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9344      no_undefined_flag='${wl}-z,text'
9345      archive_cmds_need_lc=no
9346      hardcode_shlibpath_var=no
9347      runpath_var='LD_RUN_PATH'
9348
9349      if test "$GCC" = yes; then
9350        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352      else
9353        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355      fi
9356      ;;
9357
9358    sysv5* | sco3.2v5* | sco5v6*)
9359      # Note: We can NOT use -z defs as we might desire, because we do not
9360      # link with -lc, and that would cause any symbols used from libc to
9361      # always be unresolved, which means just about no library would
9362      # ever link correctly.  If we're not using GNU ld we use -z text
9363      # though, which does catch some bad symbols but isn't as heavy-handed
9364      # as -z defs.
9365      no_undefined_flag='${wl}-z,text'
9366      allow_undefined_flag='${wl}-z,nodefs'
9367      archive_cmds_need_lc=no
9368      hardcode_shlibpath_var=no
9369      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9370      hardcode_libdir_separator=':'
9371      link_all_deplibs=yes
9372      export_dynamic_flag_spec='${wl}-Bexport'
9373      runpath_var='LD_RUN_PATH'
9374
9375      if test "$GCC" = yes; then
9376        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9377        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9378      else
9379        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9380        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9381      fi
9382      ;;
9383
9384    uts4*)
9385      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386      hardcode_libdir_flag_spec='-L$libdir'
9387      hardcode_shlibpath_var=no
9388      ;;
9389
9390    *)
9391      ld_shlibs=no
9392      ;;
9393    esac
9394  fi
9395
9396echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9397echo "${ECHO_T}$ld_shlibs" >&6
9398test "$ld_shlibs" = no && can_build_shared=no
9399
9400#
9401# Do we need to explicitly link libc?
9402#
9403case "x$archive_cmds_need_lc" in
9404x|xyes)
9405  # Assume -lc should be added
9406  archive_cmds_need_lc=yes
9407
9408  if test "$enable_shared" = yes && test "$GCC" = yes; then
9409    case $archive_cmds in
9410    *'~'*)
9411      # FIXME: we may have to deal with multi-command sequences.
9412      ;;
9413    '$CC '*)
9414      # Test whether the compiler implicitly links with -lc since on some
9415      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9416      # to ld, don't add -lc before -lgcc.
9417      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9418echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9419      $rm conftest*
9420      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9421
9422      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9423  (eval $ac_compile) 2>&5
9424  ac_status=$?
9425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426  (exit $ac_status); } 2>conftest.err; then
9427        soname=conftest
9428        lib=conftest
9429        libobjs=conftest.$ac_objext
9430        deplibs=
9431        wl=$lt_prog_compiler_wl
9432        pic_flag=$lt_prog_compiler_pic
9433        compiler_flags=-v
9434        linker_flags=-v
9435        verstring=
9436        output_objdir=.
9437        libname=conftest
9438        lt_save_allow_undefined_flag=$allow_undefined_flag
9439        allow_undefined_flag=
9440        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9441  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9442  ac_status=$?
9443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444  (exit $ac_status); }
9445        then
9446          archive_cmds_need_lc=no
9447        else
9448          archive_cmds_need_lc=yes
9449        fi
9450        allow_undefined_flag=$lt_save_allow_undefined_flag
9451      else
9452        cat conftest.err 1>&5
9453      fi
9454      $rm conftest*
9455      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9456echo "${ECHO_T}$archive_cmds_need_lc" >&6
9457      ;;
9458    esac
9459  fi
9460  ;;
9461esac
9462
9463echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9464echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9465library_names_spec=
9466libname_spec='lib$name'
9467soname_spec=
9468shrext_cmds=".so"
9469postinstall_cmds=
9470postuninstall_cmds=
9471finish_cmds=
9472finish_eval=
9473shlibpath_var=
9474shlibpath_overrides_runpath=unknown
9475version_type=none
9476dynamic_linker="$host_os ld.so"
9477sys_lib_dlsearch_path_spec="/lib /usr/lib"
9478if test "$GCC" = yes; then
9479  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9480  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9481    # if the path contains ";" then we assume it to be the separator
9482    # otherwise default to the standard path separator (i.e. ":") - it is
9483    # assumed that no part of a normal pathname contains ";" but that should
9484    # okay in the real world where ";" in dirpaths is itself problematic.
9485    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9486  else
9487    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9488  fi
9489else
9490  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9491fi
9492need_lib_prefix=unknown
9493hardcode_into_libs=no
9494
9495# when you set need_version to no, make sure it does not cause -set_version
9496# flags to be left without arguments
9497need_version=unknown
9498
9499case $host_os in
9500aix3*)
9501  version_type=linux
9502  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9503  shlibpath_var=LIBPATH
9504
9505  # AIX 3 has no versioning support, so we append a major version to the name.
9506  soname_spec='${libname}${release}${shared_ext}$major'
9507  ;;
9508
9509aix4* | aix5*)
9510  version_type=linux
9511  need_lib_prefix=no
9512  need_version=no
9513  hardcode_into_libs=yes
9514  if test "$host_cpu" = ia64; then
9515    # AIX 5 supports IA64
9516    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9517    shlibpath_var=LD_LIBRARY_PATH
9518  else
9519    # With GCC up to 2.95.x, collect2 would create an import file
9520    # for dependence libraries.  The import file would start with
9521    # the line `#! .'.  This would cause the generated library to
9522    # depend on `.', always an invalid library.  This was fixed in
9523    # development snapshots of GCC prior to 3.0.
9524    case $host_os in
9525      aix4 | aix4.[01] | aix4.[01].*)
9526      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9527           echo ' yes '
9528           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9529        :
9530      else
9531        can_build_shared=no
9532      fi
9533      ;;
9534    esac
9535    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9536    # soname into executable. Probably we can add versioning support to
9537    # collect2, so additional links can be useful in future.
9538    if test "$aix_use_runtimelinking" = yes; then
9539      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9540      # instead of lib<name>.a to let people know that these are not
9541      # typical AIX shared libraries.
9542      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543    else
9544      # We preserve .a as extension for shared libraries through AIX4.2
9545      # and later when we are not doing run time linking.
9546      library_names_spec='${libname}${release}.a $libname.a'
9547      soname_spec='${libname}${release}${shared_ext}$major'
9548    fi
9549    shlibpath_var=LIBPATH
9550  fi
9551  ;;
9552
9553amigaos*)
9554  library_names_spec='$libname.ixlibrary $libname.a'
9555  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9556  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'
9557  ;;
9558
9559beos*)
9560  library_names_spec='${libname}${shared_ext}'
9561  dynamic_linker="$host_os ld.so"
9562  shlibpath_var=LIBRARY_PATH
9563  ;;
9564
9565bsdi[45]*)
9566  version_type=linux
9567  need_version=no
9568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9569  soname_spec='${libname}${release}${shared_ext}$major'
9570  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9571  shlibpath_var=LD_LIBRARY_PATH
9572  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9573  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9574  # the default ld.so.conf also contains /usr/contrib/lib and
9575  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9576  # libtool to hard-code these into programs
9577  ;;
9578
9579cygwin* | mingw* | pw32*)
9580  version_type=windows
9581  shrext_cmds=".dll"
9582  need_version=no
9583  need_lib_prefix=no
9584
9585  case $GCC,$host_os in
9586  yes,cygwin* | yes,mingw* | yes,pw32*)
9587    library_names_spec='$libname.dll.a'
9588    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9589    postinstall_cmds='base_file=`basename \${file}`~
9590      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9591      dldir=$destdir/`dirname \$dlpath`~
9592      test -d \$dldir || mkdir -p \$dldir~
9593      $install_prog $dir/$dlname \$dldir/$dlname~
9594      chmod a+x \$dldir/$dlname'
9595    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9596      dlpath=$dir/\$dldll~
9597       $rm \$dlpath'
9598    shlibpath_overrides_runpath=yes
9599
9600    case $host_os in
9601    cygwin*)
9602      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9603      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9604      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9605      ;;
9606    mingw*)
9607      # MinGW DLLs use traditional 'lib' prefix
9608      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9609      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9610      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9611        # It is most probably a Windows format PATH printed by
9612        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9613        # path with ; separators, and with drive letters. We can handle the
9614        # drive letters (cygwin fileutils understands them), so leave them,
9615        # especially as we might pass files found there to a mingw objdump,
9616        # which wouldn't understand a cygwinified path. Ahh.
9617        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9618      else
9619        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9620      fi
9621      ;;
9622    pw32*)
9623      # pw32 DLLs use 'pw' prefix rather than 'lib'
9624      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9625      ;;
9626    esac
9627    ;;
9628
9629  *)
9630    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9631    ;;
9632  esac
9633  dynamic_linker='Win32 ld.exe'
9634  # FIXME: first we should search . and the directory the executable is in
9635  shlibpath_var=PATH
9636  ;;
9637
9638darwin* | rhapsody*)
9639  dynamic_linker="$host_os dyld"
9640  version_type=darwin
9641  need_lib_prefix=no
9642  need_version=no
9643  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9644  soname_spec='${libname}${release}${major}$shared_ext'
9645  shlibpath_overrides_runpath=yes
9646  shlibpath_var=DYLD_LIBRARY_PATH
9647  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9648  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9649  if test "$GCC" = yes; then
9650    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"`
9651  else
9652    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9653  fi
9654  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9655  ;;
9656
9657dgux*)
9658  version_type=linux
9659  need_lib_prefix=no
9660  need_version=no
9661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9662  soname_spec='${libname}${release}${shared_ext}$major'
9663  shlibpath_var=LD_LIBRARY_PATH
9664  ;;
9665
9666freebsd1*)
9667  dynamic_linker=no
9668  ;;
9669
9670kfreebsd*-gnu)
9671  version_type=linux
9672  need_lib_prefix=no
9673  need_version=no
9674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9675  soname_spec='${libname}${release}${shared_ext}$major'
9676  shlibpath_var=LD_LIBRARY_PATH
9677  shlibpath_overrides_runpath=no
9678  hardcode_into_libs=yes
9679  dynamic_linker='GNU ld.so'
9680  ;;
9681
9682freebsd* | dragonfly*)
9683  # DragonFly does not have aout.  When/if they implement a new
9684  # versioning mechanism, adjust this.
9685  if test -x /usr/bin/objformat; then
9686    objformat=`/usr/bin/objformat`
9687  else
9688    case $host_os in
9689    freebsd[123]*) objformat=aout ;;
9690    *) objformat=elf ;;
9691    esac
9692  fi
9693  version_type=freebsd-$objformat
9694  case $version_type in
9695    freebsd-elf*)
9696      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9697      need_version=no
9698      need_lib_prefix=no
9699      ;;
9700    freebsd-*)
9701      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9702      need_version=yes
9703      ;;
9704  esac
9705  shlibpath_var=LD_LIBRARY_PATH
9706  case $host_os in
9707  freebsd2*)
9708    shlibpath_overrides_runpath=yes
9709    ;;
9710  freebsd3.[01]* | freebsdelf3.[01]*)
9711    shlibpath_overrides_runpath=yes
9712    hardcode_into_libs=yes
9713    ;;
9714  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9715  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9716    shlibpath_overrides_runpath=no
9717    hardcode_into_libs=yes
9718    ;;
9719  freebsd*) # from 4.6 on
9720    shlibpath_overrides_runpath=yes
9721    hardcode_into_libs=yes
9722    ;;
9723  esac
9724  ;;
9725
9726gnu*)
9727  version_type=linux
9728  need_lib_prefix=no
9729  need_version=no
9730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9731  soname_spec='${libname}${release}${shared_ext}$major'
9732  shlibpath_var=LD_LIBRARY_PATH
9733  hardcode_into_libs=yes
9734  ;;
9735
9736hpux9* | hpux10* | hpux11*)
9737  # Give a soname corresponding to the major version so that dld.sl refuses to
9738  # link against other versions.
9739  version_type=sunos
9740  need_lib_prefix=no
9741  need_version=no
9742  case $host_cpu in
9743  ia64*)
9744    shrext_cmds='.so'
9745    hardcode_into_libs=yes
9746    dynamic_linker="$host_os dld.so"
9747    shlibpath_var=LD_LIBRARY_PATH
9748    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9749    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750    soname_spec='${libname}${release}${shared_ext}$major'
9751    if test "X$HPUX_IA64_MODE" = X32; then
9752      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9753    else
9754      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9755    fi
9756    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9757    ;;
9758   hppa*64*)
9759     shrext_cmds='.sl'
9760     hardcode_into_libs=yes
9761     dynamic_linker="$host_os dld.sl"
9762     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9763     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765     soname_spec='${libname}${release}${shared_ext}$major'
9766     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9767     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9768     ;;
9769   *)
9770    shrext_cmds='.sl'
9771    dynamic_linker="$host_os dld.sl"
9772    shlibpath_var=SHLIB_PATH
9773    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9774    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775    soname_spec='${libname}${release}${shared_ext}$major'
9776    ;;
9777  esac
9778  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9779  postinstall_cmds='chmod 555 $lib'
9780  ;;
9781
9782interix3*)
9783  version_type=linux
9784  need_lib_prefix=no
9785  need_version=no
9786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9787  soname_spec='${libname}${release}${shared_ext}$major'
9788  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9789  shlibpath_var=LD_LIBRARY_PATH
9790  shlibpath_overrides_runpath=no
9791  hardcode_into_libs=yes
9792  ;;
9793
9794irix5* | irix6* | nonstopux*)
9795  case $host_os in
9796    nonstopux*) version_type=nonstopux ;;
9797    *)
9798        if test "$lt_cv_prog_gnu_ld" = yes; then
9799                version_type=linux
9800        else
9801                version_type=irix
9802        fi ;;
9803  esac
9804  need_lib_prefix=no
9805  need_version=no
9806  soname_spec='${libname}${release}${shared_ext}$major'
9807  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9808  case $host_os in
9809  irix5* | nonstopux*)
9810    libsuff= shlibsuff=
9811    ;;
9812  *)
9813    case $LD in # libtool.m4 will add one of these switches to LD
9814    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9815      libsuff= shlibsuff= libmagic=32-bit;;
9816    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9817      libsuff=32 shlibsuff=N32 libmagic=N32;;
9818    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9819      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9820    *) libsuff= shlibsuff= libmagic=never-match;;
9821    esac
9822    ;;
9823  esac
9824  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9825  shlibpath_overrides_runpath=no
9826  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9827  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9828  hardcode_into_libs=yes
9829  ;;
9830
9831# No shared lib support for Linux oldld, aout, or coff.
9832linux*oldld* | linux*aout* | linux*coff*)
9833  dynamic_linker=no
9834  ;;
9835
9836# This must be Linux ELF.
9837linux*)
9838  version_type=linux
9839  need_lib_prefix=no
9840  need_version=no
9841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842  soname_spec='${libname}${release}${shared_ext}$major'
9843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9844  shlibpath_var=LD_LIBRARY_PATH
9845  shlibpath_overrides_runpath=no
9846  # This implies no fast_install, which is unacceptable.
9847  # Some rework will be needed to allow for fast_install
9848  # before this can be enabled.
9849  hardcode_into_libs=yes
9850
9851  # Append ld.so.conf contents to the search path
9852  if test -f /etc/ld.so.conf; then
9853    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' ' '`
9854    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9855  fi
9856
9857  # We used to test for /lib/ld.so.1 and disable shared libraries on
9858  # powerpc, because MkLinux only supported shared libraries with the
9859  # GNU dynamic linker.  Since this was broken with cross compilers,
9860  # most powerpc-linux boxes support dynamic linking these days and
9861  # people can always --disable-shared, the test was removed, and we
9862  # assume the GNU/Linux dynamic linker is in use.
9863  dynamic_linker='GNU/Linux ld.so'
9864  ;;
9865
9866knetbsd*-gnu)
9867  version_type=linux
9868  need_lib_prefix=no
9869  need_version=no
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9871  soname_spec='${libname}${release}${shared_ext}$major'
9872  shlibpath_var=LD_LIBRARY_PATH
9873  shlibpath_overrides_runpath=no
9874  hardcode_into_libs=yes
9875  dynamic_linker='GNU ld.so'
9876  ;;
9877
9878netbsd*)
9879  version_type=sunos
9880  need_lib_prefix=no
9881  need_version=no
9882  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9883    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9884    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9885    dynamic_linker='NetBSD (a.out) ld.so'
9886  else
9887    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9888    soname_spec='${libname}${release}${shared_ext}$major'
9889    dynamic_linker='NetBSD ld.elf_so'
9890  fi
9891  shlibpath_var=LD_LIBRARY_PATH
9892  shlibpath_overrides_runpath=yes
9893  hardcode_into_libs=yes
9894  ;;
9895
9896newsos6)
9897  version_type=linux
9898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899  shlibpath_var=LD_LIBRARY_PATH
9900  shlibpath_overrides_runpath=yes
9901  ;;
9902
9903nto-qnx*)
9904  version_type=linux
9905  need_lib_prefix=no
9906  need_version=no
9907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9908  soname_spec='${libname}${release}${shared_ext}$major'
9909  shlibpath_var=LD_LIBRARY_PATH
9910  shlibpath_overrides_runpath=yes
9911  ;;
9912
9913openbsd*)
9914  version_type=sunos
9915  sys_lib_dlsearch_path_spec="/usr/lib"
9916  need_lib_prefix=no
9917  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9918  case $host_os in
9919    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9920    *)                         need_version=no  ;;
9921  esac
9922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9923  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9924  shlibpath_var=LD_LIBRARY_PATH
9925  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9926    case $host_os in
9927      openbsd2.[89] | openbsd2.[89].*)
9928        shlibpath_overrides_runpath=no
9929        ;;
9930      *)
9931        shlibpath_overrides_runpath=yes
9932        ;;
9933      esac
9934  else
9935    shlibpath_overrides_runpath=yes
9936  fi
9937  ;;
9938
9939os2*)
9940  libname_spec='$name'
9941  shrext_cmds=".dll"
9942  need_lib_prefix=no
9943  library_names_spec='$libname${shared_ext} $libname.a'
9944  dynamic_linker='OS/2 ld.exe'
9945  shlibpath_var=LIBPATH
9946  ;;
9947
9948osf3* | osf4* | osf5*)
9949  version_type=osf
9950  need_lib_prefix=no
9951  need_version=no
9952  soname_spec='${libname}${release}${shared_ext}$major'
9953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954  shlibpath_var=LD_LIBRARY_PATH
9955  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9956  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9957  ;;
9958
9959solaris*)
9960  version_type=linux
9961  need_lib_prefix=no
9962  need_version=no
9963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964  soname_spec='${libname}${release}${shared_ext}$major'
9965  shlibpath_var=LD_LIBRARY_PATH
9966  shlibpath_overrides_runpath=yes
9967  hardcode_into_libs=yes
9968  # ldd complains unless libraries are executable
9969  postinstall_cmds='chmod +x $lib'
9970  ;;
9971
9972sunos4*)
9973  version_type=sunos
9974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9975  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9976  shlibpath_var=LD_LIBRARY_PATH
9977  shlibpath_overrides_runpath=yes
9978  if test "$with_gnu_ld" = yes; then
9979    need_lib_prefix=no
9980  fi
9981  need_version=yes
9982  ;;
9983
9984sysv4 | sysv4.3*)
9985  version_type=linux
9986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9987  soname_spec='${libname}${release}${shared_ext}$major'
9988  shlibpath_var=LD_LIBRARY_PATH
9989  case $host_vendor in
9990    sni)
9991      shlibpath_overrides_runpath=no
9992      need_lib_prefix=no
9993      export_dynamic_flag_spec='${wl}-Blargedynsym'
9994      runpath_var=LD_RUN_PATH
9995      ;;
9996    siemens)
9997      need_lib_prefix=no
9998      ;;
9999    motorola)
10000      need_lib_prefix=no
10001      need_version=no
10002      shlibpath_overrides_runpath=no
10003      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10004      ;;
10005  esac
10006  ;;
10007
10008sysv4*MP*)
10009  if test -d /usr/nec ;then
10010    version_type=linux
10011    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10012    soname_spec='$libname${shared_ext}.$major'
10013    shlibpath_var=LD_LIBRARY_PATH
10014  fi
10015  ;;
10016
10017sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10018  version_type=freebsd-elf
10019  need_lib_prefix=no
10020  need_version=no
10021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10022  soname_spec='${libname}${release}${shared_ext}$major'
10023  shlibpath_var=LD_LIBRARY_PATH
10024  hardcode_into_libs=yes
10025  if test "$with_gnu_ld" = yes; then
10026    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10027    shlibpath_overrides_runpath=no
10028  else
10029    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10030    shlibpath_overrides_runpath=yes
10031    case $host_os in
10032      sco3.2v5*)
10033        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10034        ;;
10035    esac
10036  fi
10037  sys_lib_dlsearch_path_spec='/usr/lib'
10038  ;;
10039
10040uts4*)
10041  version_type=linux
10042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10043  soname_spec='${libname}${release}${shared_ext}$major'
10044  shlibpath_var=LD_LIBRARY_PATH
10045  ;;
10046
10047*)
10048  dynamic_linker=no
10049  ;;
10050esac
10051echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10052echo "${ECHO_T}$dynamic_linker" >&6
10053test "$dynamic_linker" = no && can_build_shared=no
10054
10055variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10056if test "$GCC" = yes; then
10057  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10058fi
10059
10060echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10061echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10062hardcode_action=
10063if test -n "$hardcode_libdir_flag_spec" || \
10064   test -n "$runpath_var" || \
10065   test "X$hardcode_automatic" = "Xyes" ; then
10066
10067  # We can hardcode non-existant directories.
10068  if test "$hardcode_direct" != no &&
10069     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10070     # have to relink, otherwise we might link with an installed library
10071     # when we should be linking with a yet-to-be-installed one
10072     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10073     test "$hardcode_minus_L" != no; then
10074    # Linking always hardcodes the temporary library directory.
10075    hardcode_action=relink
10076  else
10077    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10078    hardcode_action=immediate
10079  fi
10080else
10081  # We cannot hardcode anything, or else we can only hardcode existing
10082  # directories.
10083  hardcode_action=unsupported
10084fi
10085echo "$as_me:$LINENO: result: $hardcode_action" >&5
10086echo "${ECHO_T}$hardcode_action" >&6
10087
10088if test "$hardcode_action" = relink; then
10089  # Fast installation is not supported
10090  enable_fast_install=no
10091elif test "$shlibpath_overrides_runpath" = yes ||
10092     test "$enable_shared" = no; then
10093  # Fast installation is not necessary
10094  enable_fast_install=needless
10095fi
10096
10097striplib=
10098old_striplib=
10099echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10100echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10101if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10102  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10103  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10104  echo "$as_me:$LINENO: result: yes" >&5
10105echo "${ECHO_T}yes" >&6
10106else
10107# FIXME - insert some real tests, host_os isn't really good enough
10108  case $host_os in
10109   darwin*)
10110       if test -n "$STRIP" ; then
10111         striplib="$STRIP -x"
10112         echo "$as_me:$LINENO: result: yes" >&5
10113echo "${ECHO_T}yes" >&6
10114       else
10115  echo "$as_me:$LINENO: result: no" >&5
10116echo "${ECHO_T}no" >&6
10117fi
10118       ;;
10119   *)
10120  echo "$as_me:$LINENO: result: no" >&5
10121echo "${ECHO_T}no" >&6
10122    ;;
10123  esac
10124fi
10125
10126if test "x$enable_dlopen" != xyes; then
10127  enable_dlopen=unknown
10128  enable_dlopen_self=unknown
10129  enable_dlopen_self_static=unknown
10130else
10131  lt_cv_dlopen=no
10132  lt_cv_dlopen_libs=
10133
10134  case $host_os in
10135  beos*)
10136    lt_cv_dlopen="load_add_on"
10137    lt_cv_dlopen_libs=
10138    lt_cv_dlopen_self=yes
10139    ;;
10140
10141  mingw* | pw32*)
10142    lt_cv_dlopen="LoadLibrary"
10143    lt_cv_dlopen_libs=
10144   ;;
10145
10146  cygwin*)
10147    lt_cv_dlopen="dlopen"
10148    lt_cv_dlopen_libs=
10149   ;;
10150
10151  darwin*)
10152  # if libdl is installed we need to link against it
10153    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10154echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10155if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10156  echo $ECHO_N "(cached) $ECHO_C" >&6
10157else
10158  ac_check_lib_save_LIBS=$LIBS
10159LIBS="-ldl  $LIBS"
10160cat >conftest.$ac_ext <<_ACEOF
10161/* confdefs.h.  */
10162_ACEOF
10163cat confdefs.h >>conftest.$ac_ext
10164cat >>conftest.$ac_ext <<_ACEOF
10165/* end confdefs.h.  */
10166
10167/* Override any gcc2 internal prototype to avoid an error.  */
10168#ifdef __cplusplus
10169extern "C"
10170#endif
10171/* We use char because int might match the return type of a gcc2
10172   builtin and then its argument prototype would still apply.  */
10173char dlopen ();
10174int
10175main ()
10176{
10177dlopen ();
10178  ;
10179  return 0;
10180}
10181_ACEOF
10182rm -f conftest.$ac_objext conftest$ac_exeext
10183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10184  (eval $ac_link) 2>conftest.er1
10185  ac_status=$?
10186  grep -v '^ *+' conftest.er1 >conftest.err
10187  rm -f conftest.er1
10188  cat conftest.err >&5
10189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190  (exit $ac_status); } &&
10191         { ac_try='test -z "$ac_c_werror_flag"
10192                         || test ! -s conftest.err'
10193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194  (eval $ac_try) 2>&5
10195  ac_status=$?
10196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197  (exit $ac_status); }; } &&
10198         { ac_try='test -s conftest$ac_exeext'
10199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10200  (eval $ac_try) 2>&5
10201  ac_status=$?
10202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203  (exit $ac_status); }; }; then
10204  ac_cv_lib_dl_dlopen=yes
10205else
10206  echo "$as_me: failed program was:" >&5
10207sed 's/^/| /' conftest.$ac_ext >&5
10208
10209ac_cv_lib_dl_dlopen=no
10210fi
10211rm -f conftest.err conftest.$ac_objext \
10212      conftest$ac_exeext conftest.$ac_ext
10213LIBS=$ac_check_lib_save_LIBS
10214fi
10215echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10216echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10217if test $ac_cv_lib_dl_dlopen = yes; then
10218  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10219else
10220
10221    lt_cv_dlopen="dyld"
10222    lt_cv_dlopen_libs=
10223    lt_cv_dlopen_self=yes
10224
10225fi
10226
10227   ;;
10228
10229  *)
10230    echo "$as_me:$LINENO: checking for shl_load" >&5
10231echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10232if test "${ac_cv_func_shl_load+set}" = set; then
10233  echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235  cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h.  */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h.  */
10241/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10242   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10243#define shl_load innocuous_shl_load
10244
10245/* System header to define __stub macros and hopefully few prototypes,
10246    which can conflict with char shl_load (); below.
10247    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10248    <limits.h> exists even on freestanding compilers.  */
10249
10250#ifdef __STDC__
10251# include <limits.h>
10252#else
10253# include <assert.h>
10254#endif
10255
10256#undef shl_load
10257
10258/* Override any gcc2 internal prototype to avoid an error.  */
10259#ifdef __cplusplus
10260extern "C"
10261{
10262#endif
10263/* We use char because int might match the return type of a gcc2
10264   builtin and then its argument prototype would still apply.  */
10265char shl_load ();
10266/* The GNU C library defines this for functions which it implements
10267    to always fail with ENOSYS.  Some functions are actually named
10268    something starting with __ and the normal name is an alias.  */
10269#if defined (__stub_shl_load) || defined (__stub___shl_load)
10270choke me
10271#else
10272char (*f) () = shl_load;
10273#endif
10274#ifdef __cplusplus
10275}
10276#endif
10277
10278int
10279main ()
10280{
10281return f != shl_load;
10282  ;
10283  return 0;
10284}
10285_ACEOF
10286rm -f conftest.$ac_objext conftest$ac_exeext
10287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288  (eval $ac_link) 2>conftest.er1
10289  ac_status=$?
10290  grep -v '^ *+' conftest.er1 >conftest.err
10291  rm -f conftest.er1
10292  cat conftest.err >&5
10293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294  (exit $ac_status); } &&
10295         { ac_try='test -z "$ac_c_werror_flag"
10296                         || test ! -s conftest.err'
10297  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298  (eval $ac_try) 2>&5
10299  ac_status=$?
10300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301  (exit $ac_status); }; } &&
10302         { ac_try='test -s conftest$ac_exeext'
10303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304  (eval $ac_try) 2>&5
10305  ac_status=$?
10306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307  (exit $ac_status); }; }; then
10308  ac_cv_func_shl_load=yes
10309else
10310  echo "$as_me: failed program was:" >&5
10311sed 's/^/| /' conftest.$ac_ext >&5
10312
10313ac_cv_func_shl_load=no
10314fi
10315rm -f conftest.err conftest.$ac_objext \
10316      conftest$ac_exeext conftest.$ac_ext
10317fi
10318echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10319echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10320if test $ac_cv_func_shl_load = yes; then
10321  lt_cv_dlopen="shl_load"
10322else
10323  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10324echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10325if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10326  echo $ECHO_N "(cached) $ECHO_C" >&6
10327else
10328  ac_check_lib_save_LIBS=$LIBS
10329LIBS="-ldld  $LIBS"
10330cat >conftest.$ac_ext <<_ACEOF
10331/* confdefs.h.  */
10332_ACEOF
10333cat confdefs.h >>conftest.$ac_ext
10334cat >>conftest.$ac_ext <<_ACEOF
10335/* end confdefs.h.  */
10336
10337/* Override any gcc2 internal prototype to avoid an error.  */
10338#ifdef __cplusplus
10339extern "C"
10340#endif
10341/* We use char because int might match the return type of a gcc2
10342   builtin and then its argument prototype would still apply.  */
10343char shl_load ();
10344int
10345main ()
10346{
10347shl_load ();
10348  ;
10349  return 0;
10350}
10351_ACEOF
10352rm -f conftest.$ac_objext conftest$ac_exeext
10353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10354  (eval $ac_link) 2>conftest.er1
10355  ac_status=$?
10356  grep -v '^ *+' conftest.er1 >conftest.err
10357  rm -f conftest.er1
10358  cat conftest.err >&5
10359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360  (exit $ac_status); } &&
10361         { ac_try='test -z "$ac_c_werror_flag"
10362                         || test ! -s conftest.err'
10363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364  (eval $ac_try) 2>&5
10365  ac_status=$?
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); }; } &&
10368         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10374  ac_cv_lib_dld_shl_load=yes
10375else
10376  echo "$as_me: failed program was:" >&5
10377sed 's/^/| /' conftest.$ac_ext >&5
10378
10379ac_cv_lib_dld_shl_load=no
10380fi
10381rm -f conftest.err conftest.$ac_objext \
10382      conftest$ac_exeext conftest.$ac_ext
10383LIBS=$ac_check_lib_save_LIBS
10384fi
10385echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10386echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10387if test $ac_cv_lib_dld_shl_load = yes; then
10388  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10389else
10390  echo "$as_me:$LINENO: checking for dlopen" >&5
10391echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10392if test "${ac_cv_func_dlopen+set}" = set; then
10393  echo $ECHO_N "(cached) $ECHO_C" >&6
10394else
10395  cat >conftest.$ac_ext <<_ACEOF
10396/* confdefs.h.  */
10397_ACEOF
10398cat confdefs.h >>conftest.$ac_ext
10399cat >>conftest.$ac_ext <<_ACEOF
10400/* end confdefs.h.  */
10401/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10402   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10403#define dlopen innocuous_dlopen
10404
10405/* System header to define __stub macros and hopefully few prototypes,
10406    which can conflict with char dlopen (); below.
10407    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10408    <limits.h> exists even on freestanding compilers.  */
10409
10410#ifdef __STDC__
10411# include <limits.h>
10412#else
10413# include <assert.h>
10414#endif
10415
10416#undef dlopen
10417
10418/* Override any gcc2 internal prototype to avoid an error.  */
10419#ifdef __cplusplus
10420extern "C"
10421{
10422#endif
10423/* We use char because int might match the return type of a gcc2
10424   builtin and then its argument prototype would still apply.  */
10425char dlopen ();
10426/* The GNU C library defines this for functions which it implements
10427    to always fail with ENOSYS.  Some functions are actually named
10428    something starting with __ and the normal name is an alias.  */
10429#if defined (__stub_dlopen) || defined (__stub___dlopen)
10430choke me
10431#else
10432char (*f) () = dlopen;
10433#endif
10434#ifdef __cplusplus
10435}
10436#endif
10437
10438int
10439main ()
10440{
10441return f != dlopen;
10442  ;
10443  return 0;
10444}
10445_ACEOF
10446rm -f conftest.$ac_objext conftest$ac_exeext
10447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10448  (eval $ac_link) 2>conftest.er1
10449  ac_status=$?
10450  grep -v '^ *+' conftest.er1 >conftest.err
10451  rm -f conftest.er1
10452  cat conftest.err >&5
10453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454  (exit $ac_status); } &&
10455         { ac_try='test -z "$ac_c_werror_flag"
10456                         || test ! -s conftest.err'
10457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458  (eval $ac_try) 2>&5
10459  ac_status=$?
10460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461  (exit $ac_status); }; } &&
10462         { ac_try='test -s conftest$ac_exeext'
10463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464  (eval $ac_try) 2>&5
10465  ac_status=$?
10466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467  (exit $ac_status); }; }; then
10468  ac_cv_func_dlopen=yes
10469else
10470  echo "$as_me: failed program was:" >&5
10471sed 's/^/| /' conftest.$ac_ext >&5
10472
10473ac_cv_func_dlopen=no
10474fi
10475rm -f conftest.err conftest.$ac_objext \
10476      conftest$ac_exeext conftest.$ac_ext
10477fi
10478echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10479echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10480if test $ac_cv_func_dlopen = yes; then
10481  lt_cv_dlopen="dlopen"
10482else
10483  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10484echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10485if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10486  echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488  ac_check_lib_save_LIBS=$LIBS
10489LIBS="-ldl  $LIBS"
10490cat >conftest.$ac_ext <<_ACEOF
10491/* confdefs.h.  */
10492_ACEOF
10493cat confdefs.h >>conftest.$ac_ext
10494cat >>conftest.$ac_ext <<_ACEOF
10495/* end confdefs.h.  */
10496
10497/* Override any gcc2 internal prototype to avoid an error.  */
10498#ifdef __cplusplus
10499extern "C"
10500#endif
10501/* We use char because int might match the return type of a gcc2
10502   builtin and then its argument prototype would still apply.  */
10503char dlopen ();
10504int
10505main ()
10506{
10507dlopen ();
10508  ;
10509  return 0;
10510}
10511_ACEOF
10512rm -f conftest.$ac_objext conftest$ac_exeext
10513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10514  (eval $ac_link) 2>conftest.er1
10515  ac_status=$?
10516  grep -v '^ *+' conftest.er1 >conftest.err
10517  rm -f conftest.er1
10518  cat conftest.err >&5
10519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520  (exit $ac_status); } &&
10521         { ac_try='test -z "$ac_c_werror_flag"
10522                         || test ! -s conftest.err'
10523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524  (eval $ac_try) 2>&5
10525  ac_status=$?
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); }; } &&
10528         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10534  ac_cv_lib_dl_dlopen=yes
10535else
10536  echo "$as_me: failed program was:" >&5
10537sed 's/^/| /' conftest.$ac_ext >&5
10538
10539ac_cv_lib_dl_dlopen=no
10540fi
10541rm -f conftest.err conftest.$ac_objext \
10542      conftest$ac_exeext conftest.$ac_ext
10543LIBS=$ac_check_lib_save_LIBS
10544fi
10545echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10546echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10547if test $ac_cv_lib_dl_dlopen = yes; then
10548  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10549else
10550  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10551echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10552if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10553  echo $ECHO_N "(cached) $ECHO_C" >&6
10554else
10555  ac_check_lib_save_LIBS=$LIBS
10556LIBS="-lsvld  $LIBS"
10557cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h.  */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h.  */
10563
10564/* Override any gcc2 internal prototype to avoid an error.  */
10565#ifdef __cplusplus
10566extern "C"
10567#endif
10568/* We use char because int might match the return type of a gcc2
10569   builtin and then its argument prototype would still apply.  */
10570char dlopen ();
10571int
10572main ()
10573{
10574dlopen ();
10575  ;
10576  return 0;
10577}
10578_ACEOF
10579rm -f conftest.$ac_objext conftest$ac_exeext
10580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10581  (eval $ac_link) 2>conftest.er1
10582  ac_status=$?
10583  grep -v '^ *+' conftest.er1 >conftest.err
10584  rm -f conftest.er1
10585  cat conftest.err >&5
10586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587  (exit $ac_status); } &&
10588         { ac_try='test -z "$ac_c_werror_flag"
10589                         || test ! -s conftest.err'
10590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591  (eval $ac_try) 2>&5
10592  ac_status=$?
10593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594  (exit $ac_status); }; } &&
10595         { ac_try='test -s conftest$ac_exeext'
10596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597  (eval $ac_try) 2>&5
10598  ac_status=$?
10599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600  (exit $ac_status); }; }; then
10601  ac_cv_lib_svld_dlopen=yes
10602else
10603  echo "$as_me: failed program was:" >&5
10604sed 's/^/| /' conftest.$ac_ext >&5
10605
10606ac_cv_lib_svld_dlopen=no
10607fi
10608rm -f conftest.err conftest.$ac_objext \
10609      conftest$ac_exeext conftest.$ac_ext
10610LIBS=$ac_check_lib_save_LIBS
10611fi
10612echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10613echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10614if test $ac_cv_lib_svld_dlopen = yes; then
10615  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10616else
10617  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10618echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10619if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10620  echo $ECHO_N "(cached) $ECHO_C" >&6
10621else
10622  ac_check_lib_save_LIBS=$LIBS
10623LIBS="-ldld  $LIBS"
10624cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h.  */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h.  */
10630
10631/* Override any gcc2 internal prototype to avoid an error.  */
10632#ifdef __cplusplus
10633extern "C"
10634#endif
10635/* We use char because int might match the return type of a gcc2
10636   builtin and then its argument prototype would still apply.  */
10637char dld_link ();
10638int
10639main ()
10640{
10641dld_link ();
10642  ;
10643  return 0;
10644}
10645_ACEOF
10646rm -f conftest.$ac_objext conftest$ac_exeext
10647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648  (eval $ac_link) 2>conftest.er1
10649  ac_status=$?
10650  grep -v '^ *+' conftest.er1 >conftest.err
10651  rm -f conftest.er1
10652  cat conftest.err >&5
10653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654  (exit $ac_status); } &&
10655         { ac_try='test -z "$ac_c_werror_flag"
10656                         || test ! -s conftest.err'
10657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658  (eval $ac_try) 2>&5
10659  ac_status=$?
10660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661  (exit $ac_status); }; } &&
10662         { ac_try='test -s conftest$ac_exeext'
10663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664  (eval $ac_try) 2>&5
10665  ac_status=$?
10666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667  (exit $ac_status); }; }; then
10668  ac_cv_lib_dld_dld_link=yes
10669else
10670  echo "$as_me: failed program was:" >&5
10671sed 's/^/| /' conftest.$ac_ext >&5
10672
10673ac_cv_lib_dld_dld_link=no
10674fi
10675rm -f conftest.err conftest.$ac_objext \
10676      conftest$ac_exeext conftest.$ac_ext
10677LIBS=$ac_check_lib_save_LIBS
10678fi
10679echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10680echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10681if test $ac_cv_lib_dld_dld_link = yes; then
10682  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10683fi
10684
10685
10686fi
10687
10688
10689fi
10690
10691
10692fi
10693
10694
10695fi
10696
10697
10698fi
10699
10700    ;;
10701  esac
10702
10703  if test "x$lt_cv_dlopen" != xno; then
10704    enable_dlopen=yes
10705  else
10706    enable_dlopen=no
10707  fi
10708
10709  case $lt_cv_dlopen in
10710  dlopen)
10711    save_CPPFLAGS="$CPPFLAGS"
10712    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10713
10714    save_LDFLAGS="$LDFLAGS"
10715    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10716
10717    save_LIBS="$LIBS"
10718    LIBS="$lt_cv_dlopen_libs $LIBS"
10719
10720    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10721echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10722if test "${lt_cv_dlopen_self+set}" = set; then
10723  echo $ECHO_N "(cached) $ECHO_C" >&6
10724else
10725          if test "$cross_compiling" = yes; then :
10726  lt_cv_dlopen_self=cross
10727else
10728  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10729  lt_status=$lt_dlunknown
10730  cat > conftest.$ac_ext <<EOF
10731#line 10731 "configure"
10732#include "confdefs.h"
10733
10734#if HAVE_DLFCN_H
10735#include <dlfcn.h>
10736#endif
10737
10738#include <stdio.h>
10739
10740#ifdef RTLD_GLOBAL
10741#  define LT_DLGLOBAL           RTLD_GLOBAL
10742#else
10743#  ifdef DL_GLOBAL
10744#    define LT_DLGLOBAL         DL_GLOBAL
10745#  else
10746#    define LT_DLGLOBAL         0
10747#  endif
10748#endif
10749
10750/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10751   find out it does not work in some platform. */
10752#ifndef LT_DLLAZY_OR_NOW
10753#  ifdef RTLD_LAZY
10754#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10755#  else
10756#    ifdef DL_LAZY
10757#      define LT_DLLAZY_OR_NOW          DL_LAZY
10758#    else
10759#      ifdef RTLD_NOW
10760#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10761#      else
10762#        ifdef DL_NOW
10763#          define LT_DLLAZY_OR_NOW      DL_NOW
10764#        else