source: stable/1.8/CoinMP/configure @ 652

Last change on this file since 652 was 652, checked in by tkr, 4 years ago

restoring CoinMP/stable/1.8

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