source: stable/1.10/configure @ 1417

Last change on this file since 1417 was 1417, checked in by stefan, 11 years ago

temporarily committing release candidate to stable

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