source: stable/BSPsplit/Clp/configure @ 1465

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

use new pkg-config based macros to search for required and optional packages

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