source: trunk/configure @ 1557

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

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

  • Property svn:executable set to *
File size: 728.2 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp trunk.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='Clp trunk'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
478ac_subdirs_all="$ac_subdirs_all CoinUtils"
479ac_subdirs_all="$ac_subdirs_all Data/Sample"
480ac_subdirs_all="$ac_subdirs_all Data/Netlib"
481ac_subdirs_all="$ac_subdirs_all Clp"
482ac_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 CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
483ac_subst_files=''
484
485# Initialize some variables set by options.
486ac_init_help=
487ac_init_version=false
488# The variables have the same names as the options, with
489# dashes changed to underlines.
490cache_file=/dev/null
491exec_prefix=NONE
492no_create=
493no_recursion=
494prefix=NONE
495program_prefix=NONE
496program_suffix=NONE
497program_transform_name=s,x,x,
498silent=
499site=
500srcdir=
501verbose=
502x_includes=NONE
503x_libraries=NONE
504
505# Installation directory options.
506# These are left unexpanded so users can "make install exec_prefix=/foo"
507# and all the variables that are supposed to be based on exec_prefix
508# by default will actually change.
509# Use braces instead of parens because sh, perl, etc. also accept them.
510bindir='${exec_prefix}/bin'
511sbindir='${exec_prefix}/sbin'
512libexecdir='${exec_prefix}/libexec'
513datadir='${prefix}/share'
514sysconfdir='${prefix}/etc'
515sharedstatedir='${prefix}/com'
516localstatedir='${prefix}/var'
517libdir='${exec_prefix}/lib'
518includedir='${prefix}/include'
519oldincludedir='/usr/include'
520infodir='${prefix}/info'
521mandir='${prefix}/man'
522
523ac_prev=
524for ac_option
525do
526  # If the previous option needs an argument, assign it.
527  if test -n "$ac_prev"; then
528    eval "$ac_prev=\$ac_option"
529    ac_prev=
530    continue
531  fi
532
533  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
534
535  # Accept the important Cygnus configure options, so we can diagnose typos.
536
537  case $ac_option in
538
539  -bindir | --bindir | --bindi | --bind | --bin | --bi)
540    ac_prev=bindir ;;
541  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
542    bindir=$ac_optarg ;;
543
544  -build | --build | --buil | --bui | --bu)
545    ac_prev=build_alias ;;
546  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
547    build_alias=$ac_optarg ;;
548
549  -cache-file | --cache-file | --cache-fil | --cache-fi \
550  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
551    ac_prev=cache_file ;;
552  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
553  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
554    cache_file=$ac_optarg ;;
555
556  --config-cache | -C)
557    cache_file=config.cache ;;
558
559  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
560    ac_prev=datadir ;;
561  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
562  | --da=*)
563    datadir=$ac_optarg ;;
564
565  -disable-* | --disable-*)
566    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
567    # Reject names that are not valid shell variable names.
568    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
569      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
570   { (exit 1); exit 1; }; }
571    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
572    eval "enable_$ac_feature=no" ;;
573
574  -enable-* | --enable-*)
575    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
576    # Reject names that are not valid shell variable names.
577    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
578      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
579   { (exit 1); exit 1; }; }
580    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
581    case $ac_option in
582      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
583      *) ac_optarg=yes ;;
584    esac
585    eval "enable_$ac_feature='$ac_optarg'" ;;
586
587  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
588  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
589  | --exec | --exe | --ex)
590    ac_prev=exec_prefix ;;
591  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
592  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
593  | --exec=* | --exe=* | --ex=*)
594    exec_prefix=$ac_optarg ;;
595
596  -gas | --gas | --ga | --g)
597    # Obsolete; use --with-gas.
598    with_gas=yes ;;
599
600  -help | --help | --hel | --he | -h)
601    ac_init_help=long ;;
602  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
603    ac_init_help=recursive ;;
604  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
605    ac_init_help=short ;;
606
607  -host | --host | --hos | --ho)
608    ac_prev=host_alias ;;
609  -host=* | --host=* | --hos=* | --ho=*)
610    host_alias=$ac_optarg ;;
611
612  -includedir | --includedir | --includedi | --included | --include \
613  | --includ | --inclu | --incl | --inc)
614    ac_prev=includedir ;;
615  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
616  | --includ=* | --inclu=* | --incl=* | --inc=*)
617    includedir=$ac_optarg ;;
618
619  -infodir | --infodir | --infodi | --infod | --info | --inf)
620    ac_prev=infodir ;;
621  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
622    infodir=$ac_optarg ;;
623
624  -libdir | --libdir | --libdi | --libd)
625    ac_prev=libdir ;;
626  -libdir=* | --libdir=* | --libdi=* | --libd=*)
627    libdir=$ac_optarg ;;
628
629  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
630  | --libexe | --libex | --libe)
631    ac_prev=libexecdir ;;
632  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
633  | --libexe=* | --libex=* | --libe=*)
634    libexecdir=$ac_optarg ;;
635
636  -localstatedir | --localstatedir | --localstatedi | --localstated \
637  | --localstate | --localstat | --localsta | --localst \
638  | --locals | --local | --loca | --loc | --lo)
639    ac_prev=localstatedir ;;
640  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
641  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
642  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
643    localstatedir=$ac_optarg ;;
644
645  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
646    ac_prev=mandir ;;
647  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648    mandir=$ac_optarg ;;
649
650  -nfp | --nfp | --nf)
651    # Obsolete; use --without-fp.
652    with_fp=no ;;
653
654  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
655  | --no-cr | --no-c | -n)
656    no_create=yes ;;
657
658  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
659  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
660    no_recursion=yes ;;
661
662  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
663  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
664  | --oldin | --oldi | --old | --ol | --o)
665    ac_prev=oldincludedir ;;
666  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
667  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
668  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
669    oldincludedir=$ac_optarg ;;
670
671  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
672    ac_prev=prefix ;;
673  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
674    prefix=$ac_optarg ;;
675
676  -program-prefix | --program-prefix | --program-prefi | --program-pref \
677  | --program-pre | --program-pr | --program-p)
678    ac_prev=program_prefix ;;
679  -program-prefix=* | --program-prefix=* | --program-prefi=* \
680  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
681    program_prefix=$ac_optarg ;;
682
683  -program-suffix | --program-suffix | --program-suffi | --program-suff \
684  | --program-suf | --program-su | --program-s)
685    ac_prev=program_suffix ;;
686  -program-suffix=* | --program-suffix=* | --program-suffi=* \
687  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
688    program_suffix=$ac_optarg ;;
689
690  -program-transform-name | --program-transform-name \
691  | --program-transform-nam | --program-transform-na \
692  | --program-transform-n | --program-transform- \
693  | --program-transform | --program-transfor \
694  | --program-transfo | --program-transf \
695  | --program-trans | --program-tran \
696  | --progr-tra | --program-tr | --program-t)
697    ac_prev=program_transform_name ;;
698  -program-transform-name=* | --program-transform-name=* \
699  | --program-transform-nam=* | --program-transform-na=* \
700  | --program-transform-n=* | --program-transform-=* \
701  | --program-transform=* | --program-transfor=* \
702  | --program-transfo=* | --program-transf=* \
703  | --program-trans=* | --program-tran=* \
704  | --progr-tra=* | --program-tr=* | --program-t=*)
705    program_transform_name=$ac_optarg ;;
706
707  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
708  | -silent | --silent | --silen | --sile | --sil)
709    silent=yes ;;
710
711  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
712    ac_prev=sbindir ;;
713  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
714  | --sbi=* | --sb=*)
715    sbindir=$ac_optarg ;;
716
717  -sharedstatedir | --sharedstatedir | --sharedstatedi \
718  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
719  | --sharedst | --shareds | --shared | --share | --shar \
720  | --sha | --sh)
721    ac_prev=sharedstatedir ;;
722  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
723  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
724  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
725  | --sha=* | --sh=*)
726    sharedstatedir=$ac_optarg ;;
727
728  -site | --site | --sit)
729    ac_prev=site ;;
730  -site=* | --site=* | --sit=*)
731    site=$ac_optarg ;;
732
733  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
734    ac_prev=srcdir ;;
735  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
736    srcdir=$ac_optarg ;;
737
738  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
739  | --syscon | --sysco | --sysc | --sys | --sy)
740    ac_prev=sysconfdir ;;
741  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
742  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
743    sysconfdir=$ac_optarg ;;
744
745  -target | --target | --targe | --targ | --tar | --ta | --t)
746    ac_prev=target_alias ;;
747  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
748    target_alias=$ac_optarg ;;
749
750  -v | -verbose | --verbose | --verbos | --verbo | --verb)
751    verbose=yes ;;
752
753  -version | --version | --versio | --versi | --vers | -V)
754    ac_init_version=: ;;
755
756  -with-* | --with-*)
757    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
758    # Reject names that are not valid shell variable names.
759    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760      { echo "$as_me: error: invalid package name: $ac_package" >&2
761   { (exit 1); exit 1; }; }
762    ac_package=`echo $ac_package| sed 's/-/_/g'`
763    case $ac_option in
764      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
765      *) ac_optarg=yes ;;
766    esac
767    eval "with_$ac_package='$ac_optarg'" ;;
768
769  -without-* | --without-*)
770    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
771    # Reject names that are not valid shell variable names.
772    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
773      { echo "$as_me: error: invalid package name: $ac_package" >&2
774   { (exit 1); exit 1; }; }
775    ac_package=`echo $ac_package | sed 's/-/_/g'`
776    eval "with_$ac_package=no" ;;
777
778  --x)
779    # Obsolete; use --with-x.
780    with_x=yes ;;
781
782  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
783  | --x-incl | --x-inc | --x-in | --x-i)
784    ac_prev=x_includes ;;
785  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
786  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
787    x_includes=$ac_optarg ;;
788
789  -x-libraries | --x-libraries | --x-librarie | --x-librari \
790  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
791    ac_prev=x_libraries ;;
792  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
793  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
794    x_libraries=$ac_optarg ;;
795
796  -*) { echo "$as_me: error: unrecognized option: $ac_option
797Try \`$0 --help' for more information." >&2
798   { (exit 1); exit 1; }; }
799    ;;
800
801  *=*)
802    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
803    # Reject names that are not valid shell variable names.
804    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
805      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
806   { (exit 1); exit 1; }; }
807    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
808    eval "$ac_envvar='$ac_optarg'"
809    export $ac_envvar ;;
810
811  *)
812    # FIXME: should be removed in autoconf 3.0.
813    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
814    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
815      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
816    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
817    ;;
818
819  esac
820done
821
822if test -n "$ac_prev"; then
823  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
824  { echo "$as_me: error: missing argument to $ac_option" >&2
825   { (exit 1); exit 1; }; }
826fi
827
828# Be sure to have absolute paths.
829for ac_var in exec_prefix prefix
830do
831  eval ac_val=$`echo $ac_var`
832  case $ac_val in
833    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
834    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835   { (exit 1); exit 1; }; };;
836  esac
837done
838
839# Be sure to have absolute paths.
840for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
841              localstatedir libdir includedir oldincludedir infodir mandir
842do
843  eval ac_val=$`echo $ac_var`
844  case $ac_val in
845    [\\/$]* | ?:[\\/]* ) ;;
846    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
847   { (exit 1); exit 1; }; };;
848  esac
849done
850
851# There might be people who depend on the old broken behavior: `$host'
852# used to hold the argument of --host etc.
853# FIXME: To remove some day.
854build=$build_alias
855host=$host_alias
856target=$target_alias
857
858# FIXME: To remove some day.
859if test "x$host_alias" != x; then
860  if test "x$build_alias" = x; then
861    cross_compiling=maybe
862    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
863    If a cross compiler is detected then cross compile mode will be used." >&2
864  elif test "x$build_alias" != "x$host_alias"; then
865    cross_compiling=yes
866  fi
867fi
868
869ac_tool_prefix=
870test -n "$host_alias" && ac_tool_prefix=$host_alias-
871
872test "$silent" = yes && exec 6>/dev/null
873
874
875# Find the source files, if location was not specified.
876if test -z "$srcdir"; then
877  ac_srcdir_defaulted=yes
878  # Try the directory containing this script, then its parent.
879  ac_confdir=`(dirname "$0") 2>/dev/null ||
880$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
881         X"$0" : 'X\(//\)[^/]' \| \
882         X"$0" : 'X\(//\)$' \| \
883         X"$0" : 'X\(/\)' \| \
884         .     : '\(.\)' 2>/dev/null ||
885echo X"$0" |
886    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
887          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
888          /^X\(\/\/\)$/{ s//\1/; q; }
889          /^X\(\/\).*/{ s//\1/; q; }
890          s/.*/./; q'`
891  srcdir=$ac_confdir
892  if test ! -r $srcdir/$ac_unique_file; then
893    srcdir=..
894  fi
895else
896  ac_srcdir_defaulted=no
897fi
898if test ! -r $srcdir/$ac_unique_file; then
899  if test "$ac_srcdir_defaulted" = yes; then
900    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
901   { (exit 1); exit 1; }; }
902  else
903    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
904   { (exit 1); exit 1; }; }
905  fi
906fi
907(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
908  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
909   { (exit 1); exit 1; }; }
910srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
911ac_env_build_alias_set=${build_alias+set}
912ac_env_build_alias_value=$build_alias
913ac_cv_env_build_alias_set=${build_alias+set}
914ac_cv_env_build_alias_value=$build_alias
915ac_env_host_alias_set=${host_alias+set}
916ac_env_host_alias_value=$host_alias
917ac_cv_env_host_alias_set=${host_alias+set}
918ac_cv_env_host_alias_value=$host_alias
919ac_env_target_alias_set=${target_alias+set}
920ac_env_target_alias_value=$target_alias
921ac_cv_env_target_alias_set=${target_alias+set}
922ac_cv_env_target_alias_value=$target_alias
923ac_env_CDEFS_set=${CDEFS+set}
924ac_env_CDEFS_value=$CDEFS
925ac_cv_env_CDEFS_set=${CDEFS+set}
926ac_cv_env_CDEFS_value=$CDEFS
927ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
928ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
929ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
930ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
931ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
932ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
933ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
934ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
935ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
936ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
937ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
938ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
939ac_env_CC_set=${CC+set}
940ac_env_CC_value=$CC
941ac_cv_env_CC_set=${CC+set}
942ac_cv_env_CC_value=$CC
943ac_env_CFLAGS_set=${CFLAGS+set}
944ac_env_CFLAGS_value=$CFLAGS
945ac_cv_env_CFLAGS_set=${CFLAGS+set}
946ac_cv_env_CFLAGS_value=$CFLAGS
947ac_env_LDFLAGS_set=${LDFLAGS+set}
948ac_env_LDFLAGS_value=$LDFLAGS
949ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
950ac_cv_env_LDFLAGS_value=$LDFLAGS
951ac_env_CPPFLAGS_set=${CPPFLAGS+set}
952ac_env_CPPFLAGS_value=$CPPFLAGS
953ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
954ac_cv_env_CPPFLAGS_value=$CPPFLAGS
955ac_env_MPICC_set=${MPICC+set}
956ac_env_MPICC_value=$MPICC
957ac_cv_env_MPICC_set=${MPICC+set}
958ac_cv_env_MPICC_value=$MPICC
959ac_env_CXXDEFS_set=${CXXDEFS+set}
960ac_env_CXXDEFS_value=$CXXDEFS
961ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
962ac_cv_env_CXXDEFS_value=$CXXDEFS
963ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
964ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
965ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
966ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
967ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
968ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
969ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
970ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
971ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
972ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
973ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
974ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
975ac_env_CXX_set=${CXX+set}
976ac_env_CXX_value=$CXX
977ac_cv_env_CXX_set=${CXX+set}
978ac_cv_env_CXX_value=$CXX
979ac_env_CXXFLAGS_set=${CXXFLAGS+set}
980ac_env_CXXFLAGS_value=$CXXFLAGS
981ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
982ac_cv_env_CXXFLAGS_value=$CXXFLAGS
983ac_env_MPICXX_set=${MPICXX+set}
984ac_env_MPICXX_value=$MPICXX
985ac_cv_env_MPICXX_set=${MPICXX+set}
986ac_cv_env_MPICXX_value=$MPICXX
987ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
988ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
989ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
990ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
991ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
992ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
993ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
994ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
995ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
996ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
997ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
998ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
999ac_env_F77_set=${F77+set}
1000ac_env_F77_value=$F77
1001ac_cv_env_F77_set=${F77+set}
1002ac_cv_env_F77_value=$F77
1003ac_env_FFLAGS_set=${FFLAGS+set}
1004ac_env_FFLAGS_value=$FFLAGS
1005ac_cv_env_FFLAGS_set=${FFLAGS+set}
1006ac_cv_env_FFLAGS_value=$FFLAGS
1007ac_env_MPIF77_set=${MPIF77+set}
1008ac_env_MPIF77_value=$MPIF77
1009ac_cv_env_MPIF77_set=${MPIF77+set}
1010ac_cv_env_MPIF77_value=$MPIF77
1011ac_env_CPP_set=${CPP+set}
1012ac_env_CPP_value=$CPP
1013ac_cv_env_CPP_set=${CPP+set}
1014ac_cv_env_CPP_value=$CPP
1015ac_env_CXXCPP_set=${CXXCPP+set}
1016ac_env_CXXCPP_value=$CXXCPP
1017ac_cv_env_CXXCPP_set=${CXXCPP+set}
1018ac_cv_env_CXXCPP_value=$CXXCPP
1019ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1020ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1021ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1022ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1023
1024#
1025# Report the --help message.
1026#
1027if test "$ac_init_help" = "long"; then
1028  # Omit some internal or obsolete options to make the list less imposing.
1029  # This message is too long to be a string in the A/UX 3.1 sh.
1030  cat <<_ACEOF
1031\`configure' configures Clp trunk to adapt to many kinds of systems.
1032
1033Usage: $0 [OPTION]... [VAR=VALUE]...
1034
1035To assign environment variables (e.g., CC, CFLAGS...), specify them as
1036VAR=VALUE.  See below for descriptions of some of the useful variables.
1037
1038Defaults for the options are specified in brackets.
1039
1040Configuration:
1041  -h, --help              display this help and exit
1042      --help=short        display options specific to this package
1043      --help=recursive    display the short help of all the included packages
1044  -V, --version           display version information and exit
1045  -q, --quiet, --silent   do not print \`checking...' messages
1046      --cache-file=FILE   cache test results in FILE [disabled]
1047  -C, --config-cache      alias for \`--cache-file=config.cache'
1048  -n, --no-create         do not create output files
1049      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1050
1051_ACEOF
1052
1053  cat <<_ACEOF
1054Installation directories:
1055  --prefix=PREFIX         install architecture-independent files in PREFIX
1056                          [$ac_default_prefix]
1057  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1058                          [PREFIX]
1059
1060By default, \`make install' will install all the files in
1061\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1062an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1063for instance \`--prefix=\$HOME'.
1064
1065For better control, use the options below.
1066
1067Fine tuning of the installation directories:
1068  --bindir=DIR           user executables [EPREFIX/bin]
1069  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1070  --libexecdir=DIR       program executables [EPREFIX/libexec]
1071  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1072  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1073  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1074  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1075  --libdir=DIR           object code libraries [EPREFIX/lib]
1076  --includedir=DIR       C header files [PREFIX/include]
1077  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1078  --infodir=DIR          info documentation [PREFIX/info]
1079  --mandir=DIR           man documentation [PREFIX/man]
1080_ACEOF
1081
1082  cat <<\_ACEOF
1083
1084Program names:
1085  --program-prefix=PREFIX            prepend PREFIX to installed program names
1086  --program-suffix=SUFFIX            append SUFFIX to installed program names
1087  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1088
1089System types:
1090  --build=BUILD     configure for building on BUILD [guessed]
1091  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1092_ACEOF
1093fi
1094
1095if test -n "$ac_init_help"; then
1096  case $ac_init_help in
1097     short | recursive ) echo "Configuration of Clp trunk:";;
1098   esac
1099  cat <<\_ACEOF
1100
1101Optional Features:
1102  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1103  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1104  --enable-debug          compile all projects with debug options tests
1105  --enable-doscompile     Under Cygwin, compile so that executables run under
1106                          DOS. Set to mingw to use gcc/g++/ld with
1107                          -mno-cygwin. Set to msvc to use cl/link (or
1108                          icl/link). Default when mentioned: mingw. Default
1109                          when not mentioned: disabled.
1110  --enable-static[=PKGS]
1111                          build static libraries [default=no]
1112  --disable-dependency-tracking  speeds up one-time build
1113  --enable-dependency-tracking   do not reject slow dependency extractors
1114  --enable-maintainer-mode  enable make rules and dependencies not useful
1115                          (and sometimes confusing) to the casual installer
1116  --enable-shared[=PKGS]
1117                          build shared libraries [default=yes]
1118  --enable-fast-install[=PKGS]
1119                          optimize for fast installation [default=yes]
1120  --disable-libtool-lock  avoid locking (might break parallel builds)
1121
1122Optional Packages:
1123  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1124  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1125  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1126  --with-pic              try to use only PIC/non-PIC objects [default=use
1127                          both]
1128  --with-tags[=TAGS]
1129                          include additional configurations [automatic]
1130
1131Some influential environment variables:
1132  CDEFS       Additional -D flags to be used when compiling C code.
1133  ADD_CFLAGS  Additional C compiler options
1134  DBG_CFLAGS  Debug C compiler options
1135  OPT_CFLAGS  Optimize C compiler options
1136  CC          C compiler command
1137  CFLAGS      C compiler flags
1138  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1139              nonstandard directory <lib dir>
1140  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1141              headers in a nonstandard directory <include dir>
1142  MPICC       C MPI Compiler
1143  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1144  ADD_CXXFLAGS
1145              Additional C++ compiler options
1146  DBG_CXXFLAGS
1147              Debug C++ compiler options
1148  OPT_CXXFLAGS
1149              Optimize C++ compiler options
1150  CXX         C++ compiler command
1151  CXXFLAGS    C++ compiler flags
1152  MPICXX      C++ MPI Compiler
1153  ADD_FFLAGS  Additional Fortran compiler options
1154  DBG_FFLAGS  Debug Fortran compiler options
1155  OPT_FFLAGS  Optimize Fortran compiler options
1156  F77         Fortran 77 compiler command
1157  FFLAGS      Fortran 77 compiler flags
1158  MPIF77      Fortran MPI Compiler
1159  CPP         C preprocessor
1160  CXXCPP      C++ preprocessor
1161  COIN_SKIP_PROJECTS
1162              Set to the subdirectories of projects that should be skipped in
1163              the configuration
1164
1165Use these variables to override the choices made by `configure' or to help
1166it to find libraries and programs with nonstandard names/locations.
1167
1168Report bugs to <coin-clp@lists.coin-or.org>.
1169_ACEOF
1170fi
1171
1172if test "$ac_init_help" = "recursive"; then
1173  # If there are subdirs, report their specific --help.
1174  ac_popdir=`pwd`
1175  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1176    test -d $ac_dir || continue
1177    ac_builddir=.
1178
1179if test "$ac_dir" != .; then
1180  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1181  # A "../" for each directory in $ac_dir_suffix.
1182  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1183else
1184  ac_dir_suffix= ac_top_builddir=
1185fi
1186
1187case $srcdir in
1188  .)  # No --srcdir option.  We are building in place.
1189    ac_srcdir=.
1190    if test -z "$ac_top_builddir"; then
1191       ac_top_srcdir=.
1192    else
1193       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1194    fi ;;
1195  [\\/]* | ?:[\\/]* )  # Absolute path.
1196    ac_srcdir=$srcdir$ac_dir_suffix;
1197    ac_top_srcdir=$srcdir ;;
1198  *) # Relative path.
1199    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1200    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1201esac
1202
1203# Do not use `cd foo && pwd` to compute absolute paths, because
1204# the directories may not exist.
1205case `pwd` in
1206.) ac_abs_builddir="$ac_dir";;
1207*)
1208  case "$ac_dir" in
1209  .) ac_abs_builddir=`pwd`;;
1210  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1211  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1212  esac;;
1213esac
1214case $ac_abs_builddir in
1215.) ac_abs_top_builddir=${ac_top_builddir}.;;
1216*)
1217  case ${ac_top_builddir}. in
1218  .) ac_abs_top_builddir=$ac_abs_builddir;;
1219  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1220  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1221  esac;;
1222esac
1223case $ac_abs_builddir in
1224.) ac_abs_srcdir=$ac_srcdir;;
1225*)
1226  case $ac_srcdir in
1227  .) ac_abs_srcdir=$ac_abs_builddir;;
1228  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1229  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1230  esac;;
1231esac
1232case $ac_abs_builddir in
1233.) ac_abs_top_srcdir=$ac_top_srcdir;;
1234*)
1235  case $ac_top_srcdir in
1236  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1237  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1238  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1239  esac;;
1240esac
1241
1242    cd $ac_dir
1243    # Check for guested configure; otherwise get Cygnus style configure.
1244    if test -f $ac_srcdir/configure.gnu; then
1245      echo
1246      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1247    elif test -f $ac_srcdir/configure; then
1248      echo
1249      $SHELL $ac_srcdir/configure  --help=recursive
1250    elif test -f $ac_srcdir/configure.ac ||
1251           test -f $ac_srcdir/configure.in; then
1252      echo
1253      $ac_configure --help
1254    else
1255      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1256    fi
1257    cd $ac_popdir
1258  done
1259fi
1260
1261test -n "$ac_init_help" && exit 0
1262if $ac_init_version; then
1263  cat <<\_ACEOF
1264Clp configure trunk
1265generated by GNU Autoconf 2.59
1266
1267Copyright (C) 2003 Free Software Foundation, Inc.
1268This configure script is free software; the Free Software Foundation
1269gives unlimited permission to copy, distribute and modify it.
1270
1271
1272Copyright 2006 International Business Machines and others.
1273All Rights Reserved.
1274This file is part of the open source package Coin which is distributed
1275under the Common Public License.
1276_ACEOF
1277  exit 0
1278fi
1279exec 5>config.log
1280cat >&5 <<_ACEOF
1281This file contains any messages produced by compilers while
1282running configure, to aid debugging if configure makes a mistake.
1283
1284It was created by Clp $as_me trunk, which was
1285generated by GNU Autoconf 2.59.  Invocation command line was
1286
1287  $ $0 $@
1288
1289_ACEOF
1290{
1291cat <<_ASUNAME
1292## --------- ##
1293## Platform. ##
1294## --------- ##
1295
1296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1297uname -m = `(uname -m) 2>/dev/null || echo unknown`
1298uname -r = `(uname -r) 2>/dev/null || echo unknown`
1299uname -s = `(uname -s) 2>/dev/null || echo unknown`
1300uname -v = `(uname -v) 2>/dev/null || echo unknown`
1301
1302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1303/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1304
1305/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1306/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1308hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1309/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1310/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1311/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1312
1313_ASUNAME
1314
1315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1316for as_dir in $PATH
1317do
1318  IFS=$as_save_IFS
1319  test -z "$as_dir" && as_dir=.
1320  echo "PATH: $as_dir"
1321done
1322
1323} >&5
1324
1325cat >&5 <<_ACEOF
1326
1327
1328## ----------- ##
1329## Core tests. ##
1330## ----------- ##
1331
1332_ACEOF
1333
1334
1335# Keep a trace of the command line.
1336# Strip out --no-create and --no-recursion so they do not pile up.
1337# Strip out --silent because we don't want to record it for future runs.
1338# Also quote any args containing shell meta-characters.
1339# Make two passes to allow for proper duplicate-argument suppression.
1340ac_configure_args=
1341ac_configure_args0=
1342ac_configure_args1=
1343ac_sep=
1344ac_must_keep_next=false
1345for ac_pass in 1 2
1346do
1347  for ac_arg
1348  do
1349    case $ac_arg in
1350    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1351    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1352    | -silent | --silent | --silen | --sile | --sil)
1353      continue ;;
1354    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1356    esac
1357    case $ac_pass in
1358    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1359    2)
1360      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1361      if test $ac_must_keep_next = true; then
1362        ac_must_keep_next=false # Got value, back to normal.
1363      else
1364        case $ac_arg in
1365          *=* | --config-cache | -C | -disable-* | --disable-* \
1366          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1367          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1368          | -with-* | --with-* | -without-* | --without-* | --x)
1369            case "$ac_configure_args0 " in
1370              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1371            esac
1372            ;;
1373          -* ) ac_must_keep_next=true ;;
1374        esac
1375      fi
1376      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1377      # Get rid of the leading space.
1378      ac_sep=" "
1379      ;;
1380    esac
1381  done
1382done
1383$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1384$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1385
1386# When interrupted or exit'd, cleanup temporary files, and complete
1387# config.log.  We remove comments because anyway the quotes in there
1388# would cause problems or look ugly.
1389# WARNING: Be sure not to use single quotes in there, as some shells,
1390# such as our DU 5.0 friend, will then `close' the trap.
1391trap 'exit_status=$?
1392  # Save into config.log some information that might help in debugging.
1393  {
1394    echo
1395
1396    cat <<\_ASBOX
1397## ---------------- ##
1398## Cache variables. ##
1399## ---------------- ##
1400_ASBOX
1401    echo
1402    # The following way of writing the cache mishandles newlines in values,
1403{
1404  (set) 2>&1 |
1405    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1406    *ac_space=\ *)
1407      sed -n \
1408        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1409          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1410      ;;
1411    *)
1412      sed -n \
1413        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1414      ;;
1415    esac;
1416}
1417    echo
1418
1419    cat <<\_ASBOX
1420## ----------------- ##
1421## Output variables. ##
1422## ----------------- ##
1423_ASBOX
1424    echo
1425    for ac_var in $ac_subst_vars
1426    do
1427      eval ac_val=$`echo $ac_var`
1428      echo "$ac_var='"'"'$ac_val'"'"'"
1429    done | sort
1430    echo
1431
1432    if test -n "$ac_subst_files"; then
1433      cat <<\_ASBOX
1434## ------------- ##
1435## Output files. ##
1436## ------------- ##
1437_ASBOX
1438      echo
1439      for ac_var in $ac_subst_files
1440      do
1441        eval ac_val=$`echo $ac_var`
1442        echo "$ac_var='"'"'$ac_val'"'"'"
1443      done | sort
1444      echo
1445    fi
1446
1447    if test -s confdefs.h; then
1448      cat <<\_ASBOX
1449## ----------- ##
1450## confdefs.h. ##
1451## ----------- ##
1452_ASBOX
1453      echo
1454      sed "/^$/d" confdefs.h | sort
1455      echo
1456    fi
1457    test "$ac_signal" != 0 &&
1458      echo "$as_me: caught signal $ac_signal"
1459    echo "$as_me: exit $exit_status"
1460  } >&5
1461  rm -f core *.core &&
1462  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1463    exit $exit_status
1464     ' 0
1465for ac_signal in 1 2 13 15; do
1466  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1467done
1468ac_signal=0
1469
1470# confdefs.h avoids OS command line length limits that DEFS can exceed.
1471rm -rf conftest* confdefs.h
1472# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1473echo >confdefs.h
1474
1475# Predefined preprocessor variables.
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_NAME "$PACKAGE_NAME"
1479_ACEOF
1480
1481
1482cat >>confdefs.h <<_ACEOF
1483#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1484_ACEOF
1485
1486
1487cat >>confdefs.h <<_ACEOF
1488#define PACKAGE_VERSION "$PACKAGE_VERSION"
1489_ACEOF
1490
1491
1492cat >>confdefs.h <<_ACEOF
1493#define PACKAGE_STRING "$PACKAGE_STRING"
1494_ACEOF
1495
1496
1497cat >>confdefs.h <<_ACEOF
1498#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1499_ACEOF
1500
1501
1502# Let the site file select an alternate cache file if it wants to.
1503# Prefer explicitly selected file to automatically selected ones.
1504if test -z "$CONFIG_SITE"; then
1505  if test "x$prefix" != xNONE; then
1506    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1507  else
1508    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1509  fi
1510fi
1511for ac_site_file in $CONFIG_SITE; do
1512  if test -r "$ac_site_file"; then
1513    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1514echo "$as_me: loading site script $ac_site_file" >&6;}
1515    sed 's/^/| /' "$ac_site_file" >&5
1516    . "$ac_site_file"
1517  fi
1518done
1519
1520if test -r "$cache_file"; then
1521  # Some versions of bash will fail to source /dev/null (special
1522  # files actually), so we avoid doing that.
1523  if test -f "$cache_file"; then
1524    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1525echo "$as_me: loading cache $cache_file" >&6;}
1526    case $cache_file in
1527      [\\/]* | ?:[\\/]* ) . $cache_file;;
1528      *)                      . ./$cache_file;;
1529    esac
1530  fi
1531else
1532  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1533echo "$as_me: creating cache $cache_file" >&6;}
1534  >$cache_file
1535fi
1536
1537# Check that the precious variables saved in the cache have kept the same
1538# value.
1539ac_cache_corrupted=false
1540for ac_var in `(set) 2>&1 |
1541               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1542  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1543  eval ac_new_set=\$ac_env_${ac_var}_set
1544  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1545  eval ac_new_val="\$ac_env_${ac_var}_value"
1546  case $ac_old_set,$ac_new_set in
1547    set,)
1548      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1549echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1550      ac_cache_corrupted=: ;;
1551    ,set)
1552      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1553echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1554      ac_cache_corrupted=: ;;
1555    ,);;
1556    *)
1557      if test "x$ac_old_val" != "x$ac_new_val"; then
1558        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1559echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1560        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1561echo "$as_me:   former value:  $ac_old_val" >&2;}
1562        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1563echo "$as_me:   current value: $ac_new_val" >&2;}
1564        ac_cache_corrupted=:
1565      fi;;
1566  esac
1567  # Pass precious variables to config.status.
1568  if test "$ac_new_set" = set; then
1569    case $ac_new_val in
1570    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1571      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1572    *) ac_arg=$ac_var=$ac_new_val ;;
1573    esac
1574    case " $ac_configure_args " in
1575      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1576      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1577    esac
1578  fi
1579done
1580if $ac_cache_corrupted; then
1581  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1582echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1583  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1584echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1585   { (exit 1); exit 1; }; }
1586fi
1587
1588ac_ext=c
1589ac_cpp='$CPP $CPPFLAGS'
1590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1592ac_compiler_gnu=$ac_cv_c_compiler_gnu
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625# List one file in the package so that the configure script can test
1626# whether the package is actually there
1627
1628
1629# Where should everything be installed by default?  Here, we want it
1630# to be installed directly in 'bin', 'lib', 'include' subdirectories
1631# of the directory where configure is run.  The default would be
1632# /usr/local.
1633
1634
1635#############################################################################
1636#              Create the libtool script for the subdirectories             #
1637#############################################################################
1638
1639ac_aux_dir=
1640for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1641  if test -f $ac_dir/install-sh; then
1642    ac_aux_dir=$ac_dir
1643    ac_install_sh="$ac_aux_dir/install-sh -c"
1644    break
1645  elif test -f $ac_dir/install.sh; then
1646    ac_aux_dir=$ac_dir
1647    ac_install_sh="$ac_aux_dir/install.sh -c"
1648    break
1649  elif test -f $ac_dir/shtool; then
1650    ac_aux_dir=$ac_dir
1651    ac_install_sh="$ac_aux_dir/shtool install -c"
1652    break
1653  fi
1654done
1655if test -z "$ac_aux_dir"; then
1656  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1657echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1658   { (exit 1); exit 1; }; }
1659fi
1660ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1661ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1662ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1663
1664# Make sure we can run config.sub.
1665$ac_config_sub sun4 >/dev/null 2>&1 ||
1666  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1667echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1668   { (exit 1); exit 1; }; }
1669
1670echo "$as_me:$LINENO: checking build system type" >&5
1671echo $ECHO_N "checking build system type... $ECHO_C" >&6
1672if test "${ac_cv_build+set}" = set; then
1673  echo $ECHO_N "(cached) $ECHO_C" >&6
1674else
1675  ac_cv_build_alias=$build_alias
1676test -z "$ac_cv_build_alias" &&
1677  ac_cv_build_alias=`$ac_config_guess`
1678test -z "$ac_cv_build_alias" &&
1679  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1680echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1681   { (exit 1); exit 1; }; }
1682ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1683  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1684echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1685   { (exit 1); exit 1; }; }
1686
1687fi
1688echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1689echo "${ECHO_T}$ac_cv_build" >&6
1690build=$ac_cv_build
1691build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1692build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1693build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1694
1695
1696
1697# Check if user wants to produce debugging code
1698
1699echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1700echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1701
1702# Check whether --enable-debug or --disable-debug was given.
1703if test "${enable_debug+set}" = set; then
1704  enableval="$enable_debug"
1705  case "${enableval}" in
1706   yes) coin_debug_compile=true
1707        if test "${enable_shared+set}" = set; then :; else
1708          enable_shared=no
1709        fi
1710        ;;
1711   no)  coin_debug_compile=false
1712        ;;
1713   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1714echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1715   { (exit 1); exit 1; }; }
1716        ;;
1717esac
1718else
1719  coin_debug_compile=false
1720fi;
1721
1722 # m4_ifvaln([],
1723
1724if test $coin_debug_compile = true; then
1725  echo "$as_me:$LINENO: result: yes" >&5
1726echo "${ECHO_T}yes" >&6
1727else
1728  echo "$as_me:$LINENO: result: no" >&5
1729echo "${ECHO_T}no" >&6
1730fi
1731
1732 # m4_ifvaln([],
1733
1734
1735
1736# Get the name of the C compiler and appropriate compiler options
1737case $build in
1738  *-mingw*)
1739    if test "${LD+set}" = set; then :; else
1740      LD=link
1741    fi
1742    ;;
1743 esac
1744 case $enable_doscompile in
1745   msvc)
1746     if test "x${LD+set}" = xset; then :; else
1747       LD=link
1748     fi
1749     ;;
1750 esac
1751
1752
1753 # Check whether --enable-doscompile or --disable-doscompile was given.
1754if test "${enable_doscompile+set}" = set; then
1755  enableval="$enable_doscompile"
1756  if test "$enable_doscompile" != no; then
1757     case $build in
1758       *-cygwin* | *-mingw*) ;;
1759       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1760echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1761   { (exit 1); exit 1; }; } ;;
1762     esac
1763   fi
1764else
1765  enable_doscompile=no
1766fi;
1767 case "$enable_doscompile" in
1768   mingw)
1769     case $build in
1770       *-mingw*) enable_doscompile=no ;;
1771     esac
1772     ;;
1773   msvc|no) ;;
1774   yes) enable_doscompile=mingw ;;
1775   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1776                    Try configure --help=recursive." >&5
1777echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1778                    Try configure --help=recursive." >&2;}
1779   { (exit 1); exit 1; }; }
1780      ;;
1781  esac
1782  if test "$enable_doscompile" != no ; then
1783    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1784echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1785  fi
1786
1787
1788
1789
1790ac_ext=c
1791ac_cpp='$CPP $CPPFLAGS'
1792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796
1797# For consistency, we set the C compiler to the same value of the C++
1798# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1799if test x"$CXX" != x; then
1800  case "$CXX" in
1801    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1802      if test x"$CC" = x; then
1803        CC="$CXX"
1804        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1805echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1806      fi
1807      ;;
1808  esac
1809fi
1810
1811
1812
1813
1814
1815
1816coin_has_cc=yes
1817
1818save_cflags="$CFLAGS"
1819
1820# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1821# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1822# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1823# compiler. In this case, put cc after gcc.
1824
1825case $build in
1826  *-cygwin* | *-mingw*)
1827             if test "$enable_doscompile" = msvc ; then
1828               comps="icl cl"
1829             else
1830               comps="gcc cl"
1831             fi ;;
1832  *-*-solaris*)
1833             # Extract the first word of "cc", so it can be a program name with args.
1834set dummy cc; ac_word=$2
1835echo "$as_me:$LINENO: checking for $ac_word" >&5
1836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1838  echo $ECHO_N "(cached) $ECHO_C" >&6
1839else
1840  if test -n "$sol_cc_compiler"; then
1841  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1842else
1843  ac_prog_rejected=no
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847  IFS=$as_save_IFS
1848  test -z "$as_dir" && as_dir=.
1849  for ac_exec_ext in '' $ac_executable_extensions; do
1850  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1851    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1852       ac_prog_rejected=yes
1853       continue
1854     fi
1855    ac_cv_prog_sol_cc_compiler="cc"
1856    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857    break 2
1858  fi
1859done
1860done
1861
1862if test $ac_prog_rejected = yes; then
1863  # We found a bogon in the path, so make sure we never use it.
1864  set dummy $ac_cv_prog_sol_cc_compiler
1865  shift
1866  if test $# != 0; then
1867    # We chose a different compiler from the bogus one.
1868    # However, it has the same basename, so the bogon will be chosen
1869    # first if we set sol_cc_compiler to just the basename; use the full file name.
1870    shift
1871    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1872  fi
1873fi
1874fi
1875fi
1876sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1877if test -n "$sol_cc_compiler"; then
1878  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1879echo "${ECHO_T}$sol_cc_compiler" >&6
1880else
1881  echo "$as_me:$LINENO: result: no" >&5
1882echo "${ECHO_T}no" >&6
1883fi
1884
1885             if test "$sol_cc_compiler" = "cc" ; then
1886               comps="cc xlc gcc pgcc icc"
1887             else
1888               comps="xlc gcc pgcc icc cc"
1889             fi
1890             ;;
1891  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1892  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1893esac
1894
1895# We delete the cached value, since the test might not have been
1896# performed with our choice of compilers earlier
1897$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1898# AC_MSG_NOTICE([C compiler candidates: $comps])
1899ac_ext=c
1900ac_cpp='$CPP $CPPFLAGS'
1901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904if test -n "$ac_tool_prefix"; then
1905  for ac_prog in $comps
1906  do
1907    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1908set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1909echo "$as_me:$LINENO: checking for $ac_word" >&5
1910echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911if test "${ac_cv_prog_CC+set}" = set; then
1912  echo $ECHO_N "(cached) $ECHO_C" >&6
1913else
1914  if test -n "$CC"; then
1915  ac_cv_prog_CC="$CC" # Let the user override the test.
1916else
1917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1918for as_dir in $PATH
1919do
1920  IFS=$as_save_IFS
1921  test -z "$as_dir" && as_dir=.
1922  for ac_exec_ext in '' $ac_executable_extensions; do
1923  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1925    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1926    break 2
1927  fi
1928done
1929done
1930
1931fi
1932fi
1933CC=$ac_cv_prog_CC
1934if test -n "$CC"; then
1935  echo "$as_me:$LINENO: result: $CC" >&5
1936echo "${ECHO_T}$CC" >&6
1937else
1938  echo "$as_me:$LINENO: result: no" >&5
1939echo "${ECHO_T}no" >&6
1940fi
1941
1942    test -n "$CC" && break
1943  done
1944fi
1945if test -z "$CC"; then
1946  ac_ct_CC=$CC
1947  for ac_prog in $comps
1948do
1949  # Extract the first word of "$ac_prog", so it can be a program name with args.
1950set dummy $ac_prog; ac_word=$2
1951echo "$as_me:$LINENO: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1953if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1954  echo $ECHO_N "(cached) $ECHO_C" >&6
1955else
1956  if test -n "$ac_ct_CC"; then
1957  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1958else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964  for ac_exec_ext in '' $ac_executable_extensions; do
1965  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1966    ac_cv_prog_ac_ct_CC="$ac_prog"
1967    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1968    break 2
1969  fi
1970done
1971done
1972
1973fi
1974fi
1975ac_ct_CC=$ac_cv_prog_ac_ct_CC
1976if test -n "$ac_ct_CC"; then
1977  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1978echo "${ECHO_T}$ac_ct_CC" >&6
1979else
1980  echo "$as_me:$LINENO: result: no" >&5
1981echo "${ECHO_T}no" >&6
1982fi
1983
1984  test -n "$ac_ct_CC" && break
1985done
1986
1987  CC=$ac_ct_CC
1988fi
1989
1990
1991test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1992See \`config.log' for more details." >&5
1993echo "$as_me: error: no acceptable C compiler found in \$PATH
1994See \`config.log' for more details." >&2;}
1995   { (exit 1); exit 1; }; }
1996
1997# Provide some information about the compiler.
1998echo "$as_me:$LINENO:" \
1999     "checking for C compiler version" >&5
2000ac_compiler=`set X $ac_compile; echo $2`
2001{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2002  (eval $ac_compiler --version </dev/null >&5) 2>&5
2003  ac_status=$?
2004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005  (exit $ac_status); }
2006{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2007  (eval $ac_compiler -v </dev/null >&5) 2>&5
2008  ac_status=$?
2009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010  (exit $ac_status); }
2011{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2012  (eval $ac_compiler -V </dev/null >&5) 2>&5
2013  ac_status=$?
2014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015  (exit $ac_status); }
2016
2017cat >conftest.$ac_ext <<_ACEOF
2018/* confdefs.h.  */
2019_ACEOF
2020cat confdefs.h >>conftest.$ac_ext
2021cat >>conftest.$ac_ext <<_ACEOF
2022/* end confdefs.h.  */
2023
2024int
2025main ()
2026{
2027
2028  ;
2029  return 0;
2030}
2031_ACEOF
2032ac_clean_files_save=$ac_clean_files
2033ac_clean_files="$ac_clean_files a.out a.exe b.out"
2034# Try to create an executable without -o first, disregard a.out.
2035# It will help us diagnose broken compilers, and finding out an intuition
2036# of exeext.
2037echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2038echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2039ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2040if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2041  (eval $ac_link_default) 2>&5
2042  ac_status=$?
2043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044  (exit $ac_status); }; then
2045  # Find the output, starting from the most likely.  This scheme is
2046# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2047# resort.
2048
2049# Be careful to initialize this variable, since it used to be cached.
2050# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2051ac_cv_exeext=
2052# b.out is created by i960 compilers.
2053for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2054do
2055  test -f "$ac_file" || continue
2056  case $ac_file in
2057    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2058        ;;
2059    conftest.$ac_ext )
2060        # This is the source file.
2061        ;;
2062    [ab].out )
2063        # We found the default executable, but exeext='' is most
2064        # certainly right.
2065        break;;
2066    *.* )
2067        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2068        # FIXME: I believe we export ac_cv_exeext for Libtool,
2069        # but it would be cool to find out if it's true.  Does anybody
2070        # maintain Libtool? --akim.
2071        export ac_cv_exeext
2072        break;;
2073    * )
2074        break;;
2075  esac
2076done
2077else
2078  echo "$as_me: failed program was:" >&5
2079sed 's/^/| /' conftest.$ac_ext >&5
2080
2081{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2082See \`config.log' for more details." >&5
2083echo "$as_me: error: C compiler cannot create executables
2084See \`config.log' for more details." >&2;}
2085   { (exit 77); exit 77; }; }
2086fi
2087
2088ac_exeext=$ac_cv_exeext
2089echo "$as_me:$LINENO: result: $ac_file" >&5
2090echo "${ECHO_T}$ac_file" >&6
2091
2092# Check the compiler produces executables we can run.  If not, either
2093# the compiler is broken, or we cross compile.
2094echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2095echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2096# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2097# If not cross compiling, check that we can run a simple program.
2098if test "$cross_compiling" != yes; then
2099  if { ac_try='./$ac_file'
2100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101  (eval $ac_try) 2>&5
2102  ac_status=$?
2103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104  (exit $ac_status); }; }; then
2105    cross_compiling=no
2106  else
2107    if test "$cross_compiling" = maybe; then
2108        cross_compiling=yes
2109    else
2110        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2111If you meant to cross compile, use \`--host'.
2112See \`config.log' for more details." >&5
2113echo "$as_me: error: cannot run C compiled programs.
2114If you meant to cross compile, use \`--host'.
2115See \`config.log' for more details." >&2;}
2116   { (exit 1); exit 1; }; }
2117    fi
2118  fi
2119fi
2120echo "$as_me:$LINENO: result: yes" >&5
2121echo "${ECHO_T}yes" >&6
2122
2123rm -f a.out a.exe conftest$ac_cv_exeext b.out
2124ac_clean_files=$ac_clean_files_save
2125# Check the compiler produces executables we can run.  If not, either
2126# the compiler is broken, or we cross compile.
2127echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2128echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2129echo "$as_me:$LINENO: result: $cross_compiling" >&5
2130echo "${ECHO_T}$cross_compiling" >&6
2131
2132echo "$as_me:$LINENO: checking for suffix of executables" >&5
2133echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2135  (eval $ac_link) 2>&5
2136  ac_status=$?
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); }; then
2139  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2140# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2141# work properly (i.e., refer to `conftest.exe'), while it won't with
2142# `rm'.
2143for ac_file in conftest.exe conftest conftest.*; do
2144  test -f "$ac_file" || continue
2145  case $ac_file in
2146    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2147    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148          export ac_cv_exeext
2149          break;;
2150    * ) break;;
2151  esac
2152done
2153else
2154  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2155See \`config.log' for more details." >&5
2156echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2157See \`config.log' for more details." >&2;}
2158   { (exit 1); exit 1; }; }
2159fi
2160
2161rm -f conftest$ac_cv_exeext
2162echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2163echo "${ECHO_T}$ac_cv_exeext" >&6
2164
2165rm -f conftest.$ac_ext
2166EXEEXT=$ac_cv_exeext
2167ac_exeext=$EXEEXT
2168echo "$as_me:$LINENO: checking for suffix of object files" >&5
2169echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2170if test "${ac_cv_objext+set}" = set; then
2171  echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173  cat >conftest.$ac_ext <<_ACEOF
2174/* confdefs.h.  */
2175_ACEOF
2176cat confdefs.h >>conftest.$ac_ext
2177cat >>conftest.$ac_ext <<_ACEOF
2178/* end confdefs.h.  */
2179
2180int
2181main ()
2182{
2183
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188rm -f conftest.o conftest.obj
2189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190  (eval $ac_compile) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); }; then
2194  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2195  case $ac_file in
2196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2197    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2198       break;;
2199  esac
2200done
2201else
2202  echo "$as_me: failed program was:" >&5
2203sed 's/^/| /' conftest.$ac_ext >&5
2204
2205{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2206See \`config.log' for more details." >&5
2207echo "$as_me: error: cannot compute suffix of object files: cannot compile
2208See \`config.log' for more details." >&2;}
2209   { (exit 1); exit 1; }; }
2210fi
2211
2212rm -f conftest.$ac_cv_objext conftest.$ac_ext
2213fi
2214echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2215echo "${ECHO_T}$ac_cv_objext" >&6
2216OBJEXT=$ac_cv_objext
2217ac_objext=$OBJEXT
2218echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2219echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2220if test "${ac_cv_c_compiler_gnu+set}" = set; then
2221  echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223  cat >conftest.$ac_ext <<_ACEOF
2224/* confdefs.h.  */
2225_ACEOF
2226cat confdefs.h >>conftest.$ac_ext
2227cat >>conftest.$ac_ext <<_ACEOF
2228/* end confdefs.h.  */
2229
2230int
2231main ()
2232{
2233#ifndef __GNUC__
2234       choke me
2235#endif
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241rm -f conftest.$ac_objext
2242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243  (eval $ac_compile) 2>conftest.er1
2244  ac_status=$?
2245  grep -v '^ *+' conftest.er1 >conftest.err
2246  rm -f conftest.er1
2247  cat conftest.err >&5
2248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249  (exit $ac_status); } &&
2250         { ac_try='test -z "$ac_c_werror_flag"
2251                         || test ! -s conftest.err'
2252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253  (eval $ac_try) 2>&5
2254  ac_status=$?
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); }; } &&
2257         { ac_try='test -s conftest.$ac_objext'
2258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259  (eval $ac_try) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; }; then
2263  ac_compiler_gnu=yes
2264else
2265  echo "$as_me: failed program was:" >&5
2266sed 's/^/| /' conftest.$ac_ext >&5
2267
2268ac_compiler_gnu=no
2269fi
2270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2271ac_cv_c_compiler_gnu=$ac_compiler_gnu
2272
2273fi
2274echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2275echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2276GCC=`test $ac_compiler_gnu = yes && echo yes`
2277ac_test_CFLAGS=${CFLAGS+set}
2278ac_save_CFLAGS=$CFLAGS
2279CFLAGS="-g"
2280echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2281echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2282if test "${ac_cv_prog_cc_g+set}" = set; then
2283  echo $ECHO_N "(cached) $ECHO_C" >&6
2284else
2285  cat >conftest.$ac_ext <<_ACEOF
2286/* confdefs.h.  */
2287_ACEOF
2288cat confdefs.h >>conftest.$ac_ext
2289cat >>conftest.$ac_ext <<_ACEOF
2290/* end confdefs.h.  */
2291
2292int
2293main ()
2294{
2295
2296  ;
2297  return 0;
2298}
2299_ACEOF
2300rm -f conftest.$ac_objext
2301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302  (eval $ac_compile) 2>conftest.er1
2303  ac_status=$?
2304  grep -v '^ *+' conftest.er1 >conftest.err
2305  rm -f conftest.er1
2306  cat conftest.err >&5
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); } &&
2309         { ac_try='test -z "$ac_c_werror_flag"
2310                         || test ! -s conftest.err'
2311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312  (eval $ac_try) 2>&5
2313  ac_status=$?
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); }; } &&
2316         { ac_try='test -s conftest.$ac_objext'
2317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318  (eval $ac_try) 2>&5
2319  ac_status=$?
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); }; }; then
2322  ac_cv_prog_cc_g=yes
2323else
2324  echo "$as_me: failed program was:" >&5
2325sed 's/^/| /' conftest.$ac_ext >&5
2326
2327ac_cv_prog_cc_g=no
2328fi
2329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2330fi
2331echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2332echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2333if test "$ac_test_CFLAGS" = set; then
2334  CFLAGS=$ac_save_CFLAGS
2335elif test $ac_cv_prog_cc_g = yes; then
2336  if test "$GCC" = yes; then
2337    CFLAGS="-g -O2"
2338  else
2339    CFLAGS="-g"
2340  fi
2341else
2342  if test "$GCC" = yes; then
2343    CFLAGS="-O2"
2344  else
2345    CFLAGS=
2346  fi
2347fi
2348echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2349echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2350if test "${ac_cv_prog_cc_stdc+set}" = set; then
2351  echo $ECHO_N "(cached) $ECHO_C" >&6
2352else
2353  ac_cv_prog_cc_stdc=no
2354ac_save_CC=$CC
2355cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361#include <stdarg.h>
2362#include <stdio.h>
2363#include <sys/types.h>
2364#include <sys/stat.h>
2365/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2366struct buf { int x; };
2367FILE * (*rcsopen) (struct buf *, struct stat *, int);
2368static char *e (p, i)
2369     char **p;
2370     int i;
2371{
2372  return p[i];
2373}
2374static char *f (char * (*g) (char **, int), char **p, ...)
2375{
2376  char *s;
2377  va_list v;
2378  va_start (v,p);
2379  s = g (p, va_arg (v,int));
2380  va_end (v);
2381  return s;
2382}
2383
2384/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2385   function prototypes and stuff, but not '\xHH' hex character constants.
2386   These don't provoke an error unfortunately, instead are silently treated
2387   as 'x'.  The following induces an error, until -std1 is added to get
2388   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2389   array size at least.  It's necessary to write '\x00'==0 to get something
2390   that's true only with -std1.  */
2391int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2392
2393int test (int i, double x);
2394struct s1 {int (*f) (int a);};
2395struct s2 {int (*f) (double a);};
2396int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2397int argc;
2398char **argv;
2399int
2400main ()
2401{
2402return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2403  ;
2404  return 0;
2405}
2406_ACEOF
2407# Don't try gcc -ansi; that turns off useful extensions and
2408# breaks some systems' header files.
2409# AIX                   -qlanglvl=ansi
2410# Ultrix and OSF/1      -std1
2411# HP-UX 10.20 and later -Ae
2412# HP-UX older versions  -Aa -D_HPUX_SOURCE
2413# SVR4                  -Xc -D__EXTENSIONS__
2414for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2415do
2416  CC="$ac_save_CC $ac_arg"
2417  rm -f conftest.$ac_objext
2418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2419  (eval $ac_compile) 2>conftest.er1
2420  ac_status=$?
2421  grep -v '^ *+' conftest.er1 >conftest.err
2422  rm -f conftest.er1
2423  cat conftest.err >&5
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); } &&
2426         { ac_try='test -z "$ac_c_werror_flag"
2427                         || test ! -s conftest.err'
2428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429  (eval $ac_try) 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; } &&
2433         { ac_try='test -s conftest.$ac_objext'
2434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435  (eval $ac_try) 2>&5
2436  ac_status=$?
2437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438  (exit $ac_status); }; }; then
2439  ac_cv_prog_cc_stdc=$ac_arg
2440break
2441else
2442  echo "$as_me: failed program was:" >&5
2443sed 's/^/| /' conftest.$ac_ext >&5
2444
2445fi
2446rm -f conftest.err conftest.$ac_objext
2447done
2448rm -f conftest.$ac_ext conftest.$ac_objext
2449CC=$ac_save_CC
2450
2451fi
2452
2453case "x$ac_cv_prog_cc_stdc" in
2454  x|xno)
2455    echo "$as_me:$LINENO: result: none needed" >&5
2456echo "${ECHO_T}none needed" >&6 ;;
2457  *)
2458    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2459echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2460    CC="$CC $ac_cv_prog_cc_stdc" ;;
2461esac
2462
2463# Some people use a C++ compiler to compile C.  Since we use `exit',
2464# in C++ we need to declare it.  In case someone uses the same compiler
2465# for both compiling C and C++ we need to have the C++ compiler decide
2466# the declaration of exit, since it's the most demanding environment.
2467cat >conftest.$ac_ext <<_ACEOF
2468#ifndef __cplusplus
2469  choke me
2470#endif
2471_ACEOF
2472rm -f conftest.$ac_objext
2473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2474  (eval $ac_compile) 2>conftest.er1
2475  ac_status=$?
2476  grep -v '^ *+' conftest.er1 >conftest.err
2477  rm -f conftest.er1
2478  cat conftest.err >&5
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); } &&
2481         { ac_try='test -z "$ac_c_werror_flag"
2482                         || test ! -s conftest.err'
2483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2484  (eval $ac_try) 2>&5
2485  ac_status=$?
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); }; } &&
2488         { ac_try='test -s conftest.$ac_objext'
2489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490  (eval $ac_try) 2>&5
2491  ac_status=$?
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); }; }; then
2494  for ac_declaration in \
2495   '' \
2496   'extern "C" void std::exit (int) throw (); using std::exit;' \
2497   'extern "C" void std::exit (int); using std::exit;' \
2498   'extern "C" void exit (int) throw ();' \
2499   'extern "C" void exit (int);' \
2500   'void exit (int);'
2501do
2502  cat >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$ac_declaration
2509#include <stdlib.h>
2510int
2511main ()
2512{
2513exit (42);
2514  ;
2515  return 0;
2516}
2517_ACEOF
2518rm -f conftest.$ac_objext
2519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520  (eval $ac_compile) 2>conftest.er1
2521  ac_status=$?
2522  grep -v '^ *+' conftest.er1 >conftest.err
2523  rm -f conftest.er1
2524  cat conftest.err >&5
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); } &&
2527         { ac_try='test -z "$ac_c_werror_flag"
2528                         || test ! -s conftest.err'
2529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530  (eval $ac_try) 2>&5
2531  ac_status=$?
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); }; } &&
2534         { ac_try='test -s conftest.$ac_objext'
2535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536  (eval $ac_try) 2>&5
2537  ac_status=$?
2538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539  (exit $ac_status); }; }; then
2540  :
2541else
2542  echo "$as_me: failed program was:" >&5
2543sed 's/^/| /' conftest.$ac_ext >&5
2544
2545continue
2546fi
2547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548  cat >conftest.$ac_ext <<_ACEOF
2549/* confdefs.h.  */
2550_ACEOF
2551cat confdefs.h >>conftest.$ac_ext
2552cat >>conftest.$ac_ext <<_ACEOF
2553/* end confdefs.h.  */
2554$ac_declaration
2555int
2556main ()
2557{
2558exit (42);
2559  ;
2560  return 0;
2561}
2562_ACEOF
2563rm -f conftest.$ac_objext
2564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2565  (eval $ac_compile) 2>conftest.er1
2566  ac_status=$?
2567  grep -v '^ *+' conftest.er1 >conftest.err
2568  rm -f conftest.er1
2569  cat conftest.err >&5
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); } &&
2572         { ac_try='test -z "$ac_c_werror_flag"
2573                         || test ! -s conftest.err'
2574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575  (eval $ac_try) 2>&5
2576  ac_status=$?
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); }; } &&
2579         { ac_try='test -s conftest.$ac_objext'
2580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581  (eval $ac_try) 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; }; then
2585  break
2586else
2587  echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590fi
2591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2592done
2593rm -f conftest*
2594if test -n "$ac_declaration"; then
2595  echo '#ifdef __cplusplus' >>confdefs.h
2596  echo $ac_declaration      >>confdefs.h
2597  echo '#endif'             >>confdefs.h
2598fi
2599
2600else
2601  echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604fi
2605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2606ac_ext=c
2607ac_cpp='$CPP $CPPFLAGS'
2608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610ac_compiler_gnu=$ac_cv_c_compiler_gnu
2611
2612if test -z "$CC" ; then
2613  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2614echo "$as_me: error: Failed to find a C compiler!" >&2;}
2615   { (exit 1); exit 1; }; }
2616fi
2617# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2618case "$CC" in
2619  cl* | */cl* | CL* | */CL* )
2620    if test "$ac_cv_prog_cc_g" = yes ; then
2621      ac_cv_prog_cc_g=no
2622      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2623echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2624    fi ;;
2625esac
2626CFLAGS="$save_cflags"
2627
2628# Check if a project specific CFLAGS variable has been set
2629if test x$COIN_PRJCT != x; then
2630  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2631  if test x$coin_tmp = xset; then
2632    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2633  fi
2634fi
2635
2636if test x"$CFLAGS" = x; then
2637
2638  coin_add_cflags=
2639  coin_opt_cflags=
2640  coin_dbg_cflags=
2641  coin_warn_cflags=
2642
2643  if test "$GCC" = "yes"; then
2644    case "$CC" in
2645      icc* | */icc*)
2646        ;;
2647      *)
2648        coin_opt_cflags="-O3 -fomit-frame-pointer"
2649        coin_add_cflags="-pipe"
2650        coin_dbg_cflags="-g"
2651        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2652        case $build in
2653          *-darwin*)
2654            ;;
2655          *)
2656            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2657            ;;
2658        esac
2659        case $enable_doscompile in
2660          mingw)
2661            CFLAGS="-mno-cygwin"
2662            cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668
2669int
2670main ()
2671{
2672int i=0; i++;
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext conftest$ac_exeext
2678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2679  (eval $ac_link) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686         { ac_try='test -z "$ac_c_werror_flag"
2687                         || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693         { ac_try='test -s conftest$ac_exeext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704fi
2705rm -f conftest.err conftest.$ac_objext \
2706      conftest$ac_exeext conftest.$ac_ext
2707            CFLAGS=
2708          ;;
2709        esac
2710    esac
2711  fi
2712  if test -z "$coin_opt_cflags"; then
2713    case $build in
2714      *-cygwin* | *-mingw*)
2715        case "$CC" in
2716          cl* | */cl* | CL* | */CL*)
2717            coin_opt_cflags='-MT -O2'
2718            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2719            coin_dbg_cflags='-MTd'
2720            ;;
2721          icl* | */icl* | ICL* | */ICL*)
2722            coin_opt_cflags='-MT -Ox'
2723            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2724            coin_dbg_cflags='-MTd -debug'
2725            ;;
2726        esac
2727        ;;
2728      *-linux-*)
2729        case "$CC" in
2730          icc* | */icc*)
2731            coin_opt_cflags="-O3 -ip -mp1"
2732            coin_add_cflags=""
2733            coin_dbg_cflags="-g"
2734            # Check if -i_dynamic is necessary (for new glibc library)
2735            CFLAGS=
2736            cat >conftest.$ac_ext <<_ACEOF
2737/* confdefs.h.  */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h.  */
2742
2743int
2744main ()
2745{
2746int i=0; i++;
2747  ;
2748  return 0;
2749}
2750_ACEOF
2751rm -f conftest.$ac_objext conftest$ac_exeext
2752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2753  (eval $ac_link) 2>conftest.er1
2754  ac_status=$?
2755  grep -v '^ *+' conftest.er1 >conftest.err
2756  rm -f conftest.er1
2757  cat conftest.err >&5
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); } &&
2760         { ac_try='test -z "$ac_c_werror_flag"
2761                         || test ! -s conftest.err'
2762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763  (eval $ac_try) 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; } &&
2767         { ac_try='test -s conftest$ac_exeext'
2768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769  (eval $ac_try) 2>&5
2770  ac_status=$?
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); }; }; then
2773  :
2774else
2775  echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778coin_add_cflags="-i_dynamic $coin_add_cflags"
2779fi
2780rm -f conftest.err conftest.$ac_objext \
2781      conftest$ac_exeext conftest.$ac_ext
2782            ;;
2783          pgcc* | */pgcc*)
2784            coin_opt_cflags="-fast"
2785            coin_add_cflags="-Kieee -pc 64"
2786            coin_dbg_cflags="-g"
2787            ;;
2788        esac
2789        ;;
2790      *-ibm-*)
2791        case "$CC" in
2792          xlc* | */xlc* | mpxlc* | */mpxlc*)
2793            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2794            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2795            coin_dbg_cflags="-g"
2796          ;;
2797        esac
2798        ;;
2799      *-hp-*)
2800        coin_opt_cflags="-O"
2801        coin_add_cflags="-Ae"
2802        coin_dbg_cflags="-g"
2803        ;;
2804      *-*-solaris*)
2805        coin_opt_cflags="-xO4"
2806        coin_dbg_cflags="-g"
2807        ;;
2808      *-sgi-*)
2809        coin_opt_cflags="-O -OPT:Olimit=0"
2810        coin_dbg_cflags="-g"
2811        ;;
2812    esac
2813  fi
2814
2815  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2816    coin_dbg_cflags="-g"
2817  fi
2818
2819  if test -z "$coin_opt_cflags"; then
2820    # Try if -O option works if nothing else is set
2821    CFLAGS="-O"
2822    cat >conftest.$ac_ext <<_ACEOF
2823/* confdefs.h.  */
2824_ACEOF
2825cat confdefs.h >>conftest.$ac_ext
2826cat >>conftest.$ac_ext <<_ACEOF
2827/* end confdefs.h.  */
2828
2829int
2830main ()
2831{
2832int i=0; i++;
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837rm -f conftest.$ac_objext conftest$ac_exeext
2838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2839  (eval $ac_link) 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } &&
2846         { ac_try='test -z "$ac_c_werror_flag"
2847                         || test ! -s conftest.err'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; } &&
2853         { ac_try='test -s conftest$ac_exeext'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; }; then
2859  coin_opt_cflags="-O"
2860else
2861  echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864fi
2865rm -f conftest.err conftest.$ac_objext \
2866      conftest$ac_exeext conftest.$ac_ext
2867  fi
2868
2869  # if PM doesn't want the warning messages, take them out
2870  if test x"$coin_skip_warn_cflags" = xyes; then
2871    coin_warn_cflags=
2872  fi
2873
2874  if test x${DBG_CFLAGS+set} != xset; then
2875    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2876  fi
2877  if test x${OPT_CFLAGS+set} != xset; then
2878    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2879  fi
2880
2881  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2882  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2883
2884  if test "$coin_debug_compile" = "true"; then
2885    CFLAGS="$DBG_CFLAGS"
2886  else
2887    CFLAGS="$OPT_CFLAGS"
2888  fi
2889else
2890  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2891  if test x${DBG_CFLAGS+set} != xset; then
2892    DBG_CFLAGS="$CFLAGS"
2893  fi
2894  if test x${OPT_CFLAGS+set} != xset; then
2895    OPT_CFLAGS="$CFLAGS"
2896  fi
2897fi
2898
2899# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2900
2901case "$CFLAGS" in
2902  *-mno-cygwin*)
2903    if test x${CPPFLAGS+set} != xset ; then
2904      CPPFLAGS="-mno-cygwin"
2905    else
2906      case "$CPPFLAGS" in
2907        *-mno-cygwin*)
2908          ;;
2909        *)
2910          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2911          ;;
2912      esac
2913    fi ;;
2914esac
2915
2916# Try if CFLAGS works
2917save_CFLAGS="$CFLAGS"
2918cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h.  */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h.  */
2924
2925int
2926main ()
2927{
2928int i=0; i++;
2929  ;
2930  return 0;
2931}
2932_ACEOF
2933rm -f conftest.$ac_objext conftest$ac_exeext
2934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935  (eval $ac_link) 2>conftest.er1
2936  ac_status=$?
2937  grep -v '^ *+' conftest.er1 >conftest.err
2938  rm -f conftest.er1
2939  cat conftest.err >&5
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); } &&
2942         { ac_try='test -z "$ac_c_werror_flag"
2943                         || test ! -s conftest.err'
2944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945  (eval $ac_try) 2>&5
2946  ac_status=$?
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); }; } &&
2949         { ac_try='test -s conftest$ac_exeext'
2950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951  (eval $ac_try) 2>&5
2952  ac_status=$?
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); }; }; then
2955  :
2956else
2957  echo "$as_me: failed program was:" >&5
2958sed 's/^/| /' conftest.$ac_ext >&5
2959
2960CFLAGS=
2961fi
2962rm -f conftest.err conftest.$ac_objext \
2963      conftest$ac_exeext conftest.$ac_ext
2964if test -z "$CFLAGS"; then
2965  { 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
2966echo "$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;}
2967  CFLAGS='-O'
2968  cat >conftest.$ac_ext <<_ACEOF
2969/* confdefs.h.  */
2970_ACEOF
2971cat confdefs.h >>conftest.$ac_ext
2972cat >>conftest.$ac_ext <<_ACEOF
2973/* end confdefs.h.  */
2974
2975int
2976main ()
2977{
2978int i=0; i++;
2979  ;
2980  return 0;
2981}
2982_ACEOF
2983rm -f conftest.$ac_objext conftest$ac_exeext
2984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2985  (eval $ac_link) 2>conftest.er1
2986  ac_status=$?
2987  grep -v '^ *+' conftest.er1 >conftest.err
2988  rm -f conftest.er1
2989  cat conftest.err >&5
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); } &&
2992         { ac_try='test -z "$ac_c_werror_flag"
2993                         || test ! -s conftest.err'
2994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995  (eval $ac_try) 2>&5
2996  ac_status=$?
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); }; } &&
2999         { ac_try='test -s conftest$ac_exeext'
3000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3001  (eval $ac_try) 2>&5
3002  ac_status=$?
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }; }; then
3005  :
3006else
3007  echo "$as_me: failed program was:" >&5
3008sed 's/^/| /' conftest.$ac_ext >&5
3009
3010CFLAGS=
3011fi
3012rm -f conftest.err conftest.$ac_objext \
3013      conftest$ac_exeext conftest.$ac_ext
3014  if test -z "$CFLAGS"; then
3015    { 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
3016echo "$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;}
3017  fi
3018fi
3019
3020{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3021echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3022
3023
3024if test x"$MPICC" = x; then :; else
3025  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3026echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3027  CC="$MPICC"
3028fi
3029
3030# Correct ADDLIBS initialization if we are using the MS compiler
3031case "$CC" in
3032  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3033    ADDLIBS=
3034    case $build in
3035  *-mingw*)
3036    if test "${LD+set}" = set; then :; else
3037      LD=link
3038    fi
3039    ;;
3040 esac
3041 case $enable_doscompile in
3042   msvc)
3043     if test "x${LD+set}" = xset; then :; else
3044       LD=link
3045     fi
3046     ;;
3047 esac
3048
3049    ;;
3050esac
3051
3052ac_ext=c
3053ac_cpp='$CPP $CPPFLAGS'
3054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057
3058
3059
3060# Get the name of the C++ compiler and appropriate compiler options
3061
3062 #Let's try if that overcomes configuration problem with VC++ 6.0
3063
3064ac_ext=cc
3065ac_cpp='$CXXCPP $CPPFLAGS'
3066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3069
3070
3071
3072
3073
3074
3075
3076coin_has_cxx=yes
3077
3078save_cxxflags="$CXXFLAGS"
3079# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3080case $build in
3081  *-cygwin* | *-mingw*)
3082             if test "$enable_doscompile" = msvc ; then
3083               comps="icl cl"
3084             else
3085               comps="g++ cl"
3086             fi ;;
3087  *-*-solaris*)
3088             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3089  *-darwin*) comps="g++ c++ CC" ;;
3090          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3091esac
3092
3093# We delete the cached value, since the test might not have been
3094# performed with our choice of compilers earlier
3095$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3096# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3097ac_ext=cc
3098ac_cpp='$CXXCPP $CPPFLAGS'
3099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3102if test -n "$ac_tool_prefix"; then
3103  for ac_prog in $CCC $comps
3104  do
3105    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3106set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3107echo "$as_me:$LINENO: checking for $ac_word" >&5
3108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3109if test "${ac_cv_prog_CXX+set}" = set; then
3110  echo $ECHO_N "(cached) $ECHO_C" >&6
3111else
3112  if test -n "$CXX"; then
3113  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3114else
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118  IFS=$as_save_IFS
3119  test -z "$as_dir" && as_dir=.
3120  for ac_exec_ext in '' $ac_executable_extensions; do
3121  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124    break 2
3125  fi
3126done
3127done
3128
3129fi
3130fi
3131CXX=$ac_cv_prog_CXX
3132if test -n "$CXX"; then
3133  echo "$as_me:$LINENO: result: $CXX" >&5
3134echo "${ECHO_T}$CXX" >&6
3135else
3136  echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
3138fi
3139
3140    test -n "$CXX" && break
3141  done
3142fi
3143if test -z "$CXX"; then
3144  ac_ct_CXX=$CXX
3145  for ac_prog in $CCC $comps
3146do
3147  # Extract the first word of "$ac_prog", so it can be a program name with args.
3148set dummy $ac_prog; ac_word=$2
3149echo "$as_me:$LINENO: checking for $ac_word" >&5
3150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3151if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3152  echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154  if test -n "$ac_ct_CXX"; then
3155  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162  for ac_exec_ext in '' $ac_executable_extensions; do
3163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164    ac_cv_prog_ac_ct_CXX="$ac_prog"
3165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169done
3170
3171fi
3172fi
3173ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3174if test -n "$ac_ct_CXX"; then
3175  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3176echo "${ECHO_T}$ac_ct_CXX" >&6
3177else
3178  echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
3180fi
3181
3182  test -n "$ac_ct_CXX" && break
3183done
3184test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3185
3186  CXX=$ac_ct_CXX
3187fi
3188
3189
3190# Provide some information about the compiler.
3191echo "$as_me:$LINENO:" \
3192     "checking for C++ compiler version" >&5
3193ac_compiler=`set X $ac_compile; echo $2`
3194{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3195  (eval $ac_compiler --version </dev/null >&5) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }
3199{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3200  (eval $ac_compiler -v </dev/null >&5) 2>&5
3201  ac_status=$?
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); }
3204{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3205  (eval $ac_compiler -V </dev/null >&5) 2>&5
3206  ac_status=$?
3207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208  (exit $ac_status); }
3209
3210echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3211echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3212if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3213  echo $ECHO_N "(cached) $ECHO_C" >&6
3214else
3215  cat >conftest.$ac_ext <<_ACEOF
3216/* confdefs.h.  */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h.  */
3221
3222int
3223main ()
3224{
3225#ifndef __GNUC__
3226       choke me
3227#endif
3228
3229  ;
3230  return 0;
3231}
3232_ACEOF
3233rm -f conftest.$ac_objext
3234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3235  (eval $ac_compile) 2>conftest.er1
3236  ac_status=$?
3237  grep -v '^ *+' conftest.er1 >conftest.err
3238  rm -f conftest.er1
3239  cat conftest.err >&5
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); } &&
3242         { ac_try='test -z "$ac_cxx_werror_flag"
3243                         || test ! -s conftest.err'
3244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245  (eval $ac_try) 2>&5
3246  ac_status=$?
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); }; } &&
3249         { ac_try='test -s conftest.$ac_objext'
3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251  (eval $ac_try) 2>&5
3252  ac_status=$?
3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254  (exit $ac_status); }; }; then
3255  ac_compiler_gnu=yes
3256else
3257  echo "$as_me: failed program was:" >&5
3258sed 's/^/| /' conftest.$ac_ext >&5
3259
3260ac_compiler_gnu=no
3261fi
3262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3263ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3264
3265fi
3266echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3267echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3268GXX=`test $ac_compiler_gnu = yes && echo yes`
3269ac_test_CXXFLAGS=${CXXFLAGS+set}
3270ac_save_CXXFLAGS=$CXXFLAGS
3271CXXFLAGS="-g"
3272echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3273echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3274if test "${ac_cv_prog_cxx_g+set}" = set; then
3275  echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277  cat >conftest.$ac_ext <<_ACEOF
3278/* confdefs.h.  */
3279_ACEOF
3280cat confdefs.h >>conftest.$ac_ext
3281cat >>conftest.$ac_ext <<_ACEOF
3282/* end confdefs.h.  */
3283
3284int
3285main ()
3286{
3287
3288  ;
3289  return 0;
3290}
3291_ACEOF
3292rm -f conftest.$ac_objext
3293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294  (eval $ac_compile) 2>conftest.er1
3295  ac_status=$?
3296  grep -v '^ *+' conftest.er1 >conftest.err
3297  rm -f conftest.er1
3298  cat conftest.err >&5
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); } &&
3301         { ac_try='test -z "$ac_cxx_werror_flag"
3302                         || test ! -s conftest.err'
3303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3304  (eval $ac_try) 2>&5
3305  ac_status=$?
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); }; } &&
3308         { ac_try='test -s conftest.$ac_objext'
3309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310  (eval $ac_try) 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; }; then
3314  ac_cv_prog_cxx_g=yes
3315else
3316  echo "$as_me: failed program was:" >&5
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
3319ac_cv_prog_cxx_g=no
3320fi
3321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3322fi
3323echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3324echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3325if test "$ac_test_CXXFLAGS" = set; then
3326  CXXFLAGS=$ac_save_CXXFLAGS
3327elif test $ac_cv_prog_cxx_g = yes; then
3328  if test "$GXX" = yes; then
3329    CXXFLAGS="-g -O2"
3330  else
3331    CXXFLAGS="-g"
3332  fi
3333else
3334  if test "$GXX" = yes; then
3335    CXXFLAGS="-O2"
3336  else
3337    CXXFLAGS=
3338  fi
3339fi
3340for ac_declaration in \
3341   '' \
3342   'extern "C" void std::exit (int) throw (); using std::exit;' \
3343   'extern "C" void std::exit (int); using std::exit;' \
3344   'extern "C" void exit (int) throw ();' \
3345   'extern "C" void exit (int);' \
3346   'void exit (int);'
3347do
3348  cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h.  */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h.  */
3354$ac_declaration
3355#include <stdlib.h>
3356int
3357main ()
3358{
3359exit (42);
3360  ;
3361  return 0;
3362}
3363_ACEOF
3364rm -f conftest.$ac_objext
3365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3366  (eval $ac_compile) 2>conftest.er1
3367  ac_status=$?
3368  grep -v '^ *+' conftest.er1 >conftest.err
3369  rm -f conftest.er1
3370  cat conftest.err >&5
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); } &&
3373         { ac_try='test -z "$ac_cxx_werror_flag"
3374                         || test ! -s conftest.err'
3375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376  (eval $ac_try) 2>&5
3377  ac_status=$?
3378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379  (exit $ac_status); }; } &&
3380         { ac_try='test -s conftest.$ac_objext'
3381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382  (eval $ac_try) 2>&5
3383  ac_status=$?
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); }; }; then
3386  :
3387else
3388  echo "$as_me: failed program was:" >&5
3389sed 's/^/| /' conftest.$ac_ext >&5
3390
3391continue
3392fi
3393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3394  cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h.  */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h.  */
3400$ac_declaration
3401int
3402main ()
3403{
3404exit (42);
3405  ;
3406  return 0;
3407}
3408_ACEOF
3409rm -f conftest.$ac_objext
3410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3411  (eval $ac_compile) 2>conftest.er1
3412  ac_status=$?
3413  grep -v '^ *+' conftest.er1 >conftest.err
3414  rm -f conftest.er1
3415  cat conftest.err >&5
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); } &&
3418         { ac_try='test -z "$ac_cxx_werror_flag"
3419                         || test ! -s conftest.err'
3420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421  (eval $ac_try) 2>&5
3422  ac_status=$?
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); }; } &&
3425         { ac_try='test -s conftest.$ac_objext'
3426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427  (eval $ac_try) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }; }; then
3431  break
3432else
3433  echo "$as_me: failed program was:" >&5
3434sed 's/^/| /' conftest.$ac_ext >&5
3435
3436fi
3437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3438done
3439rm -f conftest*
3440if test -n "$ac_declaration"; then
3441  echo '#ifdef __cplusplus' >>confdefs.h
3442  echo $ac_declaration      >>confdefs.h
3443  echo '#endif'             >>confdefs.h
3444fi
3445
3446ac_ext=cc
3447ac_cpp='$CXXCPP $CPPFLAGS'
3448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3451
3452
3453#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3454#thus, we test here whether $CXX is actually working
3455ac_ext=cc
3456ac_cpp='$CXXCPP $CPPFLAGS'
3457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3460
3461echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3462echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3463cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h.  */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h.  */
3469
3470int
3471main ()
3472{
3473int i=0;
3474  ;
3475  return 0;
3476}
3477_ACEOF
3478rm -f conftest.$ac_objext
3479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3480  (eval $ac_compile) 2>conftest.er1
3481  ac_status=$?
3482  grep -v '^ *+' conftest.er1 >conftest.err
3483  rm -f conftest.er1
3484  cat conftest.err >&5
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); } &&
3487         { ac_try='test -z "$ac_cxx_werror_flag"
3488                         || test ! -s conftest.err'
3489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490  (eval $ac_try) 2>&5
3491  ac_status=$?
3492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493  (exit $ac_status); }; } &&
3494         { ac_try='test -s conftest.$ac_objext'
3495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496  (eval $ac_try) 2>&5
3497  ac_status=$?
3498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499  (exit $ac_status); }; }; then
3500  echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502else
3503  echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506echo "$as_me:$LINENO: result: no" >&5
3507echo "${ECHO_T}no" >&6
3508   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3509echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3510   { (exit 1); exit 1; }; }
3511
3512fi
3513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3514ac_ext=cc
3515ac_cpp='$CXXCPP $CPPFLAGS'
3516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3519
3520
3521# It seems that we need to cleanup something here for the Windows
3522case "$CXX" in
3523  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3524    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3525    mv confdefs.hh confdefs.h
3526    ;;
3527esac
3528
3529# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3530case "$CXX" in
3531  cl* | */cl* | CL* | */CL* )
3532    if test "$ac_cv_prog_cxx_g" = yes ; then
3533      ac_cv_prog_cxx_g=no
3534      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3535echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3536    fi ;;
3537esac
3538CXXFLAGS="$save_cxxflags"
3539
3540# Check if a project specific CXXFLAGS variable has been set
3541if test x$COIN_PRJCT != x; then
3542  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3543  if test x$coin_tmp = xset; then
3544    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3545  fi
3546fi
3547
3548if test x"$CXXFLAGS" = x; then
3549
3550# ToDo decide whether we want -DNDEBUG for optimization
3551  coin_add_cxxflags=
3552  coin_opt_cxxflags=
3553  coin_dbg_cxxflags=
3554  coin_warn_cxxflags=
3555
3556  if test "$GXX" = "yes"; then
3557    case "$CXX" in
3558      icpc* | */icpc*)
3559        ;;
3560      *)
3561# ToDo decide about unroll-loops
3562        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3563        coin_add_cxxflags="-pipe"
3564        coin_dbg_cxxflags="-g"
3565        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3566        case $build in
3567          *-darwin*)
3568            ;;
3569          *)
3570            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3571            ;;
3572        esac
3573
3574        case $enable_doscompile in
3575          mingw)
3576            CXXFLAGS="-mno-cygwin"
3577            cat >conftest.$ac_ext <<_ACEOF
3578/* confdefs.h.  */
3579_ACEOF
3580cat confdefs.h >>conftest.$ac_ext
3581cat >>conftest.$ac_ext <<_ACEOF
3582/* end confdefs.h.  */
3583
3584int
3585main ()
3586{
3587int i=0; i++;
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592rm -f conftest.$ac_objext conftest$ac_exeext
3593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594  (eval $ac_link) 2>conftest.er1
3595  ac_status=$?
3596  grep -v '^ *+' conftest.er1 >conftest.err
3597  rm -f conftest.er1
3598  cat conftest.err >&5
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); } &&
3601         { ac_try='test -z "$ac_cxx_werror_flag"
3602                         || test ! -s conftest.err'
3603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604  (eval $ac_try) 2>&5
3605  ac_status=$?
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); }; } &&
3608         { ac_try='test -s conftest$ac_exeext'
3609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610  (eval $ac_try) 2>&5
3611  ac_status=$?
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); }; }; then
3614  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3615else
3616  echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
3619fi
3620rm -f conftest.err conftest.$ac_objext \
3621      conftest$ac_exeext conftest.$ac_ext
3622            CXXFLAGS=
3623          ;;
3624        esac
3625    esac
3626  fi
3627
3628# Note that we do not need to cover GCC in the following tests.
3629
3630  if test -z "$coin_opt_cxxflags"; then
3631    case $build in
3632      *-cygwin* | *-mingw*)
3633        case "$CXX" in
3634          cl* | */cl* | CL* | */CL*)
3635            # The MT and MTd options are mutually exclusive
3636            coin_opt_cxxflags='-MT -O2'
3637            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3638            coin_dbg_cxxflags='-MTd'
3639            ;;
3640          icl* | */icl* | ICL* | */ICL*)
3641            # The MT and MTd options are mutually exclusive
3642            coin_opt_cxxflags='-MT -Ox'
3643            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3644            coin_dbg_cxxflags='-MTd -debug'
3645            ;;
3646        esac
3647        ;;
3648      *-linux-*)
3649        case "$CXX" in
3650          icpc* | */icpc*)
3651            coin_opt_cxxflags="-O3 -ip -mp1"
3652            coin_add_cxxflags=""
3653            coin_dbg_cxxflags="-g"
3654            # Check if -i_dynamic is necessary (for new glibc library)
3655            CXXFLAGS=
3656            cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h.  */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h.  */
3662
3663int
3664main ()
3665{
3666int i=0; i++;
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671rm -f conftest.$ac_objext conftest$ac_exeext
3672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3673  (eval $ac_link) 2>conftest.er1
3674  ac_status=$?
3675  grep -v '^ *+' conftest.er1 >conftest.err
3676  rm -f conftest.er1
3677  cat conftest.err >&5
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); } &&
3680         { ac_try='test -z "$ac_cxx_werror_flag"
3681                         || test ! -s conftest.err'
3682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683  (eval $ac_try) 2>&5
3684  ac_status=$?
3685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686  (exit $ac_status); }; } &&
3687         { ac_try='test -s conftest$ac_exeext'
3688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689  (eval $ac_try) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }; }; then
3693  :
3694else
3695  echo "$as_me: failed program was:" >&5
3696sed 's/^/| /' conftest.$ac_ext >&5
3697
3698coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3699fi
3700rm -f conftest.err conftest.$ac_objext \
3701      conftest$ac_exeext conftest.$ac_ext
3702            ;;
3703          pgCC* | */pgCC*)
3704            coin_opt_cxxflags="-fast"
3705            coin_add_cxxflags="-Kieee -pc 64"
3706            coin_dbg_cxxflags="-g"
3707            ;;
3708        esac
3709        ;;
3710      *-ibm-*)
3711        case "$CXX" in
3712          xlC* | */xlC* | mpxlC* | */mpxlC*)
3713            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3714            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3715            coin_dbg_cxxflags="-g"
3716            ;;
3717        esac
3718        ;;
3719      *-hp-*)
3720        case "$CXX" in
3721          aCC* | */aCC* )
3722            coin_opt_cxxflags="-O"
3723            coin_add_cxxflags="-AA"
3724            coin_dbg_cxxflags="-g"
3725            ;;
3726        esac
3727        ;;
3728      *-*-solaris*)
3729          coin_opt_cxxflags="-O4"
3730          coin_dbg_cxxflags="-g"
3731        ;;
3732    esac
3733  fi
3734
3735# Generic flag settings. If these don't work, add a case above.
3736
3737  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3738    coin_dbg_cxxflags="-g"
3739  fi
3740
3741  if test -z "$coin_opt_cxxflags"; then
3742    # Try if -O option works if nothing else is set
3743    CXXFLAGS=-O
3744    cat >conftest.$ac_ext <<_ACEOF
3745/* confdefs.h.  */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h.  */
3750
3751int
3752main ()
3753{
3754int i=0; i++;
3755  ;
3756  return 0;
3757}
3758_ACEOF
3759rm -f conftest.$ac_objext conftest$ac_exeext
3760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761  (eval $ac_link) 2>conftest.er1
3762  ac_status=$?
3763  grep -v '^ *+' conftest.er1 >conftest.err
3764  rm -f conftest.er1
3765  cat conftest.err >&5
3766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767  (exit $ac_status); } &&
3768         { ac_try='test -z "$ac_cxx_werror_flag"
3769                         || test ! -s conftest.err'
3770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771  (eval $ac_try) 2>&5
3772  ac_status=$?
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); }; } &&
3775         { ac_try='test -s conftest$ac_exeext'
3776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777  (eval $ac_try) 2>&5
3778  ac_status=$?
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); }; }; then
3781  coin_opt_cxxflags="-O"
3782else
3783  echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786fi
3787rm -f conftest.err conftest.$ac_objext \
3788      conftest$ac_exeext conftest.$ac_ext
3789  fi
3790
3791  # if PM doesn't want the warning messages, take them out
3792  if test x"$coin_skip_warn_cxxflags" = xyes; then
3793    coin_warn_cxxflags=
3794  fi
3795
3796# Do final setup of flags based on values determined above.
3797
3798  if test x${DBG_CXXFLAGS+set} != xset; then
3799    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3800  fi
3801  if test x${OPT_CXXFLAGS+set} != xset; then
3802    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3803  fi
3804
3805  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3806  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3807
3808  if test "$coin_debug_compile" = "true"; then
3809    CXXFLAGS="$DBG_CXXFLAGS"
3810  else
3811    CXXFLAGS="$OPT_CXXFLAGS"
3812  fi
3813
3814# Handle the case where CXXFLAGS was set externally.
3815else
3816  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3817  if test x${DBG_CXXFLAGS+set} != xset; then
3818    DBG_CXXFLAGS="$CXXFLAGS"
3819  fi
3820  if test x${OPT_CXXFLAGS+set} != xset; then
3821    OPT_CXXFLAGS="$CXXFLAGS"
3822  fi
3823fi
3824
3825# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3826
3827case "$CXXFLAGS" in
3828  *-mno-cygwin*)
3829    if test x${CPPFLAGS+set} != xset ; then
3830      CPPFLAGS="-mno-cygwin"
3831    else
3832      case "$CPPFLAGS" in
3833        *-mno-cygwin*)
3834          ;;
3835        *)
3836          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3837          ;;
3838      esac
3839    fi ;;
3840esac
3841
3842# Try if CXXFLAGS works
3843save_CXXFLAGS="$CXXFLAGS"
3844cat >conftest.$ac_ext <<_ACEOF
3845/* confdefs.h.  */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854int i=0; i++;
3855  ;
3856  return 0;
3857}
3858_ACEOF
3859rm -f conftest.$ac_objext conftest$ac_exeext
3860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3861  (eval $ac_link) 2>conftest.er1
3862  ac_status=$?
3863  grep -v '^ *+' conftest.er1 >conftest.err
3864  rm -f conftest.er1
3865  cat conftest.err >&5
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); } &&
3868         { ac_try='test -z "$ac_cxx_werror_flag"
3869                         || test ! -s conftest.err'
3870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3871  (eval $ac_try) 2>&5
3872  ac_status=$?
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); }; } &&
3875         { ac_try='test -s conftest$ac_exeext'
3876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3877  (eval $ac_try) 2>&5
3878  ac_status=$?
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); }; }; then
3881  :
3882else
3883  echo "$as_me: failed program was:" >&5
3884sed 's/^/| /' conftest.$ac_ext >&5
3885
3886CXXFLAGS=
3887fi
3888rm -f conftest.err conftest.$ac_objext \
3889      conftest$ac_exeext conftest.$ac_ext
3890if test -z "$CXXFLAGS"; then
3891  { 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
3892echo "$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;}
3893  CXXFLAGS='-O'
3894  cat >conftest.$ac_ext <<_ACEOF
3895/* confdefs.h.  */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h.  */
3900
3901int
3902main ()
3903{
3904int i=0; i++;
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909rm -f conftest.$ac_objext conftest$ac_exeext
3910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3911  (eval $ac_link) 2>conftest.er1
3912  ac_status=$?
3913  grep -v '^ *+' conftest.er1 >conftest.err
3914  rm -f conftest.er1
3915  cat conftest.err >&5
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); } &&
3918         { ac_try='test -z "$ac_cxx_werror_flag"
3919                         || test ! -s conftest.err'
3920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3921  (eval $ac_try) 2>&5
3922  ac_status=$?
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); }; } &&
3925         { ac_try='test -s conftest$ac_exeext'
3926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927  (eval $ac_try) 2>&5
3928  ac_status=$?
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); }; }; then
3931  :
3932else
3933  echo "$as_me: failed program was:" >&5
3934sed 's/^/| /' conftest.$ac_ext >&5
3935
3936CXXFLAGS=
3937fi
3938rm -f conftest.err conftest.$ac_objext \
3939      conftest$ac_exeext conftest.$ac_ext
3940  if test -z "$CXXFLAGS"; then
3941    { 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
3942echo "$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;}
3943  fi
3944fi
3945
3946{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3947echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3948
3949
3950if test x"$MPICXX" = x; then :; else
3951  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3952echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3953  CXX="$MPICXX"
3954fi
3955
3956case "$CXX" in
3957  cl* | */cl* | CL* | */CL* )
3958    case $build in
3959  *-mingw*)
3960    if test "${LD+set}" = set; then :; else
3961      LD=link
3962    fi
3963    ;;
3964 esac
3965 case $enable_doscompile in
3966   msvc)
3967     if test "x${LD+set}" = xset; then :; else
3968       LD=link
3969     fi
3970     ;;
3971 esac
3972
3973    ;;
3974esac
3975
3976ac_ext=c
3977ac_cpp='$CPP $CPPFLAGS'
3978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981
3982
3983
3984# Get the name of the Fortran compiler and appropriate compiler options
3985case $build in
3986  *-cygwin* | *-mingw*)
3987     if test "$enable_doscompile" = msvc ; then
3988       coin_f77_comps="ifort fl32 compile_f2c"
3989     else
3990       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3991     fi ;;
3992  *-*-solaris*)
3993     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3994  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3995 esac
3996
3997
3998
3999
4000
4001
4002ac_ext=f
4003ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4004ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4006
4007
4008
4009
4010
4011
4012coin_has_f77=yes
4013
4014save_fflags="$FFLAGS"
4015
4016# We delete the cached value, since the test might not have been
4017# performed with our choice of compilers earlier
4018$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4019
4020# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4021# coin_f77_comps to see if there's a program that matches one of the names.
4022# If there's no such program, F77 = unavailable. If we match the name,
4023# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4024# compiler.
4025# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4026
4027
4028{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4029echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4030for ac_prog in $coin_f77_comps
4031do
4032  # Extract the first word of "$ac_prog", so it can be a program name with args.
4033set dummy $ac_prog; ac_word=$2
4034echo "$as_me:$LINENO: checking for $ac_word" >&5
4035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4036if test "${ac_cv_prog_F77+set}" = set; then
4037  echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039  if test -n "$F77"; then
4040  ac_cv_prog_F77="$F77" # Let the user override the test.
4041else
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047  for ac_exec_ext in '' $ac_executable_extensions; do
4048  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049    ac_cv_prog_F77="$ac_prog"
4050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051    break 2
4052  fi
4053done
4054done
4055
4056fi
4057fi
4058F77=$ac_cv_prog_F77
4059if test -n "$F77"; then
4060  echo "$as_me:$LINENO: result: $F77" >&5
4061echo "${ECHO_T}$F77" >&6
4062else
4063  echo "$as_me:$LINENO: result: no" >&5
4064echo "${ECHO_T}no" >&6
4065fi
4066
4067  test -n "$F77" && break
4068done
4069test -n "$F77" || F77="unavailable"
4070
4071
4072if test "$F77" != "unavailable" ; then
4073  ac_ext=f
4074ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4075ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4077if test -n "$ac_tool_prefix"; then
4078  for ac_prog in $coin_f77_comps
4079  do
4080    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4082echo "$as_me:$LINENO: checking for $ac_word" >&5
4083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084if test "${ac_cv_prog_F77+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  if test -n "$F77"; then
4088  ac_cv_prog_F77="$F77" # Let the user override the test.
4089else
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093  IFS=$as_save_IFS
4094  test -z "$as_dir" && as_dir=.
4095  for ac_exec_ext in '' $ac_executable_extensions; do
4096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099    break 2
4100  fi
4101done
4102done
4103
4104fi
4105fi
4106F77=$ac_cv_prog_F77
4107if test -n "$F77"; then
4108  echo "$as_me:$LINENO: result: $F77" >&5
4109echo "${ECHO_T}$F77" >&6
4110else
4111  echo "$as_me:$LINENO: result: no" >&5
4112echo "${ECHO_T}no" >&6
4113fi
4114
4115    test -n "$F77" && break
4116  done
4117fi
4118if test -z "$F77"; then
4119  ac_ct_F77=$F77
4120  for ac_prog in $coin_f77_comps
4121do
4122  # Extract the first word of "$ac_prog", so it can be a program name with args.
4123set dummy $ac_prog; ac_word=$2
4124echo "$as_me:$LINENO: checking for $ac_word" >&5
4125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4126if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4127  echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129  if test -n "$ac_ct_F77"; then
4130  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4131else
4132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133for as_dir in $PATH
4134do
4135  IFS=$as_save_IFS
4136  test -z "$as_dir" && as_dir=.
4137  for ac_exec_ext in '' $ac_executable_extensions; do
4138  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4139    ac_cv_prog_ac_ct_F77="$ac_prog"
4140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141    break 2
4142  fi
4143done
4144done
4145
4146fi
4147fi
4148ac_ct_F77=$ac_cv_prog_ac_ct_F77
4149if test -n "$ac_ct_F77"; then
4150  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4151echo "${ECHO_T}$ac_ct_F77" >&6
4152else
4153  echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155fi
4156
4157  test -n "$ac_ct_F77" && break
4158done
4159
4160  F77=$ac_ct_F77
4161fi
4162
4163
4164# Provide some information about the compiler.
4165echo "$as_me:4165:" \
4166     "checking for Fortran 77 compiler version" >&5
4167ac_compiler=`set X $ac_compile; echo $2`
4168{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4169  (eval $ac_compiler --version </dev/null >&5) 2>&5
4170  ac_status=$?
4171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172  (exit $ac_status); }
4173{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4174  (eval $ac_compiler -v </dev/null >&5) 2>&5
4175  ac_status=$?
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); }
4178{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4179  (eval $ac_compiler -V </dev/null >&5) 2>&5
4180  ac_status=$?
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); }
4183rm -f a.out
4184
4185# If we don't use `.F' as extension, the preprocessor is not run on the
4186# input file.  (Note that this only needs to work for GNU compilers.)
4187ac_save_ext=$ac_ext
4188ac_ext=F
4189echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4190echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4191if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4192  echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194  cat >conftest.$ac_ext <<_ACEOF
4195      program main
4196#ifndef __GNUC__
4197       choke me
4198#endif
4199
4200      end
4201_ACEOF
4202rm -f conftest.$ac_objext
4203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4204  (eval $ac_compile) 2>conftest.er1
4205  ac_status=$?
4206  grep -v '^ *+' conftest.er1 >conftest.err
4207  rm -f conftest.er1
4208  cat conftest.err >&5
4209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210  (exit $ac_status); } &&
4211         { ac_try='test -z "$ac_f77_werror_flag"
4212                         || test ! -s conftest.err'
4213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4214  (eval $ac_try) 2>&5
4215  ac_status=$?
4216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217  (exit $ac_status); }; } &&
4218         { ac_try='test -s conftest.$ac_objext'
4219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220  (eval $ac_try) 2>&5
4221  ac_status=$?
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); }; }; then
4224  ac_compiler_gnu=yes
4225else
4226  echo "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
4228
4229ac_compiler_gnu=no
4230fi
4231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4232ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4233
4234fi
4235echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4236echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4237ac_ext=$ac_save_ext
4238ac_test_FFLAGS=${FFLAGS+set}
4239ac_save_FFLAGS=$FFLAGS
4240FFLAGS=
4241echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4242echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4243if test "${ac_cv_prog_f77_g+set}" = set; then
4244  echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246  FFLAGS=-g
4247cat >conftest.$ac_ext <<_ACEOF
4248      program main
4249
4250      end
4251_ACEOF
4252rm -f conftest.$ac_objext
4253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4254  (eval $ac_compile) 2>conftest.er1
4255  ac_status=$?
4256  grep -v '^ *+' conftest.er1 >conftest.err
4257  rm -f conftest.er1
4258  cat conftest.err >&5
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); } &&
4261         { ac_try='test -z "$ac_f77_werror_flag"
4262                         || test ! -s conftest.err'
4263  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264  (eval $ac_try) 2>&5
4265  ac_status=$?
4266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267  (exit $ac_status); }; } &&
4268         { ac_try='test -s conftest.$ac_objext'
4269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270  (eval $ac_try) 2>&5
4271  ac_status=$?
4272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273  (exit $ac_status); }; }; then
4274  ac_cv_prog_f77_g=yes
4275else
4276  echo "$as_me: failed program was:" >&5
4277sed 's/^/| /' conftest.$ac_ext >&5
4278
4279ac_cv_prog_f77_g=no
4280fi
4281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4282
4283fi
4284echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4285echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4286if test "$ac_test_FFLAGS" = set; then
4287  FFLAGS=$ac_save_FFLAGS
4288elif test $ac_cv_prog_f77_g = yes; then
4289  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4290    FFLAGS="-g -O2"
4291  else
4292    FFLAGS="-g"
4293  fi
4294else
4295  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4296    FFLAGS="-O2"
4297  else
4298    FFLAGS=
4299  fi
4300fi
4301
4302G77=`test $ac_compiler_gnu = yes && echo yes`
4303ac_ext=f
4304ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4305ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4307
4308else
4309  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4310echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4311fi
4312
4313FFLAGS="$save_fflags"
4314
4315# Check if a project specific FFLAGS variable has been set
4316if test x$COIN_PRJCT != x; then
4317  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4318  if test x$coin_tmp = xset; then
4319    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4320  fi
4321fi
4322
4323if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4324
4325  coin_add_fflags=
4326  coin_opt_fflags=
4327  coin_dbg_fflags=
4328  coin_warn_fflags=
4329
4330  if test "$G77" = "yes"; then
4331    coin_opt_fflags="-O3 -fomit-frame-pointer"
4332    coin_add_fflags="-pipe"
4333    coin_dbg_fflags="-g"
4334    case $enable_doscompile in
4335      mingw)
4336        FFLAGS="-mno-cygwin"
4337        cat >conftest.$ac_ext <<_ACEOF
4338      program main
4339      write(*,*) 'Hello world'
4340      end
4341_ACEOF
4342rm -f conftest.$ac_objext conftest$ac_exeext
4343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4344  (eval $ac_link) 2>conftest.er1
4345  ac_status=$?
4346  grep -v '^ *+' conftest.er1 >conftest.err
4347  rm -f conftest.er1
4348  cat conftest.err >&5
4349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350  (exit $ac_status); } &&
4351         { ac_try='test -z "$ac_f77_werror_flag"
4352                         || test ! -s conftest.err'
4353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354  (eval $ac_try) 2>&5
4355  ac_status=$?
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); }; } &&
4358         { ac_try='test -s conftest$ac_exeext'
4359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360  (eval $ac_try) 2>&5
4361  ac_status=$?
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); }; }; then
4364  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4365else
4366  echo "$as_me: failed program was:" >&5
4367sed 's/^/| /' conftest.$ac_ext >&5
4368
4369fi
4370rm -f conftest.err conftest.$ac_objext \
4371      conftest$ac_exeext conftest.$ac_ext
4372        FFLAGS=
4373      ;;
4374    esac
4375  else
4376    case $build in
4377      *-cygwin* | *-mingw*)
4378        case $F77 in
4379          ifort* | */ifort* | IFORT* | */IFORT* )
4380            coin_opt_fflags='-MT -O3'
4381            coin_add_fflags='-fpp -nologo'
4382            coin_dbg_fflags='-MTd -debug'
4383          ;;
4384          compile_f2c*)
4385            coin_opt_fflags='-MT -O2'
4386            coin_add_fflags='-nologo -wd4996'
4387            coin_dbg_fflags='-MTd'
4388          ;;
4389        esac
4390        ;;
4391      *-linux-*)
4392        case $F77 in
4393          ifc* | */ifc* | ifort* | */ifort*)
4394            coin_opt_fflags="-O3 -ip"
4395            coin_add_fflags="-cm -w90 -w95"
4396            coin_dbg_fflags="-g -CA -CB -CS"
4397            # Check if -i_dynamic is necessary (for new glibc library)
4398            FFLAGS=
4399            cat >conftest.$ac_ext <<_ACEOF
4400      program main
4401      write(*,*) 'Hello world'
4402      end
4403_ACEOF
4404rm -f conftest.$ac_objext conftest$ac_exeext
4405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4406  (eval $ac_link) 2>conftest.er1
4407  ac_status=$?
4408  grep -v '^ *+' conftest.er1 >conftest.err
4409  rm -f conftest.er1
4410  cat conftest.err >&5
4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412  (exit $ac_status); } &&
4413         { ac_try='test -z "$ac_f77_werror_flag"
4414                         || test ! -s conftest.err'
4415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416  (eval $ac_try) 2>&5
4417  ac_status=$?
4418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419  (exit $ac_status); }; } &&
4420         { ac_try='test -s conftest$ac_exeext'
4421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422  (eval $ac_try) 2>&5
4423  ac_status=$?
4424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425  (exit $ac_status); }; }; then
4426  :
4427else
4428  echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431coin_add_fflags="-i_dynamic $coin_add_fflags"
4432fi
4433rm -f conftest.err conftest.$ac_objext \
4434      conftest$ac_exeext conftest.$ac_ext
4435            ;;
4436          pgf77* | */pgf77* | pgf90* | */pgf90*)
4437            coin_opt_fflags="-fast"
4438            coin_add_fflags="-Kieee -pc 64"
4439            coin_dbg_fflags="-g"
4440          ;;
4441        esac
4442        ;;
4443      *-ibm-*)
4444        case "$F77" in
4445          xlf* | */xlf* | mpxlf* | */mpxlf* )
4446            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4447            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4448            coin_dbg_fflags="-g -C"
4449            ;;
4450        esac
4451        ;;
4452      *-hp-*)
4453        coin_opt_fflags="+O3"
4454        coin_add_fflags="+U77"
4455        coin_dbg_fflags="-C -g"
4456        ;;
4457      *-*-solaris*)
4458        coin_opt_fflags="-O4"
4459        coin_dbg_fflags="-g"
4460        ;;
4461      *-sgi-*)
4462        coin_opt_fflags="-O5 -OPT:Olimit=0"
4463        coin_dbg_fflags="-g"
4464        ;;
4465    esac
4466  fi
4467
4468  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4469    coin_dbg_fflags="-g"
4470  fi
4471
4472  if test -z "$coin_opt_fflags"; then
4473    # Try if -O option works if nothing else is set
4474    FFLAGS=-O
4475    cat >conftest.$ac_ext <<_ACEOF
4476      program main
4477      integer i
4478      end
4479_ACEOF
4480rm -f conftest.$ac_objext conftest$ac_exeext
4481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4482  (eval $ac_link) 2>conftest.er1
4483  ac_status=$?
4484  grep -v '^ *+' conftest.er1 >conftest.err
4485  rm -f conftest.er1
4486  cat conftest.err >&5
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); } &&
4489         { ac_try='test -z "$ac_f77_werror_flag"
4490                         || test ! -s conftest.err'
4491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492  (eval $ac_try) 2>&5
4493  ac_status=$?
4494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); }; } &&
4496         { ac_try='test -s conftest$ac_exeext'
4497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498  (eval $ac_try) 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; }; then
4502  coin_opt_fflags="-O"
4503else
4504  echo "$as_me: failed program was:" >&5
4505sed 's/^/| /' conftest.$ac_ext >&5
4506
4507fi
4508rm -f conftest.err conftest.$ac_objext \
4509      conftest$ac_exeext conftest.$ac_ext
4510  fi
4511
4512  # if PM doesn't want the warning messages, take them out
4513  if test x"$coin_skip_warn_fflags" = xyes; then
4514    coin_warn_fflags=
4515  fi
4516
4517  if test x${DBG_FFLAGS+set} != xset; then
4518    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4519  fi
4520  if test x${OPT_FFLAGS+set} != xset; then
4521    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4522  fi
4523
4524  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4525  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4526
4527  if test "$coin_debug_compile" = "true"; then
4528    FFLAGS="$DBG_FFLAGS"
4529  else
4530    FFLAGS="$OPT_FFLAGS"
4531  fi
4532else
4533  FFLAGS="$FFLAGS $ADD_FFLAGS"
4534  if test x${DBG_FFLAGS+set} != xset; then
4535    DBG_FFLAGS="$FFLAGS"
4536  fi
4537  if test x${OPT_FFLAGS+set} != xset; then
4538    OPT_FFLAGS="$FFLAGS"
4539  fi
4540fi
4541
4542# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4543case "$FFLAGS" in
4544  *-mno-cygwin*)
4545    if test x${CPPFLAGS+set} != xset ; then
4546      CPPFLAGS="-mno-cygwin"
4547    else
4548      case "$CPPFLAGS" in
4549        *-mno-cygwin*)
4550          ;;
4551        *)
4552          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4553          ;;
4554      esac
4555    fi ;;
4556esac
4557
4558# Try if FFLAGS works
4559if test "$F77" != "unavailable" ; then
4560  cat >conftest.$ac_ext <<_ACEOF
4561      program main
4562      integer i
4563      end
4564_ACEOF
4565rm -f conftest.$ac_objext conftest$ac_exeext
4566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567  (eval $ac_link) 2>conftest.er1
4568  ac_status=$?
4569  grep -v '^ *+' conftest.er1 >conftest.err
4570  rm -f conftest.er1
4571  cat conftest.err >&5
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); } &&
4574         { ac_try='test -z "$ac_f77_werror_flag"
4575                         || test ! -s conftest.err'
4576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577  (eval $ac_try) 2>&5
4578  ac_status=$?
4579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580  (exit $ac_status); }; } &&
4581         { ac_try='test -s conftest$ac_exeext'
4582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583  (eval $ac_try) 2>&5
4584  ac_status=$?
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); }; }; then
4587  :
4588else
4589  echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592FFLAGS=
4593fi
4594rm -f conftest.err conftest.$ac_objext \
4595      conftest$ac_exeext conftest.$ac_ext
4596  if test -z "$FFLAGS"; then
4597    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4598echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4599    FFLAGS='-O'
4600    cat >conftest.$ac_ext <<_ACEOF
4601      program main
4602      integer i
4603      end
4604_ACEOF
4605rm -f conftest.$ac_objext conftest$ac_exeext
4606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4607  (eval $ac_link) 2>conftest.er1
4608  ac_status=$?
4609  grep -v '^ *+' conftest.er1 >conftest.err
4610  rm -f conftest.er1
4611  cat conftest.err >&5
4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613  (exit $ac_status); } &&
4614         { ac_try='test -z "$ac_f77_werror_flag"
4615                         || test ! -s conftest.err'
4616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617  (eval $ac_try) 2>&5
4618  ac_status=$?
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); }; } &&
4621         { ac_try='test -s conftest$ac_exeext'
4622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623  (eval $ac_try) 2>&5
4624  ac_status=$?
4625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626  (exit $ac_status); }; }; then
4627  :
4628else
4629  echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632FFLAGS=
4633fi
4634rm -f conftest.err conftest.$ac_objext \
4635      conftest$ac_exeext conftest.$ac_ext
4636    if test -z "$FFLAGS"; then
4637      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4638echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4639    fi
4640  fi
4641fi
4642
4643{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4644echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4645
4646
4647if test x"$MPIF77" = x; then :; else
4648  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4649echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4650  F77="$MPIF77"
4651fi
4652
4653case "$F77" in
4654  ifort* | */ifort* | IFORT* | */IFORT*)
4655    case $build in
4656  *-mingw*)
4657    if test "${LD+set}" = set; then :; else
4658      LD=link
4659    fi
4660    ;;
4661 esac
4662 case $enable_doscompile in
4663   msvc)
4664     if test "x${LD+set}" = xset; then :; else
4665       LD=link
4666     fi
4667     ;;
4668 esac
4669
4670    ;;
4671esac
4672
4673ac_ext=c
4674ac_cpp='$CPP $CPPFLAGS'
4675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4677ac_compiler_gnu=$ac_cv_c_compiler_gnu
4678
4679
4680
4681# Initialize automake and libtool
4682# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4683{
4684
4685
4686
4687# START
4688
4689# Test if force_shared has been set
4690if test "x" = xforce_shared; then
4691  if test x$enable_shared = xno; then
4692    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4693echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4694   { (exit 1); exit 1; }; }
4695  fi
4696  enable_shared=yes;
4697else
4698  # On Cygwin and AIX, building DLLs doesn't work
4699  case $build in
4700    *-cygwin*)
4701      coin_disable_shared=yes
4702      platform=Cygwin
4703    ;;
4704    *-aix*)
4705      coin_disable_shared=yes
4706      platform=AIX
4707    ;;
4708    *-mingw*)
4709      coin_disable_shared=yes
4710      platform="Msys"
4711#      case "$CXX" in
4712#        cl*)
4713#          coin_disable_shared=yes
4714#          platform="Msys with cl"
4715#      ;;
4716#      esac
4717    ;;
4718  esac
4719fi
4720if test x"$coin_disable_shared" = xyes; then
4721  if test x"$enable_shared" = xyes; then
4722    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4723echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4724  fi
4725  enable_shared=no
4726fi
4727# By default, we only want the shared objects to be compiled
4728# Check whether --enable-static or --disable-static was given.
4729if test "${enable_static+set}" = set; then
4730  enableval="$enable_static"
4731  p=${PACKAGE-default}
4732    case $enableval in
4733    yes) enable_static=yes ;;
4734    no) enable_static=no ;;
4735    *)
4736     enable_static=no
4737      # Look at the argument we got.  We use all the common list separators.
4738      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4739      for pkg in $enableval; do
4740        IFS="$lt_save_ifs"
4741        if test "X$pkg" = "X$p"; then
4742          enable_static=yes
4743        fi
4744      done
4745      IFS="$lt_save_ifs"
4746      ;;
4747    esac
4748else
4749  enable_static=no
4750fi;
4751
4752
4753
4754
4755# Initialize automake
4756echo "$as_me:$LINENO: checking for egrep" >&5
4757echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4758if test "${ac_cv_prog_egrep+set}" = set; then
4759  echo $ECHO_N "(cached) $ECHO_C" >&6
4760else
4761  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4762    then ac_cv_prog_egrep='grep -E'
4763    else ac_cv_prog_egrep='egrep'
4764    fi
4765fi
4766echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4767echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4768 EGREP=$ac_cv_prog_egrep
4769
4770
4771am__api_version="1.9"
4772# Find a good install program.  We prefer a C program (faster),
4773# so one script is as good as another.  But avoid the broken or
4774# incompatible versions:
4775# SysV /etc/install, /usr/sbin/install
4776# SunOS /usr/etc/install
4777# IRIX /sbin/install
4778# AIX /bin/install
4779# AmigaOS /C/install, which installs bootblocks on floppy discs
4780# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4781# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4782# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4783# OS/2's system install, which has a completely different semantic
4784# ./install, which can be erroneously created by make from ./install.sh.
4785echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4786echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4787if test -z "$INSTALL"; then
4788if test "${ac_cv_path_install+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792for as_dir in $PATH
4793do
4794  IFS=$as_save_IFS
4795  test -z "$as_dir" && as_dir=.
4796  # Account for people who put trailing slashes in PATH elements.
4797case $as_dir/ in
4798  ./ | .// | /cC/* | \
4799  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4800  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4801  /usr/ucb/* ) ;;
4802  *)
4803    # OSF1 and SCO ODT 3.0 have their own names for install.
4804    # Don't use installbsd from OSF since it installs stuff as root
4805    # by default.
4806    for ac_prog in ginstall scoinst install; do
4807      for ac_exec_ext in '' $ac_executable_extensions; do
4808        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4809          if test $ac_prog = install &&
4810            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4811            # AIX install.  It has an incompatible calling convention.
4812            :
4813          elif test $ac_prog = install &&
4814            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4815            # program-specific install script used by HP pwplus--don't use.
4816            :
4817          else
4818            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4819            break 3
4820          fi
4821        fi
4822      done
4823    done
4824    ;;
4825esac
4826done
4827
4828
4829fi
4830  if test "${ac_cv_path_install+set}" = set; then
4831    INSTALL=$ac_cv_path_install
4832  else
4833    # As a last resort, use the slow shell script.  We don't cache a
4834    # path for INSTALL within a source directory, because that will
4835    # break other packages using the cache if that directory is
4836    # removed, or if the path is relative.
4837    INSTALL=$ac_install_sh
4838  fi
4839fi
4840echo "$as_me:$LINENO: result: $INSTALL" >&5
4841echo "${ECHO_T}$INSTALL" >&6
4842
4843# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4844# It thinks the first close brace ends the variable substitution.
4845test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4846
4847test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4848
4849test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4850
4851echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4852echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4853# Just in case
4854sleep 1
4855echo timestamp > conftest.file
4856# Do `set' in a subshell so we don't clobber the current shell's
4857# arguments.  Must try -L first in case configure is actually a
4858# symlink; some systems play weird games with the mod time of symlinks
4859# (eg FreeBSD returns the mod time of the symlink's containing
4860# directory).
4861if (
4862   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4863   if test "$*" = "X"; then
4864      # -L didn't work.
4865      set X `ls -t $srcdir/configure conftest.file`
4866   fi
4867   rm -f conftest.file
4868   if test "$*" != "X $srcdir/configure conftest.file" \
4869      && test "$*" != "X conftest.file $srcdir/configure"; then
4870
4871      # If neither matched, then we have a broken ls.  This can happen
4872      # if, for instance, CONFIG_SHELL is bash and it inherits a
4873      # broken ls alias from the environment.  This has actually
4874      # happened.  Such a system could not be considered "sane".
4875      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4876alias in your environment" >&5
4877echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4878alias in your environment" >&2;}
4879   { (exit 1); exit 1; }; }
4880   fi
4881
4882   test "$2" = conftest.file
4883   )
4884then
4885   # Ok.
4886   :
4887else
4888   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4889Check your system clock" >&5
4890echo "$as_me: error: newly created file is older than distributed files!
4891Check your system clock" >&2;}
4892   { (exit 1); exit 1; }; }
4893fi
4894echo "$as_me:$LINENO: result: yes" >&5
4895echo "${ECHO_T}yes" >&6
4896test "$program_prefix" != NONE &&
4897  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4898# Use a double $ so make ignores it.
4899test "$program_suffix" != NONE &&
4900  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4901# Double any \ or $.  echo might interpret backslashes.
4902# By default was `s,x,x', remove it if useless.
4903cat <<\_ACEOF >conftest.sed
4904s/[\\$]/&&/g;s/;s,x,x,$//
4905_ACEOF
4906program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4907rm conftest.sed
4908
4909# expand $ac_aux_dir to an absolute path
4910am_aux_dir=`cd $ac_aux_dir && pwd`
4911
4912test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4913# Use eval to expand $SHELL
4914if eval "$MISSING --run true"; then
4915  am_missing_run="$MISSING --run "
4916else
4917  am_missing_run=
4918  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4919echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4920fi
4921
4922if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4923  # We used to keeping the `.' as first argument, in order to
4924  # allow $(mkdir_p) to be used without argument.  As in
4925  #   $(mkdir_p) $(somedir)
4926  # where $(somedir) is conditionally defined.  However this is wrong
4927  # for two reasons:
4928  #  1. if the package is installed by a user who cannot write `.'
4929  #     make install will fail,
4930  #  2. the above comment should most certainly read
4931  #     $(mkdir_p) $(DESTDIR)$(somedir)
4932  #     so it does not work when $(somedir) is undefined and
4933  #     $(DESTDIR) is not.
4934  #  To support the latter case, we have to write
4935  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4936  #  so the `.' trick is pointless.
4937  mkdir_p='mkdir -p --'
4938else
4939  # On NextStep and OpenStep, the `mkdir' command does not
4940  # recognize any option.  It will interpret all options as
4941  # directories to create, and then abort because `.' already
4942  # exists.
4943  for d in ./-p ./--version;
4944  do
4945    test -d $d && rmdir $d
4946  done
4947  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4948  if test -f "$ac_aux_dir/mkinstalldirs"; then
4949    mkdir_p='$(mkinstalldirs)'
4950  else
4951    mkdir_p='$(install_sh) -d'
4952  fi
4953fi
4954
4955for ac_prog in gawk mawk nawk awk
4956do
4957  # Extract the first word of "$ac_prog", so it can be a program name with args.
4958set dummy $ac_prog; ac_word=$2
4959echo "$as_me:$LINENO: checking for $ac_word" >&5
4960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961if test "${ac_cv_prog_AWK+set}" = set; then
4962  echo $ECHO_N "(cached) $ECHO_C" >&6
4963else
4964  if test -n "$AWK"; then
4965  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4966else
4967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH
4969do
4970  IFS=$as_save_IFS
4971  test -z "$as_dir" && as_dir=.
4972  for ac_exec_ext in '' $ac_executable_extensions; do
4973  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974    ac_cv_prog_AWK="$ac_prog"
4975    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976    break 2
4977  fi
4978done
4979done
4980
4981fi
4982fi
4983AWK=$ac_cv_prog_AWK
4984if test -n "$AWK"; then
4985  echo "$as_me:$LINENO: result: $AWK" >&5
4986echo "${ECHO_T}$AWK" >&6
4987else
4988  echo "$as_me:$LINENO: result: no" >&5
4989echo "${ECHO_T}no" >&6
4990fi
4991
4992  test -n "$AWK" && break
4993done
4994
4995echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4996echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4997set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4998if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4999  echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001  cat >conftest.make <<\_ACEOF
5002all:
5003        @echo 'ac_maketemp="$(MAKE)"'
5004_ACEOF
5005# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5006eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5007if test -n "$ac_maketemp"; then
5008  eval ac_cv_prog_make_${ac_make}_set=yes
5009else
5010  eval ac_cv_prog_make_${ac_make}_set=no
5011fi
5012rm -f conftest.make
5013fi
5014if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5015  echo "$as_me:$LINENO: result: yes" >&5
5016echo "${ECHO_T}yes" >&6
5017  SET_MAKE=
5018else
5019  echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021  SET_MAKE="MAKE=${MAKE-make}"
5022fi
5023
5024rm -rf .tst 2>/dev/null
5025mkdir .tst 2>/dev/null
5026if test -d .tst; then
5027  am__leading_dot=.
5028else
5029  am__leading_dot=_
5030fi
5031rmdir .tst 2>/dev/null
5032
5033DEPDIR="${am__leading_dot}deps"
5034
5035          ac_config_commands="$ac_config_commands depfiles"
5036
5037
5038am_make=${MAKE-make}
5039cat > confinc << 'END'
5040am__doit:
5041        @echo done
5042.PHONY: am__doit
5043END
5044# If we don't find an include directive, just comment out the code.
5045echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5046echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5047am__include="#"
5048am__quote=
5049_am_result=none
5050# First try GNU make style include.
5051echo "include confinc" > confmf
5052# We grep out `Entering directory' and `Leaving directory'
5053# messages which can occur if `w' ends up in MAKEFLAGS.
5054# In particular we don't look at `^make:' because GNU make might
5055# be invoked under some other name (usually "gmake"), in which
5056# case it prints its new name instead of `make'.
5057if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5058   am__include=include
5059   am__quote=
5060   _am_result=GNU
5061fi
5062# Now try BSD make style include.
5063if test "$am__include" = "#"; then
5064   echo '.include "confinc"' > confmf
5065   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5066      am__include=.include
5067      am__quote="\""
5068      _am_result=BSD
5069   fi
5070fi
5071
5072
5073echo "$as_me:$LINENO: result: $_am_result" >&5
5074echo "${ECHO_T}$_am_result" >&6
5075rm -f confinc confmf
5076
5077# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5078if test "${enable_dependency_tracking+set}" = set; then
5079  enableval="$enable_dependency_tracking"
5080
5081fi;
5082if test "x$enable_dependency_tracking" != xno; then
5083  am_depcomp="$ac_aux_dir/depcomp"
5084  AMDEPBACKSLASH='\'
5085fi
5086
5087
5088if test "x$enable_dependency_tracking" != xno; then
5089  AMDEP_TRUE=
5090  AMDEP_FALSE='#'
5091else
5092  AMDEP_TRUE='#'
5093  AMDEP_FALSE=
5094fi
5095
5096
5097
5098
5099
5100# AC_MSG_NOTICE([Beginning automake initialisation.])
5101# Stuff for automake
5102# test to see if srcdir already configured
5103if test "`cd $srcdir && pwd`" != "`pwd`" &&
5104   test -f $srcdir/config.status; then
5105  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5106echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5107   { (exit 1); exit 1; }; }
5108fi
5109
5110# test whether we have cygpath
5111if test -z "$CYGPATH_W"; then
5112  if (cygpath --version) >/dev/null 2>/dev/null; then
5113    CYGPATH_W='cygpath -w'
5114  else
5115    CYGPATH_W=echo
5116  fi
5117fi
5118
5119
5120# Define the identity of the package.
5121 PACKAGE='clp'
5122 VERSION='trunk'
5123
5124
5125cat >>confdefs.h <<_ACEOF
5126#define PACKAGE "$PACKAGE"
5127_ACEOF
5128
5129
5130cat >>confdefs.h <<_ACEOF
5131#define VERSION "$VERSION"
5132_ACEOF
5133
5134# Some tools Automake needs.
5135
5136ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5137
5138
5139AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5140
5141
5142AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5143
5144
5145AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5146
5147
5148MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5149
5150install_sh=${install_sh-"$am_aux_dir/install-sh"}
5151
5152# Installed binaries are usually stripped using `strip' when the user
5153# run `make install-strip'.  However `strip' might not be the right
5154# tool to use in cross-compilation environments, therefore Automake
5155# will honor the `STRIP' environment variable to overrule this program.
5156if test "$cross_compiling" != no; then
5157  if test -n "$ac_tool_prefix"; then
5158  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5159set dummy ${ac_tool_prefix}strip; ac_word=$2
5160echo "$as_me:$LINENO: checking for $ac_word" >&5
5161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5162if test "${ac_cv_prog_STRIP+set}" = set; then
5163  echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165  if test -n "$STRIP"; then
5166  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171  IFS=$as_save_IFS
5172  test -z "$as_dir" && as_dir=.
5173  for ac_exec_ext in '' $ac_executable_extensions; do
5174  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5176    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5177    break 2
5178  fi
5179done
5180done
5181
5182fi
5183fi
5184STRIP=$ac_cv_prog_STRIP
5185if test -n "$STRIP"; then
5186  echo "$as_me:$LINENO: result: $STRIP" >&5
5187echo "${ECHO_T}$STRIP" >&6
5188else
5189  echo "$as_me:$LINENO: result: no" >&5
5190echo "${ECHO_T}no" >&6
5191fi
5192
5193fi
5194if test -z "$ac_cv_prog_STRIP"; then
5195  ac_ct_STRIP=$STRIP
5196  # Extract the first word of "strip", so it can be a program name with args.
5197set dummy strip; ac_word=$2
5198echo "$as_me:$LINENO: checking for $ac_word" >&5
5199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5200if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5201  echo $ECHO_N "(cached) $ECHO_C" >&6
5202else
5203  if test -n "$ac_ct_STRIP"; then
5204  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5205else
5206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209  IFS=$as_save_IFS
5210  test -z "$as_dir" && as_dir=.
5211  for ac_exec_ext in '' $ac_executable_extensions; do
5212  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213    ac_cv_prog_ac_ct_STRIP="strip"
5214    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215    break 2
5216  fi
5217done
5218done
5219
5220  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5221fi
5222fi
5223ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5224if test -n "$ac_ct_STRIP"; then
5225  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5226echo "${ECHO_T}$ac_ct_STRIP" >&6
5227else
5228  echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230fi
5231
5232  STRIP=$ac_ct_STRIP
5233else
5234  STRIP="$ac_cv_prog_STRIP"
5235fi
5236
5237fi
5238INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5239
5240# We need awk for the "check" target.  The system "awk" is bad on
5241# some platforms.
5242# Always define AMTAR for backward compatibility.
5243
5244AMTAR=${AMTAR-"${am_missing_run}tar"}
5245
5246am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5247
5248
5249
5250
5251depcc="$CC"   am_compiler_list=
5252
5253echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5254echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5255if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5256  echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5259  # We make a subdir and do the tests there.  Otherwise we can end up
5260  # making bogus files that we don't know about and never remove.  For
5261  # instance it was reported that on HP-UX the gcc test will end up
5262  # making a dummy file named `D' -- because `-MD' means `put the output
5263  # in D'.
5264  mkdir conftest.dir
5265  # Copy depcomp to subdir because otherwise we won't find it if we're
5266  # using a relative directory.
5267  cp "$am_depcomp" conftest.dir
5268  cd conftest.dir
5269  # We will build objects and dependencies in a subdirectory because
5270  # it helps to detect inapplicable dependency modes.  For instance
5271  # both Tru64's cc and ICC support -MD to output dependencies as a
5272  # side effect of compilation, but ICC will put the dependencies in
5273  # the current directory while Tru64 will put them in the object
5274  # directory.
5275  mkdir sub
5276
5277  am_cv_CC_dependencies_compiler_type=none
5278  if test "$am_compiler_list" = ""; then
5279     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5280  fi
5281  for depmode in $am_compiler_list; do
5282    # Setup a source with many dependencies, because some compilers
5283    # like to wrap large dependency lists on column 80 (with \), and
5284    # we should not choose a depcomp mode which is confused by this.
5285    #
5286    # We need to recreate these files for each test, as the compiler may
5287    # overwrite some of them when testing with obscure command lines.
5288    # This happens at least with the AIX C compiler.
5289    : > sub/conftest.c
5290    for i in 1 2 3 4 5 6; do
5291      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5292      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5293      # Solaris 8's {/usr,}/bin/sh.
5294      touch sub/conftst$i.h
5295    done
5296    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5297
5298    case $depmode in
5299    nosideeffect)
5300      # after this tag, mechanisms are not by side-effect, so they'll
5301      # only be used when explicitly requested
5302      if test "x$enable_dependency_tracking" = xyes; then
5303        continue
5304      else
5305        break
5306      fi
5307      ;;
5308    none) break ;;
5309    esac
5310    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5311    # mode.  It turns out that the SunPro C++ compiler does not properly
5312    # handle `-M -o', and we need to detect this.
5313    if depmode=$depmode \
5314       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5315       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5316       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5317         >/dev/null 2>conftest.err &&
5318       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5319       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5320       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5321      # icc doesn't choke on unknown options, it will just issue warnings
5322      # or remarks (even with -Werror).  So we grep stderr for any message
5323      # that says an option was ignored or not supported.
5324      # When given -MP, icc 7.0 and 7.1 complain thusly:
5325      #   icc: Command line warning: ignoring option '-M'; no argument required
5326      # The diagnosis changed in icc 8.0:
5327      #   icc: Command line remark: option '-MP' not supported
5328      if (grep 'ignoring option' conftest.err ||
5329          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5330        am_cv_CC_dependencies_compiler_type=$depmode
5331        break
5332      fi
5333    fi
5334  done
5335
5336  cd ..
5337  rm -rf conftest.dir
5338else
5339  am_cv_CC_dependencies_compiler_type=none
5340fi
5341
5342fi
5343echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5344echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5345CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5346
5347
5348
5349if
5350  test "x$enable_dependency_tracking" != xno \
5351  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5352  am__fastdepCC_TRUE=
5353  am__fastdepCC_FALSE='#'
5354else
5355  am__fastdepCC_TRUE='#'
5356  am__fastdepCC_FALSE=
5357fi
5358
5359
5360depcc="$CXX"  am_compiler_list=
5361
5362echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5363echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5364if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5365  echo $ECHO_N "(cached) $ECHO_C" >&6
5366else
5367  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5368  # We make a subdir and do the tests there.  Otherwise we can end up
5369  # making bogus files that we don't know about and never remove.  For
5370  # instance it was reported that on HP-UX the gcc test will end up
5371  # making a dummy file named `D' -- because `-MD' means `put the output
5372  # in D'.
5373  mkdir conftest.dir
5374  # Copy depcomp to subdir because otherwise we won't find it if we're
5375  # using a relative directory.
5376  cp "$am_depcomp" conftest.dir
5377  cd conftest.dir
5378  # We will build objects and dependencies in a subdirectory because
5379  # it helps to detect inapplicable dependency modes.  For instance
5380  # both Tru64's cc and ICC support -MD to output dependencies as a
5381  # side effect of compilation, but ICC will put the dependencies in
5382  # the current directory while Tru64 will put them in the object
5383  # directory.
5384  mkdir sub
5385
5386  am_cv_CXX_dependencies_compiler_type=none
5387  if test "$am_compiler_list" = ""; then
5388     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5389  fi
5390  for depmode in $am_compiler_list; do
5391    # Setup a source with many dependencies, because some compilers
5392    # like to wrap large dependency lists on column 80 (with \), and
5393    # we should not choose a depcomp mode which is confused by this.
5394    #
5395    # We need to recreate these files for each test, as the compiler may
5396    # overwrite some of them when testing with obscure command lines.
5397    # This happens at least with the AIX C compiler.
5398    : > sub/conftest.c
5399    for i in 1 2 3 4 5 6; do
5400      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5401      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5402      # Solaris 8's {/usr,}/bin/sh.
5403      touch sub/conftst$i.h
5404    done
5405    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5406
5407    case $depmode in
5408    nosideeffect)
5409      # after this tag, mechanisms are not by side-effect, so they'll
5410      # only be used when explicitly requested
5411      if test "x$enable_dependency_tracking" = xyes; then
5412        continue
5413      else
5414        break
5415      fi
5416      ;;
5417    none) break ;;
5418    esac
5419    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5420    # mode.  It turns out that the SunPro C++ compiler does not properly
5421    # handle `-M -o', and we need to detect this.
5422    if depmode=$depmode \
5423       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5424       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5425       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5426         >/dev/null 2>conftest.err &&
5427       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5428       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5429       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5430      # icc doesn't choke on unknown options, it will just issue warnings
5431      # or remarks (even with -Werror).  So we grep stderr for any message
5432      # that says an option was ignored or not supported.
5433      # When given -MP, icc 7.0 and 7.1 complain thusly:
5434      #   icc: Command line warning: ignoring option '-M'; no argument required
5435      # The diagnosis changed in icc 8.0:
5436      #   icc: Command line remark: option '-MP' not supported
5437      if (grep 'ignoring option' conftest.err ||
5438          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5439        am_cv_CXX_dependencies_compiler_type=$depmode
5440        break
5441      fi
5442    fi
5443  done
5444
5445  cd ..
5446  rm -rf conftest.dir
5447else
5448  am_cv_CXX_dependencies_compiler_type=none
5449fi
5450
5451fi
5452echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5453echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5454CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5455
5456
5457
5458if
5459  test "x$enable_dependency_tracking" != xno \
5460  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5461  am__fastdepCXX_TRUE=
5462  am__fastdepCXX_FALSE='#'
5463else
5464  am__fastdepCXX_TRUE='#'
5465  am__fastdepCXX_FALSE=
5466fi
5467
5468
5469
5470echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5471echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5472    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5473if test "${enable_maintainer_mode+set}" = set; then
5474  enableval="$enable_maintainer_mode"
5475  USE_MAINTAINER_MODE=$enableval
5476else
5477  USE_MAINTAINER_MODE=no
5478fi;
5479  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5480echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5481
5482
5483if test $USE_MAINTAINER_MODE = yes; then
5484  MAINTAINER_MODE_TRUE=
5485  MAINTAINER_MODE_FALSE='#'
5486else
5487  MAINTAINER_MODE_TRUE='#'
5488  MAINTAINER_MODE_FALSE=
5489fi
5490
5491  MAINT=$MAINTAINER_MODE_TRUE
5492
5493
5494
5495coin_have_externals=no
5496if test "$enable_maintainer_mode" = yes; then
5497
5498  # If maintainer mode is chosen, we make sure that the correct versions
5499  # of the tools are used, and that we know where libtool.m4 is (to
5500  # recreate acinclude.m4)
5501
5502
5503  LIBTOOLM4=
5504  # Normally, $HOME
5505  AUTOTOOLS_DFLT=$HOME
5506
5507  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5508echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5509if test "${ac_cv_use_correct_autotools+set}" = set; then
5510  echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512  ac_cv_use_correct_autotools=check
5513fi
5514echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5515echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5516
5517  if test $ac_cv_use_correct_autotools = check; then
5518    ac_cv_use_correct_autotools=yes
5519    # Check if we have autoconf
5520    # Extract the first word of "autoconf", so it can be a program name with args.
5521set dummy autoconf; ac_word=$2
5522echo "$as_me:$LINENO: checking for $ac_word" >&5
5523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5524if test "${ac_cv_prog_have_autoconf+set}" = set; then
5525  echo $ECHO_N "(cached) $ECHO_C" >&6
5526else
5527  if test -n "$have_autoconf"; then
5528  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5529else
5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535  for ac_exec_ext in '' $ac_executable_extensions; do
5536  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5537    ac_cv_prog_have_autoconf="yes"
5538    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5539    break 2
5540  fi
5541done
5542done
5543
5544  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5545fi
5546fi
5547have_autoconf=$ac_cv_prog_have_autoconf
5548if test -n "$have_autoconf"; then
5549  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5550echo "${ECHO_T}$have_autoconf" >&6
5551else
5552  echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554fi
5555
5556    if test $have_autoconf = no; then
5557      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5558echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5559   { (exit 1); exit 1; }; }
5560    fi
5561
5562    # Check whether autoconf is the correct version
5563    correct_version='2.59'
5564    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5565    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5566echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5567    autoconf --version > confauto.out 2>&1
5568    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5569      echo "$as_me:$LINENO: result: yes" >&5
5570echo "${ECHO_T}yes" >&6
5571    else
5572      rm -f confauto.out
5573      echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6
5575      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5576echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5577   { (exit 1); exit 1; }; }
5578    fi
5579    rm -f confauto.out
5580
5581    # Check if the executable autoconf is picked up from the correct location
5582    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5583echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5584    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5585    autoconf_dir=`cd $autoconf_dir; pwd`
5586    if test x$AUTOTOOLS_DIR = x; then
5587      want_dir=$AUTOTOOLS_DFLT/bin
5588    else
5589      want_dir=$AUTOTOOLS_DIR/bin
5590    fi
5591    if test $autoconf_dir = `cd $want_dir; pwd`; then
5592      echo "$as_me:$LINENO: result: yes" >&5
5593echo "${ECHO_T}yes" >&6
5594    else
5595      rm -f confauto.out
5596      echo "$as_me:$LINENO: result: no" >&5
5597echo "${ECHO_T}no" >&6
5598      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5599echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5600   { (exit 1); exit 1; }; }
5601    fi
5602
5603    # Check if we have automake
5604    # Extract the first word of "automake", so it can be a program name with args.
5605set dummy automake; ac_word=$2
5606echo "$as_me:$LINENO: checking for $ac_word" >&5
5607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5608if test "${ac_cv_prog_have_automake+set}" = set; then
5609  echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611  if test -n "$have_automake"; then
5612  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617  IFS=$as_save_IFS
5618  test -z "$as_dir" && as_dir=.
5619  for ac_exec_ext in '' $ac_executable_extensions; do
5620  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621    ac_cv_prog_have_automake="yes"
5622    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623    break 2
5624  fi
5625done
5626done
5627
5628  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5629fi
5630fi
5631have_automake=$ac_cv_prog_have_automake
5632if test -n "$have_automake"; then
5633  echo "$as_me:$LINENO: result: $have_automake" >&5
5634echo "${ECHO_T}$have_automake" >&6
5635else
5636  echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638fi
5639
5640    if test $have_automake = no; then
5641      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5642echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5643   { (exit 1); exit 1; }; }
5644    fi
5645
5646    # Check whether automake is the correct version
5647    correct_version='1.9.6'
5648    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5649    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5650echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5651    automake --version > confauto.out 2>&1
5652    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5653      echo "$as_me:$LINENO: result: yes" >&5
5654echo "${ECHO_T}yes" >&6
5655    else
5656      rm -f confauto.out
5657      echo "$as_me:$LINENO: result: no" >&5
5658echo "${ECHO_T}no" >&6
5659      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5660echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5661   { (exit 1); exit 1; }; }
5662    fi
5663    rm -f confauto.out
5664
5665    # Check if the executable automake is picked up from the correct location
5666    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5667echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5668    automake_dir=`which automake | sed -e 's=/automake=='`
5669    automake_dir=`cd $automake_dir; pwd`
5670    if test x$AUTOTOOLS_DIR = x; then
5671      want_dir=$AUTOTOOLS_DFLT/bin
5672    else
5673      want_dir=$AUTOTOOLS_DIR/bin
5674    fi
5675    if test $automake_dir = `cd $want_dir; pwd`; then
5676      echo "$as_me:$LINENO: result: yes" >&5
5677echo "${ECHO_T}yes" >&6
5678    else
5679      rm -f confauto.out
5680      echo "$as_me:$LINENO: result: no" >&5
5681echo "${ECHO_T}no" >&6
5682      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5683echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5684   { (exit 1); exit 1; }; }
5685    fi
5686
5687    # Check if this is the correct version of libtool (with escaped dots)
5688    if test x$AUTOTOOLS_DIR = x; then
5689      want_dir=$AUTOTOOLS_DFLT/share
5690    else
5691      want_dir=$AUTOTOOLS_DIR/share
5692    fi
5693    correct_version='1.5.22'
5694    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5695    if test -r $want_dir/libtool/ltmain.sh; then
5696  have_ltmain=yes
5697  :
5698else
5699  have_ltmain=no
5700  :
5701fi
5702
5703    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5704echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5705    if test $have_ltmain = yes; then
5706    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5707        echo "$as_me:$LINENO: result: yes" >&5
5708echo "${ECHO_T}yes" >&6
5709      else
5710        echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6
5712        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5713echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5714   { (exit 1); exit 1; }; }
5715      fi
5716    else
5717      echo "$as_me:$LINENO: result: no" >&5
5718echo "${ECHO_T}no" >&6
5719      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5720echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5721   { (exit 1); exit 1; }; }
5722    fi
5723  fi
5724
5725  # Check if we can find the libtool file
5726  if test x$AUTOTOOLS_DIR = x; then
5727    want_dir=$AUTOTOOLS_DFLT/share
5728  else
5729    want_dir=$AUTOTOOLS_DIR/share
5730  fi
5731  if test -r $want_dir/aclocal/libtool.m4; then
5732  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5733  :
5734else
5735  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5736echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5737   { (exit 1); exit 1; }; }
5738  :
5739fi
5740
5741
5742  # Check if we have an Externals file
5743  if test -r $srcdir/Externals; then
5744    coin_have_externals=yes
5745  fi
5746  # Check if subversion is installed and understands https
5747  # Extract the first word of "svn", so it can be a program name with args.
5748set dummy svn; ac_word=$2
5749echo "$as_me:$LINENO: checking for $ac_word" >&5
5750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5751if test "${ac_cv_prog_have_svn+set}" = set; then
5752  echo $ECHO_N "(cached) $ECHO_C" >&6
5753else
5754  if test -n "$have_svn"; then
5755  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5756else
5757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758for as_dir in $PATH
5759do
5760  IFS=$as_save_IFS
5761  test -z "$as_dir" && as_dir=.
5762  for ac_exec_ext in '' $ac_executable_extensions; do
5763  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764    ac_cv_prog_have_svn="yes"
5765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5766    break 2
5767  fi
5768done
5769done
5770
5771  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5772fi
5773fi
5774have_svn=$ac_cv_prog_have_svn
5775if test -n "$have_svn"; then
5776  echo "$as_me:$LINENO: result: $have_svn" >&5
5777echo "${ECHO_T}$have_svn" >&6
5778else
5779  echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781fi
5782
5783  if test x$have_svn = xyes; then
5784    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5785echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5786if test "${ac_cv_svn_understands_https+set}" = set; then
5787  echo $ECHO_N "(cached) $ECHO_C" >&6
5788else
5789  svn --version > confauto.out 2>&1
5790                    if $EGREP https confauto.out >/dev/null 2>&1; then
5791                      ac_cv_svn_understands_https=yes
5792                    else
5793                      ac_cv_svn_understands_https=no
5794                      have_svn=no
5795                      ac_cv_prog_have_svn=no
5796                    fi
5797                    rm -f confauto.out
5798fi
5799echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5800echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5801  fi
5802
5803  # Find the location of the BuildTools directory
5804  BUILDTOOLSDIR=
5805  if test -r $srcdir/BuildTools/coin.m4; then
5806    BUILDTOOLSDIR=$srcdir/BuildTools
5807  else
5808    if test -r $srcdir/../BuildTools/coin.m4; then
5809      BUILDTOOLSDIR=$srcdir/../BuildTools
5810    else
5811      if test -r $srcdir/../../BuildTools/coin.m4; then
5812        BUILDTOOLSDIR=$srcdir/../../BuildTools
5813      else
5814        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5815echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5816   { (exit 1); exit 1; }; }
5817      fi
5818    fi
5819  fi
5820
5821
5822  # The following variable is set to the name of the directory where
5823  # the autotool scripts are located
5824
5825  AUX_DIR=$ac_aux_dir
5826fi
5827
5828# helpful variable for the base directory of this package
5829abs_source_dir=`cd $srcdir; pwd`
5830
5831
5832# Stuff for example Makefiles
5833if test x$prefix = xNONE; then
5834  full_prefix=$ac_default_prefix
5835else
5836  full_prefix=$prefix
5837fi
5838full_prefix=`cd $full_prefix ; pwd`
5839
5840abs_lib_dir=$full_prefix/lib
5841
5842abs_include_dir=$full_prefix/include
5843
5844abs_bin_dir=$full_prefix/bin
5845
5846
5847
5848if test $coin_have_externals = yes && test x$have_svn = xyes; then
5849  HAVE_EXTERNALS_TRUE=
5850  HAVE_EXTERNALS_FALSE='#'
5851else
5852  HAVE_EXTERNALS_TRUE='#'
5853  HAVE_EXTERNALS_FALSE=
5854fi
5855
5856
5857# AC_MSG_NOTICE([End automake initialisation.])
5858
5859
5860
5861LIBTOOL=
5862if test -r ../libtool; then
5863  coin_config_dir=..
5864  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5865fi
5866if test "x$LIBTOOL" = x; then
5867  if test -r ../../libtool; then
5868    coin_config_dir=../..
5869    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5870  fi
5871fi
5872
5873if test "x$LIBTOOL" = x; then
5874# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5875  # Stuff for libtool
5876  # Check whether --enable-shared or --disable-shared was given.
5877if test "${enable_shared+set}" = set; then
5878  enableval="$enable_shared"
5879  p=${PACKAGE-default}
5880    case $enableval in
5881    yes) enable_shared=yes ;;
5882    no) enable_shared=no ;;
5883    *)
5884      enable_shared=no
5885      # Look at the argument we got.  We use all the common list separators.
5886      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5887      for pkg in $enableval; do
5888        IFS="$lt_save_ifs"
5889        if test "X$pkg" = "X$p"; then
5890          enable_shared=yes
5891        fi
5892      done
5893      IFS="$lt_save_ifs"
5894      ;;
5895    esac
5896else
5897  enable_shared=yes
5898fi;
5899
5900# Check whether --enable-fast-install or --disable-fast-install was given.
5901if test "${enable_fast_install+set}" = set; then
5902  enableval="$enable_fast_install"
5903  p=${PACKAGE-default}
5904    case $enableval in
5905    yes) enable_fast_install=yes ;;
5906    no) enable_fast_install=no ;;
5907    *)
5908      enable_fast_install=no
5909      # Look at the argument we got.  We use all the common list separators.
5910      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5911      for pkg in $enableval; do
5912        IFS="$lt_save_ifs"
5913        if test "X$pkg" = "X$p"; then
5914          enable_fast_install=yes
5915        fi
5916      done
5917      IFS="$lt_save_ifs"
5918      ;;
5919    esac
5920else
5921  enable_fast_install=yes
5922fi;
5923
5924echo "$as_me:$LINENO: checking host system type" >&5
5925echo $ECHO_N "checking host system type... $ECHO_C" >&6
5926if test "${ac_cv_host+set}" = set; then
5927  echo $ECHO_N "(cached) $ECHO_C" >&6
5928else
5929  ac_cv_host_alias=$host_alias
5930test -z "$ac_cv_host_alias" &&
5931  ac_cv_host_alias=$ac_cv_build_alias
5932ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5933  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5934echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5935   { (exit 1); exit 1; }; }
5936
5937fi
5938echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5939echo "${ECHO_T}$ac_cv_host" >&6
5940host=$ac_cv_host
5941host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5942host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5943host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5944
5945
5946echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5947echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5948if test "${lt_cv_path_SED+set}" = set; then
5949  echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951  # Loop through the user's path and test for sed and gsed.
5952# Then use that list of sed's as ones to test for truncation.
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956  IFS=$as_save_IFS
5957  test -z "$as_dir" && as_dir=.
5958  for lt_ac_prog in sed gsed; do
5959    for ac_exec_ext in '' $ac_executable_extensions; do
5960      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5961        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5962      fi
5963    done
5964  done
5965done
5966lt_ac_max=0
5967lt_ac_count=0
5968# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5969# along with /bin/sed that truncates output.
5970for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5971  test ! -f $lt_ac_sed && continue
5972  cat /dev/null > conftest.in
5973  lt_ac_count=0
5974  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5975  # Check for GNU sed and select it if it is found.
5976  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5977    lt_cv_path_SED=$lt_ac_sed
5978    break
5979  fi
5980  while true; do
5981    cat conftest.in conftest.in >conftest.tmp
5982    mv conftest.tmp conftest.in
5983    cp conftest.in conftest.nl
5984    echo >>conftest.nl
5985    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5986    cmp -s conftest.out conftest.nl || break
5987    # 10000 chars as input seems more than enough
5988    test $lt_ac_count -gt 10 && break
5989    lt_ac_count=`expr $lt_ac_count + 1`
5990    if test $lt_ac_count -gt $lt_ac_max; then
5991      lt_ac_max=$lt_ac_count
5992      lt_cv_path_SED=$lt_ac_sed
5993    fi
5994  done
5995done
5996
5997fi
5998
5999SED=$lt_cv_path_SED
6000echo "$as_me:$LINENO: result: $SED" >&5
6001echo "${ECHO_T}$SED" >&6
6002
6003
6004# Check whether --with-gnu-ld or --without-gnu-ld was given.
6005if test "${with_gnu_ld+set}" = set; then
6006  withval="$with_gnu_ld"
6007  test "$withval" = no || with_gnu_ld=yes
6008else
6009  with_gnu_ld=no
6010fi;
6011ac_prog=ld
6012if test "$GCC" = yes; then
6013  # Check if gcc -print-prog-name=ld gives a path.
6014  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6015echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6016  case $host in
6017  *-*-mingw*)
6018    # gcc leaves a trailing carriage return which upsets mingw
6019    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6020  *)
6021    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6022  esac
6023  case $ac_prog in
6024    # Accept absolute paths.
6025    [\\/]* | ?:[\\/]*)
6026      re_direlt='/[^/][^/]*/\.\./'
6027      # Canonicalize the pathname of ld
6028      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6029      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6030        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6031      done
6032      test -z "$LD" && LD="$ac_prog"
6033      ;;
6034  "")
6035    # If it fails, then pretend we aren't using GCC.
6036    ac_prog=ld
6037    ;;
6038  *)
6039    # If it is relative, then search for the first ld in PATH.
6040    with_gnu_ld=unknown
6041    ;;
6042  esac
6043elif test "$with_gnu_ld" = yes; then
6044  echo "$as_me:$LINENO: checking for GNU ld" >&5
6045echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6046else
6047  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6048echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6049fi
6050if test "${lt_cv_path_LD+set}" = set; then
6051  echo $ECHO_N "(cached) $ECHO_C" >&6
6052else
6053  if test -z "$LD"; then
6054  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6055  for ac_dir in $PATH; do
6056    IFS="$lt_save_ifs"
6057    test -z "$ac_dir" && ac_dir=.
6058    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6059      lt_cv_path_LD="$ac_dir/$ac_prog"
6060      # Check to see if the program is GNU ld.  I'd rather use --version,
6061      # but apparently some variants of GNU ld only accept -v.
6062      # Break only if it was the GNU/non-GNU ld that we prefer.
6063      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6064      *GNU* | *'with BFD'*)
6065        test "$with_gnu_ld" != no && break
6066        ;;
6067      *)
6068        test "$with_gnu_ld" != yes && break
6069        ;;
6070      esac
6071    fi
6072  done
6073  IFS="$lt_save_ifs"
6074else
6075  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6076fi
6077fi
6078
6079LD="$lt_cv_path_LD"
6080if test -n "$LD"; then
6081  echo "$as_me:$LINENO: result: $LD" >&5
6082echo "${ECHO_T}$LD" >&6
6083else
6084  echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6
6086fi
6087test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6088echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6089   { (exit 1); exit 1; }; }
6090echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6091echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6092if test "${lt_cv_prog_gnu_ld+set}" = set; then
6093  echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6096case `$LD -v 2>&1 </dev/null` in
6097*GNU* | *'with BFD'*)
6098  lt_cv_prog_gnu_ld=yes
6099  ;;
6100*)
6101  lt_cv_prog_gnu_ld=no
6102  ;;
6103esac
6104fi
6105echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6106echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6107with_gnu_ld=$lt_cv_prog_gnu_ld
6108
6109
6110echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6111echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6112if test "${lt_cv_ld_reload_flag+set}" = set; then
6113  echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115  lt_cv_ld_reload_flag='-r'
6116fi
6117echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6118echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6119reload_flag=$lt_cv_ld_reload_flag
6120case $reload_flag in
6121"" | " "*) ;;
6122*) reload_flag=" $reload_flag" ;;
6123esac
6124reload_cmds='$LD$reload_flag -o $output$reload_objs'
6125case $host_os in
6126  darwin*)
6127    if test "$GCC" = yes; then
6128      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6129    else
6130      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6131    fi
6132    ;;
6133esac
6134
6135echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6136echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6137if test "${lt_cv_path_NM+set}" = set; then
6138  echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140  if test -n "$NM"; then
6141  # Let the user override the test.
6142  lt_cv_path_NM="$NM"
6143else
6144  lt_nm_to_check="${ac_tool_prefix}nm"
6145  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6146    lt_nm_to_check="$lt_nm_to_check nm"
6147  fi
6148  for lt_tmp_nm in $lt_nm_to_check; do
6149    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6150    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6151      IFS="$lt_save_ifs"
6152      test -z "$ac_dir" && ac_dir=.
6153      tmp_nm="$ac_dir/$lt_tmp_nm"
6154      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6155        # Check to see if the nm accepts a BSD-compat flag.
6156        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6157        #   nm: unknown option "B" ignored
6158        # Tru64's nm complains that /dev/null is an invalid object file
6159        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6160        */dev/null* | *'Invalid file or object type'*)
6161          lt_cv_path_NM="$tmp_nm -B"
6162          break
6163          ;;
6164        *)
6165          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6166          */dev/null*)
6167            lt_cv_path_NM="$tmp_nm -p"
6168            break
6169            ;;
6170          *)
6171            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6172            continue # so that we can try to find one that supports BSD flags
6173            ;;
6174          esac
6175          ;;
6176        esac
6177      fi
6178    done
6179    IFS="$lt_save_ifs"
6180  done
6181  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6182fi
6183fi
6184echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6185echo "${ECHO_T}$lt_cv_path_NM" >&6
6186NM="$lt_cv_path_NM"
6187
6188echo "$as_me:$LINENO: checking whether ln -s works" >&5
6189echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6190LN_S=$as_ln_s
6191if test "$LN_S" = "ln -s"; then
6192  echo "$as_me:$LINENO: result: yes" >&5
6193echo "${ECHO_T}yes" >&6
6194else
6195  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6196echo "${ECHO_T}no, using $LN_S" >&6
6197fi
6198
6199echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6200echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6201if test "${lt_cv_deplibs_check_method+set}" = set; then
6202  echo $ECHO_N "(cached) $ECHO_C" >&6
6203else
6204  lt_cv_file_magic_cmd='$MAGIC_CMD'
6205lt_cv_file_magic_test_file=
6206lt_cv_deplibs_check_method='unknown'
6207# Need to set the preceding variable on all platforms that support
6208# interlibrary dependencies.
6209# 'none' -- dependencies not supported.
6210# `unknown' -- same as none, but documents that we really don't know.
6211# 'pass_all' -- all dependencies passed with no checks.
6212# 'test_compile' -- check by making test program.
6213# 'file_magic [[regex]]' -- check by looking for files in library path
6214# which responds to the $file_magic_cmd with a given extended regex.
6215# If you have `file' or equivalent on your system and you're not sure
6216# whether `pass_all' will *always* work, you probably want this one.
6217
6218case $host_os in
6219aix4* | aix5*)
6220  lt_cv_deplibs_check_method=pass_all
6221  ;;
6222
6223beos*)
6224  lt_cv_deplibs_check_method=pass_all
6225  ;;
6226
6227bsdi[45]*)
6228  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6229  lt_cv_file_magic_cmd='/usr/bin/file -L'
6230  lt_cv_file_magic_test_file=/shlib/libc.so
6231  ;;
6232
6233cygwin*)
6234  # func_win32_libid is a shell function defined in ltmain.sh
6235  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6236  lt_cv_file_magic_cmd='func_win32_libid'
6237  ;;
6238
6239mingw* | pw32*)
6240  # Base MSYS/MinGW do not provide the 'file' command needed by
6241  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6242  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6243  lt_cv_file_magic_cmd='$OBJDUMP -f'
6244  ;;
6245
6246darwin* | rhapsody*)
6247  lt_cv_deplibs_check_method=pass_all
6248  ;;
6249
6250freebsd* | kfreebsd*-gnu | dragonfly*)
6251  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6252    case $host_cpu in
6253    i*86 )
6254      # Not sure whether the presence of OpenBSD here was a mistake.
6255      # Let's accept both of them until this is cleared up.
6256      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6257      lt_cv_file_magic_cmd=/usr/bin/file
6258      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6259      ;;
6260    esac
6261  else
6262    lt_cv_deplibs_check_method=pass_all
6263  fi
6264  ;;
6265
6266gnu*)
6267  lt_cv_deplibs_check_method=pass_all
6268  ;;
6269
6270hpux10.20* | hpux11*)
6271  lt_cv_file_magic_cmd=/usr/bin/file
6272  case $host_cpu in
6273  ia64*)
6274    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6275    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6276    ;;
6277  hppa*64*)
6278    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]'
6279    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6280    ;;
6281  *)
6282    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6283    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6284    ;;
6285  esac
6286  ;;
6287
6288interix3*)
6289  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6290  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6291  ;;
6292
6293irix5* | irix6* | nonstopux*)
6294  case $LD in
6295  *-32|*"-32 ") libmagic=32-bit;;
6296  *-n32|*"-n32 ") libmagic=N32;;
6297  *-64|*"-64 ") libmagic=64-bit;;
6298  *) libmagic=never-match;;
6299  esac
6300  lt_cv_deplibs_check_method=pass_all
6301  ;;
6302
6303# This must be Linux ELF.
6304linux*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308netbsd*)
6309  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6310    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6311  else
6312    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6313  fi
6314  ;;
6315
6316newos6*)
6317  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6318  lt_cv_file_magic_cmd=/usr/bin/file
6319  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6320  ;;
6321
6322nto-qnx*)
6323  lt_cv_deplibs_check_method=unknown
6324  ;;
6325
6326openbsd*)
6327  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6328    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6329  else
6330    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6331  fi
6332  ;;
6333
6334osf3* | osf4* | osf5*)
6335  lt_cv_deplibs_check_method=pass_all
6336  ;;
6337
6338solaris*)
6339  lt_cv_deplibs_check_method=pass_all
6340  ;;
6341
6342sysv4 | sysv4.3*)
6343  case $host_vendor in
6344  motorola)
6345    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]'
6346    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6347    ;;
6348  ncr)
6349    lt_cv_deplibs_check_method=pass_all
6350    ;;
6351  sequent)
6352    lt_cv_file_magic_cmd='/bin/file'
6353    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6354    ;;
6355  sni)
6356    lt_cv_file_magic_cmd='/bin/file'
6357    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6358    lt_cv_file_magic_test_file=/lib/libc.so
6359    ;;
6360  siemens)
6361    lt_cv_deplibs_check_method=pass_all
6362    ;;
6363  pc)
6364    lt_cv_deplibs_check_method=pass_all
6365    ;;
6366  esac
6367  ;;
6368
6369sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6370  lt_cv_deplibs_check_method=pass_all
6371  ;;
6372esac
6373
6374fi
6375echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6376echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6377file_magic_cmd=$lt_cv_file_magic_cmd
6378deplibs_check_method=$lt_cv_deplibs_check_method
6379test -z "$deplibs_check_method" && deplibs_check_method=unknown
6380
6381
6382
6383
6384# If no C compiler was specified, use CC.
6385LTCC=${LTCC-"$CC"}
6386
6387# If no C compiler flags were specified, use CFLAGS.
6388LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6389
6390# Allow CC to be a program name with arguments.
6391compiler=$CC
6392
6393# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6394if test "${enable_libtool_lock+set}" = set; then
6395  enableval="$enable_libtool_lock"
6396
6397fi;
6398test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6399
6400# Some flags need to be propagated to the compiler or linker for good
6401# libtool support.
6402case $host in
6403ia64-*-hpux*)
6404  # Find out which ABI we are using.
6405  echo 'int i;' > conftest.$ac_ext
6406  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407  (eval $ac_compile) 2>&5
6408  ac_status=$?
6409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410  (exit $ac_status); }; then
6411    case `/usr/bin/file conftest.$ac_objext` in
6412    *ELF-32*)
6413      HPUX_IA64_MODE="32"
6414      ;;
6415    *ELF-64*)
6416      HPUX_IA64_MODE="64"
6417      ;;
6418    esac
6419  fi
6420  rm -rf conftest*
6421  ;;
6422*-*-irix6*)
6423  # Find out which ABI we are using.
6424  echo '#line 6424 "configure"' > conftest.$ac_ext
6425  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6426  (eval $ac_compile) 2>&5
6427  ac_status=$?
6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429  (exit $ac_status); }; then
6430   if test "$lt_cv_prog_gnu_ld" = yes; then
6431    case `/usr/bin/file conftest.$ac_objext` in
6432    *32-bit*)
6433      LD="${LD-ld} -melf32bsmip"
6434      ;;
6435    *N32*)
6436      LD="${LD-ld} -melf32bmipn32"
6437      ;;
6438    *64-bit*)
6439      LD="${LD-ld} -melf64bmip"
6440      ;;
6441    esac
6442   else
6443    case `/usr/bin/file conftest.$ac_objext` in
6444    *32-bit*)
6445      LD="${LD-ld} -32"
6446      ;;
6447    *N32*)
6448      LD="${LD-ld} -n32"
6449      ;;
6450    *64-bit*)
6451      LD="${LD-ld} -64"
6452      ;;
6453    esac
6454   fi
6455  fi
6456  rm -rf conftest*
6457  ;;
6458
6459x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6460  # Find out which ABI we are using.
6461  echo 'int i;' > conftest.$ac_ext
6462  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463  (eval $ac_compile) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); }; then
6467    case `/usr/bin/file conftest.o` in
6468    *32-bit*)
6469      case $host in
6470        x86_64-*linux*)
6471          LD="${LD-ld} -m elf_i386"
6472          ;;
6473        ppc64-*linux*|powerpc64-*linux*)
6474          LD="${LD-ld} -m elf32ppclinux"
6475          ;;
6476        s390x-*linux*)
6477          LD="${LD-ld} -m elf_s390"
6478          ;;
6479        sparc64-*linux*)
6480          LD="${LD-ld} -m elf32_sparc"
6481          ;;
6482      esac
6483      ;;
6484    *64-bit*)
6485      case $host in
6486        x86_64-*linux*)
6487          LD="${LD-ld} -m elf_x86_64"
6488          ;;
6489        ppc*-*linux*|powerpc*-*linux*)
6490          LD="${LD-ld} -m elf64ppc"
6491          ;;
6492        s390*-*linux*)
6493          LD="${LD-ld} -m elf64_s390"
6494          ;;
6495        sparc*-*linux*)
6496          LD="${LD-ld} -m elf64_sparc"
6497          ;;
6498      esac
6499      ;;
6500    esac
6501  fi
6502  rm -rf conftest*
6503  ;;
6504
6505*-*-sco3.2v5*)
6506  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6507  SAVE_CFLAGS="$CFLAGS"
6508  CFLAGS="$CFLAGS -belf"
6509  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6510echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6511if test "${lt_cv_cc_needs_belf+set}" = set; then
6512  echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514  ac_ext=c
6515ac_cpp='$CPP $CPPFLAGS'
6516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6518ac_compiler_gnu=$ac_cv_c_compiler_gnu
6519
6520     cat >conftest.$ac_ext <<_ACEOF
6521/* confdefs.h.  */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h.  */
6526
6527int
6528main ()
6529{
6530
6531  ;
6532  return 0;
6533}
6534_ACEOF
6535rm -f conftest.$ac_objext conftest$ac_exeext
6536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6537  (eval $ac_link) 2>conftest.er1
6538  ac_status=$?
6539  grep -v '^ *+' conftest.er1 >conftest.err
6540  rm -f conftest.er1
6541  cat conftest.err >&5
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); } &&
6544         { ac_try='test -z "$ac_c_werror_flag"
6545                         || test ! -s conftest.err'
6546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547  (eval $ac_try) 2>&5
6548  ac_status=$?
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); }; } &&
6551         { ac_try='test -s conftest$ac_exeext'
6552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553  (eval $ac_try) 2>&5
6554  ac_status=$?
6555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556  (exit $ac_status); }; }; then
6557  lt_cv_cc_needs_belf=yes
6558else
6559  echo "$as_me: failed program was:" >&5
6560sed 's/^/| /' conftest.$ac_ext >&5
6561
6562lt_cv_cc_needs_belf=no
6563fi
6564rm -f conftest.err conftest.$ac_objext \
6565      conftest$ac_exeext conftest.$ac_ext
6566     ac_ext=c
6567ac_cpp='$CPP $CPPFLAGS'
6568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6570ac_compiler_gnu=$ac_cv_c_compiler_gnu
6571
6572fi
6573echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6574echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6575  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6576    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6577    CFLAGS="$SAVE_CFLAGS"
6578  fi
6579  ;;
6580sparc*-*solaris*)
6581  # Find out which ABI we are using.
6582  echo 'int i;' > conftest.$ac_ext
6583  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584  (eval $ac_compile) 2>&5
6585  ac_status=$?
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); }; then
6588    case `/usr/bin/file conftest.o` in
6589    *64-bit*)
6590      case $lt_cv_prog_gnu_ld in
6591      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6592      *)    LD="${LD-ld} -64" ;;
6593      esac
6594      ;;
6595    esac
6596  fi
6597  rm -rf conftest*
6598  ;;
6599
6600
6601esac
6602
6603need_locks="$enable_libtool_lock"
6604
6605
6606ac_ext=c
6607ac_cpp='$CPP $CPPFLAGS'
6608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6612echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6613# On Suns, sometimes $CPP names a directory.
6614if test -n "$CPP" && test -d "$CPP"; then
6615  CPP=
6616fi
6617if test -z "$CPP"; then
6618  if test "${ac_cv_prog_CPP+set}" = set; then
6619  echo $ECHO_N "(cached) $ECHO_C" >&6
6620else
6621      # Double quotes because CPP needs to be expanded
6622    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6623    do
6624      ac_preproc_ok=false
6625for ac_c_preproc_warn_flag in '' yes
6626do
6627  # Use a header file that comes with gcc, so configuring glibc
6628  # with a fresh cross-compiler works.
6629  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630  # <limits.h> exists even on freestanding compilers.
6631  # On the NeXT, cc -E runs the code through the compiler's parser,
6632  # not just through cpp. "Syntax error" is here to catch this case.
6633  cat >conftest.$ac_ext <<_ACEOF
6634/* confdefs.h.  */
6635_ACEOF
6636cat confdefs.h >>conftest.$ac_ext
6637cat >>conftest.$ac_ext <<_ACEOF
6638/* end confdefs.h.  */
6639#ifdef __STDC__
6640# include <limits.h>
6641#else
6642# include <assert.h>
6643#endif
6644                     Syntax error
6645_ACEOF
6646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6647  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6648  ac_status=$?
6649  grep -v '^ *+' conftest.er1 >conftest.err
6650  rm -f conftest.er1
6651  cat conftest.err >&5
6652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653  (exit $ac_status); } >/dev/null; then
6654  if test -s conftest.err; then
6655    ac_cpp_err=$ac_c_preproc_warn_flag
6656    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6657  else
6658    ac_cpp_err=
6659  fi
6660else
6661  ac_cpp_err=yes
6662fi
6663if test -z "$ac_cpp_err"; then
6664  :
6665else
6666  echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669  # Broken: fails on valid input.
6670continue
6671fi
6672rm -f conftest.err conftest.$ac_ext
6673
6674  # OK, works on sane cases.  Now check whether non-existent headers
6675  # can be detected and how.
6676  cat >conftest.$ac_ext <<_ACEOF
6677/* confdefs.h.  */
6678_ACEOF
6679cat confdefs.h >>conftest.$ac_ext
6680cat >>conftest.$ac_ext <<_ACEOF
6681/* end confdefs.h.  */
6682#include <ac_nonexistent.h>
6683_ACEOF
6684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6685  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6686  ac_status=$?
6687  grep -v '^ *+' conftest.er1 >conftest.err
6688  rm -f conftest.er1
6689  cat conftest.err >&5
6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); } >/dev/null; then
6692  if test -s conftest.err; then
6693    ac_cpp_err=$ac_c_preproc_warn_flag
6694    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6695  else
6696    ac_cpp_err=
6697  fi
6698else
6699  ac_cpp_err=yes
6700fi
6701if test -z "$ac_cpp_err"; then
6702  # Broken: success on invalid input.
6703continue
6704else
6705  echo "$as_me: failed program was:" >&5
6706sed 's/^/| /' conftest.$ac_ext >&5
6707
6708  # Passes both tests.
6709ac_preproc_ok=:
6710break
6711fi
6712rm -f conftest.err conftest.$ac_ext
6713
6714done
6715# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6716rm -f conftest.err conftest.$ac_ext
6717if $ac_preproc_ok; then
6718  break
6719fi
6720
6721    done
6722    ac_cv_prog_CPP=$CPP
6723
6724fi
6725  CPP=$ac_cv_prog_CPP
6726else
6727  ac_cv_prog_CPP=$CPP
6728fi
6729echo "$as_me:$LINENO: result: $CPP" >&5
6730echo "${ECHO_T}$CPP" >&6
6731ac_preproc_ok=false
6732for ac_c_preproc_warn_flag in '' yes
6733do
6734  # Use a header file that comes with gcc, so configuring glibc
6735  # with a fresh cross-compiler works.
6736  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6737  # <limits.h> exists even on freestanding compilers.
6738  # On the NeXT, cc -E runs the code through the compiler's parser,
6739  # not just through cpp. "Syntax error" is here to catch this case.
6740  cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h.  */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h.  */
6746#ifdef __STDC__
6747# include <limits.h>
6748#else
6749# include <assert.h>
6750#endif
6751                     Syntax error
6752_ACEOF
6753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6754  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6755  ac_status=$?
6756  grep -v '^ *+' conftest.er1 >conftest.err
6757  rm -f conftest.er1
6758  cat conftest.err >&5
6759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760  (exit $ac_status); } >/dev/null; then
6761  if test -s conftest.err; then
6762    ac_cpp_err=$ac_c_preproc_warn_flag
6763    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6764  else
6765    ac_cpp_err=
6766  fi
6767else
6768  ac_cpp_err=yes
6769fi
6770if test -z "$ac_cpp_err"; then
6771  :
6772else
6773  echo "$as_me: failed program was:" >&5
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
6776  # Broken: fails on valid input.
6777continue
6778fi
6779rm -f conftest.err conftest.$ac_ext
6780
6781  # OK, works on sane cases.  Now check whether non-existent headers
6782  # can be detected and how.
6783  cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h.  */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h.  */
6789#include <ac_nonexistent.h>
6790_ACEOF
6791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6792  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6793  ac_status=$?
6794  grep -v '^ *+' conftest.er1 >conftest.err
6795  rm -f conftest.er1
6796  cat conftest.err >&5
6797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798  (exit $ac_status); } >/dev/null; then
6799  if test -s conftest.err; then
6800    ac_cpp_err=$ac_c_preproc_warn_flag
6801    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6802  else
6803    ac_cpp_err=
6804  fi
6805else
6806  ac_cpp_err=yes
6807fi
6808if test -z "$ac_cpp_err"; then
6809  # Broken: success on invalid input.
6810continue
6811else
6812  echo "$as_me: failed program was:" >&5
6813sed 's/^/| /' conftest.$ac_ext >&5
6814
6815  # Passes both tests.
6816ac_preproc_ok=:
6817break
6818fi
6819rm -f conftest.err conftest.$ac_ext
6820
6821done
6822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6823rm -f conftest.err conftest.$ac_ext
6824if $ac_preproc_ok; then
6825  :
6826else
6827  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6828See \`config.log' for more details." >&5
6829echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6830See \`config.log' for more details." >&2;}
6831   { (exit 1); exit 1; }; }
6832fi
6833
6834ac_ext=c
6835ac_cpp='$CPP $CPPFLAGS'
6836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838ac_compiler_gnu=$ac_cv_c_compiler_gnu
6839
6840
6841echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6842echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6843if test "${ac_cv_header_stdc+set}" = set; then
6844  echo $ECHO_N "(cached) $ECHO_C" >&6
6845else
6846  cat >conftest.$ac_ext <<_ACEOF
6847/* confdefs.h.  */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h.  */
6852#include <stdlib.h>
6853#include <stdarg.h>
6854#include <string.h>
6855#include <float.h>
6856
6857int
6858main ()
6859{
6860
6861  ;
6862  return 0;
6863}
6864_ACEOF
6865rm -f conftest.$ac_objext
6866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867  (eval $ac_compile) 2>conftest.er1
6868  ac_status=$?
6869  grep -v '^ *+' conftest.er1 >conftest.err
6870  rm -f conftest.er1
6871  cat conftest.err >&5
6872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873  (exit $ac_status); } &&
6874         { ac_try='test -z "$ac_c_werror_flag"
6875                         || test ! -s conftest.err'
6876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877  (eval $ac_try) 2>&5
6878  ac_status=$?
6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880  (exit $ac_status); }; } &&
6881         { ac_try='test -s conftest.$ac_objext'
6882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883  (eval $ac_try) 2>&5
6884  ac_status=$?
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); }; }; then
6887  ac_cv_header_stdc=yes
6888else
6889  echo "$as_me: failed program was:" >&5
6890sed 's/^/| /' conftest.$ac_ext >&5
6891
6892ac_cv_header_stdc=no
6893fi
6894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895
6896if test $ac_cv_header_stdc = yes; then
6897  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6898  cat >conftest.$ac_ext <<_ACEOF
6899/* confdefs.h.  */
6900_ACEOF
6901cat confdefs.h >>conftest.$ac_ext
6902cat >>conftest.$ac_ext <<_ACEOF
6903/* end confdefs.h.  */
6904#include <string.h>
6905
6906_ACEOF
6907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908  $EGREP "memchr" >/dev/null 2>&1; then
6909  :
6910else
6911  ac_cv_header_stdc=no
6912fi
6913rm -f conftest*
6914
6915fi
6916
6917if test $ac_cv_header_stdc = yes; then
6918  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6919  cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h.  */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h.  */
6925#include <stdlib.h>
6926
6927_ACEOF
6928if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6929  $EGREP "free" >/dev/null 2>&1; then
6930  :
6931else
6932  ac_cv_header_stdc=no
6933fi
6934rm -f conftest*
6935
6936fi
6937
6938if test $ac_cv_header_stdc = yes; then
6939  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6940  if test "$cross_compiling" = yes; then
6941  :
6942else
6943  cat >conftest.$ac_ext <<_ACEOF
6944/* confdefs.h.  */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h.  */
6949#include <ctype.h>
6950#if ((' ' & 0x0FF) == 0x020)
6951# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6952# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6953#else
6954# define ISLOWER(c) \
6955                   (('a' <= (c) && (c) <= 'i') \
6956                     || ('j' <= (c) && (c) <= 'r') \
6957                     || ('s' <= (c) && (c) <= 'z'))
6958# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6959#endif
6960
6961#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6962int
6963main ()
6964{
6965  int i;
6966  for (i = 0; i < 256; i++)
6967    if (XOR (islower (i), ISLOWER (i))
6968        || toupper (i) != TOUPPER (i))
6969      exit(2);
6970  exit (0);
6971}
6972_ACEOF
6973rm -f conftest$ac_exeext
6974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6975  (eval $ac_link) 2>&5
6976  ac_status=$?
6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980  (eval $ac_try) 2>&5
6981  ac_status=$?
6982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983  (exit $ac_status); }; }; then
6984  :
6985else
6986  echo "$as_me: program exited with status $ac_status" >&5
6987echo "$as_me: failed program was:" >&5
6988sed 's/^/| /' conftest.$ac_ext >&5
6989
6990( exit $ac_status )
6991ac_cv_header_stdc=no
6992fi
6993rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6994fi
6995fi
6996fi
6997echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6998echo "${ECHO_T}$ac_cv_header_stdc" >&6
6999if test $ac_cv_header_stdc = yes; then
7000
7001cat >>confdefs.h <<\_ACEOF
7002#define STDC_HEADERS 1
7003_ACEOF
7004
7005fi
7006
7007# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7018                  inttypes.h stdint.h unistd.h
7019do
7020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7021echo "$as_me:$LINENO: checking for $ac_header" >&5
7022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7023if eval "test \"\${$as_ac_Header+set}\" = set"; then
7024  echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026  cat >conftest.$ac_ext <<_ACEOF
7027/* confdefs.h.  */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h.  */
7032$ac_includes_default
7033
7034#include <$ac_header>
7035_ACEOF
7036rm -f conftest.$ac_objext
7037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038  (eval $ac_compile) 2>conftest.er1
7039  ac_status=$?
7040  grep -v '^ *+' conftest.er1 >conftest.err
7041  rm -f conftest.er1
7042  cat conftest.err >&5
7043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044  (exit $ac_status); } &&
7045         { ac_try='test -z "$ac_c_werror_flag"
7046                         || test ! -s conftest.err'
7047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048  (eval $ac_try) 2>&5
7049  ac_status=$?
7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051  (exit $ac_status); }; } &&
7052         { ac_try='test -s conftest.$ac_objext'
7053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054  (eval $ac_try) 2>&5
7055  ac_status=$?
7056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057  (exit $ac_status); }; }; then
7058  eval "$as_ac_Header=yes"
7059else
7060  echo "$as_me: failed program was:" >&5
7061sed 's/^/| /' conftest.$ac_ext >&5
7062
7063eval "$as_ac_Header=no"
7064fi
7065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7066fi
7067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7069if test `eval echo '${'$as_ac_Header'}'` = yes; then
7070  cat >>confdefs.h <<_ACEOF
7071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7072_ACEOF
7073
7074fi
7075
7076done
7077
7078
7079
7080for ac_header in dlfcn.h
7081do
7082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7083if eval "test \"\${$as_ac_Header+set}\" = set"; then
7084  echo "$as_me:$LINENO: checking for $ac_header" >&5
7085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7086if eval "test \"\${$as_ac_Header+set}\" = set"; then
7087  echo $ECHO_N "(cached) $ECHO_C" >&6
7088fi
7089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7091else
7092  # Is the header compilable?
7093echo "$as_me:$LINENO: checking $ac_header usability" >&5
7094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7095cat >conftest.$ac_ext <<_ACEOF
7096/* confdefs.h.  */
7097_ACEOF
7098cat confdefs.h >>conftest.$ac_ext
7099cat >>conftest.$ac_ext <<_ACEOF
7100/* end confdefs.h.  */
7101$ac_includes_default
7102#include <$ac_header>
7103_ACEOF
7104rm -f conftest.$ac_objext
7105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7106  (eval $ac_compile) 2>conftest.er1
7107  ac_status=$?
7108  grep -v '^ *+' conftest.er1 >conftest.err
7109  rm -f conftest.er1
7110  cat conftest.err >&5
7111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112  (exit $ac_status); } &&
7113         { ac_try='test -z "$ac_c_werror_flag"
7114                         || test ! -s conftest.err'
7115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7116  (eval $ac_try) 2>&5
7117  ac_status=$?
7118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119  (exit $ac_status); }; } &&
7120         { ac_try='test -s conftest.$ac_objext'
7121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7122  (eval $ac_try) 2>&5
7123  ac_status=$?
7124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125  (exit $ac_status); }; }; then
7126  ac_header_compiler=yes
7127else
7128  echo "$as_me: failed program was:" >&5
7129sed 's/^/| /' conftest.$ac_ext >&5
7130
7131ac_header_compiler=no
7132fi
7133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7135echo "${ECHO_T}$ac_header_compiler" >&6
7136
7137# Is the header present?
7138echo "$as_me:$LINENO: checking $ac_header presence" >&5
7139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7140cat >conftest.$ac_ext <<_ACEOF
7141/* confdefs.h.  */
7142_ACEOF
7143cat confdefs.h >>conftest.$ac_ext
7144cat >>conftest.$ac_ext <<_ACEOF
7145/* end confdefs.h.  */
7146#include <$ac_header>
7147_ACEOF
7148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7149  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7150  ac_status=$?
7151  grep -v '^ *+' conftest.er1 >conftest.err
7152  rm -f conftest.er1
7153  cat conftest.err >&5
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); } >/dev/null; then
7156  if test -s conftest.err; then
7157    ac_cpp_err=$ac_c_preproc_warn_flag
7158    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7159  else
7160    ac_cpp_err=
7161  fi
7162else
7163  ac_cpp_err=yes
7164fi
7165if test -z "$ac_cpp_err"; then
7166  ac_header_preproc=yes
7167else
7168  echo "$as_me: failed program was:" >&5
7169sed 's/^/| /' conftest.$ac_ext >&5
7170
7171  ac_header_preproc=no
7172fi
7173rm -f conftest.err conftest.$ac_ext
7174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7175echo "${ECHO_T}$ac_header_preproc" >&6
7176
7177# So?  What about this header?
7178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7179  yes:no: )
7180    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7182    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7184    ac_header_preproc=yes
7185    ;;
7186  no:yes:* )
7187    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7189    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7190echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7191    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7193    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7194echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7195    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7197    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7199    (
7200      cat <<\_ASBOX
7201## ----------------------------------------- ##
7202## Report this to coin-clp@lists.coin-or.org ##
7203## ----------------------------------------- ##
7204_ASBOX
7205    ) |
7206      sed "s/^/$as_me: WARNING:     /" >&2
7207    ;;
7208esac
7209echo "$as_me:$LINENO: checking for $ac_header" >&5
7210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7211if eval "test \"\${$as_ac_Header+set}\" = set"; then
7212  echo $ECHO_N "(cached) $ECHO_C" >&6
7213else
7214  eval "$as_ac_Header=\$ac_header_preproc"
7215fi
7216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7218
7219fi
7220if test `eval echo '${'$as_ac_Header'}'` = yes; then
7221  cat >>confdefs.h <<_ACEOF
7222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7223_ACEOF
7224
7225fi
7226
7227done
7228
7229
7230
7231if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7232    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7233    (test "X$CXX" != "Xg++"))) ; then
7234  ac_ext=cc
7235ac_cpp='$CXXCPP $CPPFLAGS'
7236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7239echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7240echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7241if test -z "$CXXCPP"; then
7242  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7243  echo $ECHO_N "(cached) $ECHO_C" >&6
7244else
7245      # Double quotes because CXXCPP needs to be expanded
7246    for CXXCPP in "$CXX -E" "/lib/cpp"
7247    do
7248      ac_preproc_ok=false
7249for ac_cxx_preproc_warn_flag in '' yes
7250do
7251  # Use a header file that comes with gcc, so configuring glibc
7252  # with a fresh cross-compiler works.
7253  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7254  # <limits.h> exists even on freestanding compilers.
7255  # On the NeXT, cc -E runs the code through the compiler's parser,
7256  # not just through cpp. "Syntax error" is here to catch this case.
7257  cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h.  */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h.  */
7263#ifdef __STDC__
7264# include <limits.h>
7265#else
7266# include <assert.h>
7267#endif
7268                     Syntax error
7269_ACEOF
7270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7271  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7272  ac_status=$?
7273  grep -v '^ *+' conftest.er1 >conftest.err
7274  rm -f conftest.er1
7275  cat conftest.err >&5
7276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277  (exit $ac_status); } >/dev/null; then
7278  if test -s conftest.err; then
7279    ac_cpp_err=$ac_cxx_preproc_warn_flag
7280    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7281  else
7282    ac_cpp_err=
7283  fi
7284else
7285  ac_cpp_err=yes
7286fi
7287if test -z "$ac_cpp_err"; then
7288  :
7289else
7290  echo "$as_me: failed program was:" >&5
7291sed 's/^/| /' conftest.$ac_ext >&5
7292
7293  # Broken: fails on valid input.
7294continue
7295fi
7296rm -f conftest.err conftest.$ac_ext
7297
7298  # OK, works on sane cases.  Now check whether non-existent headers
7299  # can be detected and how.
7300  cat >conftest.$ac_ext <<_ACEOF
7301/* confdefs.h.  */
7302_ACEOF
7303cat confdefs.h >>conftest.$ac_ext
7304cat >>conftest.$ac_ext <<_ACEOF
7305/* end confdefs.h.  */
7306#include <ac_nonexistent.h>
7307_ACEOF
7308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7309  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7310  ac_status=$?
7311  grep -v '^ *+' conftest.er1 >conftest.err
7312  rm -f conftest.er1
7313  cat conftest.err >&5
7314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315  (exit $ac_status); } >/dev/null; then
7316  if test -s conftest.err; then
7317    ac_cpp_err=$ac_cxx_preproc_warn_flag
7318    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7319  else
7320    ac_cpp_err=
7321  fi
7322else
7323  ac_cpp_err=yes
7324fi
7325if test -z "$ac_cpp_err"; then
7326  # Broken: success on invalid input.
7327continue
7328else
7329  echo "$as_me: failed program was:" >&5
7330sed 's/^/| /' conftest.$ac_ext >&5
7331
7332  # Passes both tests.
7333ac_preproc_ok=:
7334break
7335fi
7336rm -f conftest.err conftest.$ac_ext
7337
7338done
7339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7340rm -f conftest.err conftest.$ac_ext
7341if $ac_preproc_ok; then
7342  break
7343fi
7344
7345    done
7346    ac_cv_prog_CXXCPP=$CXXCPP
7347
7348fi
7349  CXXCPP=$ac_cv_prog_CXXCPP
7350else
7351  ac_cv_prog_CXXCPP=$CXXCPP
7352fi
7353echo "$as_me:$LINENO: result: $CXXCPP" >&5
7354echo "${ECHO_T}$CXXCPP" >&6
7355ac_preproc_ok=false
7356for ac_cxx_preproc_warn_flag in '' yes
7357do
7358  # Use a header file that comes with gcc, so configuring glibc
7359  # with a fresh cross-compiler works.
7360  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7361  # <limits.h> exists even on freestanding compilers.
7362  # On the NeXT, cc -E runs the code through the compiler's parser,
7363  # not just through cpp. "Syntax error" is here to catch this case.
7364  cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h.  */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h.  */
7370#ifdef __STDC__
7371# include <limits.h>
7372#else
7373# include <assert.h>
7374#endif
7375                     Syntax error
7376_ACEOF
7377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7378  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7379  ac_status=$?
7380  grep -v '^ *+' conftest.er1 >conftest.err
7381  rm -f conftest.er1
7382  cat conftest.err >&5
7383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384  (exit $ac_status); } >/dev/null; then
7385  if test -s conftest.err; then
7386    ac_cpp_err=$ac_cxx_preproc_warn_flag
7387    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7388  else
7389    ac_cpp_err=
7390  fi
7391else
7392  ac_cpp_err=yes
7393fi
7394if test -z "$ac_cpp_err"; then
7395  :
7396else
7397  echo "$as_me: failed program was:" >&5
7398sed 's/^/| /' conftest.$ac_ext >&5
7399
7400  # Broken: fails on valid input.
7401continue
7402fi
7403rm -f conftest.err conftest.$ac_ext
7404
7405  # OK, works on sane cases.  Now check whether non-existent headers
7406  # can be detected and how.
7407  cat >conftest.$ac_ext <<_ACEOF
7408/* confdefs.h.  */
7409_ACEOF
7410cat confdefs.h >>conftest.$ac_ext
7411cat >>conftest.$ac_ext <<_ACEOF
7412/* end confdefs.h.  */
7413#include <ac_nonexistent.h>
7414_ACEOF
7415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7416  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7417  ac_status=$?
7418  grep -v '^ *+' conftest.er1 >conftest.err
7419  rm -f conftest.er1
7420  cat conftest.err >&5
7421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); } >/dev/null; then
7423  if test -s conftest.err; then
7424    ac_cpp_err=$ac_cxx_preproc_warn_flag
7425    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7426  else
7427    ac_cpp_err=
7428  fi
7429else
7430  ac_cpp_err=yes
7431fi
7432if test -z "$ac_cpp_err"; then
7433  # Broken: success on invalid input.
7434continue
7435else
7436  echo "$as_me: failed program was:" >&5
7437sed 's/^/| /' conftest.$ac_ext >&5
7438
7439  # Passes both tests.
7440ac_preproc_ok=:
7441break
7442fi
7443rm -f conftest.err conftest.$ac_ext
7444
7445done
7446# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7447rm -f conftest.err conftest.$ac_ext
7448if $ac_preproc_ok; then
7449  :
7450else
7451  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7452See \`config.log' for more details." >&5
7453echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7454See \`config.log' for more details." >&2;}
7455   { (exit 1); exit 1; }; }
7456fi
7457
7458ac_ext=cc
7459ac_cpp='$CXXCPP $CPPFLAGS'
7460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7463
7464fi
7465
7466
7467# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7468
7469# find the maximum length of command line arguments
7470echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7471echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7472if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7473  echo $ECHO_N "(cached) $ECHO_C" >&6
7474else
7475    i=0
7476  teststring="ABCD"
7477
7478  case $build_os in
7479  msdosdjgpp*)
7480    # On DJGPP, this test can blow up pretty badly due to problems in libc
7481    # (any single argument exceeding 2000 bytes causes a buffer overrun
7482    # during glob expansion).  Even if it were fixed, the result of this
7483    # check would be larger than it should be.
7484    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7485    ;;
7486
7487  gnu*)
7488    # Under GNU Hurd, this test is not required because there is
7489    # no limit to the length of command line arguments.
7490    # Libtool will interpret -1 as no limit whatsoever
7491    lt_cv_sys_max_cmd_len=-1;
7492    ;;
7493
7494  cygwin* | mingw*)
7495    # On Win9x/ME, this test blows up -- it succeeds, but takes
7496    # about 5 minutes as the teststring grows exponentially.
7497    # Worse, since 9x/ME are not pre-emptively multitasking,
7498    # you end up with a "frozen" computer, even though with patience
7499    # the test eventually succeeds (with a max line length of 256k).
7500    # Instead, let's just punt: use the minimum linelength reported by
7501    # all of the supported platforms: 8192 (on NT/2K/XP).
7502    lt_cv_sys_max_cmd_len=8192;
7503    ;;
7504
7505  amigaos*)
7506    # On AmigaOS with pdksh, this test takes hours, literally.
7507    # So we just punt and use a minimum line length of 8192.
7508    lt_cv_sys_max_cmd_len=8192;
7509    ;;
7510
7511  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7512    # This has been around since 386BSD, at least.  Likely further.
7513    if test -x /sbin/sysctl; then
7514      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7515    elif test -x /usr/sbin/sysctl; then
7516      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7517    else
7518      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7519    fi
7520    # And add a safety zone
7521    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7522    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7523    ;;
7524
7525  interix*)
7526    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7527    lt_cv_sys_max_cmd_len=196608
7528    ;;
7529
7530  osf*)
7531    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7532    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7533    # nice to cause kernel panics so lets avoid the loop below.
7534    # First set a reasonable default.
7535    lt_cv_sys_max_cmd_len=16384
7536    #
7537    if test -x /sbin/sysconfig; then
7538      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7539        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7540      esac
7541    fi
7542    ;;
7543  sco3.2v5*)
7544    lt_cv_sys_max_cmd_len=102400
7545    ;;
7546  sysv5* | sco5v6* | sysv4.2uw2*)
7547    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7548    if test -n "$kargmax"; then
7549      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7550    else
7551      lt_cv_sys_max_cmd_len=32768
7552    fi
7553    ;;
7554  *)
7555    # If test is not a shell built-in, we'll probably end up computing a
7556    # maximum length that is only half of the actual maximum length, but
7557    # we can't tell.
7558    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7559    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7560               = "XX$teststring") >/dev/null 2>&1 &&
7561            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7562            lt_cv_sys_max_cmd_len=$new_result &&
7563            test $i != 17 # 1/2 MB should be enough
7564    do
7565      i=`expr $i + 1`
7566      teststring=$teststring$teststring
7567    done
7568    teststring=
7569    # Add a significant safety factor because C++ compilers can tack on massive
7570    # amounts of additional arguments before passing them to the linker.
7571    # It appears as though 1/2 is a usable value.
7572    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7573    ;;
7574  esac
7575
7576fi
7577
7578if test -n $lt_cv_sys_max_cmd_len ; then
7579  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7580echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7581else
7582  echo "$as_me:$LINENO: result: none" >&5
7583echo "${ECHO_T}none" >&6
7584fi
7585
7586
7587
7588
7589# Check for command to grab the raw symbol name followed by C symbol from nm.
7590echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7591echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7592if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7593  echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595
7596# These are sane defaults that work on at least a few old systems.
7597# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7598
7599# Character class describing NM global symbol codes.
7600symcode='[BCDEGRST]'
7601
7602# Regexp to match symbols that can be accessed directly from C.
7603sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7604
7605# Transform an extracted symbol line into a proper C declaration
7606lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7607
7608# Transform an extracted symbol line into symbol name and symbol address
7609lt_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'"
7610
7611# Define system-specific variables.
7612case $host_os in
7613aix*)
7614  symcode='[BCDT]'
7615  ;;
7616cygwin* | mingw* | pw32*)
7617  symcode='[ABCDGISTW]'
7618  ;;
7619hpux*) # Its linker distinguishes data from code symbols
7620  if test "$host_cpu" = ia64; then
7621    symcode='[ABCDEGRST]'
7622  fi
7623  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7624  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'"
7625  ;;
7626linux*)
7627  if test "$host_cpu" = ia64; then
7628    symcode='[ABCDGIRSTW]'
7629    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7630    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'"
7631  fi
7632  ;;
7633irix* | nonstopux*)
7634  symcode='[BCDEGRST]'
7635  ;;
7636osf*)
7637  symcode='[BCDEGQRST]'
7638  ;;
7639solaris*)
7640  symcode='[BDRT]'
7641  ;;
7642sco3.2v5*)
7643  symcode='[DT]'
7644  ;;
7645sysv4.2uw2*)
7646  symcode='[DT]'
7647  ;;
7648sysv5* | sco5v6* | unixware* | OpenUNIX*)
7649  symcode='[ABDT]'
7650  ;;
7651sysv4)
7652  symcode='[DFNSTU]'
7653  ;;
7654esac
7655
7656# Handle CRLF in mingw tool chain
7657opt_cr=
7658case $build_os in
7659mingw*)
7660  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7661  ;;
7662esac
7663
7664# If we're using GNU nm, then use its standard symbol codes.
7665case `$NM -V 2>&1` in
7666*GNU* | *'with BFD'*)
7667  symcode='[ABCDGIRSTW]' ;;
7668esac
7669
7670# Try without a prefix undercore, then with it.
7671for ac_symprfx in "" "_"; do
7672
7673  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7674  symxfrm="\\1 $ac_symprfx\\2 \\2"
7675
7676  # Write the raw and C identifiers.
7677  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7678
7679  # Check to see that the pipe works correctly.
7680  pipe_works=no
7681
7682  rm -f conftest*
7683  cat > conftest.$ac_ext <<EOF
7684#ifdef __cplusplus
7685extern "C" {
7686#endif
7687char nm_test_var;
7688void nm_test_func(){}
7689#ifdef __cplusplus
7690}
7691#endif
7692int main(){nm_test_var='a';nm_test_func();return(0);}
7693EOF
7694
7695  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7696  (eval $ac_compile) 2>&5
7697  ac_status=$?
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); }; then
7700    # Now try to grab the symbols.
7701    nlist=conftest.nm
7702    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7703  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); } && test -s "$nlist"; then
7707      # Try sorting and uniquifying the output.
7708      if sort "$nlist" | uniq > "$nlist"T; then
7709        mv -f "$nlist"T "$nlist"
7710      else
7711        rm -f "$nlist"T
7712      fi
7713
7714      # Make sure that we snagged all the symbols we need.
7715      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7716        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7717          cat <<EOF > conftest.$ac_ext
7718#ifdef __cplusplus
7719extern "C" {
7720#endif
7721
7722EOF
7723          # Now generate the symbol file.
7724          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7725
7726          cat <<EOF >> conftest.$ac_ext
7727#if defined (__STDC__) && __STDC__
7728# define lt_ptr_t void *
7729#else
7730# define lt_ptr_t char *
7731# define const
7732#endif
7733
7734/* The mapping between symbol names and symbols. */
7735const struct {
7736  const char *name;
7737  lt_ptr_t address;
7738}
7739lt_preloaded_symbols[] =
7740{
7741EOF
7742          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7743          cat <<\EOF >> conftest.$ac_ext
7744  {0, (lt_ptr_t) 0}
7745};
7746
7747#ifdef __cplusplus
7748}
7749#endif
7750EOF
7751          # Now try linking the two files.
7752          mv conftest.$ac_objext conftstm.$ac_objext
7753          lt_save_LIBS="$LIBS"
7754          lt_save_CFLAGS="$CFLAGS"
7755          LIBS="conftstm.$ac_objext"
7756          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7757          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758  (eval $ac_link) 2>&5
7759  ac_status=$?
7760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7762            pipe_works=yes
7763          fi
7764          LIBS="$lt_save_LIBS"
7765          CFLAGS="$lt_save_CFLAGS"
7766        else
7767          echo "cannot find nm_test_func in $nlist" >&5
7768        fi
7769      else
7770        echo "cannot find nm_test_var in $nlist" >&5
7771      fi
7772    else
7773      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7774    fi
7775  else
7776    echo "$progname: failed program was:" >&5
7777    cat conftest.$ac_ext >&5
7778  fi
7779  rm -f conftest* conftst*
7780
7781  # Do not use the global_symbol_pipe unless it works.
7782  if test "$pipe_works" = yes; then
7783    break
7784  else
7785    lt_cv_sys_global_symbol_pipe=
7786  fi
7787done
7788
7789fi
7790
7791if test -z "$lt_cv_sys_global_symbol_pipe"; then
7792  lt_cv_sys_global_symbol_to_cdecl=
7793fi
7794if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7795  echo "$as_me:$LINENO: result: failed" >&5
7796echo "${ECHO_T}failed" >&6
7797else
7798  echo "$as_me:$LINENO: result: ok" >&5
7799echo "${ECHO_T}ok" >&6
7800fi
7801
7802echo "$as_me:$LINENO: checking for objdir" >&5
7803echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7804if test "${lt_cv_objdir+set}" = set; then
7805  echo $ECHO_N "(cached) $ECHO_C" >&6
7806else
7807  rm -f .libs 2>/dev/null
7808mkdir .libs 2>/dev/null
7809if test -d .libs; then
7810  lt_cv_objdir=.libs
7811else
7812  # MS-DOS does not allow filenames that begin with a dot.
7813  lt_cv_objdir=_libs
7814fi
7815rmdir .libs 2>/dev/null
7816fi
7817echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7818echo "${ECHO_T}$lt_cv_objdir" >&6
7819objdir=$lt_cv_objdir
7820
7821
7822
7823
7824
7825case $host_os in
7826aix3*)
7827  # AIX sometimes has problems with the GCC collect2 program.  For some
7828  # reason, if we set the COLLECT_NAMES environment variable, the problems
7829  # vanish in a puff of smoke.
7830  if test "X${COLLECT_NAMES+set}" != Xset; then
7831    COLLECT_NAMES=
7832    export COLLECT_NAMES
7833  fi
7834  ;;
7835esac
7836
7837# Sed substitution that helps us do robust quoting.  It backslashifies
7838# metacharacters that are still active within double-quoted strings.
7839Xsed='sed -e 1s/^X//'
7840sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7841
7842# Same as above, but do not quote variable references.
7843double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7844
7845# Sed substitution to delay expansion of an escaped shell variable in a
7846# double_quote_subst'ed string.
7847delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7848
7849# Sed substitution to avoid accidental globbing in evaled expressions
7850no_glob_subst='s/\*/\\\*/g'
7851
7852# Constants:
7853rm="rm -f"
7854
7855# Global variables:
7856default_ofile=libtool
7857can_build_shared=yes
7858
7859# All known linkers require a `.a' archive for static linking (except MSVC,
7860# which needs '.lib').
7861libext=a
7862ltmain="$ac_aux_dir/ltmain.sh"
7863ofile="$default_ofile"
7864with_gnu_ld="$lt_cv_prog_gnu_ld"
7865
7866if test -n "$ac_tool_prefix"; then
7867  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7868set dummy ${ac_tool_prefix}ar; ac_word=$2
7869echo "$as_me:$LINENO: checking for $ac_word" >&5
7870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7871if test "${ac_cv_prog_AR+set}" = set; then
7872  echo $ECHO_N "(cached) $ECHO_C" >&6
7873else
7874  if test -n "$AR"; then
7875  ac_cv_prog_AR="$AR" # Let the user override the test.
7876else
7877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878for as_dir in $PATH
7879do
7880  IFS=$as_save_IFS
7881  test -z "$as_dir" && as_dir=.
7882  for ac_exec_ext in '' $ac_executable_extensions; do
7883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7884    ac_cv_prog_AR="${ac_tool_prefix}ar"
7885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7886    break 2
7887  fi
7888done
7889done
7890
7891fi
7892fi
7893AR=$ac_cv_prog_AR
7894if test -n "$AR"; then
7895  echo "$as_me:$LINENO: result: $AR" >&5
7896echo "${ECHO_T}$AR" >&6
7897else
7898  echo "$as_me:$LINENO: result: no" >&5
7899echo "${ECHO_T}no" >&6
7900fi
7901
7902fi
7903if test -z "$ac_cv_prog_AR"; then
7904  ac_ct_AR=$AR
7905  # Extract the first word of "ar", so it can be a program name with args.
7906set dummy ar; ac_word=$2
7907echo "$as_me:$LINENO: checking for $ac_word" >&5
7908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7909if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7910  echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912  if test -n "$ac_ct_AR"; then
7913  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7914else
7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918  IFS=$as_save_IFS
7919  test -z "$as_dir" && as_dir=.
7920  for ac_exec_ext in '' $ac_executable_extensions; do
7921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7922    ac_cv_prog_ac_ct_AR="ar"
7923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924    break 2
7925  fi
7926done
7927done
7928
7929  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7930fi
7931fi
7932ac_ct_AR=$ac_cv_prog_ac_ct_AR
7933if test -n "$ac_ct_AR"; then
7934  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7935echo "${ECHO_T}$ac_ct_AR" >&6
7936else
7937  echo "$as_me:$LINENO: result: no" >&5
7938echo "${ECHO_T}no" >&6
7939fi
7940
7941  AR=$ac_ct_AR
7942else
7943  AR="$ac_cv_prog_AR"
7944fi
7945
7946if test -n "$ac_tool_prefix"; then
7947  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7948set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7949echo "$as_me:$LINENO: checking for $ac_word" >&5
7950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7951if test "${ac_cv_prog_RANLIB+set}" = set; then
7952  echo $ECHO_N "(cached) $ECHO_C" >&6
7953else
7954  if test -n "$RANLIB"; then
7955  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7956else
7957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958for as_dir in $PATH
7959do
7960  IFS=$as_save_IFS
7961  test -z "$as_dir" && as_dir=.
7962  for ac_exec_ext in '' $ac_executable_extensions; do
7963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7964    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966    break 2
7967  fi
7968done
7969done
7970
7971fi
7972fi
7973RANLIB=$ac_cv_prog_RANLIB
7974if test -n "$RANLIB"; then
7975  echo "$as_me:$LINENO: result: $RANLIB" >&5
7976echo "${ECHO_T}$RANLIB" >&6
7977else
7978  echo "$as_me:$LINENO: result: no" >&5
7979echo "${ECHO_T}no" >&6
7980fi
7981
7982fi
7983if test -z "$ac_cv_prog_RANLIB"; then
7984  ac_ct_RANLIB=$RANLIB
7985  # Extract the first word of "ranlib", so it can be a program name with args.
7986set dummy ranlib; ac_word=$2
7987echo "$as_me:$LINENO: checking for $ac_word" >&5
7988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7989if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7990  echo $ECHO_N "(cached) $ECHO_C" >&6
7991else
7992  if test -n "$ac_ct_RANLIB"; then
7993  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7994else
7995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996for as_dir in $PATH
7997do
7998  IFS=$as_save_IFS
7999  test -z "$as_dir" && as_dir=.
8000  for ac_exec_ext in '' $ac_executable_extensions; do
8001  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002    ac_cv_prog_ac_ct_RANLIB="ranlib"
8003    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004    break 2
8005  fi
8006done
8007done
8008
8009  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8010fi
8011fi
8012ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8013if test -n "$ac_ct_RANLIB"; then
8014  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8015echo "${ECHO_T}$ac_ct_RANLIB" >&6
8016else
8017  echo "$as_me:$LINENO: result: no" >&5
8018echo "${ECHO_T}no" >&6
8019fi
8020
8021  RANLIB=$ac_ct_RANLIB
8022else
8023  RANLIB="$ac_cv_prog_RANLIB"
8024fi
8025
8026if test -n "$ac_tool_prefix"; then
8027  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8028set dummy ${ac_tool_prefix}strip; ac_word=$2
8029echo "$as_me:$LINENO: checking for $ac_word" >&5
8030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8031if test "${ac_cv_prog_STRIP+set}" = set; then
8032  echo $ECHO_N "(cached) $ECHO_C" >&6
8033else
8034  if test -n "$STRIP"; then
8035  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8036else
8037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038for as_dir in $PATH
8039do
8040  IFS=$as_save_IFS
8041  test -z "$as_dir" && as_dir=.
8042  for ac_exec_ext in '' $ac_executable_extensions; do
8043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8044    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8046    break 2
8047  fi
8048done
8049done
8050
8051fi
8052fi
8053STRIP=$ac_cv_prog_STRIP
8054if test -n "$STRIP"; then
8055  echo "$as_me:$LINENO: result: $STRIP" >&5
8056echo "${ECHO_T}$STRIP" >&6
8057else
8058  echo "$as_me:$LINENO: result: no" >&5
8059echo "${ECHO_T}no" >&6
8060fi
8061
8062fi
8063if test -z "$ac_cv_prog_STRIP"; then
8064  ac_ct_STRIP=$STRIP
8065  # Extract the first word of "strip", so it can be a program name with args.
8066set dummy strip; ac_word=$2
8067echo "$as_me:$LINENO: checking for $ac_word" >&5
8068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8069if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8070  echo $ECHO_N "(cached) $ECHO_C" >&6
8071else
8072  if test -n "$ac_ct_STRIP"; then
8073  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8074else
8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078  IFS=$as_save_IFS
8079  test -z "$as_dir" && as_dir=.
8080  for ac_exec_ext in '' $ac_executable_extensions; do
8081  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082    ac_cv_prog_ac_ct_STRIP="strip"
8083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084    break 2
8085  fi
8086done
8087done
8088
8089  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8090fi
8091fi
8092ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8093if test -n "$ac_ct_STRIP"; then
8094  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8095echo "${ECHO_T}$ac_ct_STRIP" >&6
8096else
8097  echo "$as_me:$LINENO: result: no" >&5
8098echo "${ECHO_T}no" >&6
8099fi
8100
8101  STRIP=$ac_ct_STRIP
8102else
8103  STRIP="$ac_cv_prog_STRIP"
8104fi
8105
8106
8107old_CC="$CC"
8108old_CFLAGS="$CFLAGS"
8109
8110# Set sane defaults for various variables
8111test -z "$AR" && AR=ar
8112test -z "$AR_FLAGS" && AR_FLAGS=cru
8113test -z "$AS" && AS=as
8114test -z "$CC" && CC=cc
8115test -z "$LTCC" && LTCC=$CC
8116test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8117test -z "$DLLTOOL" && DLLTOOL=dlltool
8118test -z "$LD" && LD=ld
8119test -z "$LN_S" && LN_S="ln -s"
8120test -z "$MAGIC_CMD" && MAGIC_CMD=file
8121test -z "$NM" && NM=nm
8122test -z "$SED" && SED=sed
8123test -z "$OBJDUMP" && OBJDUMP=objdump
8124test -z "$RANLIB" && RANLIB=:
8125test -z "$STRIP" && STRIP=:
8126test -z "$ac_objext" && ac_objext=o
8127
8128# Determine commands to create old-style static archives.
8129old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8130old_postinstall_cmds='chmod 644 $oldlib'
8131old_postuninstall_cmds=
8132
8133if test -n "$RANLIB"; then
8134  case $host_os in
8135  openbsd*)
8136    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8137    ;;
8138  *)
8139    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8140    ;;
8141  esac
8142  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8143fi
8144
8145for cc_temp in $compiler""; do
8146  case $cc_temp in
8147    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8148    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8149    \-*) ;;
8150    *) break;;
8151  esac
8152done
8153cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8154
8155
8156# Only perform the check for file, if the check method requires it
8157case $deplibs_check_method in
8158file_magic*)
8159  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8160    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8161echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8162if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8163  echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165  case $MAGIC_CMD in
8166[\\/*] |  ?:[\\/]*)
8167  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8168  ;;
8169*)
8170  lt_save_MAGIC_CMD="$MAGIC_CMD"
8171  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8172  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8173  for ac_dir in $ac_dummy; do
8174    IFS="$lt_save_ifs"
8175    test -z "$ac_dir" && ac_dir=.
8176    if test -f $ac_dir/${ac_tool_prefix}file; then
8177      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8178      if test -n "$file_magic_test_file"; then
8179        case $deplibs_check_method in
8180        "file_magic "*)
8181          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8182          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8183          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8184            $EGREP "$file_magic_regex" > /dev/null; then
8185            :
8186          else
8187            cat <<EOF 1>&2
8188
8189*** Warning: the command libtool uses to detect shared libraries,
8190*** $file_magic_cmd, produces output that libtool cannot recognize.
8191*** The result is that libtool may fail to recognize shared libraries
8192*** as such.  This will affect the creation of libtool libraries that
8193*** depend on shared libraries, but programs linked with such libtool
8194*** libraries will work regardless of this problem.  Nevertheless, you
8195*** may want to report the problem to your system manager and/or to
8196*** bug-libtool@gnu.org
8197
8198EOF
8199          fi ;;
8200        esac
8201      fi
8202      break
8203    fi
8204  done
8205  IFS="$lt_save_ifs"
8206  MAGIC_CMD="$lt_save_MAGIC_CMD"
8207  ;;
8208esac
8209fi
8210
8211MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8212if test -n "$MAGIC_CMD"; then
8213  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8214echo "${ECHO_T}$MAGIC_CMD" >&6
8215else
8216  echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
8218fi
8219
8220if test -z "$lt_cv_path_MAGIC_CMD"; then
8221  if test -n "$ac_tool_prefix"; then
8222    echo "$as_me:$LINENO: checking for file" >&5
8223echo $ECHO_N "checking for file... $ECHO_C" >&6
8224if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8225  echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227  case $MAGIC_CMD in
8228[\\/*] |  ?:[\\/]*)
8229  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8230  ;;
8231*)
8232  lt_save_MAGIC_CMD="$MAGIC_CMD"
8233  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8234  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8235  for ac_dir in $ac_dummy; do
8236    IFS="$lt_save_ifs"
8237    test -z "$ac_dir" && ac_dir=.
8238    if test -f $ac_dir/file; then
8239      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8240      if test -n "$file_magic_test_file"; then
8241        case $deplibs_check_method in
8242        "file_magic "*)
8243          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8244          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8246            $EGREP "$file_magic_regex" > /dev/null; then
8247            :
8248          else
8249            cat <<EOF 1>&2
8250
8251*** Warning: the command libtool uses to detect shared libraries,
8252*** $file_magic_cmd, produces output that libtool cannot recognize.
8253*** The result is that libtool may fail to recognize shared libraries
8254*** as such.  This will affect the creation of libtool libraries that
8255*** depend on shared libraries, but programs linked with such libtool
8256*** libraries will work regardless of this problem.  Nevertheless, you
8257*** may want to report the problem to your system manager and/or to
8258*** bug-libtool@gnu.org
8259
8260EOF
8261          fi ;;
8262        esac
8263      fi
8264      break
8265    fi
8266  done
8267  IFS="$lt_save_ifs"
8268  MAGIC_CMD="$lt_save_MAGIC_CMD"
8269  ;;
8270esac
8271fi
8272
8273MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274if test -n "$MAGIC_CMD"; then
8275  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8276echo "${ECHO_T}$MAGIC_CMD" >&6
8277else
8278  echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
8280fi
8281
8282  else
8283    MAGIC_CMD=:
8284  fi
8285fi
8286
8287  fi
8288  ;;
8289esac
8290
8291enable_dlopen=no
8292enable_win32_dll=no
8293
8294# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8295if test "${enable_libtool_lock+set}" = set; then
8296  enableval="$enable_libtool_lock"
8297
8298fi;
8299test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8300
8301
8302# Check whether --with-pic or --without-pic was given.
8303if test "${with_pic+set}" = set; then
8304  withval="$with_pic"
8305  pic_mode="$withval"
8306else
8307  pic_mode=default
8308fi;
8309test -z "$pic_mode" && pic_mode=default
8310
8311# Use C for the default configuration in the libtool script
8312tagname=
8313lt_save_CC="$CC"
8314ac_ext=c
8315ac_cpp='$CPP $CPPFLAGS'
8316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318ac_compiler_gnu=$ac_cv_c_compiler_gnu
8319
8320
8321# Source file extension for C test sources.
8322ac_ext=c
8323
8324# Object file extension for compiled C test sources.
8325objext=o
8326objext=$objext
8327
8328# Code to be used in simple compile tests
8329lt_simple_compile_test_code="int some_variable = 0;\n"
8330
8331# Code to be used in simple link tests
8332lt_simple_link_test_code='int main(){return(0);}\n'
8333
8334
8335# If no C compiler was specified, use CC.
8336LTCC=${LTCC-"$CC"}
8337
8338# If no C compiler flags were specified, use CFLAGS.
8339LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8340
8341# Allow CC to be a program name with arguments.
8342compiler=$CC
8343
8344
8345# save warnings/boilerplate of simple test code
8346ac_outfile=conftest.$ac_objext
8347printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8348eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8349_lt_compiler_boilerplate=`cat conftest.err`
8350$rm conftest*
8351
8352ac_outfile=conftest.$ac_objext
8353printf "$lt_simple_link_test_code" >conftest.$ac_ext
8354eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8355_lt_linker_boilerplate=`cat conftest.err`
8356$rm conftest*
8357
8358
8359## CAVEAT EMPTOR:
8360## There is no encapsulation within the following macros, do not change
8361## the running order or otherwise move them around unless you know exactly
8362## what you are doing...
8363
8364lt_prog_compiler_no_builtin_flag=
8365
8366if test "$GCC" = yes; then
8367  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8368
8369
8370echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8371echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8372if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8373  echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375  lt_cv_prog_compiler_rtti_exceptions=no
8376  ac_outfile=conftest.$ac_objext
8377   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8378   lt_compiler_flag="-fno-rtti -fno-exceptions"
8379   # Insert the option either (1) after the last *FLAGS variable, or
8380   # (2) before a word containing "conftest.", or (3) at the end.
8381   # Note that $ac_compile itself does not contain backslashes and begins
8382   # with a dollar sign (not a hyphen), so the echo should work correctly.
8383   # The option is referenced via a variable to avoid confusing sed.
8384   lt_compile=`echo "$ac_compile" | $SED \
8385   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387   -e 's:$: $lt_compiler_flag:'`
8388   (eval echo "\"\$as_me:8388: $lt_compile\"" >&5)
8389   (eval "$lt_compile" 2>conftest.err)
8390   ac_status=$?
8391   cat conftest.err >&5
8392   echo "$as_me:8392: \$? = $ac_status" >&5
8393   if (exit $ac_status) && test -s "$ac_outfile"; then
8394     # The compiler can only warn and ignore the option if not recognized
8395     # So say no if there are warnings other than the usual output.
8396     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8397     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8398     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8399       lt_cv_prog_compiler_rtti_exceptions=yes
8400     fi
8401   fi
8402   $rm conftest*
8403
8404fi
8405echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8406echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8407
8408if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8409    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8410else
8411    :
8412fi
8413
8414fi
8415
8416lt_prog_compiler_wl=
8417lt_prog_compiler_pic=
8418lt_prog_compiler_static=
8419
8420echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8421echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8422
8423  if test "$GCC" = yes; then
8424    lt_prog_compiler_wl='-Wl,'
8425    lt_prog_compiler_static='-static'
8426
8427    case $host_os in
8428      aix*)
8429      # All AIX code is PIC.
8430      if test "$host_cpu" = ia64; then
8431        # AIX 5 now supports IA64 processor
8432        lt_prog_compiler_static='-Bstatic'
8433      fi
8434      ;;
8435
8436    amigaos*)
8437      # FIXME: we need at least 68020 code to build shared libraries, but
8438      # adding the `-m68020' flag to GCC prevents building anything better,
8439      # like `-m68040'.
8440      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8441      ;;
8442
8443    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8444      # PIC is the default for these OSes.
8445      ;;
8446
8447    mingw* | pw32* | os2*)
8448      # This hack is so that the source file can tell whether it is being
8449      # built for inclusion in a dll (and should export symbols for example).
8450      lt_prog_compiler_pic='-DDLL_EXPORT'
8451      ;;
8452
8453    darwin* | rhapsody*)
8454      # PIC is the default on this platform
8455      # Common symbols not allowed in MH_DYLIB files
8456      lt_prog_compiler_pic='-fno-common'
8457      ;;
8458
8459    interix3*)
8460      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8461      # Instead, we relocate shared libraries at runtime.
8462      ;;
8463
8464    msdosdjgpp*)
8465      # Just because we use GCC doesn't mean we suddenly get shared libraries
8466      # on systems that don't support them.
8467      lt_prog_compiler_can_build_shared=no
8468      enable_shared=no
8469      ;;
8470
8471    sysv4*MP*)
8472      if test -d /usr/nec; then
8473        lt_prog_compiler_pic=-Kconform_pic
8474      fi
8475      ;;
8476
8477    hpux*)
8478      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8479      # not for PA HP-UX.
8480      case $host_cpu in
8481      hppa*64*|ia64*)
8482        # +Z the default
8483        ;;
8484      *)
8485        lt_prog_compiler_pic='-fPIC'
8486        ;;
8487      esac
8488      ;;
8489
8490    *)
8491      lt_prog_compiler_pic='-fPIC'
8492      ;;
8493    esac
8494  else
8495    # PORTME Check for flag to pass linker flags through the system compiler.
8496    case $host_os in
8497    aix*)
8498      lt_prog_compiler_wl='-Wl,'
8499      if test "$host_cpu" = ia64; then
8500        # AIX 5 now supports IA64 processor
8501        lt_prog_compiler_static='-Bstatic'
8502      else
8503        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8504      fi
8505      ;;
8506      darwin*)
8507        # PIC is the default on this platform
8508        # Common symbols not allowed in MH_DYLIB files
8509       case $cc_basename in
8510         xlc*)
8511         lt_prog_compiler_pic='-qnocommon'
8512         lt_prog_compiler_wl='-Wl,'
8513         ;;
8514       esac
8515       ;;
8516
8517    mingw* | pw32* | os2*)
8518      # This hack is so that the source file can tell whether it is being
8519      # built for inclusion in a dll (and should export symbols for example).
8520      lt_prog_compiler_pic='-DDLL_EXPORT'
8521      ;;
8522
8523    hpux9* | hpux10* | hpux11*)
8524      lt_prog_compiler_wl='-Wl,'
8525      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8526      # not for PA HP-UX.
8527      case $host_cpu in
8528      hppa*64*|ia64*)
8529        # +Z the default
8530        ;;
8531      *)
8532        lt_prog_compiler_pic='+Z'
8533        ;;
8534      esac
8535      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8536      lt_prog_compiler_static='${wl}-a ${wl}archive'
8537      ;;
8538
8539    irix5* | irix6* | nonstopux*)
8540      lt_prog_compiler_wl='-Wl,'
8541      # PIC (with -KPIC) is the default.
8542      lt_prog_compiler_static='-non_shared'
8543      ;;
8544
8545    newsos6)
8546      lt_prog_compiler_pic='-KPIC'
8547      lt_prog_compiler_static='-Bstatic'
8548      ;;
8549
8550    linux*)
8551      case $cc_basename in
8552      icc* | ecc*)
8553        lt_prog_compiler_wl='-Wl,'
8554        lt_prog_compiler_pic='-KPIC'
8555        lt_prog_compiler_static='-static'
8556        ;;
8557      pgcc* | pgf77* | pgf90* | pgf95*)
8558        # Portland Group compilers (*not* the Pentium gcc compiler,
8559        # which looks to be a dead project)
8560        lt_prog_compiler_wl='-Wl,'
8561        lt_prog_compiler_pic='-fpic'
8562        lt_prog_compiler_static='-Bstatic'
8563        ;;
8564      ccc*)
8565        lt_prog_compiler_wl='-Wl,'
8566        # All Alpha code is PIC.
8567        lt_prog_compiler_static='-non_shared'
8568        ;;
8569      esac
8570      ;;
8571
8572    osf3* | osf4* | osf5*)
8573      lt_prog_compiler_wl='-Wl,'
8574      # All OSF/1 code is PIC.
8575      lt_prog_compiler_static='-non_shared'
8576      ;;
8577
8578    solaris*)
8579      lt_prog_compiler_pic='-KPIC'
8580      lt_prog_compiler_static='-Bstatic'
8581      case $cc_basename in
8582      f77* | f90* | f95*)
8583        lt_prog_compiler_wl='-Qoption ld ';;
8584      *)
8585        lt_prog_compiler_wl='-Wl,';;
8586      esac
8587      ;;
8588
8589    sunos4*)
8590      lt_prog_compiler_wl='-Qoption ld '
8591      lt_prog_compiler_pic='-PIC'
8592      lt_prog_compiler_static='-Bstatic'
8593      ;;
8594
8595    sysv4 | sysv4.2uw2* | sysv4.3*)
8596      lt_prog_compiler_wl='-Wl,'
8597      lt_prog_compiler_pic='-KPIC'
8598      lt_prog_compiler_static='-Bstatic'
8599      ;;
8600
8601    sysv4*MP*)
8602      if test -d /usr/nec ;then
8603        lt_prog_compiler_pic='-Kconform_pic'
8604        lt_prog_compiler_static='-Bstatic'
8605      fi
8606      ;;
8607
8608    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8609      lt_prog_compiler_wl='-Wl,'
8610      lt_prog_compiler_pic='-KPIC'
8611      lt_prog_compiler_static='-Bstatic'
8612      ;;
8613
8614    unicos*)
8615      lt_prog_compiler_wl='-Wl,'
8616      lt_prog_compiler_can_build_shared=no
8617      ;;
8618
8619    uts4*)
8620      lt_prog_compiler_pic='-pic'
8621      lt_prog_compiler_static='-Bstatic'
8622      ;;
8623
8624    *)
8625      lt_prog_compiler_can_build_shared=no
8626      ;;
8627    esac
8628  fi
8629
8630echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8631echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8632
8633#
8634# Check to make sure the PIC flag actually works.
8635#
8636if test -n "$lt_prog_compiler_pic"; then
8637
8638echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8639echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8640if test "${lt_prog_compiler_pic_works+set}" = set; then
8641  echo $ECHO_N "(cached) $ECHO_C" >&6
8642else
8643  lt_prog_compiler_pic_works=no
8644  ac_outfile=conftest.$ac_objext
8645   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8646   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8647   # Insert the option either (1) after the last *FLAGS variable, or
8648   # (2) before a word containing "conftest.", or (3) at the end.
8649   # Note that $ac_compile itself does not contain backslashes and begins
8650   # with a dollar sign (not a hyphen), so the echo should work correctly.
8651   # The option is referenced via a variable to avoid confusing sed.
8652   lt_compile=`echo "$ac_compile" | $SED \
8653   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8654   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8655   -e 's:$: $lt_compiler_flag:'`
8656   (eval echo "\"\$as_me:8656: $lt_compile\"" >&5)
8657   (eval "$lt_compile" 2>conftest.err)
8658   ac_status=$?
8659   cat conftest.err >&5
8660   echo "$as_me:8660: \$? = $ac_status" >&5
8661   if (exit $ac_status) && test -s "$ac_outfile"; then
8662     # The compiler can only warn and ignore the option if not recognized
8663     # So say no if there are warnings other than the usual output.
8664     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8665     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8666     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8667       lt_prog_compiler_pic_works=yes
8668     fi
8669   fi
8670   $rm conftest*
8671
8672fi
8673echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8674echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8675
8676if test x"$lt_prog_compiler_pic_works" = xyes; then
8677    case $lt_prog_compiler_pic in
8678     "" | " "*) ;;
8679     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8680     esac
8681else
8682    lt_prog_compiler_pic=
8683     lt_prog_compiler_can_build_shared=no
8684fi
8685
8686fi
8687case $host_os in
8688  # For platforms which do not support PIC, -DPIC is meaningless:
8689  *djgpp*)
8690    lt_prog_compiler_pic=
8691    ;;
8692  *)
8693    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8694    ;;
8695esac
8696
8697#
8698# Check to make sure the static flag actually works.
8699#
8700wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8701echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8702echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8703if test "${lt_prog_compiler_static_works+set}" = set; then
8704  echo $ECHO_N "(cached) $ECHO_C" >&6
8705else
8706  lt_prog_compiler_static_works=no
8707   save_LDFLAGS="$LDFLAGS"
8708   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8709   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8710   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8711     # The linker can only warn and ignore the option if not recognized
8712     # So say no if there are warnings
8713     if test -s conftest.err; then
8714       # Append any errors to the config.log.
8715       cat conftest.err 1>&5
8716       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8717       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8718       if diff conftest.exp conftest.er2 >/dev/null; then
8719         lt_prog_compiler_static_works=yes
8720       fi
8721     else
8722       lt_prog_compiler_static_works=yes
8723     fi
8724   fi
8725   $rm conftest*
8726   LDFLAGS="$save_LDFLAGS"
8727
8728fi
8729echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8730echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8731
8732if test x"$lt_prog_compiler_static_works" = xyes; then
8733    :
8734else
8735    lt_prog_compiler_static=
8736fi
8737
8738
8739echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8740echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8741if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8742  echo $ECHO_N "(cached) $ECHO_C" >&6
8743else
8744  lt_cv_prog_compiler_c_o=no
8745   $rm -r conftest 2>/dev/null
8746   mkdir conftest
8747   cd conftest
8748   mkdir out
8749   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8750
8751   lt_compiler_flag="-o out/conftest2.$ac_objext"
8752   # Insert the option either (1) after the last *FLAGS variable, or
8753   # (2) before a word containing "conftest.", or (3) at the end.
8754   # Note that $ac_compile itself does not contain backslashes and begins
8755   # with a dollar sign (not a hyphen), so the echo should work correctly.
8756   lt_compile=`echo "$ac_compile" | $SED \
8757   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8758   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8759   -e 's:$: $lt_compiler_flag:'`
8760   (eval echo "\"\$as_me:8760: $lt_compile\"" >&5)
8761   (eval "$lt_compile" 2>out/conftest.err)
8762   ac_status=$?
8763   cat out/conftest.err >&5
8764   echo "$as_me:8764: \$? = $ac_status" >&5
8765   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8766   then
8767     # The compiler can only warn and ignore the option if not recognized
8768     # So say no if there are warnings
8769     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8770     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8771     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8772       lt_cv_prog_compiler_c_o=yes
8773     fi
8774   fi
8775   chmod u+w . 2>&5
8776   $rm conftest*
8777   # SGI C++ compiler will create directory out/ii_files/ for
8778   # template instantiation
8779   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8780   $rm out/* && rmdir out
8781   cd ..
8782   rmdir conftest
8783   $rm conftest*
8784
8785fi
8786echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8787echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8788
8789
8790hard_links="nottested"
8791if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8792  # do not overwrite the value of need_locks provided by the user
8793  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8794echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8795  hard_links=yes
8796  $rm conftest*
8797  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8798  touch conftest.a
8799  ln conftest.a conftest.b 2>&5 || hard_links=no
8800  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8801  echo "$as_me:$LINENO: result: $hard_links" >&5
8802echo "${ECHO_T}$hard_links" >&6
8803  if test "$hard_links" = no; then
8804    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8805echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8806    need_locks=warn
8807  fi
8808else
8809  need_locks=no
8810fi
8811
8812echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8813echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8814
8815  runpath_var=
8816  allow_undefined_flag=
8817  enable_shared_with_static_runtimes=no
8818  archive_cmds=
8819  archive_expsym_cmds=
8820  old_archive_From_new_cmds=
8821  old_archive_from_expsyms_cmds=
8822  export_dynamic_flag_spec=
8823  whole_archive_flag_spec=
8824  thread_safe_flag_spec=
8825  hardcode_libdir_flag_spec=
8826  hardcode_libdir_flag_spec_ld=
8827  hardcode_libdir_separator=
8828  hardcode_direct=no
8829  hardcode_minus_L=no
8830  hardcode_shlibpath_var=unsupported
8831  link_all_deplibs=unknown
8832  hardcode_automatic=no
8833  module_cmds=
8834  module_expsym_cmds=
8835  always_export_symbols=no
8836  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8837  # include_expsyms should be a list of space-separated symbols to be *always*
8838  # included in the symbol list
8839  include_expsyms=
8840  # exclude_expsyms can be an extended regexp of symbols to exclude
8841  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8842  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8843  # as well as any symbol that contains `d'.
8844  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8845  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8846  # platforms (ab)use it in PIC code, but their linkers get confused if
8847  # the symbol is explicitly referenced.  Since portable code cannot
8848  # rely on this symbol name, it's probably fine to never include it in
8849  # preloaded symbol tables.
8850  extract_expsyms_cmds=
8851  # Just being paranoid about ensuring that cc_basename is set.
8852  for cc_temp in $compiler""; do
8853  case $cc_temp in
8854    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8855    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8856    \-*) ;;
8857    *) break;;
8858  esac
8859done
8860cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8861
8862  case $host_os in
8863  cygwin* | mingw* | pw32*)
8864    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8865    # When not using gcc, we currently assume that we are using
8866    # Microsoft Visual C++.
8867    if test "$GCC" != yes; then
8868      with_gnu_ld=no
8869    fi
8870    ;;
8871  interix*)
8872    # we just hope/assume this is gcc and not c89 (= MSVC++)
8873    with_gnu_ld=yes
8874    ;;
8875  openbsd*)
8876    with_gnu_ld=no
8877    ;;
8878  esac
8879
8880  ld_shlibs=yes
8881  if test "$with_gnu_ld" = yes; then
8882    # If archive_cmds runs LD, not CC, wlarc should be empty
8883    wlarc='${wl}'
8884
8885    # Set some defaults for GNU ld with shared library support. These
8886    # are reset later if shared libraries are not supported. Putting them
8887    # here allows them to be overridden if necessary.
8888    runpath_var=LD_RUN_PATH
8889    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8890    export_dynamic_flag_spec='${wl}--export-dynamic'
8891    # ancient GNU ld didn't support --whole-archive et. al.
8892    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8893        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8894      else
8895        whole_archive_flag_spec=
8896    fi
8897    supports_anon_versioning=no
8898    case `$LD -v 2>/dev/null` in
8899      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8900      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8901      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8902      *\ 2.11.*) ;; # other 2.11 versions
8903      *) supports_anon_versioning=yes ;;
8904    esac
8905
8906    # See if GNU ld supports shared libraries.
8907    case $host_os in
8908    aix3* | aix4* | aix5*)
8909      # On AIX/PPC, the GNU linker is very broken
8910      if test "$host_cpu" != ia64; then
8911        ld_shlibs=no
8912        cat <<EOF 1>&2
8913
8914*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8915*** to be unable to reliably create shared libraries on AIX.
8916*** Therefore, libtool is disabling shared libraries support.  If you
8917*** really care for shared libraries, you may want to modify your PATH
8918*** so that a non-GNU linker is found, and then restart.
8919
8920EOF
8921      fi
8922      ;;
8923
8924    amigaos*)
8925      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)'
8926      hardcode_libdir_flag_spec='-L$libdir'
8927      hardcode_minus_L=yes
8928
8929      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8930      # that the semantics of dynamic libraries on AmigaOS, at least up
8931      # to version 4, is to share data among multiple programs linked
8932      # with the same dynamic library.  Since this doesn't match the
8933      # behavior of shared libraries on other platforms, we can't use
8934      # them.
8935      ld_shlibs=no
8936      ;;
8937
8938    beos*)
8939      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8940        allow_undefined_flag=unsupported
8941        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8942        # support --undefined.  This deserves some investigation.  FIXME
8943        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944      else
8945        ld_shlibs=no
8946      fi
8947      ;;
8948
8949    cygwin* | mingw* | pw32*)
8950      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8951      # as there is no search path for DLLs.
8952      hardcode_libdir_flag_spec='-L$libdir'
8953      allow_undefined_flag=unsupported
8954      always_export_symbols=no
8955      enable_shared_with_static_runtimes=yes
8956      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8957
8958      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8959        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8960        # If the export-symbols file already is a .def file (1st line
8961        # is EXPORTS), use it as is; otherwise, prepend...
8962        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8963          cp $export_symbols $output_objdir/$soname.def;
8964        else
8965          echo EXPORTS > $output_objdir/$soname.def;
8966          cat $export_symbols >> $output_objdir/$soname.def;
8967        fi~
8968        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8969      else
8970        ld_shlibs=no
8971      fi
8972      ;;
8973
8974    interix3*)
8975      hardcode_direct=no
8976      hardcode_shlibpath_var=no
8977      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8978      export_dynamic_flag_spec='${wl}-E'
8979      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8980      # Instead, shared libraries are loaded at an image base (0x10000000 by
8981      # default) and relocated if they conflict, which is a slow very memory
8982      # consuming and fragmenting process.  To avoid this, we pick a random,
8983      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8984      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8985      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8986      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'
8987      ;;
8988
8989    linux*)
8990      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8991        tmp_addflag=
8992        case $cc_basename,$host_cpu in
8993        pgcc*)                          # Portland Group C compiler
8994          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'
8995          tmp_addflag=' $pic_flag'
8996          ;;
8997        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8998          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'
8999          tmp_addflag=' $pic_flag -Mnomain' ;;
9000        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9001          tmp_addflag=' -i_dynamic' ;;
9002        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9003          tmp_addflag=' -i_dynamic -nofor_main' ;;
9004        ifc* | ifort*)                  # Intel Fortran compiler
9005          tmp_addflag=' -nofor_main' ;;
9006        esac
9007        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9008
9009        if test $supports_anon_versioning = yes; then
9010          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9011  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9012  $echo "local: *; };" >> $output_objdir/$libname.ver~
9013          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9014        fi
9015      else
9016        ld_shlibs=no
9017      fi
9018      ;;
9019
9020    netbsd*)
9021      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9022        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9023        wlarc=
9024      else
9025        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9026        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9027      fi
9028      ;;
9029
9030    solaris*)
9031      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9032        ld_shlibs=no
9033        cat <<EOF 1>&2
9034
9035*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9036*** create shared libraries on Solaris systems.  Therefore, libtool
9037*** is disabling shared libraries support.  We urge you to upgrade GNU
9038*** binutils to release 2.9.1 or newer.  Another option is to modify
9039*** your PATH or compiler configuration so that the native linker is
9040*** used, and then restart.
9041
9042EOF
9043      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9044        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9046      else
9047        ld_shlibs=no
9048      fi
9049      ;;
9050
9051    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9052      case `$LD -v 2>&1` in
9053        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9054        ld_shlibs=no
9055        cat <<_LT_EOF 1>&2
9056
9057*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9058*** reliably create shared libraries on SCO systems.  Therefore, libtool
9059*** is disabling shared libraries support.  We urge you to upgrade GNU
9060*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9061*** your PATH or compiler configuration so that the native linker is
9062*** used, and then restart.
9063
9064_LT_EOF
9065        ;;
9066        *)
9067          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9068            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9069            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9070            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9071          else
9072            ld_shlibs=no
9073          fi
9074        ;;
9075      esac
9076      ;;
9077
9078    sunos4*)
9079      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9080      wlarc=
9081      hardcode_direct=yes
9082      hardcode_shlibpath_var=no
9083      ;;
9084
9085    *)
9086      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9087        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9088        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9089      else
9090        ld_shlibs=no
9091      fi
9092      ;;
9093    esac
9094
9095    if test "$ld_shlibs" = no; then
9096      runpath_var=
9097      hardcode_libdir_flag_spec=
9098      export_dynamic_flag_spec=
9099      whole_archive_flag_spec=
9100    fi
9101  else
9102    # PORTME fill in a description of your system's linker (not GNU ld)
9103    case $host_os in
9104    aix3*)
9105      allow_undefined_flag=unsupported
9106      always_export_symbols=yes
9107      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'
9108      # Note: this linker hardcodes the directories in LIBPATH if there
9109      # are no directories specified by -L.
9110      hardcode_minus_L=yes
9111      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9112        # Neither direct hardcoding nor static linking is supported with a
9113        # broken collect2.
9114        hardcode_direct=unsupported
9115      fi
9116      ;;
9117
9118    aix4* | aix5*)
9119      if test "$host_cpu" = ia64; then
9120        # On IA64, the linker does run time linking by default, so we don't
9121        # have to do anything special.
9122        aix_use_runtimelinking=no
9123        exp_sym_flag='-Bexport'
9124        no_entry_flag=""
9125      else
9126        # If we're using GNU nm, then we don't want the "-C" option.
9127        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9128        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9129          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'
9130        else
9131          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'
9132        fi
9133        aix_use_runtimelinking=no
9134
9135        # Test if we are trying to use run time linking or normal
9136        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9137        # need to do runtime linking.
9138        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9139          for ld_flag in $LDFLAGS; do
9140          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9141            aix_use_runtimelinking=yes
9142            break
9143          fi
9144          done
9145          ;;
9146        esac
9147
9148        exp_sym_flag='-bexport'
9149        no_entry_flag='-bnoentry'
9150      fi
9151
9152      # When large executables or shared objects are built, AIX ld can
9153      # have problems creating the table of contents.  If linking a library
9154      # or program results in "error TOC overflow" add -mminimal-toc to
9155      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9156      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9157
9158      archive_cmds=''
9159      hardcode_direct=yes
9160      hardcode_libdir_separator=':'
9161      link_all_deplibs=yes
9162
9163      if test "$GCC" = yes; then
9164        case $host_os in aix4.[012]|aix4.[012].*)
9165        # We only want to do this on AIX 4.2 and lower, the check
9166        # below for broken collect2 doesn't work under 4.3+
9167          collect2name=`${CC} -print-prog-name=collect2`
9168          if test -f "$collect2name" && \
9169           strings "$collect2name" | grep resolve_lib_name >/dev/null
9170          then
9171          # We have reworked collect2
9172          hardcode_direct=yes
9173          else
9174          # We have old collect2
9175          hardcode_direct=unsupported
9176          # It fails to find uninstalled libraries when the uninstalled
9177          # path is not listed in the libpath.  Setting hardcode_minus_L
9178          # to unsupported forces relinking
9179          hardcode_minus_L=yes
9180          hardcode_libdir_flag_spec='-L$libdir'
9181          hardcode_libdir_separator=
9182          fi
9183          ;;
9184        esac
9185        shared_flag='-shared'
9186        if test "$aix_use_runtimelinking" = yes; then
9187          shared_flag="$shared_flag "'${wl}-G'
9188        fi
9189      else
9190        # not using gcc
9191        if test "$host_cpu" = ia64; then
9192        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9193        # chokes on -Wl,-G. The following line is correct:
9194          shared_flag='-G'
9195        else
9196          if test "$aix_use_runtimelinking" = yes; then
9197            shared_flag='${wl}-G'
9198          else
9199            shared_flag='${wl}-bM:SRE'
9200          fi
9201        fi
9202      fi
9203
9204      # It seems that -bexpall does not export symbols beginning with
9205      # underscore (_), so it is better to generate a list of symbols to export.
9206      always_export_symbols=yes
9207      if test "$aix_use_runtimelinking" = yes; then
9208        # Warning - without using the other runtime loading flags (-brtl),
9209        # -berok will link without error, but may produce a broken library.
9210        allow_undefined_flag='-berok'
9211       # Determine the default libpath from the value encoded in an empty executable.
9212       cat >conftest.$ac_ext <<_ACEOF
9213/* confdefs.h.  */
9214_ACEOF
9215cat confdefs.h >>conftest.$ac_ext
9216cat >>conftest.$ac_ext <<_ACEOF
9217/* end confdefs.h.  */
9218
9219int
9220main ()
9221{
9222
9223  ;
9224  return 0;
9225}
9226_ACEOF
9227rm -f conftest.$ac_objext conftest$ac_exeext
9228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9229  (eval $ac_link) 2>conftest.er1
9230  ac_status=$?
9231  grep -v '^ *+' conftest.er1 >conftest.err
9232  rm -f conftest.er1
9233  cat conftest.err >&5
9234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235  (exit $ac_status); } &&
9236         { ac_try='test -z "$ac_c_werror_flag"
9237                         || test ! -s conftest.err'
9238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239  (eval $ac_try) 2>&5
9240  ac_status=$?
9241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242  (exit $ac_status); }; } &&
9243         { ac_try='test -s conftest$ac_exeext'
9244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245  (eval $ac_try) 2>&5
9246  ac_status=$?
9247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248  (exit $ac_status); }; }; then
9249
9250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9251}'`
9252# Check for a 64-bit object if we didn't find anything.
9253if 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; }
9254}'`; fi
9255else
9256  echo "$as_me: failed program was:" >&5
9257sed 's/^/| /' conftest.$ac_ext >&5
9258
9259fi
9260rm -f conftest.err conftest.$ac_objext \
9261      conftest$ac_exeext conftest.$ac_ext
9262if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9263
9264       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9265        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"
9266       else
9267        if test "$host_cpu" = ia64; then
9268          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9269          allow_undefined_flag="-z nodefs"
9270          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"
9271        else
9272         # Determine the default libpath from the value encoded in an empty executable.
9273         cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h.  */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h.  */
9279
9280int
9281main ()
9282{
9283
9284  ;
9285  return 0;
9286}
9287_ACEOF
9288rm -f conftest.$ac_objext conftest$ac_exeext
9289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290  (eval $ac_link) 2>conftest.er1
9291  ac_status=$?
9292  grep -v '^ *+' conftest.er1 >conftest.err
9293  rm -f conftest.er1
9294  cat conftest.err >&5
9295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296  (exit $ac_status); } &&
9297         { ac_try='test -z "$ac_c_werror_flag"
9298                         || test ! -s conftest.err'
9299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300  (eval $ac_try) 2>&5
9301  ac_status=$?
9302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303  (exit $ac_status); }; } &&
9304         { ac_try='test -s conftest$ac_exeext'
9305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306  (eval $ac_try) 2>&5
9307  ac_status=$?
9308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309  (exit $ac_status); }; }; then
9310
9311aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9312}'`
9313# Check for a 64-bit object if we didn't find anything.
9314if 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; }
9315}'`; fi
9316else
9317  echo "$as_me: failed program was:" >&5
9318sed 's/^/| /' conftest.$ac_ext >&5
9319
9320fi
9321rm -f conftest.err conftest.$ac_objext \
9322      conftest$ac_exeext conftest.$ac_ext
9323if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9324
9325         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9326          # Warning - without using the other run time loading flags,
9327          # -berok will link without error, but may produce a broken library.
9328          no_undefined_flag=' ${wl}-bernotok'
9329          allow_undefined_flag=' ${wl}-berok'
9330          # Exported symbols can be pulled into shared objects from archives
9331          whole_archive_flag_spec='$convenience'
9332          archive_cmds_need_lc=yes
9333          # This is similar to how AIX traditionally builds its shared libraries.
9334          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'
9335        fi
9336      fi
9337      ;;
9338
9339    amigaos*)
9340      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)'
9341      hardcode_libdir_flag_spec='-L$libdir'
9342      hardcode_minus_L=yes
9343      # see comment about different semantics on the GNU ld section
9344      ld_shlibs=no
9345      ;;
9346
9347    bsdi[45]*)
9348      export_dynamic_flag_spec=-rdynamic
9349      ;;
9350
9351    cygwin* | mingw* | pw32*)
9352      # When not using gcc, we currently assume that we are using
9353      # Microsoft Visual C++.
9354      # hardcode_libdir_flag_spec is actually meaningless, as there is
9355      # no search path for DLLs.
9356      hardcode_libdir_flag_spec=' '
9357      allow_undefined_flag=unsupported
9358      # Tell ltmain to make .lib files, not .a files.
9359      libext=lib
9360      # Tell ltmain to make .dll files, not .so files.
9361      shrext_cmds=".dll"
9362      # FIXME: Setting linknames here is a bad hack.
9363      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9364      # The linker will automatically build a .lib file if we build a DLL.
9365      old_archive_From_new_cmds='true'
9366      # FIXME: Should let the user specify the lib program.
9367      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9368      fix_srcfile_path='`cygpath -w "$srcfile"`'
9369      enable_shared_with_static_runtimes=yes
9370      ;;
9371
9372    darwin* | rhapsody*)
9373      case $host_os in
9374        rhapsody* | darwin1.[012])
9375         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9376         ;;
9377       *) # Darwin 1.3 on
9378         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9379           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9380         else
9381           case ${MACOSX_DEPLOYMENT_TARGET} in
9382             10.[012])
9383               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9384               ;;
9385             10.*)
9386               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9387               ;;
9388           esac
9389         fi
9390         ;;
9391      esac
9392      archive_cmds_need_lc=no
9393      hardcode_direct=no
9394      hardcode_automatic=yes
9395      hardcode_shlibpath_var=unsupported
9396      whole_archive_flag_spec=''
9397      link_all_deplibs=yes
9398    if test "$GCC" = yes ; then
9399        output_verbose_link_cmd='echo'
9400        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9401      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9402      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9403      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}'
9404      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}'
9405    else
9406      case $cc_basename in
9407        xlc*)
9408         output_verbose_link_cmd='echo'
9409         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9410         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9411          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9412         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}'
9413          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}'
9414          ;;
9415       *)
9416         ld_shlibs=no
9417          ;;
9418      esac
9419    fi
9420      ;;
9421
9422    dgux*)
9423      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424      hardcode_libdir_flag_spec='-L$libdir'
9425      hardcode_shlibpath_var=no
9426      ;;
9427
9428    freebsd1*)
9429      ld_shlibs=no
9430      ;;
9431
9432    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9433    # support.  Future versions do this automatically, but an explicit c++rt0.o
9434    # does not break anything, and helps significantly (at the cost of a little
9435    # extra space).
9436    freebsd2.2*)
9437      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9438      hardcode_libdir_flag_spec='-R$libdir'
9439      hardcode_direct=yes
9440      hardcode_shlibpath_var=no
9441      ;;
9442
9443    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9444    freebsd2*)
9445      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9446      hardcode_direct=yes
9447      hardcode_minus_L=yes
9448      hardcode_shlibpath_var=no
9449      ;;
9450
9451    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9452    freebsd* | kfreebsd*-gnu | dragonfly*)
9453      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9454      hardcode_libdir_flag_spec='-R$libdir'
9455      hardcode_direct=yes
9456      hardcode_shlibpath_var=no
9457      ;;
9458
9459    hpux9*)
9460      if test "$GCC" = yes; then
9461        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'
9462      else
9463        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'
9464      fi
9465      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9466      hardcode_libdir_separator=:
9467      hardcode_direct=yes
9468
9469      # hardcode_minus_L: Not really in the search PATH,
9470      # but as the default location of the library.
9471      hardcode_minus_L=yes
9472      export_dynamic_flag_spec='${wl}-E'
9473      ;;
9474
9475    hpux10*)
9476      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9477        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9478      else
9479        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9480      fi
9481      if test "$with_gnu_ld" = no; then
9482        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9483        hardcode_libdir_separator=:
9484
9485        hardcode_direct=yes
9486        export_dynamic_flag_spec='${wl}-E'
9487
9488        # hardcode_minus_L: Not really in the search PATH,
9489        # but as the default location of the library.
9490        hardcode_minus_L=yes
9491      fi
9492      ;;
9493
9494    hpux11*)
9495      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9496        case $host_cpu in
9497        hppa*64*)
9498          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9499          ;;
9500        ia64*)
9501          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9502          ;;
9503        *)
9504          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9505          ;;
9506        esac
9507      else
9508        case $host_cpu in
9509        hppa*64*)
9510          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9511          ;;
9512        ia64*)
9513          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9514          ;;
9515        *)
9516          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9517          ;;
9518        esac
9519      fi
9520      if test "$with_gnu_ld" = no; then
9521        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9522        hardcode_libdir_separator=:
9523
9524        case $host_cpu in
9525        hppa*64*|ia64*)
9526          hardcode_libdir_flag_spec_ld='+b $libdir'
9527          hardcode_direct=no
9528          hardcode_shlibpath_var=no
9529          ;;
9530        *)
9531          hardcode_direct=yes
9532          export_dynamic_flag_spec='${wl}-E'
9533
9534          # hardcode_minus_L: Not really in the search PATH,
9535          # but as the default location of the library.
9536          hardcode_minus_L=yes
9537          ;;
9538        esac
9539      fi
9540      ;;
9541
9542    irix5* | irix6* | nonstopux*)
9543      if test "$GCC" = yes; then
9544        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'
9545      else
9546        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'
9547        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9548      fi
9549      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9550      hardcode_libdir_separator=:
9551      link_all_deplibs=yes
9552      ;;
9553
9554    netbsd*)
9555      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9556        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9557      else
9558        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9559      fi
9560      hardcode_libdir_flag_spec='-R$libdir'
9561      hardcode_direct=yes
9562      hardcode_shlibpath_var=no
9563      ;;
9564
9565    newsos6)
9566      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9567      hardcode_direct=yes
9568      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9569      hardcode_libdir_separator=:
9570      hardcode_shlibpath_var=no
9571      ;;
9572
9573    openbsd*)
9574      hardcode_direct=yes
9575      hardcode_shlibpath_var=no
9576      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9577        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9578        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9579        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9580        export_dynamic_flag_spec='${wl}-E'
9581      else
9582       case $host_os in
9583         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9584           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9585           hardcode_libdir_flag_spec='-R$libdir'
9586           ;;
9587         *)
9588           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9589           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9590           ;;
9591       esac
9592      fi
9593      ;;
9594
9595    os2*)
9596      hardcode_libdir_flag_spec='-L$libdir'
9597      hardcode_minus_L=yes
9598      allow_undefined_flag=unsupported
9599      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'
9600      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9601      ;;
9602
9603    osf3*)
9604      if test "$GCC" = yes; then
9605        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9606        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'
9607      else
9608        allow_undefined_flag=' -expect_unresolved \*'
9609        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'
9610      fi
9611      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9612      hardcode_libdir_separator=:
9613      ;;
9614
9615    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9616      if test "$GCC" = yes; then
9617        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9618        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'
9619        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620      else
9621        allow_undefined_flag=' -expect_unresolved \*'
9622        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'
9623        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9624        $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'
9625
9626        # Both c and cxx compiler support -rpath directly
9627        hardcode_libdir_flag_spec='-rpath $libdir'
9628      fi
9629      hardcode_libdir_separator=:
9630      ;;
9631
9632    solaris*)
9633      no_undefined_flag=' -z text'
9634      if test "$GCC" = yes; then
9635        wlarc='${wl}'
9636        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9637        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9638          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9639      else
9640        wlarc=''
9641        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9642        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9643        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9644      fi
9645      hardcode_libdir_flag_spec='-R$libdir'
9646      hardcode_shlibpath_var=no
9647      case $host_os in
9648      solaris2.[0-5] | solaris2.[0-5].*) ;;
9649      *)
9650        # The compiler driver will combine linker options so we
9651        # cannot just pass the convience library names through
9652        # without $wl, iff we do not link with $LD.
9653        # Luckily, gcc supports the same syntax we need for Sun Studio.
9654        # Supported since Solaris 2.6 (maybe 2.5.1?)
9655        case $wlarc in
9656        '')
9657          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9658        *)
9659          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' ;;
9660        esac ;;
9661      esac
9662      link_all_deplibs=yes
9663      ;;
9664
9665    sunos4*)
9666      if test "x$host_vendor" = xsequent; then
9667        # Use $CC to link under sequent, because it throws in some extra .o
9668        # files that make .init and .fini sections work.
9669        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9670      else
9671        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9672      fi
9673      hardcode_libdir_flag_spec='-L$libdir'
9674      hardcode_direct=yes
9675      hardcode_minus_L=yes
9676      hardcode_shlibpath_var=no
9677      ;;
9678
9679    sysv4)
9680      case $host_vendor in
9681        sni)
9682          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683          hardcode_direct=yes # is this really true???
9684        ;;
9685        siemens)
9686          ## LD is ld it makes a PLAMLIB
9687          ## CC just makes a GrossModule.
9688          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9689          reload_cmds='$CC -r -o $output$reload_objs'
9690          hardcode_direct=no
9691        ;;
9692        motorola)
9693          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9695        ;;
9696      esac
9697      runpath_var='LD_RUN_PATH'
9698      hardcode_shlibpath_var=no
9699      ;;
9700
9701    sysv4.3*)
9702      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703      hardcode_shlibpath_var=no
9704      export_dynamic_flag_spec='-Bexport'
9705      ;;
9706
9707    sysv4*MP*)
9708      if test -d /usr/nec; then
9709        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710        hardcode_shlibpath_var=no
9711        runpath_var=LD_RUN_PATH
9712        hardcode_runpath_var=yes
9713        ld_shlibs=yes
9714      fi
9715      ;;
9716
9717    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9718      no_undefined_flag='${wl}-z,text'
9719      archive_cmds_need_lc=no
9720      hardcode_shlibpath_var=no
9721      runpath_var='LD_RUN_PATH'
9722
9723      if test "$GCC" = yes; then
9724        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726      else
9727        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9729      fi
9730      ;;
9731
9732    sysv5* | sco3.2v5* | sco5v6*)
9733      # Note: We can NOT use -z defs as we might desire, because we do not
9734      # link with -lc, and that would cause any symbols used from libc to
9735      # always be unresolved, which means just about no library would
9736      # ever link correctly.  If we're not using GNU ld we use -z text
9737      # though, which does catch some bad symbols but isn't as heavy-handed
9738      # as -z defs.
9739      no_undefined_flag='${wl}-z,text'
9740      allow_undefined_flag='${wl}-z,nodefs'
9741      archive_cmds_need_lc=no
9742      hardcode_shlibpath_var=no
9743      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9744      hardcode_libdir_separator=':'
9745      link_all_deplibs=yes
9746      export_dynamic_flag_spec='${wl}-Bexport'
9747      runpath_var='LD_RUN_PATH'
9748
9749      if test "$GCC" = yes; then
9750        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9751        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9752      else
9753        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9754        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9755      fi
9756      ;;
9757
9758    uts4*)
9759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760      hardcode_libdir_flag_spec='-L$libdir'
9761      hardcode_shlibpath_var=no
9762      ;;
9763
9764    *)
9765      ld_shlibs=no
9766      ;;
9767    esac
9768  fi
9769
9770echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9771echo "${ECHO_T}$ld_shlibs" >&6
9772test "$ld_shlibs" = no && can_build_shared=no
9773
9774#
9775# Do we need to explicitly link libc?
9776#
9777case "x$archive_cmds_need_lc" in
9778x|xyes)
9779  # Assume -lc should be added
9780  archive_cmds_need_lc=yes
9781
9782  if test "$enable_shared" = yes && test "$GCC" = yes; then
9783    case $archive_cmds in
9784    *'~'*)
9785      # FIXME: we may have to deal with multi-command sequences.
9786      ;;
9787    '$CC '*)
9788      # Test whether the compiler implicitly links with -lc since on some
9789      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9790      # to ld, don't add -lc before -lgcc.
9791      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9792echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9793      $rm conftest*
9794      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9795
9796      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9797  (eval $ac_compile) 2>&5
9798  ac_status=$?
9799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800  (exit $ac_status); } 2>conftest.err; then
9801        soname=conftest
9802        lib=conftest
9803        libobjs=conftest.$ac_objext
9804        deplibs=
9805        wl=$lt_prog_compiler_wl
9806        pic_flag=$lt_prog_compiler_pic
9807        compiler_flags=-v
9808        linker_flags=-v
9809        verstring=
9810        output_objdir=.
9811        libname=conftest
9812        lt_save_allow_undefined_flag=$allow_undefined_flag
9813        allow_undefined_flag=
9814        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9815  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9816  ac_status=$?
9817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818  (exit $ac_status); }
9819        then
9820          archive_cmds_need_lc=no
9821        else
9822          archive_cmds_need_lc=yes
9823        fi
9824        allow_undefined_flag=$lt_save_allow_undefined_flag
9825      else
9826        cat conftest.err 1>&5
9827      fi
9828      $rm conftest*
9829      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9830echo "${ECHO_T}$archive_cmds_need_lc" >&6
9831      ;;
9832    esac
9833  fi
9834  ;;
9835esac
9836
9837echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9838echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9839library_names_spec=
9840libname_spec='lib$name'
9841soname_spec=
9842shrext_cmds=".so"
9843postinstall_cmds=
9844postuninstall_cmds=
9845finish_cmds=
9846finish_eval=
9847shlibpath_var=
9848shlibpath_overrides_runpath=unknown
9849version_type=none
9850dynamic_linker="$host_os ld.so"
9851sys_lib_dlsearch_path_spec="/lib /usr/lib"
9852if test "$GCC" = yes; then
9853  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9854  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9855    # if the path contains ";" then we assume it to be the separator
9856    # otherwise default to the standard path separator (i.e. ":") - it is
9857    # assumed that no part of a normal pathname contains ";" but that should
9858    # okay in the real world where ";" in dirpaths is itself problematic.
9859    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9860  else
9861    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9862  fi
9863else
9864  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9865fi
9866need_lib_prefix=unknown
9867hardcode_into_libs=no
9868
9869# when you set need_version to no, make sure it does not cause -set_version
9870# flags to be left without arguments
9871need_version=unknown
9872
9873case $host_os in
9874aix3*)
9875  version_type=linux
9876  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9877  shlibpath_var=LIBPATH
9878
9879  # AIX 3 has no versioning support, so we append a major version to the name.
9880  soname_spec='${libname}${release}${shared_ext}$major'
9881  ;;
9882
9883aix4* | aix5*)
9884  version_type=linux
9885  need_lib_prefix=no
9886  need_version=no
9887  hardcode_into_libs=yes
9888  if test "$host_cpu" = ia64; then
9889    # AIX 5 supports IA64
9890    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9891    shlibpath_var=LD_LIBRARY_PATH
9892  else
9893    # With GCC up to 2.95.x, collect2 would create an import file
9894    # for dependence libraries.  The import file would start with
9895    # the line `#! .'.  This would cause the generated library to
9896    # depend on `.', always an invalid library.  This was fixed in
9897    # development snapshots of GCC prior to 3.0.
9898    case $host_os in
9899      aix4 | aix4.[01] | aix4.[01].*)
9900      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9901           echo ' yes '
9902           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9903        :
9904      else
9905        can_build_shared=no
9906      fi
9907      ;;
9908    esac
9909    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9910    # soname into executable. Probably we can add versioning support to
9911    # collect2, so additional links can be useful in future.
9912    if test "$aix_use_runtimelinking" = yes; then
9913      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9914      # instead of lib<name>.a to let people know that these are not
9915      # typical AIX shared libraries.
9916      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917    else
9918      # We preserve .a as extension for shared libraries through AIX4.2
9919      # and later when we are not doing run time linking.
9920      library_names_spec='${libname}${release}.a $libname.a'
9921      soname_spec='${libname}${release}${shared_ext}$major'
9922    fi
9923    shlibpath_var=LIBPATH
9924  fi
9925  ;;
9926
9927amigaos*)
9928  library_names_spec='$libname.ixlibrary $libname.a'
9929  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9930  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'
9931  ;;
9932
9933beos*)
9934  library_names_spec='${libname}${shared_ext}'
9935  dynamic_linker="$host_os ld.so"
9936  shlibpath_var=LIBRARY_PATH
9937  ;;
9938
9939bsdi[45]*)
9940  version_type=linux
9941  need_version=no
9942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943  soname_spec='${libname}${release}${shared_ext}$major'
9944  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9945  shlibpath_var=LD_LIBRARY_PATH
9946  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9947  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9948  # the default ld.so.conf also contains /usr/contrib/lib and
9949  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9950  # libtool to hard-code these into programs
9951  ;;
9952
9953cygwin* | mingw* | pw32*)
9954  version_type=windows
9955  shrext_cmds=".dll"
9956  need_version=no
9957  need_lib_prefix=no
9958
9959  case $GCC,$host_os in
9960  yes,cygwin* | yes,mingw* | yes,pw32*)
9961    library_names_spec='$libname.dll.a'
9962    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9963    postinstall_cmds='base_file=`basename \${file}`~
9964      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9965      dldir=$destdir/`dirname \$dlpath`~
9966      test -d \$dldir || mkdir -p \$dldir~
9967      $install_prog $dir/$dlname \$dldir/$dlname~
9968      chmod a+x \$dldir/$dlname'
9969    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9970      dlpath=$dir/\$dldll~
9971       $rm \$dlpath'
9972    shlibpath_overrides_runpath=yes
9973
9974    case $host_os in
9975    cygwin*)
9976      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9977      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9978      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9979      ;;
9980    mingw*)
9981      # MinGW DLLs use traditional 'lib' prefix
9982      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9983      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9984      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9985        # It is most probably a Windows format PATH printed by
9986        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9987        # path with ; separators, and with drive letters. We can handle the
9988        # drive letters (cygwin fileutils understands them), so leave them,
9989        # especially as we might pass files found there to a mingw objdump,
9990        # which wouldn't understand a cygwinified path. Ahh.
9991        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9992      else
9993        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9994      fi
9995      ;;
9996    pw32*)
9997      # pw32 DLLs use 'pw' prefix rather than 'lib'
9998      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9999      ;;
10000    esac
10001    ;;
10002
10003  *)
10004    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10005    ;;
10006  esac
10007  dynamic_linker='Win32 ld.exe'
10008  # FIXME: first we should search . and the directory the executable is in
10009  shlibpath_var=PATH
10010  ;;
10011
10012darwin* | rhapsody*)
10013  dynamic_linker="$host_os dyld"
10014  version_type=darwin
10015  need_lib_prefix=no
10016  need_version=no
10017  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10018  soname_spec='${libname}${release}${major}$shared_ext'
10019  shlibpath_overrides_runpath=yes
10020  shlibpath_var=DYLD_LIBRARY_PATH
10021  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10022  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10023  if test "$GCC" = yes; then
10024    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"`
10025  else
10026    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10027  fi
10028  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10029  ;;
10030
10031dgux*)
10032  version_type=linux
10033  need_lib_prefix=no
10034  need_version=no
10035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10036  soname_spec='${libname}${release}${shared_ext}$major'
10037  shlibpath_var=LD_LIBRARY_PATH
10038  ;;
10039
10040freebsd1*)
10041  dynamic_linker=no
10042  ;;
10043
10044kfreebsd*-gnu)
10045  version_type=linux
10046  need_lib_prefix=no
10047  need_version=no
10048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10049  soname_spec='${libname}${release}${shared_ext}$major'
10050  shlibpath_var=LD_LIBRARY_PATH
10051  shlibpath_overrides_runpath=no
10052  hardcode_into_libs=yes
10053  dynamic_linker='GNU ld.so'
10054  ;;
10055
10056freebsd* | dragonfly*)
10057  # DragonFly does not have aout.  When/if they implement a new
10058  # versioning mechanism, adjust this.
10059  if test -x /usr/bin/objformat; then
10060    objformat=`/usr/bin/objformat`
10061  else
10062    case $host_os in
10063    freebsd[123]*) objformat=aout ;;
10064    *) objformat=elf ;;
10065    esac
10066  fi
10067  version_type=freebsd-$objformat
10068  case $version_type in
10069    freebsd-elf*)
10070      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10071      need_version=no
10072      need_lib_prefix=no
10073      ;;
10074    freebsd-*)
10075      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10076      need_version=yes
10077      ;;
10078  esac
10079  shlibpath_var=LD_LIBRARY_PATH
10080  case $host_os in
10081  freebsd2*)
10082    shlibpath_overrides_runpath=yes
10083    ;;
10084  freebsd3.[01]* | freebsdelf3.[01]*)
10085    shlibpath_overrides_runpath=yes
10086    hardcode_into_libs=yes
10087    ;;
10088  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10089  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10090    shlibpath_overrides_runpath=no
10091    hardcode_into_libs=yes
10092    ;;
10093  freebsd*) # from 4.6 on
10094    shlibpath_overrides_runpath=yes
10095    hardcode_into_libs=yes
10096    ;;
10097  esac
10098  ;;
10099
10100gnu*)
10101  version_type=linux
10102  need_lib_prefix=no
10103  need_version=no
10104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10105  soname_spec='${libname}${release}${shared_ext}$major'
10106  shlibpath_var=LD_LIBRARY_PATH
10107  hardcode_into_libs=yes
10108  ;;
10109
10110hpux9* | hpux10* | hpux11*)
10111  # Give a soname corresponding to the major version so that dld.sl refuses to
10112  # link against other versions.
10113  version_type=sunos
10114  need_lib_prefix=no
10115  need_version=no
10116  case $host_cpu in
10117  ia64*)
10118    shrext_cmds='.so'
10119    hardcode_into_libs=yes
10120    dynamic_linker="$host_os dld.so"
10121    shlibpath_var=LD_LIBRARY_PATH
10122    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10123    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124    soname_spec='${libname}${release}${shared_ext}$major'
10125    if test "X$HPUX_IA64_MODE" = X32; then
10126      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10127    else
10128      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10129    fi
10130    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10131    ;;
10132   hppa*64*)
10133     shrext_cmds='.sl'
10134     hardcode_into_libs=yes
10135     dynamic_linker="$host_os dld.sl"
10136     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10137     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10138     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10139     soname_spec='${libname}${release}${shared_ext}$major'
10140     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10141     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10142     ;;
10143   *)
10144    shrext_cmds='.sl'
10145    dynamic_linker="$host_os dld.sl"
10146    shlibpath_var=SHLIB_PATH
10147    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10148    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149    soname_spec='${libname}${release}${shared_ext}$major'
10150    ;;
10151  esac
10152  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10153  postinstall_cmds='chmod 555 $lib'
10154  ;;
10155
10156interix3*)
10157  version_type=linux
10158  need_lib_prefix=no
10159  need_version=no
10160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10161  soname_spec='${libname}${release}${shared_ext}$major'
10162  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10163  shlibpath_var=LD_LIBRARY_PATH
10164  shlibpath_overrides_runpath=no
10165  hardcode_into_libs=yes
10166  ;;
10167
10168irix5* | irix6* | nonstopux*)
10169  case $host_os in
10170    nonstopux*) version_type=nonstopux ;;
10171    *)
10172        if test "$lt_cv_prog_gnu_ld" = yes; then
10173                version_type=linux
10174        else
10175                version_type=irix
10176        fi ;;
10177  esac
10178  need_lib_prefix=no
10179  need_version=no
10180  soname_spec='${libname}${release}${shared_ext}$major'
10181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10182  case $host_os in
10183  irix5* | nonstopux*)
10184    libsuff= shlibsuff=
10185    ;;
10186  *)
10187    case $LD in # libtool.m4 will add one of these switches to LD
10188    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10189      libsuff= shlibsuff= libmagic=32-bit;;
10190    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10191      libsuff=32 shlibsuff=N32 libmagic=N32;;
10192    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10193      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10194    *) libsuff= shlibsuff= libmagic=never-match;;
10195    esac
10196    ;;
10197  esac
10198  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10199  shlibpath_overrides_runpath=no
10200  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10201  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10202  hardcode_into_libs=yes
10203  ;;
10204
10205# No shared lib support for Linux oldld, aout, or coff.
10206linux*oldld* | linux*aout* | linux*coff*)
10207  dynamic_linker=no
10208  ;;
10209
10210# This must be Linux ELF.
10211linux*)
10212  version_type=linux
10213  need_lib_prefix=no
10214  need_version=no
10215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216  soname_spec='${libname}${release}${shared_ext}$major'
10217  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10218  shlibpath_var=LD_LIBRARY_PATH
10219  shlibpath_overrides_runpath=no
10220  # This implies no fast_install, which is unacceptable.
10221  # Some rework will be needed to allow for fast_install
10222  # before this can be enabled.
10223  hardcode_into_libs=yes
10224
10225  # Append ld.so.conf contents to the search path
10226  if test -f /etc/ld.so.conf; then
10227    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' ' '`
10228    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10229  fi
10230
10231  # We used to test for /lib/ld.so.1 and disable shared libraries on
10232  # powerpc, because MkLinux only supported shared libraries with the
10233  # GNU dynamic linker.  Since this was broken with cross compilers,
10234  # most powerpc-linux boxes support dynamic linking these days and
10235  # people can always --disable-shared, the test was removed, and we
10236  # assume the GNU/Linux dynamic linker is in use.
10237  dynamic_linker='GNU/Linux ld.so'
10238  ;;
10239
10240knetbsd*-gnu)
10241  version_type=linux
10242  need_lib_prefix=no
10243  need_version=no
10244  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10245  soname_spec='${libname}${release}${shared_ext}$major'
10246  shlibpath_var=LD_LIBRARY_PATH
10247  shlibpath_overrides_runpath=no
10248  hardcode_into_libs=yes
10249  dynamic_linker='GNU ld.so'
10250  ;;
10251
10252netbsd*)
10253  version_type=sunos
10254  need_lib_prefix=no
10255  need_version=no
10256  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10257    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10258    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10259    dynamic_linker='NetBSD (a.out) ld.so'
10260  else
10261    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10262    soname_spec='${libname}${release}${shared_ext}$major'
10263    dynamic_linker='NetBSD ld.elf_so'
10264  fi
10265  shlibpath_var=LD_LIBRARY_PATH
10266  shlibpath_overrides_runpath=yes
10267  hardcode_into_libs=yes
10268  ;;
10269
10270newsos6)
10271  version_type=linux
10272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273  shlibpath_var=LD_LIBRARY_PATH
10274  shlibpath_overrides_runpath=yes
10275  ;;
10276
10277nto-qnx*)
10278  version_type=linux
10279  need_lib_prefix=no
10280  need_version=no
10281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10282  soname_spec='${libname}${release}${shared_ext}$major'
10283  shlibpath_var=LD_LIBRARY_PATH
10284  shlibpath_overrides_runpath=yes
10285  ;;
10286
10287openbsd*)
10288  version_type=sunos
10289  sys_lib_dlsearch_path_spec="/usr/lib"
10290  need_lib_prefix=no
10291  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10292  case $host_os in
10293    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10294    *)                         need_version=no  ;;
10295  esac
10296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10297  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10298  shlibpath_var=LD_LIBRARY_PATH
10299  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10300    case $host_os in
10301      openbsd2.[89] | openbsd2.[89].*)
10302        shlibpath_overrides_runpath=no
10303        ;;
10304      *)
10305        shlibpath_overrides_runpath=yes
10306        ;;
10307      esac
10308  else
10309    shlibpath_overrides_runpath=yes
10310  fi
10311  ;;
10312
10313os2*)
10314  libname_spec='$name'
10315  shrext_cmds=".dll"
10316  need_lib_prefix=no
10317  library_names_spec='$libname${shared_ext} $libname.a'
10318  dynamic_linker='OS/2 ld.exe'
10319  shlibpath_var=LIBPATH
10320  ;;
10321
10322osf3* | osf4* | osf5*)
10323  version_type=osf
10324  need_lib_prefix=no
10325  need_version=no
10326  soname_spec='${libname}${release}${shared_ext}$major'
10327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328  shlibpath_var=LD_LIBRARY_PATH
10329  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10330  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10331  ;;
10332
10333solaris*)
10334  version_type=linux
10335  need_lib_prefix=no
10336  need_version=no
10337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10338  soname_spec='${libname}${release}${shared_ext}$major'
10339  shlibpath_var=LD_LIBRARY_PATH
10340  shlibpath_overrides_runpath=yes
10341  hardcode_into_libs=yes
10342  # ldd complains unless libraries are executable
10343  postinstall_cmds='chmod +x $lib'
10344  ;;
10345
10346sunos4*)
10347  version_type=sunos
10348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10349  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10350  shlibpath_var=LD_LIBRARY_PATH
10351  shlibpath_overrides_runpath=yes
10352  if test "$with_gnu_ld" = yes; then
10353    need_lib_prefix=no
10354  fi
10355  need_version=yes
10356  ;;
10357
10358sysv4 | sysv4.3*)
10359  version_type=linux
10360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361  soname_spec='${libname}${release}${shared_ext}$major'
10362  shlibpath_var=LD_LIBRARY_PATH
10363  case $host_vendor in
10364    sni)
10365      shlibpath_overrides_runpath=no
10366      need_lib_prefix=no
10367      export_dynamic_flag_spec='${wl}-Blargedynsym'
10368      runpath_var=LD_RUN_PATH
10369      ;;
10370    siemens)
10371      need_lib_prefix=no
10372      ;;
10373    motorola)
10374      need_lib_prefix=no
10375      need_version=no
10376      shlibpath_overrides_runpath=no
10377      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10378      ;;
10379  esac
10380  ;;
10381
10382sysv4*MP*)
10383  if test -d /usr/nec ;then
10384    version_type=linux
10385    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10386    soname_spec='$libname${shared_ext}.$major'
10387    shlibpath_var=LD_LIBRARY_PATH
10388  fi
10389  ;;
10390
10391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10392  version_type=freebsd-elf
10393  need_lib_prefix=no
10394  need_version=no
10395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10396  soname_spec='${libname}${release}${shared_ext}$major'
10397  shlibpath_var=LD_LIBRARY_PATH
10398  hardcode_into_libs=yes
10399  if test "$with_gnu_ld" = yes; then
10400    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10401    shlibpath_overrides_runpath=no
10402  else
10403    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10404    shlibpath_overrides_runpath=yes
10405    case $host_os in
10406      sco3.2v5*)
10407        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10408        ;;
10409    esac
10410  fi
10411  sys_lib_dlsearch_path_spec='/usr/lib'
10412  ;;
10413
10414uts4*)
10415  version_type=linux
10416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417  soname_spec='${libname}${release}${shared_ext}$major'
10418  shlibpath_var=LD_LIBRARY_PATH
10419  ;;
10420
10421*)
10422  dynamic_linker=no
10423  ;;
10424esac
10425echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10426echo "${ECHO_T}$dynamic_linker" >&6
10427test "$dynamic_linker" = no && can_build_shared=no
10428
10429variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10430if test "$GCC" = yes; then
10431  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10432fi
10433
10434echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10435echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10436hardcode_action=
10437if test -n "$hardcode_libdir_flag_spec" || \
10438   test -n "$runpath_var" || \
10439   test "X$hardcode_automatic" = "Xyes" ; then
10440
10441  # We can hardcode non-existant directories.
10442  if test "$hardcode_direct" != no &&
10443     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10444     # have to relink, otherwise we might link with an installed library
10445     # when we should be linking with a yet-to-be-installed one
10446     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10447     test "$hardcode_minus_L" != no; then
10448    # Linking always hardcodes the temporary library directory.
10449    hardcode_action=relink
10450  else
10451    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10452    hardcode_action=immediate
10453  fi
10454else
10455  # We cannot hardcode anything, or else we can only hardcode existing
10456  # directories.
10457  hardcode_action=unsupported
10458fi
10459echo "$as_me:$LINENO: result: $hardcode_action" >&5
10460echo "${ECHO_T}$hardcode_action" >&6
10461
10462if test "$hardcode_action" = relink; then
10463  # Fast installation is not supported
10464  enable_fast_install=no
10465elif test "$shlibpath_overrides_runpath" = yes ||
10466     test "$enable_shared" = no; then
10467  # Fast installation is not necessary
10468  enable_fast_install=needless
10469fi
10470
10471striplib=
10472old_striplib=
10473echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10474echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10475if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10476  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10477  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10478  echo "$as_me:$LINENO: result: yes" >&5
10479echo "${ECHO_T}yes" >&6
10480else
10481# FIXME - insert some real tests, host_os isn't really good enough
10482  case $host_os in
10483   darwin*)
10484       if test -n "$STRIP" ; then
10485         striplib="$STRIP -x"
10486         echo "$as_me:$LINENO: result: yes" >&5
10487echo "${ECHO_T}yes" >&6
10488       else
10489  echo "$as_me:$LINENO: result: no" >&5
10490echo "${ECHO_T}no" >&6
10491fi
10492       ;;
10493   *)
10494  echo "$as_me:$LINENO: result: no" >&5
10495echo "${ECHO_T}no" >&6
10496    ;;
10497  esac
10498fi
10499
10500if test "x$enable_dlopen" != xyes; then
10501  enable_dlopen=unknown
10502  enable_dlopen_self=unknown
10503  enable_dlopen_self_static=unknown
10504else
10505  lt_cv_dlopen=no
10506  lt_cv_dlopen_libs=
10507
10508  case $host_os in
10509  beos*)
10510    lt_cv_dlopen="load_add_on"
10511    lt_cv_dlopen_libs=
10512    lt_cv_dlopen_self=yes
10513    ;;
10514
10515  mingw* | pw32*)
10516    lt_cv_dlopen="LoadLibrary"
10517    lt_cv_dlopen_libs=
10518   ;;
10519
10520  cygwin*)
10521    lt_cv_dlopen="dlopen"
10522    lt_cv_dlopen_libs=
10523   ;;
10524
10525  darwin*)
10526  # if libdl is installed we need to link against it
10527    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10528echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10529if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10530  echo $ECHO_N "(cached) $ECHO_C" >&6
10531else
10532  ac_check_lib_save_LIBS=$LIBS
10533LIBS="-ldl  $LIBS"
10534cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h.  */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h.  */
10540
10541/* Override any gcc2 internal prototype to avoid an error.  */
10542#ifdef __cplusplus
10543extern "C"
10544#endif
10545/* We use char because int might match the return type of a gcc2
10546   builtin and then its argument prototype would still apply.  */
10547char dlopen ();
10548int
10549main ()
10550{
10551dlopen ();
10552  ;
10553  return 0;
10554}
10555_ACEOF
10556rm -f conftest.$ac_objext conftest$ac_exeext
10557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10558  (eval $ac_link) 2>conftest.er1
10559  ac_status=$?
10560  grep -v '^ *+' conftest.er1 >conftest.err
10561  rm -f conftest.er1
10562  cat conftest.err >&5
10563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564  (exit $ac_status); } &&
10565         { ac_try='test -z "$ac_c_werror_flag"
10566                         || test ! -s conftest.err'
10567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568  (eval $ac_try) 2>&5
10569  ac_status=$?
10570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571  (exit $ac_status); }; } &&
10572         { ac_try='test -s conftest$ac_exeext'
10573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574  (eval $ac_try) 2>&5
10575  ac_status=$?
10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577  (exit $ac_status); }; }; then
10578  ac_cv_lib_dl_dlopen=yes
10579else
10580  echo "$as_me: failed program was:" >&5
10581sed 's/^/| /' conftest.$ac_ext >&5
10582
10583ac_cv_lib_dl_dlopen=no
10584fi
10585rm -f conftest.err conftest.$ac_objext \
10586      conftest$ac_exeext conftest.$ac_ext
10587LIBS=$ac_check_lib_save_LIBS
10588fi
10589echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10590echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10591if test $ac_cv_lib_dl_dlopen = yes; then
10592  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10593else
10594
10595    lt_cv_dlopen="dyld"
10596    lt_cv_dlopen_libs=
10597    lt_cv_dlopen_self=yes
10598
10599fi
10600
10601   ;;
10602
10603  *)
10604    echo "$as_me:$LINENO: checking for shl_load" >&5
10605echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10606if test "${ac_cv_func_shl_load+set}" = set; then
10607  echo $ECHO_N "(cached) $ECHO_C" >&6
10608else
10609  cat >conftest.$ac_ext <<_ACEOF
10610/* confdefs.h.  */
10611_ACEOF
10612cat confdefs.h >>conftest.$ac_ext
10613cat >>conftest.$ac_ext <<_ACEOF
10614/* end confdefs.h.  */
10615/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10616   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10617#define shl_load innocuous_shl_load
10618
10619/* System header to define __stub macros and hopefully few prototypes,
10620    which can conflict with char shl_load (); below.
10621    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10622    <limits.h> exists even on freestanding compilers.  */
10623
10624#ifdef __STDC__
10625# include <limits.h>
10626#else
10627# include <assert.h>
10628#endif
10629
10630#undef shl_load
10631
10632/* Override any gcc2 internal prototype to avoid an error.  */
10633#ifdef __cplusplus
10634extern "C"
10635{
10636#endif
10637/* We use char because int might match the return type of a gcc2
10638   builtin and then its argument prototype would still apply.  */
10639char shl_load ();
10640/* The GNU C library defines this for functions which it implements
10641    to always fail with ENOSYS.  Some functions are actually named
10642    something starting with __ and the normal name is an alias.  */
10643#if defined (__stub_shl_load) || defined (__stub___shl_load)
10644choke me
10645#else
10646char (*f) () = shl_load;
10647#endif
10648#ifdef __cplusplus
10649}
10650#endif
10651
10652int
10653main ()
10654{
10655return f != shl_load;
10656  ;
10657  return 0;
10658}
10659_ACEOF
10660rm -f conftest.$ac_objext conftest$ac_exeext
10661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662  (eval $ac_link) 2>conftest.er1
10663  ac_status=$?
10664  grep -v '^ *+' conftest.er1 >conftest.err
10665  rm -f conftest.er1
10666  cat conftest.err >&5
10667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668  (exit $ac_status); } &&
10669         { ac_try='test -z "$ac_c_werror_flag"
10670                         || test ! -s conftest.err'
10671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672  (eval $ac_try) 2>&5
10673  ac_status=$?
10674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675  (exit $ac_status); }; } &&
10676         { ac_try='test -s conftest$ac_exeext'
10677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678  (eval $ac_try) 2>&5
10679  ac_status=$?
10680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681  (exit $ac_status); }; }; then
10682  ac_cv_func_shl_load=yes
10683else
10684  echo "$as_me: failed program was:" >&5
10685sed 's/^/| /' conftest.$ac_ext >&5
10686
10687ac_cv_func_shl_load=no
10688fi
10689rm -f conftest.err conftest.$ac_objext \
10690      conftest$ac_exeext conftest.$ac_ext
10691fi
10692echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10693echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10694if test $ac_cv_func_shl_load = yes; then
10695  lt_cv_dlopen="shl_load"
10696else
10697  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10698echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10699if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10700  echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702  ac_check_lib_save_LIBS=$LIBS
10703LIBS="-ldld  $LIBS"
10704cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h.  */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h.  */
10710
10711/* Override any gcc2 internal prototype to avoid an error.  */
10712#ifdef __cplusplus
10713extern "C"
10714#endif
10715/* We use char because int might match the return type of a gcc2
10716   builtin and then its argument prototype would still apply.  */
10717char shl_load ();
10718int
10719main ()
10720{
10721shl_load ();
10722  ;
10723  return 0;
10724}
10725_ACEOF
10726rm -f conftest.$ac_objext conftest$ac_exeext
10727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728  (eval $ac_link) 2>conftest.er1
10729  ac_status=$?
10730  grep -v '^ *+' conftest.er1 >conftest.err
10731  rm -f conftest.er1
10732  cat conftest.err >&5
10733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734  (exit $ac_status); } &&
10735         { ac_try='test -z "$ac_c_werror_flag"
10736                         || test ! -s conftest.err'
10737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738  (eval $ac_try) 2>&5
10739  ac_status=$?
10740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741  (exit $ac_status); }; } &&
10742         { ac_try='test -s conftest$ac_exeext'
10743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744  (eval $ac_try) 2>&5
10745  ac_status=$?
10746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747  (exit $ac_status); }; }; then
10748  ac_cv_lib_dld_shl_load=yes
10749else
10750  echo "$as_me: failed program was:" >&5
10751sed 's/^/| /' conftest.$ac_ext >&5
10752
10753ac_cv_lib_dld_shl_load=no
10754fi
10755rm -f conftest.err conftest.$ac_objext \
10756      conftest$ac_exeext conftest.$ac_ext
10757LIBS=$ac_check_lib_save_LIBS
10758fi
10759echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10760echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10761if test $ac_cv_lib_dld_shl_load = yes; then
10762  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10763else
10764  echo "$as_me:$LINENO: checking for dlopen" >&5
10765echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10766if test "${ac_cv_func_dlopen+set}" = set; then
10767  echo $ECHO_N "(cached) $ECHO_C" >&6
10768