source: trunk/Clp/configure @ 1557

Last change on this file since 1557 was 1557, checked in by lou, 9 years ago

restoring https://projects.coin-or.org/svn/Clp/trunk

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