source: trunk/Clp/configure @ 1572

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

rerun autotools

  • Property svn:executable set to *
File size: 779.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp trunk.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Clp trunk'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA REQUIREDPACKAGES COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Clp trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Clp trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-clp compile this project (Clp) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --disable-dependency-tracking  speeds up one-time build
1091  --enable-dependency-tracking   do not reject slow dependency extractors
1092  --enable-maintainer-mode  enable make rules and dependencies not useful
1093                          (and sometimes confusing) to the casual installer
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099  --enable-pkg-config     use pkg-config if available (default is yes)
1100  --enable-gnu-packages   compile with GNU packages (disabled by default)
1101
1102Optional Packages:
1103  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1104  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1105  --with-clp-verbosity specify the debug verbosity level for project Clp
1106  --with-clp-checklevel specify the sanity check level for project Clp
1107  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1108  --with-pic              try to use only PIC/non-PIC objects [default=use
1109                          both]
1110  --with-tags[=TAGS]
1111                          include additional configurations [automatic]
1112  --with-coin-instdir     prefix of installation directory for precompiled
1113                          COIN packages
1114  --with-coinutils-lib linker flags for using module CoinUtils
1115  --with-coinutils-incdir directory with header files for using module
1116                          CoinUtils
1117  --with-coinutils-datadir
1118                          directory with data files for using module CoinUtils
1119  --with-osi-lib linker flags for using module Osi
1120  --with-osi-incdir directory with header files for using module Osi
1121  --with-osi-datadir directory with data files for using module Osi
1122  --with-ositests-lib linker flags for using module OsiTests
1123  --with-ositests-incdir directory with header files for using module OsiTests
1124  --with-ositests-datadir directory with data files for using module OsiTests
1125  --with-sample-lib linker flags for using module Sample
1126  --with-sample-incdir directory with header files for using module Sample
1127  --with-sample-datadir directory with data files for using module Sample
1128  --with-netlib-lib linker flags for using module Netlib
1129  --with-netlib-incdir directory with header files for using module Netlib
1130  --with-netlib-datadir directory with data files for using module Netlib
1131  --with-wsmp             specify WSMP library
1132
1133Some influential environment variables:
1134  CDEFS       Additional -D flags to be used when compiling C code.
1135  ADD_CFLAGS  Additional C compiler options
1136  DBG_CFLAGS  Debug C compiler options
1137  OPT_CFLAGS  Optimize C compiler options
1138  CC          C compiler command
1139  CFLAGS      C compiler flags
1140  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1141              nonstandard directory <lib dir>
1142  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1143              headers in a nonstandard directory <include dir>
1144  MPICC       C MPI Compiler
1145  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1146  ADD_CXXFLAGS
1147              Additional C++ compiler options
1148  DBG_CXXFLAGS
1149              Debug C++ compiler options
1150  OPT_CXXFLAGS
1151              Optimize C++ compiler options
1152  CXX         C++ compiler command
1153  CXXFLAGS    C++ compiler flags
1154  MPICXX      C++ MPI Compiler
1155  CPP         C preprocessor
1156  CXXCPP      C++ preprocessor
1157  F77         Fortran 77 compiler command
1158  FFLAGS      Fortran 77 compiler flags
1159  PKG_CONFIG  path to pkg-config utility
1160
1161Use these variables to override the choices made by `configure' or to help
1162it to find libraries and programs with nonstandard names/locations.
1163
1164Report bugs to <clp@list.coin-or.org>.
1165_ACEOF
1166fi
1167
1168if test "$ac_init_help" = "recursive"; then
1169  # If there are subdirs, report their specific --help.
1170  ac_popdir=`pwd`
1171  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1172    test -d $ac_dir || continue
1173    ac_builddir=.
1174
1175if test "$ac_dir" != .; then
1176  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1177  # A "../" for each directory in $ac_dir_suffix.
1178  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1179else
1180  ac_dir_suffix= ac_top_builddir=
1181fi
1182
1183case $srcdir in
1184  .)  # No --srcdir option.  We are building in place.
1185    ac_srcdir=.
1186    if test -z "$ac_top_builddir"; then
1187       ac_top_srcdir=.
1188    else
1189       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1190    fi ;;
1191  [\\/]* | ?:[\\/]* )  # Absolute path.
1192    ac_srcdir=$srcdir$ac_dir_suffix;
1193    ac_top_srcdir=$srcdir ;;
1194  *) # Relative path.
1195    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1196    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1197esac
1198
1199# Do not use `cd foo && pwd` to compute absolute paths, because
1200# the directories may not exist.
1201case `pwd` in
1202.) ac_abs_builddir="$ac_dir";;
1203*)
1204  case "$ac_dir" in
1205  .) ac_abs_builddir=`pwd`;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1207  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_top_builddir=${ac_top_builddir}.;;
1212*)
1213  case ${ac_top_builddir}. in
1214  .) ac_abs_top_builddir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1216  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1217  esac;;
1218esac
1219case $ac_abs_builddir in
1220.) ac_abs_srcdir=$ac_srcdir;;
1221*)
1222  case $ac_srcdir in
1223  .) ac_abs_srcdir=$ac_abs_builddir;;
1224  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1225  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1226  esac;;
1227esac
1228case $ac_abs_builddir in
1229.) ac_abs_top_srcdir=$ac_top_srcdir;;
1230*)
1231  case $ac_top_srcdir in
1232  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1233  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1234  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1235  esac;;
1236esac
1237
1238    cd $ac_dir
1239    # Check for guested configure; otherwise get Cygnus style configure.
1240    if test -f $ac_srcdir/configure.gnu; then
1241      echo
1242      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1243    elif test -f $ac_srcdir/configure; then
1244      echo
1245      $SHELL $ac_srcdir/configure  --help=recursive
1246    elif test -f $ac_srcdir/configure.ac ||
1247           test -f $ac_srcdir/configure.in; then
1248      echo
1249      $ac_configure --help
1250    else
1251      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1252    fi
1253    cd $ac_popdir
1254  done
1255fi
1256
1257test -n "$ac_init_help" && exit 0
1258if $ac_init_version; then
1259  cat <<\_ACEOF
1260Clp configure trunk
1261generated by GNU Autoconf 2.59
1262
1263Copyright (C) 2003 Free Software Foundation, Inc.
1264This configure script is free software; the Free Software Foundation
1265gives unlimited permission to copy, distribute and modify it.
1266
1267
1268Copyright 2006 International Business Machines and others.
1269All Rights Reserved.
1270This file is part of the open source package Coin which is distributed
1271under the Common Public License.
1272_ACEOF
1273  exit 0
1274fi
1275exec 5>config.log
1276cat >&5 <<_ACEOF
1277This file contains any messages produced by compilers while
1278running configure, to aid debugging if configure makes a mistake.
1279
1280It was created by Clp $as_me trunk, which was
1281generated by GNU Autoconf 2.59.  Invocation command line was
1282
1283  $ $0 $@
1284
1285_ACEOF
1286{
1287cat <<_ASUNAME
1288## --------- ##
1289## Platform. ##
1290## --------- ##
1291
1292hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1293uname -m = `(uname -m) 2>/dev/null || echo unknown`
1294uname -r = `(uname -r) 2>/dev/null || echo unknown`
1295uname -s = `(uname -s) 2>/dev/null || echo unknown`
1296uname -v = `(uname -v) 2>/dev/null || echo unknown`
1297
1298/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1299/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1300
1301/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1302/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1303/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1304hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1305/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1306/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1307/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1308
1309_ASUNAME
1310
1311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1312for as_dir in $PATH
1313do
1314  IFS=$as_save_IFS
1315  test -z "$as_dir" && as_dir=.
1316  echo "PATH: $as_dir"
1317done
1318
1319} >&5
1320
1321cat >&5 <<_ACEOF
1322
1323
1324## ----------- ##
1325## Core tests. ##
1326## ----------- ##
1327
1328_ACEOF
1329
1330
1331# Keep a trace of the command line.
1332# Strip out --no-create and --no-recursion so they do not pile up.
1333# Strip out --silent because we don't want to record it for future runs.
1334# Also quote any args containing shell meta-characters.
1335# Make two passes to allow for proper duplicate-argument suppression.
1336ac_configure_args=
1337ac_configure_args0=
1338ac_configure_args1=
1339ac_sep=
1340ac_must_keep_next=false
1341for ac_pass in 1 2
1342do
1343  for ac_arg
1344  do
1345    case $ac_arg in
1346    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1347    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1348    | -silent | --silent | --silen | --sile | --sil)
1349      continue ;;
1350    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1351      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1352    esac
1353    case $ac_pass in
1354    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1355    2)
1356      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1357      if test $ac_must_keep_next = true; then
1358        ac_must_keep_next=false # Got value, back to normal.
1359      else
1360        case $ac_arg in
1361          *=* | --config-cache | -C | -disable-* | --disable-* \
1362          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1363          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1364          | -with-* | --with-* | -without-* | --without-* | --x)
1365            case "$ac_configure_args0 " in
1366              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1367            esac
1368            ;;
1369          -* ) ac_must_keep_next=true ;;
1370        esac
1371      fi
1372      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1373      # Get rid of the leading space.
1374      ac_sep=" "
1375      ;;
1376    esac
1377  done
1378done
1379$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1380$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1381
1382# When interrupted or exit'd, cleanup temporary files, and complete
1383# config.log.  We remove comments because anyway the quotes in there
1384# would cause problems or look ugly.
1385# WARNING: Be sure not to use single quotes in there, as some shells,
1386# such as our DU 5.0 friend, will then `close' the trap.
1387trap 'exit_status=$?
1388  # Save into config.log some information that might help in debugging.
1389  {
1390    echo
1391
1392    cat <<\_ASBOX
1393## ---------------- ##
1394## Cache variables. ##
1395## ---------------- ##
1396_ASBOX
1397    echo
1398    # The following way of writing the cache mishandles newlines in values,
1399{
1400  (set) 2>&1 |
1401    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1402    *ac_space=\ *)
1403      sed -n \
1404        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1405          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1406      ;;
1407    *)
1408      sed -n \
1409        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1410      ;;
1411    esac;
1412}
1413    echo
1414
1415    cat <<\_ASBOX
1416## ----------------- ##
1417## Output variables. ##
1418## ----------------- ##
1419_ASBOX
1420    echo
1421    for ac_var in $ac_subst_vars
1422    do
1423      eval ac_val=$`echo $ac_var`
1424      echo "$ac_var='"'"'$ac_val'"'"'"
1425    done | sort
1426    echo
1427
1428    if test -n "$ac_subst_files"; then
1429      cat <<\_ASBOX
1430## ------------- ##
1431## Output files. ##
1432## ------------- ##
1433_ASBOX
1434      echo
1435      for ac_var in $ac_subst_files
1436      do
1437        eval ac_val=$`echo $ac_var`
1438        echo "$ac_var='"'"'$ac_val'"'"'"
1439      done | sort
1440      echo
1441    fi
1442
1443    if test -s confdefs.h; then
1444      cat <<\_ASBOX
1445## ----------- ##
1446## confdefs.h. ##
1447## ----------- ##
1448_ASBOX
1449      echo
1450      sed "/^$/d" confdefs.h | sort
1451      echo
1452    fi
1453    test "$ac_signal" != 0 &&
1454      echo "$as_me: caught signal $ac_signal"
1455    echo "$as_me: exit $exit_status"
1456  } >&5
1457  rm -f core *.core &&
1458  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1459    exit $exit_status
1460     ' 0
1461for ac_signal in 1 2 13 15; do
1462  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1463done
1464ac_signal=0
1465
1466# confdefs.h avoids OS command line length limits that DEFS can exceed.
1467rm -rf conftest* confdefs.h
1468# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1469echo >confdefs.h
1470
1471# Predefined preprocessor variables.
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_NAME "$PACKAGE_NAME"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1480_ACEOF
1481
1482
1483cat >>confdefs.h <<_ACEOF
1484#define PACKAGE_VERSION "$PACKAGE_VERSION"
1485_ACEOF
1486
1487
1488cat >>confdefs.h <<_ACEOF
1489#define PACKAGE_STRING "$PACKAGE_STRING"
1490_ACEOF
1491
1492
1493cat >>confdefs.h <<_ACEOF
1494#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1495_ACEOF
1496
1497
1498# Let the site file select an alternate cache file if it wants to.
1499# Prefer explicitly selected file to automatically selected ones.
1500if test -z "$CONFIG_SITE"; then
1501  if test "x$prefix" != xNONE; then
1502    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1503  else
1504    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1505  fi
1506fi
1507for ac_site_file in $CONFIG_SITE; do
1508  if test -r "$ac_site_file"; then
1509    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1510echo "$as_me: loading site script $ac_site_file" >&6;}
1511    sed 's/^/| /' "$ac_site_file" >&5
1512    . "$ac_site_file"
1513  fi
1514done
1515
1516if test -r "$cache_file"; then
1517  # Some versions of bash will fail to source /dev/null (special
1518  # files actually), so we avoid doing that.
1519  if test -f "$cache_file"; then
1520    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1521echo "$as_me: loading cache $cache_file" >&6;}
1522    case $cache_file in
1523      [\\/]* | ?:[\\/]* ) . $cache_file;;
1524      *)                      . ./$cache_file;;
1525    esac
1526  fi
1527else
1528  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1529echo "$as_me: creating cache $cache_file" >&6;}
1530  >$cache_file
1531fi
1532
1533# Check that the precious variables saved in the cache have kept the same
1534# value.
1535ac_cache_corrupted=false
1536for ac_var in `(set) 2>&1 |
1537               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1538  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1539  eval ac_new_set=\$ac_env_${ac_var}_set
1540  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1541  eval ac_new_val="\$ac_env_${ac_var}_value"
1542  case $ac_old_set,$ac_new_set in
1543    set,)
1544      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1545echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1546      ac_cache_corrupted=: ;;
1547    ,set)
1548      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1549echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1550      ac_cache_corrupted=: ;;
1551    ,);;
1552    *)
1553      if test "x$ac_old_val" != "x$ac_new_val"; then
1554        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1555echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1556        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1557echo "$as_me:   former value:  $ac_old_val" >&2;}
1558        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1559echo "$as_me:   current value: $ac_new_val" >&2;}
1560        ac_cache_corrupted=:
1561      fi;;
1562  esac
1563  # Pass precious variables to config.status.
1564  if test "$ac_new_set" = set; then
1565    case $ac_new_val in
1566    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1567      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1568    *) ac_arg=$ac_var=$ac_new_val ;;
1569    esac
1570    case " $ac_configure_args " in
1571      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1572      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1573    esac
1574  fi
1575done
1576if $ac_cache_corrupted; then
1577  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1578echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1579  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1580echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1581   { (exit 1); exit 1; }; }
1582fi
1583
1584ac_ext=c
1585ac_cpp='$CPP $CPPFLAGS'
1586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619# List one file in the package so that the configure script can test
1620# whether the package is actually there
1621
1622
1623# Where should everything be installed by default?  Here, we want it
1624# to be installed directly in 'bin', 'lib', 'include' subdirectories
1625# of the directory where configure is run.  The default would be
1626# /usr/local.
1627
1628
1629#############################################################################
1630#                         Standard build tool stuff                         #
1631#############################################################################
1632
1633# Get the system type
1634ac_aux_dir=
1635for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1636  if test -f $ac_dir/install-sh; then
1637    ac_aux_dir=$ac_dir
1638    ac_install_sh="$ac_aux_dir/install-sh -c"
1639    break
1640  elif test -f $ac_dir/install.sh; then
1641    ac_aux_dir=$ac_dir
1642    ac_install_sh="$ac_aux_dir/install.sh -c"
1643    break
1644  elif test -f $ac_dir/shtool; then
1645    ac_aux_dir=$ac_dir
1646    ac_install_sh="$ac_aux_dir/shtool install -c"
1647    break
1648  fi
1649done
1650if test -z "$ac_aux_dir"; then
1651  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1652echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1653   { (exit 1); exit 1; }; }
1654fi
1655ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1656ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1657ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1658
1659# Make sure we can run config.sub.
1660$ac_config_sub sun4 >/dev/null 2>&1 ||
1661  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1662echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1663   { (exit 1); exit 1; }; }
1664
1665echo "$as_me:$LINENO: checking build system type" >&5
1666echo $ECHO_N "checking build system type... $ECHO_C" >&6
1667if test "${ac_cv_build+set}" = set; then
1668  echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670  ac_cv_build_alias=$build_alias
1671test -z "$ac_cv_build_alias" &&
1672  ac_cv_build_alias=`$ac_config_guess`
1673test -z "$ac_cv_build_alias" &&
1674  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1675echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1676   { (exit 1); exit 1; }; }
1677ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1678  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1679echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1680   { (exit 1); exit 1; }; }
1681
1682fi
1683echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1684echo "${ECHO_T}$ac_cv_build" >&6
1685build=$ac_cv_build
1686build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1687build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1688build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1689
1690
1691
1692# If this project depends on external projects, the Externals file in
1693# the source root directory contains definition of where to find those
1694# externals.  The following macro ensures that those externals are
1695# retrieved by svn if they are not there yet.
1696# Initialize the ADDLIBS variable
1697ADDLIBS="-lm $LIBS"
1698
1699
1700# As backup, we make sure we don't loose an FLIBS if it has been set
1701# by the user
1702save_FLIBS="$FLIBS"
1703
1704# Initialize the FADDLIBS variable (which is to be used with a fortran
1705# compiler and will not include FLIBS)
1706FADDLIBS="$LIBS"
1707
1708
1709# A useful makefile conditional that is always false
1710
1711
1712if false; then
1713  ALWAYS_FALSE_TRUE=
1714  ALWAYS_FALSE_FALSE='#'
1715else
1716  ALWAYS_FALSE_TRUE='#'
1717  ALWAYS_FALSE_FALSE=
1718fi
1719
1720
1721# We set the following variable so that we know later in AC_COIN_FINALIZE
1722# that we are in a project main directory
1723coin_projectdir=yes
1724
1725# Set the project's version number
1726if test "xClp" != x; then
1727
1728cat >>confdefs.h <<_ACEOF
1729#define CLP_VERSION "$PACKAGE_VERSION"
1730_ACEOF
1731
1732fi
1733
1734# Set the project's SVN revision number
1735# Extract the first word of "svnversion", so it can be a program name with args.
1736set dummy svnversion; ac_word=$2
1737echo "$as_me:$LINENO: checking for $ac_word" >&5
1738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739if test "${ac_cv_prog_have_svnversion+set}" = set; then
1740  echo $ECHO_N "(cached) $ECHO_C" >&6
1741else
1742  if test -n "$have_svnversion"; then
1743  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1744else
1745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746for as_dir in $PATH
1747do
1748  IFS=$as_save_IFS
1749  test -z "$as_dir" && as_dir=.
1750  for ac_exec_ext in '' $ac_executable_extensions; do
1751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752    ac_cv_prog_have_svnversion="yes"
1753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754    break 2
1755  fi
1756done
1757done
1758
1759  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1760fi
1761fi
1762have_svnversion=$ac_cv_prog_have_svnversion
1763if test -n "$have_svnversion"; then
1764  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1765echo "${ECHO_T}$have_svnversion" >&6
1766else
1767  echo "$as_me:$LINENO: result: no" >&5
1768echo "${ECHO_T}no" >&6
1769fi
1770
1771if test "x$have_svnversion" = xyes && test "xClp" != x; then
1772
1773  CLP_SVN_REV=`cd $srcdir/$coin_has_clp ; svnversion`
1774  if test $CLP_SVN_REV != exported; then
1775
1776cat >>confdefs.h <<_ACEOF
1777#define CLP_SVN_REV "$CLP_SVN_REV"
1778_ACEOF
1779
1780  fi
1781fi
1782
1783# Capture libtool library version, if given.
1784
1785
1786
1787# Check if user wants to produce debugging code
1788
1789echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1790echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1791
1792# Check whether --enable-debug or --disable-debug was given.
1793if test "${enable_debug+set}" = set; then
1794  enableval="$enable_debug"
1795  case "${enableval}" in
1796   yes) coin_debug_compile=true
1797        if test "${enable_shared+set}" = set; then :; else
1798          enable_shared=no
1799        fi
1800        ;;
1801   no)  coin_debug_compile=false
1802        ;;
1803   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1804echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1805   { (exit 1); exit 1; }; }
1806        ;;
1807esac
1808else
1809  coin_debug_compile=false
1810fi;
1811
1812# Check whether --enable-debug-clp or --disable-debug-clp was given.
1813if test "${enable_debug_clp+set}" = set; then
1814  enableval="$enable_debug_clp"
1815  case "${enableval}" in
1816    yes) coin_debug_compile=true
1817         enable_shared=no
1818         ;;
1819    no)  coin_debug_compile=false
1820         ;;
1821    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1822echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1823   { (exit 1); exit 1; }; }
1824         ;;
1825 esac
1826else
1827  :
1828fi;
1829
1830 # m4_ifvaln([Clp],
1831
1832if test $coin_debug_compile = true; then
1833  echo "$as_me:$LINENO: result: yes" >&5
1834echo "${ECHO_T}yes" >&6
1835else
1836  echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840
1841# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1842if test "${with_clp_verbosity+set}" = set; then
1843  withval="$with_clp_verbosity"
1844  if test "$withval" = yes; then
1845                withval=1
1846              fi
1847              coin_clp_verbosity=$withval
1848else
1849  coin_clp_verbosity=0
1850fi;
1851
1852cat >>confdefs.h <<_ACEOF
1853#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1854_ACEOF
1855
1856
1857
1858# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1859if test "${with_clp_checklevel+set}" = set; then
1860  withval="$with_clp_checklevel"
1861  if test "$withval" = yes; then
1862                withval=1
1863              fi
1864              coin_clp_checklevel=$withval
1865else
1866  coin_clp_checklevel=0
1867fi;
1868
1869cat >>confdefs.h <<_ACEOF
1870#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1871_ACEOF
1872
1873
1874# We use the following variable to have a string with the upper case
1875# version of the project name
1876COIN_PRJCT=CLP
1877
1878
1879 # m4_ifvaln([Clp],
1880
1881
1882
1883# Get the name of the C++ compiler and appropriate compiler options
1884case $build in
1885  *-mingw*)
1886    if test "${LD+set}" = set; then :; else
1887      LD=link
1888    fi
1889    ;;
1890 esac
1891 case $enable_doscompile in
1892   msvc)
1893     if test "x${LD+set}" = xset; then :; else
1894       LD=link
1895     fi
1896     ;;
1897 esac
1898
1899
1900 # Check whether --enable-doscompile or --disable-doscompile was given.
1901if test "${enable_doscompile+set}" = set; then
1902  enableval="$enable_doscompile"
1903  if test "$enable_doscompile" != no; then
1904     case $build in
1905       *-cygwin* | *-mingw*) ;;
1906       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1907echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1908   { (exit 1); exit 1; }; } ;;
1909     esac
1910   fi
1911else
1912  enable_doscompile=no
1913fi;
1914 case "$enable_doscompile" in
1915   mingw)
1916     case $build in
1917       *-mingw*) enable_doscompile=no ;;
1918     esac
1919     ;;
1920   msvc|no) ;;
1921   yes) enable_doscompile=mingw ;;
1922   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1923                    Try configure --help=recursive." >&5
1924echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1925                    Try configure --help=recursive." >&2;}
1926   { (exit 1); exit 1; }; }
1927      ;;
1928  esac
1929  if test "$enable_doscompile" != no ; then
1930    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1931echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1932  fi
1933
1934
1935
1936
1937ac_ext=c
1938ac_cpp='$CPP $CPPFLAGS'
1939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942
1943
1944# For consistency, we set the C compiler to the same value of the C++
1945# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1946if test x"$CXX" != x; then
1947  case "$CXX" in
1948    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1949      if test x"$CC" = x; then
1950        CC="$CXX"
1951        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1952echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1953      fi
1954      ;;
1955  esac
1956fi
1957
1958
1959
1960
1961
1962
1963coin_has_cc=yes
1964
1965save_cflags="$CFLAGS"
1966
1967# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1968# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1969# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1970# compiler. In this case, put cc after gcc.
1971
1972case $build in
1973  *-cygwin* | *-mingw*)
1974             if test "$enable_doscompile" = msvc ; then
1975               comps="icl cl"
1976             else
1977               comps="gcc cl"
1978             fi ;;
1979  *-*-solaris*)
1980             # Extract the first word of "cc", so it can be a program name with args.
1981set dummy cc; ac_word=$2
1982echo "$as_me:$LINENO: checking for $ac_word" >&5
1983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1984if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1985  echo $ECHO_N "(cached) $ECHO_C" >&6
1986else
1987  if test -n "$sol_cc_compiler"; then
1988  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1989else
1990  ac_prog_rejected=no
1991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994  IFS=$as_save_IFS
1995  test -z "$as_dir" && as_dir=.
1996  for ac_exec_ext in '' $ac_executable_extensions; do
1997  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1998    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1999       ac_prog_rejected=yes
2000       continue
2001     fi
2002    ac_cv_prog_sol_cc_compiler="cc"
2003    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004    break 2
2005  fi
2006done
2007done
2008
2009if test $ac_prog_rejected = yes; then
2010  # We found a bogon in the path, so make sure we never use it.
2011  set dummy $ac_cv_prog_sol_cc_compiler
2012  shift
2013  if test $# != 0; then
2014    # We chose a different compiler from the bogus one.
2015    # However, it has the same basename, so the bogon will be chosen
2016    # first if we set sol_cc_compiler to just the basename; use the full file name.
2017    shift
2018    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2019  fi
2020fi
2021fi
2022fi
2023sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2024if test -n "$sol_cc_compiler"; then
2025  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2026echo "${ECHO_T}$sol_cc_compiler" >&6
2027else
2028  echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6
2030fi
2031
2032             if test "$sol_cc_compiler" = "cc" ; then
2033               comps="cc xlc gcc pgcc icc"
2034             else
2035               comps="xlc gcc pgcc icc cc"
2036             fi
2037             ;;
2038  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2039  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2040esac
2041
2042# We delete the cached value, since the test might not have been
2043# performed with our choice of compilers earlier
2044$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2045# AC_MSG_NOTICE([C compiler candidates: $comps])
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051if test -n "$ac_tool_prefix"; then
2052  for ac_prog in $comps
2053  do
2054    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2055set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2056echo "$as_me:$LINENO: checking for $ac_word" >&5
2057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058if test "${ac_cv_prog_CC+set}" = set; then
2059  echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061  if test -n "$CC"; then
2062  ac_cv_prog_CC="$CC" # Let the user override the test.
2063else
2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065for as_dir in $PATH
2066do
2067  IFS=$as_save_IFS
2068  test -z "$as_dir" && as_dir=.
2069  for ac_exec_ext in '' $ac_executable_extensions; do
2070  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073    break 2
2074  fi
2075done
2076done
2077
2078fi
2079fi
2080CC=$ac_cv_prog_CC
2081if test -n "$CC"; then
2082  echo "$as_me:$LINENO: result: $CC" >&5
2083echo "${ECHO_T}$CC" >&6
2084else
2085  echo "$as_me:$LINENO: result: no" >&5
2086echo "${ECHO_T}no" >&6
2087fi
2088
2089    test -n "$CC" && break
2090  done
2091fi
2092if test -z "$CC"; then
2093  ac_ct_CC=$CC
2094  for ac_prog in $comps
2095do
2096  # Extract the first word of "$ac_prog", so it can be a program name with args.
2097set dummy $ac_prog; ac_word=$2
2098echo "$as_me:$LINENO: checking for $ac_word" >&5
2099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101  echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103  if test -n "$ac_ct_CC"; then
2104  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105else
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109  IFS=$as_save_IFS
2110  test -z "$as_dir" && as_dir=.
2111  for ac_exec_ext in '' $ac_executable_extensions; do
2112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113    ac_cv_prog_ac_ct_CC="$ac_prog"
2114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115    break 2
2116  fi
2117done
2118done
2119
2120fi
2121fi
2122ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123if test -n "$ac_ct_CC"; then
2124  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125echo "${ECHO_T}$ac_ct_CC" >&6
2126else
2127  echo "$as_me:$LINENO: result: no" >&5
2128echo "${ECHO_T}no" >&6
2129fi
2130
2131  test -n "$ac_ct_CC" && break
2132done
2133
2134  CC=$ac_ct_CC
2135fi
2136
2137
2138test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2139See \`config.log' for more details." >&5
2140echo "$as_me: error: no acceptable C compiler found in \$PATH
2141See \`config.log' for more details." >&2;}
2142   { (exit 1); exit 1; }; }
2143
2144# Provide some information about the compiler.
2145echo "$as_me:$LINENO:" \
2146     "checking for C compiler version" >&5
2147ac_compiler=`set X $ac_compile; echo $2`
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2149  (eval $ac_compiler --version </dev/null >&5) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }
2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2154  (eval $ac_compiler -v </dev/null >&5) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }
2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2159  (eval $ac_compiler -V </dev/null >&5) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }
2163
2164cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179ac_clean_files_save=$ac_clean_files
2180ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181# Try to create an executable without -o first, disregard a.out.
2182# It will help us diagnose broken compilers, and finding out an intuition
2183# of exeext.
2184echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2188  (eval $ac_link_default) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; then
2192  # Find the output, starting from the most likely.  This scheme is
2193# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2194# resort.
2195
2196# Be careful to initialize this variable, since it used to be cached.
2197# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2198ac_cv_exeext=
2199# b.out is created by i960 compilers.
2200for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2201do
2202  test -f "$ac_file" || continue
2203  case $ac_file in
2204    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2205        ;;
2206    conftest.$ac_ext )
2207        # This is the source file.
2208        ;;
2209    [ab].out )
2210        # We found the default executable, but exeext='' is most
2211        # certainly right.
2212        break;;
2213    *.* )
2214        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215        # FIXME: I believe we export ac_cv_exeext for Libtool,
2216        # but it would be cool to find out if it's true.  Does anybody
2217        # maintain Libtool? --akim.
2218        export ac_cv_exeext
2219        break;;
2220    * )
2221        break;;
2222  esac
2223done
2224else
2225  echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229See \`config.log' for more details." >&5
2230echo "$as_me: error: C compiler cannot create executables
2231See \`config.log' for more details." >&2;}
2232   { (exit 77); exit 77; }; }
2233fi
2234
2235ac_exeext=$ac_cv_exeext
2236echo "$as_me:$LINENO: result: $ac_file" >&5
2237echo "${ECHO_T}$ac_file" >&6
2238
2239# Check the compiler produces executables we can run.  If not, either
2240# the compiler is broken, or we cross compile.
2241echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2243# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244# If not cross compiling, check that we can run a simple program.
2245if test "$cross_compiling" != yes; then
2246  if { ac_try='./$ac_file'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; }; then
2252    cross_compiling=no
2253  else
2254    if test "$cross_compiling" = maybe; then
2255        cross_compiling=yes
2256    else
2257        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258If you meant to cross compile, use \`--host'.
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: cannot run C compiled programs.
2261If you meant to cross compile, use \`--host'.
2262See \`config.log' for more details." >&2;}
2263   { (exit 1); exit 1; }; }
2264    fi
2265  fi
2266fi
2267echo "$as_me:$LINENO: result: yes" >&5
2268echo "${ECHO_T}yes" >&6
2269
2270rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271ac_clean_files=$ac_clean_files_save
2272# Check the compiler produces executables we can run.  If not, either
2273# the compiler is broken, or we cross compile.
2274echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2276echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277echo "${ECHO_T}$cross_compiling" >&6
2278
2279echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2282  (eval $ac_link) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; then
2286  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2288# work properly (i.e., refer to `conftest.exe'), while it won't with
2289# `rm'.
2290for ac_file in conftest.exe conftest conftest.*; do
2291  test -f "$ac_file" || continue
2292  case $ac_file in
2293    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2294    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295          export ac_cv_exeext
2296          break;;
2297    * ) break;;
2298  esac
2299done
2300else
2301  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2304See \`config.log' for more details." >&2;}
2305   { (exit 1); exit 1; }; }
2306fi
2307
2308rm -f conftest$ac_cv_exeext
2309echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2310echo "${ECHO_T}$ac_cv_exeext" >&6
2311
2312rm -f conftest.$ac_ext
2313EXEEXT=$ac_cv_exeext
2314ac_exeext=$EXEEXT
2315echo "$as_me:$LINENO: checking for suffix of object files" >&5
2316echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2317if test "${ac_cv_objext+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  cat >conftest.$ac_ext <<_ACEOF
2321/* confdefs.h.  */
2322_ACEOF
2323cat confdefs.h >>conftest.$ac_ext
2324cat >>conftest.$ac_ext <<_ACEOF
2325/* end confdefs.h.  */
2326
2327int
2328main ()
2329{
2330
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335rm -f conftest.o conftest.obj
2336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337  (eval $ac_compile) 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; then
2341  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2342  case $ac_file in
2343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2344    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345       break;;
2346  esac
2347done
2348else
2349  echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&5
2354echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&2;}
2356   { (exit 1); exit 1; }; }
2357fi
2358
2359rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360fi
2361echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362echo "${ECHO_T}$ac_cv_objext" >&6
2363OBJEXT=$ac_cv_objext
2364ac_objext=$OBJEXT
2365echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2367if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368  echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370  cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h.  */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h.  */
2376
2377int
2378main ()
2379{
2380#ifndef __GNUC__
2381       choke me
2382#endif
2383
2384  ;
2385  return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext
2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390  (eval $ac_compile) 2>conftest.er1
2391  ac_status=$?
2392  grep -v '^ *+' conftest.er1 >conftest.err
2393  rm -f conftest.er1
2394  cat conftest.err >&5
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); } &&
2397         { ac_try='test -z "$ac_c_werror_flag"
2398                         || test ! -s conftest.err'
2399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400  (eval $ac_try) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); }; } &&
2404         { ac_try='test -s conftest.$ac_objext'
2405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406  (eval $ac_try) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; }; then
2410  ac_compiler_gnu=yes
2411else
2412  echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415ac_compiler_gnu=no
2416fi
2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
2420fi
2421echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423GCC=`test $ac_compiler_gnu = yes && echo yes`
2424ac_test_CFLAGS=${CFLAGS+set}
2425ac_save_CFLAGS=$CFLAGS
2426CFLAGS="-g"
2427echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2429if test "${ac_cv_prog_cc_g+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432  cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h.  */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
2437/* end confdefs.h.  */
2438
2439int
2440main ()
2441{
2442
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449  (eval $ac_compile) 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } &&
2456         { ac_try='test -z "$ac_c_werror_flag"
2457                         || test ! -s conftest.err'
2458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459  (eval $ac_try) 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }; } &&
2463         { ac_try='test -s conftest.$ac_objext'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; }; then
2469  ac_cv_prog_cc_g=yes
2470else
2471  echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474ac_cv_prog_cc_g=no
2475fi
2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477fi
2478echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480if test "$ac_test_CFLAGS" = set; then
2481  CFLAGS=$ac_save_CFLAGS
2482elif test $ac_cv_prog_cc_g = yes; then
2483  if test "$GCC" = yes; then
2484    CFLAGS="-g -O2"
2485  else
2486    CFLAGS="-g"
2487  fi
2488else
2489  if test "$GCC" = yes; then
2490    CFLAGS="-O2"
2491  else
2492    CFLAGS=
2493  fi
2494fi
2495echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498  echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500  ac_cv_prog_cc_stdc=no
2501ac_save_CC=$CC
2502cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h.  */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h.  */
2508#include <stdarg.h>
2509#include <stdio.h>
2510#include <sys/types.h>
2511#include <sys/stat.h>
2512/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2513struct buf { int x; };
2514FILE * (*rcsopen) (struct buf *, struct stat *, int);
2515static char *e (p, i)
2516     char **p;
2517     int i;
2518{
2519  return p[i];
2520}
2521static char *f (char * (*g) (char **, int), char **p, ...)
2522{
2523  char *s;
2524  va_list v;
2525  va_start (v,p);
2526  s = g (p, va_arg (v,int));
2527  va_end (v);
2528  return s;
2529}
2530
2531/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2532   function prototypes and stuff, but not '\xHH' hex character constants.
2533   These don't provoke an error unfortunately, instead are silently treated
2534   as 'x'.  The following induces an error, until -std1 is added to get
2535   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2536   array size at least.  It's necessary to write '\x00'==0 to get something
2537   that's true only with -std1.  */
2538int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539
2540int test (int i, double x);
2541struct s1 {int (*f) (int a);};
2542struct s2 {int (*f) (double a);};
2543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544int argc;
2545char **argv;
2546int
2547main ()
2548{
2549return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554# Don't try gcc -ansi; that turns off useful extensions and
2555# breaks some systems' header files.
2556# AIX                   -qlanglvl=ansi
2557# Ultrix and OSF/1      -std1
2558# HP-UX 10.20 and later -Ae
2559# HP-UX older versions  -Aa -D_HPUX_SOURCE
2560# SVR4                  -Xc -D__EXTENSIONS__
2561for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562do
2563  CC="$ac_save_CC $ac_arg"
2564  rm -f conftest.$ac_objext
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566  (eval $ac_compile) 2>conftest.er1
2567  ac_status=$?
2568  grep -v '^ *+' conftest.er1 >conftest.err
2569  rm -f conftest.er1
2570  cat conftest.err >&5
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); } &&
2573         { ac_try='test -z "$ac_c_werror_flag"
2574                         || test ! -s conftest.err'
2575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576  (eval $ac_try) 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; } &&
2580         { ac_try='test -s conftest.$ac_objext'
2581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582  (eval $ac_try) 2>&5
2583  ac_status=$?
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); }; }; then
2586  ac_cv_prog_cc_stdc=$ac_arg
2587break
2588else
2589  echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592fi
2593rm -f conftest.err conftest.$ac_objext
2594done
2595rm -f conftest.$ac_ext conftest.$ac_objext
2596CC=$ac_save_CC
2597
2598fi
2599
2600case "x$ac_cv_prog_cc_stdc" in
2601  x|xno)
2602    echo "$as_me:$LINENO: result: none needed" >&5
2603echo "${ECHO_T}none needed" >&6 ;;
2604  *)
2605    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2606echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2607    CC="$CC $ac_cv_prog_cc_stdc" ;;
2608esac
2609
2610# Some people use a C++ compiler to compile C.  Since we use `exit',
2611# in C++ we need to declare it.  In case someone uses the same compiler
2612# for both compiling C and C++ we need to have the C++ compiler decide
2613# the declaration of exit, since it's the most demanding environment.
2614cat >conftest.$ac_ext <<_ACEOF
2615#ifndef __cplusplus
2616  choke me
2617#endif
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621  (eval $ac_compile) 2>conftest.er1
2622  ac_status=$?
2623  grep -v '^ *+' conftest.er1 >conftest.err
2624  rm -f conftest.er1
2625  cat conftest.err >&5
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); } &&
2628         { ac_try='test -z "$ac_c_werror_flag"
2629                         || test ! -s conftest.err'
2630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631  (eval $ac_try) 2>&5
2632  ac_status=$?
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); }; } &&
2635         { ac_try='test -s conftest.$ac_objext'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; }; then
2641  for ac_declaration in \
2642   '' \
2643   'extern "C" void std::exit (int) throw (); using std::exit;' \
2644   'extern "C" void std::exit (int); using std::exit;' \
2645   'extern "C" void exit (int) throw ();' \
2646   'extern "C" void exit (int);' \
2647   'void exit (int);'
2648do
2649  cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h.  */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h.  */
2655$ac_declaration
2656#include <stdlib.h>
2657int
2658main ()
2659{
2660exit (42);
2661  ;
2662  return 0;
2663}
2664_ACEOF
2665rm -f conftest.$ac_objext
2666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667  (eval $ac_compile) 2>conftest.er1
2668  ac_status=$?
2669  grep -v '^ *+' conftest.er1 >conftest.err
2670  rm -f conftest.er1
2671  cat conftest.err >&5
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); } &&
2674         { ac_try='test -z "$ac_c_werror_flag"
2675                         || test ! -s conftest.err'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; } &&
2681         { ac_try='test -s conftest.$ac_objext'
2682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683  (eval $ac_try) 2>&5
2684  ac_status=$?
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); }; }; then
2687  :
2688else
2689  echo "$as_me: failed program was:" >&5
2690sed 's/^/| /' conftest.$ac_ext >&5
2691
2692continue
2693fi
2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695  cat >conftest.$ac_ext <<_ACEOF
2696/* confdefs.h.  */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h.  */
2701$ac_declaration
2702int
2703main ()
2704{
2705exit (42);
2706  ;
2707  return 0;
2708}
2709_ACEOF
2710rm -f conftest.$ac_objext
2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712  (eval $ac_compile) 2>conftest.er1
2713  ac_status=$?
2714  grep -v '^ *+' conftest.er1 >conftest.err
2715  rm -f conftest.er1
2716  cat conftest.err >&5
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); } &&
2719         { ac_try='test -z "$ac_c_werror_flag"
2720                         || test ! -s conftest.err'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; } &&
2726         { ac_try='test -s conftest.$ac_objext'
2727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728  (eval $ac_try) 2>&5
2729  ac_status=$?
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); }; }; then
2732  break
2733else
2734  echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737fi
2738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739done
2740rm -f conftest*
2741if test -n "$ac_declaration"; then
2742  echo '#ifdef __cplusplus' >>confdefs.h
2743  echo $ac_declaration      >>confdefs.h
2744  echo '#endif'             >>confdefs.h
2745fi
2746
2747else
2748  echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751fi
2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753ac_ext=c
2754ac_cpp='$CPP $CPPFLAGS'
2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759if test -z "$CC" ; then
2760  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2761echo "$as_me: error: Failed to find a C compiler!" >&2;}
2762   { (exit 1); exit 1; }; }
2763fi
2764# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2765case "$CC" in
2766  cl* | */cl* | CL* | */CL* )
2767    if test "$ac_cv_prog_cc_g" = yes ; then
2768      ac_cv_prog_cc_g=no
2769      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2770echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2771    fi ;;
2772esac
2773CFLAGS="$save_cflags"
2774
2775# Check if a project specific CFLAGS variable has been set
2776if test x$COIN_PRJCT != x; then
2777  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2778  if test x$coin_tmp = xset; then
2779    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2780  fi
2781fi
2782
2783if test x"$CFLAGS" = x; then
2784
2785  coin_add_cflags=
2786  coin_opt_cflags=
2787  coin_dbg_cflags=
2788  coin_warn_cflags=
2789
2790  if test "$GCC" = "yes"; then
2791    case "$CC" in
2792      icc* | */icc*)
2793        ;;
2794      *)
2795        coin_opt_cflags="-O3"
2796        coin_add_cflags="-pipe"
2797        coin_dbg_cflags="-g"
2798        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2799        case $build in
2800          *-darwin*)
2801            ;;
2802          *)
2803            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2804            ;;
2805        esac
2806        case $enable_doscompile in
2807          mingw)
2808            CFLAGS="-mno-cygwin"
2809            cat >conftest.$ac_ext <<_ACEOF
2810/* confdefs.h.  */
2811_ACEOF
2812cat confdefs.h >>conftest.$ac_ext
2813cat >>conftest.$ac_ext <<_ACEOF
2814/* end confdefs.h.  */
2815
2816int
2817main ()
2818{
2819int i=0; i++;
2820  ;
2821  return 0;
2822}
2823_ACEOF
2824rm -f conftest.$ac_objext conftest$ac_exeext
2825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2826  (eval $ac_link) 2>conftest.er1
2827  ac_status=$?
2828  grep -v '^ *+' conftest.er1 >conftest.err
2829  rm -f conftest.er1
2830  cat conftest.err >&5
2831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832  (exit $ac_status); } &&
2833         { ac_try='test -z "$ac_c_werror_flag"
2834                         || test ! -s conftest.err'
2835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836  (eval $ac_try) 2>&5
2837  ac_status=$?
2838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839  (exit $ac_status); }; } &&
2840         { ac_try='test -s conftest$ac_exeext'
2841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842  (eval $ac_try) 2>&5
2843  ac_status=$?
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); }; }; then
2846  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2847else
2848  echo "$as_me: failed program was:" >&5
2849sed 's/^/| /' conftest.$ac_ext >&5
2850
2851fi
2852rm -f conftest.err conftest.$ac_objext \
2853      conftest$ac_exeext conftest.$ac_ext
2854            CFLAGS=
2855          ;;
2856        esac
2857    esac
2858  fi
2859  if test -z "$coin_opt_cflags"; then
2860    case $build in
2861      *-cygwin* | *-mingw*)
2862        case "$CC" in
2863          cl* | */cl* | CL* | */CL*)
2864            coin_opt_cflags='-MT -O2'
2865            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2866            coin_dbg_cflags='-MTd'
2867            ;;
2868          icl* | */icl* | ICL* | */ICL*)
2869            coin_opt_cflags='-MT -Ox'
2870            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2871            coin_dbg_cflags='-MTd -debug'
2872            ;;
2873        esac
2874        ;;
2875      *-linux-*)
2876        case "$CC" in
2877          icc* | */icc*)
2878            coin_opt_cflags="-O3 -ip -mp1"
2879            coin_add_cflags=""
2880            coin_dbg_cflags="-g"
2881            # Check if -i_dynamic is necessary (for new glibc library)
2882            CFLAGS=
2883            cat >conftest.$ac_ext <<_ACEOF
2884/* confdefs.h.  */
2885_ACEOF
2886cat confdefs.h >>conftest.$ac_ext
2887cat >>conftest.$ac_ext <<_ACEOF
2888/* end confdefs.h.  */
2889
2890int
2891main ()
2892{
2893int i=0; i++;
2894  ;
2895  return 0;
2896}
2897_ACEOF
2898rm -f conftest.$ac_objext conftest$ac_exeext
2899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2900  (eval $ac_link) 2>conftest.er1
2901  ac_status=$?
2902  grep -v '^ *+' conftest.er1 >conftest.err
2903  rm -f conftest.er1
2904  cat conftest.err >&5
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); } &&
2907         { ac_try='test -z "$ac_c_werror_flag"
2908                         || test ! -s conftest.err'
2909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910  (eval $ac_try) 2>&5
2911  ac_status=$?
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); }; } &&
2914         { ac_try='test -s conftest$ac_exeext'
2915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916  (eval $ac_try) 2>&5
2917  ac_status=$?
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); }; }; then
2920  :
2921else
2922  echo "$as_me: failed program was:" >&5
2923sed 's/^/| /' conftest.$ac_ext >&5
2924
2925coin_add_cflags="-i_dynamic $coin_add_cflags"
2926fi
2927rm -f conftest.err conftest.$ac_objext \
2928      conftest$ac_exeext conftest.$ac_ext
2929            ;;
2930          pgcc* | */pgcc*)
2931            coin_opt_cflags="-fast"
2932            coin_add_cflags="-Kieee -pc 64"
2933            coin_dbg_cflags="-g"
2934            ;;
2935        esac
2936        ;;
2937      *-ibm-*)
2938        case "$CC" in
2939          xlc* | */xlc* | mpxlc* | */mpxlc*)
2940            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2941            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2942            coin_dbg_cflags="-g"
2943          ;;
2944        esac
2945        ;;
2946      *-hp-*)
2947        coin_opt_cflags="-O"
2948        coin_add_cflags="-Ae"
2949        coin_dbg_cflags="-g"
2950        ;;
2951      *-*-solaris*)
2952        coin_opt_cflags="-xO4"
2953        coin_dbg_cflags="-g"
2954        ;;
2955      *-sgi-*)
2956        coin_opt_cflags="-O -OPT:Olimit=0"
2957        coin_dbg_cflags="-g"
2958        ;;
2959    esac
2960  fi
2961
2962  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2963    coin_dbg_cflags="-g"
2964  fi
2965
2966  if test -z "$coin_opt_cflags"; then
2967    # Try if -O option works if nothing else is set
2968    CFLAGS="-O"
2969    cat >conftest.$ac_ext <<_ACEOF
2970/* confdefs.h.  */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h.  */
2975
2976int
2977main ()
2978{
2979int i=0; i++;
2980  ;
2981  return 0;
2982}
2983_ACEOF
2984rm -f conftest.$ac_objext conftest$ac_exeext
2985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986  (eval $ac_link) 2>conftest.er1
2987  ac_status=$?
2988  grep -v '^ *+' conftest.er1 >conftest.err
2989  rm -f conftest.er1
2990  cat conftest.err >&5
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); } &&
2993         { ac_try='test -z "$ac_c_werror_flag"
2994                         || test ! -s conftest.err'
2995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996  (eval $ac_try) 2>&5
2997  ac_status=$?
2998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999  (exit $ac_status); }; } &&
3000         { ac_try='test -s conftest$ac_exeext'
3001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002  (eval $ac_try) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; }; then
3006  coin_opt_cflags="-O"
3007else
3008  echo "$as_me: failed program was:" >&5
3009sed 's/^/| /' conftest.$ac_ext >&5
3010
3011fi
3012rm -f conftest.err conftest.$ac_objext \
3013      conftest$ac_exeext conftest.$ac_ext
3014  fi
3015
3016  # if PM doesn't want the warning messages, take them out
3017  if test x"$coin_skip_warn_cflags" = xyes; then
3018    coin_warn_cflags=
3019  fi
3020
3021  if test x${DBG_CFLAGS+set} != xset; then
3022    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3023  fi
3024  if test x${OPT_CFLAGS+set} != xset; then
3025    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3026  fi
3027
3028  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3029  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3030
3031  if test "$coin_debug_compile" = "true"; then
3032    CFLAGS="$DBG_CFLAGS"
3033  else
3034    CFLAGS="$OPT_CFLAGS"
3035  fi
3036else
3037  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3038  if test x${DBG_CFLAGS+set} != xset; then
3039    DBG_CFLAGS="$CFLAGS"
3040  fi
3041  if test x${OPT_CFLAGS+set} != xset; then
3042    OPT_CFLAGS="$CFLAGS"
3043  fi
3044fi
3045
3046# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3047
3048case "$CFLAGS" in
3049  *-mno-cygwin*)
3050    if test x${CPPFLAGS+set} != xset ; then
3051      CPPFLAGS="-mno-cygwin"
3052    else
3053      case "$CPPFLAGS" in
3054        *-mno-cygwin*)
3055          ;;
3056        *)
3057          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3058          ;;
3059      esac
3060    fi ;;
3061esac
3062
3063# Try if CFLAGS works
3064save_CFLAGS="$CFLAGS"
3065cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h.  */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h.  */
3071
3072int
3073main ()
3074{
3075int i=0; i++;
3076  ;
3077  return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext conftest$ac_exeext
3081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3082  (eval $ac_link) 2>conftest.er1
3083  ac_status=$?
3084  grep -v '^ *+' conftest.er1 >conftest.err
3085  rm -f conftest.er1
3086  cat conftest.err >&5
3087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088  (exit $ac_status); } &&
3089         { ac_try='test -z "$ac_c_werror_flag"
3090                         || test ! -s conftest.err'
3091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092  (eval $ac_try) 2>&5
3093  ac_status=$?
3094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095  (exit $ac_status); }; } &&
3096         { ac_try='test -s conftest$ac_exeext'
3097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098  (eval $ac_try) 2>&5
3099  ac_status=$?
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); }; }; then
3102  :
3103else
3104  echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107CFLAGS=
3108fi
3109rm -f conftest.err conftest.$ac_objext \
3110      conftest$ac_exeext conftest.$ac_ext
3111if test -z "$CFLAGS"; then
3112  { 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
3113echo "$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;}
3114  CFLAGS='-O'
3115  cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h.  */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h.  */
3121
3122int
3123main ()
3124{
3125int i=0; i++;
3126  ;
3127  return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext conftest$ac_exeext
3131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3132  (eval $ac_link) 2>conftest.er1
3133  ac_status=$?
3134  grep -v '^ *+' conftest.er1 >conftest.err
3135  rm -f conftest.er1
3136  cat conftest.err >&5
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); } &&
3139         { ac_try='test -z "$ac_c_werror_flag"
3140                         || test ! -s conftest.err'
3141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142  (eval $ac_try) 2>&5
3143  ac_status=$?
3144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145  (exit $ac_status); }; } &&
3146         { ac_try='test -s conftest$ac_exeext'
3147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148  (eval $ac_try) 2>&5
3149  ac_status=$?
3150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151  (exit $ac_status); }; }; then
3152  :
3153else
3154  echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157CFLAGS=
3158fi
3159rm -f conftest.err conftest.$ac_objext \
3160      conftest$ac_exeext conftest.$ac_ext
3161  if test -z "$CFLAGS"; then
3162    { 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
3163echo "$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;}
3164  fi
3165fi
3166
3167{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3168echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3169
3170
3171if test x"$MPICC" = x; then :; else
3172  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3173echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3174  CC="$MPICC"
3175fi
3176
3177# Correct ADDLIBS initialization if we are using the MS compiler
3178case "$CC" in
3179  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3180    ADDLIBS=
3181    case $build in
3182  *-mingw*)
3183    if test "${LD+set}" = set; then :; else
3184      LD=link
3185    fi
3186    ;;
3187 esac
3188 case $enable_doscompile in
3189   msvc)
3190     if test "x${LD+set}" = xset; then :; else
3191       LD=link
3192     fi
3193     ;;
3194 esac
3195
3196    ;;
3197esac
3198
3199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
3205
3206
3207 #Let's try if that overcomes configuration problem with VC++ 6.0
3208
3209ac_ext=cc
3210ac_cpp='$CXXCPP $CPPFLAGS'
3211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3214
3215
3216
3217
3218
3219
3220
3221coin_has_cxx=yes
3222
3223save_cxxflags="$CXXFLAGS"
3224# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3225case $build in
3226  *-cygwin* | *-mingw*)
3227             if test "$enable_doscompile" = msvc ; then
3228               comps="icl cl"
3229             else
3230               comps="g++ cl"
3231             fi ;;
3232  *-*-solaris*)
3233             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3234  *-darwin*) comps="g++ c++ CC" ;;
3235          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3236esac
3237
3238# We delete the cached value, since the test might not have been
3239# performed with our choice of compilers earlier
3240$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3241# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3242ac_ext=cc
3243ac_cpp='$CXXCPP $CPPFLAGS'
3244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3247if test -n "$ac_tool_prefix"; then
3248  for ac_prog in $CCC $comps
3249  do
3250    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252echo "$as_me:$LINENO: checking for $ac_word" >&5
3253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254if test "${ac_cv_prog_CXX+set}" = set; then
3255  echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257  if test -n "$CXX"; then
3258  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3259else
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263  IFS=$as_save_IFS
3264  test -z "$as_dir" && as_dir=.
3265  for ac_exec_ext in '' $ac_executable_extensions; do
3266  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269    break 2
3270  fi
3271done
3272done
3273
3274fi
3275fi
3276CXX=$ac_cv_prog_CXX
3277if test -n "$CXX"; then
3278  echo "$as_me:$LINENO: result: $CXX" >&5
3279echo "${ECHO_T}$CXX" >&6
3280else
3281  echo "$as_me:$LINENO: result: no" >&5
3282echo "${ECHO_T}no" >&6
3283fi
3284
3285    test -n "$CXX" && break
3286  done
3287fi
3288if test -z "$CXX"; then
3289  ac_ct_CXX=$CXX
3290  for ac_prog in $CCC $comps
3291do
3292  # Extract the first word of "$ac_prog", so it can be a program name with args.
3293set dummy $ac_prog; ac_word=$2
3294echo "$as_me:$LINENO: checking for $ac_word" >&5
3295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3297  echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299  if test -n "$ac_ct_CXX"; then
3300  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305  IFS=$as_save_IFS
3306  test -z "$as_dir" && as_dir=.
3307  for ac_exec_ext in '' $ac_executable_extensions; do
3308  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309    ac_cv_prog_ac_ct_CXX="$ac_prog"
3310    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311    break 2
3312  fi
3313done
3314done
3315
3316fi
3317fi
3318ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3319if test -n "$ac_ct_CXX"; then
3320  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3321echo "${ECHO_T}$ac_ct_CXX" >&6
3322else
3323  echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325fi
3326
3327  test -n "$ac_ct_CXX" && break
3328done
3329test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3330
3331  CXX=$ac_ct_CXX
3332fi
3333
3334
3335# Provide some information about the compiler.
3336echo "$as_me:$LINENO:" \
3337     "checking for C++ compiler version" >&5
3338ac_compiler=`set X $ac_compile; echo $2`
3339{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3340  (eval $ac_compiler --version </dev/null >&5) 2>&5
3341  ac_status=$?
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); }
3344{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3345  (eval $ac_compiler -v </dev/null >&5) 2>&5
3346  ac_status=$?
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); }
3349{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3350  (eval $ac_compiler -V </dev/null >&5) 2>&5
3351  ac_status=$?
3352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353  (exit $ac_status); }
3354
3355echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3356echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3357if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3358  echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360  cat >conftest.$ac_ext <<_ACEOF
3361/* confdefs.h.  */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h.  */
3366
3367int
3368main ()
3369{
3370#ifndef __GNUC__
3371       choke me
3372#endif
3373
3374  ;
3375  return 0;
3376}
3377_ACEOF
3378rm -f conftest.$ac_objext
3379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380  (eval $ac_compile) 2>conftest.er1
3381  ac_status=$?
3382  grep -v '^ *+' conftest.er1 >conftest.err
3383  rm -f conftest.er1
3384  cat conftest.err >&5
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); } &&
3387         { ac_try='test -z "$ac_cxx_werror_flag"
3388                         || test ! -s conftest.err'
3389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390  (eval $ac_try) 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); }; } &&
3394         { ac_try='test -s conftest.$ac_objext'
3395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396  (eval $ac_try) 2>&5
3397  ac_status=$?
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); }; }; then
3400  ac_compiler_gnu=yes
3401else
3402  echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405ac_compiler_gnu=no
3406fi
3407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3409
3410fi
3411echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3412echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3413GXX=`test $ac_compiler_gnu = yes && echo yes`
3414ac_test_CXXFLAGS=${CXXFLAGS+set}
3415ac_save_CXXFLAGS=$CXXFLAGS
3416CXXFLAGS="-g"
3417echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3418echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3419if test "${ac_cv_prog_cxx_g+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  cat >conftest.$ac_ext <<_ACEOF
3423/* confdefs.h.  */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437rm -f conftest.$ac_objext
3438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439  (eval $ac_compile) 2>conftest.er1
3440  ac_status=$?
3441  grep -v '^ *+' conftest.er1 >conftest.err
3442  rm -f conftest.er1
3443  cat conftest.err >&5
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } &&
3446         { ac_try='test -z "$ac_cxx_werror_flag"
3447                         || test ! -s conftest.err'
3448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449  (eval $ac_try) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }; } &&
3453         { ac_try='test -s conftest.$ac_objext'
3454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455  (eval $ac_try) 2>&5
3456  ac_status=$?
3457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458  (exit $ac_status); }; }; then
3459  ac_cv_prog_cxx_g=yes
3460else
3461  echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464ac_cv_prog_cxx_g=no
3465fi
3466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467fi
3468echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3469echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3470if test "$ac_test_CXXFLAGS" = set; then
3471  CXXFLAGS=$ac_save_CXXFLAGS
3472elif test $ac_cv_prog_cxx_g = yes; then
3473  if test "$GXX" = yes; then
3474    CXXFLAGS="-g -O2"
3475  else
3476    CXXFLAGS="-g"
3477  fi
3478else
3479  if test "$GXX" = yes; then
3480    CXXFLAGS="-O2"
3481  else
3482    CXXFLAGS=
3483  fi
3484fi
3485for ac_declaration in \
3486   '' \
3487   'extern "C" void std::exit (int) throw (); using std::exit;' \
3488   'extern "C" void std::exit (int); using std::exit;' \
3489   'extern "C" void exit (int) throw ();' \
3490   'extern "C" void exit (int);' \
3491   'void exit (int);'
3492do
3493  cat >conftest.$ac_ext <<_ACEOF
3494/* confdefs.h.  */
3495_ACEOF
3496cat confdefs.h >>conftest.$ac_ext
3497cat >>conftest.$ac_ext <<_ACEOF
3498/* end confdefs.h.  */
3499$ac_declaration
3500#include <stdlib.h>
3501int
3502main ()
3503{
3504exit (42);
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509rm -f conftest.$ac_objext
3510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511  (eval $ac_compile) 2>conftest.er1
3512  ac_status=$?
3513  grep -v '^ *+' conftest.er1 >conftest.err
3514  rm -f conftest.er1
3515  cat conftest.err >&5
3516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); } &&
3518         { ac_try='test -z "$ac_cxx_werror_flag"
3519                         || test ! -s conftest.err'
3520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521  (eval $ac_try) 2>&5
3522  ac_status=$?
3523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524  (exit $ac_status); }; } &&
3525         { ac_try='test -s conftest.$ac_objext'
3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527  (eval $ac_try) 2>&5
3528  ac_status=$?
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); }; }; then
3531  :
3532else
3533  echo "$as_me: failed program was:" >&5
3534sed 's/^/| /' conftest.$ac_ext >&5
3535
3536continue
3537fi
3538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545$ac_declaration
3546int
3547main ()
3548{
3549exit (42);
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554rm -f conftest.$ac_objext
3555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3556  (eval $ac_compile) 2>conftest.er1
3557  ac_status=$?
3558  grep -v '^ *+' conftest.er1 >conftest.err
3559  rm -f conftest.er1
3560  cat conftest.err >&5
3561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562  (exit $ac_status); } &&
3563         { ac_try='test -z "$ac_cxx_werror_flag"
3564                         || test ! -s conftest.err'
3565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3566  (eval $ac_try) 2>&5
3567  ac_status=$?
3568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569  (exit $ac_status); }; } &&
3570         { ac_try='test -s conftest.$ac_objext'
3571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572  (eval $ac_try) 2>&5
3573  ac_status=$?
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); }; }; then
3576  break
3577else
3578  echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581fi
3582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3583done
3584rm -f conftest*
3585if test -n "$ac_declaration"; then
3586  echo '#ifdef __cplusplus' >>confdefs.h
3587  echo $ac_declaration      >>confdefs.h
3588  echo '#endif'             >>confdefs.h
3589fi
3590
3591ac_ext=cc
3592ac_cpp='$CXXCPP $CPPFLAGS'
3593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3596
3597
3598#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3599#thus, we test here whether $CXX is actually working
3600ac_ext=cc
3601ac_cpp='$CXXCPP $CPPFLAGS'
3602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3605
3606echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3607echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3608cat >conftest.$ac_ext <<_ACEOF
3609/* confdefs.h.  */
3610_ACEOF
3611cat confdefs.h >>conftest.$ac_ext
3612cat >>conftest.$ac_ext <<_ACEOF
3613/* end confdefs.h.  */
3614
3615int
3616main ()
3617{
3618int i=0;
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623rm -f conftest.$ac_objext
3624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3625  (eval $ac_compile) 2>conftest.er1
3626  ac_status=$?
3627  grep -v '^ *+' conftest.er1 >conftest.err
3628  rm -f conftest.er1
3629  cat conftest.err >&5
3630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631  (exit $ac_status); } &&
3632         { ac_try='test -z "$ac_cxx_werror_flag"
3633                         || test ! -s conftest.err'
3634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635  (eval $ac_try) 2>&5
3636  ac_status=$?
3637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); }; } &&
3639         { ac_try='test -s conftest.$ac_objext'
3640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641  (eval $ac_try) 2>&5
3642  ac_status=$?
3643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644  (exit $ac_status); }; }; then
3645  echo "$as_me:$LINENO: result: yes" >&5
3646echo "${ECHO_T}yes" >&6
3647else
3648  echo "$as_me: failed program was:" >&5
3649sed 's/^/| /' conftest.$ac_ext >&5
3650
3651echo "$as_me:$LINENO: result: no" >&5
3652echo "${ECHO_T}no" >&6
3653   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3654echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3655   { (exit 1); exit 1; }; }
3656
3657fi
3658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659ac_ext=cc
3660ac_cpp='$CXXCPP $CPPFLAGS'
3661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3664
3665
3666# It seems that we need to cleanup something here for the Windows
3667case "$CXX" in
3668  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3669    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3670    mv confdefs.hh confdefs.h
3671    ;;
3672esac
3673
3674# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3675case "$CXX" in
3676  cl* | */cl* | CL* | */CL* )
3677    if test "$ac_cv_prog_cxx_g" = yes ; then
3678      ac_cv_prog_cxx_g=no
3679      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3680echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3681    fi ;;
3682esac
3683CXXFLAGS="$save_cxxflags"
3684
3685# Check if a project specific CXXFLAGS variable has been set
3686if test x$COIN_PRJCT != x; then
3687  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3688  if test x$coin_tmp = xset; then
3689    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3690  fi
3691fi
3692
3693if test x"$CXXFLAGS" = x; then
3694
3695# ToDo decide whether we want -DNDEBUG for optimization
3696  coin_add_cxxflags=
3697  coin_opt_cxxflags=
3698  coin_dbg_cxxflags=
3699  coin_warn_cxxflags=
3700
3701  if test "$GXX" = "yes"; then
3702    case "$CXX" in
3703      icpc* | */icpc*)
3704        ;;
3705      *)
3706# ToDo decide about unroll-loops
3707        coin_opt_cxxflags="-O3"
3708        coin_add_cxxflags="-pipe"
3709        coin_dbg_cxxflags="-g"
3710        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3711        case $build in
3712          *-darwin*)
3713            ;;
3714          *)
3715            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3716            ;;
3717        esac
3718
3719        case $enable_doscompile in
3720          mingw)
3721            CXXFLAGS="-mno-cygwin"
3722            cat >conftest.$ac_ext <<_ACEOF
3723/* confdefs.h.  */
3724_ACEOF
3725cat confdefs.h >>conftest.$ac_ext
3726cat >>conftest.$ac_ext <<_ACEOF
3727/* end confdefs.h.  */
3728
3729int
3730main ()
3731{
3732int i=0; i++;
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737rm -f conftest.$ac_objext conftest$ac_exeext
3738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3739  (eval $ac_link) 2>conftest.er1
3740  ac_status=$?
3741  grep -v '^ *+' conftest.er1 >conftest.err
3742  rm -f conftest.er1
3743  cat conftest.err >&5
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); } &&
3746         { ac_try='test -z "$ac_cxx_werror_flag"
3747                         || test ! -s conftest.err'
3748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749  (eval $ac_try) 2>&5
3750  ac_status=$?
3751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752  (exit $ac_status); }; } &&
3753         { ac_try='test -s conftest$ac_exeext'
3754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755  (eval $ac_try) 2>&5
3756  ac_status=$?
3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); }; }; then
3759  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3760else
3761  echo "$as_me: failed program was:" >&5
3762sed 's/^/| /' conftest.$ac_ext >&5
3763
3764fi
3765rm -f conftest.err conftest.$ac_objext \
3766      conftest$ac_exeext conftest.$ac_ext
3767            CXXFLAGS=
3768          ;;
3769        esac
3770    esac
3771  fi
3772
3773# Note that we do not need to cover GCC in the following tests.
3774
3775  if test -z "$coin_opt_cxxflags"; then
3776    case $build in
3777      *-cygwin* | *-mingw*)
3778        case "$CXX" in
3779          cl* | */cl* | CL* | */CL*)
3780            # The MT and MTd options are mutually exclusive
3781            coin_opt_cxxflags='-MT -O2'
3782            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3783            coin_dbg_cxxflags='-MTd'
3784            ;;
3785          icl* | */icl* | ICL* | */ICL*)
3786            # The MT and MTd options are mutually exclusive
3787            coin_opt_cxxflags='-MT -Ox'
3788            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3789            coin_dbg_cxxflags='-MTd -debug'
3790            ;;
3791        esac
3792        ;;
3793      *-linux-*)
3794        case "$CXX" in
3795          icpc* | */icpc*)
3796            coin_opt_cxxflags="-O3 -ip -mp1"
3797            coin_add_cxxflags=""
3798            coin_dbg_cxxflags="-g"
3799            # Check if -i_dynamic is necessary (for new glibc library)
3800            CXXFLAGS=
3801            cat >conftest.$ac_ext <<_ACEOF
3802/* confdefs.h.  */
3803_ACEOF
3804cat confdefs.h >>conftest.$ac_ext
3805cat >>conftest.$ac_ext <<_ACEOF
3806/* end confdefs.h.  */
3807
3808int
3809main ()
3810{
3811int i=0; i++;
3812  ;
3813  return 0;
3814}
3815_ACEOF
3816rm -f conftest.$ac_objext conftest$ac_exeext
3817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3818  (eval $ac_link) 2>conftest.er1
3819  ac_status=$?
3820  grep -v '^ *+' conftest.er1 >conftest.err
3821  rm -f conftest.er1
3822  cat conftest.err >&5
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); } &&
3825         { ac_try='test -z "$ac_cxx_werror_flag"
3826                         || test ! -s conftest.err'
3827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828  (eval $ac_try) 2>&5
3829  ac_status=$?
3830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831  (exit $ac_status); }; } &&
3832         { ac_try='test -s conftest$ac_exeext'
3833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834  (eval $ac_try) 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); }; }; then
3838  :
3839else
3840  echo "$as_me: failed program was:" >&5
3841sed 's/^/| /' conftest.$ac_ext >&5
3842
3843coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3844fi
3845rm -f conftest.err conftest.$ac_objext \
3846      conftest$ac_exeext conftest.$ac_ext
3847            ;;
3848          pgCC* | */pgCC*)
3849            coin_opt_cxxflags="-fast"
3850            coin_add_cxxflags="-Kieee -pc 64"
3851            coin_dbg_cxxflags="-g"
3852            ;;
3853        esac
3854        ;;
3855      *-ibm-*)
3856        case "$CXX" in
3857          xlC* | */xlC* | mpxlC* | */mpxlC*)
3858            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3859            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3860            coin_dbg_cxxflags="-g"
3861            ;;
3862        esac
3863        ;;
3864      *-hp-*)
3865        case "$CXX" in
3866          aCC* | */aCC* )
3867            coin_opt_cxxflags="-O"
3868            coin_add_cxxflags="-AA"
3869            coin_dbg_cxxflags="-g"
3870            ;;
3871        esac
3872        ;;
3873      *-*-solaris*)
3874          coin_opt_cxxflags="-O4"
3875          coin_dbg_cxxflags="-g"
3876        ;;
3877    esac
3878  fi
3879
3880# Generic flag settings. If these don't work, add a case above.
3881
3882  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3883    coin_dbg_cxxflags="-g"
3884  fi
3885
3886  if test -z "$coin_opt_cxxflags"; then
3887    # Try if -O option works if nothing else is set
3888    CXXFLAGS=-O
3889    cat >conftest.$ac_ext <<_ACEOF
3890/* confdefs.h.  */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h.  */
3895
3896int
3897main ()
3898{
3899int i=0; i++;
3900  ;
3901  return 0;
3902}
3903_ACEOF
3904rm -f conftest.$ac_objext conftest$ac_exeext
3905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3906  (eval $ac_link) 2>conftest.er1
3907  ac_status=$?
3908  grep -v '^ *+' conftest.er1 >conftest.err
3909  rm -f conftest.er1
3910  cat conftest.err >&5
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); } &&
3913         { ac_try='test -z "$ac_cxx_werror_flag"
3914                         || test ! -s conftest.err'
3915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916  (eval $ac_try) 2>&5
3917  ac_status=$?
3918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919  (exit $ac_status); }; } &&
3920         { ac_try='test -s conftest$ac_exeext'
3921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922  (eval $ac_try) 2>&5
3923  ac_status=$?
3924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925  (exit $ac_status); }; }; then
3926  coin_opt_cxxflags="-O"
3927else
3928  echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931fi
3932rm -f conftest.err conftest.$ac_objext \
3933      conftest$ac_exeext conftest.$ac_ext
3934  fi
3935
3936  # if PM doesn't want the warning messages, take them out
3937  if test x"$coin_skip_warn_cxxflags" = xyes; then
3938    coin_warn_cxxflags=
3939  fi
3940
3941# Do final setup of flags based on values determined above.
3942
3943  if test x${DBG_CXXFLAGS+set} != xset; then
3944    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3945  fi
3946  if test x${OPT_CXXFLAGS+set} != xset; then
3947    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3948  fi
3949
3950  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3951  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3952
3953  if test "$coin_debug_compile" = "true"; then
3954    CXXFLAGS="$DBG_CXXFLAGS"
3955  else
3956    CXXFLAGS="$OPT_CXXFLAGS"
3957  fi
3958
3959# Handle the case where CXXFLAGS was set externally.
3960else
3961  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3962  if test x${DBG_CXXFLAGS+set} != xset; then
3963    DBG_CXXFLAGS="$CXXFLAGS"
3964  fi
3965  if test x${OPT_CXXFLAGS+set} != xset; then
3966    OPT_CXXFLAGS="$CXXFLAGS"
3967  fi
3968fi
3969
3970# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3971
3972case "$CXXFLAGS" in
3973  *-mno-cygwin*)
3974    if test x${CPPFLAGS+set} != xset ; then
3975      CPPFLAGS="-mno-cygwin"
3976    else
3977      case "$CPPFLAGS" in
3978        *-mno-cygwin*)
3979          ;;
3980        *)
3981          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3982          ;;
3983      esac
3984    fi ;;
3985esac
3986
3987# Try if CXXFLAGS works
3988save_CXXFLAGS="$CXXFLAGS"
3989cat >conftest.$ac_ext <<_ACEOF
3990/* confdefs.h.  */
3991_ACEOF
3992cat confdefs.h >>conftest.$ac_ext
3993cat >>conftest.$ac_ext <<_ACEOF
3994/* end confdefs.h.  */
3995
3996int
3997main ()
3998{
3999int i=0; i++;
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004rm -f conftest.$ac_objext conftest$ac_exeext
4005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006  (eval $ac_link) 2>conftest.er1
4007  ac_status=$?
4008  grep -v '^ *+' conftest.er1 >conftest.err
4009  rm -f conftest.er1
4010  cat conftest.err >&5
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); } &&
4013         { ac_try='test -z "$ac_cxx_werror_flag"
4014                         || test ! -s conftest.err'
4015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016  (eval $ac_try) 2>&5
4017  ac_status=$?
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); }; } &&
4020         { ac_try='test -s conftest$ac_exeext'
4021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; }; then
4026  :
4027else
4028  echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031CXXFLAGS=
4032fi
4033rm -f conftest.err conftest.$ac_objext \
4034      conftest$ac_exeext conftest.$ac_ext
4035if test -z "$CXXFLAGS"; then
4036  { 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
4037echo "$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;}
4038  CXXFLAGS='-O'
4039  cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h.  */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h.  */
4045
4046int
4047main ()
4048{
4049int i=0; i++;
4050  ;
4051  return 0;
4052}
4053_ACEOF
4054rm -f conftest.$ac_objext conftest$ac_exeext
4055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4056  (eval $ac_link) 2>conftest.er1
4057  ac_status=$?
4058  grep -v '^ *+' conftest.er1 >conftest.err
4059  rm -f conftest.er1
4060  cat conftest.err >&5
4061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062  (exit $ac_status); } &&
4063         { ac_try='test -z "$ac_cxx_werror_flag"
4064                         || test ! -s conftest.err'
4065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4066  (eval $ac_try) 2>&5
4067  ac_status=$?
4068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069  (exit $ac_status); }; } &&
4070         { ac_try='test -s conftest$ac_exeext'
4071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072  (eval $ac_try) 2>&5
4073  ac_status=$?
4074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075  (exit $ac_status); }; }; then
4076  :
4077else
4078  echo "$as_me: failed program was:" >&5
4079sed 's/^/| /' conftest.$ac_ext >&5
4080
4081CXXFLAGS=
4082fi
4083rm -f conftest.err conftest.$ac_objext \
4084      conftest$ac_exeext conftest.$ac_ext
4085  if test -z "$CXXFLAGS"; then
4086    { 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
4087echo "$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;}
4088  fi
4089fi
4090
4091{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4092echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4093
4094
4095if test x"$MPICXX" = x; then :; else
4096  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4097echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4098  CXX="$MPICXX"
4099fi
4100
4101case "$CXX" in
4102  cl* | */cl* | CL* | */CL* )
4103    case $build in
4104  *-mingw*)
4105    if test "${LD+set}" = set; then :; else
4106      LD=link
4107    fi
4108    ;;
4109 esac
4110 case $enable_doscompile in
4111   msvc)
4112     if test "x${LD+set}" = xset; then :; else
4113       LD=link
4114     fi
4115     ;;
4116 esac
4117
4118    ;;
4119esac
4120
4121ac_ext=c
4122ac_cpp='$CPP $CPPFLAGS'
4123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126
4127
4128
4129# Initialize automake and libtool
4130{
4131
4132
4133
4134# START
4135
4136# Test if force_shared has been set
4137if test "x" = xforce_shared; then
4138  if test x$enable_shared = xno; then
4139    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4140echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4141   { (exit 1); exit 1; }; }
4142  fi
4143  enable_shared=yes;
4144else
4145  # On Cygwin and AIX, building DLLs doesn't work
4146  case $build in
4147    *-cygwin*)
4148      coin_disable_shared=yes
4149      platform=Cygwin
4150    ;;
4151    *-aix*)
4152      coin_disable_shared=yes
4153      platform=AIX
4154    ;;
4155    *-mingw*)
4156      coin_disable_shared=yes
4157      platform="Msys"
4158#      case "$CXX" in
4159#        cl*)
4160#          coin_disable_shared=yes
4161#          platform="Msys with cl"
4162#      ;;
4163#      esac
4164    ;;
4165  esac
4166fi
4167if test x"$coin_disable_shared" = xyes; then
4168  if test x"$enable_shared" = xyes; then
4169    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4170echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4171  fi
4172  enable_shared=no
4173fi
4174# By default, we only want the shared objects to be compiled
4175# Check whether --enable-static or --disable-static was given.
4176if test "${enable_static+set}" = set; then
4177  enableval="$enable_static"
4178  p=${PACKAGE-default}
4179    case $enableval in
4180    yes) enable_static=yes ;;
4181    no) enable_static=no ;;
4182    *)
4183     enable_static=no
4184      # Look at the argument we got.  We use all the common list separators.
4185      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4186      for pkg in $enableval; do
4187        IFS="$lt_save_ifs"
4188        if test "X$pkg" = "X$p"; then
4189          enable_static=yes
4190        fi
4191      done
4192      IFS="$lt_save_ifs"
4193      ;;
4194    esac
4195else
4196  enable_static=no
4197fi;
4198
4199
4200
4201
4202# Initialize automake
4203echo "$as_me:$LINENO: checking for egrep" >&5
4204echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4205if test "${ac_cv_prog_egrep+set}" = set; then
4206  echo $ECHO_N "(cached) $ECHO_C" >&6
4207else
4208  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4209    then ac_cv_prog_egrep='grep -E'
4210    else ac_cv_prog_egrep='egrep'
4211    fi
4212fi
4213echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4214echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4215 EGREP=$ac_cv_prog_egrep
4216
4217
4218am__api_version="1.9"
4219# Find a good install program.  We prefer a C program (faster),
4220# so one script is as good as another.  But avoid the broken or
4221# incompatible versions:
4222# SysV /etc/install, /usr/sbin/install
4223# SunOS /usr/etc/install
4224# IRIX /sbin/install
4225# AIX /bin/install
4226# AmigaOS /C/install, which installs bootblocks on floppy discs
4227# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4228# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4229# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4230# OS/2's system install, which has a completely different semantic
4231# ./install, which can be erroneously created by make from ./install.sh.
4232echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4233echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4234if test -z "$INSTALL"; then
4235if test "${ac_cv_path_install+set}" = set; then
4236  echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241  IFS=$as_save_IFS
4242  test -z "$as_dir" && as_dir=.
4243  # Account for people who put trailing slashes in PATH elements.
4244case $as_dir/ in
4245  ./ | .// | /cC/* | \
4246  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4247  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4248  /usr/ucb/* ) ;;
4249  *)
4250    # OSF1 and SCO ODT 3.0 have their own names for install.
4251    # Don't use installbsd from OSF since it installs stuff as root
4252    # by default.
4253    for ac_prog in ginstall scoinst install; do
4254      for ac_exec_ext in '' $ac_executable_extensions; do
4255        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4256          if test $ac_prog = install &&
4257            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4258            # AIX install.  It has an incompatible calling convention.
4259            :
4260          elif test $ac_prog = install &&
4261            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4262            # program-specific install script used by HP pwplus--don't use.
4263            :
4264          else
4265            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4266            break 3
4267          fi
4268        fi
4269      done
4270    done
4271    ;;
4272esac
4273done
4274
4275
4276fi
4277  if test "${ac_cv_path_install+set}" = set; then
4278    INSTALL=$ac_cv_path_install
4279  else
4280    # As a last resort, use the slow shell script.  We don't cache a
4281    # path for INSTALL within a source directory, because that will
4282    # break other packages using the cache if that directory is
4283    # removed, or if the path is relative.
4284    INSTALL=$ac_install_sh
4285  fi
4286fi
4287echo "$as_me:$LINENO: result: $INSTALL" >&5
4288echo "${ECHO_T}$INSTALL" >&6
4289
4290# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4291# It thinks the first close brace ends the variable substitution.
4292test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4293
4294test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4295
4296test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4297
4298echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4299echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4300# Just in case
4301sleep 1
4302echo timestamp > conftest.file
4303# Do `set' in a subshell so we don't clobber the current shell's
4304# arguments.  Must try -L first in case configure is actually a
4305# symlink; some systems play weird games with the mod time of symlinks
4306# (eg FreeBSD returns the mod time of the symlink's containing
4307# directory).
4308if (
4309   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4310   if test "$*" = "X"; then
4311      # -L didn't work.
4312      set X `ls -t $srcdir/configure conftest.file`
4313   fi
4314   rm -f conftest.file
4315   if test "$*" != "X $srcdir/configure conftest.file" \
4316      && test "$*" != "X conftest.file $srcdir/configure"; then
4317
4318      # If neither matched, then we have a broken ls.  This can happen
4319      # if, for instance, CONFIG_SHELL is bash and it inherits a
4320      # broken ls alias from the environment.  This has actually
4321      # happened.  Such a system could not be considered "sane".
4322      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4323alias in your environment" >&5
4324echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4325alias in your environment" >&2;}
4326   { (exit 1); exit 1; }; }
4327   fi
4328
4329   test "$2" = conftest.file
4330   )
4331then
4332   # Ok.
4333   :
4334else
4335   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4336Check your system clock" >&5
4337echo "$as_me: error: newly created file is older than distributed files!
4338Check your system clock" >&2;}
4339   { (exit 1); exit 1; }; }
4340fi
4341echo "$as_me:$LINENO: result: yes" >&5
4342echo "${ECHO_T}yes" >&6
4343test "$program_prefix" != NONE &&
4344  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4345# Use a double $ so make ignores it.
4346test "$program_suffix" != NONE &&
4347  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4348# Double any \ or $.  echo might interpret backslashes.
4349# By default was `s,x,x', remove it if useless.
4350cat <<\_ACEOF >conftest.sed
4351s/[\\$]/&&/g;s/;s,x,x,$//
4352_ACEOF
4353program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4354rm conftest.sed
4355
4356# expand $ac_aux_dir to an absolute path
4357am_aux_dir=`cd $ac_aux_dir && pwd`
4358
4359test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4360# Use eval to expand $SHELL
4361if eval "$MISSING --run true"; then
4362  am_missing_run="$MISSING --run "
4363else
4364  am_missing_run=
4365  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4366echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4367fi
4368
4369if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4370  # We used to keeping the `.' as first argument, in order to
4371  # allow $(mkdir_p) to be used without argument.  As in
4372  #   $(mkdir_p) $(somedir)
4373  # where $(somedir) is conditionally defined.  However this is wrong
4374  # for two reasons:
4375  #  1. if the package is installed by a user who cannot write `.'
4376  #     make install will fail,
4377  #  2. the above comment should most certainly read
4378  #     $(mkdir_p) $(DESTDIR)$(somedir)
4379  #     so it does not work when $(somedir) is undefined and
4380  #     $(DESTDIR) is not.
4381  #  To support the latter case, we have to write
4382  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4383  #  so the `.' trick is pointless.
4384  mkdir_p='mkdir -p --'
4385else
4386  # On NextStep and OpenStep, the `mkdir' command does not
4387  # recognize any option.  It will interpret all options as
4388  # directories to create, and then abort because `.' already
4389  # exists.
4390  for d in ./-p ./--version;
4391  do
4392    test -d $d && rmdir $d
4393  done
4394  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4395  if test -f "$ac_aux_dir/mkinstalldirs"; then
4396    mkdir_p='$(mkinstalldirs)'
4397  else
4398    mkdir_p='$(install_sh) -d'
4399  fi
4400fi
4401
4402for ac_prog in gawk mawk nawk awk
4403do
4404  # Extract the first word of "$ac_prog", so it can be a program name with args.
4405set dummy $ac_prog; ac_word=$2
4406echo "$as_me:$LINENO: checking for $ac_word" >&5
4407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4408if test "${ac_cv_prog_AWK+set}" = set; then
4409  echo $ECHO_N "(cached) $ECHO_C" >&6
4410else
4411  if test -n "$AWK"; then
4412  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4413else
4414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417  IFS=$as_save_IFS
4418  test -z "$as_dir" && as_dir=.
4419  for ac_exec_ext in '' $ac_executable_extensions; do
4420  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421    ac_cv_prog_AWK="$ac_prog"
4422    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423    break 2
4424  fi
4425done
4426done
4427
4428fi
4429fi
4430AWK=$ac_cv_prog_AWK
4431if test -n "$AWK"; then
4432  echo "$as_me:$LINENO: result: $AWK" >&5
4433echo "${ECHO_T}$AWK" >&6
4434else
4435  echo "$as_me:$LINENO: result: no" >&5
4436echo "${ECHO_T}no" >&6
4437fi
4438
4439  test -n "$AWK" && break
4440done
4441
4442echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4443echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4444set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4445if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4446  echo $ECHO_N "(cached) $ECHO_C" >&6
4447else
4448  cat >conftest.make <<\_ACEOF
4449all:
4450        @echo 'ac_maketemp="$(MAKE)"'
4451_ACEOF
4452# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4453eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4454if test -n "$ac_maketemp"; then
4455  eval ac_cv_prog_make_${ac_make}_set=yes
4456else
4457  eval ac_cv_prog_make_${ac_make}_set=no
4458fi
4459rm -f conftest.make
4460fi
4461if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4462  echo "$as_me:$LINENO: result: yes" >&5
4463echo "${ECHO_T}yes" >&6
4464  SET_MAKE=
4465else
4466  echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6
4468  SET_MAKE="MAKE=${MAKE-make}"
4469fi
4470
4471rm -rf .tst 2>/dev/null
4472mkdir .tst 2>/dev/null
4473if test -d .tst; then
4474  am__leading_dot=.
4475else
4476  am__leading_dot=_
4477fi
4478rmdir .tst 2>/dev/null
4479
4480DEPDIR="${am__leading_dot}deps"
4481
4482          ac_config_commands="$ac_config_commands depfiles"
4483
4484
4485am_make=${MAKE-make}
4486cat > confinc << 'END'
4487am__doit:
4488        @echo done
4489.PHONY: am__doit
4490END
4491# If we don't find an include directive, just comment out the code.
4492echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4493echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4494am__include="#"
4495am__quote=
4496_am_result=none
4497# First try GNU make style include.
4498echo "include confinc" > confmf
4499# We grep out `Entering directory' and `Leaving directory'
4500# messages which can occur if `w' ends up in MAKEFLAGS.
4501# In particular we don't look at `^make:' because GNU make might
4502# be invoked under some other name (usually "gmake"), in which
4503# case it prints its new name instead of `make'.
4504if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4505   am__include=include
4506   am__quote=
4507   _am_result=GNU
4508fi
4509# Now try BSD make style include.
4510if test "$am__include" = "#"; then
4511   echo '.include "confinc"' > confmf
4512   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4513      am__include=.include
4514      am__quote="\""
4515      _am_result=BSD
4516   fi
4517fi
4518
4519
4520echo "$as_me:$LINENO: result: $_am_result" >&5
4521echo "${ECHO_T}$_am_result" >&6
4522rm -f confinc confmf
4523
4524# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4525if test "${enable_dependency_tracking+set}" = set; then
4526  enableval="$enable_dependency_tracking"
4527
4528fi;
4529if test "x$enable_dependency_tracking" != xno; then
4530  am_depcomp="$ac_aux_dir/depcomp"
4531  AMDEPBACKSLASH='\'
4532fi
4533
4534
4535if test "x$enable_dependency_tracking" != xno; then
4536  AMDEP_TRUE=
4537  AMDEP_FALSE='#'
4538else
4539  AMDEP_TRUE='#'
4540  AMDEP_FALSE=
4541fi
4542
4543
4544
4545
4546
4547# AC_MSG_NOTICE([Beginning automake initialisation.])
4548# Stuff for automake
4549# test to see if srcdir already configured
4550if test "`cd $srcdir && pwd`" != "`pwd`" &&
4551   test -f $srcdir/config.status; then
4552  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4553echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4554   { (exit 1); exit 1; }; }
4555fi
4556
4557# test whether we have cygpath
4558if test -z "$CYGPATH_W"; then
4559  if (cygpath --version) >/dev/null 2>/dev/null; then
4560    CYGPATH_W='cygpath -w'
4561  else
4562    CYGPATH_W=echo
4563  fi
4564fi
4565
4566
4567# Define the identity of the package.
4568 PACKAGE='clp'
4569 VERSION='trunk'
4570
4571
4572cat >>confdefs.h <<_ACEOF
4573#define PACKAGE "$PACKAGE"
4574_ACEOF
4575
4576
4577cat >>confdefs.h <<_ACEOF
4578#define VERSION "$VERSION"
4579_ACEOF
4580
4581# Some tools Automake needs.
4582
4583ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4584
4585
4586AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4587
4588
4589AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4590
4591
4592AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4593
4594
4595MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4596
4597install_sh=${install_sh-"$am_aux_dir/install-sh"}
4598
4599# Installed binaries are usually stripped using `strip' when the user
4600# run `make install-strip'.  However `strip' might not be the right
4601# tool to use in cross-compilation environments, therefore Automake
4602# will honor the `STRIP' environment variable to overrule this program.
4603if test "$cross_compiling" != no; then
4604  if test -n "$ac_tool_prefix"; then
4605  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4606set dummy ${ac_tool_prefix}strip; ac_word=$2
4607echo "$as_me:$LINENO: checking for $ac_word" >&5
4608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4609if test "${ac_cv_prog_STRIP+set}" = set; then
4610  echo $ECHO_N "(cached) $ECHO_C" >&6
4611else
4612  if test -n "$STRIP"; then
4613  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618  IFS=$as_save_IFS
4619  test -z "$as_dir" && as_dir=.
4620  for ac_exec_ext in '' $ac_executable_extensions; do
4621  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4623    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624    break 2
4625  fi
4626done
4627done
4628
4629fi
4630fi
4631STRIP=$ac_cv_prog_STRIP
4632if test -n "$STRIP"; then
4633  echo "$as_me:$LINENO: result: $STRIP" >&5
4634echo "${ECHO_T}$STRIP" >&6
4635else
4636  echo "$as_me:$LINENO: result: no" >&5
4637echo "${ECHO_T}no" >&6
4638fi
4639
4640fi
4641if test -z "$ac_cv_prog_STRIP"; then
4642  ac_ct_STRIP=$STRIP
4643  # Extract the first word of "strip", so it can be a program name with args.
4644set dummy strip; ac_word=$2
4645echo "$as_me:$LINENO: checking for $ac_word" >&5
4646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4647if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4648  echo $ECHO_N "(cached) $ECHO_C" >&6
4649else
4650  if test -n "$ac_ct_STRIP"; then
4651  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4652else
4653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654for as_dir in $PATH
4655do
4656  IFS=$as_save_IFS
4657  test -z "$as_dir" && as_dir=.
4658  for ac_exec_ext in '' $ac_executable_extensions; do
4659  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660    ac_cv_prog_ac_ct_STRIP="strip"
4661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662    break 2
4663  fi
4664done
4665done
4666
4667  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4668fi
4669fi
4670ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4671if test -n "$ac_ct_STRIP"; then
4672  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4673echo "${ECHO_T}$ac_ct_STRIP" >&6
4674else
4675  echo "$as_me:$LINENO: result: no" >&5
4676echo "${ECHO_T}no" >&6
4677fi
4678
4679  STRIP=$ac_ct_STRIP
4680else
4681  STRIP="$ac_cv_prog_STRIP"
4682fi
4683
4684fi
4685INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4686
4687# We need awk for the "check" target.  The system "awk" is bad on
4688# some platforms.
4689# Always define AMTAR for backward compatibility.
4690
4691AMTAR=${AMTAR-"${am_missing_run}tar"}
4692
4693am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4694
4695
4696
4697
4698depcc="$CC"   am_compiler_list=
4699
4700echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4701echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4702if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4703  echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4706  # We make a subdir and do the tests there.  Otherwise we can end up
4707  # making bogus files that we don't know about and never remove.  For
4708  # instance it was reported that on HP-UX the gcc test will end up
4709  # making a dummy file named `D' -- because `-MD' means `put the output
4710  # in D'.
4711  mkdir conftest.dir
4712  # Copy depcomp to subdir because otherwise we won't find it if we're
4713  # using a relative directory.
4714  cp "$am_depcomp" conftest.dir
4715  cd conftest.dir
4716  # We will build objects and dependencies in a subdirectory because
4717  # it helps to detect inapplicable dependency modes.  For instance
4718  # both Tru64's cc and ICC support -MD to output dependencies as a
4719  # side effect of compilation, but ICC will put the dependencies in
4720  # the current directory while Tru64 will put them in the object
4721  # directory.
4722  mkdir sub
4723
4724  am_cv_CC_dependencies_compiler_type=none
4725  if test "$am_compiler_list" = ""; then
4726     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4727  fi
4728  for depmode in $am_compiler_list; do
4729    # Setup a source with many dependencies, because some compilers
4730    # like to wrap large dependency lists on column 80 (with \), and
4731    # we should not choose a depcomp mode which is confused by this.
4732    #
4733    # We need to recreate these files for each test, as the compiler may
4734    # overwrite some of them when testing with obscure command lines.
4735    # This happens at least with the AIX C compiler.
4736    : > sub/conftest.c
4737    for i in 1 2 3 4 5 6; do
4738      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4739      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4740      # Solaris 8's {/usr,}/bin/sh.
4741      touch sub/conftst$i.h
4742    done
4743    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4744
4745    case $depmode in
4746    nosideeffect)
4747      # after this tag, mechanisms are not by side-effect, so they'll
4748      # only be used when explicitly requested
4749      if test "x$enable_dependency_tracking" = xyes; then
4750        continue
4751      else
4752        break
4753      fi
4754      ;;
4755    none) break ;;
4756    esac
4757    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4758    # mode.  It turns out that the SunPro C++ compiler does not properly
4759    # handle `-M -o', and we need to detect this.
4760    if depmode=$depmode \
4761       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4762       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4763       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4764         >/dev/null 2>conftest.err &&
4765       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4766       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4767       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4768      # icc doesn't choke on unknown options, it will just issue warnings
4769      # or remarks (even with -Werror).  So we grep stderr for any message
4770      # that says an option was ignored or not supported.
4771      # When given -MP, icc 7.0 and 7.1 complain thusly:
4772      #   icc: Command line warning: ignoring option '-M'; no argument required
4773      # The diagnosis changed in icc 8.0:
4774      #   icc: Command line remark: option '-MP' not supported
4775      if (grep 'ignoring option' conftest.err ||
4776          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4777        am_cv_CC_dependencies_compiler_type=$depmode
4778        break
4779      fi
4780    fi
4781  done
4782
4783  cd ..
4784  rm -rf conftest.dir
4785else
4786  am_cv_CC_dependencies_compiler_type=none
4787fi
4788
4789fi
4790echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4791echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4792CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4793
4794
4795
4796if
4797  test "x$enable_dependency_tracking" != xno \
4798  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4799  am__fastdepCC_TRUE=
4800  am__fastdepCC_FALSE='#'
4801else
4802  am__fastdepCC_TRUE='#'
4803  am__fastdepCC_FALSE=
4804fi
4805
4806
4807depcc="$CXX"  am_compiler_list=
4808
4809echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4810echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4811if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4812  echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4815  # We make a subdir and do the tests there.  Otherwise we can end up
4816  # making bogus files that we don't know about and never remove.  For
4817  # instance it was reported that on HP-UX the gcc test will end up
4818  # making a dummy file named `D' -- because `-MD' means `put the output
4819  # in D'.
4820  mkdir conftest.dir
4821  # Copy depcomp to subdir because otherwise we won't find it if we're
4822  # using a relative directory.
4823  cp "$am_depcomp" conftest.dir
4824  cd conftest.dir
4825  # We will build objects and dependencies in a subdirectory because
4826  # it helps to detect inapplicable dependency modes.  For instance
4827  # both Tru64's cc and ICC support -MD to output dependencies as a
4828  # side effect of compilation, but ICC will put the dependencies in
4829  # the current directory while Tru64 will put them in the object
4830  # directory.
4831  mkdir sub
4832
4833  am_cv_CXX_dependencies_compiler_type=none
4834  if test "$am_compiler_list" = ""; then
4835     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4836  fi
4837  for depmode in $am_compiler_list; do
4838    # Setup a source with many dependencies, because some compilers
4839    # like to wrap large dependency lists on column 80 (with \), and
4840    # we should not choose a depcomp mode which is confused by this.
4841    #
4842    # We need to recreate these files for each test, as the compiler may
4843    # overwrite some of them when testing with obscure command lines.
4844    # This happens at least with the AIX C compiler.
4845    : > sub/conftest.c
4846    for i in 1 2 3 4 5 6; do
4847      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4848      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4849      # Solaris 8's {/usr,}/bin/sh.
4850      touch sub/conftst$i.h
4851    done
4852    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4853
4854    case $depmode in
4855    nosideeffect)
4856      # after this tag, mechanisms are not by side-effect, so they'll
4857      # only be used when explicitly requested
4858      if test "x$enable_dependency_tracking" = xyes; then
4859        continue
4860      else
4861        break
4862      fi
4863      ;;
4864    none) break ;;
4865    esac
4866    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4867    # mode.  It turns out that the SunPro C++ compiler does not properly
4868    # handle `-M -o', and we need to detect this.
4869    if depmode=$depmode \
4870       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4871       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4872       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4873         >/dev/null 2>conftest.err &&
4874       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4875       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4876       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4877      # icc doesn't choke on unknown options, it will just issue warnings
4878      # or remarks (even with -Werror).  So we grep stderr for any message
4879      # that says an option was ignored or not supported.
4880      # When given -MP, icc 7.0 and 7.1 complain thusly:
4881      #   icc: Command line warning: ignoring option '-M'; no argument required
4882      # The diagnosis changed in icc 8.0:
4883      #   icc: Command line remark: option '-MP' not supported
4884      if (grep 'ignoring option' conftest.err ||
4885          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4886        am_cv_CXX_dependencies_compiler_type=$depmode
4887        break
4888      fi
4889    fi
4890  done
4891
4892  cd ..
4893  rm -rf conftest.dir
4894else
4895  am_cv_CXX_dependencies_compiler_type=none
4896fi
4897
4898fi
4899echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4900echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4901CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4902
4903
4904
4905if
4906  test "x$enable_dependency_tracking" != xno \
4907  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4908  am__fastdepCXX_TRUE=
4909  am__fastdepCXX_FALSE='#'
4910else
4911  am__fastdepCXX_TRUE='#'
4912  am__fastdepCXX_FALSE=
4913fi
4914
4915
4916
4917echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4918echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4919    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4920if test "${enable_maintainer_mode+set}" = set; then
4921  enableval="$enable_maintainer_mode"
4922  USE_MAINTAINER_MODE=$enableval
4923else
4924  USE_MAINTAINER_MODE=no
4925fi;
4926  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4927echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4928
4929
4930if test $USE_MAINTAINER_MODE = yes; then
4931  MAINTAINER_MODE_TRUE=
4932  MAINTAINER_MODE_FALSE='#'
4933else
4934  MAINTAINER_MODE_TRUE='#'
4935  MAINTAINER_MODE_FALSE=
4936fi
4937
4938  MAINT=$MAINTAINER_MODE_TRUE
4939
4940
4941
4942coin_have_externals=no
4943if test "$enable_maintainer_mode" = yes; then
4944
4945  # If maintainer mode is chosen, we make sure that the correct versions
4946  # of the tools are used, and that we know where libtool.m4 is (to
4947  # recreate acinclude.m4)
4948
4949
4950  LIBTOOLM4=
4951  # Normally, $HOME
4952  AUTOTOOLS_DFLT=$HOME
4953
4954  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4955echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4956if test "${ac_cv_use_correct_autotools+set}" = set; then
4957  echo $ECHO_N "(cached) $ECHO_C" >&6
4958else
4959  ac_cv_use_correct_autotools=check
4960fi
4961echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4962echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4963
4964  if test $ac_cv_use_correct_autotools = check; then
4965    ac_cv_use_correct_autotools=yes
4966    # Check if we have autoconf
4967    # Extract the first word of "autoconf", so it can be a program name with args.
4968set dummy autoconf; ac_word=$2
4969echo "$as_me:$LINENO: checking for $ac_word" >&5
4970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971if test "${ac_cv_prog_have_autoconf+set}" = set; then
4972  echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974  if test -n "$have_autoconf"; then
4975  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982  for ac_exec_ext in '' $ac_executable_extensions; do
4983  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984    ac_cv_prog_have_autoconf="yes"
4985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986    break 2
4987  fi
4988done
4989done
4990
4991  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4992fi
4993fi
4994have_autoconf=$ac_cv_prog_have_autoconf
4995if test -n "$have_autoconf"; then
4996  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4997echo "${ECHO_T}$have_autoconf" >&6
4998else
4999  echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6
5001fi
5002
5003    if test $have_autoconf = no; then
5004      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5005echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5006   { (exit 1); exit 1; }; }
5007    fi
5008
5009    # Check whether autoconf is the correct version
5010    correct_version='2.59'
5011    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5012    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5013echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5014    autoconf --version > confauto.out 2>&1
5015    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5016      echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018    else
5019      rm -f confauto.out
5020      echo "$as_me:$LINENO: result: no" >&5
5021echo "${ECHO_T}no" >&6
5022      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5023echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5024   { (exit 1); exit 1; }; }
5025    fi
5026    rm -f confauto.out
5027
5028    # Check if the executable autoconf is picked up from the correct location
5029    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5030echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5031    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5032    autoconf_dir=`cd $autoconf_dir; pwd`
5033    if test x$AUTOTOOLS_DIR = x; then
5034      want_dir=$AUTOTOOLS_DFLT/bin
5035    else
5036      want_dir=$AUTOTOOLS_DIR/bin
5037    fi
5038    if test $autoconf_dir = `cd $want_dir; pwd`; then
5039      echo "$as_me:$LINENO: result: yes" >&5
5040echo "${ECHO_T}yes" >&6
5041    else
5042      rm -f confauto.out
5043      echo "$as_me:$LINENO: result: no" >&5
5044echo "${ECHO_T}no" >&6
5045      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5046echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5047   { (exit 1); exit 1; }; }
5048    fi
5049
5050    # Check if we have automake
5051    # Extract the first word of "automake", so it can be a program name with args.
5052set dummy automake; ac_word=$2
5053echo "$as_me:$LINENO: checking for $ac_word" >&5
5054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055if test "${ac_cv_prog_have_automake+set}" = set; then
5056  echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058  if test -n "$have_automake"; then
5059  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5060else
5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064  IFS=$as_save_IFS
5065  test -z "$as_dir" && as_dir=.
5066  for ac_exec_ext in '' $ac_executable_extensions; do
5067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068    ac_cv_prog_have_automake="yes"
5069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070    break 2
5071  fi
5072done
5073done
5074
5075  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5076fi
5077fi
5078have_automake=$ac_cv_prog_have_automake
5079if test -n "$have_automake"; then
5080  echo "$as_me:$LINENO: result: $have_automake" >&5
5081echo "${ECHO_T}$have_automake" >&6
5082else
5083  echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
5085fi
5086
5087    if test $have_automake = no; then
5088      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5089echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5090   { (exit 1); exit 1; }; }
5091    fi
5092
5093    # Check whether automake is the correct version
5094    correct_version='1.9.6'
5095    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5096    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5097echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5098    automake --version > confauto.out 2>&1
5099    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5100      echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
5102    else
5103      rm -f confauto.out
5104      echo "$as_me:$LINENO: result: no" >&5
5105echo "${ECHO_T}no" >&6
5106      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5107echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5108   { (exit 1); exit 1; }; }
5109    fi
5110    rm -f confauto.out
5111
5112    # Check if the executable automake is picked up from the correct location
5113    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5114echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5115    automake_dir=`which automake | sed -e 's=/automake=='`
5116    automake_dir=`cd $automake_dir; pwd`
5117    if test x$AUTOTOOLS_DIR = x; then
5118      want_dir=$AUTOTOOLS_DFLT/bin
5119    else
5120      want_dir=$AUTOTOOLS_DIR/bin
5121    fi
5122    if test $automake_dir = `cd $want_dir; pwd`; then
5123      echo "$as_me:$LINENO: result: yes" >&5
5124echo "${ECHO_T}yes" >&6
5125    else
5126      rm -f confauto.out
5127      echo "$as_me:$LINENO: result: no" >&5
5128echo "${ECHO_T}no" >&6
5129      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5130echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5131   { (exit 1); exit 1; }; }
5132    fi
5133
5134    # Check if this is the correct version of libtool (with escaped dots)
5135    if test x$AUTOTOOLS_DIR = x; then
5136      want_dir=$AUTOTOOLS_DFLT/share
5137    else
5138      want_dir=$AUTOTOOLS_DIR/share
5139    fi
5140    correct_version='1.5.22'
5141    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5142    if test -r $want_dir/libtool/ltmain.sh; then
5143  have_ltmain=yes
5144  :
5145else
5146  have_ltmain=no
5147  :
5148fi
5149
5150    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5151echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5152    if test $have_ltmain = yes; then
5153    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5154        echo "$as_me:$LINENO: result: yes" >&5
5155echo "${ECHO_T}yes" >&6
5156      else
5157        echo "$as_me:$LINENO: result: no" >&5
5158echo "${ECHO_T}no" >&6
5159        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5160echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5161   { (exit 1); exit 1; }; }
5162      fi
5163    else
5164      echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
5166      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5167echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5168   { (exit 1); exit 1; }; }
5169    fi
5170  fi
5171
5172  # Check if we can find the libtool file
5173  if test x$AUTOTOOLS_DIR = x; then
5174    want_dir=$AUTOTOOLS_DFLT/share
5175  else
5176    want_dir=$AUTOTOOLS_DIR/share
5177  fi
5178  if test -r $want_dir/aclocal/libtool.m4; then
5179  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5180  :
5181else
5182  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5183echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5184   { (exit 1); exit 1; }; }
5185  :
5186fi
5187
5188
5189  # Check if we have an Externals file
5190  if test -r $srcdir/Externals; then
5191    coin_have_externals=yes
5192  fi
5193  # Check if subversion is installed and understands https
5194  # Extract the first word of "svn", so it can be a program name with args.
5195set dummy svn; ac_word=$2
5196echo "$as_me:$LINENO: checking for $ac_word" >&5
5197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5198if test "${ac_cv_prog_have_svn+set}" = set; then
5199  echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201  if test -n "$have_svn"; then
5202  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5203else
5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207  IFS=$as_save_IFS
5208  test -z "$as_dir" && as_dir=.
5209  for ac_exec_ext in '' $ac_executable_extensions; do
5210  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211    ac_cv_prog_have_svn="yes"
5212    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5213    break 2
5214  fi
5215done
5216done
5217
5218  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5219fi
5220fi
5221have_svn=$ac_cv_prog_have_svn
5222if test -n "$have_svn"; then
5223  echo "$as_me:$LINENO: result: $have_svn" >&5
5224echo "${ECHO_T}$have_svn" >&6
5225else
5226  echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228fi
5229
5230  if test x$have_svn = xyes; then
5231    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5232echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5233if test "${ac_cv_svn_understands_https+set}" = set; then
5234  echo $ECHO_N "(cached) $ECHO_C" >&6
5235else
5236  svn --version > confauto.out 2>&1
5237                    if $EGREP https confauto.out >/dev/null 2>&1; then
5238                      ac_cv_svn_understands_https=yes
5239                    else
5240                      ac_cv_svn_understands_https=no
5241                      have_svn=no
5242                      ac_cv_prog_have_svn=no
5243                    fi
5244                    rm -f confauto.out
5245fi
5246echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5247echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5248  fi
5249
5250  # Find the location of the BuildTools directory
5251  BUILDTOOLSDIR=
5252  if test -r $srcdir/BuildTools/coin.m4; then
5253    BUILDTOOLSDIR=$srcdir/BuildTools
5254  else
5255    if test -r $srcdir/../BuildTools/coin.m4; then
5256      BUILDTOOLSDIR=$srcdir/../BuildTools
5257    else
5258      if test -r $srcdir/../../BuildTools/coin.m4; then
5259        BUILDTOOLSDIR=$srcdir/../../BuildTools
5260      else
5261        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5262echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5263   { (exit 1); exit 1; }; }
5264      fi
5265    fi
5266  fi
5267
5268
5269  # The following variable is set to the name of the directory where
5270  # the autotool scripts are located
5271
5272  AUX_DIR=$ac_aux_dir
5273fi
5274
5275# helpful variable for the base directory of this package
5276abs_source_dir=`cd $srcdir; pwd`
5277
5278
5279# Stuff for example Makefiles
5280if test x$prefix = xNONE; then
5281  full_prefix=$ac_default_prefix
5282else
5283  full_prefix=$prefix
5284fi
5285full_prefix=`cd $full_prefix ; pwd`
5286
5287abs_lib_dir=$full_prefix/lib
5288
5289abs_include_dir=$full_prefix/include
5290
5291abs_bin_dir=$full_prefix/bin
5292
5293
5294
5295if test $coin_have_externals = yes && test x$have_svn = xyes; then
5296  HAVE_EXTERNALS_TRUE=
5297  HAVE_EXTERNALS_FALSE='#'
5298else
5299  HAVE_EXTERNALS_TRUE='#'
5300  HAVE_EXTERNALS_FALSE=
5301fi
5302
5303
5304# AC_MSG_NOTICE([End automake initialisation.])
5305
5306
5307
5308LIBTOOL=
5309if test -r ../libtool; then
5310  coin_config_dir=..
5311  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5312fi
5313if test "x$LIBTOOL" = x; then
5314  if test -r ../../libtool; then
5315    coin_config_dir=../..
5316    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5317  fi
5318fi
5319
5320if test "x$LIBTOOL" = x; then
5321# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5322  # Stuff for libtool
5323  # Check whether --enable-shared or --disable-shared was given.
5324if test "${enable_shared+set}" = set; then
5325  enableval="$enable_shared"
5326  p=${PACKAGE-default}
5327    case $enableval in
5328    yes) enable_shared=yes ;;
5329    no) enable_shared=no ;;
5330    *)
5331      enable_shared=no
5332      # Look at the argument we got.  We use all the common list separators.
5333      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5334      for pkg in $enableval; do
5335        IFS="$lt_save_ifs"
5336        if test "X$pkg" = "X$p"; then
5337          enable_shared=yes
5338        fi
5339      done
5340      IFS="$lt_save_ifs"
5341      ;;
5342    esac
5343else
5344  enable_shared=yes
5345fi;
5346
5347# Check whether --enable-fast-install or --disable-fast-install was given.
5348if test "${enable_fast_install+set}" = set; then
5349  enableval="$enable_fast_install"
5350  p=${PACKAGE-default}
5351    case $enableval in
5352    yes) enable_fast_install=yes ;;
5353    no) enable_fast_install=no ;;
5354    *)
5355      enable_fast_install=no
5356      # Look at the argument we got.  We use all the common list separators.
5357      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5358      for pkg in $enableval; do
5359        IFS="$lt_save_ifs"
5360        if test "X$pkg" = "X$p"; then
5361          enable_fast_install=yes
5362        fi
5363      done
5364      IFS="$lt_save_ifs"
5365      ;;
5366    esac
5367else
5368  enable_fast_install=yes
5369fi;
5370
5371echo "$as_me:$LINENO: checking host system type" >&5
5372echo $ECHO_N "checking host system type... $ECHO_C" >&6
5373if test "${ac_cv_host+set}" = set; then
5374  echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376  ac_cv_host_alias=$host_alias
5377test -z "$ac_cv_host_alias" &&
5378  ac_cv_host_alias=$ac_cv_build_alias
5379ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5380  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5381echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5382   { (exit 1); exit 1; }; }
5383
5384fi
5385echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5386echo "${ECHO_T}$ac_cv_host" >&6
5387host=$ac_cv_host
5388host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5389host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5390host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5391
5392
5393echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5394echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5395if test "${lt_cv_path_SED+set}" = set; then
5396  echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398  # Loop through the user's path and test for sed and gsed.
5399# Then use that list of sed's as ones to test for truncation.
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403  IFS=$as_save_IFS
5404  test -z "$as_dir" && as_dir=.
5405  for lt_ac_prog in sed gsed; do
5406    for ac_exec_ext in '' $ac_executable_extensions; do
5407      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5408        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5409      fi
5410    done
5411  done
5412done
5413lt_ac_max=0
5414lt_ac_count=0
5415# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5416# along with /bin/sed that truncates output.
5417for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5418  test ! -f $lt_ac_sed && continue
5419  cat /dev/null > conftest.in
5420  lt_ac_count=0
5421  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5422  # Check for GNU sed and select it if it is found.
5423  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5424    lt_cv_path_SED=$lt_ac_sed
5425    break
5426  fi
5427  while true; do
5428    cat conftest.in conftest.in >conftest.tmp
5429    mv conftest.tmp conftest.in
5430    cp conftest.in conftest.nl
5431    echo >>conftest.nl
5432    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5433    cmp -s conftest.out conftest.nl || break
5434    # 10000 chars as input seems more than enough
5435    test $lt_ac_count -gt 10 && break
5436    lt_ac_count=`expr $lt_ac_count + 1`
5437    if test $lt_ac_count -gt $lt_ac_max; then
5438      lt_ac_max=$lt_ac_count
5439      lt_cv_path_SED=$lt_ac_sed
5440    fi
5441  done
5442done
5443
5444fi
5445
5446SED=$lt_cv_path_SED
5447echo "$as_me:$LINENO: result: $SED" >&5
5448echo "${ECHO_T}$SED" >&6
5449
5450
5451# Check whether --with-gnu-ld or --without-gnu-ld was given.
5452if test "${with_gnu_ld+set}" = set; then
5453  withval="$with_gnu_ld"
5454  test "$withval" = no || with_gnu_ld=yes
5455else
5456  with_gnu_ld=no
5457fi;
5458ac_prog=ld
5459if test "$GCC" = yes; then
5460  # Check if gcc -print-prog-name=ld gives a path.
5461  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5462echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5463  case $host in
5464  *-*-mingw*)
5465    # gcc leaves a trailing carriage return which upsets mingw
5466    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5467  *)
5468    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5469  esac
5470  case $ac_prog in
5471    # Accept absolute paths.
5472    [\\/]* | ?:[\\/]*)
5473      re_direlt='/[^/][^/]*/\.\./'
5474      # Canonicalize the pathname of ld
5475      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5476      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5477        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5478      done
5479      test -z "$LD" && LD="$ac_prog"
5480      ;;
5481  "")
5482    # If it fails, then pretend we aren't using GCC.
5483    ac_prog=ld
5484    ;;
5485  *)
5486    # If it is relative, then search for the first ld in PATH.
5487    with_gnu_ld=unknown
5488    ;;
5489  esac
5490elif test "$with_gnu_ld" = yes; then
5491  echo "$as_me:$LINENO: checking for GNU ld" >&5
5492echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5493else
5494  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5495echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5496fi
5497if test "${lt_cv_path_LD+set}" = set; then
5498  echo $ECHO_N "(cached) $ECHO_C" >&6
5499else
5500  if test -z "$LD"; then
5501  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5502  for ac_dir in $PATH; do
5503    IFS="$lt_save_ifs"
5504    test -z "$ac_dir" && ac_dir=.
5505    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5506      lt_cv_path_LD="$ac_dir/$ac_prog"
5507      # Check to see if the program is GNU ld.  I'd rather use --version,
5508      # but apparently some variants of GNU ld only accept -v.
5509      # Break only if it was the GNU/non-GNU ld that we prefer.
5510      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5511      *GNU* | *'with BFD'*)
5512        test "$with_gnu_ld" != no && break
5513        ;;
5514      *)
5515        test "$with_gnu_ld" != yes && break
5516        ;;
5517      esac
5518    fi
5519  done
5520  IFS="$lt_save_ifs"
5521else
5522  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5523fi
5524fi
5525
5526LD="$lt_cv_path_LD"
5527if test -n "$LD"; then
5528  echo "$as_me:$LINENO: result: $LD" >&5
5529echo "${ECHO_T}$LD" >&6
5530else
5531  echo "$as_me:$LINENO: result: no" >&5
5532echo "${ECHO_T}no" >&6
5533fi
5534test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5535echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5536   { (exit 1); exit 1; }; }
5537echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5538echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5539if test "${lt_cv_prog_gnu_ld+set}" = set; then
5540  echo $ECHO_N "(cached) $ECHO_C" >&6
5541else
5542  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5543case `$LD -v 2>&1 </dev/null` in
5544*GNU* | *'with BFD'*)
5545  lt_cv_prog_gnu_ld=yes
5546  ;;
5547*)
5548  lt_cv_prog_gnu_ld=no
5549  ;;
5550esac
5551fi
5552echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5553echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5554with_gnu_ld=$lt_cv_prog_gnu_ld
5555
5556
5557echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5558echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5559if test "${lt_cv_ld_reload_flag+set}" = set; then
5560  echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562  lt_cv_ld_reload_flag='-r'
5563fi
5564echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5565echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5566reload_flag=$lt_cv_ld_reload_flag
5567case $reload_flag in
5568"" | " "*) ;;
5569*) reload_flag=" $reload_flag" ;;
5570esac
5571reload_cmds='$LD$reload_flag -o $output$reload_objs'
5572case $host_os in
5573  darwin*)
5574    if test "$GCC" = yes; then
5575      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5576    else
5577      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5578    fi
5579    ;;
5580esac
5581
5582echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5583echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5584if test "${lt_cv_path_NM+set}" = set; then
5585  echo $ECHO_N "(cached) $ECHO_C" >&6
5586else
5587  if test -n "$NM"; then
5588  # Let the user override the test.
5589  lt_cv_path_NM="$NM"
5590else
5591  lt_nm_to_check="${ac_tool_prefix}nm"
5592  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5593    lt_nm_to_check="$lt_nm_to_check nm"
5594  fi
5595  for lt_tmp_nm in $lt_nm_to_check; do
5596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5597    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5598      IFS="$lt_save_ifs"
5599      test -z "$ac_dir" && ac_dir=.
5600      tmp_nm="$ac_dir/$lt_tmp_nm"
5601      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5602        # Check to see if the nm accepts a BSD-compat flag.
5603        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5604        #   nm: unknown option "B" ignored
5605        # Tru64's nm complains that /dev/null is an invalid object file
5606        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5607        */dev/null* | *'Invalid file or object type'*)
5608          lt_cv_path_NM="$tmp_nm -B"
5609          break
5610          ;;
5611        *)
5612          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5613          */dev/null*)
5614            lt_cv_path_NM="$tmp_nm -p"
5615            break
5616            ;;
5617          *)
5618            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5619            continue # so that we can try to find one that supports BSD flags
5620            ;;
5621          esac
5622          ;;
5623        esac
5624      fi
5625    done
5626    IFS="$lt_save_ifs"
5627  done
5628  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5629fi
5630fi
5631echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5632echo "${ECHO_T}$lt_cv_path_NM" >&6
5633NM="$lt_cv_path_NM"
5634
5635echo "$as_me:$LINENO: checking whether ln -s works" >&5
5636echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5637LN_S=$as_ln_s
5638if test "$LN_S" = "ln -s"; then
5639  echo "$as_me:$LINENO: result: yes" >&5
5640echo "${ECHO_T}yes" >&6
5641else
5642  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5643echo "${ECHO_T}no, using $LN_S" >&6
5644fi
5645
5646echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5647echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5648if test "${lt_cv_deplibs_check_method+set}" = set; then
5649  echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651  lt_cv_file_magic_cmd='$MAGIC_CMD'
5652lt_cv_file_magic_test_file=
5653lt_cv_deplibs_check_method='unknown'
5654# Need to set the preceding variable on all platforms that support
5655# interlibrary dependencies.
5656# 'none' -- dependencies not supported.
5657# `unknown' -- same as none, but documents that we really don't know.
5658# 'pass_all' -- all dependencies passed with no checks.
5659# 'test_compile' -- check by making test program.
5660# 'file_magic [[regex]]' -- check by looking for files in library path
5661# which responds to the $file_magic_cmd with a given extended regex.
5662# If you have `file' or equivalent on your system and you're not sure
5663# whether `pass_all' will *always* work, you probably want this one.
5664
5665case $host_os in
5666aix4* | aix5*)
5667  lt_cv_deplibs_check_method=pass_all
5668  ;;
5669
5670beos*)
5671  lt_cv_deplibs_check_method=pass_all
5672  ;;
5673
5674bsdi[45]*)
5675  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5676  lt_cv_file_magic_cmd='/usr/bin/file -L'
5677  lt_cv_file_magic_test_file=/shlib/libc.so
5678  ;;
5679
5680cygwin*)
5681  # func_win32_libid is a shell function defined in ltmain.sh
5682  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5683  lt_cv_file_magic_cmd='func_win32_libid'
5684  ;;
5685
5686mingw* | pw32*)
5687  # Base MSYS/MinGW do not provide the 'file' command needed by
5688  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5689  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5690  lt_cv_file_magic_cmd='$OBJDUMP -f'
5691  ;;
5692
5693darwin* | rhapsody*)
5694  lt_cv_deplibs_check_method=pass_all
5695  ;;
5696
5697freebsd* | kfreebsd*-gnu | dragonfly*)
5698  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5699    case $host_cpu in
5700    i*86 )
5701      # Not sure whether the presence of OpenBSD here was a mistake.
5702      # Let's accept both of them until this is cleared up.
5703      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5704      lt_cv_file_magic_cmd=/usr/bin/file
5705      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5706      ;;
5707    esac
5708  else
5709    lt_cv_deplibs_check_method=pass_all
5710  fi
5711  ;;
5712
5713gnu*)
5714  lt_cv_deplibs_check_method=pass_all
5715  ;;
5716
5717hpux10.20* | hpux11*)
5718  lt_cv_file_magic_cmd=/usr/bin/file
5719  case $host_cpu in
5720  ia64*)
5721    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5722    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5723    ;;
5724  hppa*64*)
5725    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]'
5726    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5727    ;;
5728  *)
5729    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5730    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5731    ;;
5732  esac
5733  ;;
5734
5735interix3*)
5736  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5737  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5738  ;;
5739
5740irix5* | irix6* | nonstopux*)
5741  case $LD in
5742  *-32|*"-32 ") libmagic=32-bit;;
5743  *-n32|*"-n32 ") libmagic=N32;;
5744  *-64|*"-64 ") libmagic=64-bit;;
5745  *) libmagic=never-match;;
5746  esac
5747  lt_cv_deplibs_check_method=pass_all
5748  ;;
5749
5750# This must be Linux ELF.
5751linux*)
5752  lt_cv_deplibs_check_method=pass_all
5753  ;;
5754
5755netbsd*)
5756  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5757    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5758  else
5759    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5760  fi
5761  ;;
5762
5763newos6*)
5764  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5765  lt_cv_file_magic_cmd=/usr/bin/file
5766  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5767  ;;
5768
5769nto-qnx*)
5770  lt_cv_deplibs_check_method=unknown
5771  ;;
5772
5773openbsd*)
5774  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5775    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5776  else
5777    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5778  fi
5779  ;;
5780
5781osf3* | osf4* | osf5*)
5782  lt_cv_deplibs_check_method=pass_all
5783  ;;
5784
5785solaris*)
5786  lt_cv_deplibs_check_method=pass_all
5787  ;;
5788
5789sysv4 | sysv4.3*)
5790  case $host_vendor in
5791  motorola)
5792    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]'
5793    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5794    ;;
5795  ncr)
5796    lt_cv_deplibs_check_method=pass_all
5797    ;;
5798  sequent)
5799    lt_cv_file_magic_cmd='/bin/file'
5800    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5801    ;;
5802  sni)
5803    lt_cv_file_magic_cmd='/bin/file'
5804    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5805    lt_cv_file_magic_test_file=/lib/libc.so
5806    ;;
5807  siemens)
5808    lt_cv_deplibs_check_method=pass_all
5809    ;;
5810  pc)
5811    lt_cv_deplibs_check_method=pass_all
5812    ;;
5813  esac
5814  ;;
5815
5816sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5817  lt_cv_deplibs_check_method=pass_all
5818  ;;
5819esac
5820
5821fi
5822echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5823echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5824file_magic_cmd=$lt_cv_file_magic_cmd
5825deplibs_check_method=$lt_cv_deplibs_check_method
5826test -z "$deplibs_check_method" && deplibs_check_method=unknown
5827
5828
5829
5830
5831# If no C compiler was specified, use CC.
5832LTCC=${LTCC-"$CC"}
5833
5834# If no C compiler flags were specified, use CFLAGS.
5835LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5836
5837# Allow CC to be a program name with arguments.
5838compiler=$CC
5839
5840# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5841if test "${enable_libtool_lock+set}" = set; then
5842  enableval="$enable_libtool_lock"
5843
5844fi;
5845test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5846
5847# Some flags need to be propagated to the compiler or linker for good
5848# libtool support.
5849case $host in
5850ia64-*-hpux*)
5851  # Find out which ABI we are using.
5852  echo 'int i;' > conftest.$ac_ext
5853  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5854  (eval $ac_compile) 2>&5
5855  ac_status=$?
5856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857  (exit $ac_status); }; then
5858    case `/usr/bin/file conftest.$ac_objext` in
5859    *ELF-32*)
5860      HPUX_IA64_MODE="32"
5861      ;;
5862    *ELF-64*)
5863      HPUX_IA64_MODE="64"
5864      ;;
5865    esac
5866  fi
5867  rm -rf conftest*
5868  ;;
5869*-*-irix6*)
5870  # Find out which ABI we are using.
5871  echo '#line 5871 "configure"' > conftest.$ac_ext
5872  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873  (eval $ac_compile) 2>&5
5874  ac_status=$?
5875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876  (exit $ac_status); }; then
5877   if test "$lt_cv_prog_gnu_ld" = yes; then
5878    case `/usr/bin/file conftest.$ac_objext` in
5879    *32-bit*)
5880      LD="${LD-ld} -melf32bsmip"
5881      ;;
5882    *N32*)
5883      LD="${LD-ld} -melf32bmipn32"
5884      ;;
5885    *64-bit*)
5886      LD="${LD-ld} -melf64bmip"
5887      ;;
5888    esac
5889   else
5890    case `/usr/bin/file conftest.$ac_objext` in
5891    *32-bit*)
5892      LD="${LD-ld} -32"
5893      ;;
5894    *N32*)
5895      LD="${LD-ld} -n32"
5896      ;;
5897    *64-bit*)
5898      LD="${LD-ld} -64"
5899      ;;
5900    esac
5901   fi
5902  fi
5903  rm -rf conftest*
5904  ;;
5905
5906x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5907  # Find out which ABI we are using.
5908  echo 'int i;' > conftest.$ac_ext
5909  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5910  (eval $ac_compile) 2>&5
5911  ac_status=$?
5912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); }; then
5914    case `/usr/bin/file conftest.o` in
5915    *32-bit*)
5916      case $host in
5917        x86_64-*linux*)
5918          LD="${LD-ld} -m elf_i386"
5919          ;;
5920        ppc64-*linux*|powerpc64-*linux*)
5921          LD="${LD-ld} -m elf32ppclinux"
5922          ;;
5923        s390x-*linux*)
5924          LD="${LD-ld} -m elf_s390"
5925          ;;
5926        sparc64-*linux*)
5927          LD="${LD-ld} -m elf32_sparc"
5928          ;;
5929      esac
5930      ;;
5931    *64-bit*)
5932      case $host in
5933        x86_64-*linux*)
5934          LD="${LD-ld} -m elf_x86_64"
5935          ;;
5936        ppc*-*linux*|powerpc*-*linux*)
5937          LD="${LD-ld} -m elf64ppc"
5938          ;;
5939        s390*-*linux*)
5940          LD="${LD-ld} -m elf64_s390"
5941          ;;
5942        sparc*-*linux*)
5943          LD="${LD-ld} -m elf64_sparc"
5944          ;;
5945      esac
5946      ;;
5947    esac
5948  fi
5949  rm -rf conftest*
5950  ;;
5951
5952*-*-sco3.2v5*)
5953  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5954  SAVE_CFLAGS="$CFLAGS"
5955  CFLAGS="$CFLAGS -belf"
5956  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5957echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5958if test "${lt_cv_cc_needs_belf+set}" = set; then
5959  echo $ECHO_N "(cached) $ECHO_C" >&6
5960else
5961  ac_ext=c
5962ac_cpp='$CPP $CPPFLAGS'
5963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965ac_compiler_gnu=$ac_cv_c_compiler_gnu
5966
5967     cat >conftest.$ac_ext <<_ACEOF
5968/* confdefs.h.  */
5969_ACEOF
5970cat confdefs.h >>conftest.$ac_ext
5971cat >>conftest.$ac_ext <<_ACEOF
5972/* end confdefs.h.  */
5973
5974int
5975main ()
5976{
5977
5978  ;
5979  return 0;
5980}
5981_ACEOF
5982rm -f conftest.$ac_objext conftest$ac_exeext
5983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984  (eval $ac_link) 2>conftest.er1
5985  ac_status=$?
5986  grep -v '^ *+' conftest.er1 >conftest.err
5987  rm -f conftest.er1
5988  cat conftest.err >&5
5989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990  (exit $ac_status); } &&
5991         { ac_try='test -z "$ac_c_werror_flag"
5992                         || test ! -s conftest.err'
5993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5994  (eval $ac_try) 2>&5
5995  ac_status=$?
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); }; } &&
5998         { ac_try='test -s conftest$ac_exeext'
5999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000  (eval $ac_try) 2>&5
6001  ac_status=$?
6002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003  (exit $ac_status); }; }; then
6004  lt_cv_cc_needs_belf=yes
6005else
6006  echo "$as_me: failed program was:" >&5
6007sed 's/^/| /' conftest.$ac_ext >&5
6008
6009lt_cv_cc_needs_belf=no
6010fi
6011rm -f conftest.err conftest.$ac_objext \
6012      conftest$ac_exeext conftest.$ac_ext
6013     ac_ext=c
6014ac_cpp='$CPP $CPPFLAGS'
6015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6017ac_compiler_gnu=$ac_cv_c_compiler_gnu
6018
6019fi
6020echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6021echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6022  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6023    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6024    CFLAGS="$SAVE_CFLAGS"
6025  fi
6026  ;;
6027sparc*-*solaris*)
6028  # Find out which ABI we are using.
6029  echo 'int i;' > conftest.$ac_ext
6030  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031  (eval $ac_compile) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; then
6035    case `/usr/bin/file conftest.o` in
6036    *64-bit*)
6037      case $lt_cv_prog_gnu_ld in
6038      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6039      *)    LD="${LD-ld} -64" ;;
6040      esac
6041      ;;
6042    esac
6043  fi
6044  rm -rf conftest*
6045  ;;
6046
6047
6048esac
6049
6050need_locks="$enable_libtool_lock"
6051
6052
6053ac_ext=c
6054ac_cpp='$CPP $CPPFLAGS'
6055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6059echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6060# On Suns, sometimes $CPP names a directory.
6061if test -n "$CPP" && test -d "$CPP"; then
6062  CPP=
6063fi
6064if test -z "$CPP"; then
6065  if test "${ac_cv_prog_CPP+set}" = set; then
6066  echo $ECHO_N "(cached) $ECHO_C" >&6
6067else
6068      # Double quotes because CPP needs to be expanded
6069    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6070    do
6071      ac_preproc_ok=false
6072for ac_c_preproc_warn_flag in '' yes
6073do
6074  # Use a header file that comes with gcc, so configuring glibc
6075  # with a fresh cross-compiler works.
6076  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6077  # <limits.h> exists even on freestanding compilers.
6078  # On the NeXT, cc -E runs the code through the compiler's parser,
6079  # not just through cpp. "Syntax error" is here to catch this case.
6080  cat >conftest.$ac_ext <<_ACEOF
6081/* confdefs.h.  */
6082_ACEOF
6083cat confdefs.h >>conftest.$ac_ext
6084cat >>conftest.$ac_ext <<_ACEOF
6085/* end confdefs.h.  */
6086#ifdef __STDC__
6087# include <limits.h>
6088#else
6089# include <assert.h>
6090#endif
6091                     Syntax error
6092_ACEOF
6093if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6094  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6095  ac_status=$?
6096  grep -v '^ *+' conftest.er1 >conftest.err
6097  rm -f conftest.er1
6098  cat conftest.err >&5
6099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100  (exit $ac_status); } >/dev/null; then
6101  if test -s conftest.err; then
6102    ac_cpp_err=$ac_c_preproc_warn_flag
6103    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6104  else
6105    ac_cpp_err=
6106  fi
6107else
6108  ac_cpp_err=yes
6109fi
6110if test -z "$ac_cpp_err"; then
6111  :
6112else
6113  echo "$as_me: failed program was:" >&5
6114sed 's/^/| /' conftest.$ac_ext >&5
6115
6116  # Broken: fails on valid input.
6117continue
6118fi
6119rm -f conftest.err conftest.$ac_ext
6120
6121  # OK, works on sane cases.  Now check whether non-existent headers
6122  # can be detected and how.
6123  cat >conftest.$ac_ext <<_ACEOF
6124/* confdefs.h.  */
6125_ACEOF
6126cat confdefs.h >>conftest.$ac_ext
6127cat >>conftest.$ac_ext <<_ACEOF
6128/* end confdefs.h.  */
6129#include <ac_nonexistent.h>
6130_ACEOF
6131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6132  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6133  ac_status=$?
6134  grep -v '^ *+' conftest.er1 >conftest.err
6135  rm -f conftest.er1
6136  cat conftest.err >&5
6137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138  (exit $ac_status); } >/dev/null; then
6139  if test -s conftest.err; then
6140    ac_cpp_err=$ac_c_preproc_warn_flag
6141    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6142  else
6143    ac_cpp_err=
6144  fi
6145else
6146  ac_cpp_err=yes
6147fi
6148if test -z "$ac_cpp_err"; then
6149  # Broken: success on invalid input.
6150continue
6151else
6152  echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155  # Passes both tests.
6156ac_preproc_ok=:
6157break
6158fi
6159rm -f conftest.err conftest.$ac_ext
6160
6161done
6162# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6163rm -f conftest.err conftest.$ac_ext
6164if $ac_preproc_ok; then
6165  break
6166fi
6167
6168    done
6169    ac_cv_prog_CPP=$CPP
6170
6171fi
6172  CPP=$ac_cv_prog_CPP
6173else
6174  ac_cv_prog_CPP=$CPP
6175fi
6176echo "$as_me:$LINENO: result: $CPP" >&5
6177echo "${ECHO_T}$CPP" >&6
6178ac_preproc_ok=false
6179for ac_c_preproc_warn_flag in '' yes
6180do
6181  # Use a header file that comes with gcc, so configuring glibc
6182  # with a fresh cross-compiler works.
6183  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6184  # <limits.h> exists even on freestanding compilers.
6185  # On the NeXT, cc -E runs the code through the compiler's parser,
6186  # not just through cpp. "Syntax error" is here to catch this case.
6187  cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h.  */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h.  */
6193#ifdef __STDC__
6194# include <limits.h>
6195#else
6196# include <assert.h>
6197#endif
6198                     Syntax error
6199_ACEOF
6200if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6201  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6202  ac_status=$?
6203  grep -v '^ *+' conftest.er1 >conftest.err
6204  rm -f conftest.er1
6205  cat conftest.err >&5
6206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207  (exit $ac_status); } >/dev/null; then
6208  if test -s conftest.err; then
6209    ac_cpp_err=$ac_c_preproc_warn_flag
6210    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6211  else
6212    ac_cpp_err=
6213  fi
6214else
6215  ac_cpp_err=yes
6216fi
6217if test -z "$ac_cpp_err"; then
6218  :
6219else
6220  echo "$as_me: failed program was:" >&5
6221sed 's/^/| /' conftest.$ac_ext >&5
6222
6223  # Broken: fails on valid input.
6224continue
6225fi
6226rm -f conftest.err conftest.$ac_ext
6227
6228  # OK, works on sane cases.  Now check whether non-existent headers
6229  # can be detected and how.
6230  cat >conftest.$ac_ext <<_ACEOF
6231/* confdefs.h.  */
6232_ACEOF
6233cat confdefs.h >>conftest.$ac_ext
6234cat >>conftest.$ac_ext <<_ACEOF
6235/* end confdefs.h.  */
6236#include <ac_nonexistent.h>
6237_ACEOF
6238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6239  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6240  ac_status=$?
6241  grep -v '^ *+' conftest.er1 >conftest.err
6242  rm -f conftest.er1
6243  cat conftest.err >&5
6244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245  (exit $ac_status); } >/dev/null; then
6246  if test -s conftest.err; then
6247    ac_cpp_err=$ac_c_preproc_warn_flag
6248    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6249  else
6250    ac_cpp_err=
6251  fi
6252else
6253  ac_cpp_err=yes
6254fi
6255if test -z "$ac_cpp_err"; then
6256  # Broken: success on invalid input.
6257continue
6258else
6259  echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262  # Passes both tests.
6263ac_preproc_ok=:
6264break
6265fi
6266rm -f conftest.err conftest.$ac_ext
6267
6268done
6269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6270rm -f conftest.err conftest.$ac_ext
6271if $ac_preproc_ok; then
6272  :
6273else
6274  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6275See \`config.log' for more details." >&5
6276echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6277See \`config.log' for more details." >&2;}
6278   { (exit 1); exit 1; }; }
6279fi
6280
6281ac_ext=c
6282ac_cpp='$CPP $CPPFLAGS'
6283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6285ac_compiler_gnu=$ac_cv_c_compiler_gnu
6286
6287
6288echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6289echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6290if test "${ac_cv_header_stdc+set}" = set; then
6291  echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293  cat >conftest.$ac_ext <<_ACEOF
6294/* confdefs.h.  */
6295_ACEOF
6296cat confdefs.h >>conftest.$ac_ext
6297cat >>conftest.$ac_ext <<_ACEOF
6298/* end confdefs.h.  */
6299#include <stdlib.h>
6300#include <stdarg.h>
6301#include <string.h>
6302#include <float.h>
6303
6304int
6305main ()
6306{
6307
6308  ;
6309  return 0;
6310}
6311_ACEOF
6312rm -f conftest.$ac_objext
6313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6314  (eval $ac_compile) 2>conftest.er1
6315  ac_status=$?
6316  grep -v '^ *+' conftest.er1 >conftest.err
6317  rm -f conftest.er1
6318  cat conftest.err >&5
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); } &&
6321         { ac_try='test -z "$ac_c_werror_flag"
6322                         || test ! -s conftest.err'
6323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324  (eval $ac_try) 2>&5
6325  ac_status=$?
6326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327  (exit $ac_status); }; } &&
6328         { ac_try='test -s conftest.$ac_objext'
6329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330  (eval $ac_try) 2>&5
6331  ac_status=$?
6332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333  (exit $ac_status); }; }; then
6334  ac_cv_header_stdc=yes
6335else
6336  echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6338
6339ac_cv_header_stdc=no
6340fi
6341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6342
6343if test $ac_cv_header_stdc = yes; then
6344  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6345  cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h.  */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h.  */
6351#include <string.h>
6352
6353_ACEOF
6354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6355  $EGREP "memchr" >/dev/null 2>&1; then
6356  :
6357else
6358  ac_cv_header_stdc=no
6359fi
6360rm -f conftest*
6361
6362fi
6363
6364if test $ac_cv_header_stdc = yes; then
6365  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6366  cat >conftest.$ac_ext <<_ACEOF
6367/* confdefs.h.  */
6368_ACEOF
6369cat confdefs.h >>conftest.$ac_ext
6370cat >>conftest.$ac_ext <<_ACEOF
6371/* end confdefs.h.  */
6372#include <stdlib.h>
6373
6374_ACEOF
6375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376  $EGREP "free" >/dev/null 2>&1; then
6377  :
6378else
6379  ac_cv_header_stdc=no
6380fi
6381rm -f conftest*
6382
6383fi
6384
6385if test $ac_cv_header_stdc = yes; then
6386  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6387  if test "$cross_compiling" = yes; then
6388  :
6389else
6390  cat >conftest.$ac_ext <<_ACEOF
6391/* confdefs.h.  */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h.  */
6396#include <ctype.h>
6397#if ((' ' & 0x0FF) == 0x020)
6398# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6399# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6400#else
6401# define ISLOWER(c) \
6402                   (('a' <= (c) && (c) <= 'i') \
6403                     || ('j' <= (c) && (c) <= 'r') \
6404                     || ('s' <= (c) && (c) <= 'z'))
6405# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6406#endif
6407
6408#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6409int
6410main ()
6411{
6412  int i;
6413  for (i = 0; i < 256; i++)
6414    if (XOR (islower (i), ISLOWER (i))
6415        || toupper (i) != TOUPPER (i))
6416      exit(2);
6417  exit (0);
6418}
6419_ACEOF
6420rm -f conftest$ac_exeext
6421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422  (eval $ac_link) 2>&5
6423  ac_status=$?
6424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427  (eval $ac_try) 2>&5
6428  ac_status=$?
6429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430  (exit $ac_status); }; }; then
6431  :
6432else
6433  echo "$as_me: program exited with status $ac_status" >&5
6434echo "$as_me: failed program was:" >&5
6435sed 's/^/| /' conftest.$ac_ext >&5
6436
6437( exit $ac_status )
6438ac_cv_header_stdc=no
6439fi
6440rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6441fi
6442fi
6443fi
6444echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6445echo "${ECHO_T}$ac_cv_header_stdc" >&6
6446if test $ac_cv_header_stdc = yes; then
6447
6448cat >>confdefs.h <<\_ACEOF
6449#define STDC_HEADERS 1
6450_ACEOF
6451
6452fi
6453
6454# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6465                  inttypes.h stdint.h unistd.h
6466do
6467as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6468echo "$as_me:$LINENO: checking for $ac_header" >&5
6469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6470if eval "test \"\${$as_ac_Header+set}\" = set"; then
6471  echo $ECHO_N "(cached) $ECHO_C" >&6
6472else
6473  cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h.  */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h.  */
6479$ac_includes_default
6480
6481#include <$ac_header>
6482_ACEOF
6483rm -f conftest.$ac_objext
6484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485  (eval $ac_compile) 2>conftest.er1
6486  ac_status=$?
6487  grep -v '^ *+' conftest.er1 >conftest.err
6488  rm -f conftest.er1
6489  cat conftest.err >&5
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); } &&
6492         { ac_try='test -z "$ac_c_werror_flag"
6493                         || test ! -s conftest.err'
6494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495  (eval $ac_try) 2>&5
6496  ac_status=$?
6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); }; } &&
6499         { ac_try='test -s conftest.$ac_objext'
6500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501  (eval $ac_try) 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); }; }; then
6505  eval "$as_ac_Header=yes"
6506else
6507  echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510eval "$as_ac_Header=no"
6511fi
6512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513fi
6514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6516if test `eval echo '${'$as_ac_Header'}'` = yes; then
6517  cat >>confdefs.h <<_ACEOF
6518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519_ACEOF
6520
6521fi
6522
6523done
6524
6525
6526
6527for ac_header in dlfcn.h
6528do
6529as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6530if eval "test \"\${$as_ac_Header+set}\" = set"; then
6531  echo "$as_me:$LINENO: checking for $ac_header" >&5
6532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6533if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534  echo $ECHO_N "(cached) $ECHO_C" >&6
6535fi
6536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538else
6539  # Is the header compilable?
6540echo "$as_me:$LINENO: checking $ac_header usability" >&5
6541echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6542cat >conftest.$ac_ext <<_ACEOF
6543/* confdefs.h.  */
6544_ACEOF
6545cat confdefs.h >>conftest.$ac_ext
6546cat >>conftest.$ac_ext <<_ACEOF
6547/* end confdefs.h.  */
6548$ac_includes_default
6549#include <$ac_header>
6550_ACEOF
6551rm -f conftest.$ac_objext
6552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6553  (eval $ac_compile) 2>conftest.er1
6554  ac_status=$?
6555  grep -v '^ *+' conftest.er1 >conftest.err
6556  rm -f conftest.er1
6557  cat conftest.err >&5
6558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559  (exit $ac_status); } &&
6560         { ac_try='test -z "$ac_c_werror_flag"
6561                         || test ! -s conftest.err'
6562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563  (eval $ac_try) 2>&5
6564  ac_status=$?
6565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); }; } &&
6567         { ac_try='test -s conftest.$ac_objext'
6568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569  (eval $ac_try) 2>&5
6570  ac_status=$?
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); }; }; then
6573  ac_header_compiler=yes
6574else
6575  echo "$as_me: failed program was:" >&5
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578ac_header_compiler=no
6579fi
6580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6582echo "${ECHO_T}$ac_header_compiler" >&6
6583
6584# Is the header present?
6585echo "$as_me:$LINENO: checking $ac_header presence" >&5
6586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6587cat >conftest.$ac_ext <<_ACEOF
6588/* confdefs.h.  */
6589_ACEOF
6590cat confdefs.h >>conftest.$ac_ext
6591cat >>conftest.$ac_ext <<_ACEOF
6592/* end confdefs.h.  */
6593#include <$ac_header>
6594_ACEOF
6595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6596  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6597  ac_status=$?
6598  grep -v '^ *+' conftest.er1 >conftest.err
6599  rm -f conftest.er1
6600  cat conftest.err >&5
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); } >/dev/null; then
6603  if test -s conftest.err; then
6604    ac_cpp_err=$ac_c_preproc_warn_flag
6605    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6606  else
6607    ac_cpp_err=
6608  fi
6609else
6610  ac_cpp_err=yes
6611fi
6612if test -z "$ac_cpp_err"; then
6613  ac_header_preproc=yes
6614else
6615  echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618  ac_header_preproc=no
6619fi
6620rm -f conftest.err conftest.$ac_ext
6621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6622echo "${ECHO_T}$ac_header_preproc" >&6
6623
6624# So?  What about this header?
6625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6626  yes:no: )
6627    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6629    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6631    ac_header_preproc=yes
6632    ;;
6633  no:yes:* )
6634    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6636    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6637echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6638    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6640    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6641echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6642    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6644    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6646    (
6647      cat <<\_ASBOX
6648## ----------------------------------- ##
6649## Report this to clp@list.coin-or.org ##
6650## ----------------------------------- ##
6651_ASBOX
6652    ) |
6653      sed "s/^/$as_me: WARNING:     /" >&2
6654    ;;
6655esac
6656echo "$as_me:$LINENO: checking for $ac_header" >&5
6657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6658if eval "test \"\${$as_ac_Header+set}\" = set"; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661  eval "$as_ac_Header=\$ac_header_preproc"
6662fi
6663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6665
6666fi
6667if test `eval echo '${'$as_ac_Header'}'` = yes; then
6668  cat >>confdefs.h <<_ACEOF
6669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6670_ACEOF
6671
6672fi
6673
6674done
6675
6676
6677
6678if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6679    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6680    (test "X$CXX" != "Xg++"))) ; then
6681  ac_ext=cc
6682ac_cpp='$CXXCPP $CPPFLAGS'
6683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6686echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6687echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6688if test -z "$CXXCPP"; then
6689  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6690  echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692      # Double quotes because CXXCPP needs to be expanded
6693    for CXXCPP in "$CXX -E" "/lib/cpp"
6694    do
6695      ac_preproc_ok=false
6696for ac_cxx_preproc_warn_flag in '' yes
6697do
6698  # Use a header file that comes with gcc, so configuring glibc
6699  # with a fresh cross-compiler works.
6700  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6701  # <limits.h> exists even on freestanding compilers.
6702  # On the NeXT, cc -E runs the code through the compiler's parser,
6703  # not just through cpp. "Syntax error" is here to catch this case.
6704  cat >conftest.$ac_ext <<_ACEOF
6705/* confdefs.h.  */
6706_ACEOF
6707cat confdefs.h >>conftest.$ac_ext
6708cat >>conftest.$ac_ext <<_ACEOF
6709/* end confdefs.h.  */
6710#ifdef __STDC__
6711# include <limits.h>
6712#else
6713# include <assert.h>
6714#endif
6715                     Syntax error
6716_ACEOF
6717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6718  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6719  ac_status=$?
6720  grep -v '^ *+' conftest.er1 >conftest.err
6721  rm -f conftest.er1
6722  cat conftest.err >&5
6723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724  (exit $ac_status); } >/dev/null; then
6725  if test -s conftest.err; then
6726    ac_cpp_err=$ac_cxx_preproc_warn_flag
6727    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6728  else
6729    ac_cpp_err=
6730  fi
6731else
6732  ac_cpp_err=yes
6733fi
6734if test -z "$ac_cpp_err"; then
6735  :
6736else
6737  echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
6739
6740  # Broken: fails on valid input.
6741continue
6742fi
6743rm -f conftest.err conftest.$ac_ext
6744
6745  # OK, works on sane cases.  Now check whether non-existent headers
6746  # can be detected and how.
6747  cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h.  */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h.  */
6753#include <ac_nonexistent.h>
6754_ACEOF
6755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6756  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6757  ac_status=$?
6758  grep -v '^ *+' conftest.er1 >conftest.err
6759  rm -f conftest.er1
6760  cat conftest.err >&5
6761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762  (exit $ac_status); } >/dev/null; then
6763  if test -s conftest.err; then
6764    ac_cpp_err=$ac_cxx_preproc_warn_flag
6765    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6766  else
6767    ac_cpp_err=
6768  fi
6769else
6770  ac_cpp_err=yes
6771fi
6772if test -z "$ac_cpp_err"; then
6773  # Broken: success on invalid input.
6774continue
6775else
6776  echo "$as_me: failed program was:" >&5
6777sed 's/^/| /' conftest.$ac_ext >&5
6778
6779  # Passes both tests.
6780ac_preproc_ok=:
6781break
6782fi
6783rm -f conftest.err conftest.$ac_ext
6784
6785done
6786# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6787rm -f conftest.err conftest.$ac_ext
6788if $ac_preproc_ok; then
6789  break
6790fi
6791
6792    done
6793    ac_cv_prog_CXXCPP=$CXXCPP
6794
6795fi
6796  CXXCPP=$ac_cv_prog_CXXCPP
6797else
6798  ac_cv_prog_CXXCPP=$CXXCPP
6799fi
6800echo "$as_me:$LINENO: result: $CXXCPP" >&5
6801echo "${ECHO_T}$CXXCPP" >&6
6802ac_preproc_ok=false
6803for ac_cxx_preproc_warn_flag in '' yes
6804do
6805  # Use a header file that comes with gcc, so configuring glibc
6806  # with a fresh cross-compiler works.
6807  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6808  # <limits.h> exists even on freestanding compilers.
6809  # On the NeXT, cc -E runs the code through the compiler's parser,
6810  # not just through cpp. "Syntax error" is here to catch this case.
6811  cat >conftest.$ac_ext <<_ACEOF
6812/* confdefs.h.  */
6813_ACEOF
6814cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h.  */
6817#ifdef __STDC__
6818# include <limits.h>
6819#else
6820# include <assert.h>
6821#endif
6822                     Syntax error
6823_ACEOF
6824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6825  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6826  ac_status=$?
6827  grep -v '^ *+' conftest.er1 >conftest.err
6828  rm -f conftest.er1
6829  cat conftest.err >&5
6830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831  (exit $ac_status); } >/dev/null; then
6832  if test -s conftest.err; then
6833    ac_cpp_err=$ac_cxx_preproc_warn_flag
6834    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6835  else
6836    ac_cpp_err=
6837  fi
6838else
6839  ac_cpp_err=yes
6840fi
6841if test -z "$ac_cpp_err"; then
6842  :
6843else
6844  echo "$as_me: failed program was:" >&5
6845sed 's/^/| /' conftest.$ac_ext >&5
6846
6847  # Broken: fails on valid input.
6848continue
6849fi
6850rm -f conftest.err conftest.$ac_ext
6851
6852  # OK, works on sane cases.  Now check whether non-existent headers
6853  # can be detected and how.
6854  cat >conftest.$ac_ext <<_ACEOF
6855/* confdefs.h.  */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h.  */
6860#include <ac_nonexistent.h>
6861_ACEOF
6862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6863  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6864  ac_status=$?
6865  grep -v '^ *+' conftest.er1 >conftest.err
6866  rm -f conftest.er1
6867  cat conftest.err >&5
6868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869  (exit $ac_status); } >/dev/null; then
6870  if test -s conftest.err; then
6871    ac_cpp_err=$ac_cxx_preproc_warn_flag
6872    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6873  else
6874    ac_cpp_err=
6875  fi
6876else
6877  ac_cpp_err=yes
6878fi
6879if test -z "$ac_cpp_err"; then
6880  # Broken: success on invalid input.
6881continue
6882else
6883  echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886  # Passes both tests.
6887ac_preproc_ok=:
6888break
6889fi
6890rm -f conftest.err conftest.$ac_ext
6891
6892done
6893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6894rm -f conftest.err conftest.$ac_ext
6895if $ac_preproc_ok; then
6896  :
6897else
6898  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6899See \`config.log' for more details." >&5
6900echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6901See \`config.log' for more details." >&2;}
6902   { (exit 1); exit 1; }; }
6903fi
6904
6905ac_ext=cc
6906ac_cpp='$CXXCPP $CPPFLAGS'
6907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6910
6911fi
6912
6913ac_ext=f
6914ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6915ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6916ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6917if test -n "$ac_tool_prefix"; then
6918  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6919  do
6920    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6921set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6922echo "$as_me:$LINENO: checking for $ac_word" >&5
6923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6924if test "${ac_cv_prog_F77+set}" = set; then
6925  echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927  if test -n "$F77"; then
6928  ac_cv_prog_F77="$F77" # Let the user override the test.
6929else
6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933  IFS=$as_save_IFS
6934  test -z "$as_dir" && as_dir=.
6935  for ac_exec_ext in '' $ac_executable_extensions; do
6936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939    break 2
6940  fi
6941done
6942done
6943
6944fi
6945fi
6946F77=$ac_cv_prog_F77
6947if test -n "$F77"; then
6948  echo "$as_me:$LINENO: result: $F77" >&5
6949echo "${ECHO_T}$F77" >&6
6950else
6951  echo "$as_me:$LINENO: result: no" >&5
6952echo "${ECHO_T}no" >&6
6953fi
6954
6955    test -n "$F77" && break
6956  done
6957fi
6958if test -z "$F77"; then
6959  ac_ct_F77=$F77
6960  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6961do
6962  # Extract the first word of "$ac_prog", so it can be a program name with args.
6963set dummy $ac_prog; ac_word=$2
6964echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6966if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6967  echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969  if test -n "$ac_ct_F77"; then
6970  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6971else
6972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975  IFS=$as_save_IFS
6976  test -z "$as_dir" && as_dir=.
6977  for ac_exec_ext in '' $ac_executable_extensions; do
6978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979    ac_cv_prog_ac_ct_F77="$ac_prog"
6980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981    break 2
6982  fi
6983done
6984done
6985
6986fi
6987fi
6988ac_ct_F77=$ac_cv_prog_ac_ct_F77
6989if test -n "$ac_ct_F77"; then
6990  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6991echo "${ECHO_T}$ac_ct_F77" >&6
6992else
6993  echo "$as_me:$LINENO: result: no" >&5
6994echo "${ECHO_T}no" >&6
6995fi
6996
6997  test -n "$ac_ct_F77" && break
6998done
6999
7000  F77=$ac_ct_F77
7001fi
7002
7003
7004# Provide some information about the compiler.
7005echo "$as_me:7005:" \
7006     "checking for Fortran 77 compiler version" >&5
7007ac_compiler=`set X $ac_compile; echo $2`
7008{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7009  (eval $ac_compiler --version </dev/null >&5) 2>&5
7010  ac_status=$?
7011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012  (exit $ac_status); }
7013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7014  (eval $ac_compiler -v </dev/null >&5) 2>&5
7015  ac_status=$?
7016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017  (exit $ac_status); }
7018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7019  (eval $ac_compiler -V </dev/null >&5) 2>&5
7020  ac_status=$?
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); }
7023rm -f a.out
7024
7025# If we don't use `.F' as extension, the preprocessor is not run on the
7026# input file.  (Note that this only needs to work for GNU compilers.)
7027ac_save_ext=$ac_ext
7028ac_ext=F
7029echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7030echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7031if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7032  echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034  cat >conftest.$ac_ext <<_ACEOF
7035      program main
7036#ifndef __GNUC__
7037       choke me
7038#endif
7039
7040      end
7041_ACEOF
7042rm -f conftest.$ac_objext
7043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044  (eval $ac_compile) 2>conftest.er1
7045  ac_status=$?
7046  grep -v '^ *+' conftest.er1 >conftest.err
7047  rm -f conftest.er1
7048  cat conftest.err >&5
7049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050  (exit $ac_status); } &&
7051         { ac_try='test -z "$ac_f77_werror_flag"
7052                         || test ! -s conftest.err'
7053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054  (eval $ac_try) 2>&5
7055  ac_status=$?
7056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057  (exit $ac_status); }; } &&
7058         { ac_try='test -s conftest.$ac_objext'
7059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060  (eval $ac_try) 2>&5
7061  ac_status=$?
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); }; }; then
7064  ac_compiler_gnu=yes
7065else
7066  echo "$as_me: failed program was:" >&5
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069ac_compiler_gnu=no
7070fi
7071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7072ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7073
7074fi
7075echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7076echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7077ac_ext=$ac_save_ext
7078ac_test_FFLAGS=${FFLAGS+set}
7079ac_save_FFLAGS=$FFLAGS
7080FFLAGS=
7081echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7082echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7083if test "${ac_cv_prog_f77_g+set}" = set; then
7084  echo $ECHO_N "(cached) $ECHO_C" >&6
7085else
7086  FFLAGS=-g
7087cat >conftest.$ac_ext <<_ACEOF
7088      program main
7089
7090      end
7091_ACEOF
7092rm -f conftest.$ac_objext
7093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7094  (eval $ac_compile) 2>conftest.er1
7095  ac_status=$?
7096  grep -v '^ *+' conftest.er1 >conftest.err
7097  rm -f conftest.er1
7098  cat conftest.err >&5
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); } &&
7101         { ac_try='test -z "$ac_f77_werror_flag"
7102                         || test ! -s conftest.err'
7103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7104  (eval $ac_try) 2>&5
7105  ac_status=$?
7106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107  (exit $ac_status); }; } &&
7108         { ac_try='test -s conftest.$ac_objext'
7109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110  (eval $ac_try) 2>&5
7111  ac_status=$?
7112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113  (exit $ac_status); }; }; then
7114  ac_cv_prog_f77_g=yes
7115else
7116  echo "$as_me: failed program was:" >&5
7117sed 's/^/| /' conftest.$ac_ext >&5
7118
7119ac_cv_prog_f77_g=no
7120fi
7121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7122
7123fi
7124echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7125echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7126if test "$ac_test_FFLAGS" = set; then
7127  FFLAGS=$ac_save_FFLAGS
7128elif test $ac_cv_prog_f77_g = yes; then
7129  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7130    FFLAGS="-g -O2"
7131  else
7132    FFLAGS="-g"
7133  fi
7134else
7135  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7136    FFLAGS="-O2"
7137  else
7138    FFLAGS=
7139  fi
7140fi
7141
7142G77=`test $ac_compiler_gnu = yes && echo yes`
7143ac_ext=c
7144ac_cpp='$CPP $CPPFLAGS'
7145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7147ac_compiler_gnu=$ac_cv_c_compiler_gnu
7148
7149
7150
7151# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7152
7153# find the maximum length of command line arguments
7154echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7155echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7156if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7157  echo $ECHO_N "(cached) $ECHO_C" >&6
7158else
7159    i=0
7160  teststring="ABCD"
7161
7162  case $build_os in
7163  msdosdjgpp*)
7164    # On DJGPP, this test can blow up pretty badly due to problems in libc
7165    # (any single argument exceeding 2000 bytes causes a buffer overrun
7166    # during glob expansion).  Even if it were fixed, the result of this
7167    # check would be larger than it should be.
7168    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7169    ;;
7170
7171  gnu*)
7172    # Under GNU Hurd, this test is not required because there is
7173    # no limit to the length of command line arguments.
7174    # Libtool will interpret -1 as no limit whatsoever
7175    lt_cv_sys_max_cmd_len=-1;
7176    ;;
7177
7178  cygwin* | mingw*)
7179    # On Win9x/ME, this test blows up -- it succeeds, but takes
7180    # about 5 minutes as the teststring grows exponentially.
7181    # Worse, since 9x/ME are not pre-emptively multitasking,
7182    # you end up with a "frozen" computer, even though with patience
7183    # the test eventually succeeds (with a max line length of 256k).
7184    # Instead, let's just punt: use the minimum linelength reported by
7185    # all of the supported platforms: 8192 (on NT/2K/XP).
7186    lt_cv_sys_max_cmd_len=8192;
7187    ;;
7188
7189  amigaos*)
7190    # On AmigaOS with pdksh, this test takes hours, literally.
7191    # So we just punt and use a minimum line length of 8192.
7192    lt_cv_sys_max_cmd_len=8192;
7193    ;;
7194
7195  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7196    # This has been around since 386BSD, at least.  Likely further.
7197    if test -x /sbin/sysctl; then
7198      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7199    elif test -x /usr/sbin/sysctl; then
7200      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7201    else
7202      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7203    fi
7204    # And add a safety zone
7205    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7206    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7207    ;;
7208
7209  interix*)
7210    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7211    lt_cv_sys_max_cmd_len=196608
7212    ;;
7213
7214  osf*)
7215    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7216    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7217    # nice to cause kernel panics so lets avoid the loop below.
7218    # First set a reasonable default.
7219    lt_cv_sys_max_cmd_len=16384
7220    #
7221    if test -x /sbin/sysconfig; then
7222      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7223        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7224      esac
7225    fi
7226    ;;
7227  sco3.2v5*)
7228    lt_cv_sys_max_cmd_len=102400
7229    ;;
7230  sysv5* | sco5v6* | sysv4.2uw2*)
7231    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7232    if test -n "$kargmax"; then
7233      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7234    else
7235      lt_cv_sys_max_cmd_len=32768
7236    fi
7237    ;;
7238  *)
7239    # If test is not a shell built-in, we'll probably end up computing a
7240    # maximum length that is only half of the actual maximum length, but
7241    # we can't tell.
7242    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7243    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7244               = "XX$teststring") >/dev/null 2>&1 &&
7245            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7246            lt_cv_sys_max_cmd_len=$new_result &&
7247            test $i != 17 # 1/2 MB should be enough
7248    do
7249      i=`expr $i + 1`
7250      teststring=$teststring$teststring
7251    done
7252    teststring=
7253    # Add a significant safety factor because C++ compilers can tack on massive
7254    # amounts of additional arguments before passing them to the linker.
7255    # It appears as though 1/2 is a usable value.
7256    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7257    ;;
7258  esac
7259
7260fi
7261
7262if test -n $lt_cv_sys_max_cmd_len ; then
7263  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7264echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7265else
7266  echo "$as_me:$LINENO: result: none" >&5
7267echo "${ECHO_T}none" >&6
7268fi
7269
7270
7271
7272
7273# Check for command to grab the raw symbol name followed by C symbol from nm.
7274echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7275echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7276if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7277  echo $ECHO_N "(cached) $ECHO_C" >&6
7278else
7279
7280# These are sane defaults that work on at least a few old systems.
7281# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7282
7283# Character class describing NM global symbol codes.
7284symcode='[BCDEGRST]'
7285
7286# Regexp to match symbols that can be accessed directly from C.
7287sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7288
7289# Transform an extracted symbol line into a proper C declaration
7290lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7291
7292# Transform an extracted symbol line into symbol name and symbol address
7293lt_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'"
7294
7295# Define system-specific variables.
7296case $host_os in
7297aix*)
7298  symcode='[BCDT]'
7299  ;;
7300cygwin* | mingw* | pw32*)
7301  symcode='[ABCDGISTW]'
7302  ;;
7303hpux*) # Its linker distinguishes data from code symbols
7304  if test "$host_cpu" = ia64; then
7305    symcode='[ABCDEGRST]'
7306  fi
7307  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7308  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'"
7309  ;;
7310linux*)
7311  if test "$host_cpu" = ia64; then
7312    symcode='[ABCDGIRSTW]'
7313    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7314    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'"
7315  fi
7316  ;;
7317irix* | nonstopux*)
7318  symcode='[BCDEGRST]'
7319  ;;
7320osf*)
7321  symcode='[BCDEGQRST]'
7322  ;;
7323solaris*)
7324  symcode='[BDRT]'
7325  ;;
7326sco3.2v5*)
7327  symcode='[DT]'
7328  ;;
7329sysv4.2uw2*)
7330  symcode='[DT]'
7331  ;;
7332sysv5* | sco5v6* | unixware* | OpenUNIX*)
7333  symcode='[ABDT]'
7334  ;;
7335sysv4)
7336  symcode='[DFNSTU]'
7337  ;;
7338esac
7339
7340# Handle CRLF in mingw tool chain
7341opt_cr=
7342case $build_os in
7343mingw*)
7344  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7345  ;;
7346esac
7347
7348# If we're using GNU nm, then use its standard symbol codes.
7349case `$NM -V 2>&1` in
7350*GNU* | *'with BFD'*)
7351  symcode='[ABCDGIRSTW]' ;;
7352esac
7353
7354# Try without a prefix undercore, then with it.
7355for ac_symprfx in "" "_"; do
7356
7357  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7358  symxfrm="\\1 $ac_symprfx\\2 \\2"
7359
7360  # Write the raw and C identifiers.
7361  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7362
7363  # Check to see that the pipe works correctly.
7364  pipe_works=no
7365
7366  rm -f conftest*
7367  cat > conftest.$ac_ext <<EOF
7368#ifdef __cplusplus
7369extern "C" {
7370#endif
7371char nm_test_var;
7372void nm_test_func(){}
7373#ifdef __cplusplus
7374}
7375#endif
7376int main(){nm_test_var='a';nm_test_func();return(0);}
7377EOF
7378
7379  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380  (eval $ac_compile) 2>&5
7381  ac_status=$?
7382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383  (exit $ac_status); }; then
7384    # Now try to grab the symbols.
7385    nlist=conftest.nm
7386    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7387  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7388  ac_status=$?
7389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390  (exit $ac_status); } && test -s "$nlist"; then
7391      # Try sorting and uniquifying the output.
7392      if sort "$nlist" | uniq > "$nlist"T; then
7393        mv -f "$nlist"T "$nlist"
7394      else
7395        rm -f "$nlist"T
7396      fi
7397
7398      # Make sure that we snagged all the symbols we need.
7399      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7400        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7401          cat <<EOF > conftest.$ac_ext
7402#ifdef __cplusplus
7403extern "C" {
7404#endif
7405
7406EOF
7407          # Now generate the symbol file.
7408          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7409
7410          cat <<EOF >> conftest.$ac_ext
7411#if defined (__STDC__) && __STDC__
7412# define lt_ptr_t void *
7413#else
7414# define lt_ptr_t char *
7415# define const
7416#endif
7417
7418/* The mapping between symbol names and symbols. */
7419const struct {
7420  const char *name;
7421  lt_ptr_t address;
7422}
7423lt_preloaded_symbols[] =
7424{
7425EOF
7426          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7427          cat <<\EOF >> conftest.$ac_ext
7428  {0, (lt_ptr_t) 0}
7429};
7430
7431#ifdef __cplusplus
7432}
7433#endif
7434EOF
7435          # Now try linking the two files.
7436          mv conftest.$ac_objext conftstm.$ac_objext
7437          lt_save_LIBS="$LIBS"
7438          lt_save_CFLAGS="$CFLAGS"
7439          LIBS="conftstm.$ac_objext"
7440          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7441          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7442  (eval $ac_link) 2>&5
7443  ac_status=$?
7444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7446            pipe_works=yes
7447          fi
7448          LIBS="$lt_save_LIBS"
7449          CFLAGS="$lt_save_CFLAGS"
7450        else
7451          echo "cannot find nm_test_func in $nlist" >&5
7452        fi
7453      else
7454        echo "cannot find nm_test_var in $nlist" >&5
7455      fi
7456    else
7457      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7458    fi
7459  else
7460    echo "$progname: failed program was:" >&5
7461    cat conftest.$ac_ext >&5
7462  fi
7463  rm -f conftest* conftst*
7464
7465  # Do not use the global_symbol_pipe unless it works.
7466  if test "$pipe_works" = yes; then
7467    break
7468  else
7469    lt_cv_sys_global_symbol_pipe=
7470  fi
7471done
7472
7473fi
7474
7475if test -z "$lt_cv_sys_global_symbol_pipe"; then
7476  lt_cv_sys_global_symbol_to_cdecl=
7477fi
7478if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7479  echo "$as_me:$LINENO: result: failed" >&5
7480echo "${ECHO_T}failed" >&6
7481else
7482  echo "$as_me:$LINENO: result: ok" >&5
7483echo "${ECHO_T}ok" >&6
7484fi
7485
7486echo "$as_me:$LINENO: checking for objdir" >&5
7487echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7488if test "${lt_cv_objdir+set}" = set; then
7489  echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491  rm -f .libs 2>/dev/null
7492mkdir .libs 2>/dev/null
7493if test -d .libs; then
7494  lt_cv_objdir=.libs
7495else
7496  # MS-DOS does not allow filenames that begin with a dot.
7497  lt_cv_objdir=_libs
7498fi
7499rmdir .libs 2>/dev/null
7500fi
7501echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7502echo "${ECHO_T}$lt_cv_objdir" >&6
7503objdir=$lt_cv_objdir
7504
7505
7506
7507
7508
7509case $host_os in
7510aix3*)
7511  # AIX sometimes has problems with the GCC collect2 program.  For some
7512  # reason, if we set the COLLECT_NAMES environment variable, the problems
7513  # vanish in a puff of smoke.
7514  if test "X${COLLECT_NAMES+set}" != Xset; then
7515    COLLECT_NAMES=
7516    export COLLECT_NAMES
7517  fi
7518  ;;
7519esac
7520
7521# Sed substitution that helps us do robust quoting.  It backslashifies
7522# metacharacters that are still active within double-quoted strings.
7523Xsed='sed -e 1s/^X//'
7524sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7525
7526# Same as above, but do not quote variable references.
7527double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7528
7529# Sed substitution to delay expansion of an escaped shell variable in a
7530# double_quote_subst'ed string.
7531delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7532
7533# Sed substitution to avoid accidental globbing in evaled expressions
7534no_glob_subst='s/\*/\\\*/g'
7535
7536# Constants:
7537rm="rm -f"
7538
7539# Global variables:
7540default_ofile=libtool
7541can_build_shared=yes
7542
7543# All known linkers require a `.a' archive for static linking (except MSVC,
7544# which needs '.lib').
7545libext=a
7546ltmain="$ac_aux_dir/ltmain.sh"
7547ofile="$default_ofile"
7548with_gnu_ld="$lt_cv_prog_gnu_ld"
7549
7550if test -n "$ac_tool_prefix"; then
7551  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7552set dummy ${ac_tool_prefix}ar; ac_word=$2
7553echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7555if test "${ac_cv_prog_AR+set}" = set; then
7556  echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558  if test -n "$AR"; then
7559  ac_cv_prog_AR="$AR" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564  IFS=$as_save_IFS
7565  test -z "$as_dir" && as_dir=.
7566  for ac_exec_ext in '' $ac_executable_extensions; do
7567  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7568    ac_cv_prog_AR="${ac_tool_prefix}ar"
7569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570    break 2
7571  fi
7572done
7573done
7574
7575fi
7576fi
7577AR=$ac_cv_prog_AR
7578if test -n "$AR"; then
7579  echo "$as_me:$LINENO: result: $AR" >&5
7580echo "${ECHO_T}$AR" >&6
7581else
7582  echo "$as_me:$LINENO: result: no" >&5
7583echo "${ECHO_T}no" >&6
7584fi
7585
7586fi
7587if test -z "$ac_cv_prog_AR"; then
7588  ac_ct_AR=$AR
7589  # Extract the first word of "ar", so it can be a program name with args.
7590set dummy ar; ac_word=$2
7591echo "$as_me:$LINENO: checking for $ac_word" >&5
7592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7594  echo $ECHO_N "(cached) $ECHO_C" >&6
7595else
7596  if test -n "$ac_ct_AR"; then
7597  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602  IFS=$as_save_IFS
7603  test -z "$as_dir" && as_dir=.
7604  for ac_exec_ext in '' $ac_executable_extensions; do
7605  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606    ac_cv_prog_ac_ct_AR="ar"
7607    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608    break 2
7609  fi
7610done
7611done
7612
7613  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7614fi
7615fi
7616ac_ct_AR=$ac_cv_prog_ac_ct_AR
7617if test -n "$ac_ct_AR"; then
7618  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7619echo "${ECHO_T}$ac_ct_AR" >&6
7620else
7621  echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623fi
7624
7625  AR=$ac_ct_AR
7626else
7627  AR="$ac_cv_prog_AR"
7628fi
7629
7630if test -n "$ac_tool_prefix"; then
7631  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7632set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7633echo "$as_me:$LINENO: checking for $ac_word" >&5
7634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7635if test "${ac_cv_prog_RANLIB+set}" = set; then
7636  echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638  if test -n "$RANLIB"; then
7639  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7640else
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644  IFS=$as_save_IFS
7645  test -z "$as_dir" && as_dir=.
7646  for ac_exec_ext in '' $ac_executable_extensions; do
7647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7648    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650    break 2
7651  fi
7652done
7653done
7654
7655fi
7656fi
7657RANLIB=$ac_cv_prog_RANLIB
7658if test -n "$RANLIB"; then
7659  echo "$as_me:$LINENO: result: $RANLIB" >&5
7660echo "${ECHO_T}$RANLIB" >&6
7661else
7662  echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6
7664fi
7665
7666fi
7667if test -z "$ac_cv_prog_RANLIB"; then
7668  ac_ct_RANLIB=$RANLIB
7669  # Extract the first word of "ranlib", so it can be a program name with args.
7670set dummy ranlib; ac_word=$2
7671echo "$as_me:$LINENO: checking for $ac_word" >&5
7672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7673if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7674  echo $ECHO_N "(cached) $ECHO_C" >&6
7675else
7676  if test -n "$ac_ct_RANLIB"; then
7677  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7678else
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682  IFS=$as_save_IFS
7683  test -z "$as_dir" && as_dir=.
7684  for ac_exec_ext in '' $ac_executable_extensions; do
7685  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686    ac_cv_prog_ac_ct_RANLIB="ranlib"
7687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688    break 2
7689  fi
7690done
7691done
7692
7693  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7694fi
7695fi
7696ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7697if test -n "$ac_ct_RANLIB"; then
7698  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7699echo "${ECHO_T}$ac_ct_RANLIB" >&6
7700else
7701  echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703fi
7704
7705  RANLIB=$ac_ct_RANLIB
7706else
7707  RANLIB="$ac_cv_prog_RANLIB"
7708fi
7709
7710if test -n "$ac_tool_prefix"; then
7711  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7712set dummy ${ac_tool_prefix}strip; ac_word=$2
7713echo "$as_me:$LINENO: checking for $ac_word" >&5
7714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7715if test "${ac_cv_prog_STRIP+set}" = set; then
7716  echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718  if test -n "$STRIP"; then
7719  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7720else
7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724  IFS=$as_save_IFS
7725  test -z "$as_dir" && as_dir=.
7726  for ac_exec_ext in '' $ac_executable_extensions; do
7727  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730    break 2
7731  fi
7732done
7733done
7734
7735fi
7736fi
7737STRIP=$ac_cv_prog_STRIP
7738if test -n "$STRIP"; then
7739  echo "$as_me:$LINENO: result: $STRIP" >&5
7740echo "${ECHO_T}$STRIP" >&6
7741else
7742  echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744fi
7745
7746fi
7747if test -z "$ac_cv_prog_STRIP"; then
7748  ac_ct_STRIP=$STRIP
7749  # Extract the first word of "strip", so it can be a program name with args.
7750set dummy strip; ac_word=$2
7751echo "$as_me:$LINENO: checking for $ac_word" >&5
7752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7753if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7754  echo $ECHO_N "(cached) $ECHO_C" >&6
7755else
7756  if test -n "$ac_ct_STRIP"; then
7757  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7758else
7759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760for as_dir in $PATH
7761do
7762  IFS=$as_save_IFS
7763  test -z "$as_dir" && as_dir=.
7764  for ac_exec_ext in '' $ac_executable_extensions; do
7765  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7766    ac_cv_prog_ac_ct_STRIP="strip"
7767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7768    break 2
7769  fi
7770done
7771done
7772
7773  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7774fi
7775fi
7776ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7777if test -n "$ac_ct_STRIP"; then
7778  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7779echo "${ECHO_T}$ac_ct_STRIP" >&6
7780else
7781  echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
7783fi
7784
7785  STRIP=$ac_ct_STRIP
7786else
7787  STRIP="$ac_cv_prog_STRIP"
7788fi
7789
7790
7791old_CC="$CC"
7792old_CFLAGS="$CFLAGS"
7793
7794# Set sane defaults for various variables
7795test -z "$AR" && AR=ar
7796test -z "$AR_FLAGS" && AR_FLAGS=cru
7797test -z "$AS" && AS=as
7798test -z "$CC" && CC=cc
7799test -z "$LTCC" && LTCC=$CC
7800test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7801test -z "$DLLTOOL" && DLLTOOL=dlltool
7802test -z "$LD" && LD=ld
7803test -z "$LN_S" && LN_S="ln -s"
7804test -z "$MAGIC_CMD" && MAGIC_CMD=file
7805test -z "$NM" && NM=nm
7806test -z "$SED" && SED=sed
7807test -z "$OBJDUMP" && OBJDUMP=objdump
7808test -z "$RANLIB" && RANLIB=:
7809test -z "$STRIP" && STRIP=:
7810test -z "$ac_objext" && ac_objext=o
7811
7812# Determine commands to create old-style static archives.
7813old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7814old_postinstall_cmds='chmod 644 $oldlib'
7815old_postuninstall_cmds=
7816
7817if test -n "$RANLIB"; then
7818  case $host_os in
7819  openbsd*)
7820    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7821    ;;
7822  *)
7823    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7824    ;;
7825  esac
7826  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7827fi
7828
7829for cc_temp in $compiler""; do
7830  case $cc_temp in
7831    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7832    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7833    \-*) ;;
7834    *) break;;
7835  esac
7836done
7837cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7838
7839
7840# Only perform the check for file, if the check method requires it
7841case $deplibs_check_method in
7842file_magic*)
7843  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7844    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7845echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7846if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7847  echo $ECHO_N "(cached) $ECHO_C" >&6
7848else
7849  case $MAGIC_CMD in
7850[\\/*] |  ?:[\\/]*)
7851  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7852  ;;
7853*)
7854  lt_save_MAGIC_CMD="$MAGIC_CMD"
7855  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7856  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7857  for ac_dir in $ac_dummy; do
7858    IFS="$lt_save_ifs"
7859    test -z "$ac_dir" && ac_dir=.
7860    if test -f $ac_dir/${ac_tool_prefix}file; then
7861      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7862      if test -n "$file_magic_test_file"; then
7863        case $deplibs_check_method in
7864        "file_magic "*)
7865          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7866          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7867          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7868            $EGREP "$file_magic_regex" > /dev/null; then
7869            :
7870          else
7871            cat <<EOF 1>&2
7872
7873*** Warning: the command libtool uses to detect shared libraries,
7874*** $file_magic_cmd, produces output that libtool cannot recognize.
7875*** The result is that libtool may fail to recognize shared libraries
7876*** as such.  This will affect the creation of libtool libraries that
7877*** depend on shared libraries, but programs linked with such libtool
7878*** libraries will work regardless of this problem.  Nevertheless, you
7879*** may want to report the problem to your system manager and/or to
7880*** bug-libtool@gnu.org
7881
7882EOF
7883          fi ;;
7884        esac
7885      fi
7886      break
7887    fi
7888  done
7889  IFS="$lt_save_ifs"
7890  MAGIC_CMD="$lt_save_MAGIC_CMD"
7891  ;;
7892esac
7893fi
7894
7895MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7896if test -n "$MAGIC_CMD"; then
7897  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7898echo "${ECHO_T}$MAGIC_CMD" >&6
7899else
7900  echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6
7902fi
7903
7904if test -z "$lt_cv_path_MAGIC_CMD"; then
7905  if test -n "$ac_tool_prefix"; then
7906    echo "$as_me:$LINENO: checking for file" >&5
7907echo $ECHO_N "checking for file... $ECHO_C" >&6
7908if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7909  echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911  case $MAGIC_CMD in
7912[\\/*] |  ?:[\\/]*)
7913  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7914  ;;
7915*)
7916  lt_save_MAGIC_CMD="$MAGIC_CMD"
7917  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7918  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7919  for ac_dir in $ac_dummy; do
7920    IFS="$lt_save_ifs"
7921    test -z "$ac_dir" && ac_dir=.
7922    if test -f $ac_dir/file; then
7923      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7924      if test -n "$file_magic_test_file"; then
7925        case $deplibs_check_method in
7926        "file_magic "*)
7927          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7928          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7929          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7930            $EGREP "$file_magic_regex" > /dev/null; then
7931            :
7932          else
7933            cat <<EOF 1>&2
7934
7935*** Warning: the command libtool uses to detect shared libraries,
7936*** $file_magic_cmd, produces output that libtool cannot recognize.
7937*** The result is that libtool may fail to recognize shared libraries
7938*** as such.  This will affect the creation of libtool libraries that
7939*** depend on shared libraries, but programs linked with such libtool
7940*** libraries will work regardless of this problem.  Nevertheless, you
7941*** may want to report the problem to your system manager and/or to
7942*** bug-libtool@gnu.org
7943
7944EOF
7945          fi ;;
7946        esac
7947      fi
7948      break
7949    fi
7950  done
7951  IFS="$lt_save_ifs"
7952  MAGIC_CMD="$lt_save_MAGIC_CMD"
7953  ;;
7954esac
7955fi
7956
7957MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7958if test -n "$MAGIC_CMD"; then
7959  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7960echo "${ECHO_T}$MAGIC_CMD" >&6
7961else
7962  echo "$as_me:$LINENO: result: no" >&5
7963echo "${ECHO_T}no" >&6
7964fi
7965
7966  else
7967    MAGIC_CMD=:
7968  fi
7969fi
7970
7971  fi
7972  ;;
7973esac
7974
7975enable_dlopen=no
7976enable_win32_dll=no
7977
7978# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7979if test "${enable_libtool_lock+set}" = set; then
7980  enableval="$enable_libtool_lock"
7981
7982fi;
7983test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7984
7985
7986# Check whether --with-pic or --without-pic was given.
7987if test "${with_pic+set}" = set; then
7988  withval="$with_pic"
7989  pic_mode="$withval"
7990else
7991  pic_mode=default
7992fi;
7993test -z "$pic_mode" && pic_mode=default
7994
7995# Use C for the default configuration in the libtool script
7996tagname=
7997lt_save_CC="$CC"
7998ac_ext=c
7999ac_cpp='$CPP $CPPFLAGS'
8000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004
8005# Source file extension for C test sources.
8006ac_ext=c
8007
8008# Object file extension for compiled C test sources.
8009objext=o
8010objext=$objext
8011
8012# Code to be used in simple compile tests
8013lt_simple_compile_test_code="int some_variable = 0;\n"
8014
8015# Code to be used in simple link tests
8016lt_simple_link_test_code='int main(){return(0);}\n'
8017
8018
8019# If no C compiler was specified, use CC.
8020LTCC=${LTCC-"$CC"}
8021
8022# If no C compiler flags were specified, use CFLAGS.
8023LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8024
8025# Allow CC to be a program name with arguments.
8026compiler=$CC
8027
8028
8029# save warnings/boilerplate of simple test code
8030ac_outfile=conftest.$ac_objext
8031printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8032eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8033_lt_compiler_boilerplate=`cat conftest.err`
8034$rm conftest*
8035
8036ac_outfile=conftest.$ac_objext
8037printf "$lt_simple_link_test_code" >conftest.$ac_ext
8038eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8039_lt_linker_boilerplate=`cat conftest.err`
8040$rm conftest*
8041
8042
8043## CAVEAT EMPTOR:
8044## There is no encapsulation within the following macros, do not change
8045## the running order or otherwise move them around unless you know exactly
8046## what you are doing...
8047
8048lt_prog_compiler_no_builtin_flag=
8049
8050if test "$GCC" = yes; then
8051  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8052
8053
8054echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8055echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8056if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8057  echo $ECHO_N "(cached) $ECHO_C" >&6
8058else
8059  lt_cv_prog_compiler_rtti_exceptions=no
8060  ac_outfile=conftest.$ac_objext
8061   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8062   lt_compiler_flag="-fno-rtti -fno-exceptions"
8063   # Insert the option either (1) after the last *FLAGS variable, or
8064   # (2) before a word containing "conftest.", or (3) at the end.
8065   # Note that $ac_compile itself does not contain backslashes and begins
8066   # with a dollar sign (not a hyphen), so the echo should work correctly.
8067   # The option is referenced via a variable to avoid confusing sed.
8068   lt_compile=`echo "$ac_compile" | $SED \
8069   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8070   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8071   -e 's:$: $lt_compiler_flag:'`
8072   (eval echo "\"\$as_me:8072: $lt_compile\"" >&5)
8073   (eval "$lt_compile" 2>conftest.err)
8074   ac_status=$?
8075   cat conftest.err >&5
8076   echo "$as_me:8076: \$? = $ac_status" >&5
8077   if (exit $ac_status) && test -s "$ac_outfile"; then
8078     # The compiler can only warn and ignore the option if not recognized
8079     # So say no if there are warnings other than the usual output.
8080     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8081     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8082     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8083       lt_cv_prog_compiler_rtti_exceptions=yes
8084     fi
8085   fi
8086   $rm conftest*
8087
8088fi
8089echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8090echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8091
8092if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8093    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8094else
8095    :
8096fi
8097
8098fi
8099
8100lt_prog_compiler_wl=
8101lt_prog_compiler_pic=
8102lt_prog_compiler_static=
8103
8104echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8105echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8106
8107  if test "$GCC" = yes; then
8108    lt_prog_compiler_wl='-Wl,'
8109    lt_prog_compiler_static='-static'
8110
8111    case $host_os in
8112      aix*)
8113      # All AIX code is PIC.
8114      if test "$host_cpu" = ia64; then
8115        # AIX 5 now supports IA64 processor
8116        lt_prog_compiler_static='-Bstatic'
8117      fi
8118      ;;
8119
8120    amigaos*)
8121      # FIXME: we need at least 68020 code to build shared libraries, but
8122      # adding the `-m68020' flag to GCC prevents building anything better,
8123      # like `-m68040'.
8124      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8125      ;;
8126
8127    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8128      # PIC is the default for these OSes.
8129      ;;
8130
8131    mingw* | pw32* | os2*)
8132      # This hack is so that the source file can tell whether it is being
8133      # built for inclusion in a dll (and should export symbols for example).
8134      lt_prog_compiler_pic='-DDLL_EXPORT'
8135      ;;
8136
8137    darwin* | rhapsody*)
8138      # PIC is the default on this platform
8139      # Common symbols not allowed in MH_DYLIB files
8140      lt_prog_compiler_pic='-fno-common'
8141      ;;
8142
8143    interix3*)
8144      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8145      # Instead, we relocate shared libraries at runtime.
8146      ;;
8147
8148    msdosdjgpp*)
8149      # Just because we use GCC doesn't mean we suddenly get shared libraries
8150      # on systems that don't support them.
8151      lt_prog_compiler_can_build_shared=no
8152      enable_shared=no
8153      ;;
8154
8155    sysv4*MP*)
8156      if test -d /usr/nec; then
8157        lt_prog_compiler_pic=-Kconform_pic
8158      fi
8159      ;;
8160
8161    hpux*)
8162      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8163      # not for PA HP-UX.
8164      case $host_cpu in
8165      hppa*64*|ia64*)
8166        # +Z the default
8167        ;;
8168      *)
8169        lt_prog_compiler_pic='-fPIC'
8170        ;;
8171      esac
8172      ;;
8173
8174    *)
8175      lt_prog_compiler_pic='-fPIC'
8176      ;;
8177    esac
8178  else
8179    # PORTME Check for flag to pass linker flags through the system compiler.
8180    case $host_os in
8181    aix*)
8182      lt_prog_compiler_wl='-Wl,'
8183      if test "$host_cpu" = ia64; then
8184        # AIX 5 now supports IA64 processor
8185        lt_prog_compiler_static='-Bstatic'
8186      else
8187        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8188      fi
8189      ;;
8190      darwin*)
8191        # PIC is the default on this platform
8192        # Common symbols not allowed in MH_DYLIB files
8193       case $cc_basename in
8194         xlc*)
8195         lt_prog_compiler_pic='-qnocommon'
8196         lt_prog_compiler_wl='-Wl,'
8197         ;;
8198       esac
8199       ;;
8200
8201    mingw* | pw32* | os2*)
8202      # This hack is so that the source file can tell whether it is being
8203      # built for inclusion in a dll (and should export symbols for example).
8204      lt_prog_compiler_pic='-DDLL_EXPORT'
8205      ;;
8206
8207    hpux9* | hpux10* | hpux11*)
8208      lt_prog_compiler_wl='-Wl,'
8209      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8210      # not for PA HP-UX.
8211      case $host_cpu in
8212      hppa*64*|ia64*)
8213        # +Z the default
8214        ;;
8215      *)
8216        lt_prog_compiler_pic='+Z'
8217        ;;
8218      esac
8219      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8220      lt_prog_compiler_static='${wl}-a ${wl}archive'
8221      ;;
8222
8223    irix5* | irix6* | nonstopux*)
8224      lt_prog_compiler_wl='-Wl,'
8225      # PIC (with -KPIC) is the default.
8226      lt_prog_compiler_static='-non_shared'
8227      ;;
8228
8229    newsos6)
8230      lt_prog_compiler_pic='-KPIC'
8231      lt_prog_compiler_static='-Bstatic'
8232      ;;
8233
8234    linux*)
8235      case $cc_basename in
8236      icc* | ecc*)
8237        lt_prog_compiler_wl='-Wl,'
8238        lt_prog_compiler_pic='-KPIC'
8239        lt_prog_compiler_static='-static'
8240        ;;
8241      pgcc* | pgf77* | pgf90* | pgf95*)
8242        # Portland Group compilers (*not* the Pentium gcc compiler,
8243        # which looks to be a dead project)
8244        lt_prog_compiler_wl='-Wl,'
8245        lt_prog_compiler_pic='-fpic'
8246        lt_prog_compiler_static='-Bstatic'
8247        ;;
8248      ccc*)
8249        lt_prog_compiler_wl='-Wl,'
8250        # All Alpha code is PIC.
8251        lt_prog_compiler_static='-non_shared'
8252        ;;
8253      esac
8254      ;;
8255
8256    osf3* | osf4* | osf5*)
8257      lt_prog_compiler_wl='-Wl,'
8258      # All OSF/1 code is PIC.
8259      lt_prog_compiler_static='-non_shared'
8260      ;;
8261
8262    solaris*)
8263      lt_prog_compiler_pic='-KPIC'
8264      lt_prog_compiler_static='-Bstatic'
8265      case $cc_basename in
8266      f77* | f90* | f95*)
8267        lt_prog_compiler_wl='-Qoption ld ';;
8268      *)
8269        lt_prog_compiler_wl='-Wl,';;
8270      esac
8271      ;;
8272
8273    sunos4*)
8274      lt_prog_compiler_wl='-Qoption ld '
8275      lt_prog_compiler_pic='-PIC'
8276      lt_prog_compiler_static='-Bstatic'
8277      ;;
8278
8279    sysv4 | sysv4.2uw2* | sysv4.3*)
8280      lt_prog_compiler_wl='-Wl,'
8281      lt_prog_compiler_pic='-KPIC'
8282      lt_prog_compiler_static='-Bstatic'
8283      ;;
8284
8285    sysv4*MP*)
8286      if test -d /usr/nec ;then
8287        lt_prog_compiler_pic='-Kconform_pic'
8288        lt_prog_compiler_static='-Bstatic'
8289      fi
8290      ;;
8291
8292    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8293      lt_prog_compiler_wl='-Wl,'
8294      lt_prog_compiler_pic='-KPIC'
8295      lt_prog_compiler_static='-Bstatic'
8296      ;;
8297
8298    unicos*)
8299      lt_prog_compiler_wl='-Wl,'
8300      lt_prog_compiler_can_build_shared=no
8301      ;;
8302
8303    uts4*)
8304      lt_prog_compiler_pic='-pic'
8305      lt_prog_compiler_static='-Bstatic'
8306      ;;
8307
8308    *)
8309      lt_prog_compiler_can_build_shared=no
8310      ;;
8311    esac
8312  fi
8313
8314echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8315echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8316
8317#
8318# Check to make sure the PIC flag actually works.
8319#
8320if test -n "$lt_prog_compiler_pic"; then
8321
8322echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8323echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8324if test "${lt_prog_compiler_pic_works+set}" = set; then
8325  echo $ECHO_N "(cached) $ECHO_C" >&6
8326else
8327  lt_prog_compiler_pic_works=no
8328  ac_outfile=conftest.$ac_objext
8329   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8330   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8331   # Insert the option either (1) after the last *FLAGS variable, or
8332   # (2) before a word containing "conftest.", or (3) at the end.
8333   # Note that $ac_compile itself does not contain backslashes and begins
8334   # with a dollar sign (not a hyphen), so the echo should work correctly.
8335   # The option is referenced via a variable to avoid confusing sed.
8336   lt_compile=`echo "$ac_compile" | $SED \
8337   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8338   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8339   -e 's:$: $lt_compiler_flag:'`
8340   (eval echo "\"\$as_me:8340: $lt_compile\"" >&5)
8341   (eval "$lt_compile" 2>conftest.err)
8342   ac_status=$?
8343   cat conftest.err >&5
8344   echo "$as_me:8344: \$? = $ac_status" >&5
8345   if (exit $ac_status) && test -s "$ac_outfile"; then
8346     # The compiler can only warn and ignore the option if not recognized
8347     # So say no if there are warnings other than the usual output.
8348     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8349     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8350     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8351       lt_prog_compiler_pic_works=yes
8352     fi
8353   fi
8354   $rm conftest*
8355
8356fi
8357echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8358echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8359
8360if test x"$lt_prog_compiler_pic_works" = xyes; then
8361    case $lt_prog_compiler_pic in
8362     "" | " "*) ;;
8363     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8364     esac
8365else
8366    lt_prog_compiler_pic=
8367     lt_prog_compiler_can_build_shared=no
8368fi
8369
8370fi
8371case $host_os in
8372  # For platforms which do not support PIC, -DPIC is meaningless:
8373  *djgpp*)
8374    lt_prog_compiler_pic=
8375    ;;
8376  *)
8377    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8378    ;;
8379esac
8380
8381#
8382# Check to make sure the static flag actually works.
8383#
8384wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8385echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8386echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8387if test "${lt_prog_compiler_static_works+set}" = set; then
8388  echo $ECHO_N "(cached) $ECHO_C" >&6
8389else
8390  lt_prog_compiler_static_works=no
8391   save_LDFLAGS="$LDFLAGS"
8392   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8393   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8394   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8395     # The linker can only warn and ignore the option if not recognized
8396     # So say no if there are warnings
8397     if test -s conftest.err; then
8398       # Append any errors to the config.log.
8399       cat conftest.err 1>&5
8400       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8401       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8402       if diff conftest.exp conftest.er2 >/dev/null; then
8403         lt_prog_compiler_static_works=yes
8404       fi
8405     else
8406       lt_prog_compiler_static_works=yes
8407     fi
8408   fi
8409   $rm conftest*
8410   LDFLAGS="$save_LDFLAGS"
8411
8412fi
8413echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8414echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8415
8416if test x"$lt_prog_compiler_static_works" = xyes; then
8417    :
8418else
8419    lt_prog_compiler_static=
8420fi
8421
8422
8423echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8424echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8425if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8426  echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428  lt_cv_prog_compiler_c_o=no
8429   $rm -r conftest 2>/dev/null
8430   mkdir conftest
8431   cd conftest
8432   mkdir out
8433   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8434
8435   lt_compiler_flag="-o out/conftest2.$ac_objext"
8436   # Insert the option either (1) after the last *FLAGS variable, or
8437   # (2) before a word containing "conftest.", or (3) at the end.
8438   # Note that $ac_compile itself does not contain backslashes and begins
8439   # with a dollar sign (not a hyphen), so the echo should work correctly.
8440   lt_compile=`echo "$ac_compile" | $SED \
8441   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8442   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8443   -e 's:$: $lt_compiler_flag:'`
8444   (eval echo "\"\$as_me:8444: $lt_compile\"" >&5)
8445   (eval "$lt_compile" 2>out/conftest.err)
8446   ac_status=$?
8447   cat out/conftest.err >&5
8448   echo "$as_me:8448: \$? = $ac_status" >&5
8449   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8450   then
8451     # The compiler can only warn and ignore the option if not recognized
8452     # So say no if there are warnings
8453     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8454     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8455     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8456       lt_cv_prog_compiler_c_o=yes
8457     fi
8458   fi
8459   chmod u+w . 2>&5
8460   $rm conftest*
8461   # SGI C++ compiler will create directory out/ii_files/ for
8462   # template instantiation
8463   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8464   $rm out/* && rmdir out
8465   cd ..
8466   rmdir conftest
8467   $rm conftest*
8468
8469fi
8470echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8471echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8472
8473
8474hard_links="nottested"
8475if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8476  # do not overwrite the value of need_locks provided by the user
8477  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8478echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8479  hard_links=yes
8480  $rm conftest*
8481  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8482  touch conftest.a
8483  ln conftest.a conftest.b 2>&5 || hard_links=no
8484  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8485  echo "$as_me:$LINENO: result: $hard_links" >&5
8486echo "${ECHO_T}$hard_links" >&6
8487  if test "$hard_links" = no; then
8488    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8489echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8490    need_locks=warn
8491  fi
8492else
8493  need_locks=no
8494fi
8495
8496echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8497echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8498
8499  runpath_var=
8500  allow_undefined_flag=
8501  enable_shared_with_static_runtimes=no
8502  archive_cmds=
8503  archive_expsym_cmds=
8504  old_archive_From_new_cmds=
8505  old_archive_from_expsyms_cmds=
8506  export_dynamic_flag_spec=
8507  whole_archive_flag_spec=
8508  thread_safe_flag_spec=
8509  hardcode_libdir_flag_spec=
8510  hardcode_libdir_flag_spec_ld=
8511  hardcode_libdir_separator=
8512  hardcode_direct=no
8513  hardcode_minus_L=no
8514  hardcode_shlibpath_var=unsupported
8515  link_all_deplibs=unknown
8516  hardcode_automatic=no
8517  module_cmds=
8518  module_expsym_cmds=
8519  always_export_symbols=no
8520  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8521  # include_expsyms should be a list of space-separated symbols to be *always*
8522  # included in the symbol list
8523  include_expsyms=
8524  # exclude_expsyms can be an extended regexp of symbols to exclude
8525  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8526  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8527  # as well as any symbol that contains `d'.
8528  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8529  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8530  # platforms (ab)use it in PIC code, but their linkers get confused if
8531  # the symbol is explicitly referenced.  Since portable code cannot
8532  # rely on this symbol name, it's probably fine to never include it in
8533  # preloaded symbol tables.
8534  extract_expsyms_cmds=
8535  # Just being paranoid about ensuring that cc_basename is set.
8536  for cc_temp in $compiler""; do
8537  case $cc_temp in
8538    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8539    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8540    \-*) ;;
8541    *) break;;
8542  esac
8543done
8544cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8545
8546  case $host_os in
8547  cygwin* | mingw* | pw32*)
8548    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8549    # When not using gcc, we currently assume that we are using
8550    # Microsoft Visual C++.
8551    if test "$GCC" != yes; then
8552      with_gnu_ld=no
8553    fi
8554    ;;
8555  interix*)
8556    # we just hope/assume this is gcc and not c89 (= MSVC++)
8557    with_gnu_ld=yes
8558    ;;
8559  openbsd*)
8560    with_gnu_ld=no
8561    ;;
8562  esac
8563
8564  ld_shlibs=yes
8565  if test "$with_gnu_ld" = yes; then
8566    # If archive_cmds runs LD, not CC, wlarc should be empty
8567    wlarc='${wl}'
8568
8569    # Set some defaults for GNU ld with shared library support. These
8570    # are reset later if shared libraries are not supported. Putting them
8571    # here allows them to be overridden if necessary.
8572    runpath_var=LD_RUN_PATH
8573    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8574    export_dynamic_flag_spec='${wl}--export-dynamic'
8575    # ancient GNU ld didn't support --whole-archive et. al.
8576    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8577        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8578      else
8579        whole_archive_flag_spec=
8580    fi
8581    supports_anon_versioning=no
8582    case `$LD -v 2>/dev/null` in
8583      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586      *\ 2.11.*) ;; # other 2.11 versions
8587      *) supports_anon_versioning=yes ;;
8588    esac
8589
8590    # See if GNU ld supports shared libraries.
8591    case $host_os in
8592    aix3* | aix4* | aix5*)
8593      # On AIX/PPC, the GNU linker is very broken
8594      if test "$host_cpu" != ia64; then
8595        ld_shlibs=no
8596        cat <<EOF 1>&2
8597
8598*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8599*** to be unable to reliably create shared libraries on AIX.
8600*** Therefore, libtool is disabling shared libraries support.  If you
8601*** really care for shared libraries, you may want to modify your PATH
8602*** so that a non-GNU linker is found, and then restart.
8603
8604EOF
8605      fi
8606      ;;
8607
8608    amigaos*)
8609      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)'
8610      hardcode_libdir_flag_spec='-L$libdir'
8611      hardcode_minus_L=yes
8612
8613      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8614      # that the semantics of dynamic libraries on AmigaOS, at least up
8615      # to version 4, is to share data among multiple programs linked
8616      # with the same dynamic library.  Since this doesn't match the
8617      # behavior of shared libraries on other platforms, we can't use
8618      # them.
8619      ld_shlibs=no
8620      ;;
8621
8622    beos*)
8623      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8624        allow_undefined_flag=unsupported
8625        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8626        # support --undefined.  This deserves some investigation.  FIXME
8627        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628      else
8629        ld_shlibs=no
8630      fi
8631      ;;
8632
8633    cygwin* | mingw* | pw32*)
8634      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8635      # as there is no search path for DLLs.
8636      hardcode_libdir_flag_spec='-L$libdir'
8637      allow_undefined_flag=unsupported
8638      always_export_symbols=no
8639      enable_shared_with_static_runtimes=yes
8640      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8641
8642      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8643        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8644        # If the export-symbols file already is a .def file (1st line
8645        # is EXPORTS), use it as is; otherwise, prepend...
8646        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8647          cp $export_symbols $output_objdir/$soname.def;
8648        else
8649          echo EXPORTS > $output_objdir/$soname.def;
8650          cat $export_symbols >> $output_objdir/$soname.def;
8651        fi~
8652        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8653      else
8654        ld_shlibs=no
8655      fi
8656      ;;
8657
8658    interix3*)
8659      hardcode_direct=no
8660      hardcode_shlibpath_var=no
8661      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8662      export_dynamic_flag_spec='${wl}-E'
8663      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8664      # Instead, shared libraries are loaded at an image base (0x10000000 by
8665      # default) and relocated if they conflict, which is a slow very memory
8666      # consuming and fragmenting process.  To avoid this, we pick a random,
8667      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8668      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8669      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8670      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'
8671      ;;
8672
8673    linux*)
8674      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8675        tmp_addflag=
8676        case $cc_basename,$host_cpu in
8677        pgcc*)                          # Portland Group C compiler
8678          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'
8679          tmp_addflag=' $pic_flag'
8680          ;;
8681        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8682          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'
8683          tmp_addflag=' $pic_flag -Mnomain' ;;
8684        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8685          tmp_addflag=' -i_dynamic' ;;
8686        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8687          tmp_addflag=' -i_dynamic -nofor_main' ;;
8688        ifc* | ifort*)                  # Intel Fortran compiler
8689          tmp_addflag=' -nofor_main' ;;
8690        esac
8691        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8692
8693        if test $supports_anon_versioning = yes; then
8694          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8695  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8696  $echo "local: *; };" >> $output_objdir/$libname.ver~
8697          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8698        fi
8699      else
8700        ld_shlibs=no
8701      fi
8702      ;;
8703
8704    netbsd*)
8705      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8706        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8707        wlarc=
8708      else
8709        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711      fi
8712      ;;
8713
8714    solaris*)
8715      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8716        ld_shlibs=no
8717        cat <<EOF 1>&2
8718
8719*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8720*** create shared libraries on Solaris systems.  Therefore, libtool
8721*** is disabling shared libraries support.  We urge you to upgrade GNU
8722*** binutils to release 2.9.1 or newer.  Another option is to modify
8723*** your PATH or compiler configuration so that the native linker is
8724*** used, and then restart.
8725
8726EOF
8727      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8728        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8729        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8730      else
8731        ld_shlibs=no
8732      fi
8733      ;;
8734
8735    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8736      case `$LD -v 2>&1` in
8737        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8738        ld_shlibs=no
8739        cat <<_LT_EOF 1>&2
8740
8741*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8742*** reliably create shared libraries on SCO systems.  Therefore, libtool
8743*** is disabling shared libraries support.  We urge you to upgrade GNU
8744*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8745*** your PATH or compiler configuration so that the native linker is
8746*** used, and then restart.
8747
8748_LT_EOF
8749        ;;
8750        *)
8751          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8752            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8753            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8754            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8755          else
8756            ld_shlibs=no
8757          fi
8758        ;;
8759      esac
8760      ;;
8761
8762    sunos4*)
8763      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8764      wlarc=
8765      hardcode_direct=yes
8766      hardcode_shlibpath_var=no
8767      ;;
8768
8769    *)
8770      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8771        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773      else
8774        ld_shlibs=no
8775      fi
8776      ;;
8777    esac
8778
8779    if test "$ld_shlibs" = no; then
8780      runpath_var=
8781      hardcode_libdir_flag_spec=
8782      export_dynamic_flag_spec=
8783      whole_archive_flag_spec=
8784    fi
8785  else
8786    # PORTME fill in a description of your system's linker (not GNU ld)
8787    case $host_os in
8788    aix3*)
8789      allow_undefined_flag=unsupported
8790      always_export_symbols=yes
8791      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'
8792      # Note: this linker hardcodes the directories in LIBPATH if there
8793      # are no directories specified by -L.
8794      hardcode_minus_L=yes
8795      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8796        # Neither direct hardcoding nor static linking is supported with a
8797        # broken collect2.
8798        hardcode_direct=unsupported
8799      fi
8800      ;;
8801
8802    aix4* | aix5*)
8803      if test "$host_cpu" = ia64; then
8804        # On IA64, the linker does run time linking by default, so we don't
8805        # have to do anything special.
8806        aix_use_runtimelinking=no
8807        exp_sym_flag='-Bexport'
8808        no_entry_flag=""
8809      else
8810        # If we're using GNU nm, then we don't want the "-C" option.
8811        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8812        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8813          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'
8814        else
8815          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'
8816        fi
8817        aix_use_runtimelinking=no
8818
8819        # Test if we are trying to use run time linking or normal
8820        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8821        # need to do runtime linking.
8822        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8823          for ld_flag in $LDFLAGS; do
8824          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8825            aix_use_runtimelinking=yes
8826            break
8827          fi
8828          done
8829          ;;
8830        esac
8831
8832        exp_sym_flag='-bexport'
8833        no_entry_flag='-bnoentry'
8834      fi
8835
8836      # When large executables or shared objects are built, AIX ld can
8837      # have problems creating the table of contents.  If linking a library
8838      # or program results in "error TOC overflow" add -mminimal-toc to
8839      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8840      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8841
8842      archive_cmds=''
8843      hardcode_direct=yes
8844      hardcode_libdir_separator=':'
8845      link_all_deplibs=yes
8846
8847      if test "$GCC" = yes; then
8848        case $host_os in aix4.[012]|aix4.[012].*)
8849        # We only want to do this on AIX 4.2 and lower, the check
8850        # below for broken collect2 doesn't work under 4.3+
8851          collect2name=`${CC} -print-prog-name=collect2`
8852          if test -f "$collect2name" && \
8853           strings "$collect2name" | grep resolve_lib_name >/dev/null
8854          then
8855          # We have reworked collect2
8856          hardcode_direct=yes
8857          else
8858          # We have old collect2
8859          hardcode_direct=unsupported
8860          # It fails to find uninstalled libraries when the uninstalled
8861          # path is not listed in the libpath.  Setting hardcode_minus_L
8862          # to unsupported forces relinking
8863          hardcode_minus_L=yes
8864          hardcode_libdir_flag_spec='-L$libdir'
8865          hardcode_libdir_separator=
8866          fi
8867          ;;
8868        esac
8869        shared_flag='-shared'
8870        if test "$aix_use_runtimelinking" = yes; then
8871          shared_flag="$shared_flag "'${wl}-G'
8872        fi
8873      else
8874        # not using gcc
8875        if test "$host_cpu" = ia64; then
8876        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8877        # chokes on -Wl,-G. The following line is correct:
8878          shared_flag='-G'
8879        else
8880          if test "$aix_use_runtimelinking" = yes; then
8881            shared_flag='${wl}-G'
8882          else
8883            shared_flag='${wl}-bM:SRE'
8884          fi
8885        fi
8886      fi
8887
8888      # It seems that -bexpall does not export symbols beginning with
8889      # underscore (_), so it is better to generate a list of symbols to export.
8890      always_export_symbols=yes
8891      if test "$aix_use_runtimelinking" = yes; then
8892        # Warning - without using the other runtime loading flags (-brtl),
8893        # -berok will link without error, but may produce a broken library.
8894        allow_undefined_flag='-berok'
8895       # Determine the default libpath from the value encoded in an empty executable.
8896       cat >conftest.$ac_ext <<_ACEOF
8897/* confdefs.h.  */
8898_ACEOF
8899cat confdefs.h >>conftest.$ac_ext
8900cat >>conftest.$ac_ext <<_ACEOF
8901/* end confdefs.h.  */
8902
8903int
8904main ()
8905{
8906
8907  ;
8908  return 0;
8909}
8910_ACEOF
8911rm -f conftest.$ac_objext conftest$ac_exeext
8912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913  (eval $ac_link) 2>conftest.er1
8914  ac_status=$?
8915  grep -v '^ *+' conftest.er1 >conftest.err
8916  rm -f conftest.er1
8917  cat conftest.err >&5
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); } &&
8920         { ac_try='test -z "$ac_c_werror_flag"
8921                         || test ! -s conftest.err'
8922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923  (eval $ac_try) 2>&5
8924  ac_status=$?
8925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926  (exit $ac_status); }; } &&
8927         { ac_try='test -s conftest$ac_exeext'
8928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929  (eval $ac_try) 2>&5
8930  ac_status=$?
8931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932  (exit $ac_status); }; }; then
8933
8934aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8935}'`
8936# Check for a 64-bit object if we didn't find anything.
8937if 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; }
8938}'`; fi
8939else
8940  echo "$as_me: failed program was:" >&5
8941sed 's/^/| /' conftest.$ac_ext >&5
8942
8943fi
8944rm -f conftest.err conftest.$ac_objext \
8945      conftest$ac_exeext conftest.$ac_ext
8946if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8947
8948       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8949        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"
8950       else
8951        if test "$host_cpu" = ia64; then
8952          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8953          allow_undefined_flag="-z nodefs"
8954          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"
8955        else
8956         # Determine the default libpath from the value encoded in an empty executable.
8957         cat >conftest.$ac_ext <<_ACEOF
8958/* confdefs.h.  */
8959_ACEOF
8960cat confdefs.h >>conftest.$ac_ext
8961cat >>conftest.$ac_ext <<_ACEOF
8962/* end confdefs.h.  */
8963
8964int
8965main ()
8966{
8967
8968  ;
8969  return 0;
8970}
8971_ACEOF
8972rm -f conftest.$ac_objext conftest$ac_exeext
8973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974  (eval $ac_link) 2>conftest.er1
8975  ac_status=$?
8976  grep -v '^ *+' conftest.er1 >conftest.err
8977  rm -f conftest.er1
8978  cat conftest.err >&5
8979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980  (exit $ac_status); } &&
8981         { ac_try='test -z "$ac_c_werror_flag"
8982                         || test ! -s conftest.err'
8983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984  (eval $ac_try) 2>&5
8985  ac_status=$?
8986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987  (exit $ac_status); }; } &&
8988         { ac_try='test -s conftest$ac_exeext'
8989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990  (eval $ac_try) 2>&5
8991  ac_status=$?
8992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993  (exit $ac_status); }; }; then
8994
8995aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8996}'`
8997# Check for a 64-bit object if we didn't find anything.
8998if 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; }
8999}'`; fi
9000else
9001  echo "$as_me: failed program was:" >&5
9002sed 's/^/| /' conftest.$ac_ext >&5
9003
9004fi
9005rm -f conftest.err conftest.$ac_objext \
9006      conftest$ac_exeext conftest.$ac_ext
9007if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9008
9009         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9010          # Warning - without using the other run time loading flags,
9011          # -berok will link without error, but may produce a broken library.
9012          no_undefined_flag=' ${wl}-bernotok'
9013          allow_undefined_flag=' ${wl}-berok'
9014          # Exported symbols can be pulled into shared objects from archives
9015          whole_archive_flag_spec='$convenience'
9016          archive_cmds_need_lc=yes
9017          # This is similar to how AIX traditionally builds its shared libraries.
9018          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'
9019        fi
9020      fi
9021      ;;
9022
9023    amigaos*)
9024      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)'
9025      hardcode_libdir_flag_spec='-L$libdir'
9026      hardcode_minus_L=yes
9027      # see comment about different semantics on the GNU ld section
9028      ld_shlibs=no
9029      ;;
9030
9031    bsdi[45]*)
9032      export_dynamic_flag_spec=-rdynamic
9033      ;;
9034
9035    cygwin* | mingw* | pw32*)
9036      # When not using gcc, we currently assume that we are using
9037      # Microsoft Visual C++.
9038      # hardcode_libdir_flag_spec is actually meaningless, as there is
9039      # no search path for DLLs.
9040      hardcode_libdir_flag_spec=' '
9041      allow_undefined_flag=unsupported
9042      # Tell ltmain to make .lib files, not .a files.
9043      libext=lib
9044      # Tell ltmain to make .dll files, not .so files.
9045      shrext_cmds=".dll"
9046      # FIXME: Setting linknames here is a bad hack.
9047      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9048      # The linker will automatically build a .lib file if we build a DLL.
9049      old_archive_From_new_cmds='true'
9050      # FIXME: Should let the user specify the lib program.
9051      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9052      fix_srcfile_path='`cygpath -w "$srcfile"`'
9053      enable_shared_with_static_runtimes=yes
9054      ;;
9055
9056    darwin* | rhapsody*)
9057      case $host_os in
9058        rhapsody* | darwin1.[012])
9059         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9060         ;;
9061       *) # Darwin 1.3 on
9062         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9063           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9064         else
9065           case ${MACOSX_DEPLOYMENT_TARGET} in
9066             10.[012])
9067               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9068               ;;
9069             10.*)
9070               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9071               ;;
9072           esac
9073         fi
9074         ;;
9075      esac
9076      archive_cmds_need_lc=no
9077      hardcode_direct=no
9078      hardcode_automatic=yes
9079      hardcode_shlibpath_var=unsupported
9080      whole_archive_flag_spec=''
9081      link_all_deplibs=yes
9082    if test "$GCC" = yes ; then
9083        output_verbose_link_cmd='echo'
9084        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9085      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9086      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9087      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}'
9088      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}'
9089    else
9090      case $cc_basename in
9091        xlc*)
9092         output_verbose_link_cmd='echo'
9093         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9094         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9095          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9096         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}'
9097          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}'
9098          ;;
9099       *)
9100         ld_shlibs=no
9101          ;;
9102      esac
9103    fi
9104      ;;
9105
9106    dgux*)
9107      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9108      hardcode_libdir_flag_spec='-L$libdir'
9109      hardcode_shlibpath_var=no
9110      ;;
9111
9112    freebsd1*)
9113      ld_shlibs=no
9114      ;;
9115
9116    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9117    # support.  Future versions do this automatically, but an explicit c++rt0.o
9118    # does not break anything, and helps significantly (at the cost of a little
9119    # extra space).
9120    freebsd2.2*)
9121      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9122      hardcode_libdir_flag_spec='-R$libdir'
9123      hardcode_direct=yes
9124      hardcode_shlibpath_var=no
9125      ;;
9126
9127    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9128    freebsd2*)
9129      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9130      hardcode_direct=yes
9131      hardcode_minus_L=yes
9132      hardcode_shlibpath_var=no
9133      ;;
9134
9135    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9136    freebsd* | kfreebsd*-gnu | dragonfly*)
9137      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9138      hardcode_libdir_flag_spec='-R$libdir'
9139      hardcode_direct=yes
9140      hardcode_shlibpath_var=no
9141      ;;
9142
9143    hpux9*)
9144      if test "$GCC" = yes; then
9145        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'
9146      else
9147        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'
9148      fi
9149      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9150      hardcode_libdir_separator=:
9151      hardcode_direct=yes
9152
9153      # hardcode_minus_L: Not really in the search PATH,
9154      # but as the default location of the library.
9155      hardcode_minus_L=yes
9156      export_dynamic_flag_spec='${wl}-E'
9157      ;;
9158
9159    hpux10*)
9160      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9161        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9162      else
9163        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9164      fi
9165      if test "$with_gnu_ld" = no; then
9166        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167        hardcode_libdir_separator=:
9168
9169        hardcode_direct=yes
9170        export_dynamic_flag_spec='${wl}-E'
9171
9172        # hardcode_minus_L: Not really in the search PATH,
9173        # but as the default location of the library.
9174        hardcode_minus_L=yes
9175      fi
9176      ;;
9177
9178    hpux11*)
9179      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9180        case $host_cpu in
9181        hppa*64*)
9182          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9183          ;;
9184        ia64*)
9185          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9186          ;;
9187        *)
9188          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189          ;;
9190        esac
9191      else
9192        case $host_cpu in
9193        hppa*64*)
9194          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9195          ;;
9196        ia64*)
9197          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9198          ;;
9199        *)
9200          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9201          ;;
9202        esac
9203      fi
9204      if test "$with_gnu_ld" = no; then
9205        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9206        hardcode_libdir_separator=:
9207
9208        case $host_cpu in
9209        hppa*64*|ia64*)
9210          hardcode_libdir_flag_spec_ld='+b $libdir'
9211          hardcode_direct=no
9212          hardcode_shlibpath_var=no
9213          ;;
9214        *)
9215          hardcode_direct=yes
9216          export_dynamic_flag_spec='${wl}-E'
9217
9218          # hardcode_minus_L: Not really in the search PATH,
9219          # but as the default location of the library.
9220          hardcode_minus_L=yes
9221          ;;
9222        esac
9223      fi
9224      ;;
9225
9226    irix5* | irix6* | nonstopux*)
9227      if test "$GCC" = yes; then
9228        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'
9229      else
9230        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'
9231        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9232      fi
9233      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234      hardcode_libdir_separator=:
9235      link_all_deplibs=yes
9236      ;;
9237
9238    netbsd*)
9239      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9240        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9241      else
9242        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9243      fi
9244      hardcode_libdir_flag_spec='-R$libdir'
9245      hardcode_direct=yes
9246      hardcode_shlibpath_var=no
9247      ;;
9248
9249    newsos6)
9250      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9251      hardcode_direct=yes
9252      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9253      hardcode_libdir_separator=:
9254      hardcode_shlibpath_var=no
9255      ;;
9256
9257    openbsd*)
9258      hardcode_direct=yes
9259      hardcode_shlibpath_var=no
9260      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9261        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9262        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9263        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9264        export_dynamic_flag_spec='${wl}-E'
9265      else
9266       case $host_os in
9267         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9268           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9269           hardcode_libdir_flag_spec='-R$libdir'
9270           ;;
9271         *)
9272           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9273           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9274           ;;
9275       esac
9276      fi
9277      ;;
9278
9279    os2*)
9280      hardcode_libdir_flag_spec='-L$libdir'
9281      hardcode_minus_L=yes
9282      allow_undefined_flag=unsupported
9283      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'
9284      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9285      ;;
9286
9287    osf3*)
9288      if test "$GCC" = yes; then
9289        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9290        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'
9291      else
9292        allow_undefined_flag=' -expect_unresolved \*'
9293        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'
9294      fi
9295      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296      hardcode_libdir_separator=:
9297      ;;
9298
9299    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9300      if test "$GCC" = yes; then
9301        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9302        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'
9303        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304      else
9305        allow_undefined_flag=' -expect_unresolved \*'
9306        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'
9307        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9308        $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'
9309
9310        # Both c and cxx compiler support -rpath directly
9311        hardcode_libdir_flag_spec='-rpath $libdir'
9312      fi
9313      hardcode_libdir_separator=:
9314      ;;
9315
9316    solaris*)
9317      no_undefined_flag=' -z text'
9318      if test "$GCC" = yes; then
9319        wlarc='${wl}'
9320        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9321        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9322          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9323      else
9324        wlarc=''
9325        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9327        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9328      fi
9329      hardcode_libdir_flag_spec='-R$libdir'
9330      hardcode_shlibpath_var=no
9331      case $host_os in
9332      solaris2.[0-5] | solaris2.[0-5].*) ;;
9333      *)
9334        # The compiler driver will combine linker options so we
9335        # cannot just pass the convience library names through
9336        # without $wl, iff we do not link with $LD.
9337        # Luckily, gcc supports the same syntax we need for Sun Studio.
9338        # Supported since Solaris 2.6 (maybe 2.5.1?)
9339        case $wlarc in
9340        '')
9341          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9342        *)
9343          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' ;;
9344        esac ;;
9345      esac
9346      link_all_deplibs=yes
9347      ;;
9348
9349    sunos4*)
9350      if test "x$host_vendor" = xsequent; then
9351        # Use $CC to link under sequent, because it throws in some extra .o
9352        # files that make .init and .fini sections work.
9353        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9354      else
9355        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9356      fi
9357      hardcode_libdir_flag_spec='-L$libdir'
9358      hardcode_direct=yes
9359      hardcode_minus_L=yes
9360      hardcode_shlibpath_var=no
9361      ;;
9362
9363    sysv4)
9364      case $host_vendor in
9365        sni)
9366          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367          hardcode_direct=yes # is this really true???
9368        ;;
9369        siemens)
9370          ## LD is ld it makes a PLAMLIB
9371          ## CC just makes a GrossModule.
9372          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9373          reload_cmds='$CC -r -o $output$reload_objs'
9374          hardcode_direct=no
9375        ;;
9376        motorola)
9377          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9378          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9379        ;;
9380      esac
9381      runpath_var='LD_RUN_PATH'
9382      hardcode_shlibpath_var=no
9383      ;;
9384
9385    sysv4.3*)
9386      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387      hardcode_shlibpath_var=no
9388      export_dynamic_flag_spec='-Bexport'
9389      ;;
9390
9391    sysv4*MP*)
9392      if test -d /usr/nec; then
9393        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9394        hardcode_shlibpath_var=no
9395        runpath_var=LD_RUN_PATH
9396        hardcode_runpath_var=yes
9397        ld_shlibs=yes
9398      fi
9399      ;;
9400
9401    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9402      no_undefined_flag='${wl}-z,text'
9403      archive_cmds_need_lc=no
9404      hardcode_shlibpath_var=no
9405      runpath_var='LD_RUN_PATH'
9406
9407      if test "$GCC" = yes; then
9408        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9410      else
9411        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413      fi
9414      ;;
9415
9416    sysv5* | sco3.2v5* | sco5v6*)
9417      # Note: We can NOT use -z defs as we might desire, because we do not
9418      # link with -lc, and that would cause any symbols used from libc to
9419      # always be unresolved, which means just about no library would
9420      # ever link correctly.  If we're not using GNU ld we use -z text
9421      # though, which does catch some bad symbols but isn't as heavy-handed
9422      # as -z defs.
9423      no_undefined_flag='${wl}-z,text'
9424      allow_undefined_flag='${wl}-z,nodefs'
9425      archive_cmds_need_lc=no
9426      hardcode_shlibpath_var=no
9427      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9428      hardcode_libdir_separator=':'
9429      link_all_deplibs=yes
9430      export_dynamic_flag_spec='${wl}-Bexport'
9431      runpath_var='LD_RUN_PATH'
9432
9433      if test "$GCC" = yes; then
9434        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9435        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9436      else
9437        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9439      fi
9440      ;;
9441
9442    uts4*)
9443      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444      hardcode_libdir_flag_spec='-L$libdir'
9445      hardcode_shlibpath_var=no
9446      ;;
9447
9448    *)
9449      ld_shlibs=no
9450      ;;
9451    esac
9452  fi
9453
9454echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9455echo "${ECHO_T}$ld_shlibs" >&6
9456test "$ld_shlibs" = no && can_build_shared=no
9457
9458#
9459# Do we need to explicitly link libc?
9460#
9461case "x$archive_cmds_need_lc" in
9462x|xyes)
9463  # Assume -lc should be added
9464  archive_cmds_need_lc=yes
9465
9466  if test "$enable_shared" = yes && test "$GCC" = yes; then
9467    case $archive_cmds in
9468    *'~'*)
9469      # FIXME: we may have to deal with multi-command sequences.
9470      ;;
9471    '$CC '*)
9472      # Test whether the compiler implicitly links with -lc since on some
9473      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9474      # to ld, don't add -lc before -lgcc.
9475      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9476echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9477      $rm conftest*
9478      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9479
9480      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481  (eval $ac_compile) 2>&5
9482  ac_status=$?
9483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484  (exit $ac_status); } 2>conftest.err; then
9485        soname=conftest
9486        lib=conftest
9487        libobjs=conftest.$ac_objext
9488        deplibs=
9489        wl=$lt_prog_compiler_wl
9490        pic_flag=$lt_prog_compiler_pic
9491        compiler_flags=-v
9492        linker_flags=-v
9493        verstring=
9494        output_objdir=.
9495        libname=conftest
9496        lt_save_allow_undefined_flag=$allow_undefined_flag
9497        allow_undefined_flag=
9498        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9499  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9500  ac_status=$?
9501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502  (exit $ac_status); }
9503        then
9504          archive_cmds_need_lc=no
9505        else
9506          archive_cmds_need_lc=yes
9507        fi
9508        allow_undefined_flag=$lt_save_allow_undefined_flag
9509      else
9510        cat conftest.err 1>&5
9511      fi
9512      $rm conftest*
9513      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9514echo "${ECHO_T}$archive_cmds_need_lc" >&6
9515      ;;
9516    esac
9517  fi
9518  ;;
9519esac
9520
9521echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9522echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9523library_names_spec=
9524libname_spec='lib$name'
9525soname_spec=
9526shrext_cmds=".so"
9527postinstall_cmds=
9528postuninstall_cmds=
9529finish_cmds=
9530finish_eval=
9531shlibpath_var=
9532shlibpath_overrides_runpath=unknown
9533version_type=none
9534dynamic_linker="$host_os ld.so"
9535sys_lib_dlsearch_path_spec="/lib /usr/lib"
9536if test "$GCC" = yes; then
9537  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9538  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9539    # if the path contains ";" then we assume it to be the separator
9540    # otherwise default to the standard path separator (i.e. ":") - it is
9541    # assumed that no part of a normal pathname contains ";" but that should
9542    # okay in the real world where ";" in dirpaths is itself problematic.
9543    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9544  else
9545    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9546  fi
9547else
9548  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9549fi
9550need_lib_prefix=unknown
9551hardcode_into_libs=no
9552
9553# when you set need_version to no, make sure it does not cause -set_version
9554# flags to be left without arguments
9555need_version=unknown
9556
9557case $host_os in
9558aix3*)
9559  version_type=linux
9560  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9561  shlibpath_var=LIBPATH
9562
9563  # AIX 3 has no versioning support, so we append a major version to the name.
9564  soname_spec='${libname}${release}${shared_ext}$major'
9565  ;;
9566
9567aix4* | aix5*)
9568  version_type=linux
9569  need_lib_prefix=no
9570  need_version=no
9571  hardcode_into_libs=yes
9572  if test "$host_cpu" = ia64; then
9573    # AIX 5 supports IA64
9574    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9575    shlibpath_var=LD_LIBRARY_PATH
9576  else
9577    # With GCC up to 2.95.x, collect2 would create an import file
9578    # for dependence libraries.  The import file would start with
9579    # the line `#! .'.  This would cause the generated library to
9580    # depend on `.', always an invalid library.  This was fixed in
9581    # development snapshots of GCC prior to 3.0.
9582    case $host_os in
9583      aix4 | aix4.[01] | aix4.[01].*)
9584      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9585           echo ' yes '
9586           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9587        :
9588      else
9589        can_build_shared=no
9590      fi
9591      ;;
9592    esac
9593    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9594    # soname into executable. Probably we can add versioning support to
9595    # collect2, so additional links can be useful in future.
9596    if test "$aix_use_runtimelinking" = yes; then
9597      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9598      # instead of lib<name>.a to let people know that these are not
9599      # typical AIX shared libraries.
9600      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601    else
9602      # We preserve .a as extension for shared libraries through AIX4.2
9603      # and later when we are not doing run time linking.
9604      library_names_spec='${libname}${release}.a $libname.a'
9605      soname_spec='${libname}${release}${shared_ext}$major'
9606    fi
9607    shlibpath_var=LIBPATH
9608  fi
9609  ;;
9610
9611amigaos*)
9612  library_names_spec='$libname.ixlibrary $libname.a'
9613  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9614  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'
9615  ;;
9616
9617beos*)
9618  library_names_spec='${libname}${shared_ext}'
9619  dynamic_linker="$host_os ld.so"
9620  shlibpath_var=LIBRARY_PATH
9621  ;;
9622
9623bsdi[45]*)
9624  version_type=linux
9625  need_version=no
9626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9627  soname_spec='${libname}${release}${shared_ext}$major'
9628  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9629  shlibpath_var=LD_LIBRARY_PATH
9630  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9631  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9632  # the default ld.so.conf also contains /usr/contrib/lib and
9633  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9634  # libtool to hard-code these into programs
9635  ;;
9636
9637cygwin* | mingw* | pw32*)
9638  version_type=windows
9639  shrext_cmds=".dll"
9640  need_version=no
9641  need_lib_prefix=no
9642
9643  case $GCC,$host_os in
9644  yes,cygwin* | yes,mingw* | yes,pw32*)
9645    library_names_spec='$libname.dll.a'
9646    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9647    postinstall_cmds='base_file=`basename \${file}`~
9648      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9649      dldir=$destdir/`dirname \$dlpath`~
9650      test -d \$dldir || mkdir -p \$dldir~
9651      $install_prog $dir/$dlname \$dldir/$dlname~
9652      chmod a+x \$dldir/$dlname'
9653    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9654      dlpath=$dir/\$dldll~
9655       $rm \$dlpath'
9656    shlibpath_overrides_runpath=yes
9657
9658    case $host_os in
9659    cygwin*)
9660      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9661      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9662      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9663      ;;
9664    mingw*)
9665      # MinGW DLLs use traditional 'lib' prefix
9666      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9667      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9668      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9669        # It is most probably a Windows format PATH printed by
9670        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9671        # path with ; separators, and with drive letters. We can handle the
9672        # drive letters (cygwin fileutils understands them), so leave them,
9673        # especially as we might pass files found there to a mingw objdump,
9674        # which wouldn't understand a cygwinified path. Ahh.
9675        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9676      else
9677        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9678      fi
9679      ;;
9680    pw32*)
9681      # pw32 DLLs use 'pw' prefix rather than 'lib'
9682      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9683      ;;
9684    esac
9685    ;;
9686
9687  *)
9688    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9689    ;;
9690  esac
9691  dynamic_linker='Win32 ld.exe'
9692  # FIXME: first we should search . and the directory the executable is in
9693  shlibpath_var=PATH
9694  ;;
9695
9696darwin* | rhapsody*)
9697  dynamic_linker="$host_os dyld"
9698  version_type=darwin
9699  need_lib_prefix=no
9700  need_version=no
9701  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9702  soname_spec='${libname}${release}${major}$shared_ext'
9703  shlibpath_overrides_runpath=yes
9704  shlibpath_var=DYLD_LIBRARY_PATH
9705  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9706  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9707  if test "$GCC" = yes; then
9708    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"`
9709  else
9710    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9711  fi
9712  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9713  ;;
9714
9715dgux*)
9716  version_type=linux
9717  need_lib_prefix=no
9718  need_version=no
9719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9720  soname_spec='${libname}${release}${shared_ext}$major'
9721  shlibpath_var=LD_LIBRARY_PATH
9722  ;;
9723
9724freebsd1*)
9725  dynamic_linker=no
9726  ;;
9727
9728kfreebsd*-gnu)
9729  version_type=linux
9730  need_lib_prefix=no
9731  need_version=no
9732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9733  soname_spec='${libname}${release}${shared_ext}$major'
9734  shlibpath_var=LD_LIBRARY_PATH
9735  shlibpath_overrides_runpath=no
9736  hardcode_into_libs=yes
9737  dynamic_linker='GNU ld.so'
9738  ;;
9739
9740freebsd* | dragonfly*)
9741  # DragonFly does not have aout.  When/if they implement a new
9742  # versioning mechanism, adjust this.
9743  if test -x /usr/bin/objformat; then
9744    objformat=`/usr/bin/objformat`
9745  else
9746    case $host_os in
9747    freebsd[123]*) objformat=aout ;;
9748    *) objformat=elf ;;
9749    esac
9750  fi
9751  version_type=freebsd-$objformat
9752  case $version_type in
9753    freebsd-elf*)
9754      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9755      need_version=no
9756      need_lib_prefix=no
9757      ;;
9758    freebsd-*)
9759      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9760      need_version=yes
9761      ;;
9762  esac
9763  shlibpath_var=LD_LIBRARY_PATH
9764  case $host_os in
9765  freebsd2*)
9766    shlibpath_overrides_runpath=yes
9767    ;;
9768  freebsd3.[01]* | freebsdelf3.[01]*)
9769    shlibpath_overrides_runpath=yes
9770    hardcode_into_libs=yes
9771    ;;
9772  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9773  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9774    shlibpath_overrides_runpath=no
9775    hardcode_into_libs=yes
9776    ;;
9777  freebsd*) # from 4.6 on
9778    shlibpath_overrides_runpath=yes
9779    hardcode_into_libs=yes
9780    ;;
9781  esac
9782  ;;
9783
9784gnu*)
9785  version_type=linux
9786  need_lib_prefix=no
9787  need_version=no
9788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9789  soname_spec='${libname}${release}${shared_ext}$major'
9790  shlibpath_var=LD_LIBRARY_PATH
9791  hardcode_into_libs=yes
9792  ;;
9793
9794hpux9* | hpux10* | hpux11*)
9795  # Give a soname corresponding to the major version so that dld.sl refuses to
9796  # link against other versions.
9797  version_type=sunos
9798  need_lib_prefix=no
9799  need_version=no
9800  case $host_cpu in
9801  ia64*)
9802    shrext_cmds='.so'
9803    hardcode_into_libs=yes
9804    dynamic_linker="$host_os dld.so"
9805    shlibpath_var=LD_LIBRARY_PATH
9806    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9807    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9808    soname_spec='${libname}${release}${shared_ext}$major'
9809    if test "X$HPUX_IA64_MODE" = X32; then
9810      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9811    else
9812      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9813    fi
9814    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9815    ;;
9816   hppa*64*)
9817     shrext_cmds='.sl'
9818     hardcode_into_libs=yes
9819     dynamic_linker="$host_os dld.sl"
9820     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9821     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823     soname_spec='${libname}${release}${shared_ext}$major'
9824     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9825     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9826     ;;
9827   *)
9828    shrext_cmds='.sl'
9829    dynamic_linker="$host_os dld.sl"
9830    shlibpath_var=SHLIB_PATH
9831    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9832    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833    soname_spec='${libname}${release}${shared_ext}$major'
9834    ;;
9835  esac
9836  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9837  postinstall_cmds='chmod 555 $lib'
9838  ;;
9839
9840interix3*)
9841  version_type=linux
9842  need_lib_prefix=no
9843  need_version=no
9844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9845  soname_spec='${libname}${release}${shared_ext}$major'
9846  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9847  shlibpath_var=LD_LIBRARY_PATH
9848  shlibpath_overrides_runpath=no
9849  hardcode_into_libs=yes
9850  ;;
9851
9852irix5* | irix6* | nonstopux*)
9853  case $host_os in
9854    nonstopux*) version_type=nonstopux ;;
9855    *)
9856        if test "$lt_cv_prog_gnu_ld" = yes; then
9857                version_type=linux
9858        else
9859                version_type=irix
9860        fi ;;
9861  esac
9862  need_lib_prefix=no
9863  need_version=no
9864  soname_spec='${libname}${release}${shared_ext}$major'
9865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9866  case $host_os in
9867  irix5* | nonstopux*)
9868    libsuff= shlibsuff=
9869    ;;
9870  *)
9871    case $LD in # libtool.m4 will add one of these switches to LD
9872    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9873      libsuff= shlibsuff= libmagic=32-bit;;
9874    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9875      libsuff=32 shlibsuff=N32 libmagic=N32;;
9876    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9877      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9878    *) libsuff= shlibsuff= libmagic=never-match;;
9879    esac
9880    ;;
9881  esac
9882  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9883  shlibpath_overrides_runpath=no
9884  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9885  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9886  hardcode_into_libs=yes
9887  ;;
9888
9889# No shared lib support for Linux oldld, aout, or coff.
9890linux*oldld* | linux*aout* | linux*coff*)
9891  dynamic_linker=no
9892  ;;
9893
9894# This must be Linux ELF.
9895linux*)
9896  version_type=linux
9897  need_lib_prefix=no
9898  need_version=no
9899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900  soname_spec='${libname}${release}${shared_ext}$major'
9901  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9902  shlibpath_var=LD_LIBRARY_PATH
9903  shlibpath_overrides_runpath=no
9904  # This implies no fast_install, which is unacceptable.
9905  # Some rework will be needed to allow for fast_install
9906  # before this can be enabled.
9907  hardcode_into_libs=yes
9908
9909  # Append ld.so.conf contents to the search path
9910  if test -f /etc/ld.so.conf; then
9911    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' ' '`
9912    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9913  fi
9914
9915  # We used to test for /lib/ld.so.1 and disable shared libraries on
9916  # powerpc, because MkLinux only supported shared libraries with the
9917  # GNU dynamic linker.  Since this was broken with cross compilers,
9918  # most powerpc-linux boxes support dynamic linking these days and
9919  # people can always --disable-shared, the test was removed, and we
9920  # assume the GNU/Linux dynamic linker is in use.
9921  dynamic_linker='GNU/Linux ld.so'
9922  ;;
9923
9924knetbsd*-gnu)
9925  version_type=linux
9926  need_lib_prefix=no
9927  need_version=no
9928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9929  soname_spec='${libname}${release}${shared_ext}$major'
9930  shlibpath_var=LD_LIBRARY_PATH
9931  shlibpath_overrides_runpath=no
9932  hardcode_into_libs=yes
9933  dynamic_linker='GNU ld.so'
9934  ;;
9935
9936netbsd*)
9937  version_type=sunos
9938  need_lib_prefix=no
9939  need_version=no
9940  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9941    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9942    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9943    dynamic_linker='NetBSD (a.out) ld.so'
9944  else
9945    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9946    soname_spec='${libname}${release}${shared_ext}$major'
9947    dynamic_linker='NetBSD ld.elf_so'
9948  fi
9949  shlibpath_var=LD_LIBRARY_PATH
9950  shlibpath_overrides_runpath=yes
9951  hardcode_into_libs=yes
9952  ;;
9953
9954newsos6)
9955  version_type=linux
9956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957  shlibpath_var=LD_LIBRARY_PATH
9958  shlibpath_overrides_runpath=yes
9959  ;;
9960
9961nto-qnx*)
9962  version_type=linux
9963  need_lib_prefix=no
9964  need_version=no
9965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966  soname_spec='${libname}${release}${shared_ext}$major'
9967  shlibpath_var=LD_LIBRARY_PATH
9968  shlibpath_overrides_runpath=yes
9969  ;;
9970
9971openbsd*)
9972  version_type=sunos
9973  sys_lib_dlsearch_path_spec="/usr/lib"
9974  need_lib_prefix=no
9975  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9976  case $host_os in
9977    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9978    *)                         need_version=no  ;;
9979  esac
9980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9981  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9982  shlibpath_var=LD_LIBRARY_PATH
9983  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9984    case $host_os in
9985      openbsd2.[89] | openbsd2.[89].*)
9986        shlibpath_overrides_runpath=no
9987        ;;
9988      *)
9989        shlibpath_overrides_runpath=yes
9990        ;;
9991      esac
9992  else
9993    shlibpath_overrides_runpath=yes
9994  fi
9995  ;;
9996
9997os2*)
9998  libname_spec='$name'
9999  shrext_cmds=".dll"
10000  need_lib_prefix=no
10001  library_names_spec='$libname${shared_ext} $libname.a'
10002  dynamic_linker='OS/2 ld.exe'
10003  shlibpath_var=LIBPATH
10004  ;;
10005
10006osf3* | osf4* | osf5*)
10007  version_type=osf
10008  need_lib_prefix=no
10009  need_version=no
10010  soname_spec='${libname}${release}${shared_ext}$major'
10011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012  shlibpath_var=LD_LIBRARY_PATH
10013  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10014  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10015  ;;
10016
10017solaris*)
10018  version_type=linux
10019  need_lib_prefix=no
10020  need_version=no
10021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022  soname_spec='${libname}${release}${shared_ext}$major'
10023  shlibpath_var=LD_LIBRARY_PATH
10024  shlibpath_overrides_runpath=yes
10025  hardcode_into_libs=yes
10026  # ldd complains unless libraries are executable
10027  postinstall_cmds='chmod +x $lib'
10028  ;;
10029
10030sunos4*)
10031  version_type=sunos
10032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10033  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10034  shlibpath_var=LD_LIBRARY_PATH
10035  shlibpath_overrides_runpath=yes
10036  if test "$with_gnu_ld" = yes; then
10037    need_lib_prefix=no
10038  fi
10039  need_version=yes
10040  ;;
10041
10042sysv4 | sysv4.3*)
10043  version_type=linux
10044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045  soname_spec='${libname}${release}${shared_ext}$major'
10046  shlibpath_var=LD_LIBRARY_PATH
10047  case $host_vendor in
10048    sni)
10049      shlibpath_overrides_runpath=no
10050      need_lib_prefix=no
10051      export_dynamic_flag_spec='${wl}-Blargedynsym'
10052      runpath_var=LD_RUN_PATH
10053      ;;
10054    siemens)
10055      need_lib_prefix=no
10056      ;;
10057    motorola)
10058      need_lib_prefix=no
10059      need_version=no
10060      shlibpath_overrides_runpath=no
10061      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10062      ;;
10063  esac
10064  ;;
10065
10066sysv4*MP*)
10067  if test -d /usr/nec ;then
10068    version_type=linux
10069    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10070    soname_spec='$libname${shared_ext}.$major'
10071    shlibpath_var=LD_LIBRARY_PATH
10072  fi
10073  ;;
10074
10075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10076  version_type=freebsd-elf
10077  need_lib_prefix=no
10078  need_version=no
10079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10080  soname_spec='${libname}${release}${shared_ext}$major'
10081  shlibpath_var=LD_LIBRARY_PATH
10082  hardcode_into_libs=yes
10083  if test "$with_gnu_ld" = yes; then
10084    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10085    shlibpath_overrides_runpath=no
10086  else
10087    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10088    shlibpath_overrides_runpath=yes
10089    case $host_os in
10090      sco3.2v5*)
10091        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10092        ;;
10093    esac
10094  fi
10095  sys_lib_dlsearch_path_spec='/usr/lib'
10096  ;;
10097
10098uts4*)
10099  version_type=linux
10100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10101  soname_spec='${libname}${release}${shared_ext}$major'
10102  shlibpath_var=LD_LIBRARY_PATH
10103  ;;
10104
10105*)
10106  dynamic_linker=no
10107  ;;
10108esac
10109echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10110echo "${ECHO_T}$dynamic_linker" >&6
10111test "$dynamic_linker" = no && can_build_shared=no
10112
10113variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10114if test "$GCC" = yes; then
10115  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10116fi
10117
10118echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10119echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10120hardcode_action=
10121if test -n "$hardcode_libdir_flag_spec" || \
10122   test -n "$runpath_var" || \
10123   test "X$hardcode_automatic" = "Xyes" ; then
10124
10125  # We can hardcode non-existant directories.
10126  if test "$hardcode_direct" != no &&
10127     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10128     # have to relink, otherwise we might link with an installed library
10129     # when we should be linking with a yet-to-be-installed one
10130     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10131     test "$hardcode_minus_L" != no; then
10132    # Linking always hardcodes the temporary library directory.
10133    hardcode_action=relink
10134  else
10135    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10136    hardcode_action=immediate
10137  fi
10138else
10139  # We cannot hardcode anything, or else we can only hardcode existing
10140  # directories.
10141  hardcode_action=unsupported
10142fi
10143echo "$as_me:$LINENO: result: $hardcode_action" >&5
10144echo "${ECHO_T}$hardcode_action" >&6
10145
10146if test "$hardcode_action" = relink; then
10147  # Fast installation is not supported
10148  enable_fast_install=no
10149elif test "$shlibpath_overrides_runpath" = yes ||
10150     test "$enable_shared" = no; then
10151  # Fast installation is not necessary
10152  enable_fast_install=needless
10153fi
10154
10155striplib=
10156old_striplib=
10157echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10158echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10159if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10160  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10161  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10162  echo "$as_me:$LINENO: result: yes" >&5
10163echo "${ECHO_T}yes" >&6
10164else
10165# FIXME - insert some real tests, host_os isn't really good enough
10166  case $host_os in
10167   darwin*)
10168       if test -n "$STRIP" ; then
10169         striplib="$STRIP -x"
10170         echo "$as_me:$LINENO: result: yes" >&5
10171echo "${ECHO_T}yes" >&6
10172       else
10173  echo "$as_me:$LINENO: result: no" >&5
10174echo "${ECHO_T}no" >&6
10175fi
10176       ;;
10177   *)
10178  echo "$as_me:$LINENO: result: no" >&5
10179echo "${ECHO_T}no" >&6
10180    ;;
10181  esac
10182fi
10183
10184if test "x$enable_dlopen" != xyes; then
10185  enable_dlopen=unknown
10186  enable_dlopen_self=unknown
10187  enable_dlopen_self_static=unknown
10188else
10189  lt_cv_dlopen=no
10190  lt_cv_dlopen_libs=
10191
10192  case $host_os in
10193  beos*)
10194    lt_cv_dlopen="load_add_on"
10195    lt_cv_dlopen_libs=
10196    lt_cv_dlopen_self=yes
10197    ;;
10198
10199  mingw* | pw32*)
10200    lt_cv_dlopen="LoadLibrary"
10201    lt_cv_dlopen_libs=
10202   ;;
10203
10204  cygwin*)
10205    lt_cv_dlopen="dlopen"
10206    lt_cv_dlopen_libs=
10207   ;;
10208
10209  darwin*)
10210  # if libdl is installed we need to link against it
10211    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10212echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10213if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10214  echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216  ac_check_lib_save_LIBS=$LIBS
10217LIBS="-ldl  $LIBS"
10218cat >conftest.$ac_ext <<_ACEOF
10219/* confdefs.h.  */
10220_ACEOF
10221cat confdefs.h >>conftest.$ac_ext
10222cat >>conftest.$ac_ext <<_ACEOF
10223/* end confdefs.h.  */
10224
10225/* Override any gcc2 internal prototype to avoid an error.  */
10226#ifdef __cplusplus
10227extern "C"
10228#endif
10229/* We use char because int might match the return type of a gcc2
10230   builtin and then its argument prototype would still apply.  */
10231char dlopen ();
10232int
10233main ()
10234{
10235dlopen ();
10236  ;
10237  return 0;
10238}
10239_ACEOF
10240rm -f conftest.$ac_objext conftest$ac_exeext
10241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10242  (eval $ac_link) 2>conftest.er1
10243  ac_status=$?
10244  grep -v '^ *+' conftest.er1 >conftest.err
10245  rm -f conftest.er1
10246  cat conftest.err >&5
10247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248  (exit $ac_status); } &&
10249         { ac_try='test -z "$ac_c_werror_flag"
10250                         || test ! -s conftest.err'
10251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252  (eval $ac_try) 2>&5
10253  ac_status=$?
10254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255  (exit $ac_status); }; } &&
10256         { ac_try='test -s conftest$ac_exeext'
10257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258  (eval $ac_try) 2>&5
10259  ac_status=$?
10260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261  (exit $ac_status); }; }; then
10262  ac_cv_lib_dl_dlopen=yes
10263else
10264  echo "$as_me: failed program was:" >&5
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
10267ac_cv_lib_dl_dlopen=no
10268fi
10269rm -f conftest.err conftest.$ac_objext \
10270      conftest$ac_exeext conftest.$ac_ext
10271LIBS=$ac_check_lib_save_LIBS
10272fi
10273echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10274echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10275if test $ac_cv_lib_dl_dlopen = yes; then
10276  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10277else
10278
10279    lt_cv_dlopen="dyld"
10280    lt_cv_dlopen_libs=
10281    lt_cv_dlopen_self=yes
10282
10283fi
10284
10285   ;;
10286
10287  *)
10288    echo "$as_me:$LINENO: checking for shl_load" >&5
10289echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10290if test "${ac_cv_func_shl_load+set}" = set; then
10291  echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293  cat >conftest.$ac_ext <<_ACEOF
10294/* confdefs.h.  */
10295_ACEOF
10296cat confdefs.h >>conftest.$ac_ext
10297cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h.  */
10299/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10300   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10301#define shl_load innocuous_shl_load
10302
10303/* System header to define __stub macros and hopefully few prototypes,
10304    which can conflict with char shl_load (); below.
10305    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10306    <limits.h> exists even on freestanding compilers.  */
10307
10308#ifdef __STDC__
10309# include <limits.h>
10310#else
10311# include <assert.h>
10312#endif
10313
10314#undef shl_load
10315
10316/* Override any gcc2 internal prototype to avoid an error.  */
10317#ifdef __cplusplus
10318extern "C"
10319{
10320#endif
10321/* We use char because int might match the return type of a gcc2
10322   builtin and then its argument prototype would still apply.  */
10323char shl_load ();
10324/* The GNU C library defines this for functions which it implements
10325    to always fail with ENOSYS.  Some functions are actually named
10326    something starting with __ and the normal name is an alias.  */
10327#if defined (__stub_shl_load) || defined (__stub___shl_load)
10328choke me
10329#else
10330char (*f) () = shl_load;
10331#endif
10332#ifdef __cplusplus
10333}
10334#endif
10335
10336int
10337main ()
10338{
10339return f != shl_load;
10340  ;
10341  return 0;
10342}
10343_ACEOF
10344rm -f conftest.$ac_objext conftest$ac_exeext
10345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346  (eval $ac_link) 2>conftest.er1
10347  ac_status=$?
10348  grep -v '^ *+' conftest.er1 >conftest.err
10349  rm -f conftest.er1
10350  cat conftest.err >&5
10351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352  (exit $ac_status); } &&
10353         { ac_try='test -z "$ac_c_werror_flag"
10354                         || test ! -s conftest.err'
10355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10356  (eval $ac_try) 2>&5
10357  ac_status=$?
10358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359  (exit $ac_status); }; } &&
10360         { ac_try='test -s conftest$ac_exeext'
10361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362  (eval $ac_try) 2>&5
10363  ac_status=$?
10364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365  (exit $ac_status); }; }; then
10366  ac_cv_func_shl_load=yes
10367else
10368  echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
10371ac_cv_func_shl_load=no
10372fi
10373rm -f conftest.err conftest.$ac_objext \
10374      conftest$ac_exeext conftest.$ac_ext
10375fi
10376echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10377echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10378if test $ac_cv_func_shl_load = yes; then
10379  lt_cv_dlopen="shl_load"
10380else
10381  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10382echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10383if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10384  echo $ECHO_N "(cached) $ECHO_C" >&6
10385else
10386  ac_check_lib_save_LIBS=$LIBS
10387LIBS="-ldld  $LIBS"
10388cat >conftest.$ac_ext <<_ACEOF
10389/* confdefs.h.  */
10390_ACEOF
10391cat confdefs.h >>conftest.$ac_ext
10392cat >>conftest.$ac_ext <<_ACEOF
10393/* end confdefs.h.  */
10394
10395/* Override any gcc2 internal prototype to avoid an error.  */
10396#ifdef __cplusplus
10397extern "C"
10398#endif
10399/* We use char because int might match the return type of a gcc2
10400   builtin and then its argument prototype would still apply.  */
10401char shl_load ();
10402int
10403main ()
10404{
10405shl_load ();
10406  ;
10407  return 0;
10408}
10409_ACEOF
10410rm -f conftest.$ac_objext conftest$ac_exeext
10411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10412  (eval $ac_link) 2>conftest.er1
10413  ac_status=$?
10414  grep -v '^ *+' conftest.er1 >conftest.err
10415  rm -f conftest.er1
10416  cat conftest.err >&5
10417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418  (exit $ac_status); } &&
10419         { ac_try='test -z "$ac_c_werror_flag"
10420                         || test ! -s conftest.err'
10421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422  (eval $ac_try) 2>&5
10423  ac_status=$?
10424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425  (exit $ac_status); }; } &&
10426         { ac_try='test -s conftest$ac_exeext'
10427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428  (eval $ac_try) 2>&5
10429  ac_status=$?
10430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431  (exit $ac_status); }; }; then
10432  ac_cv_lib_dld_shl_load=yes
10433else
10434  echo "$as_me: failed program was:" >&5
10435sed 's/^/| /' conftest.$ac_ext >&5
10436
10437ac_cv_lib_dld_shl_load=no
10438fi
10439rm -f conftest.err conftest.$ac_objext \
10440      conftest$ac_exeext conftest.$ac_ext
10441LIBS=$ac_check_lib_save_LIBS
10442fi
10443echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10444echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10445if test $ac_cv_lib_dld_shl_load = yes; then
10446  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10447else
10448  echo "$as_me:$LINENO: checking for dlopen" >&5
10449echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10450if test "${ac_cv_func_dlopen+set}" = set; then
10451  echo $ECHO_N "(cached) $ECHO_C" >&6
10452else
10453  cat >conftest.$ac_ext <<_ACEOF
10454/* confdefs.h.  */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h.  */
10459/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10460   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10461#define dlopen innocuous_dlopen
10462
10463/* System header to define __stub macros and hopefully few prototypes,
10464    which can conflict with char dlopen (); below.
10465    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10466    <limits.h> exists even on freestanding compilers.  */
10467
10468#ifdef __STDC__
10469# include <limits.h>
10470#else
10471# include <assert.h>
10472#endif
10473
10474#undef dlopen
10475
10476/* Override any gcc2 internal prototype to avoid an error.  */
10477#ifdef __cplusplus
10478extern "C"
10479{
10480#endif
10481/* We use char because int might match the return type of a gcc2
10482   builtin and then its argument prototype would still apply.  */
10483char dlopen ();
10484/* The GNU C library defines this for functions which it implements
10485    to always fail with ENOSYS.  Some functions are actually named
10486    something starting with __ and the normal name is an alias.  */
10487#if defined (__stub_dlopen) || defined (__stub___dlopen)
10488choke me
10489#else
10490char (*f) () = dlopen;
10491#endif
10492#ifdef __cplusplus
10493}
10494#endif
10495
10496int
10497main ()
10498{
10499return f != dlopen;
10500  ;
10501  return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext conftest$ac_exeext
10505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506  (eval $ac_link) 2>conftest.er1
10507  ac_status=$?
10508  grep -v '^ *+' conftest.er1 >conftest.err
10509  rm -f conftest.er1
10510  cat conftest.err >&5
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); } &&
10513         { ac_try='test -z "$ac_c_werror_flag"
10514                         || test ! -s conftest.err'
10515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516  (eval $ac_try) 2>&5
10517  ac_status=$?
10518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); }; } &&
10520         { ac_try='test -s conftest$ac_exeext'
10521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522  (eval $ac_try) 2>&5
10523  ac_status=$?
10524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525  (exit $ac_status); }; }; then
10526  ac_cv_func_dlopen=yes
10527else
10528  echo "$as_me: failed program was:" >&5
10529sed 's/^/| /' conftest.$ac_ext >&5
10530
10531ac_cv_func_dlopen=no
10532fi
10533rm -f conftest.err conftest.$ac_objext \
10534      conftest$ac_exeext conftest.$ac_ext
10535fi
10536echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10537echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10538if test $ac_cv_func_dlopen = yes; then
10539  lt_cv_dlopen="dlopen"
10540else
10541  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10542echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10543if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10544  echo $ECHO_N "(cached) $ECHO_C" >&6
10545else
10546  ac_check_lib_save_LIBS=$LIBS
10547LIBS="-ldl  $LIBS"
10548cat >conftest.$ac_ext <<_ACEOF
10549/* confdefs.h.  */
10550_ACEOF
10551cat confdefs.h >>conftest.$ac_ext
10552cat >>conftest.$ac_ext <<_ACEOF
10553/* end confdefs.h.  */
10554
10555/* Override any gcc2 internal prototype to avoid an error.  */
10556#ifdef __cplusplus
10557extern "C"
10558#endif
10559/* We use char because int might match the return type of a gcc2
10560   builtin and then its argument prototype would still apply.  */
10561char dlopen ();
10562int
10563main ()
10564{
10565dlopen ();
10566  ;
10567  return 0;
10568}
10569_ACEOF
10570rm -f conftest.$ac_objext conftest$ac_exeext
10571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572  (eval $ac_link) 2>conftest.er1
10573  ac_status=$?
10574  grep -v '^ *+' conftest.er1 >conftest.err
10575  rm -f conftest.er1
10576  cat conftest.err >&5
10577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578  (exit $ac_status); } &&
10579         { ac_try='test -z "$ac_c_werror_flag"
10580                         || test ! -s conftest.err'
10581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582  (eval $ac_try) 2>&5
10583  ac_status=$?
10584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585  (exit $ac_status); }; } &&
10586         { ac_try='test -s conftest$ac_exeext'
10587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588  (eval $ac_try) 2>&5
10589  ac_status=$?
10590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591  (exit $ac_status); }; }; then
10592  ac_cv_lib_dl_dlopen=yes
10593else
10594  echo "$as_me: failed program was:" >&5
10595sed 's/^/| /' conftest.$ac_ext >&5
10596
10597ac_cv_lib_dl_dlopen=no
10598fi
10599rm -f conftest.err conftest.$ac_objext \
10600      conftest$ac_exeext conftest.$ac_ext
10601LIBS=$ac_check_lib_save_LIBS
10602fi
10603echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10604echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10605if test $ac_cv_lib_dl_dlopen = yes; then
10606  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10607else
10608  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10609echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10610if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10611  echo $ECHO_N "(cached) $ECHO_C" >&6
10612else
10613  ac_check_lib_save_LIBS=$LIBS
10614LIBS="-lsvld  $LIBS"
10615cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h.  */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
10620/* end confdefs.h.  */
10621
10622/* Override any gcc2 internal prototype to avoid an error.  */
10623#ifdef __cplusplus
10624extern "C"
10625#endif
10626/* We use char because int might match the return type of a gcc2
10627   builtin and then its argument prototype would still apply.  */
10628char dlopen ();
10629int
10630main ()
10631{
10632dlopen ();
10633  ;
10634  return 0;
10635}
10636_ACEOF
10637rm -f conftest.$ac_objext conftest$ac_exeext
10638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639  (eval $ac_link) 2>conftest.er1
10640  ac_status=$?
10641  grep -v '^ *+' conftest.er1 >conftest.err
10642  rm -f conftest.er1
10643  cat conftest.err >&5
10644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645  (exit $ac_status); } &&
10646         { ac_try='test -z "$ac_c_werror_flag"
10647                         || test ! -s conftest.err'
10648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649  (eval $ac_try) 2>&5
10650  ac_status=$?
10651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652  (exit $ac_status); }; } &&
10653         { ac_try='test -s conftest$ac_exeext'
10654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655  (eval $ac_try) 2>&5
10656  ac_status=$?
10657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658  (exit $ac_status); }; }; then
10659  ac_cv_lib_svld_dlopen=yes
10660else
10661  echo "$as_me: failed program was:" >&5
10662sed 's/^/| /' conftest.$ac_ext >&5
10663
10664ac_cv_lib_svld_dlopen=no
10665fi
10666rm -f conftest.err conftest.$ac_objext \
10667      conftest$ac_exeext conftest.$ac_ext
10668LIBS=$ac_check_lib_save_LIBS
10669fi
10670echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10671echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10672if test $ac_cv_lib_svld_dlopen = yes; then
10673  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10674else
10675  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10676echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10677if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10678  echo $ECHO_N "(cached) $ECHO_C" >&6
10679else
10680  ac_check_lib_save_LIBS=$LIBS
10681LIBS="-ldld  $LIBS"
10682cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h.  */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h.  */
10688
10689/* Override any gcc2 internal prototype to avoid an error.  */
10690#ifdef __cplusplus
10691extern "C"
10692#endif
10693/* We use char because int might match the return type of a gcc2
10694   builtin and then its argument prototype would still apply.  */
10695char dld_link ();
10696int
10697main ()
10698{
10699dld_link ();
10700  ;
10701  return 0;
10702}
10703_ACEOF
10704rm -f conftest.$ac_objext conftest$ac_exeext
10705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706  (eval $ac_link) 2>conftest.er1
10707  ac_status=$?
10708  grep -v '^ *+' conftest.er1 >conftest.err
10709  rm -f conftest.er1
10710  cat conftest.err >&5
10711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712  (exit $ac_status); } &&
10713         { ac_try='test -z "$ac_c_werror_flag"
10714                         || test ! -s conftest.err'
10715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716  (eval $ac_try) 2>&5
10717  ac_status=$?
10718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719  (exit $ac_status); }; } &&
10720         { ac_try='test -s conftest$ac_exeext'
10721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722  (eval $ac_try) 2>&5
10723  ac_status=$?
10724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725  (exit $ac_status); }; }; then
10726  ac_cv_lib_dld_dld_link=yes
10727else
10728  echo "$as_me: failed program was:" >&5
10729sed 's/^/| /' conftest.$ac_ext >&5
10730
10731ac_cv_lib_dld_dld_link=no
10732fi
10733rm -f conftest.err conftest.$ac_objext \
10734      conftest$ac_exeext conftest.$ac_ext
10735LIBS=$ac_check_lib_save_LIBS
10736fi
10737echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10738echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10739if test $ac_cv_lib_dld_dld_link = yes; then
10740  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10741fi
10742
10743
10744fi
10745
10746
10747fi
10748
10749
10750fi
10751
10752
10753fi
10754
10755
10756fi
10757
10758    ;;
10759  esac
10760
10761  if test "x$lt_cv_dlopen" != xno; then
10762    enable_dlopen=yes
10763  else
10764    enable_dlopen=no
10765  fi
10766
10767  case $lt_cv_dlopen in
10768  dlopen)
10769