source: stable/BSPsplit/Clp/configure @ 1389

Last change on this file since 1389 was 1389, checked in by andreasw, 11 years ago

a few bugfixes for instdir

  • Property svn:executable set to *
File size: 741.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.10.0.
4#
5# Report bugs to <coin-clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.10.0'
433PACKAGE_STRING='Clp 1.10.0'
434PACKAGE_BUGREPORT='coin-clp@list.coin-or.org'
435
436ac_unique_file="src/ClpCholeskyBase.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COINUTILSINSTDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE COIN_HAS_COINUTILS_PREINSTALLED_TRUE COIN_HAS_COINUTILS_PREINSTALLED_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR CLPINSTDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COIN_HAS_CLP_PREINSTALLED_TRUE COIN_HAS_CLP_PREINSTALLED_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Clp 1.10.0 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Clp 1.10.0:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-clp compile this project (Clp) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-gnu-packages   compile with GNU packages (disabled by default)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-clp-verbosity specify the debug verbosity level for project Clp
1101  --with-clp-checklevel specify the sanity check level for project Clp
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107  --with-coinutils-instdir
1108                          prefix of installation directory for precompiled
1109                          CoinUtils package
1110  --with-coinutils-srcdir source directory for CoinUtils package
1111  --with-coinutils-objdir object directory for CoinUtils package (if different
1112                          from source directory in VPATH compilation)
1113  --with-coin-instdir     prefix of installation directory for precompiled
1114                          COIN packages
1115  --with-clp-instdir prefix of installation directory for precompiled Clp
1116                          package
1117  --with-clp-srcdir source directory for Clp package
1118  --with-clp-objdir object directory for Clp package (if different from source
1119                          directory in VPATH compilation)
1120  --with-wsmp             specify WSMP library
1121
1122Some influential environment variables:
1123  CDEFS       Additional -D flags to be used when compiling C code.
1124  ADD_CFLAGS  Additional C compiler options
1125  DBG_CFLAGS  Debug C compiler options
1126  OPT_CFLAGS  Optimize C compiler options
1127  CC          C compiler command
1128  CFLAGS      C compiler flags
1129  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1130              nonstandard directory <lib dir>
1131  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1132              headers in a nonstandard directory <include dir>
1133  MPICC       C MPI Compiler
1134  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1135  ADD_CXXFLAGS
1136              Additional C++ compiler options
1137  DBG_CXXFLAGS
1138              Debug C++ compiler options
1139  OPT_CXXFLAGS
1140              Optimize C++ compiler options
1141  CXX         C++ compiler command
1142  CXXFLAGS    C++ compiler flags
1143  MPICXX      C++ MPI Compiler
1144  CPP         C preprocessor
1145  CXXCPP      C++ preprocessor
1146  F77         Fortran 77 compiler command
1147  FFLAGS      Fortran 77 compiler flags
1148
1149Use these variables to override the choices made by `configure' or to help
1150it to find libraries and programs with nonstandard names/locations.
1151
1152Report bugs to <coin-clp@list.coin-or.org>.
1153_ACEOF
1154fi
1155
1156if test "$ac_init_help" = "recursive"; then
1157  # If there are subdirs, report their specific --help.
1158  ac_popdir=`pwd`
1159  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1160    test -d $ac_dir || continue
1161    ac_builddir=.
1162
1163if test "$ac_dir" != .; then
1164  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1165  # A "../" for each directory in $ac_dir_suffix.
1166  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1167else
1168  ac_dir_suffix= ac_top_builddir=
1169fi
1170
1171case $srcdir in
1172  .)  # No --srcdir option.  We are building in place.
1173    ac_srcdir=.
1174    if test -z "$ac_top_builddir"; then
1175       ac_top_srcdir=.
1176    else
1177       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1178    fi ;;
1179  [\\/]* | ?:[\\/]* )  # Absolute path.
1180    ac_srcdir=$srcdir$ac_dir_suffix;
1181    ac_top_srcdir=$srcdir ;;
1182  *) # Relative path.
1183    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1184    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1185esac
1186
1187# Do not use `cd foo && pwd` to compute absolute paths, because
1188# the directories may not exist.
1189case `pwd` in
1190.) ac_abs_builddir="$ac_dir";;
1191*)
1192  case "$ac_dir" in
1193  .) ac_abs_builddir=`pwd`;;
1194  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1195  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1196  esac;;
1197esac
1198case $ac_abs_builddir in
1199.) ac_abs_top_builddir=${ac_top_builddir}.;;
1200*)
1201  case ${ac_top_builddir}. in
1202  .) ac_abs_top_builddir=$ac_abs_builddir;;
1203  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1204  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1205  esac;;
1206esac
1207case $ac_abs_builddir in
1208.) ac_abs_srcdir=$ac_srcdir;;
1209*)
1210  case $ac_srcdir in
1211  .) ac_abs_srcdir=$ac_abs_builddir;;
1212  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1213  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1214  esac;;
1215esac
1216case $ac_abs_builddir in
1217.) ac_abs_top_srcdir=$ac_top_srcdir;;
1218*)
1219  case $ac_top_srcdir in
1220  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1221  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1222  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1223  esac;;
1224esac
1225
1226    cd $ac_dir
1227    # Check for guested configure; otherwise get Cygnus style configure.
1228    if test -f $ac_srcdir/configure.gnu; then
1229      echo
1230      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1231    elif test -f $ac_srcdir/configure; then
1232      echo
1233      $SHELL $ac_srcdir/configure  --help=recursive
1234    elif test -f $ac_srcdir/configure.ac ||
1235           test -f $ac_srcdir/configure.in; then
1236      echo
1237      $ac_configure --help
1238    else
1239      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1240    fi
1241    cd $ac_popdir
1242  done
1243fi
1244
1245test -n "$ac_init_help" && exit 0
1246if $ac_init_version; then
1247  cat <<\_ACEOF
1248Clp configure 1.10.0
1249generated by GNU Autoconf 2.59
1250
1251Copyright (C) 2003 Free Software Foundation, Inc.
1252This configure script is free software; the Free Software Foundation
1253gives unlimited permission to copy, distribute and modify it.
1254
1255
1256Copyright 2006 International Business Machines and others.
1257All Rights Reserved.
1258This file is part of the open source package Coin which is distributed
1259under the Common Public License.
1260_ACEOF
1261  exit 0
1262fi
1263exec 5>config.log
1264cat >&5 <<_ACEOF
1265This file contains any messages produced by compilers while
1266running configure, to aid debugging if configure makes a mistake.
1267
1268It was created by Clp $as_me 1.10.0, which was
1269generated by GNU Autoconf 2.59.  Invocation command line was
1270
1271  $ $0 $@
1272
1273_ACEOF
1274{
1275cat <<_ASUNAME
1276## --------- ##
1277## Platform. ##
1278## --------- ##
1279
1280hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1281uname -m = `(uname -m) 2>/dev/null || echo unknown`
1282uname -r = `(uname -r) 2>/dev/null || echo unknown`
1283uname -s = `(uname -s) 2>/dev/null || echo unknown`
1284uname -v = `(uname -v) 2>/dev/null || echo unknown`
1285
1286/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1287/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1288
1289/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1290/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1291/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1292hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1293/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1294/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1295/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1296
1297_ASUNAME
1298
1299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1300for as_dir in $PATH
1301do
1302  IFS=$as_save_IFS
1303  test -z "$as_dir" && as_dir=.
1304  echo "PATH: $as_dir"
1305done
1306
1307} >&5
1308
1309cat >&5 <<_ACEOF
1310
1311
1312## ----------- ##
1313## Core tests. ##
1314## ----------- ##
1315
1316_ACEOF
1317
1318
1319# Keep a trace of the command line.
1320# Strip out --no-create and --no-recursion so they do not pile up.
1321# Strip out --silent because we don't want to record it for future runs.
1322# Also quote any args containing shell meta-characters.
1323# Make two passes to allow for proper duplicate-argument suppression.
1324ac_configure_args=
1325ac_configure_args0=
1326ac_configure_args1=
1327ac_sep=
1328ac_must_keep_next=false
1329for ac_pass in 1 2
1330do
1331  for ac_arg
1332  do
1333    case $ac_arg in
1334    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1335    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336    | -silent | --silent | --silen | --sile | --sil)
1337      continue ;;
1338    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1339      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1340    esac
1341    case $ac_pass in
1342    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1343    2)
1344      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1345      if test $ac_must_keep_next = true; then
1346        ac_must_keep_next=false # Got value, back to normal.
1347      else
1348        case $ac_arg in
1349          *=* | --config-cache | -C | -disable-* | --disable-* \
1350          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1351          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1352          | -with-* | --with-* | -without-* | --without-* | --x)
1353            case "$ac_configure_args0 " in
1354              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1355            esac
1356            ;;
1357          -* ) ac_must_keep_next=true ;;
1358        esac
1359      fi
1360      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1361      # Get rid of the leading space.
1362      ac_sep=" "
1363      ;;
1364    esac
1365  done
1366done
1367$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1368$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1369
1370# When interrupted or exit'd, cleanup temporary files, and complete
1371# config.log.  We remove comments because anyway the quotes in there
1372# would cause problems or look ugly.
1373# WARNING: Be sure not to use single quotes in there, as some shells,
1374# such as our DU 5.0 friend, will then `close' the trap.
1375trap 'exit_status=$?
1376  # Save into config.log some information that might help in debugging.
1377  {
1378    echo
1379
1380    cat <<\_ASBOX
1381## ---------------- ##
1382## Cache variables. ##
1383## ---------------- ##
1384_ASBOX
1385    echo
1386    # The following way of writing the cache mishandles newlines in values,
1387{
1388  (set) 2>&1 |
1389    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1390    *ac_space=\ *)
1391      sed -n \
1392        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1393          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1394      ;;
1395    *)
1396      sed -n \
1397        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1398      ;;
1399    esac;
1400}
1401    echo
1402
1403    cat <<\_ASBOX
1404## ----------------- ##
1405## Output variables. ##
1406## ----------------- ##
1407_ASBOX
1408    echo
1409    for ac_var in $ac_subst_vars
1410    do
1411      eval ac_val=$`echo $ac_var`
1412      echo "$ac_var='"'"'$ac_val'"'"'"
1413    done | sort
1414    echo
1415
1416    if test -n "$ac_subst_files"; then
1417      cat <<\_ASBOX
1418## ------------- ##
1419## Output files. ##
1420## ------------- ##
1421_ASBOX
1422      echo
1423      for ac_var in $ac_subst_files
1424      do
1425        eval ac_val=$`echo $ac_var`
1426        echo "$ac_var='"'"'$ac_val'"'"'"
1427      done | sort
1428      echo
1429    fi
1430
1431    if test -s confdefs.h; then
1432      cat <<\_ASBOX
1433## ----------- ##
1434## confdefs.h. ##
1435## ----------- ##
1436_ASBOX
1437      echo
1438      sed "/^$/d" confdefs.h | sort
1439      echo
1440    fi
1441    test "$ac_signal" != 0 &&
1442      echo "$as_me: caught signal $ac_signal"
1443    echo "$as_me: exit $exit_status"
1444  } >&5
1445  rm -f core *.core &&
1446  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1447    exit $exit_status
1448     ' 0
1449for ac_signal in 1 2 13 15; do
1450  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1451done
1452ac_signal=0
1453
1454# confdefs.h avoids OS command line length limits that DEFS can exceed.
1455rm -rf conftest* confdefs.h
1456# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1457echo >confdefs.h
1458
1459# Predefined preprocessor variables.
1460
1461cat >>confdefs.h <<_ACEOF
1462#define PACKAGE_NAME "$PACKAGE_NAME"
1463_ACEOF
1464
1465
1466cat >>confdefs.h <<_ACEOF
1467#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1468_ACEOF
1469
1470
1471cat >>confdefs.h <<_ACEOF
1472#define PACKAGE_VERSION "$PACKAGE_VERSION"
1473_ACEOF
1474
1475
1476cat >>confdefs.h <<_ACEOF
1477#define PACKAGE_STRING "$PACKAGE_STRING"
1478_ACEOF
1479
1480
1481cat >>confdefs.h <<_ACEOF
1482#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1483_ACEOF
1484
1485
1486# Let the site file select an alternate cache file if it wants to.
1487# Prefer explicitly selected file to automatically selected ones.
1488if test -z "$CONFIG_SITE"; then
1489  if test "x$prefix" != xNONE; then
1490    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1491  else
1492    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1493  fi
1494fi
1495for ac_site_file in $CONFIG_SITE; do
1496  if test -r "$ac_site_file"; then
1497    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1498echo "$as_me: loading site script $ac_site_file" >&6;}
1499    sed 's/^/| /' "$ac_site_file" >&5
1500    . "$ac_site_file"
1501  fi
1502done
1503
1504if test -r "$cache_file"; then
1505  # Some versions of bash will fail to source /dev/null (special
1506  # files actually), so we avoid doing that.
1507  if test -f "$cache_file"; then
1508    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1509echo "$as_me: loading cache $cache_file" >&6;}
1510    case $cache_file in
1511      [\\/]* | ?:[\\/]* ) . $cache_file;;
1512      *)                      . ./$cache_file;;
1513    esac
1514  fi
1515else
1516  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1517echo "$as_me: creating cache $cache_file" >&6;}
1518  >$cache_file
1519fi
1520
1521# Check that the precious variables saved in the cache have kept the same
1522# value.
1523ac_cache_corrupted=false
1524for ac_var in `(set) 2>&1 |
1525               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1526  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1527  eval ac_new_set=\$ac_env_${ac_var}_set
1528  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1529  eval ac_new_val="\$ac_env_${ac_var}_value"
1530  case $ac_old_set,$ac_new_set in
1531    set,)
1532      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1533echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1534      ac_cache_corrupted=: ;;
1535    ,set)
1536      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1537echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1538      ac_cache_corrupted=: ;;
1539    ,);;
1540    *)
1541      if test "x$ac_old_val" != "x$ac_new_val"; then
1542        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1543echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1544        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1545echo "$as_me:   former value:  $ac_old_val" >&2;}
1546        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1547echo "$as_me:   current value: $ac_new_val" >&2;}
1548        ac_cache_corrupted=:
1549      fi;;
1550  esac
1551  # Pass precious variables to config.status.
1552  if test "$ac_new_set" = set; then
1553    case $ac_new_val in
1554    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1555      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1556    *) ac_arg=$ac_var=$ac_new_val ;;
1557    esac
1558    case " $ac_configure_args " in
1559      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1560      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1561    esac
1562  fi
1563done
1564if $ac_cache_corrupted; then
1565  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1566echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1567  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1568echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1569   { (exit 1); exit 1; }; }
1570fi
1571
1572ac_ext=c
1573ac_cpp='$CPP $CPPFLAGS'
1574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1576ac_compiler_gnu=$ac_cv_c_compiler_gnu
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607# List one file in the package so that the configure script can test
1608# whether the package is actually there
1609
1610
1611# Where should everything be installed by default?  Here, we want it
1612# to be installed directly in 'bin', 'lib', 'include' subdirectories
1613# of the directory where configure is run.  The default would be
1614# /usr/local.
1615
1616
1617#############################################################################
1618#                         Standard build tool stuff                         #
1619#############################################################################
1620
1621# Get the system type
1622ac_aux_dir=
1623for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1624  if test -f $ac_dir/install-sh; then
1625    ac_aux_dir=$ac_dir
1626    ac_install_sh="$ac_aux_dir/install-sh -c"
1627    break
1628  elif test -f $ac_dir/install.sh; then
1629    ac_aux_dir=$ac_dir
1630    ac_install_sh="$ac_aux_dir/install.sh -c"
1631    break
1632  elif test -f $ac_dir/shtool; then
1633    ac_aux_dir=$ac_dir
1634    ac_install_sh="$ac_aux_dir/shtool install -c"
1635    break
1636  fi
1637done
1638if test -z "$ac_aux_dir"; then
1639  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1640echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1641   { (exit 1); exit 1; }; }
1642fi
1643ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1644ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1645ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1646
1647# Make sure we can run config.sub.
1648$ac_config_sub sun4 >/dev/null 2>&1 ||
1649  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1650echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1651   { (exit 1); exit 1; }; }
1652
1653echo "$as_me:$LINENO: checking build system type" >&5
1654echo $ECHO_N "checking build system type... $ECHO_C" >&6
1655if test "${ac_cv_build+set}" = set; then
1656  echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658  ac_cv_build_alias=$build_alias
1659test -z "$ac_cv_build_alias" &&
1660  ac_cv_build_alias=`$ac_config_guess`
1661test -z "$ac_cv_build_alias" &&
1662  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1663echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1664   { (exit 1); exit 1; }; }
1665ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1666  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1667echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1668   { (exit 1); exit 1; }; }
1669
1670fi
1671echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1672echo "${ECHO_T}$ac_cv_build" >&6
1673build=$ac_cv_build
1674build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1675build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1676build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1677
1678
1679
1680# If this project depends on external projects, the Externals file in
1681# the source root directory contains definition of where to find those
1682# externals.  The following macro ensures that those externals are
1683# retrieved by svn if they are not there yet.
1684# Initialize the ADDLIBS variable
1685ADDLIBS="-lm $LIBS"
1686
1687
1688# Initialize the FADDLIBS variable (which is to be used with a fortran
1689# compiler and will not include FLIBS)
1690FADDLIBS="$LIBS"
1691
1692
1693# A useful makefile conditional that is always false
1694
1695
1696if false; then
1697  ALWAYS_FALSE_TRUE=
1698  ALWAYS_FALSE_FALSE='#'
1699else
1700  ALWAYS_FALSE_TRUE='#'
1701  ALWAYS_FALSE_FALSE=
1702fi
1703
1704
1705# We set the following variable so that we know later in AC_COIN_FINALIZE
1706# that we are in a project main directory
1707coin_projectdir=yes
1708
1709
1710# Check if user wants to produce debugging code
1711
1712echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1713echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1714
1715# Check whether --enable-debug or --disable-debug was given.
1716if test "${enable_debug+set}" = set; then
1717  enableval="$enable_debug"
1718  case "${enableval}" in
1719   yes) coin_debug_compile=true
1720        if test "${enable_shared+set}" = set; then :; else
1721          enable_shared=no
1722        fi
1723        ;;
1724   no)  coin_debug_compile=false
1725        ;;
1726   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1727echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1728   { (exit 1); exit 1; }; }
1729        ;;
1730esac
1731else
1732  coin_debug_compile=false
1733fi;
1734
1735# Check whether --enable-debug-clp or --disable-debug-clp was given.
1736if test "${enable_debug_clp+set}" = set; then
1737  enableval="$enable_debug_clp"
1738  case "${enableval}" in
1739    yes) coin_debug_compile=true
1740         enable_shared=no
1741         ;;
1742    no)  coin_debug_compile=false
1743         ;;
1744    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1745echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1746   { (exit 1); exit 1; }; }
1747         ;;
1748 esac
1749else
1750  :
1751fi;
1752
1753 # m4_ifvaln([Clp],
1754
1755if test $coin_debug_compile = true; then
1756  echo "$as_me:$LINENO: result: yes" >&5
1757echo "${ECHO_T}yes" >&6
1758else
1759  echo "$as_me:$LINENO: result: no" >&5
1760echo "${ECHO_T}no" >&6
1761fi
1762
1763
1764# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1765if test "${with_clp_verbosity+set}" = set; then
1766  withval="$with_clp_verbosity"
1767  if test "$withval" = yes; then
1768                withval=1
1769              fi
1770              coin_clp_verbosity=$withval
1771else
1772  coin_clp_verbosity=0
1773fi;
1774
1775cat >>confdefs.h <<_ACEOF
1776#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1777_ACEOF
1778
1779
1780
1781# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1782if test "${with_clp_checklevel+set}" = set; then
1783  withval="$with_clp_checklevel"
1784  if test "$withval" = yes; then
1785                withval=1
1786              fi
1787              coin_clp_checklevel=$withval
1788else
1789  coin_clp_checklevel=0
1790fi;
1791
1792cat >>confdefs.h <<_ACEOF
1793#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1794_ACEOF
1795
1796
1797# We use the following variable to have a string with the upper case
1798# version of the project name
1799COIN_PRJCT=CLP
1800
1801
1802 # m4_ifvaln([Clp],
1803
1804
1805
1806# Get the name of the C++ compiler and appropriate compiler options
1807case $build in
1808  *-mingw*)
1809    if test "${LD+set}" = set; then :; else
1810      LD=link
1811    fi
1812    ;;
1813 esac
1814 case $enable_doscompile in
1815   msvc)
1816     if test "x${LD+set}" = xset; then :; else
1817       LD=link
1818     fi
1819     ;;
1820 esac
1821
1822
1823 # Check whether --enable-doscompile or --disable-doscompile was given.
1824if test "${enable_doscompile+set}" = set; then
1825  enableval="$enable_doscompile"
1826  if test "$enable_doscompile" != no; then
1827     case $build in
1828       *-cygwin* | *-mingw*) ;;
1829       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1830echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1831   { (exit 1); exit 1; }; } ;;
1832     esac
1833   fi
1834else
1835  enable_doscompile=no
1836fi;
1837 case "$enable_doscompile" in
1838   mingw)
1839     case $build in
1840       *-mingw*) enable_doscompile=no ;;
1841     esac
1842     ;;
1843   msvc|no) ;;
1844   yes) enable_doscompile=mingw ;;
1845   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1846                    Try configure --help=recursive." >&5
1847echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1848                    Try configure --help=recursive." >&2;}
1849   { (exit 1); exit 1; }; }
1850      ;;
1851  esac
1852  if test "$enable_doscompile" != no ; then
1853    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1854echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1855  fi
1856
1857
1858
1859
1860ac_ext=c
1861ac_cpp='$CPP $CPPFLAGS'
1862ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1863ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1864ac_compiler_gnu=$ac_cv_c_compiler_gnu
1865
1866
1867# For consistency, we set the C compiler to the same value of the C++
1868# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1869if test x"$CXX" != x; then
1870  case "$CXX" in
1871    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1872      if test x"$CC" = x; then
1873        CC="$CXX"
1874        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1875echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1876      fi
1877      ;;
1878  esac
1879fi
1880
1881
1882
1883
1884
1885
1886coin_has_cc=yes
1887
1888save_cflags="$CFLAGS"
1889
1890# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1891# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1892# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1893# compiler. In this case, put cc after gcc.
1894
1895case $build in
1896  *-cygwin* | *-mingw*)
1897             if test "$enable_doscompile" = msvc ; then
1898               comps="icl cl"
1899             else
1900               comps="gcc cl"
1901             fi ;;
1902  *-*-solaris*)
1903             # Extract the first word of "cc", so it can be a program name with args.
1904set dummy cc; ac_word=$2
1905echo "$as_me:$LINENO: checking for $ac_word" >&5
1906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1908  echo $ECHO_N "(cached) $ECHO_C" >&6
1909else
1910  if test -n "$sol_cc_compiler"; then
1911  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1912else
1913  ac_prog_rejected=no
1914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915for as_dir in $PATH
1916do
1917  IFS=$as_save_IFS
1918  test -z "$as_dir" && as_dir=.
1919  for ac_exec_ext in '' $ac_executable_extensions; do
1920  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1921    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1922       ac_prog_rejected=yes
1923       continue
1924     fi
1925    ac_cv_prog_sol_cc_compiler="cc"
1926    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927    break 2
1928  fi
1929done
1930done
1931
1932if test $ac_prog_rejected = yes; then
1933  # We found a bogon in the path, so make sure we never use it.
1934  set dummy $ac_cv_prog_sol_cc_compiler
1935  shift
1936  if test $# != 0; then
1937    # We chose a different compiler from the bogus one.
1938    # However, it has the same basename, so the bogon will be chosen
1939    # first if we set sol_cc_compiler to just the basename; use the full file name.
1940    shift
1941    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1942  fi
1943fi
1944fi
1945fi
1946sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1947if test -n "$sol_cc_compiler"; then
1948  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1949echo "${ECHO_T}$sol_cc_compiler" >&6
1950else
1951  echo "$as_me:$LINENO: result: no" >&5
1952echo "${ECHO_T}no" >&6
1953fi
1954
1955             if test "$sol_cc_compiler" = "cc" ; then
1956               comps="cc xlc gcc pgcc icc"
1957             else
1958               comps="xlc gcc pgcc icc cc"
1959             fi
1960             ;;
1961  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1962  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1963esac
1964
1965# We delete the cached value, since the test might not have been
1966# performed with our choice of compilers earlier
1967$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1968# AC_MSG_NOTICE([C compiler candidates: $comps])
1969ac_ext=c
1970ac_cpp='$CPP $CPPFLAGS'
1971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974if test -n "$ac_tool_prefix"; then
1975  for ac_prog in $comps
1976  do
1977    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1979echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981if test "${ac_cv_prog_CC+set}" = set; then
1982  echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984  if test -n "$CC"; then
1985  ac_cv_prog_CC="$CC" # Let the user override the test.
1986else
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990  IFS=$as_save_IFS
1991  test -z "$as_dir" && as_dir=.
1992  for ac_exec_ext in '' $ac_executable_extensions; do
1993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996    break 2
1997  fi
1998done
1999done
2000
2001fi
2002fi
2003CC=$ac_cv_prog_CC
2004if test -n "$CC"; then
2005  echo "$as_me:$LINENO: result: $CC" >&5
2006echo "${ECHO_T}$CC" >&6
2007else
2008  echo "$as_me:$LINENO: result: no" >&5
2009echo "${ECHO_T}no" >&6
2010fi
2011
2012    test -n "$CC" && break
2013  done
2014fi
2015if test -z "$CC"; then
2016  ac_ct_CC=$CC
2017  for ac_prog in $comps
2018do
2019  # Extract the first word of "$ac_prog", so it can be a program name with args.
2020set dummy $ac_prog; ac_word=$2
2021echo "$as_me:$LINENO: checking for $ac_word" >&5
2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2023if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2024  echo $ECHO_N "(cached) $ECHO_C" >&6
2025else
2026  if test -n "$ac_ct_CC"; then
2027  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028else
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032  IFS=$as_save_IFS
2033  test -z "$as_dir" && as_dir=.
2034  for ac_exec_ext in '' $ac_executable_extensions; do
2035  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036    ac_cv_prog_ac_ct_CC="$ac_prog"
2037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038    break 2
2039  fi
2040done
2041done
2042
2043fi
2044fi
2045ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046if test -n "$ac_ct_CC"; then
2047  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048echo "${ECHO_T}$ac_ct_CC" >&6
2049else
2050  echo "$as_me:$LINENO: result: no" >&5
2051echo "${ECHO_T}no" >&6
2052fi
2053
2054  test -n "$ac_ct_CC" && break
2055done
2056
2057  CC=$ac_ct_CC
2058fi
2059
2060
2061test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: no acceptable C compiler found in \$PATH
2064See \`config.log' for more details." >&2;}
2065   { (exit 1); exit 1; }; }
2066
2067# Provide some information about the compiler.
2068echo "$as_me:$LINENO:" \
2069     "checking for C compiler version" >&5
2070ac_compiler=`set X $ac_compile; echo $2`
2071{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2072  (eval $ac_compiler --version </dev/null >&5) 2>&5
2073  ac_status=$?
2074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075  (exit $ac_status); }
2076{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2077  (eval $ac_compiler -v </dev/null >&5) 2>&5
2078  ac_status=$?
2079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080  (exit $ac_status); }
2081{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2082  (eval $ac_compiler -V </dev/null >&5) 2>&5
2083  ac_status=$?
2084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085  (exit $ac_status); }
2086
2087cat >conftest.$ac_ext <<_ACEOF
2088/* confdefs.h.  */
2089_ACEOF
2090cat confdefs.h >>conftest.$ac_ext
2091cat >>conftest.$ac_ext <<_ACEOF
2092/* end confdefs.h.  */
2093
2094int
2095main ()
2096{
2097
2098  ;
2099  return 0;
2100}
2101_ACEOF
2102ac_clean_files_save=$ac_clean_files
2103ac_clean_files="$ac_clean_files a.out a.exe b.out"
2104# Try to create an executable without -o first, disregard a.out.
2105# It will help us diagnose broken compilers, and finding out an intuition
2106# of exeext.
2107echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2108echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2109ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2110if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2111  (eval $ac_link_default) 2>&5
2112  ac_status=$?
2113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114  (exit $ac_status); }; then
2115  # Find the output, starting from the most likely.  This scheme is
2116# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2117# resort.
2118
2119# Be careful to initialize this variable, since it used to be cached.
2120# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2121ac_cv_exeext=
2122# b.out is created by i960 compilers.
2123for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2124do
2125  test -f "$ac_file" || continue
2126  case $ac_file in
2127    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2128        ;;
2129    conftest.$ac_ext )
2130        # This is the source file.
2131        ;;
2132    [ab].out )
2133        # We found the default executable, but exeext='' is most
2134        # certainly right.
2135        break;;
2136    *.* )
2137        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2138        # FIXME: I believe we export ac_cv_exeext for Libtool,
2139        # but it would be cool to find out if it's true.  Does anybody
2140        # maintain Libtool? --akim.
2141        export ac_cv_exeext
2142        break;;
2143    * )
2144        break;;
2145  esac
2146done
2147else
2148  echo "$as_me: failed program was:" >&5
2149sed 's/^/| /' conftest.$ac_ext >&5
2150
2151{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2152See \`config.log' for more details." >&5
2153echo "$as_me: error: C compiler cannot create executables
2154See \`config.log' for more details." >&2;}
2155   { (exit 77); exit 77; }; }
2156fi
2157
2158ac_exeext=$ac_cv_exeext
2159echo "$as_me:$LINENO: result: $ac_file" >&5
2160echo "${ECHO_T}$ac_file" >&6
2161
2162# Check the compiler produces executables we can run.  If not, either
2163# the compiler is broken, or we cross compile.
2164echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2165echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2166# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2167# If not cross compiling, check that we can run a simple program.
2168if test "$cross_compiling" != yes; then
2169  if { ac_try='./$ac_file'
2170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171  (eval $ac_try) 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }; }; then
2175    cross_compiling=no
2176  else
2177    if test "$cross_compiling" = maybe; then
2178        cross_compiling=yes
2179    else
2180        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2181If you meant to cross compile, use \`--host'.
2182See \`config.log' for more details." >&5
2183echo "$as_me: error: cannot run C compiled programs.
2184If you meant to cross compile, use \`--host'.
2185See \`config.log' for more details." >&2;}
2186   { (exit 1); exit 1; }; }
2187    fi
2188  fi
2189fi
2190echo "$as_me:$LINENO: result: yes" >&5
2191echo "${ECHO_T}yes" >&6
2192
2193rm -f a.out a.exe conftest$ac_cv_exeext b.out
2194ac_clean_files=$ac_clean_files_save
2195# Check the compiler produces executables we can run.  If not, either
2196# the compiler is broken, or we cross compile.
2197echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2198echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2199echo "$as_me:$LINENO: result: $cross_compiling" >&5
2200echo "${ECHO_T}$cross_compiling" >&6
2201
2202echo "$as_me:$LINENO: checking for suffix of executables" >&5
2203echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2205  (eval $ac_link) 2>&5
2206  ac_status=$?
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); }; then
2209  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2210# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2211# work properly (i.e., refer to `conftest.exe'), while it won't with
2212# `rm'.
2213for ac_file in conftest.exe conftest conftest.*; do
2214  test -f "$ac_file" || continue
2215  case $ac_file in
2216    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2217    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2218          export ac_cv_exeext
2219          break;;
2220    * ) break;;
2221  esac
2222done
2223else
2224  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2225See \`config.log' for more details." >&5
2226echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2227See \`config.log' for more details." >&2;}
2228   { (exit 1); exit 1; }; }
2229fi
2230
2231rm -f conftest$ac_cv_exeext
2232echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2233echo "${ECHO_T}$ac_cv_exeext" >&6
2234
2235rm -f conftest.$ac_ext
2236EXEEXT=$ac_cv_exeext
2237ac_exeext=$EXEEXT
2238echo "$as_me:$LINENO: checking for suffix of object files" >&5
2239echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2240if test "${ac_cv_objext+set}" = set; then
2241  echo $ECHO_N "(cached) $ECHO_C" >&6
2242else
2243  cat >conftest.$ac_ext <<_ACEOF
2244/* confdefs.h.  */
2245_ACEOF
2246cat confdefs.h >>conftest.$ac_ext
2247cat >>conftest.$ac_ext <<_ACEOF
2248/* end confdefs.h.  */
2249
2250int
2251main ()
2252{
2253
2254  ;
2255  return 0;
2256}
2257_ACEOF
2258rm -f conftest.o conftest.obj
2259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260  (eval $ac_compile) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; then
2264  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2265  case $ac_file in
2266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2267    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2268       break;;
2269  esac
2270done
2271else
2272  echo "$as_me: failed program was:" >&5
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
2275{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2276See \`config.log' for more details." >&5
2277echo "$as_me: error: cannot compute suffix of object files: cannot compile
2278See \`config.log' for more details." >&2;}
2279   { (exit 1); exit 1; }; }
2280fi
2281
2282rm -f conftest.$ac_cv_objext conftest.$ac_ext
2283fi
2284echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2285echo "${ECHO_T}$ac_cv_objext" >&6
2286OBJEXT=$ac_cv_objext
2287ac_objext=$OBJEXT
2288echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2289echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2290if test "${ac_cv_c_compiler_gnu+set}" = set; then
2291  echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293  cat >conftest.$ac_ext <<_ACEOF
2294/* confdefs.h.  */
2295_ACEOF
2296cat confdefs.h >>conftest.$ac_ext
2297cat >>conftest.$ac_ext <<_ACEOF
2298/* end confdefs.h.  */
2299
2300int
2301main ()
2302{
2303#ifndef __GNUC__
2304       choke me
2305#endif
2306
2307  ;
2308  return 0;
2309}
2310_ACEOF
2311rm -f conftest.$ac_objext
2312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313  (eval $ac_compile) 2>conftest.er1
2314  ac_status=$?
2315  grep -v '^ *+' conftest.er1 >conftest.err
2316  rm -f conftest.er1
2317  cat conftest.err >&5
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); } &&
2320         { ac_try='test -z "$ac_c_werror_flag"
2321                         || test ! -s conftest.err'
2322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323  (eval $ac_try) 2>&5
2324  ac_status=$?
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }; } &&
2327         { ac_try='test -s conftest.$ac_objext'
2328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329  (eval $ac_try) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; }; then
2333  ac_compiler_gnu=yes
2334else
2335  echo "$as_me: failed program was:" >&5
2336sed 's/^/| /' conftest.$ac_ext >&5
2337
2338ac_compiler_gnu=no
2339fi
2340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2341ac_cv_c_compiler_gnu=$ac_compiler_gnu
2342
2343fi
2344echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2345echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2346GCC=`test $ac_compiler_gnu = yes && echo yes`
2347ac_test_CFLAGS=${CFLAGS+set}
2348ac_save_CFLAGS=$CFLAGS
2349CFLAGS="-g"
2350echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2351echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2352if test "${ac_cv_prog_cc_g+set}" = set; then
2353  echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355  cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h.  */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h.  */
2361
2362int
2363main ()
2364{
2365
2366  ;
2367  return 0;
2368}
2369_ACEOF
2370rm -f conftest.$ac_objext
2371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372  (eval $ac_compile) 2>conftest.er1
2373  ac_status=$?
2374  grep -v '^ *+' conftest.er1 >conftest.err
2375  rm -f conftest.er1
2376  cat conftest.err >&5
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); } &&
2379         { ac_try='test -z "$ac_c_werror_flag"
2380                         || test ! -s conftest.err'
2381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; } &&
2386         { ac_try='test -s conftest.$ac_objext'
2387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388  (eval $ac_try) 2>&5
2389  ac_status=$?
2390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391  (exit $ac_status); }; }; then
2392  ac_cv_prog_cc_g=yes
2393else
2394  echo "$as_me: failed program was:" >&5
2395sed 's/^/| /' conftest.$ac_ext >&5
2396
2397ac_cv_prog_cc_g=no
2398fi
2399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400fi
2401echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2402echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2403if test "$ac_test_CFLAGS" = set; then
2404  CFLAGS=$ac_save_CFLAGS
2405elif test $ac_cv_prog_cc_g = yes; then
2406  if test "$GCC" = yes; then
2407    CFLAGS="-g -O2"
2408  else
2409    CFLAGS="-g"
2410  fi
2411else
2412  if test "$GCC" = yes; then
2413    CFLAGS="-O2"
2414  else
2415    CFLAGS=
2416  fi
2417fi
2418echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2419echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2420if test "${ac_cv_prog_cc_stdc+set}" = set; then
2421  echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423  ac_cv_prog_cc_stdc=no
2424ac_save_CC=$CC
2425cat >conftest.$ac_ext <<_ACEOF
2426/* confdefs.h.  */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h.  */
2431#include <stdarg.h>
2432#include <stdio.h>
2433#include <sys/types.h>
2434#include <sys/stat.h>
2435/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2436struct buf { int x; };
2437FILE * (*rcsopen) (struct buf *, struct stat *, int);
2438static char *e (p, i)
2439     char **p;
2440     int i;
2441{
2442  return p[i];
2443}
2444static char *f (char * (*g) (char **, int), char **p, ...)
2445{
2446  char *s;
2447  va_list v;
2448  va_start (v,p);
2449  s = g (p, va_arg (v,int));
2450  va_end (v);
2451  return s;
2452}
2453
2454/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2455   function prototypes and stuff, but not '\xHH' hex character constants.
2456   These don't provoke an error unfortunately, instead are silently treated
2457   as 'x'.  The following induces an error, until -std1 is added to get
2458   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2459   array size at least.  It's necessary to write '\x00'==0 to get something
2460   that's true only with -std1.  */
2461int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2462
2463int test (int i, double x);
2464struct s1 {int (*f) (int a);};
2465struct s2 {int (*f) (double a);};
2466int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2467int argc;
2468char **argv;
2469int
2470main ()
2471{
2472return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2473  ;
2474  return 0;
2475}
2476_ACEOF
2477# Don't try gcc -ansi; that turns off useful extensions and
2478# breaks some systems' header files.
2479# AIX                   -qlanglvl=ansi
2480# Ultrix and OSF/1      -std1
2481# HP-UX 10.20 and later -Ae
2482# HP-UX older versions  -Aa -D_HPUX_SOURCE
2483# SVR4                  -Xc -D__EXTENSIONS__
2484for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2485do
2486  CC="$ac_save_CC $ac_arg"
2487  rm -f conftest.$ac_objext
2488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489  (eval $ac_compile) 2>conftest.er1
2490  ac_status=$?
2491  grep -v '^ *+' conftest.er1 >conftest.err
2492  rm -f conftest.er1
2493  cat conftest.err >&5
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); } &&
2496         { ac_try='test -z "$ac_c_werror_flag"
2497                         || test ! -s conftest.err'
2498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499  (eval $ac_try) 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }; } &&
2503         { ac_try='test -s conftest.$ac_objext'
2504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505  (eval $ac_try) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; }; then
2509  ac_cv_prog_cc_stdc=$ac_arg
2510break
2511else
2512  echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5
2514
2515fi
2516rm -f conftest.err conftest.$ac_objext
2517done
2518rm -f conftest.$ac_ext conftest.$ac_objext
2519CC=$ac_save_CC
2520
2521fi
2522
2523case "x$ac_cv_prog_cc_stdc" in
2524  x|xno)
2525    echo "$as_me:$LINENO: result: none needed" >&5
2526echo "${ECHO_T}none needed" >&6 ;;
2527  *)
2528    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2529echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2530    CC="$CC $ac_cv_prog_cc_stdc" ;;
2531esac
2532
2533# Some people use a C++ compiler to compile C.  Since we use `exit',
2534# in C++ we need to declare it.  In case someone uses the same compiler
2535# for both compiling C and C++ we need to have the C++ compiler decide
2536# the declaration of exit, since it's the most demanding environment.
2537cat >conftest.$ac_ext <<_ACEOF
2538#ifndef __cplusplus
2539  choke me
2540#endif
2541_ACEOF
2542rm -f conftest.$ac_objext
2543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544  (eval $ac_compile) 2>conftest.er1
2545  ac_status=$?
2546  grep -v '^ *+' conftest.er1 >conftest.err
2547  rm -f conftest.er1
2548  cat conftest.err >&5
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); } &&
2551         { ac_try='test -z "$ac_c_werror_flag"
2552                         || test ! -s conftest.err'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; } &&
2558         { ac_try='test -s conftest.$ac_objext'
2559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560  (eval $ac_try) 2>&5
2561  ac_status=$?
2562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563  (exit $ac_status); }; }; then
2564  for ac_declaration in \
2565   '' \
2566   'extern "C" void std::exit (int) throw (); using std::exit;' \
2567   'extern "C" void std::exit (int); using std::exit;' \
2568   'extern "C" void exit (int) throw ();' \
2569   'extern "C" void exit (int);' \
2570   'void exit (int);'
2571do
2572  cat >conftest.$ac_ext <<_ACEOF
2573/* confdefs.h.  */
2574_ACEOF
2575cat confdefs.h >>conftest.$ac_ext
2576cat >>conftest.$ac_ext <<_ACEOF
2577/* end confdefs.h.  */
2578$ac_declaration
2579#include <stdlib.h>
2580int
2581main ()
2582{
2583exit (42);
2584  ;
2585  return 0;
2586}
2587_ACEOF
2588rm -f conftest.$ac_objext
2589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590  (eval $ac_compile) 2>conftest.er1
2591  ac_status=$?
2592  grep -v '^ *+' conftest.er1 >conftest.err
2593  rm -f conftest.er1
2594  cat conftest.err >&5
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); } &&
2597         { ac_try='test -z "$ac_c_werror_flag"
2598                         || test ! -s conftest.err'
2599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600  (eval $ac_try) 2>&5
2601  ac_status=$?
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); }; } &&
2604         { ac_try='test -s conftest.$ac_objext'
2605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606  (eval $ac_try) 2>&5
2607  ac_status=$?
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); }; }; then
2610  :
2611else
2612  echo "$as_me: failed program was:" >&5
2613sed 's/^/| /' conftest.$ac_ext >&5
2614
2615continue
2616fi
2617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618  cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h.  */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h.  */
2624$ac_declaration
2625int
2626main ()
2627{
2628exit (42);
2629  ;
2630  return 0;
2631}
2632_ACEOF
2633rm -f conftest.$ac_objext
2634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635  (eval $ac_compile) 2>conftest.er1
2636  ac_status=$?
2637  grep -v '^ *+' conftest.er1 >conftest.err
2638  rm -f conftest.er1
2639  cat conftest.err >&5
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); } &&
2642         { ac_try='test -z "$ac_c_werror_flag"
2643                         || test ! -s conftest.err'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; } &&
2649         { ac_try='test -s conftest.$ac_objext'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; }; then
2655  break
2656else
2657  echo "$as_me: failed program was:" >&5
2658sed 's/^/| /' conftest.$ac_ext >&5
2659
2660fi
2661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2662done
2663rm -f conftest*
2664if test -n "$ac_declaration"; then
2665  echo '#ifdef __cplusplus' >>confdefs.h
2666  echo $ac_declaration      >>confdefs.h
2667  echo '#endif'             >>confdefs.h
2668fi
2669
2670else
2671  echo "$as_me: failed program was:" >&5
2672sed 's/^/| /' conftest.$ac_ext >&5
2673
2674fi
2675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676ac_ext=c
2677ac_cpp='$CPP $CPPFLAGS'
2678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681
2682if test -z "$CC" ; then
2683  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2684echo "$as_me: error: Failed to find a C compiler!" >&2;}
2685   { (exit 1); exit 1; }; }
2686fi
2687# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2688case "$CC" in
2689  cl* | */cl* | CL* | */CL* )
2690    if test "$ac_cv_prog_cc_g" = yes ; then
2691      ac_cv_prog_cc_g=no
2692      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2693echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2694    fi ;;
2695esac
2696CFLAGS="$save_cflags"
2697
2698# Check if a project specific CFLAGS variable has been set
2699if test x$COIN_PRJCT != x; then
2700  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2701  if test x$coin_tmp = xset; then
2702    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2703  fi
2704fi
2705
2706if test x"$CFLAGS" = x; then
2707
2708  coin_add_cflags=
2709  coin_opt_cflags=
2710  coin_dbg_cflags=
2711  coin_warn_cflags=
2712
2713  if test "$GCC" = "yes"; then
2714    case "$CC" in
2715      icc* | */icc*)
2716        ;;
2717      *)
2718        coin_opt_cflags="-O3 -fomit-frame-pointer"
2719        coin_add_cflags="-pipe"
2720        coin_dbg_cflags="-g"
2721        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2722        case $build in
2723          *-darwin*)
2724            ;;
2725          *)
2726            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2727            ;;
2728        esac
2729        case $enable_doscompile in
2730          mingw)
2731            CFLAGS="-mno-cygwin"
2732            cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h.  */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h.  */
2738
2739int
2740main ()
2741{
2742int i=0; i++;
2743  ;
2744  return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext conftest$ac_exeext
2748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2749  (eval $ac_link) 2>conftest.er1
2750  ac_status=$?
2751  grep -v '^ *+' conftest.er1 >conftest.err
2752  rm -f conftest.er1
2753  cat conftest.err >&5
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); } &&
2756         { ac_try='test -z "$ac_c_werror_flag"
2757                         || test ! -s conftest.err'
2758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759  (eval $ac_try) 2>&5
2760  ac_status=$?
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); }; } &&
2763         { ac_try='test -s conftest$ac_exeext'
2764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765  (eval $ac_try) 2>&5
2766  ac_status=$?
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); }; }; then
2769  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2770else
2771  echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773
2774fi
2775rm -f conftest.err conftest.$ac_objext \
2776      conftest$ac_exeext conftest.$ac_ext
2777            CFLAGS=
2778          ;;
2779        esac
2780    esac
2781  fi
2782  if test -z "$coin_opt_cflags"; then
2783    case $build in
2784      *-cygwin* | *-mingw*)
2785        case "$CC" in
2786          cl* | */cl* | CL* | */CL*)
2787            coin_opt_cflags='-MT -O2'
2788            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2789            coin_dbg_cflags='-MTd'
2790            ;;
2791          icl* | */icl* | ICL* | */ICL*)
2792            coin_opt_cflags='-MT -Ox'
2793            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2794            coin_dbg_cflags='-MTd -debug'
2795            ;;
2796        esac
2797        ;;
2798      *-linux-*)
2799        case "$CC" in
2800          icc* | */icc*)
2801            coin_opt_cflags="-O3 -ip -mp1"
2802            coin_add_cflags=""
2803            coin_dbg_cflags="-g"
2804            # Check if -i_dynamic is necessary (for new glibc library)
2805            CFLAGS=
2806            cat >conftest.$ac_ext <<_ACEOF
2807/* confdefs.h.  */
2808_ACEOF
2809cat confdefs.h >>conftest.$ac_ext
2810cat >>conftest.$ac_ext <<_ACEOF
2811/* end confdefs.h.  */
2812
2813int
2814main ()
2815{
2816int i=0; i++;
2817  ;
2818  return 0;
2819}
2820_ACEOF
2821rm -f conftest.$ac_objext conftest$ac_exeext
2822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2823  (eval $ac_link) 2>conftest.er1
2824  ac_status=$?
2825  grep -v '^ *+' conftest.er1 >conftest.err
2826  rm -f conftest.er1
2827  cat conftest.err >&5
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); } &&
2830         { ac_try='test -z "$ac_c_werror_flag"
2831                         || test ! -s conftest.err'
2832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833  (eval $ac_try) 2>&5
2834  ac_status=$?
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); }; } &&
2837         { ac_try='test -s conftest$ac_exeext'
2838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839  (eval $ac_try) 2>&5
2840  ac_status=$?
2841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842  (exit $ac_status); }; }; then
2843  :
2844else
2845  echo "$as_me: failed program was:" >&5
2846sed 's/^/| /' conftest.$ac_ext >&5
2847
2848coin_add_cflags="-i_dynamic $coin_add_cflags"
2849fi
2850rm -f conftest.err conftest.$ac_objext \
2851      conftest$ac_exeext conftest.$ac_ext
2852            ;;
2853          pgcc* | */pgcc*)
2854            coin_opt_cflags="-fast"
2855            coin_add_cflags="-Kieee -pc 64"
2856            coin_dbg_cflags="-g"
2857            ;;
2858        esac
2859        ;;
2860      *-ibm-*)
2861        case "$CC" in
2862          xlc* | */xlc* | mpxlc* | */mpxlc*)
2863            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2864            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2865            coin_dbg_cflags="-g"
2866          ;;
2867        esac
2868        ;;
2869      *-hp-*)
2870        coin_opt_cflags="-O"
2871        coin_add_cflags="-Ae"
2872        coin_dbg_cflags="-g"
2873        ;;
2874      *-*-solaris*)
2875        coin_opt_cflags="-xO4"
2876        coin_dbg_cflags="-g"
2877        ;;
2878      *-sgi-*)
2879        coin_opt_cflags="-O -OPT:Olimit=0"
2880        coin_dbg_cflags="-g"
2881        ;;
2882    esac
2883  fi
2884
2885  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2886    coin_dbg_cflags="-g"
2887  fi
2888
2889  if test -z "$coin_opt_cflags"; then
2890    # Try if -O option works if nothing else is set
2891    CFLAGS="-O"
2892    cat >conftest.$ac_ext <<_ACEOF
2893/* confdefs.h.  */
2894_ACEOF
2895cat confdefs.h >>conftest.$ac_ext
2896cat >>conftest.$ac_ext <<_ACEOF
2897/* end confdefs.h.  */
2898
2899int
2900main ()
2901{
2902int i=0; i++;
2903  ;
2904  return 0;
2905}
2906_ACEOF
2907rm -f conftest.$ac_objext conftest$ac_exeext
2908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2909  (eval $ac_link) 2>conftest.er1
2910  ac_status=$?
2911  grep -v '^ *+' conftest.er1 >conftest.err
2912  rm -f conftest.er1
2913  cat conftest.err >&5
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); } &&
2916         { ac_try='test -z "$ac_c_werror_flag"
2917                         || test ! -s conftest.err'
2918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919  (eval $ac_try) 2>&5
2920  ac_status=$?
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); }; } &&
2923         { ac_try='test -s conftest$ac_exeext'
2924  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925  (eval $ac_try) 2>&5
2926  ac_status=$?
2927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928  (exit $ac_status); }; }; then
2929  coin_opt_cflags="-O"
2930else
2931  echo "$as_me: failed program was:" >&5
2932sed 's/^/| /' conftest.$ac_ext >&5
2933
2934fi
2935rm -f conftest.err conftest.$ac_objext \
2936      conftest$ac_exeext conftest.$ac_ext
2937  fi
2938
2939  # if PM doesn't want the warning messages, take them out
2940  if test x"$coin_skip_warn_cflags" = xyes; then
2941    coin_warn_cflags=
2942  fi
2943
2944  if test x${DBG_CFLAGS+set} != xset; then
2945    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2946  fi
2947  if test x${OPT_CFLAGS+set} != xset; then
2948    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2949  fi
2950
2951  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2952  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2953
2954  if test "$coin_debug_compile" = "true"; then
2955    CFLAGS="$DBG_CFLAGS"
2956  else
2957    CFLAGS="$OPT_CFLAGS"
2958  fi
2959else
2960  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2961  if test x${DBG_CFLAGS+set} != xset; then
2962    DBG_CFLAGS="$CFLAGS"
2963  fi
2964  if test x${OPT_CFLAGS+set} != xset; then
2965    OPT_CFLAGS="$CFLAGS"
2966  fi
2967fi
2968
2969# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2970
2971case "$CFLAGS" in
2972  *-mno-cygwin*)
2973    if test x${CPPFLAGS+set} != xset ; then
2974      CPPFLAGS="-mno-cygwin"
2975    else
2976      case "$CPPFLAGS" in
2977        *-mno-cygwin*)
2978          ;;
2979        *)
2980          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2981          ;;
2982      esac
2983    fi ;;
2984esac
2985
2986# Try if CFLAGS works
2987save_CFLAGS="$CFLAGS"
2988cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h.  */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h.  */
2994
2995int
2996main ()
2997{
2998int i=0; i++;
2999  ;
3000  return 0;
3001}
3002_ACEOF
3003rm -f conftest.$ac_objext conftest$ac_exeext
3004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3005  (eval $ac_link) 2>conftest.er1
3006  ac_status=$?
3007  grep -v '^ *+' conftest.er1 >conftest.err
3008  rm -f conftest.er1
3009  cat conftest.err >&5
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); } &&
3012         { ac_try='test -z "$ac_c_werror_flag"
3013                         || test ! -s conftest.err'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; } &&
3019         { ac_try='test -s conftest$ac_exeext'
3020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3021  (eval $ac_try) 2>&5
3022  ac_status=$?
3023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024  (exit $ac_status); }; }; then
3025  :
3026else
3027  echo "$as_me: failed program was:" >&5
3028sed 's/^/| /' conftest.$ac_ext >&5
3029
3030CFLAGS=
3031fi
3032rm -f conftest.err conftest.$ac_objext \
3033      conftest$ac_exeext conftest.$ac_ext
3034if test -z "$CFLAGS"; then
3035  { 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
3036echo "$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;}
3037  CFLAGS='-O'
3038  cat >conftest.$ac_ext <<_ACEOF
3039/* confdefs.h.  */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h.  */
3044
3045int
3046main ()
3047{
3048int i=0; i++;
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext conftest$ac_exeext
3054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055  (eval $ac_link) 2>conftest.er1
3056  ac_status=$?
3057  grep -v '^ *+' conftest.er1 >conftest.err
3058  rm -f conftest.er1
3059  cat conftest.err >&5
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); } &&
3062         { ac_try='test -z "$ac_c_werror_flag"
3063                         || test ! -s conftest.err'
3064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065  (eval $ac_try) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); }; } &&
3069         { ac_try='test -s conftest$ac_exeext'
3070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071  (eval $ac_try) 2>&5
3072  ac_status=$?
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); }; }; then
3075  :
3076else
3077  echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080CFLAGS=
3081fi
3082rm -f conftest.err conftest.$ac_objext \
3083      conftest$ac_exeext conftest.$ac_ext
3084  if test -z "$CFLAGS"; then
3085    { 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
3086echo "$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;}
3087  fi
3088fi
3089
3090{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3091echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3092
3093
3094if test x"$MPICC" = x; then :; else
3095  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3096echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3097  CC="$MPICC"
3098fi
3099
3100# Correct ADDLIBS initialization if we are using the MS compiler
3101case "$CC" in
3102  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3103    ADDLIBS=
3104    case $build in
3105  *-mingw*)
3106    if test "${LD+set}" = set; then :; else
3107      LD=link
3108    fi
3109    ;;
3110 esac
3111 case $enable_doscompile in
3112   msvc)
3113     if test "x${LD+set}" = xset; then :; else
3114       LD=link
3115     fi
3116     ;;
3117 esac
3118
3119    ;;
3120esac
3121
3122ac_ext=c
3123ac_cpp='$CPP $CPPFLAGS'
3124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127
3128
3129
3130 #Let's try if that overcomes configuration problem with VC++ 6.0
3131
3132ac_ext=cc
3133ac_cpp='$CXXCPP $CPPFLAGS'
3134ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3137
3138
3139
3140
3141
3142
3143
3144coin_has_cxx=yes
3145
3146save_cxxflags="$CXXFLAGS"
3147# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3148case $build in
3149  *-cygwin* | *-mingw*)
3150             if test "$enable_doscompile" = msvc ; then
3151               comps="icl cl"
3152             else
3153               comps="g++ cl"
3154             fi ;;
3155  *-*-solaris*)
3156             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3157  *-darwin*) comps="g++ c++ CC" ;;
3158          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3159esac
3160
3161# We delete the cached value, since the test might not have been
3162# performed with our choice of compilers earlier
3163$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3164# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3165ac_ext=cc
3166ac_cpp='$CXXCPP $CPPFLAGS'
3167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3170if test -n "$ac_tool_prefix"; then
3171  for ac_prog in $CCC $comps
3172  do
3173    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3175echo "$as_me:$LINENO: checking for $ac_word" >&5
3176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177if test "${ac_cv_prog_CXX+set}" = set; then
3178  echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180  if test -n "$CXX"; then
3181  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3182else
3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184for as_dir in $PATH
3185do
3186  IFS=$as_save_IFS
3187  test -z "$as_dir" && as_dir=.
3188  for ac_exec_ext in '' $ac_executable_extensions; do
3189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192    break 2
3193  fi
3194done
3195done
3196
3197fi
3198fi
3199CXX=$ac_cv_prog_CXX
3200if test -n "$CXX"; then
3201  echo "$as_me:$LINENO: result: $CXX" >&5
3202echo "${ECHO_T}$CXX" >&6
3203else
3204  echo "$as_me:$LINENO: result: no" >&5
3205echo "${ECHO_T}no" >&6
3206fi
3207
3208    test -n "$CXX" && break
3209  done
3210fi
3211if test -z "$CXX"; then
3212  ac_ct_CXX=$CXX
3213  for ac_prog in $CCC $comps
3214do
3215  # Extract the first word of "$ac_prog", so it can be a program name with args.
3216set dummy $ac_prog; ac_word=$2
3217echo "$as_me:$LINENO: checking for $ac_word" >&5
3218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3220  echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222  if test -n "$ac_ct_CXX"; then
3223  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3224else
3225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226for as_dir in $PATH
3227do
3228  IFS=$as_save_IFS
3229  test -z "$as_dir" && as_dir=.
3230  for ac_exec_ext in '' $ac_executable_extensions; do
3231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232    ac_cv_prog_ac_ct_CXX="$ac_prog"
3233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234    break 2
3235  fi
3236done
3237done
3238
3239fi
3240fi
3241ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3242if test -n "$ac_ct_CXX"; then
3243  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3244echo "${ECHO_T}$ac_ct_CXX" >&6
3245else
3246  echo "$as_me:$LINENO: result: no" >&5
3247echo "${ECHO_T}no" >&6
3248fi
3249
3250  test -n "$ac_ct_CXX" && break
3251done
3252test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3253
3254  CXX=$ac_ct_CXX
3255fi
3256
3257
3258# Provide some information about the compiler.
3259echo "$as_me:$LINENO:" \
3260     "checking for C++ compiler version" >&5
3261ac_compiler=`set X $ac_compile; echo $2`
3262{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3263  (eval $ac_compiler --version </dev/null >&5) 2>&5
3264  ac_status=$?
3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266  (exit $ac_status); }
3267{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3268  (eval $ac_compiler -v </dev/null >&5) 2>&5
3269  ac_status=$?
3270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271  (exit $ac_status); }
3272{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3273  (eval $ac_compiler -V </dev/null >&5) 2>&5
3274  ac_status=$?
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); }
3277
3278echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3279echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3280if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3281  echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
3283  cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h.  */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h.  */
3289
3290int
3291main ()
3292{
3293#ifndef __GNUC__
3294       choke me
3295#endif
3296
3297  ;
3298  return 0;
3299}
3300_ACEOF
3301rm -f conftest.$ac_objext
3302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3303  (eval $ac_compile) 2>conftest.er1
3304  ac_status=$?
3305  grep -v '^ *+' conftest.er1 >conftest.err
3306  rm -f conftest.er1
3307  cat conftest.err >&5
3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309  (exit $ac_status); } &&
3310         { ac_try='test -z "$ac_cxx_werror_flag"
3311                         || test ! -s conftest.err'
3312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3313  (eval $ac_try) 2>&5
3314  ac_status=$?
3315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316  (exit $ac_status); }; } &&
3317         { ac_try='test -s conftest.$ac_objext'
3318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319  (eval $ac_try) 2>&5
3320  ac_status=$?
3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); }; }; then
3323  ac_compiler_gnu=yes
3324else
3325  echo "$as_me: failed program was:" >&5
3326sed 's/^/| /' conftest.$ac_ext >&5
3327
3328ac_compiler_gnu=no
3329fi
3330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3331ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3332
3333fi
3334echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3335echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3336GXX=`test $ac_compiler_gnu = yes && echo yes`
3337ac_test_CXXFLAGS=${CXXFLAGS+set}
3338ac_save_CXXFLAGS=$CXXFLAGS
3339CXXFLAGS="-g"
3340echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3341echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3342if test "${ac_cv_prog_cxx_g+set}" = set; then
3343  echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345  cat >conftest.$ac_ext <<_ACEOF
3346/* confdefs.h.  */
3347_ACEOF
3348cat confdefs.h >>conftest.$ac_ext
3349cat >>conftest.$ac_ext <<_ACEOF
3350/* end confdefs.h.  */
3351
3352int
3353main ()
3354{
3355
3356  ;
3357  return 0;
3358}
3359_ACEOF
3360rm -f conftest.$ac_objext
3361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362  (eval $ac_compile) 2>conftest.er1
3363  ac_status=$?
3364  grep -v '^ *+' conftest.er1 >conftest.err
3365  rm -f conftest.er1
3366  cat conftest.err >&5
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); } &&
3369         { ac_try='test -z "$ac_cxx_werror_flag"
3370                         || test ! -s conftest.err'
3371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372  (eval $ac_try) 2>&5
3373  ac_status=$?
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }; } &&
3376         { ac_try='test -s conftest.$ac_objext'
3377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378  (eval $ac_try) 2>&5
3379  ac_status=$?
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); }; }; then
3382  ac_cv_prog_cxx_g=yes
3383else
3384  echo "$as_me: failed program was:" >&5
3385sed 's/^/| /' conftest.$ac_ext >&5
3386
3387ac_cv_prog_cxx_g=no
3388fi
3389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3390fi
3391echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3392echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3393if test "$ac_test_CXXFLAGS" = set; then
3394  CXXFLAGS=$ac_save_CXXFLAGS
3395elif test $ac_cv_prog_cxx_g = yes; then
3396  if test "$GXX" = yes; then
3397    CXXFLAGS="-g -O2"
3398  else
3399    CXXFLAGS="-g"
3400  fi
3401else
3402  if test "$GXX" = yes; then
3403    CXXFLAGS="-O2"
3404  else
3405    CXXFLAGS=
3406  fi
3407fi
3408for ac_declaration in \
3409   '' \
3410   'extern "C" void std::exit (int) throw (); using std::exit;' \
3411   'extern "C" void std::exit (int); using std::exit;' \
3412   'extern "C" void exit (int) throw ();' \
3413   'extern "C" void exit (int);' \
3414   'void exit (int);'
3415do
3416  cat >conftest.$ac_ext <<_ACEOF
3417/* confdefs.h.  */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h.  */
3422$ac_declaration
3423#include <stdlib.h>
3424int
3425main ()
3426{
3427exit (42);
3428  ;
3429  return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
3433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3434  (eval $ac_compile) 2>conftest.er1
3435  ac_status=$?
3436  grep -v '^ *+' conftest.er1 >conftest.err
3437  rm -f conftest.er1
3438  cat conftest.err >&5
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); } &&
3441         { ac_try='test -z "$ac_cxx_werror_flag"
3442                         || test ! -s conftest.err'
3443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444  (eval $ac_try) 2>&5
3445  ac_status=$?
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); }; } &&
3448         { ac_try='test -s conftest.$ac_objext'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; }; then
3454  :
3455else
3456  echo "$as_me: failed program was:" >&5
3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459continue
3460fi
3461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3462  cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h.  */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
3467/* end confdefs.h.  */
3468$ac_declaration
3469int
3470main ()
3471{
3472exit (42);
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477rm -f conftest.$ac_objext
3478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479  (eval $ac_compile) 2>conftest.er1
3480  ac_status=$?
3481  grep -v '^ *+' conftest.er1 >conftest.err
3482  rm -f conftest.er1
3483  cat conftest.err >&5
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); } &&
3486         { ac_try='test -z "$ac_cxx_werror_flag"
3487                         || test ! -s conftest.err'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; } &&
3493         { ac_try='test -s conftest.$ac_objext'
3494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495  (eval $ac_try) 2>&5
3496  ac_status=$?
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); }; }; then
3499  break
3500else
3501  echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504fi
3505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3506done
3507rm -f conftest*
3508if test -n "$ac_declaration"; then
3509  echo '#ifdef __cplusplus' >>confdefs.h
3510  echo $ac_declaration      >>confdefs.h
3511  echo '#endif'             >>confdefs.h
3512fi
3513
3514ac_ext=cc
3515ac_cpp='$CXXCPP $CPPFLAGS'
3516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3519
3520
3521#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3522#thus, we test here whether $CXX is actually working
3523ac_ext=cc
3524ac_cpp='$CXXCPP $CPPFLAGS'
3525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3528
3529echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3530echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3531cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h.  */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h.  */
3537
3538int
3539main ()
3540{
3541int i=0;
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546rm -f conftest.$ac_objext
3547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548  (eval $ac_compile) 2>conftest.er1
3549  ac_status=$?
3550  grep -v '^ *+' conftest.er1 >conftest.err
3551  rm -f conftest.er1
3552  cat conftest.err >&5
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); } &&
3555         { ac_try='test -z "$ac_cxx_werror_flag"
3556                         || test ! -s conftest.err'
3557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558  (eval $ac_try) 2>&5
3559  ac_status=$?
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); }; } &&
3562         { ac_try='test -s conftest.$ac_objext'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; }; then
3568  echo "$as_me:$LINENO: result: yes" >&5
3569echo "${ECHO_T}yes" >&6
3570else
3571  echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574echo "$as_me:$LINENO: result: no" >&5
3575echo "${ECHO_T}no" >&6
3576   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3577echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3578   { (exit 1); exit 1; }; }
3579
3580fi
3581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3582ac_ext=cc
3583ac_cpp='$CXXCPP $CPPFLAGS'
3584ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3587
3588
3589# It seems that we need to cleanup something here for the Windows
3590case "$CXX" in
3591  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3592    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3593    mv confdefs.hh confdefs.h
3594    ;;
3595esac
3596
3597# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3598case "$CXX" in
3599  cl* | */cl* | CL* | */CL* )
3600    if test "$ac_cv_prog_cxx_g" = yes ; then
3601      ac_cv_prog_cxx_g=no
3602      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3603echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3604    fi ;;
3605esac
3606CXXFLAGS="$save_cxxflags"
3607
3608# Check if a project specific CXXFLAGS variable has been set
3609if test x$COIN_PRJCT != x; then
3610  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3611  if test x$coin_tmp = xset; then
3612    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3613  fi
3614fi
3615
3616if test x"$CXXFLAGS" = x; then
3617
3618# ToDo decide whether we want -DNDEBUG for optimization
3619  coin_add_cxxflags=
3620  coin_opt_cxxflags=
3621  coin_dbg_cxxflags=
3622  coin_warn_cxxflags=
3623
3624  if test "$GXX" = "yes"; then
3625    case "$CXX" in
3626      icpc* | */icpc*)
3627        ;;
3628      *)
3629# ToDo decide about unroll-loops
3630        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3631        coin_add_cxxflags="-pipe"
3632        coin_dbg_cxxflags="-g"
3633        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3634        case $build in
3635          *-darwin*)
3636            ;;
3637          *)
3638            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3639            ;;
3640        esac
3641
3642        case $enable_doscompile in
3643          mingw)
3644            CXXFLAGS="-mno-cygwin"
3645            cat >conftest.$ac_ext <<_ACEOF
3646/* confdefs.h.  */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h.  */
3651
3652int
3653main ()
3654{
3655int i=0; i++;
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext conftest$ac_exeext
3661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3662  (eval $ac_link) 2>conftest.er1
3663  ac_status=$?
3664  grep -v '^ *+' conftest.er1 >conftest.err
3665  rm -f conftest.er1
3666  cat conftest.err >&5
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); } &&
3669         { ac_try='test -z "$ac_cxx_werror_flag"
3670                         || test ! -s conftest.err'
3671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672  (eval $ac_try) 2>&5
3673  ac_status=$?
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); }; } &&
3676         { ac_try='test -s conftest$ac_exeext'
3677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678  (eval $ac_try) 2>&5
3679  ac_status=$?
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); }; }; then
3682  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3683else
3684  echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687fi
3688rm -f conftest.err conftest.$ac_objext \
3689      conftest$ac_exeext conftest.$ac_ext
3690            CXXFLAGS=
3691          ;;
3692        esac
3693    esac
3694  fi
3695
3696# Note that we do not need to cover GCC in the following tests.
3697
3698  if test -z "$coin_opt_cxxflags"; then
3699    case $build in
3700      *-cygwin* | *-mingw*)
3701        case "$CXX" in
3702          cl* | */cl* | CL* | */CL*)
3703            # The MT and MTd options are mutually exclusive
3704            coin_opt_cxxflags='-MT -O2'
3705            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3706            coin_dbg_cxxflags='-MTd'
3707            ;;
3708          icl* | */icl* | ICL* | */ICL*)
3709            # The MT and MTd options are mutually exclusive
3710            coin_opt_cxxflags='-MT -Ox'
3711            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3712            coin_dbg_cxxflags='-MTd -debug'
3713            ;;
3714        esac
3715        ;;
3716      *-linux-*)
3717        case "$CXX" in
3718          icpc* | */icpc*)
3719            coin_opt_cxxflags="-O3 -ip -mp1"
3720            coin_add_cxxflags=""
3721            coin_dbg_cxxflags="-g"
3722            # Check if -i_dynamic is necessary (for new glibc library)
3723            CXXFLAGS=
3724            cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h.  */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h.  */
3730
3731int
3732main ()
3733{
3734int i=0; i++;
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739rm -f conftest.$ac_objext conftest$ac_exeext
3740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741  (eval $ac_link) 2>conftest.er1
3742  ac_status=$?
3743  grep -v '^ *+' conftest.er1 >conftest.err
3744  rm -f conftest.er1
3745  cat conftest.err >&5
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); } &&
3748         { ac_try='test -z "$ac_cxx_werror_flag"
3749                         || test ! -s conftest.err'
3750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3751  (eval $ac_try) 2>&5
3752  ac_status=$?
3753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754  (exit $ac_status); }; } &&
3755         { ac_try='test -s conftest$ac_exeext'
3756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757  (eval $ac_try) 2>&5
3758  ac_status=$?
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); }; }; then
3761  :
3762else
3763  echo "$as_me: failed program was:" >&5
3764sed 's/^/| /' conftest.$ac_ext >&5
3765
3766coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3767fi
3768rm -f conftest.err conftest.$ac_objext \
3769      conftest$ac_exeext conftest.$ac_ext
3770            ;;
3771          pgCC* | */pgCC*)
3772            coin_opt_cxxflags="-fast"
3773            coin_add_cxxflags="-Kieee -pc 64"
3774            coin_dbg_cxxflags="-g"
3775            ;;
3776        esac
3777        ;;
3778      *-ibm-*)
3779        case "$CXX" in
3780          xlC* | */xlC* | mpxlC* | */mpxlC*)
3781            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3782            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3783            coin_dbg_cxxflags="-g"
3784            ;;
3785        esac
3786        ;;
3787      *-hp-*)
3788        case "$CXX" in
3789          aCC* | */aCC* )
3790            coin_opt_cxxflags="-O"
3791            coin_add_cxxflags="-AA"
3792            coin_dbg_cxxflags="-g"
3793            ;;
3794        esac
3795        ;;
3796      *-*-solaris*)
3797          coin_opt_cxxflags="-O4"
3798          coin_dbg_cxxflags="-g"
3799        ;;
3800    esac
3801  fi
3802
3803# Generic flag settings. If these don't work, add a case above.
3804
3805  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3806    coin_dbg_cxxflags="-g"
3807  fi
3808
3809  if test -z "$coin_opt_cxxflags"; then
3810    # Try if -O option works if nothing else is set
3811    CXXFLAGS=-O
3812    cat >conftest.$ac_ext <<_ACEOF
3813/* confdefs.h.  */
3814_ACEOF
3815cat confdefs.h >>conftest.$ac_ext
3816cat >>conftest.$ac_ext <<_ACEOF
3817/* end confdefs.h.  */
3818
3819int
3820main ()
3821{
3822int i=0; i++;
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext conftest$ac_exeext
3828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3829  (eval $ac_link) 2>conftest.er1
3830  ac_status=$?
3831  grep -v '^ *+' conftest.er1 >conftest.err
3832  rm -f conftest.er1
3833  cat conftest.err >&5
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); } &&
3836         { ac_try='test -z "$ac_cxx_werror_flag"
3837                         || test ! -s conftest.err'
3838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839  (eval $ac_try) 2>&5
3840  ac_status=$?
3841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842  (exit $ac_status); }; } &&
3843         { ac_try='test -s conftest$ac_exeext'
3844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845  (eval $ac_try) 2>&5
3846  ac_status=$?
3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848  (exit $ac_status); }; }; then
3849  coin_opt_cxxflags="-O"
3850else
3851  echo "$as_me: failed program was:" >&5
3852sed 's/^/| /' conftest.$ac_ext >&5
3853
3854fi
3855rm -f conftest.err conftest.$ac_objext \
3856      conftest$ac_exeext conftest.$ac_ext
3857  fi
3858
3859  # if PM doesn't want the warning messages, take them out
3860  if test x"$coin_skip_warn_cxxflags" = xyes; then
3861    coin_warn_cxxflags=
3862  fi
3863
3864# Do final setup of flags based on values determined above.
3865
3866  if test x${DBG_CXXFLAGS+set} != xset; then
3867    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3868  fi
3869  if test x${OPT_CXXFLAGS+set} != xset; then
3870    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3871  fi
3872
3873  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3874  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3875
3876  if test "$coin_debug_compile" = "true"; then
3877    CXXFLAGS="$DBG_CXXFLAGS"
3878  else
3879    CXXFLAGS="$OPT_CXXFLAGS"
3880  fi
3881
3882# Handle the case where CXXFLAGS was set externally.
3883else
3884  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3885  if test x${DBG_CXXFLAGS+set} != xset; then
3886    DBG_CXXFLAGS="$CXXFLAGS"
3887  fi
3888  if test x${OPT_CXXFLAGS+set} != xset; then
3889    OPT_CXXFLAGS="$CXXFLAGS"
3890  fi
3891fi
3892
3893# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3894
3895case "$CXXFLAGS" in
3896  *-mno-cygwin*)
3897    if test x${CPPFLAGS+set} != xset ; then
3898      CPPFLAGS="-mno-cygwin"
3899    else
3900      case "$CPPFLAGS" in
3901        *-mno-cygwin*)
3902          ;;
3903        *)
3904          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3905          ;;
3906      esac
3907    fi ;;
3908esac
3909
3910# Try if CXXFLAGS works
3911save_CXXFLAGS="$CXXFLAGS"
3912cat >conftest.$ac_ext <<_ACEOF
3913/* confdefs.h.  */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
3917/* end confdefs.h.  */
3918
3919int
3920main ()
3921{
3922int i=0; i++;
3923  ;
3924  return 0;
3925}
3926_ACEOF
3927rm -f conftest.$ac_objext conftest$ac_exeext
3928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3929  (eval $ac_link) 2>conftest.er1
3930  ac_status=$?
3931  grep -v '^ *+' conftest.er1 >conftest.err
3932  rm -f conftest.er1
3933  cat conftest.err >&5
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); } &&
3936         { ac_try='test -z "$ac_cxx_werror_flag"
3937                         || test ! -s conftest.err'
3938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939  (eval $ac_try) 2>&5
3940  ac_status=$?
3941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942  (exit $ac_status); }; } &&
3943         { ac_try='test -s conftest$ac_exeext'
3944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3945  (eval $ac_try) 2>&5
3946  ac_status=$?
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); }; }; then
3949  :
3950else
3951  echo "$as_me: failed program was:" >&5
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
3954CXXFLAGS=
3955fi
3956rm -f conftest.err conftest.$ac_objext \
3957      conftest$ac_exeext conftest.$ac_ext
3958if test -z "$CXXFLAGS"; then
3959  { 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
3960echo "$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;}
3961  CXXFLAGS='-O'
3962  cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h.  */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
3967/* end confdefs.h.  */
3968
3969int
3970main ()
3971{
3972int i=0; i++;
3973  ;
3974  return 0;
3975}
3976_ACEOF
3977rm -f conftest.$ac_objext conftest$ac_exeext
3978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3979  (eval $ac_link) 2>conftest.er1
3980  ac_status=$?
3981  grep -v '^ *+' conftest.er1 >conftest.err
3982  rm -f conftest.er1
3983  cat conftest.err >&5
3984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985  (exit $ac_status); } &&
3986         { ac_try='test -z "$ac_cxx_werror_flag"
3987                         || test ! -s conftest.err'
3988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989  (eval $ac_try) 2>&5
3990  ac_status=$?
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); }; } &&
3993         { ac_try='test -s conftest$ac_exeext'
3994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995  (eval $ac_try) 2>&5
3996  ac_status=$?
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); }; }; then
3999  :
4000else
4001  echo "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
4003
4004CXXFLAGS=
4005fi
4006rm -f conftest.err conftest.$ac_objext \
4007      conftest$ac_exeext conftest.$ac_ext
4008  if test -z "$CXXFLAGS"; then
4009    { 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
4010echo "$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;}
4011  fi
4012fi
4013
4014{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4015echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4016
4017
4018if test x"$MPICXX" = x; then :; else
4019  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4020echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4021  CXX="$MPICXX"
4022fi
4023
4024case "$CXX" in
4025  cl* | */cl* | CL* | */CL* )
4026    case $build in
4027  *-mingw*)
4028    if test "${LD+set}" = set; then :; else
4029      LD=link
4030    fi
4031    ;;
4032 esac
4033 case $enable_doscompile in
4034   msvc)
4035     if test "x${LD+set}" = xset; then :; else
4036       LD=link
4037     fi
4038     ;;
4039 esac
4040
4041    ;;
4042esac
4043
4044ac_ext=c
4045ac_cpp='$CPP $CPPFLAGS'
4046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049
4050
4051
4052# Initialize automake and libtool
4053{
4054
4055
4056
4057# START
4058
4059# Test if force_shared has been set
4060if test "x" = xforce_shared; then
4061  if test x$enable_shared = xno; then
4062    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4063echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4064   { (exit 1); exit 1; }; }
4065  fi
4066  enable_shared=yes;
4067else
4068  # On Cygwin and AIX, building DLLs doesn't work
4069  case $build in
4070    *-cygwin*)
4071      coin_disable_shared=yes
4072      platform=Cygwin
4073    ;;
4074    *-aix*)
4075      coin_disable_shared=yes
4076      platform=AIX
4077    ;;
4078    *-mingw*)
4079      coin_disable_shared=yes
4080      platform="Msys"
4081#      case "$CXX" in
4082#        cl*)
4083#          coin_disable_shared=yes
4084#          platform="Msys with cl"
4085#      ;;
4086#      esac
4087    ;;
4088  esac
4089fi
4090if test x"$coin_disable_shared" = xyes; then
4091  if test x"$enable_shared" = xyes; then
4092    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4093echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4094  fi
4095  enable_shared=no
4096fi
4097# By default, we only want the shared objects to be compiled
4098# Check whether --enable-static or --disable-static was given.
4099if test "${enable_static+set}" = set; then
4100  enableval="$enable_static"
4101  p=${PACKAGE-default}
4102    case $enableval in
4103    yes) enable_static=yes ;;
4104    no) enable_static=no ;;
4105    *)
4106     enable_static=no
4107      # Look at the argument we got.  We use all the common list separators.
4108      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4109      for pkg in $enableval; do
4110        IFS="$lt_save_ifs"
4111        if test "X$pkg" = "X$p"; then
4112          enable_static=yes
4113        fi
4114      done
4115      IFS="$lt_save_ifs"
4116      ;;
4117    esac
4118else
4119  enable_static=no
4120fi;
4121
4122
4123
4124
4125# Initialize automake
4126echo "$as_me:$LINENO: checking for egrep" >&5
4127echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4128if test "${ac_cv_prog_egrep+set}" = set; then
4129  echo $ECHO_N "(cached) $ECHO_C" >&6
4130else
4131  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4132    then ac_cv_prog_egrep='grep -E'
4133    else ac_cv_prog_egrep='egrep'
4134    fi
4135fi
4136echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4137echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4138 EGREP=$ac_cv_prog_egrep
4139
4140
4141am__api_version="1.9"
4142# Find a good install program.  We prefer a C program (faster),
4143# so one script is as good as another.  But avoid the broken or
4144# incompatible versions:
4145# SysV /etc/install, /usr/sbin/install
4146# SunOS /usr/etc/install
4147# IRIX /sbin/install
4148# AIX /bin/install
4149# AmigaOS /C/install, which installs bootblocks on floppy discs
4150# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4151# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4152# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4153# OS/2's system install, which has a completely different semantic
4154# ./install, which can be erroneously created by make from ./install.sh.
4155echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4156echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4157if test -z "$INSTALL"; then
4158if test "${ac_cv_path_install+set}" = set; then
4159  echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164  IFS=$as_save_IFS
4165  test -z "$as_dir" && as_dir=.
4166  # Account for people who put trailing slashes in PATH elements.
4167case $as_dir/ in
4168  ./ | .// | /cC/* | \
4169  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4170  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4171  /usr/ucb/* ) ;;
4172  *)
4173    # OSF1 and SCO ODT 3.0 have their own names for install.
4174    # Don't use installbsd from OSF since it installs stuff as root
4175    # by default.
4176    for ac_prog in ginstall scoinst install; do
4177      for ac_exec_ext in '' $ac_executable_extensions; do
4178        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4179          if test $ac_prog = install &&
4180            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4181            # AIX install.  It has an incompatible calling convention.
4182            :
4183          elif test $ac_prog = install &&
4184            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4185            # program-specific install script used by HP pwplus--don't use.
4186            :
4187          else
4188            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4189            break 3
4190          fi
4191        fi
4192      done
4193    done
4194    ;;
4195esac
4196done
4197
4198
4199fi
4200  if test "${ac_cv_path_install+set}" = set; then
4201    INSTALL=$ac_cv_path_install
4202  else
4203    # As a last resort, use the slow shell script.  We don't cache a
4204    # path for INSTALL within a source directory, because that will
4205    # break other packages using the cache if that directory is
4206    # removed, or if the path is relative.
4207    INSTALL=$ac_install_sh
4208  fi
4209fi
4210echo "$as_me:$LINENO: result: $INSTALL" >&5
4211echo "${ECHO_T}$INSTALL" >&6
4212
4213# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4214# It thinks the first close brace ends the variable substitution.
4215test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4216
4217test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4218
4219test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4220
4221echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4222echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4223# Just in case
4224sleep 1
4225echo timestamp > conftest.file
4226# Do `set' in a subshell so we don't clobber the current shell's
4227# arguments.  Must try -L first in case configure is actually a
4228# symlink; some systems play weird games with the mod time of symlinks
4229# (eg FreeBSD returns the mod time of the symlink's containing
4230# directory).
4231if (
4232   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4233   if test "$*" = "X"; then
4234      # -L didn't work.
4235      set X `ls -t $srcdir/configure conftest.file`
4236   fi
4237   rm -f conftest.file
4238   if test "$*" != "X $srcdir/configure conftest.file" \
4239      && test "$*" != "X conftest.file $srcdir/configure"; then
4240
4241      # If neither matched, then we have a broken ls.  This can happen
4242      # if, for instance, CONFIG_SHELL is bash and it inherits a
4243      # broken ls alias from the environment.  This has actually
4244      # happened.  Such a system could not be considered "sane".
4245      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4246alias in your environment" >&5
4247echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4248alias in your environment" >&2;}
4249   { (exit 1); exit 1; }; }
4250   fi
4251
4252   test "$2" = conftest.file
4253   )
4254then
4255   # Ok.
4256   :
4257else
4258   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4259Check your system clock" >&5
4260echo "$as_me: error: newly created file is older than distributed files!
4261Check your system clock" >&2;}
4262   { (exit 1); exit 1; }; }
4263fi
4264echo "$as_me:$LINENO: result: yes" >&5
4265echo "${ECHO_T}yes" >&6
4266test "$program_prefix" != NONE &&
4267  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4268# Use a double $ so make ignores it.
4269test "$program_suffix" != NONE &&
4270  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4271# Double any \ or $.  echo might interpret backslashes.
4272# By default was `s,x,x', remove it if useless.
4273cat <<\_ACEOF >conftest.sed
4274s/[\\$]/&&/g;s/;s,x,x,$//
4275_ACEOF
4276program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4277rm conftest.sed
4278
4279# expand $ac_aux_dir to an absolute path
4280am_aux_dir=`cd $ac_aux_dir && pwd`
4281
4282test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4283# Use eval to expand $SHELL
4284if eval "$MISSING --run true"; then
4285  am_missing_run="$MISSING --run "
4286else
4287  am_missing_run=
4288  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4289echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4290fi
4291
4292if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4293  # We used to keeping the `.' as first argument, in order to
4294  # allow $(mkdir_p) to be used without argument.  As in
4295  #   $(mkdir_p) $(somedir)
4296  # where $(somedir) is conditionally defined.  However this is wrong
4297  # for two reasons:
4298  #  1. if the package is installed by a user who cannot write `.'
4299  #     make install will fail,
4300  #  2. the above comment should most certainly read
4301  #     $(mkdir_p) $(DESTDIR)$(somedir)
4302  #     so it does not work when $(somedir) is undefined and
4303  #     $(DESTDIR) is not.
4304  #  To support the latter case, we have to write
4305  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4306  #  so the `.' trick is pointless.
4307  mkdir_p='mkdir -p --'
4308else
4309  # On NextStep and OpenStep, the `mkdir' command does not
4310  # recognize any option.  It will interpret all options as
4311  # directories to create, and then abort because `.' already
4312  # exists.
4313  for d in ./-p ./--version;
4314  do
4315    test -d $d && rmdir $d
4316  done
4317  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4318  if test -f "$ac_aux_dir/mkinstalldirs"; then
4319    mkdir_p='$(mkinstalldirs)'
4320  else
4321    mkdir_p='$(install_sh) -d'
4322  fi
4323fi
4324
4325for ac_prog in gawk mawk nawk awk
4326do
4327  # Extract the first word of "$ac_prog", so it can be a program name with args.
4328set dummy $ac_prog; ac_word=$2
4329echo "$as_me:$LINENO: checking for $ac_word" >&5
4330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331if test "${ac_cv_prog_AWK+set}" = set; then
4332  echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334  if test -n "$AWK"; then
4335  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4336else
4337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338for as_dir in $PATH
4339do
4340  IFS=$as_save_IFS
4341  test -z "$as_dir" && as_dir=.
4342  for ac_exec_ext in '' $ac_executable_extensions; do
4343  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4344    ac_cv_prog_AWK="$ac_prog"
4345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346    break 2
4347  fi
4348done
4349done
4350
4351fi
4352fi
4353AWK=$ac_cv_prog_AWK
4354if test -n "$AWK"; then
4355  echo "$as_me:$LINENO: result: $AWK" >&5
4356echo "${ECHO_T}$AWK" >&6
4357else
4358  echo "$as_me:$LINENO: result: no" >&5
4359echo "${ECHO_T}no" >&6
4360fi
4361
4362  test -n "$AWK" && break
4363done
4364
4365echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4366echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4367set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4368if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4369  echo $ECHO_N "(cached) $ECHO_C" >&6
4370else
4371  cat >conftest.make <<\_ACEOF
4372all:
4373        @echo 'ac_maketemp="$(MAKE)"'
4374_ACEOF
4375# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4376eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4377if test -n "$ac_maketemp"; then
4378  eval ac_cv_prog_make_${ac_make}_set=yes
4379else
4380  eval ac_cv_prog_make_${ac_make}_set=no
4381fi
4382rm -f conftest.make
4383fi
4384if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4385  echo "$as_me:$LINENO: result: yes" >&5
4386echo "${ECHO_T}yes" >&6
4387  SET_MAKE=
4388else
4389  echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
4391  SET_MAKE="MAKE=${MAKE-make}"
4392fi
4393
4394rm -rf .tst 2>/dev/null
4395mkdir .tst 2>/dev/null
4396if test -d .tst; then
4397  am__leading_dot=.
4398else
4399  am__leading_dot=_
4400fi
4401rmdir .tst 2>/dev/null
4402
4403DEPDIR="${am__leading_dot}deps"
4404
4405          ac_config_commands="$ac_config_commands depfiles"
4406
4407
4408am_make=${MAKE-make}
4409cat > confinc << 'END'
4410am__doit:
4411        @echo done
4412.PHONY: am__doit
4413END
4414# If we don't find an include directive, just comment out the code.
4415echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4416echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4417am__include="#"
4418am__quote=
4419_am_result=none
4420# First try GNU make style include.
4421echo "include confinc" > confmf
4422# We grep out `Entering directory' and `Leaving directory'
4423# messages which can occur if `w' ends up in MAKEFLAGS.
4424# In particular we don't look at `^make:' because GNU make might
4425# be invoked under some other name (usually "gmake"), in which
4426# case it prints its new name instead of `make'.
4427if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4428   am__include=include
4429   am__quote=
4430   _am_result=GNU
4431fi
4432# Now try BSD make style include.
4433if test "$am__include" = "#"; then
4434   echo '.include "confinc"' > confmf
4435   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4436      am__include=.include
4437      am__quote="\""
4438      _am_result=BSD
4439   fi
4440fi
4441
4442
4443echo "$as_me:$LINENO: result: $_am_result" >&5
4444echo "${ECHO_T}$_am_result" >&6
4445rm -f confinc confmf
4446
4447# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4448if test "${enable_dependency_tracking+set}" = set; then
4449  enableval="$enable_dependency_tracking"
4450
4451fi;
4452if test "x$enable_dependency_tracking" != xno; then
4453  am_depcomp="$ac_aux_dir/depcomp"
4454  AMDEPBACKSLASH='\'
4455fi
4456
4457
4458if test "x$enable_dependency_tracking" != xno; then
4459  AMDEP_TRUE=
4460  AMDEP_FALSE='#'
4461else
4462  AMDEP_TRUE='#'
4463  AMDEP_FALSE=
4464fi
4465
4466
4467
4468
4469
4470# AC_MSG_NOTICE([Beginning automake initialisation.])
4471# Stuff for automake
4472# test to see if srcdir already configured
4473if test "`cd $srcdir && pwd`" != "`pwd`" &&
4474   test -f $srcdir/config.status; then
4475  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4476echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4477   { (exit 1); exit 1; }; }
4478fi
4479
4480# test whether we have cygpath
4481if test -z "$CYGPATH_W"; then
4482  if (cygpath --version) >/dev/null 2>/dev/null; then
4483    CYGPATH_W='cygpath -w'
4484  else
4485    CYGPATH_W=echo
4486  fi
4487fi
4488
4489
4490# Define the identity of the package.
4491 PACKAGE='clp'
4492 VERSION='1.10.0'
4493
4494
4495cat >>confdefs.h <<_ACEOF
4496#define PACKAGE "$PACKAGE"
4497_ACEOF
4498
4499
4500cat >>confdefs.h <<_ACEOF
4501#define VERSION "$VERSION"
4502_ACEOF
4503
4504# Some tools Automake needs.
4505
4506ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4507
4508
4509AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4510
4511
4512AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4513
4514
4515AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4516
4517
4518MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4519
4520install_sh=${install_sh-"$am_aux_dir/install-sh"}
4521
4522# Installed binaries are usually stripped using `strip' when the user
4523# run `make install-strip'.  However `strip' might not be the right
4524# tool to use in cross-compilation environments, therefore Automake
4525# will honor the `STRIP' environment variable to overrule this program.
4526if test "$cross_compiling" != no; then
4527  if test -n "$ac_tool_prefix"; then
4528  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4529set dummy ${ac_tool_prefix}strip; ac_word=$2
4530echo "$as_me:$LINENO: checking for $ac_word" >&5
4531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4532if test "${ac_cv_prog_STRIP+set}" = set; then
4533  echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535  if test -n "$STRIP"; then
4536  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4537else
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541  IFS=$as_save_IFS
4542  test -z "$as_dir" && as_dir=.
4543  for ac_exec_ext in '' $ac_executable_extensions; do
4544  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547    break 2
4548  fi
4549done
4550done
4551
4552fi
4553fi
4554STRIP=$ac_cv_prog_STRIP
4555if test -n "$STRIP"; then
4556  echo "$as_me:$LINENO: result: $STRIP" >&5
4557echo "${ECHO_T}$STRIP" >&6
4558else
4559  echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6
4561fi
4562
4563fi
4564if test -z "$ac_cv_prog_STRIP"; then
4565  ac_ct_STRIP=$STRIP
4566  # Extract the first word of "strip", so it can be a program name with args.
4567set dummy strip; ac_word=$2
4568echo "$as_me:$LINENO: checking for $ac_word" >&5
4569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4570if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4571  echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573  if test -n "$ac_ct_STRIP"; then
4574  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4575else
4576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579  IFS=$as_save_IFS
4580  test -z "$as_dir" && as_dir=.
4581  for ac_exec_ext in '' $ac_executable_extensions; do
4582  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583    ac_cv_prog_ac_ct_STRIP="strip"
4584    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585    break 2
4586  fi
4587done
4588done
4589
4590  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4591fi
4592fi
4593ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4594if test -n "$ac_ct_STRIP"; then
4595  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4596echo "${ECHO_T}$ac_ct_STRIP" >&6
4597else
4598  echo "$as_me:$LINENO: result: no" >&5
4599echo "${ECHO_T}no" >&6
4600fi
4601
4602  STRIP=$ac_ct_STRIP
4603else
4604  STRIP="$ac_cv_prog_STRIP"
4605fi
4606
4607fi
4608INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4609
4610# We need awk for the "check" target.  The system "awk" is bad on
4611# some platforms.
4612# Always define AMTAR for backward compatibility.
4613
4614AMTAR=${AMTAR-"${am_missing_run}tar"}
4615
4616am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4617
4618
4619
4620
4621depcc="$CC"   am_compiler_list=
4622
4623echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4624echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4625if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4626  echo $ECHO_N "(cached) $ECHO_C" >&6
4627else
4628  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4629  # We make a subdir and do the tests there.  Otherwise we can end up
4630  # making bogus files that we don't know about and never remove.  For
4631  # instance it was reported that on HP-UX the gcc test will end up
4632  # making a dummy file named `D' -- because `-MD' means `put the output
4633  # in D'.
4634  mkdir conftest.dir
4635  # Copy depcomp to subdir because otherwise we won't find it if we're
4636  # using a relative directory.
4637  cp "$am_depcomp" conftest.dir
4638  cd conftest.dir
4639  # We will build objects and dependencies in a subdirectory because
4640  # it helps to detect inapplicable dependency modes.  For instance
4641  # both Tru64's cc and ICC support -MD to output dependencies as a
4642  # side effect of compilation, but ICC will put the dependencies in
4643  # the current directory while Tru64 will put them in the object
4644  # directory.
4645  mkdir sub
4646
4647  am_cv_CC_dependencies_compiler_type=none
4648  if test "$am_compiler_list" = ""; then
4649     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4650  fi
4651  for depmode in $am_compiler_list; do
4652    # Setup a source with many dependencies, because some compilers
4653    # like to wrap large dependency lists on column 80 (with \), and
4654    # we should not choose a depcomp mode which is confused by this.
4655    #
4656    # We need to recreate these files for each test, as the compiler may
4657    # overwrite some of them when testing with obscure command lines.
4658    # This happens at least with the AIX C compiler.
4659    : > sub/conftest.c
4660    for i in 1 2 3 4 5 6; do
4661      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4662      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4663      # Solaris 8's {/usr,}/bin/sh.
4664      touch sub/conftst$i.h
4665    done
4666    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4667
4668    case $depmode in
4669    nosideeffect)
4670      # after this tag, mechanisms are not by side-effect, so they'll
4671      # only be used when explicitly requested
4672      if test "x$enable_dependency_tracking" = xyes; then
4673        continue
4674      else
4675        break
4676      fi
4677      ;;
4678    none) break ;;
4679    esac
4680    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4681    # mode.  It turns out that the SunPro C++ compiler does not properly
4682    # handle `-M -o', and we need to detect this.
4683    if depmode=$depmode \
4684       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4685       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4686       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4687         >/dev/null 2>conftest.err &&
4688       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4689       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4690       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4691      # icc doesn't choke on unknown options, it will just issue warnings
4692      # or remarks (even with -Werror).  So we grep stderr for any message
4693      # that says an option was ignored or not supported.
4694      # When given -MP, icc 7.0 and 7.1 complain thusly:
4695      #   icc: Command line warning: ignoring option '-M'; no argument required
4696      # The diagnosis changed in icc 8.0:
4697      #   icc: Command line remark: option '-MP' not supported
4698      if (grep 'ignoring option' conftest.err ||
4699          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4700        am_cv_CC_dependencies_compiler_type=$depmode
4701        break
4702      fi
4703    fi
4704  done
4705
4706  cd ..
4707  rm -rf conftest.dir
4708else
4709  am_cv_CC_dependencies_compiler_type=none
4710fi
4711
4712fi
4713echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4714echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4715CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4716
4717
4718
4719if
4720  test "x$enable_dependency_tracking" != xno \
4721  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4722  am__fastdepCC_TRUE=
4723  am__fastdepCC_FALSE='#'
4724else
4725  am__fastdepCC_TRUE='#'
4726  am__fastdepCC_FALSE=
4727fi
4728
4729
4730depcc="$CXX"  am_compiler_list=
4731
4732echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4733echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4734if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4738  # We make a subdir and do the tests there.  Otherwise we can end up
4739  # making bogus files that we don't know about and never remove.  For
4740  # instance it was reported that on HP-UX the gcc test will end up
4741  # making a dummy file named `D' -- because `-MD' means `put the output
4742  # in D'.
4743  mkdir conftest.dir
4744  # Copy depcomp to subdir because otherwise we won't find it if we're
4745  # using a relative directory.
4746  cp "$am_depcomp" conftest.dir
4747  cd conftest.dir
4748  # We will build objects and dependencies in a subdirectory because
4749  # it helps to detect inapplicable dependency modes.  For instance
4750  # both Tru64's cc and ICC support -MD to output dependencies as a
4751  # side effect of compilation, but ICC will put the dependencies in
4752  # the current directory while Tru64 will put them in the object
4753  # directory.
4754  mkdir sub
4755
4756  am_cv_CXX_dependencies_compiler_type=none
4757  if test "$am_compiler_list" = ""; then
4758     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4759  fi
4760  for depmode in $am_compiler_list; do
4761    # Setup a source with many dependencies, because some compilers
4762    # like to wrap large dependency lists on column 80 (with \), and
4763    # we should not choose a depcomp mode which is confused by this.
4764    #
4765    # We need to recreate these files for each test, as the compiler may
4766    # overwrite some of them when testing with obscure command lines.
4767    # This happens at least with the AIX C compiler.
4768    : > sub/conftest.c
4769    for i in 1 2 3 4 5 6; do
4770      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4771      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4772      # Solaris 8's {/usr,}/bin/sh.
4773      touch sub/conftst$i.h
4774    done
4775    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4776
4777    case $depmode in
4778    nosideeffect)
4779      # after this tag, mechanisms are not by side-effect, so they'll
4780      # only be used when explicitly requested
4781      if test "x$enable_dependency_tracking" = xyes; then
4782        continue
4783      else
4784        break
4785      fi
4786      ;;
4787    none) break ;;
4788    esac
4789    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4790    # mode.  It turns out that the SunPro C++ compiler does not properly
4791    # handle `-M -o', and we need to detect this.
4792    if depmode=$depmode \
4793       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4794       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4795       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4796         >/dev/null 2>conftest.err &&
4797       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4798       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4799       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4800      # icc doesn't choke on unknown options, it will just issue warnings
4801      # or remarks (even with -Werror).  So we grep stderr for any message
4802      # that says an option was ignored or not supported.
4803      # When given -MP, icc 7.0 and 7.1 complain thusly:
4804      #   icc: Command line warning: ignoring option '-M'; no argument required
4805      # The diagnosis changed in icc 8.0:
4806      #   icc: Command line remark: option '-MP' not supported
4807      if (grep 'ignoring option' conftest.err ||
4808          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4809        am_cv_CXX_dependencies_compiler_type=$depmode
4810        break
4811      fi
4812    fi
4813  done
4814
4815  cd ..
4816  rm -rf conftest.dir
4817else
4818  am_cv_CXX_dependencies_compiler_type=none
4819fi
4820
4821fi
4822echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4823echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4824CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4825
4826
4827
4828if
4829  test "x$enable_dependency_tracking" != xno \
4830  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4831  am__fastdepCXX_TRUE=
4832  am__fastdepCXX_FALSE='#'
4833else
4834  am__fastdepCXX_TRUE='#'
4835  am__fastdepCXX_FALSE=
4836fi
4837
4838
4839
4840echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4841echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4842    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4843if test "${enable_maintainer_mode+set}" = set; then
4844  enableval="$enable_maintainer_mode"
4845  USE_MAINTAINER_MODE=$enableval
4846else
4847  USE_MAINTAINER_MODE=no
4848fi;
4849  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4850echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4851
4852
4853if test $USE_MAINTAINER_MODE = yes; then
4854  MAINTAINER_MODE_TRUE=
4855  MAINTAINER_MODE_FALSE='#'
4856else
4857  MAINTAINER_MODE_TRUE='#'
4858  MAINTAINER_MODE_FALSE=
4859fi
4860
4861  MAINT=$MAINTAINER_MODE_TRUE
4862
4863
4864
4865coin_have_externals=no
4866if test "$enable_maintainer_mode" = yes; then
4867
4868  # If maintainer mode is chosen, we make sure that the correct versions
4869  # of the tools are used, and that we know where libtool.m4 is (to
4870  # recreate acinclude.m4)
4871
4872
4873  LIBTOOLM4=
4874  # Normally, $HOME
4875  AUTOTOOLS_DFLT=$HOME
4876
4877  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4878echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4879if test "${ac_cv_use_correct_autotools+set}" = set; then
4880  echo $ECHO_N "(cached) $ECHO_C" >&6
4881else
4882  ac_cv_use_correct_autotools=check
4883fi
4884echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4885echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4886
4887  if test $ac_cv_use_correct_autotools = check; then
4888    ac_cv_use_correct_autotools=yes
4889    # Check if we have autoconf
4890    # Extract the first word of "autoconf", so it can be a program name with args.
4891set dummy autoconf; ac_word=$2
4892echo "$as_me:$LINENO: checking for $ac_word" >&5
4893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894if test "${ac_cv_prog_have_autoconf+set}" = set; then
4895  echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897  if test -n "$have_autoconf"; then
4898  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4899else
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903  IFS=$as_save_IFS
4904  test -z "$as_dir" && as_dir=.
4905  for ac_exec_ext in '' $ac_executable_extensions; do
4906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907    ac_cv_prog_have_autoconf="yes"
4908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909    break 2
4910  fi
4911done
4912done
4913
4914  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4915fi
4916fi
4917have_autoconf=$ac_cv_prog_have_autoconf
4918if test -n "$have_autoconf"; then
4919  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4920echo "${ECHO_T}$have_autoconf" >&6
4921else
4922  echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
4924fi
4925
4926    if test $have_autoconf = no; then
4927      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4928echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4929   { (exit 1); exit 1; }; }
4930    fi
4931
4932    # Check whether autoconf is the correct version
4933    correct_version='2.59'
4934    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4935    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4936echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4937    autoconf --version > confauto.out 2>&1
4938    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4939      echo "$as_me:$LINENO: result: yes" >&5
4940echo "${ECHO_T}yes" >&6
4941    else
4942      rm -f confauto.out
4943      echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4946echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4947   { (exit 1); exit 1; }; }
4948    fi
4949    rm -f confauto.out
4950
4951    # Check if the executable autoconf is picked up from the correct location
4952    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4953echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4954    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4955    autoconf_dir=`cd $autoconf_dir; pwd`
4956    if test x$AUTOTOOLS_DIR = x; then
4957      want_dir=$AUTOTOOLS_DFLT/bin
4958    else
4959      want_dir=$AUTOTOOLS_DIR/bin
4960    fi
4961    if test $autoconf_dir = `cd $want_dir; pwd`; then
4962      echo "$as_me:$LINENO: result: yes" >&5
4963echo "${ECHO_T}yes" >&6
4964    else
4965      rm -f confauto.out
4966      echo "$as_me:$LINENO: result: no" >&5
4967echo "${ECHO_T}no" >&6
4968      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4969echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4970   { (exit 1); exit 1; }; }
4971    fi
4972
4973    # Check if we have automake
4974    # Extract the first word of "automake", so it can be a program name with args.
4975set dummy automake; ac_word=$2
4976echo "$as_me:$LINENO: checking for $ac_word" >&5
4977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978if test "${ac_cv_prog_have_automake+set}" = set; then
4979  echo $ECHO_N "(cached) $ECHO_C" >&6
4980else
4981  if test -n "$have_automake"; then
4982  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4983else
4984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985for as_dir in $PATH
4986do
4987  IFS=$as_save_IFS
4988  test -z "$as_dir" && as_dir=.
4989  for ac_exec_ext in '' $ac_executable_extensions; do
4990  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991    ac_cv_prog_have_automake="yes"
4992    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993    break 2
4994  fi
4995done
4996done
4997
4998  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4999fi
5000fi
5001have_automake=$ac_cv_prog_have_automake
5002if test -n "$have_automake"; then
5003  echo "$as_me:$LINENO: result: $have_automake" >&5
5004echo "${ECHO_T}$have_automake" >&6
5005else
5006  echo "$as_me:$LINENO: result: no" >&5
5007echo "${ECHO_T}no" >&6
5008fi
5009
5010    if test $have_automake = no; then
5011      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5012echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5013   { (exit 1); exit 1; }; }
5014    fi
5015
5016    # Check whether automake is the correct version
5017    correct_version='1.9.6'
5018    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5019    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5020echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5021    automake --version > confauto.out 2>&1
5022    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5023      echo "$as_me:$LINENO: result: yes" >&5
5024echo "${ECHO_T}yes" >&6
5025    else
5026      rm -f confauto.out
5027      echo "$as_me:$LINENO: result: no" >&5
5028echo "${ECHO_T}no" >&6
5029      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5030echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5031   { (exit 1); exit 1; }; }
5032    fi
5033    rm -f confauto.out
5034
5035    # Check if the executable automake is picked up from the correct location
5036    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5037echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5038    automake_dir=`which automake | sed -e 's=/automake=='`
5039    automake_dir=`cd $automake_dir; pwd`
5040    if test x$AUTOTOOLS_DIR = x; then
5041      want_dir=$AUTOTOOLS_DFLT/bin
5042    else
5043      want_dir=$AUTOTOOLS_DIR/bin
5044    fi
5045    if test $automake_dir = `cd $want_dir; pwd`; then
5046      echo "$as_me:$LINENO: result: yes" >&5
5047echo "${ECHO_T}yes" >&6
5048    else
5049      rm -f confauto.out
5050      echo "$as_me:$LINENO: result: no" >&5
5051echo "${ECHO_T}no" >&6
5052      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5053echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5054   { (exit 1); exit 1; }; }
5055    fi
5056
5057    # Check if this is the correct version of libtool (with escaped dots)
5058    if test x$AUTOTOOLS_DIR = x; then
5059      want_dir=$AUTOTOOLS_DFLT/share
5060    else
5061      want_dir=$AUTOTOOLS_DIR/share
5062    fi
5063    correct_version='1.5.22'
5064    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5065    if test -r $want_dir/libtool/ltmain.sh; then
5066  have_ltmain=yes
5067  :
5068else
5069  have_ltmain=no
5070  :
5071fi
5072
5073    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5074echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5075    if test $have_ltmain = yes; then
5076    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5077        echo "$as_me:$LINENO: result: yes" >&5
5078echo "${ECHO_T}yes" >&6
5079      else
5080        echo "$as_me:$LINENO: result: no" >&5
5081echo "${ECHO_T}no" >&6
5082        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5083echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5084   { (exit 1); exit 1; }; }
5085      fi
5086    else
5087      echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
5089      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5090echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5091   { (exit 1); exit 1; }; }
5092    fi
5093  fi
5094
5095  # Check if we can find the libtool file
5096  if test x$AUTOTOOLS_DIR = x; then
5097    want_dir=$AUTOTOOLS_DFLT/share
5098  else
5099    want_dir=$AUTOTOOLS_DIR/share
5100  fi
5101  if test -r $want_dir/aclocal/libtool.m4; then
5102  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5103  :
5104else
5105  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5106echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5107   { (exit 1); exit 1; }; }
5108  :
5109fi
5110
5111
5112  # Check if we have an Externals file
5113  if test -r $srcdir/Externals; then
5114    coin_have_externals=yes
5115  fi
5116  # Check if subversion is installed and understands https
5117  # Extract the first word of "svn", so it can be a program name with args.
5118set dummy svn; ac_word=$2
5119echo "$as_me:$LINENO: checking for $ac_word" >&5
5120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5121if test "${ac_cv_prog_have_svn+set}" = set; then
5122  echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124  if test -n "$have_svn"; then
5125  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5126else
5127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH
5129do
5130  IFS=$as_save_IFS
5131  test -z "$as_dir" && as_dir=.
5132  for ac_exec_ext in '' $ac_executable_extensions; do
5133  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134    ac_cv_prog_have_svn="yes"
5135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136    break 2
5137  fi
5138done
5139done
5140
5141  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5142fi
5143fi
5144have_svn=$ac_cv_prog_have_svn
5145if test -n "$have_svn"; then
5146  echo "$as_me:$LINENO: result: $have_svn" >&5
5147echo "${ECHO_T}$have_svn" >&6
5148else
5149  echo "$as_me:$LINENO: result: no" >&5
5150echo "${ECHO_T}no" >&6
5151fi
5152
5153  if test x$have_svn = xyes; then
5154    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5155echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5156if test "${ac_cv_svn_understands_https+set}" = set; then
5157  echo $ECHO_N "(cached) $ECHO_C" >&6
5158else
5159  svn --version > confauto.out 2>&1
5160                    if $EGREP https confauto.out >/dev/null 2>&1; then
5161                      ac_cv_svn_understands_https=yes
5162                    else
5163                      ac_cv_svn_understands_https=no
5164                      have_svn=no
5165                      ac_cv_prog_have_svn=no
5166                    fi
5167                    rm -f confauto.out
5168fi
5169echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5170echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5171  fi
5172
5173  # Find the location of the BuildTools directory
5174  BUILDTOOLSDIR=
5175  if test -r $srcdir/BuildTools/coin.m4; then
5176    BUILDTOOLSDIR=$srcdir/BuildTools
5177  else
5178    if test -r $srcdir/../BuildTools/coin.m4; then
5179      BUILDTOOLSDIR=$srcdir/../BuildTools
5180    else
5181      if test -r $srcdir/../../BuildTools/coin.m4; then
5182        BUILDTOOLSDIR=$srcdir/../../BuildTools
5183      else
5184        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5185echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5186   { (exit 1); exit 1; }; }
5187      fi
5188    fi
5189  fi
5190
5191
5192  # The following variable is set to the name of the directory where
5193  # the autotool scripts are located
5194
5195  AUX_DIR=$ac_aux_dir
5196fi
5197
5198# helpful variable for the base directory of this package
5199abs_source_dir=`cd $srcdir; pwd`
5200
5201
5202# Stuff for example Makefiles
5203if test x$prefix = xNONE; then
5204  full_prefix=$ac_default_prefix
5205else
5206  full_prefix=$prefix
5207fi
5208full_prefix=`cd $full_prefix ; pwd`
5209
5210abs_lib_dir=$full_prefix/lib
5211
5212abs_include_dir=$full_prefix/include
5213
5214abs_bin_dir=$full_prefix/bin
5215
5216
5217
5218if test $coin_have_externals = yes && test x$have_svn = xyes; then
5219  HAVE_EXTERNALS_TRUE=
5220  HAVE_EXTERNALS_FALSE='#'
5221else
5222  HAVE_EXTERNALS_TRUE='#'
5223  HAVE_EXTERNALS_FALSE=
5224fi
5225
5226
5227# AC_MSG_NOTICE([End automake initialisation.])
5228
5229
5230
5231LIBTOOL=
5232if test -r ../libtool; then
5233  coin_config_dir=..
5234  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5235fi
5236if test "x$LIBTOOL" = x; then
5237  if test -r ../../libtool; then
5238    coin_config_dir=../..
5239    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5240  fi
5241fi
5242
5243if test "x$LIBTOOL" = x; then
5244# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5245  # Stuff for libtool
5246  # Check whether --enable-shared or --disable-shared was given.
5247if test "${enable_shared+set}" = set; then
5248  enableval="$enable_shared"
5249  p=${PACKAGE-default}
5250    case $enableval in
5251    yes) enable_shared=yes ;;
5252    no) enable_shared=no ;;
5253    *)
5254      enable_shared=no
5255      # Look at the argument we got.  We use all the common list separators.
5256      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5257      for pkg in $enableval; do
5258        IFS="$lt_save_ifs"
5259        if test "X$pkg" = "X$p"; then
5260          enable_shared=yes
5261        fi
5262      done
5263      IFS="$lt_save_ifs"
5264      ;;
5265    esac
5266else
5267  enable_shared=yes
5268fi;
5269
5270# Check whether --enable-fast-install or --disable-fast-install was given.
5271if test "${enable_fast_install+set}" = set; then
5272  enableval="$enable_fast_install"
5273  p=${PACKAGE-default}
5274    case $enableval in
5275    yes) enable_fast_install=yes ;;
5276    no) enable_fast_install=no ;;
5277    *)
5278      enable_fast_install=no
5279      # Look at the argument we got.  We use all the common list separators.
5280      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5281      for pkg in $enableval; do
5282        IFS="$lt_save_ifs"
5283        if test "X$pkg" = "X$p"; then
5284          enable_fast_install=yes
5285        fi
5286      done
5287      IFS="$lt_save_ifs"
5288      ;;
5289    esac
5290else
5291  enable_fast_install=yes
5292fi;
5293
5294echo "$as_me:$LINENO: checking host system type" >&5
5295echo $ECHO_N "checking host system type... $ECHO_C" >&6
5296if test "${ac_cv_host+set}" = set; then
5297  echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299  ac_cv_host_alias=$host_alias
5300test -z "$ac_cv_host_alias" &&
5301  ac_cv_host_alias=$ac_cv_build_alias
5302ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5303  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5304echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5305   { (exit 1); exit 1; }; }
5306
5307fi
5308echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5309echo "${ECHO_T}$ac_cv_host" >&6
5310host=$ac_cv_host
5311host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5312host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5313host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5314
5315
5316echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5317echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5318if test "${lt_cv_path_SED+set}" = set; then
5319  echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321  # Loop through the user's path and test for sed and gsed.
5322# Then use that list of sed's as ones to test for truncation.
5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326  IFS=$as_save_IFS
5327  test -z "$as_dir" && as_dir=.
5328  for lt_ac_prog in sed gsed; do
5329    for ac_exec_ext in '' $ac_executable_extensions; do
5330      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5331        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5332      fi
5333    done
5334  done
5335done
5336lt_ac_max=0
5337lt_ac_count=0
5338# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5339# along with /bin/sed that truncates output.
5340for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5341  test ! -f $lt_ac_sed && continue
5342  cat /dev/null > conftest.in
5343  lt_ac_count=0
5344  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5345  # Check for GNU sed and select it if it is found.
5346  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5347    lt_cv_path_SED=$lt_ac_sed
5348    break
5349  fi
5350  while true; do
5351    cat conftest.in conftest.in >conftest.tmp
5352    mv conftest.tmp conftest.in
5353    cp conftest.in conftest.nl
5354    echo >>conftest.nl
5355    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5356    cmp -s conftest.out conftest.nl || break
5357    # 10000 chars as input seems more than enough
5358    test $lt_ac_count -gt 10 && break
5359    lt_ac_count=`expr $lt_ac_count + 1`
5360    if test $lt_ac_count -gt $lt_ac_max; then
5361      lt_ac_max=$lt_ac_count
5362      lt_cv_path_SED=$lt_ac_sed
5363    fi
5364  done
5365done
5366
5367fi
5368
5369SED=$lt_cv_path_SED
5370echo "$as_me:$LINENO: result: $SED" >&5
5371echo "${ECHO_T}$SED" >&6
5372
5373
5374# Check whether --with-gnu-ld or --without-gnu-ld was given.
5375if test "${with_gnu_ld+set}" = set; then
5376  withval="$with_gnu_ld"
5377  test "$withval" = no || with_gnu_ld=yes
5378else
5379  with_gnu_ld=no
5380fi;
5381ac_prog=ld
5382if test "$GCC" = yes; then
5383  # Check if gcc -print-prog-name=ld gives a path.
5384  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5385echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5386  case $host in
5387  *-*-mingw*)
5388    # gcc leaves a trailing carriage return which upsets mingw
5389    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5390  *)
5391    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5392  esac
5393  case $ac_prog in
5394    # Accept absolute paths.
5395    [\\/]* | ?:[\\/]*)
5396      re_direlt='/[^/][^/]*/\.\./'
5397      # Canonicalize the pathname of ld
5398      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5399      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5400        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5401      done
5402      test -z "$LD" && LD="$ac_prog"
5403      ;;
5404  "")
5405    # If it fails, then pretend we aren't using GCC.
5406    ac_prog=ld
5407    ;;
5408  *)
5409    # If it is relative, then search for the first ld in PATH.
5410    with_gnu_ld=unknown
5411    ;;
5412  esac
5413elif test "$with_gnu_ld" = yes; then
5414  echo "$as_me:$LINENO: checking for GNU ld" >&5
5415echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5416else
5417  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5418echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5419fi
5420if test "${lt_cv_path_LD+set}" = set; then
5421  echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423  if test -z "$LD"; then
5424  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5425  for ac_dir in $PATH; do
5426    IFS="$lt_save_ifs"
5427    test -z "$ac_dir" && ac_dir=.
5428    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5429      lt_cv_path_LD="$ac_dir/$ac_prog"
5430      # Check to see if the program is GNU ld.  I'd rather use --version,
5431      # but apparently some variants of GNU ld only accept -v.
5432      # Break only if it was the GNU/non-GNU ld that we prefer.
5433      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5434      *GNU* | *'with BFD'*)
5435        test "$with_gnu_ld" != no && break
5436        ;;
5437      *)
5438        test "$with_gnu_ld" != yes && break
5439        ;;
5440      esac
5441    fi
5442  done
5443  IFS="$lt_save_ifs"
5444else
5445  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5446fi
5447fi
5448
5449LD="$lt_cv_path_LD"
5450if test -n "$LD"; then
5451  echo "$as_me:$LINENO: result: $LD" >&5
5452echo "${ECHO_T}$LD" >&6
5453else
5454  echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456fi
5457test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5458echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5459   { (exit 1); exit 1; }; }
5460echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5461echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5462if test "${lt_cv_prog_gnu_ld+set}" = set; then
5463  echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5466case `$LD -v 2>&1 </dev/null` in
5467*GNU* | *'with BFD'*)
5468  lt_cv_prog_gnu_ld=yes
5469  ;;
5470*)
5471  lt_cv_prog_gnu_ld=no
5472  ;;
5473esac
5474fi
5475echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5476echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5477with_gnu_ld=$lt_cv_prog_gnu_ld
5478
5479
5480echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5481echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5482if test "${lt_cv_ld_reload_flag+set}" = set; then
5483  echo $ECHO_N "(cached) $ECHO_C" >&6
5484else
5485  lt_cv_ld_reload_flag='-r'
5486fi
5487echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5488echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5489reload_flag=$lt_cv_ld_reload_flag
5490case $reload_flag in
5491"" | " "*) ;;
5492*) reload_flag=" $reload_flag" ;;
5493esac
5494reload_cmds='$LD$reload_flag -o $output$reload_objs'
5495case $host_os in
5496  darwin*)
5497    if test "$GCC" = yes; then
5498      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5499    else
5500      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5501    fi
5502    ;;
5503esac
5504
5505echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5506echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5507if test "${lt_cv_path_NM+set}" = set; then
5508  echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510  if test -n "$NM"; then
5511  # Let the user override the test.
5512  lt_cv_path_NM="$NM"
5513else
5514  lt_nm_to_check="${ac_tool_prefix}nm"
5515  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5516    lt_nm_to_check="$lt_nm_to_check nm"
5517  fi
5518  for lt_tmp_nm in $lt_nm_to_check; do
5519    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5520    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5521      IFS="$lt_save_ifs"
5522      test -z "$ac_dir" && ac_dir=.
5523      tmp_nm="$ac_dir/$lt_tmp_nm"
5524      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5525        # Check to see if the nm accepts a BSD-compat flag.
5526        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5527        #   nm: unknown option "B" ignored
5528        # Tru64's nm complains that /dev/null is an invalid object file
5529        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5530        */dev/null* | *'Invalid file or object type'*)
5531          lt_cv_path_NM="$tmp_nm -B"
5532          break
5533          ;;
5534        *)
5535          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5536          */dev/null*)
5537            lt_cv_path_NM="$tmp_nm -p"
5538            break
5539            ;;
5540          *)
5541            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5542            continue # so that we can try to find one that supports BSD flags
5543            ;;
5544          esac
5545          ;;
5546        esac
5547      fi
5548    done
5549    IFS="$lt_save_ifs"
5550  done
5551  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5552fi
5553fi
5554echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5555echo "${ECHO_T}$lt_cv_path_NM" >&6
5556NM="$lt_cv_path_NM"
5557
5558echo "$as_me:$LINENO: checking whether ln -s works" >&5
5559echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5560LN_S=$as_ln_s
5561if test "$LN_S" = "ln -s"; then
5562  echo "$as_me:$LINENO: result: yes" >&5
5563echo "${ECHO_T}yes" >&6
5564else
5565  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5566echo "${ECHO_T}no, using $LN_S" >&6
5567fi
5568
5569echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5570echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5571if test "${lt_cv_deplibs_check_method+set}" = set; then
5572  echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574  lt_cv_file_magic_cmd='$MAGIC_CMD'
5575lt_cv_file_magic_test_file=
5576lt_cv_deplibs_check_method='unknown'
5577# Need to set the preceding variable on all platforms that support
5578# interlibrary dependencies.
5579# 'none' -- dependencies not supported.
5580# `unknown' -- same as none, but documents that we really don't know.
5581# 'pass_all' -- all dependencies passed with no checks.
5582# 'test_compile' -- check by making test program.
5583# 'file_magic [[regex]]' -- check by looking for files in library path
5584# which responds to the $file_magic_cmd with a given extended regex.
5585# If you have `file' or equivalent on your system and you're not sure
5586# whether `pass_all' will *always* work, you probably want this one.
5587
5588case $host_os in
5589aix4* | aix5*)
5590  lt_cv_deplibs_check_method=pass_all
5591  ;;
5592
5593beos*)
5594  lt_cv_deplibs_check_method=pass_all
5595  ;;
5596
5597bsdi[45]*)
5598  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5599  lt_cv_file_magic_cmd='/usr/bin/file -L'
5600  lt_cv_file_magic_test_file=/shlib/libc.so
5601  ;;
5602
5603cygwin*)
5604  # func_win32_libid is a shell function defined in ltmain.sh
5605  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5606  lt_cv_file_magic_cmd='func_win32_libid'
5607  ;;
5608
5609mingw* | pw32*)
5610  # Base MSYS/MinGW do not provide the 'file' command needed by
5611  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5612  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5613  lt_cv_file_magic_cmd='$OBJDUMP -f'
5614  ;;
5615
5616darwin* | rhapsody*)
5617  lt_cv_deplibs_check_method=pass_all
5618  ;;
5619
5620freebsd* | kfreebsd*-gnu | dragonfly*)
5621  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5622    case $host_cpu in
5623    i*86 )
5624      # Not sure whether the presence of OpenBSD here was a mistake.
5625      # Let's accept both of them until this is cleared up.
5626      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5627      lt_cv_file_magic_cmd=/usr/bin/file
5628      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5629      ;;
5630    esac
5631  else
5632    lt_cv_deplibs_check_method=pass_all
5633  fi
5634  ;;
5635
5636gnu*)
5637  lt_cv_deplibs_check_method=pass_all
5638  ;;
5639
5640hpux10.20* | hpux11*)
5641  lt_cv_file_magic_cmd=/usr/bin/file
5642  case $host_cpu in
5643  ia64*)
5644    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5645    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5646    ;;
5647  hppa*64*)
5648    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]'
5649    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5650    ;;
5651  *)
5652    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5653    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5654    ;;
5655  esac
5656  ;;
5657
5658interix3*)
5659  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5660  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5661  ;;
5662
5663irix5* | irix6* | nonstopux*)
5664  case $LD in
5665  *-32|*"-32 ") libmagic=32-bit;;
5666  *-n32|*"-n32 ") libmagic=N32;;
5667  *-64|*"-64 ") libmagic=64-bit;;
5668  *) libmagic=never-match;;
5669  esac
5670  lt_cv_deplibs_check_method=pass_all
5671  ;;
5672
5673# This must be Linux ELF.
5674linux*)
5675  lt_cv_deplibs_check_method=pass_all
5676  ;;
5677
5678netbsd*)
5679  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5680    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5681  else
5682    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5683  fi
5684  ;;
5685
5686newos6*)
5687  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5688  lt_cv_file_magic_cmd=/usr/bin/file
5689  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5690  ;;
5691
5692nto-qnx*)
5693  lt_cv_deplibs_check_method=unknown
5694  ;;
5695
5696openbsd*)
5697  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5698    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5699  else
5700    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5701  fi
5702  ;;
5703
5704osf3* | osf4* | osf5*)
5705  lt_cv_deplibs_check_method=pass_all
5706  ;;
5707
5708solaris*)
5709  lt_cv_deplibs_check_method=pass_all
5710  ;;
5711
5712sysv4 | sysv4.3*)
5713  case $host_vendor in
5714  motorola)
5715    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]'
5716    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5717    ;;
5718  ncr)
5719    lt_cv_deplibs_check_method=pass_all
5720    ;;
5721  sequent)
5722    lt_cv_file_magic_cmd='/bin/file'
5723    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5724    ;;
5725  sni)
5726    lt_cv_file_magic_cmd='/bin/file'
5727    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5728    lt_cv_file_magic_test_file=/lib/libc.so
5729    ;;
5730  siemens)
5731    lt_cv_deplibs_check_method=pass_all
5732    ;;
5733  pc)
5734    lt_cv_deplibs_check_method=pass_all
5735    ;;
5736  esac
5737  ;;
5738
5739sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5740  lt_cv_deplibs_check_method=pass_all
5741  ;;
5742esac
5743
5744fi
5745echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5746echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5747file_magic_cmd=$lt_cv_file_magic_cmd
5748deplibs_check_method=$lt_cv_deplibs_check_method
5749test -z "$deplibs_check_method" && deplibs_check_method=unknown
5750
5751
5752
5753
5754# If no C compiler was specified, use CC.
5755LTCC=${LTCC-"$CC"}
5756
5757# If no C compiler flags were specified, use CFLAGS.
5758LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5759
5760# Allow CC to be a program name with arguments.
5761compiler=$CC
5762
5763# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5764if test "${enable_libtool_lock+set}" = set; then
5765  enableval="$enable_libtool_lock"
5766
5767fi;
5768test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5769
5770# Some flags need to be propagated to the compiler or linker for good
5771# libtool support.
5772case $host in
5773ia64-*-hpux*)
5774  # Find out which ABI we are using.
5775  echo 'int i;' > conftest.$ac_ext
5776  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5777  (eval $ac_compile) 2>&5
5778  ac_status=$?
5779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780  (exit $ac_status); }; then
5781    case `/usr/bin/file conftest.$ac_objext` in
5782    *ELF-32*)
5783      HPUX_IA64_MODE="32"
5784      ;;
5785    *ELF-64*)
5786      HPUX_IA64_MODE="64"
5787      ;;
5788    esac
5789  fi
5790  rm -rf conftest*
5791  ;;
5792*-*-irix6*)
5793  # Find out which ABI we are using.
5794  echo '#line 5794 "configure"' > conftest.$ac_ext
5795  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796  (eval $ac_compile) 2>&5
5797  ac_status=$?
5798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799  (exit $ac_status); }; then
5800   if test "$lt_cv_prog_gnu_ld" = yes; then
5801    case `/usr/bin/file conftest.$ac_objext` in
5802    *32-bit*)
5803      LD="${LD-ld} -melf32bsmip"
5804      ;;
5805    *N32*)
5806      LD="${LD-ld} -melf32bmipn32"
5807      ;;
5808    *64-bit*)
5809      LD="${LD-ld} -melf64bmip"
5810      ;;
5811    esac
5812   else
5813    case `/usr/bin/file conftest.$ac_objext` in
5814    *32-bit*)
5815      LD="${LD-ld} -32"
5816      ;;
5817    *N32*)
5818      LD="${LD-ld} -n32"
5819      ;;
5820    *64-bit*)
5821      LD="${LD-ld} -64"
5822      ;;
5823    esac
5824   fi
5825  fi
5826  rm -rf conftest*
5827  ;;
5828
5829x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5830  # Find out which ABI we are using.
5831  echo 'int i;' > conftest.$ac_ext
5832  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5833  (eval $ac_compile) 2>&5
5834  ac_status=$?
5835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836  (exit $ac_status); }; then
5837    case `/usr/bin/file conftest.o` in
5838    *32-bit*)
5839      case $host in
5840        x86_64-*linux*)
5841          LD="${LD-ld} -m elf_i386"
5842          ;;
5843        ppc64-*linux*|powerpc64-*linux*)
5844          LD="${LD-ld} -m elf32ppclinux"
5845          ;;
5846        s390x-*linux*)
5847          LD="${LD-ld} -m elf_s390"
5848          ;;
5849        sparc64-*linux*)
5850          LD="${LD-ld} -m elf32_sparc"
5851          ;;
5852      esac
5853      ;;
5854    *64-bit*)
5855      case $host in
5856        x86_64-*linux*)
5857          LD="${LD-ld} -m elf_x86_64"
5858          ;;
5859        ppc*-*linux*|powerpc*-*linux*)
5860          LD="${LD-ld} -m elf64ppc"
5861          ;;
5862        s390*-*linux*)
5863          LD="${LD-ld} -m elf64_s390"
5864          ;;
5865        sparc*-*linux*)
5866          LD="${LD-ld} -m elf64_sparc"
5867          ;;
5868      esac
5869      ;;
5870    esac
5871  fi
5872  rm -rf conftest*
5873  ;;
5874
5875*-*-sco3.2v5*)
5876  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5877  SAVE_CFLAGS="$CFLAGS"
5878  CFLAGS="$CFLAGS -belf"
5879  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5880echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5881if test "${lt_cv_cc_needs_belf+set}" = set; then
5882  echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884  ac_ext=c
5885ac_cpp='$CPP $CPPFLAGS'
5886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888ac_compiler_gnu=$ac_cv_c_compiler_gnu
5889
5890     cat >conftest.$ac_ext <<_ACEOF
5891/* confdefs.h.  */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h.  */
5896
5897int
5898main ()
5899{
5900
5901  ;
5902  return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext conftest$ac_exeext
5906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907  (eval $ac_link) 2>conftest.er1
5908  ac_status=$?
5909  grep -v '^ *+' conftest.er1 >conftest.err
5910  rm -f conftest.er1
5911  cat conftest.err >&5
5912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); } &&
5914         { ac_try='test -z "$ac_c_werror_flag"
5915                         || test ! -s conftest.err'
5916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917  (eval $ac_try) 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }; } &&
5921         { ac_try='test -s conftest$ac_exeext'
5922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923  (eval $ac_try) 2>&5
5924  ac_status=$?
5925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926  (exit $ac_status); }; }; then
5927  lt_cv_cc_needs_belf=yes
5928else
5929  echo "$as_me: failed program was:" >&5
5930sed 's/^/| /' conftest.$ac_ext >&5
5931
5932lt_cv_cc_needs_belf=no
5933fi
5934rm -f conftest.err conftest.$ac_objext \
5935      conftest$ac_exeext conftest.$ac_ext
5936     ac_ext=c
5937ac_cpp='$CPP $CPPFLAGS'
5938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5940ac_compiler_gnu=$ac_cv_c_compiler_gnu
5941
5942fi
5943echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5944echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5945  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5946    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5947    CFLAGS="$SAVE_CFLAGS"
5948  fi
5949  ;;
5950sparc*-*solaris*)
5951  # Find out which ABI we are using.
5952  echo 'int i;' > conftest.$ac_ext
5953  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5954  (eval $ac_compile) 2>&5
5955  ac_status=$?
5956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957  (exit $ac_status); }; then
5958    case `/usr/bin/file conftest.o` in
5959    *64-bit*)
5960      case $lt_cv_prog_gnu_ld in
5961      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5962      *)    LD="${LD-ld} -64" ;;
5963      esac
5964      ;;
5965    esac
5966  fi
5967  rm -rf conftest*
5968  ;;
5969
5970
5971esac
5972
5973need_locks="$enable_libtool_lock"
5974
5975
5976ac_ext=c
5977ac_cpp='$CPP $CPPFLAGS'
5978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5980ac_compiler_gnu=$ac_cv_c_compiler_gnu
5981echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5982echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5983# On Suns, sometimes $CPP names a directory.
5984if test -n "$CPP" && test -d "$CPP"; then
5985  CPP=
5986fi
5987if test -z "$CPP"; then
5988  if test "${ac_cv_prog_CPP+set}" = set; then
5989  echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991      # Double quotes because CPP needs to be expanded
5992    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5993    do
5994      ac_preproc_ok=false
5995for ac_c_preproc_warn_flag in '' yes
5996do
5997  # Use a header file that comes with gcc, so configuring glibc
5998  # with a fresh cross-compiler works.
5999  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6000  # <limits.h> exists even on freestanding compilers.
6001  # On the NeXT, cc -E runs the code through the compiler's parser,
6002  # not just through cpp. "Syntax error" is here to catch this case.
6003  cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h.  */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h.  */
6009#ifdef __STDC__
6010# include <limits.h>
6011#else
6012# include <assert.h>
6013#endif
6014                     Syntax error
6015_ACEOF
6016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6017  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6018  ac_status=$?
6019  grep -v '^ *+' conftest.er1 >conftest.err
6020  rm -f conftest.er1
6021  cat conftest.err >&5
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); } >/dev/null; then
6024  if test -s conftest.err; then
6025    ac_cpp_err=$ac_c_preproc_warn_flag
6026    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6027  else
6028    ac_cpp_err=
6029  fi
6030else
6031  ac_cpp_err=yes
6032fi
6033if test -z "$ac_cpp_err"; then
6034  :
6035else
6036  echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
6039  # Broken: fails on valid input.
6040continue
6041fi
6042rm -f conftest.err conftest.$ac_ext
6043
6044  # OK, works on sane cases.  Now check whether non-existent headers
6045  # can be detected and how.
6046  cat >conftest.$ac_ext <<_ACEOF
6047/* confdefs.h.  */
6048_ACEOF
6049cat confdefs.h >>conftest.$ac_ext
6050cat >>conftest.$ac_ext <<_ACEOF
6051/* end confdefs.h.  */
6052#include <ac_nonexistent.h>
6053_ACEOF
6054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6055  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6056  ac_status=$?
6057  grep -v '^ *+' conftest.er1 >conftest.err
6058  rm -f conftest.er1
6059  cat conftest.err >&5
6060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061  (exit $ac_status); } >/dev/null; then
6062  if test -s conftest.err; then
6063    ac_cpp_err=$ac_c_preproc_warn_flag
6064    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6065  else
6066    ac_cpp_err=
6067  fi
6068else
6069  ac_cpp_err=yes
6070fi
6071if test -z "$ac_cpp_err"; then
6072  # Broken: success on invalid input.
6073continue
6074else
6075  echo "$as_me: failed program was:" >&5
6076sed 's/^/| /' conftest.$ac_ext >&5
6077
6078  # Passes both tests.
6079ac_preproc_ok=:
6080break
6081fi
6082rm -f conftest.err conftest.$ac_ext
6083
6084done
6085# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6086rm -f conftest.err conftest.$ac_ext
6087if $ac_preproc_ok; then
6088  break
6089fi
6090
6091    done
6092    ac_cv_prog_CPP=$CPP
6093
6094fi
6095  CPP=$ac_cv_prog_CPP
6096else
6097  ac_cv_prog_CPP=$CPP
6098fi
6099echo "$as_me:$LINENO: result: $CPP" >&5
6100echo "${ECHO_T}$CPP" >&6
6101ac_preproc_ok=false
6102for ac_c_preproc_warn_flag in '' yes
6103do
6104  # Use a header file that comes with gcc, so configuring glibc
6105  # with a fresh cross-compiler works.
6106  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6107  # <limits.h> exists even on freestanding compilers.
6108  # On the NeXT, cc -E runs the code through the compiler's parser,
6109  # not just through cpp. "Syntax error" is here to catch this case.
6110  cat >conftest.$ac_ext <<_ACEOF
6111/* confdefs.h.  */
6112_ACEOF
6113cat confdefs.h >>conftest.$ac_ext
6114cat >>conftest.$ac_ext <<_ACEOF
6115/* end confdefs.h.  */
6116#ifdef __STDC__
6117# include <limits.h>
6118#else
6119# include <assert.h>
6120#endif
6121                     Syntax error
6122_ACEOF
6123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6124  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6125  ac_status=$?
6126  grep -v '^ *+' conftest.er1 >conftest.err
6127  rm -f conftest.er1
6128  cat conftest.err >&5
6129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130  (exit $ac_status); } >/dev/null; then
6131  if test -s conftest.err; then
6132    ac_cpp_err=$ac_c_preproc_warn_flag
6133    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6134  else
6135    ac_cpp_err=
6136  fi
6137else
6138  ac_cpp_err=yes
6139fi
6140if test -z "$ac_cpp_err"; then
6141  :
6142else
6143  echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146  # Broken: fails on valid input.
6147continue
6148fi
6149rm -f conftest.err conftest.$ac_ext
6150
6151  # OK, works on sane cases.  Now check whether non-existent headers
6152  # can be detected and how.
6153  cat >conftest.$ac_ext <<_ACEOF
6154/* confdefs.h.  */
6155_ACEOF
6156cat confdefs.h >>conftest.$ac_ext
6157cat >>conftest.$ac_ext <<_ACEOF
6158/* end confdefs.h.  */
6159#include <ac_nonexistent.h>
6160_ACEOF
6161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6162  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6163  ac_status=$?
6164  grep -v '^ *+' conftest.er1 >conftest.err
6165  rm -f conftest.er1
6166  cat conftest.err >&5
6167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168  (exit $ac_status); } >/dev/null; then
6169  if test -s conftest.err; then
6170    ac_cpp_err=$ac_c_preproc_warn_flag
6171    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6172  else
6173    ac_cpp_err=
6174  fi
6175else
6176  ac_cpp_err=yes
6177fi
6178if test -z "$ac_cpp_err"; then
6179  # Broken: success on invalid input.
6180continue
6181else
6182  echo "$as_me: failed program was:" >&5
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
6185  # Passes both tests.
6186ac_preproc_ok=:
6187break
6188fi
6189rm -f conftest.err conftest.$ac_ext
6190
6191done
6192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193rm -f conftest.err conftest.$ac_ext
6194if $ac_preproc_ok; then
6195  :
6196else
6197  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6198See \`config.log' for more details." >&5
6199echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6200See \`config.log' for more details." >&2;}
6201   { (exit 1); exit 1; }; }
6202fi
6203
6204ac_ext=c
6205ac_cpp='$CPP $CPPFLAGS'
6206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210
6211echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6212echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6213if test "${ac_cv_header_stdc+set}" = set; then
6214  echo $ECHO_N "(cached) $ECHO_C" >&6
6215else
6216  cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h.  */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h.  */
6222#include <stdlib.h>
6223#include <stdarg.h>
6224#include <string.h>
6225#include <float.h>
6226
6227int
6228main ()
6229{
6230
6231  ;
6232  return 0;
6233}
6234_ACEOF
6235rm -f conftest.$ac_objext
6236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237  (eval $ac_compile) 2>conftest.er1
6238  ac_status=$?
6239  grep -v '^ *+' conftest.er1 >conftest.err
6240  rm -f conftest.er1
6241  cat conftest.err >&5
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); } &&
6244         { ac_try='test -z "$ac_c_werror_flag"
6245                         || test ! -s conftest.err'
6246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247  (eval $ac_try) 2>&5
6248  ac_status=$?
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); }; } &&
6251         { ac_try='test -s conftest.$ac_objext'
6252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253  (eval $ac_try) 2>&5
6254  ac_status=$?
6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); }; }; then
6257  ac_cv_header_stdc=yes
6258else
6259  echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262ac_cv_header_stdc=no
6263fi
6264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265
6266if test $ac_cv_header_stdc = yes; then
6267  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6268  cat >conftest.$ac_ext <<_ACEOF
6269/* confdefs.h.  */
6270_ACEOF
6271cat confdefs.h >>conftest.$ac_ext
6272cat >>conftest.$ac_ext <<_ACEOF
6273/* end confdefs.h.  */
6274#include <string.h>
6275
6276_ACEOF
6277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6278  $EGREP "memchr" >/dev/null 2>&1; then
6279  :
6280else
6281  ac_cv_header_stdc=no
6282fi
6283rm -f conftest*
6284
6285fi
6286
6287if test $ac_cv_header_stdc = yes; then
6288  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6289  cat >conftest.$ac_ext <<_ACEOF
6290/* confdefs.h.  */
6291_ACEOF
6292cat confdefs.h >>conftest.$ac_ext
6293cat >>conftest.$ac_ext <<_ACEOF
6294/* end confdefs.h.  */
6295#include <stdlib.h>
6296
6297_ACEOF
6298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299  $EGREP "free" >/dev/null 2>&1; then
6300  :
6301else
6302  ac_cv_header_stdc=no
6303fi
6304rm -f conftest*
6305
6306fi
6307
6308if test $ac_cv_header_stdc = yes; then
6309  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6310  if test "$cross_compiling" = yes; then
6311  :
6312else
6313  cat >conftest.$ac_ext <<_ACEOF
6314/* confdefs.h.  */
6315_ACEOF
6316cat confdefs.h >>conftest.$ac_ext
6317cat >>conftest.$ac_ext <<_ACEOF
6318/* end confdefs.h.  */
6319#include <ctype.h>
6320#if ((' ' & 0x0FF) == 0x020)
6321# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6322# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6323#else
6324# define ISLOWER(c) \
6325                   (('a' <= (c) && (c) <= 'i') \
6326                     || ('j' <= (c) && (c) <= 'r') \
6327                     || ('s' <= (c) && (c) <= 'z'))
6328# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6329#endif
6330
6331#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6332int
6333main ()
6334{
6335  int i;
6336  for (i = 0; i < 256; i++)
6337    if (XOR (islower (i), ISLOWER (i))
6338        || toupper (i) != TOUPPER (i))
6339      exit(2);
6340  exit (0);
6341}
6342_ACEOF
6343rm -f conftest$ac_exeext
6344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6345  (eval $ac_link) 2>&5
6346  ac_status=$?
6347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350  (eval $ac_try) 2>&5
6351  ac_status=$?
6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353  (exit $ac_status); }; }; then
6354  :
6355else
6356  echo "$as_me: program exited with status $ac_status" >&5
6357echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
6360( exit $ac_status )
6361ac_cv_header_stdc=no
6362fi
6363rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6364fi
6365fi
6366fi
6367echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6368echo "${ECHO_T}$ac_cv_header_stdc" >&6
6369if test $ac_cv_header_stdc = yes; then
6370
6371cat >>confdefs.h <<\_ACEOF
6372#define STDC_HEADERS 1
6373_ACEOF
6374
6375fi
6376
6377# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6388                  inttypes.h stdint.h unistd.h
6389do
6390as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6391echo "$as_me:$LINENO: checking for $ac_header" >&5
6392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394  echo $ECHO_N "(cached) $ECHO_C" >&6
6395else
6396  cat >conftest.$ac_ext <<_ACEOF
6397/* confdefs.h.  */
6398_ACEOF
6399cat confdefs.h >>conftest.$ac_ext
6400cat >>conftest.$ac_ext <<_ACEOF
6401/* end confdefs.h.  */
6402$ac_includes_default
6403
6404#include <$ac_header>
6405_ACEOF
6406rm -f conftest.$ac_objext
6407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408  (eval $ac_compile) 2>conftest.er1
6409  ac_status=$?
6410  grep -v '^ *+' conftest.er1 >conftest.err
6411  rm -f conftest.er1
6412  cat conftest.err >&5
6413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414  (exit $ac_status); } &&
6415         { ac_try='test -z "$ac_c_werror_flag"
6416                         || test ! -s conftest.err'
6417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418  (eval $ac_try) 2>&5
6419  ac_status=$?
6420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421  (exit $ac_status); }; } &&
6422         { ac_try='test -s conftest.$ac_objext'
6423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424  (eval $ac_try) 2>&5
6425  ac_status=$?
6426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427  (exit $ac_status); }; }; then
6428  eval "$as_ac_Header=yes"
6429else
6430  echo "$as_me: failed program was:" >&5
6431sed 's/^/| /' conftest.$ac_ext >&5
6432
6433eval "$as_ac_Header=no"
6434fi
6435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436fi
6437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6439if test `eval echo '${'$as_ac_Header'}'` = yes; then
6440  cat >>confdefs.h <<_ACEOF
6441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6442_ACEOF
6443
6444fi
6445
6446done
6447
6448
6449
6450for ac_header in dlfcn.h
6451do
6452as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6453if eval "test \"\${$as_ac_Header+set}\" = set"; then
6454  echo "$as_me:$LINENO: checking for $ac_header" >&5
6455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6456if eval "test \"\${$as_ac_Header+set}\" = set"; then
6457  echo $ECHO_N "(cached) $ECHO_C" >&6
6458fi
6459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6461else
6462  # Is the header compilable?
6463echo "$as_me:$LINENO: checking $ac_header usability" >&5
6464echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6465cat >conftest.$ac_ext <<_ACEOF
6466/* confdefs.h.  */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h.  */
6471$ac_includes_default
6472#include <$ac_header>
6473_ACEOF
6474rm -f conftest.$ac_objext
6475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476  (eval $ac_compile) 2>conftest.er1
6477  ac_status=$?
6478  grep -v '^ *+' conftest.er1 >conftest.err
6479  rm -f conftest.er1
6480  cat conftest.err >&5
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); } &&
6483         { ac_try='test -z "$ac_c_werror_flag"
6484                         || test ! -s conftest.err'
6485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6486  (eval $ac_try) 2>&5
6487  ac_status=$?
6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489  (exit $ac_status); }; } &&
6490         { ac_try='test -s conftest.$ac_objext'
6491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492  (eval $ac_try) 2>&5
6493  ac_status=$?
6494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495  (exit $ac_status); }; }; then
6496  ac_header_compiler=yes
6497else
6498  echo "$as_me: failed program was:" >&5
6499sed 's/^/| /' conftest.$ac_ext >&5
6500
6501ac_header_compiler=no
6502fi
6503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6504echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6505echo "${ECHO_T}$ac_header_compiler" >&6
6506
6507# Is the header present?
6508echo "$as_me:$LINENO: checking $ac_header presence" >&5
6509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6510cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h.  */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h.  */
6516#include <$ac_header>
6517_ACEOF
6518if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6519  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6520  ac_status=$?
6521  grep -v '^ *+' conftest.er1 >conftest.err
6522  rm -f conftest.er1
6523  cat conftest.err >&5
6524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525  (exit $ac_status); } >/dev/null; then
6526  if test -s conftest.err; then
6527    ac_cpp_err=$ac_c_preproc_warn_flag
6528    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6529  else
6530    ac_cpp_err=
6531  fi
6532else
6533  ac_cpp_err=yes
6534fi
6535if test -z "$ac_cpp_err"; then
6536  ac_header_preproc=yes
6537else
6538  echo "$as_me: failed program was:" >&5
6539sed 's/^/| /' conftest.$ac_ext >&5
6540
6541  ac_header_preproc=no
6542fi
6543rm -f conftest.err conftest.$ac_ext
6544echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6545echo "${ECHO_T}$ac_header_preproc" >&6
6546
6547# So?  What about this header?
6548case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6549  yes:no: )
6550    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6551echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6552    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6553echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6554    ac_header_preproc=yes
6555    ;;
6556  no:yes:* )
6557    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6558echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6559    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6560echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6561    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6562echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6563    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6564echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6565    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6566echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6567    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6568echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6569    (
6570      cat <<\_ASBOX
6571## ---------------------------------------- ##
6572## Report this to coin-clp@list.coin-or.org ##
6573## ---------------------------------------- ##
6574_ASBOX
6575    ) |
6576      sed "s/^/$as_me: WARNING:     /" >&2
6577    ;;
6578esac
6579echo "$as_me:$LINENO: checking for $ac_header" >&5
6580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6581if eval "test \"\${$as_ac_Header+set}\" = set"; then
6582  echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584  eval "$as_ac_Header=\$ac_header_preproc"
6585fi
6586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6588
6589fi
6590if test `eval echo '${'$as_ac_Header'}'` = yes; then
6591  cat >>confdefs.h <<_ACEOF
6592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6593_ACEOF
6594
6595fi
6596
6597done
6598
6599
6600
6601if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6602    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6603    (test "X$CXX" != "Xg++"))) ; then
6604  ac_ext=cc
6605ac_cpp='$CXXCPP $CPPFLAGS'
6606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6609echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6610echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6611if test -z "$CXXCPP"; then
6612  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6613  echo $ECHO_N "(cached) $ECHO_C" >&6
6614else
6615      # Double quotes because CXXCPP needs to be expanded
6616    for CXXCPP in "$CXX -E" "/lib/cpp"
6617    do
6618      ac_preproc_ok=false
6619for ac_cxx_preproc_warn_flag in '' yes
6620do
6621  # Use a header file that comes with gcc, so configuring glibc
6622  # with a fresh cross-compiler works.
6623  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6624  # <limits.h> exists even on freestanding compilers.
6625  # On the NeXT, cc -E runs the code through the compiler's parser,
6626  # not just through cpp. "Syntax error" is here to catch this case.
6627  cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633#ifdef __STDC__
6634# include <limits.h>
6635#else
6636# include <assert.h>
6637#endif
6638                     Syntax error
6639_ACEOF
6640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6641  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6642  ac_status=$?
6643  grep -v '^ *+' conftest.er1 >conftest.err
6644  rm -f conftest.er1
6645  cat conftest.err >&5
6646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647  (exit $ac_status); } >/dev/null; then
6648  if test -s conftest.err; then
6649    ac_cpp_err=$ac_cxx_preproc_warn_flag
6650    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6651  else
6652    ac_cpp_err=
6653  fi
6654else
6655  ac_cpp_err=yes
6656fi
6657if test -z "$ac_cpp_err"; then
6658  :
6659else
6660  echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663  # Broken: fails on valid input.
6664continue
6665fi
6666rm -f conftest.err conftest.$ac_ext
6667
6668  # OK, works on sane cases.  Now check whether non-existent headers
6669  # can be detected and how.
6670  cat >conftest.$ac_ext <<_ACEOF
6671/* confdefs.h.  */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
6675/* end confdefs.h.  */
6676#include <ac_nonexistent.h>
6677_ACEOF
6678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6680  ac_status=$?
6681  grep -v '^ *+' conftest.er1 >conftest.err
6682  rm -f conftest.er1
6683  cat conftest.err >&5
6684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685  (exit $ac_status); } >/dev/null; then
6686  if test -s conftest.err; then
6687    ac_cpp_err=$ac_cxx_preproc_warn_flag
6688    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6689  else
6690    ac_cpp_err=
6691  fi
6692else
6693  ac_cpp_err=yes
6694fi
6695if test -z "$ac_cpp_err"; then
6696  # Broken: success on invalid input.
6697continue
6698else
6699  echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702  # Passes both tests.
6703ac_preproc_ok=:
6704break
6705fi
6706rm -f conftest.err conftest.$ac_ext
6707
6708done
6709# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6710rm -f conftest.err conftest.$ac_ext
6711if $ac_preproc_ok; then
6712  break
6713fi
6714
6715    done
6716    ac_cv_prog_CXXCPP=$CXXCPP
6717
6718fi
6719  CXXCPP=$ac_cv_prog_CXXCPP
6720else
6721  ac_cv_prog_CXXCPP=$CXXCPP
6722fi
6723echo "$as_me:$LINENO: result: $CXXCPP" >&5
6724echo "${ECHO_T}$CXXCPP" >&6
6725ac_preproc_ok=false
6726for ac_cxx_preproc_warn_flag in '' yes
6727do
6728  # Use a header file that comes with gcc, so configuring glibc
6729  # with a fresh cross-compiler works.
6730  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6731  # <limits.h> exists even on freestanding compilers.
6732  # On the NeXT, cc -E runs the code through the compiler's parser,
6733  # not just through cpp. "Syntax error" is here to catch this case.
6734  cat >conftest.$ac_ext <<_ACEOF
6735/* confdefs.h.  */
6736_ACEOF
6737cat confdefs.h >>conftest.$ac_ext
6738cat >>conftest.$ac_ext <<_ACEOF
6739/* end confdefs.h.  */
6740#ifdef __STDC__
6741# include <limits.h>
6742#else
6743# include <assert.h>
6744#endif
6745                     Syntax error
6746_ACEOF
6747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6748  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6749  ac_status=$?
6750  grep -v '^ *+' conftest.er1 >conftest.err
6751  rm -f conftest.er1
6752  cat conftest.err >&5
6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754  (exit $ac_status); } >/dev/null; then
6755  if test -s conftest.err; then
6756    ac_cpp_err=$ac_cxx_preproc_warn_flag
6757    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6758  else
6759    ac_cpp_err=
6760  fi
6761else
6762  ac_cpp_err=yes
6763fi
6764if test -z "$ac_cpp_err"; then
6765  :
6766else
6767  echo "$as_me: failed program was:" >&5
6768sed 's/^/| /' conftest.$ac_ext >&5
6769
6770  # Broken: fails on valid input.
6771continue
6772fi
6773rm -f conftest.err conftest.$ac_ext
6774
6775  # OK, works on sane cases.  Now check whether non-existent headers
6776  # can be detected and how.
6777  cat >conftest.$ac_ext <<_ACEOF
6778/* confdefs.h.  */
6779_ACEOF
6780cat confdefs.h >>conftest.$ac_ext
6781cat >>conftest.$ac_ext <<_ACEOF
6782/* end confdefs.h.  */
6783#include <ac_nonexistent.h>
6784_ACEOF
6785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6786  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6787  ac_status=$?
6788  grep -v '^ *+' conftest.er1 >conftest.err
6789  rm -f conftest.er1
6790  cat conftest.err >&5
6791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792  (exit $ac_status); } >/dev/null; then
6793  if test -s conftest.err; then
6794    ac_cpp_err=$ac_cxx_preproc_warn_flag
6795    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6796  else
6797    ac_cpp_err=
6798  fi
6799else
6800  ac_cpp_err=yes
6801fi
6802if test -z "$ac_cpp_err"; then
6803  # Broken: success on invalid input.
6804continue
6805else
6806  echo "$as_me: failed program was:" >&5
6807sed 's/^/| /' conftest.$ac_ext >&5
6808
6809  # Passes both tests.
6810ac_preproc_ok=:
6811break
6812fi
6813rm -f conftest.err conftest.$ac_ext
6814
6815done
6816# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6817rm -f conftest.err conftest.$ac_ext
6818if $ac_preproc_ok; then
6819  :
6820else
6821  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6822See \`config.log' for more details." >&5
6823echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6824See \`config.log' for more details." >&2;}
6825   { (exit 1); exit 1; }; }
6826fi
6827
6828ac_ext=cc
6829ac_cpp='$CXXCPP $CPPFLAGS'
6830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6833
6834fi
6835
6836ac_ext=f
6837ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6838ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6840if test -n "$ac_tool_prefix"; then
6841  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6842  do
6843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6845echo "$as_me:$LINENO: checking for $ac_word" >&5
6846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6847if test "${ac_cv_prog_F77+set}" = set; then
6848  echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850  if test -n "$F77"; then
6851  ac_cv_prog_F77="$F77" # Let the user override the test.
6852else
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856  IFS=$as_save_IFS
6857  test -z "$as_dir" && as_dir=.
6858  for ac_exec_ext in '' $ac_executable_extensions; do
6859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862    break 2
6863  fi
6864done
6865done
6866
6867fi
6868fi
6869F77=$ac_cv_prog_F77
6870if test -n "$F77"; then
6871  echo "$as_me:$LINENO: result: $F77" >&5
6872echo "${ECHO_T}$F77" >&6
6873else
6874  echo "$as_me:$LINENO: result: no" >&5
6875echo "${ECHO_T}no" >&6
6876fi
6877
6878    test -n "$F77" && break
6879  done
6880fi
6881if test -z "$F77"; then
6882  ac_ct_F77=$F77
6883  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6884do
6885  # Extract the first word of "$ac_prog", so it can be a program name with args.
6886set dummy $ac_prog; ac_word=$2
6887echo "$as_me:$LINENO: checking for $ac_word" >&5
6888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6889if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6890  echo $ECHO_N "(cached) $ECHO_C" >&6
6891else
6892  if test -n "$ac_ct_F77"; then
6893  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6894else
6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898  IFS=$as_save_IFS
6899  test -z "$as_dir" && as_dir=.
6900  for ac_exec_ext in '' $ac_executable_extensions; do
6901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902    ac_cv_prog_ac_ct_F77="$ac_prog"
6903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904    break 2
6905  fi
6906done
6907done
6908
6909fi
6910fi
6911ac_ct_F77=$ac_cv_prog_ac_ct_F77
6912if test -n "$ac_ct_F77"; then
6913  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6914echo "${ECHO_T}$ac_ct_F77" >&6
6915else
6916  echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6
6918fi
6919
6920  test -n "$ac_ct_F77" && break
6921done
6922
6923  F77=$ac_ct_F77
6924fi
6925
6926
6927# Provide some information about the compiler.
6928echo "$as_me:6928:" \
6929     "checking for Fortran 77 compiler version" >&5
6930ac_compiler=`set X $ac_compile; echo $2`
6931{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6932  (eval $ac_compiler --version </dev/null >&5) 2>&5
6933  ac_status=$?
6934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935  (exit $ac_status); }
6936{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6937  (eval $ac_compiler -v </dev/null >&5) 2>&5
6938  ac_status=$?
6939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940  (exit $ac_status); }
6941{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6942  (eval $ac_compiler -V </dev/null >&5) 2>&5
6943  ac_status=$?
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); }
6946rm -f a.out
6947
6948# If we don't use `.F' as extension, the preprocessor is not run on the
6949# input file.  (Note that this only needs to work for GNU compilers.)
6950ac_save_ext=$ac_ext
6951ac_ext=F
6952echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6953echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6954if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6955  echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957  cat >conftest.$ac_ext <<_ACEOF
6958      program main
6959#ifndef __GNUC__
6960       choke me
6961#endif
6962
6963      end
6964_ACEOF
6965rm -f conftest.$ac_objext
6966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6967  (eval $ac_compile) 2>conftest.er1
6968  ac_status=$?
6969  grep -v '^ *+' conftest.er1 >conftest.err
6970  rm -f conftest.er1
6971  cat conftest.err >&5
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); } &&
6974         { ac_try='test -z "$ac_f77_werror_flag"
6975                         || test ! -s conftest.err'
6976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977  (eval $ac_try) 2>&5
6978  ac_status=$?
6979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980  (exit $ac_status); }; } &&
6981         { ac_try='test -s conftest.$ac_objext'
6982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983  (eval $ac_try) 2>&5
6984  ac_status=$?
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); }; }; then
6987  ac_compiler_gnu=yes
6988else
6989  echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992ac_compiler_gnu=no
6993fi
6994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6995ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6996
6997fi
6998echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6999echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7000ac_ext=$ac_save_ext
7001ac_test_FFLAGS=${FFLAGS+set}
7002ac_save_FFLAGS=$FFLAGS
7003FFLAGS=
7004echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7005echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7006if test "${ac_cv_prog_f77_g+set}" = set; then
7007  echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009  FFLAGS=-g
7010cat >conftest.$ac_ext <<_ACEOF
7011      program main
7012
7013      end
7014_ACEOF
7015rm -f conftest.$ac_objext
7016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7017  (eval $ac_compile) 2>conftest.er1
7018  ac_status=$?
7019  grep -v '^ *+' conftest.er1 >conftest.err
7020  rm -f conftest.er1
7021  cat conftest.err >&5
7022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023  (exit $ac_status); } &&
7024         { ac_try='test -z "$ac_f77_werror_flag"
7025                         || test ! -s conftest.err'
7026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027  (eval $ac_try) 2>&5
7028  ac_status=$?
7029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030  (exit $ac_status); }; } &&
7031         { ac_try='test -s conftest.$ac_objext'
7032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033  (eval $ac_try) 2>&5
7034  ac_status=$?
7035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036  (exit $ac_status); }; }; then
7037  ac_cv_prog_f77_g=yes
7038else
7039  echo "$as_me: failed program was:" >&5
7040sed 's/^/| /' conftest.$ac_ext >&5
7041
7042ac_cv_prog_f77_g=no
7043fi
7044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7045
7046fi
7047echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7048echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7049if test "$ac_test_FFLAGS" = set; then
7050  FFLAGS=$ac_save_FFLAGS
7051elif test $ac_cv_prog_f77_g = yes; then
7052  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7053    FFLAGS="-g -O2"
7054  else
7055    FFLAGS="-g"
7056  fi
7057else
7058  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7059    FFLAGS="-O2"
7060  else
7061    FFLAGS=
7062  fi
7063fi
7064
7065G77=`test $ac_compiler_gnu = yes && echo yes`
7066ac_ext=c
7067ac_cpp='$CPP $CPPFLAGS'
7068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7070ac_compiler_gnu=$ac_cv_c_compiler_gnu
7071
7072
7073
7074# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7075
7076# find the maximum length of command line arguments
7077echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7078echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7079if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7080  echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082    i=0
7083  teststring="ABCD"
7084
7085  case $build_os in
7086  msdosdjgpp*)
7087    # On DJGPP, this test can blow up pretty badly due to problems in libc
7088    # (any single argument exceeding 2000 bytes causes a buffer overrun
7089    # during glob expansion).  Even if it were fixed, the result of this
7090    # check would be larger than it should be.
7091    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7092    ;;
7093
7094  gnu*)
7095    # Under GNU Hurd, this test is not required because there is
7096    # no limit to the length of command line arguments.
7097    # Libtool will interpret -1 as no limit whatsoever
7098    lt_cv_sys_max_cmd_len=-1;
7099    ;;
7100
7101  cygwin* | mingw*)
7102    # On Win9x/ME, this test blows up -- it succeeds, but takes
7103    # about 5 minutes as the teststring grows exponentially.
7104    # Worse, since 9x/ME are not pre-emptively multitasking,
7105    # you end up with a "frozen" computer, even though with patience
7106    # the test eventually succeeds (with a max line length of 256k).
7107    # Instead, let's just punt: use the minimum linelength reported by
7108    # all of the supported platforms: 8192 (on NT/2K/XP).
7109    lt_cv_sys_max_cmd_len=8192;
7110    ;;
7111
7112  amigaos*)
7113    # On AmigaOS with pdksh, this test takes hours, literally.
7114    # So we just punt and use a minimum line length of 8192.
7115    lt_cv_sys_max_cmd_len=8192;
7116    ;;
7117
7118  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7119    # This has been around since 386BSD, at least.  Likely further.
7120    if test -x /sbin/sysctl; then
7121      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7122    elif test -x /usr/sbin/sysctl; then
7123      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7124    else
7125      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7126    fi
7127    # And add a safety zone
7128    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7129    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7130    ;;
7131
7132  interix*)
7133    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7134    lt_cv_sys_max_cmd_len=196608
7135    ;;
7136
7137  osf*)
7138    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7139    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7140    # nice to cause kernel panics so lets avoid the loop below.
7141    # First set a reasonable default.
7142    lt_cv_sys_max_cmd_len=16384
7143    #
7144    if test -x /sbin/sysconfig; then
7145      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7146        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7147      esac
7148    fi
7149    ;;
7150  sco3.2v5*)
7151    lt_cv_sys_max_cmd_len=102400
7152    ;;
7153  sysv5* | sco5v6* | sysv4.2uw2*)
7154    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7155    if test -n "$kargmax"; then
7156      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7157    else
7158      lt_cv_sys_max_cmd_len=32768
7159    fi
7160    ;;
7161  *)
7162    # If test is not a shell built-in, we'll probably end up computing a
7163    # maximum length that is only half of the actual maximum length, but
7164    # we can't tell.
7165    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7166    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7167               = "XX$teststring") >/dev/null 2>&1 &&
7168            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7169            lt_cv_sys_max_cmd_len=$new_result &&
7170            test $i != 17 # 1/2 MB should be enough
7171    do
7172      i=`expr $i + 1`
7173      teststring=$teststring$teststring
7174    done
7175    teststring=
7176    # Add a significant safety factor because C++ compilers can tack on massive
7177    # amounts of additional arguments before passing them to the linker.
7178    # It appears as though 1/2 is a usable value.
7179    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7180    ;;
7181  esac
7182
7183fi
7184
7185if test -n $lt_cv_sys_max_cmd_len ; then
7186  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7187echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7188else
7189  echo "$as_me:$LINENO: result: none" >&5
7190echo "${ECHO_T}none" >&6
7191fi
7192
7193
7194
7195
7196# Check for command to grab the raw symbol name followed by C symbol from nm.
7197echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7198echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7199if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7200  echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202
7203# These are sane defaults that work on at least a few old systems.
7204# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7205
7206# Character class describing NM global symbol codes.
7207symcode='[BCDEGRST]'
7208
7209# Regexp to match symbols that can be accessed directly from C.
7210sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7211
7212# Transform an extracted symbol line into a proper C declaration
7213lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7214
7215# Transform an extracted symbol line into symbol name and symbol address
7216lt_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'"
7217
7218# Define system-specific variables.
7219case $host_os in
7220aix*)
7221  symcode='[BCDT]'
7222  ;;
7223cygwin* | mingw* | pw32*)
7224  symcode='[ABCDGISTW]'
7225  ;;
7226hpux*) # Its linker distinguishes data from code symbols
7227  if test "$host_cpu" = ia64; then
7228    symcode='[ABCDEGRST]'
7229  fi
7230  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7231  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7232  ;;
7233linux*)
7234  if test "$host_cpu" = ia64; then
7235    symcode='[ABCDGIRSTW]'
7236    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7237    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'"
7238  fi
7239  ;;
7240irix* | nonstopux*)
7241  symcode='[BCDEGRST]'
7242  ;;
7243osf*)
7244  symcode='[BCDEGQRST]'
7245  ;;
7246solaris*)
7247  symcode='[BDRT]'
7248  ;;
7249sco3.2v5*)
7250  symcode='[DT]'
7251  ;;
7252sysv4.2uw2*)
7253  symcode='[DT]'
7254  ;;
7255sysv5* | sco5v6* | unixware* | OpenUNIX*)
7256  symcode='[ABDT]'
7257  ;;
7258sysv4)
7259  symcode='[DFNSTU]'
7260  ;;
7261esac
7262
7263# Handle CRLF in mingw tool chain
7264opt_cr=
7265case $build_os in
7266mingw*)
7267  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7268  ;;
7269esac
7270
7271# If we're using GNU nm, then use its standard symbol codes.
7272case `$NM -V 2>&1` in
7273*GNU* | *'with BFD'*)
7274  symcode='[ABCDGIRSTW]' ;;
7275esac
7276
7277# Try without a prefix undercore, then with it.
7278for ac_symprfx in "" "_"; do
7279
7280  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7281  symxfrm="\\1 $ac_symprfx\\2 \\2"
7282
7283  # Write the raw and C identifiers.
7284  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7285
7286  # Check to see that the pipe works correctly.
7287  pipe_works=no
7288
7289  rm -f conftest*
7290  cat > conftest.$ac_ext <<EOF
7291#ifdef __cplusplus
7292extern "C" {
7293#endif
7294char nm_test_var;
7295void nm_test_func(){}
7296#ifdef __cplusplus
7297}
7298#endif
7299int main(){nm_test_var='a';nm_test_func();return(0);}
7300EOF
7301
7302  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303  (eval $ac_compile) 2>&5
7304  ac_status=$?
7305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306  (exit $ac_status); }; then
7307    # Now try to grab the symbols.
7308    nlist=conftest.nm
7309    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7310  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7311  ac_status=$?
7312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313  (exit $ac_status); } && test -s "$nlist"; then
7314      # Try sorting and uniquifying the output.
7315      if sort "$nlist" | uniq > "$nlist"T; then
7316        mv -f "$nlist"T "$nlist"
7317      else
7318        rm -f "$nlist"T
7319      fi
7320
7321      # Make sure that we snagged all the symbols we need.
7322      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7323        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7324          cat <<EOF > conftest.$ac_ext
7325#ifdef __cplusplus
7326extern "C" {
7327#endif
7328
7329EOF
7330          # Now generate the symbol file.
7331          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7332
7333          cat <<EOF >> conftest.$ac_ext
7334#if defined (__STDC__) && __STDC__
7335# define lt_ptr_t void *
7336#else
7337# define lt_ptr_t char *
7338# define const
7339#endif
7340
7341/* The mapping between symbol names and symbols. */
7342const struct {
7343  const char *name;
7344  lt_ptr_t address;
7345}
7346lt_preloaded_symbols[] =
7347{
7348EOF
7349          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7350          cat <<\EOF >> conftest.$ac_ext
7351  {0, (lt_ptr_t) 0}
7352};
7353
7354#ifdef __cplusplus
7355}
7356#endif
7357EOF
7358          # Now try linking the two files.
7359          mv conftest.$ac_objext conftstm.$ac_objext
7360          lt_save_LIBS="$LIBS"
7361          lt_save_CFLAGS="$CFLAGS"
7362          LIBS="conftstm.$ac_objext"
7363          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7364          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365  (eval $ac_link) 2>&5
7366  ac_status=$?
7367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7369            pipe_works=yes
7370          fi
7371          LIBS="$lt_save_LIBS"
7372          CFLAGS="$lt_save_CFLAGS"
7373        else
7374          echo "cannot find nm_test_func in $nlist" >&5
7375        fi
7376      else
7377        echo "cannot find nm_test_var in $nlist" >&5
7378      fi
7379    else
7380      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7381    fi
7382  else
7383    echo "$progname: failed program was:" >&5
7384    cat conftest.$ac_ext >&5
7385  fi
7386  rm -f conftest* conftst*
7387
7388  # Do not use the global_symbol_pipe unless it works.
7389  if test "$pipe_works" = yes; then
7390    break
7391  else
7392    lt_cv_sys_global_symbol_pipe=
7393  fi
7394done
7395
7396fi
7397
7398if test -z "$lt_cv_sys_global_symbol_pipe"; then
7399  lt_cv_sys_global_symbol_to_cdecl=
7400fi
7401if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7402  echo "$as_me:$LINENO: result: failed" >&5
7403echo "${ECHO_T}failed" >&6
7404else
7405  echo "$as_me:$LINENO: result: ok" >&5
7406echo "${ECHO_T}ok" >&6
7407fi
7408
7409echo "$as_me:$LINENO: checking for objdir" >&5
7410echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7411if test "${lt_cv_objdir+set}" = set; then
7412  echo $ECHO_N "(cached) $ECHO_C" >&6
7413else
7414  rm -f .libs 2>/dev/null
7415mkdir .libs 2>/dev/null
7416if test -d .libs; then
7417  lt_cv_objdir=.libs
7418else
7419  # MS-DOS does not allow filenames that begin with a dot.
7420  lt_cv_objdir=_libs
7421fi
7422rmdir .libs 2>/dev/null
7423fi
7424echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7425echo "${ECHO_T}$lt_cv_objdir" >&6
7426objdir=$lt_cv_objdir
7427
7428
7429
7430
7431
7432case $host_os in
7433aix3*)
7434  # AIX sometimes has problems with the GCC collect2 program.  For some
7435  # reason, if we set the COLLECT_NAMES environment variable, the problems
7436  # vanish in a puff of smoke.
7437  if test "X${COLLECT_NAMES+set}" != Xset; then
7438    COLLECT_NAMES=
7439    export COLLECT_NAMES
7440  fi
7441  ;;
7442esac
7443
7444# Sed substitution that helps us do robust quoting.  It backslashifies
7445# metacharacters that are still active within double-quoted strings.
7446Xsed='sed -e 1s/^X//'
7447sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7448
7449# Same as above, but do not quote variable references.
7450double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7451
7452# Sed substitution to delay expansion of an escaped shell variable in a
7453# double_quote_subst'ed string.
7454delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7455
7456# Sed substitution to avoid accidental globbing in evaled expressions
7457no_glob_subst='s/\*/\\\*/g'
7458
7459# Constants:
7460rm="rm -f"
7461
7462# Global variables:
7463default_ofile=libtool
7464can_build_shared=yes
7465
7466# All known linkers require a `.a' archive for static linking (except MSVC,
7467# which needs '.lib').
7468libext=a
7469ltmain="$ac_aux_dir/ltmain.sh"
7470ofile="$default_ofile"
7471with_gnu_ld="$lt_cv_prog_gnu_ld"
7472
7473if test -n "$ac_tool_prefix"; then
7474  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7475set dummy ${ac_tool_prefix}ar; ac_word=$2
7476echo "$as_me:$LINENO: checking for $ac_word" >&5
7477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7478if test "${ac_cv_prog_AR+set}" = set; then
7479  echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481  if test -n "$AR"; then
7482  ac_cv_prog_AR="$AR" # Let the user override the test.
7483else
7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487  IFS=$as_save_IFS
7488  test -z "$as_dir" && as_dir=.
7489  for ac_exec_ext in '' $ac_executable_extensions; do
7490  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491    ac_cv_prog_AR="${ac_tool_prefix}ar"
7492    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493    break 2
7494  fi
7495done
7496done
7497
7498fi
7499fi
7500AR=$ac_cv_prog_AR
7501if test -n "$AR"; then
7502  echo "$as_me:$LINENO: result: $AR" >&5
7503echo "${ECHO_T}$AR" >&6
7504else
7505  echo "$as_me:$LINENO: result: no" >&5
7506echo "${ECHO_T}no" >&6
7507fi
7508
7509fi
7510if test -z "$ac_cv_prog_AR"; then
7511  ac_ct_AR=$AR
7512  # Extract the first word of "ar", so it can be a program name with args.
7513set dummy ar; ac_word=$2
7514echo "$as_me:$LINENO: checking for $ac_word" >&5
7515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7516if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7517  echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519  if test -n "$ac_ct_AR"; then
7520  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7521else
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525  IFS=$as_save_IFS
7526  test -z "$as_dir" && as_dir=.
7527  for ac_exec_ext in '' $ac_executable_extensions; do
7528  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529    ac_cv_prog_ac_ct_AR="ar"
7530    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7531    break 2
7532  fi
7533done
7534done
7535
7536  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7537fi
7538fi
7539ac_ct_AR=$ac_cv_prog_ac_ct_AR
7540if test -n "$ac_ct_AR"; then
7541  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7542echo "${ECHO_T}$ac_ct_AR" >&6
7543else
7544  echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6
7546fi
7547
7548  AR=$ac_ct_AR
7549else
7550  AR="$ac_cv_prog_AR"
7551fi
7552
7553if test -n "$ac_tool_prefix"; then
7554  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7555set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7556echo "$as_me:$LINENO: checking for $ac_word" >&5
7557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7558if test "${ac_cv_prog_RANLIB+set}" = set; then
7559  echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561  if test -n "$RANLIB"; then
7562  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7563else
7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565for as_dir in $PATH
7566do
7567  IFS=$as_save_IFS
7568  test -z "$as_dir" && as_dir=.
7569  for ac_exec_ext in '' $ac_executable_extensions; do
7570  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573    break 2
7574  fi
7575done
7576done
7577
7578fi
7579fi
7580RANLIB=$ac_cv_prog_RANLIB
7581if test -n "$RANLIB"; then
7582  echo "$as_me:$LINENO: result: $RANLIB" >&5
7583echo "${ECHO_T}$RANLIB" >&6
7584else
7585  echo "$as_me:$LINENO: result: no" >&5
7586echo "${ECHO_T}no" >&6
7587fi
7588
7589fi
7590if test -z "$ac_cv_prog_RANLIB"; then
7591  ac_ct_RANLIB=$RANLIB
7592  # Extract the first word of "ranlib", so it can be a program name with args.
7593set dummy ranlib; ac_word=$2
7594echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7597  echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599  if test -n "$ac_ct_RANLIB"; then
7600  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7601else
7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605  IFS=$as_save_IFS
7606  test -z "$as_dir" && as_dir=.
7607  for ac_exec_ext in '' $ac_executable_extensions; do
7608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609    ac_cv_prog_ac_ct_RANLIB="ranlib"
7610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611    break 2
7612  fi
7613done
7614done
7615
7616  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7617fi
7618fi
7619ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7620if test -n "$ac_ct_RANLIB"; then
7621  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7622echo "${ECHO_T}$ac_ct_RANLIB" >&6
7623else
7624  echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6
7626fi
7627
7628  RANLIB=$ac_ct_RANLIB
7629else
7630  RANLIB="$ac_cv_prog_RANLIB"
7631fi
7632
7633if test -n "$ac_tool_prefix"; then
7634  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7635set dummy ${ac_tool_prefix}strip; ac_word=$2
7636echo "$as_me:$LINENO: checking for $ac_word" >&5
7637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7638if test "${ac_cv_prog_STRIP+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  if test -n "$STRIP"; then
7642  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647  IFS=$as_save_IFS
7648  test -z "$as_dir" && as_dir=.
7649  for ac_exec_ext in '' $ac_executable_extensions; do
7650  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7652    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653    break 2
7654  fi
7655done
7656done
7657
7658fi
7659fi
7660STRIP=$ac_cv_prog_STRIP
7661if test -n "$STRIP"; then
7662  echo "$as_me:$LINENO: result: $STRIP" >&5
7663echo "${ECHO_T}$STRIP" >&6
7664else
7665  echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667fi
7668
7669fi
7670if test -z "$ac_cv_prog_STRIP"; then
7671  ac_ct_STRIP=$STRIP
7672  # Extract the first word of "strip", so it can be a program name with args.
7673set dummy strip; ac_word=$2
7674echo "$as_me:$LINENO: checking for $ac_word" >&5
7675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7676if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7677  echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679  if test -n "$ac_ct_STRIP"; then
7680  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7681else
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685  IFS=$as_save_IFS
7686  test -z "$as_dir" && as_dir=.
7687  for ac_exec_ext in '' $ac_executable_extensions; do
7688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689    ac_cv_prog_ac_ct_STRIP="strip"
7690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691    break 2
7692  fi
7693done
7694done
7695
7696  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7697fi
7698fi
7699ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7700if test -n "$ac_ct_STRIP"; then
7701  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7702echo "${ECHO_T}$ac_ct_STRIP" >&6
7703else
7704  echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706fi
7707
7708  STRIP=$ac_ct_STRIP
7709else
7710  STRIP="$ac_cv_prog_STRIP"
7711fi
7712
7713
7714old_CC="$CC"
7715old_CFLAGS="$CFLAGS"
7716
7717# Set sane defaults for various variables
7718test -z "$AR" && AR=ar
7719test -z "$AR_FLAGS" && AR_FLAGS=cru
7720test -z "$AS" && AS=as
7721test -z "$CC" && CC=cc
7722test -z "$LTCC" && LTCC=$CC
7723test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7724test -z "$DLLTOOL" && DLLTOOL=dlltool
7725test -z "$LD" && LD=ld
7726test -z "$LN_S" && LN_S="ln -s"
7727test -z "$MAGIC_CMD" && MAGIC_CMD=file
7728test -z "$NM" && NM=nm
7729test -z "$SED" && SED=sed
7730test -z "$OBJDUMP" && OBJDUMP=objdump
7731test -z "$RANLIB" && RANLIB=:
7732test -z "$STRIP" && STRIP=:
7733test -z "$ac_objext" && ac_objext=o
7734
7735# Determine commands to create old-style static archives.
7736old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7737old_postinstall_cmds='chmod 644 $oldlib'
7738old_postuninstall_cmds=
7739
7740if test -n "$RANLIB"; then
7741  case $host_os in
7742  openbsd*)
7743    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7744    ;;
7745  *)
7746    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7747    ;;
7748  esac
7749  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7750fi
7751
7752for cc_temp in $compiler""; do
7753  case $cc_temp in
7754    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7755    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7756    \-*) ;;
7757    *) break;;
7758  esac
7759done
7760cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7761
7762
7763# Only perform the check for file, if the check method requires it
7764case $deplibs_check_method in
7765file_magic*)
7766  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7767    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7768echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7769if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7770  echo $ECHO_N "(cached) $ECHO_C" >&6
7771else
7772  case $MAGIC_CMD in
7773[\\/*] |  ?:[\\/]*)
7774  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7775  ;;
7776*)
7777  lt_save_MAGIC_CMD="$MAGIC_CMD"
7778  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7779  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7780  for ac_dir in $ac_dummy; do
7781    IFS="$lt_save_ifs"
7782    test -z "$ac_dir" && ac_dir=.
7783    if test -f $ac_dir/${ac_tool_prefix}file; then
7784      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7785      if test -n "$file_magic_test_file"; then
7786        case $deplibs_check_method in
7787        "file_magic "*)
7788          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7789          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7790          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7791            $EGREP "$file_magic_regex" > /dev/null; then
7792            :
7793          else
7794            cat <<EOF 1>&2
7795
7796*** Warning: the command libtool uses to detect shared libraries,
7797*** $file_magic_cmd, produces output that libtool cannot recognize.
7798*** The result is that libtool may fail to recognize shared libraries
7799*** as such.  This will affect the creation of libtool libraries that
7800*** depend on shared libraries, but programs linked with such libtool
7801*** libraries will work regardless of this problem.  Nevertheless, you
7802*** may want to report the problem to your system manager and/or to
7803*** bug-libtool@gnu.org
7804
7805EOF
7806          fi ;;
7807        esac
7808      fi
7809      break
7810    fi
7811  done
7812  IFS="$lt_save_ifs"
7813  MAGIC_CMD="$lt_save_MAGIC_CMD"
7814  ;;
7815esac
7816fi
7817
7818MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7819if test -n "$MAGIC_CMD"; then
7820  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7821echo "${ECHO_T}$MAGIC_CMD" >&6
7822else
7823  echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
7825fi
7826
7827if test -z "$lt_cv_path_MAGIC_CMD"; then
7828  if test -n "$ac_tool_prefix"; then
7829    echo "$as_me:$LINENO: checking for file" >&5
7830echo $ECHO_N "checking for file... $ECHO_C" >&6
7831if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7832  echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
7834  case $MAGIC_CMD in
7835[\\/*] |  ?:[\\/]*)
7836  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7837  ;;
7838*)
7839  lt_save_MAGIC_CMD="$MAGIC_CMD"
7840  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7841  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7842  for ac_dir in $ac_dummy; do
7843    IFS="$lt_save_ifs"
7844    test -z "$ac_dir" && ac_dir=.
7845    if test -f $ac_dir/file; then
7846      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7847      if test -n "$file_magic_test_file"; then
7848        case $deplibs_check_method in
7849        "file_magic "*)
7850          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7851          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7852          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7853            $EGREP "$file_magic_regex" > /dev/null; then
7854            :
7855          else
7856            cat <<EOF 1>&2
7857
7858*** Warning: the command libtool uses to detect shared libraries,
7859*** $file_magic_cmd, produces output that libtool cannot recognize.
7860*** The result is that libtool may fail to recognize shared libraries
7861*** as such.  This will affect the creation of libtool libraries that
7862*** depend on shared libraries, but programs linked with such libtool
7863*** libraries will work regardless of this problem.  Nevertheless, you
7864*** may want to report the problem to your system manager and/or to
7865*** bug-libtool@gnu.org
7866
7867EOF
7868          fi ;;
7869        esac
7870      fi
7871      break
7872    fi
7873  done
7874  IFS="$lt_save_ifs"
7875  MAGIC_CMD="$lt_save_MAGIC_CMD"
7876  ;;
7877esac
7878fi
7879
7880MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7881if test -n "$MAGIC_CMD"; then
7882  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7883echo "${ECHO_T}$MAGIC_CMD" >&6
7884else
7885  echo "$as_me:$LINENO: result: no" >&5
7886echo "${ECHO_T}no" >&6
7887fi
7888
7889  else
7890    MAGIC_CMD=:
7891  fi
7892fi
7893
7894  fi
7895  ;;
7896esac
7897
7898enable_dlopen=no
7899enable_win32_dll=no
7900
7901# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7902if test "${enable_libtool_lock+set}" = set; then
7903  enableval="$enable_libtool_lock"
7904
7905fi;
7906test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7907
7908
7909# Check whether --with-pic or --without-pic was given.
7910if test "${with_pic+set}" = set; then
7911  withval="$with_pic"
7912  pic_mode="$withval"
7913else
7914  pic_mode=default
7915fi;
7916test -z "$pic_mode" && pic_mode=default
7917
7918# Use C for the default configuration in the libtool script
7919tagname=
7920lt_save_CC="$CC"
7921ac_ext=c
7922ac_cpp='$CPP $CPPFLAGS'
7923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7925ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926
7927
7928# Source file extension for C test sources.
7929ac_ext=c
7930
7931# Object file extension for compiled C test sources.
7932objext=o
7933objext=$objext
7934
7935# Code to be used in simple compile tests
7936lt_simple_compile_test_code="int some_variable = 0;\n"
7937
7938# Code to be used in simple link tests
7939lt_simple_link_test_code='int main(){return(0);}\n'
7940
7941
7942# If no C compiler was specified, use CC.
7943LTCC=${LTCC-"$CC"}
7944
7945# If no C compiler flags were specified, use CFLAGS.
7946LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7947
7948# Allow CC to be a program name with arguments.
7949compiler=$CC
7950
7951
7952# save warnings/boilerplate of simple test code
7953ac_outfile=conftest.$ac_objext
7954printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7955eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7956_lt_compiler_boilerplate=`cat conftest.err`
7957$rm conftest*
7958
7959ac_outfile=conftest.$ac_objext
7960printf "$lt_simple_link_test_code" >conftest.$ac_ext
7961eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7962_lt_linker_boilerplate=`cat conftest.err`
7963$rm conftest*
7964
7965
7966## CAVEAT EMPTOR:
7967## There is no encapsulation within the following macros, do not change
7968## the running order or otherwise move them around unless you know exactly
7969## what you are doing...
7970
7971lt_prog_compiler_no_builtin_flag=
7972
7973if test "$GCC" = yes; then
7974  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7975
7976
7977echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7978echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7979if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7980  echo $ECHO_N "(cached) $ECHO_C" >&6
7981else
7982  lt_cv_prog_compiler_rtti_exceptions=no
7983  ac_outfile=conftest.$ac_objext
7984   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7985   lt_compiler_flag="-fno-rtti -fno-exceptions"
7986   # Insert the option either (1) after the last *FLAGS variable, or
7987   # (2) before a word containing "conftest.", or (3) at the end.
7988   # Note that $ac_compile itself does not contain backslashes and begins
7989   # with a dollar sign (not a hyphen), so the echo should work correctly.
7990   # The option is referenced via a variable to avoid confusing sed.
7991   lt_compile=`echo "$ac_compile" | $SED \
7992   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7993   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7994   -e 's:$: $lt_compiler_flag:'`
7995   (eval echo "\"\$as_me:7995: $lt_compile\"" >&5)
7996   (eval "$lt_compile" 2>conftest.err)
7997   ac_status=$?
7998   cat conftest.err >&5
7999   echo "$as_me:7999: \$? = $ac_status" >&5
8000   if (exit $ac_status) && test -s "$ac_outfile"; then
8001     # The compiler can only warn and ignore the option if not recognized
8002     # So say no if there are warnings other than the usual output.
8003     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8004     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8005     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8006       lt_cv_prog_compiler_rtti_exceptions=yes
8007     fi
8008   fi
8009   $rm conftest*
8010
8011fi
8012echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8013echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8014
8015if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8016    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8017else
8018    :
8019fi
8020
8021fi
8022
8023lt_prog_compiler_wl=
8024lt_prog_compiler_pic=
8025lt_prog_compiler_static=
8026
8027echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8028echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8029
8030  if test "$GCC" = yes; then
8031    lt_prog_compiler_wl='-Wl,'
8032    lt_prog_compiler_static='-static'
8033
8034    case $host_os in
8035      aix*)
8036      # All AIX code is PIC.
8037      if test "$host_cpu" = ia64; then
8038        # AIX 5 now supports IA64 processor
8039        lt_prog_compiler_static='-Bstatic'
8040      fi
8041      ;;
8042
8043    amigaos*)
8044      # FIXME: we need at least 68020 code to build shared libraries, but
8045      # adding the `-m68020' flag to GCC prevents building anything better,
8046      # like `-m68040'.
8047      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8048      ;;
8049
8050    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8051      # PIC is the default for these OSes.
8052      ;;
8053
8054    mingw* | pw32* | os2*)
8055      # This hack is so that the source file can tell whether it is being
8056      # built for inclusion in a dll (and should export symbols for example).
8057      lt_prog_compiler_pic='-DDLL_EXPORT'
8058      ;;
8059
8060    darwin* | rhapsody*)
8061      # PIC is the default on this platform
8062      # Common symbols not allowed in MH_DYLIB files
8063      lt_prog_compiler_pic='-fno-common'
8064      ;;
8065
8066    interix3*)
8067      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8068      # Instead, we relocate shared libraries at runtime.
8069      ;;
8070
8071    msdosdjgpp*)
8072      # Just because we use GCC doesn't mean we suddenly get shared libraries
8073      # on systems that don't support them.
8074      lt_prog_compiler_can_build_shared=no
8075      enable_shared=no
8076      ;;
8077
8078    sysv4*MP*)
8079      if test -d /usr/nec; then
8080        lt_prog_compiler_pic=-Kconform_pic
8081      fi
8082      ;;
8083
8084    hpux*)
8085      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8086      # not for PA HP-UX.
8087      case $host_cpu in
8088      hppa*64*|ia64*)
8089        # +Z the default
8090        ;;
8091      *)
8092        lt_prog_compiler_pic='-fPIC'
8093        ;;
8094      esac
8095      ;;
8096
8097    *)
8098      lt_prog_compiler_pic='-fPIC'
8099      ;;
8100    esac
8101  else
8102    # PORTME Check for flag to pass linker flags through the system compiler.
8103    case $host_os in
8104    aix*)
8105      lt_prog_compiler_wl='-Wl,'
8106      if test "$host_cpu" = ia64; then
8107        # AIX 5 now supports IA64 processor
8108        lt_prog_compiler_static='-Bstatic'
8109      else
8110        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8111      fi
8112      ;;
8113      darwin*)
8114        # PIC is the default on this platform
8115        # Common symbols not allowed in MH_DYLIB files
8116       case $cc_basename in
8117         xlc*)
8118         lt_prog_compiler_pic='-qnocommon'
8119         lt_prog_compiler_wl='-Wl,'
8120         ;;
8121       esac
8122       ;;
8123
8124    mingw* | pw32* | os2*)
8125      # This hack is so that the source file can tell whether it is being
8126      # built for inclusion in a dll (and should export symbols for example).
8127      lt_prog_compiler_pic='-DDLL_EXPORT'
8128      ;;
8129
8130    hpux9* | hpux10* | hpux11*)
8131      lt_prog_compiler_wl='-Wl,'
8132      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8133      # not for PA HP-UX.
8134      case $host_cpu in
8135      hppa*64*|ia64*)
8136        # +Z the default
8137        ;;
8138      *)
8139        lt_prog_compiler_pic='+Z'
8140        ;;
8141      esac
8142      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8143      lt_prog_compiler_static='${wl}-a ${wl}archive'
8144      ;;
8145
8146    irix5* | irix6* | nonstopux*)
8147      lt_prog_compiler_wl='-Wl,'
8148      # PIC (with -KPIC) is the default.
8149      lt_prog_compiler_static='-non_shared'
8150      ;;
8151
8152    newsos6)
8153      lt_prog_compiler_pic='-KPIC'
8154      lt_prog_compiler_static='-Bstatic'
8155      ;;
8156
8157    linux*)
8158      case $cc_basename in
8159      icc* | ecc*)
8160        lt_prog_compiler_wl='-Wl,'
8161        lt_prog_compiler_pic='-KPIC'
8162        lt_prog_compiler_static='-static'
8163        ;;
8164      pgcc* | pgf77* | pgf90* | pgf95*)
8165        # Portland Group compilers (*not* the Pentium gcc compiler,
8166        # which looks to be a dead project)
8167        lt_prog_compiler_wl='-Wl,'
8168        lt_prog_compiler_pic='-fpic'
8169        lt_prog_compiler_static='-Bstatic'
8170        ;;
8171      ccc*)
8172        lt_prog_compiler_wl='-Wl,'
8173        # All Alpha code is PIC.
8174        lt_prog_compiler_static='-non_shared'
8175        ;;
8176      esac
8177      ;;
8178
8179    osf3* | osf4* | osf5*)
8180      lt_prog_compiler_wl='-Wl,'
8181      # All OSF/1 code is PIC.
8182      lt_prog_compiler_static='-non_shared'
8183      ;;
8184
8185    solaris*)
8186      lt_prog_compiler_pic='-KPIC'
8187      lt_prog_compiler_static='-Bstatic'
8188      case $cc_basename in
8189      f77* | f90* | f95*)
8190        lt_prog_compiler_wl='-Qoption ld ';;
8191      *)
8192        lt_prog_compiler_wl='-Wl,';;
8193      esac
8194      ;;
8195
8196    sunos4*)
8197      lt_prog_compiler_wl='-Qoption ld '
8198      lt_prog_compiler_pic='-PIC'
8199      lt_prog_compiler_static='-Bstatic'
8200      ;;
8201
8202    sysv4 | sysv4.2uw2* | sysv4.3*)
8203      lt_prog_compiler_wl='-Wl,'
8204      lt_prog_compiler_pic='-KPIC'
8205      lt_prog_compiler_static='-Bstatic'
8206      ;;
8207
8208    sysv4*MP*)
8209      if test -d /usr/nec ;then
8210        lt_prog_compiler_pic='-Kconform_pic'
8211        lt_prog_compiler_static='-Bstatic'
8212      fi
8213      ;;
8214
8215    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8216      lt_prog_compiler_wl='-Wl,'
8217      lt_prog_compiler_pic='-KPIC'
8218      lt_prog_compiler_static='-Bstatic'
8219      ;;
8220
8221    unicos*)
8222      lt_prog_compiler_wl='-Wl,'
8223      lt_prog_compiler_can_build_shared=no
8224      ;;
8225
8226    uts4*)
8227      lt_prog_compiler_pic='-pic'
8228      lt_prog_compiler_static='-Bstatic'
8229      ;;
8230
8231    *)
8232      lt_prog_compiler_can_build_shared=no
8233      ;;
8234    esac
8235  fi
8236
8237echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8238echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8239
8240#
8241# Check to make sure the PIC flag actually works.
8242#
8243if test -n "$lt_prog_compiler_pic"; then
8244
8245echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8246echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8247if test "${lt_prog_compiler_pic_works+set}" = set; then
8248  echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250  lt_prog_compiler_pic_works=no
8251  ac_outfile=conftest.$ac_objext
8252   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8253   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8254   # Insert the option either (1) after the last *FLAGS variable, or
8255   # (2) before a word containing "conftest.", or (3) at the end.
8256   # Note that $ac_compile itself does not contain backslashes and begins
8257   # with a dollar sign (not a hyphen), so the echo should work correctly.
8258   # The option is referenced via a variable to avoid confusing sed.
8259   lt_compile=`echo "$ac_compile" | $SED \
8260   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8261   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8262   -e 's:$: $lt_compiler_flag:'`
8263   (eval echo "\"\$as_me:8263: $lt_compile\"" >&5)
8264   (eval "$lt_compile" 2>conftest.err)
8265   ac_status=$?
8266   cat conftest.err >&5
8267   echo "$as_me:8267: \$? = $ac_status" >&5
8268   if (exit $ac_status) && test -s "$ac_outfile"; then
8269     # The compiler can only warn and ignore the option if not recognized
8270     # So say no if there are warnings other than the usual output.
8271     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8272     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8273     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8274       lt_prog_compiler_pic_works=yes
8275     fi
8276   fi
8277   $rm conftest*
8278
8279fi
8280echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8281echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8282
8283if test x"$lt_prog_compiler_pic_works" = xyes; then
8284    case $lt_prog_compiler_pic in
8285     "" | " "*) ;;
8286     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8287     esac
8288else
8289    lt_prog_compiler_pic=
8290     lt_prog_compiler_can_build_shared=no
8291fi
8292
8293fi
8294case $host_os in
8295  # For platforms which do not support PIC, -DPIC is meaningless:
8296  *djgpp*)
8297    lt_prog_compiler_pic=
8298    ;;
8299  *)
8300    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8301    ;;
8302esac
8303
8304#
8305# Check to make sure the static flag actually works.
8306#
8307wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8308echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8309echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8310if test "${lt_prog_compiler_static_works+set}" = set; then
8311  echo $ECHO_N "(cached) $ECHO_C" >&6
8312else
8313  lt_prog_compiler_static_works=no
8314   save_LDFLAGS="$LDFLAGS"
8315   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8316   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8317   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8318     # The linker can only warn and ignore the option if not recognized
8319     # So say no if there are warnings
8320     if test -s conftest.err; then
8321       # Append any errors to the config.log.
8322       cat conftest.err 1>&5
8323       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8324       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8325       if diff conftest.exp conftest.er2 >/dev/null; then
8326         lt_prog_compiler_static_works=yes
8327       fi
8328     else
8329       lt_prog_compiler_static_works=yes
8330     fi
8331   fi
8332   $rm conftest*
8333   LDFLAGS="$save_LDFLAGS"
8334
8335fi
8336echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8337echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8338
8339if test x"$lt_prog_compiler_static_works" = xyes; then
8340    :
8341else
8342    lt_prog_compiler_static=
8343fi
8344
8345
8346echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8347echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8348if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8349  echo $ECHO_N "(cached) $ECHO_C" >&6
8350else
8351  lt_cv_prog_compiler_c_o=no
8352   $rm -r conftest 2>/dev/null
8353   mkdir conftest
8354   cd conftest
8355   mkdir out
8356   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8357
8358   lt_compiler_flag="-o out/conftest2.$ac_objext"
8359   # Insert the option either (1) after the last *FLAGS variable, or
8360   # (2) before a word containing "conftest.", or (3) at the end.
8361   # Note that $ac_compile itself does not contain backslashes and begins
8362   # with a dollar sign (not a hyphen), so the echo should work correctly.
8363   lt_compile=`echo "$ac_compile" | $SED \
8364   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8365   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8366   -e 's:$: $lt_compiler_flag:'`
8367   (eval echo "\"\$as_me:8367: $lt_compile\"" >&5)
8368   (eval "$lt_compile" 2>out/conftest.err)
8369   ac_status=$?
8370   cat out/conftest.err >&5
8371   echo "$as_me:8371: \$? = $ac_status" >&5
8372   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8373   then
8374     # The compiler can only warn and ignore the option if not recognized
8375     # So say no if there are warnings
8376     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8377     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8378     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8379       lt_cv_prog_compiler_c_o=yes
8380     fi
8381   fi
8382   chmod u+w . 2>&5
8383   $rm conftest*
8384   # SGI C++ compiler will create directory out/ii_files/ for
8385   # template instantiation
8386   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8387   $rm out/* && rmdir out
8388   cd ..
8389   rmdir conftest
8390   $rm conftest*
8391
8392fi
8393echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8394echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8395
8396
8397hard_links="nottested"
8398if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8399  # do not overwrite the value of need_locks provided by the user
8400  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8401echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8402  hard_links=yes
8403  $rm conftest*
8404  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8405  touch conftest.a
8406  ln conftest.a conftest.b 2>&5 || hard_links=no
8407  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8408  echo "$as_me:$LINENO: result: $hard_links" >&5
8409echo "${ECHO_T}$hard_links" >&6
8410  if test "$hard_links" = no; then
8411    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8412echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8413    need_locks=warn
8414  fi
8415else
8416  need_locks=no
8417fi
8418
8419echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8420echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8421
8422  runpath_var=
8423  allow_undefined_flag=
8424  enable_shared_with_static_runtimes=no
8425  archive_cmds=
8426  archive_expsym_cmds=
8427  old_archive_From_new_cmds=
8428  old_archive_from_expsyms_cmds=
8429  export_dynamic_flag_spec=
8430  whole_archive_flag_spec=
8431  thread_safe_flag_spec=
8432  hardcode_libdir_flag_spec=
8433  hardcode_libdir_flag_spec_ld=
8434  hardcode_libdir_separator=
8435  hardcode_direct=no
8436  hardcode_minus_L=no
8437  hardcode_shlibpath_var=unsupported
8438  link_all_deplibs=unknown
8439  hardcode_automatic=no
8440  module_cmds=
8441  module_expsym_cmds=
8442  always_export_symbols=no
8443  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8444  # include_expsyms should be a list of space-separated symbols to be *always*
8445  # included in the symbol list
8446  include_expsyms=
8447  # exclude_expsyms can be an extended regexp of symbols to exclude
8448  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8449  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8450  # as well as any symbol that contains `d'.
8451  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8452  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8453  # platforms (ab)use it in PIC code, but their linkers get confused if
8454  # the symbol is explicitly referenced.  Since portable code cannot
8455  # rely on this symbol name, it's probably fine to never include it in
8456  # preloaded symbol tables.
8457  extract_expsyms_cmds=
8458  # Just being paranoid about ensuring that cc_basename is set.
8459  for cc_temp in $compiler""; do
8460  case $cc_temp in
8461    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8462    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8463    \-*) ;;
8464    *) break;;
8465  esac
8466done
8467cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8468
8469  case $host_os in
8470  cygwin* | mingw* | pw32*)
8471    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8472    # When not using gcc, we currently assume that we are using
8473    # Microsoft Visual C++.
8474    if test "$GCC" != yes; then
8475      with_gnu_ld=no
8476    fi
8477    ;;
8478  interix*)
8479    # we just hope/assume this is gcc and not c89 (= MSVC++)
8480    with_gnu_ld=yes
8481    ;;
8482  openbsd*)
8483    with_gnu_ld=no
8484    ;;
8485  esac
8486
8487  ld_shlibs=yes
8488  if test "$with_gnu_ld" = yes; then
8489    # If archive_cmds runs LD, not CC, wlarc should be empty
8490    wlarc='${wl}'
8491
8492    # Set some defaults for GNU ld with shared library support. These
8493    # are reset later if shared libraries are not supported. Putting them
8494    # here allows them to be overridden if necessary.
8495    runpath_var=LD_RUN_PATH
8496    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8497    export_dynamic_flag_spec='${wl}--export-dynamic'
8498    # ancient GNU ld didn't support --whole-archive et. al.
8499    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8500        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8501      else
8502        whole_archive_flag_spec=
8503    fi
8504    supports_anon_versioning=no
8505    case `$LD -v 2>/dev/null` in
8506      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8507      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8508      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8509      *\ 2.11.*) ;; # other 2.11 versions
8510      *) supports_anon_versioning=yes ;;
8511    esac
8512
8513    # See if GNU ld supports shared libraries.
8514    case $host_os in
8515    aix3* | aix4* | aix5*)
8516      # On AIX/PPC, the GNU linker is very broken
8517      if test "$host_cpu" != ia64; then
8518        ld_shlibs=no
8519        cat <<EOF 1>&2
8520
8521*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8522*** to be unable to reliably create shared libraries on AIX.
8523*** Therefore, libtool is disabling shared libraries support.  If you
8524*** really care for shared libraries, you may want to modify your PATH
8525*** so that a non-GNU linker is found, and then restart.
8526
8527EOF
8528      fi
8529      ;;
8530
8531    amigaos*)
8532      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)'
8533      hardcode_libdir_flag_spec='-L$libdir'
8534      hardcode_minus_L=yes
8535
8536      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8537      # that the semantics of dynamic libraries on AmigaOS, at least up
8538      # to version 4, is to share data among multiple programs linked
8539      # with the same dynamic library.  Since this doesn't match the
8540      # behavior of shared libraries on other platforms, we can't use
8541      # them.
8542      ld_shlibs=no
8543      ;;
8544
8545    beos*)
8546      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8547        allow_undefined_flag=unsupported
8548        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8549        # support --undefined.  This deserves some investigation.  FIXME
8550        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8551      else
8552        ld_shlibs=no
8553      fi
8554      ;;
8555
8556    cygwin* | mingw* | pw32*)
8557      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8558      # as there is no search path for DLLs.
8559      hardcode_libdir_flag_spec='-L$libdir'
8560      allow_undefined_flag=unsupported
8561      always_export_symbols=no
8562      enable_shared_with_static_runtimes=yes
8563      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8564
8565      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8566        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8567        # If the export-symbols file already is a .def file (1st line
8568        # is EXPORTS), use it as is; otherwise, prepend...
8569        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8570          cp $export_symbols $output_objdir/$soname.def;
8571        else
8572          echo EXPORTS > $output_objdir/$soname.def;
8573          cat $export_symbols >> $output_objdir/$soname.def;
8574        fi~
8575        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8576      else
8577        ld_shlibs=no
8578      fi
8579      ;;
8580
8581    interix3*)
8582      hardcode_direct=no
8583      hardcode_shlibpath_var=no
8584      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8585      export_dynamic_flag_spec='${wl}-E'
8586      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8587      # Instead, shared libraries are loaded at an image base (0x10000000 by
8588      # default) and relocated if they conflict, which is a slow very memory
8589      # consuming and fragmenting process.  To avoid this, we pick a random,
8590      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8591      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8592      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8593      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'
8594      ;;
8595
8596    linux*)
8597      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8598        tmp_addflag=
8599        case $cc_basename,$host_cpu in
8600        pgcc*)                          # Portland Group C compiler
8601          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'
8602          tmp_addflag=' $pic_flag'
8603          ;;
8604        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8605          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'
8606          tmp_addflag=' $pic_flag -Mnomain' ;;
8607        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8608          tmp_addflag=' -i_dynamic' ;;
8609        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8610          tmp_addflag=' -i_dynamic -nofor_main' ;;
8611        ifc* | ifort*)                  # Intel Fortran compiler
8612          tmp_addflag=' -nofor_main' ;;
8613        esac
8614        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8615
8616        if test $supports_anon_versioning = yes; then
8617          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8618  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8619  $echo "local: *; };" >> $output_objdir/$libname.ver~
8620          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8621        fi
8622      else
8623        ld_shlibs=no
8624      fi
8625      ;;
8626
8627    netbsd*)
8628      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8629        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8630        wlarc=
8631      else
8632        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8633        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8634      fi
8635      ;;
8636
8637    solaris*)
8638      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8639        ld_shlibs=no
8640        cat <<EOF 1>&2
8641
8642*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8643*** create shared libraries on Solaris systems.  Therefore, libtool
8644*** is disabling shared libraries support.  We urge you to upgrade GNU
8645*** binutils to release 2.9.1 or newer.  Another option is to modify
8646*** your PATH or compiler configuration so that the native linker is
8647*** used, and then restart.
8648
8649EOF
8650      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8651        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8652        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8653      else
8654        ld_shlibs=no
8655      fi
8656      ;;
8657
8658    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8659      case `$LD -v 2>&1` in
8660        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8661        ld_shlibs=no
8662        cat <<_LT_EOF 1>&2
8663
8664*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8665*** reliably create shared libraries on SCO systems.  Therefore, libtool
8666*** is disabling shared libraries support.  We urge you to upgrade GNU
8667*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8668*** your PATH or compiler configuration so that the native linker is
8669*** used, and then restart.
8670
8671_LT_EOF
8672        ;;
8673        *)
8674          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8675            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8676            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8677            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8678          else
8679            ld_shlibs=no
8680          fi
8681        ;;
8682      esac
8683      ;;
8684
8685    sunos4*)
8686      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8687      wlarc=
8688      hardcode_direct=yes
8689      hardcode_shlibpath_var=no
8690      ;;
8691
8692    *)
8693      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8694        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8696      else
8697        ld_shlibs=no
8698      fi
8699      ;;
8700    esac
8701
8702    if test "$ld_shlibs" = no; then
8703      runpath_var=
8704      hardcode_libdir_flag_spec=
8705      export_dynamic_flag_spec=
8706      whole_archive_flag_spec=
8707    fi
8708  else
8709    # PORTME fill in a description of your system's linker (not GNU ld)
8710    case $host_os in
8711    aix3*)
8712      allow_undefined_flag=unsupported
8713      always_export_symbols=yes
8714      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'
8715      # Note: this linker hardcodes the directories in LIBPATH if there
8716      # are no directories specified by -L.
8717      hardcode_minus_L=yes
8718      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8719        # Neither direct hardcoding nor static linking is supported with a
8720        # broken collect2.
8721        hardcode_direct=unsupported
8722      fi
8723      ;;
8724
8725    aix4* | aix5*)
8726      if test "$host_cpu" = ia64; then
8727        # On IA64, the linker does run time linking by default, so we don't
8728        # have to do anything special.
8729        aix_use_runtimelinking=no
8730        exp_sym_flag='-Bexport'
8731        no_entry_flag=""
8732      else
8733        # If we're using GNU nm, then we don't want the "-C" option.
8734        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8735        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8736          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'
8737        else
8738          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'
8739        fi
8740        aix_use_runtimelinking=no
8741
8742        # Test if we are trying to use run time linking or normal
8743        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8744        # need to do runtime linking.
8745        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8746          for ld_flag in $LDFLAGS; do
8747          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8748            aix_use_runtimelinking=yes
8749            break
8750          fi
8751          done
8752          ;;
8753        esac
8754
8755        exp_sym_flag='-bexport'
8756        no_entry_flag='-bnoentry'
8757      fi
8758
8759      # When large executables or shared objects are built, AIX ld can
8760      # have problems creating the table of contents.  If linking a library
8761      # or program results in "error TOC overflow" add -mminimal-toc to
8762      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8763      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8764
8765      archive_cmds=''
8766      hardcode_direct=yes
8767      hardcode_libdir_separator=':'
8768      link_all_deplibs=yes
8769
8770      if test "$GCC" = yes; then
8771        case $host_os in aix4.[012]|aix4.[012].*)
8772        # We only want to do this on AIX 4.2 and lower, the check
8773        # below for broken collect2 doesn't work under 4.3+
8774          collect2name=`${CC} -print-prog-name=collect2`
8775          if test -f "$collect2name" && \
8776           strings "$collect2name" | grep resolve_lib_name >/dev/null
8777          then
8778          # We have reworked collect2
8779          hardcode_direct=yes
8780          else
8781          # We have old collect2
8782          hardcode_direct=unsupported
8783          # It fails to find uninstalled libraries when the uninstalled
8784          # path is not listed in the libpath.  Setting hardcode_minus_L
8785          # to unsupported forces relinking
8786          hardcode_minus_L=yes
8787          hardcode_libdir_flag_spec='-L$libdir'
8788          hardcode_libdir_separator=
8789          fi
8790          ;;
8791        esac
8792        shared_flag='-shared'
8793        if test "$aix_use_runtimelinking" = yes; then
8794          shared_flag="$shared_flag "'${wl}-G'
8795        fi
8796      else
8797        # not using gcc
8798        if test "$host_cpu" = ia64; then
8799        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8800        # chokes on -Wl,-G. The following line is correct:
8801          shared_flag='-G'
8802        else
8803          if test "$aix_use_runtimelinking" = yes; then
8804            shared_flag='${wl}-G'
8805          else
8806            shared_flag='${wl}-bM:SRE'
8807          fi
8808        fi
8809      fi
8810
8811      # It seems that -bexpall does not export symbols beginning with
8812      # underscore (_), so it is better to generate a list of symbols to export.
8813      always_export_symbols=yes
8814      if test "$aix_use_runtimelinking" = yes; then
8815        # Warning - without using the other runtime loading flags (-brtl),
8816        # -berok will link without error, but may produce a broken library.
8817        allow_undefined_flag='-berok'
8818       # Determine the default libpath from the value encoded in an empty executable.
8819       cat >conftest.$ac_ext <<_ACEOF
8820/* confdefs.h.  */
8821_ACEOF
8822cat confdefs.h >>conftest.$ac_ext
8823cat >>conftest.$ac_ext <<_ACEOF
8824/* end confdefs.h.  */
8825
8826int
8827main ()
8828{
8829
8830  ;
8831  return 0;
8832}
8833_ACEOF
8834rm -f conftest.$ac_objext conftest$ac_exeext
8835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8836  (eval $ac_link) 2>conftest.er1
8837  ac_status=$?
8838  grep -v '^ *+' conftest.er1 >conftest.err
8839  rm -f conftest.er1
8840  cat conftest.err >&5
8841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842  (exit $ac_status); } &&
8843         { ac_try='test -z "$ac_c_werror_flag"
8844                         || test ! -s conftest.err'
8845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846  (eval $ac_try) 2>&5
8847  ac_status=$?
8848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849  (exit $ac_status); }; } &&
8850         { ac_try='test -s conftest$ac_exeext'
8851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852  (eval $ac_try) 2>&5
8853  ac_status=$?
8854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855  (exit $ac_status); }; }; then
8856
8857aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8858}'`
8859# Check for a 64-bit object if we didn't find anything.
8860if 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; }
8861}'`; fi
8862else
8863  echo "$as_me: failed program was:" >&5
8864sed 's/^/| /' conftest.$ac_ext >&5
8865
8866fi
8867rm -f conftest.err conftest.$ac_objext \
8868      conftest$ac_exeext conftest.$ac_ext
8869if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8870
8871       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8872        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"
8873       else
8874        if test "$host_cpu" = ia64; then
8875          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8876          allow_undefined_flag="-z nodefs"
8877          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"
8878        else
8879         # Determine the default libpath from the value encoded in an empty executable.
8880         cat >conftest.$ac_ext <<_ACEOF
8881/* confdefs.h.  */
8882_ACEOF
8883cat confdefs.h >>conftest.$ac_ext
8884cat >>conftest.$ac_ext <<_ACEOF
8885/* end confdefs.h.  */
8886
8887int
8888main ()
8889{
8890
8891  ;
8892  return 0;
8893}
8894_ACEOF
8895rm -f conftest.$ac_objext conftest$ac_exeext
8896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8897  (eval $ac_link) 2>conftest.er1
8898  ac_status=$?
8899  grep -v '^ *+' conftest.er1 >conftest.err
8900  rm -f conftest.er1
8901  cat conftest.err >&5
8902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903  (exit $ac_status); } &&
8904         { ac_try='test -z "$ac_c_werror_flag"
8905                         || test ! -s conftest.err'
8906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907  (eval $ac_try) 2>&5
8908  ac_status=$?
8909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910  (exit $ac_status); }; } &&
8911         { ac_try='test -s conftest$ac_exeext'
8912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913  (eval $ac_try) 2>&5
8914  ac_status=$?
8915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916  (exit $ac_status); }; }; then
8917
8918aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8919}'`
8920# Check for a 64-bit object if we didn't find anything.
8921if 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; }
8922}'`; fi
8923else
8924  echo "$as_me: failed program was:" >&5
8925sed 's/^/| /' conftest.$ac_ext >&5
8926
8927fi
8928rm -f conftest.err conftest.$ac_objext \
8929      conftest$ac_exeext conftest.$ac_ext
8930if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8931
8932         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8933          # Warning - without using the other run time loading flags,
8934          # -berok will link without error, but may produce a broken library.
8935          no_undefined_flag=' ${wl}-bernotok'
8936          allow_undefined_flag=' ${wl}-berok'
8937          # Exported symbols can be pulled into shared objects from archives
8938          whole_archive_flag_spec='$convenience'
8939          archive_cmds_need_lc=yes
8940          # This is similar to how AIX traditionally builds its shared libraries.
8941          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'
8942        fi
8943      fi
8944      ;;
8945
8946    amigaos*)
8947      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)'
8948      hardcode_libdir_flag_spec='-L$libdir'
8949      hardcode_minus_L=yes
8950      # see comment about different semantics on the GNU ld section
8951      ld_shlibs=no
8952      ;;
8953
8954    bsdi[45]*)
8955      export_dynamic_flag_spec=-rdynamic
8956      ;;
8957
8958    cygwin* | mingw* | pw32*)
8959      # When not using gcc, we currently assume that we are using
8960      # Microsoft Visual C++.
8961      # hardcode_libdir_flag_spec is actually meaningless, as there is
8962      # no search path for DLLs.
8963      hardcode_libdir_flag_spec=' '
8964      allow_undefined_flag=unsupported
8965      # Tell ltmain to make .lib files, not .a files.
8966      libext=lib
8967      # Tell ltmain to make .dll files, not .so files.
8968      shrext_cmds=".dll"
8969      # FIXME: Setting linknames here is a bad hack.
8970      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8971      # The linker will automatically build a .lib file if we build a DLL.
8972      old_archive_From_new_cmds='true'
8973      # FIXME: Should let the user specify the lib program.
8974      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8975      fix_srcfile_path='`cygpath -w "$srcfile"`'
8976      enable_shared_with_static_runtimes=yes
8977      ;;
8978
8979    darwin* | rhapsody*)
8980      case $host_os in
8981        rhapsody* | darwin1.[012])
8982         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8983         ;;
8984       *) # Darwin 1.3 on
8985         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8986           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8987         else
8988           case ${MACOSX_DEPLOYMENT_TARGET} in
8989             10.[012])
8990               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8991               ;;
8992             10.*)
8993               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8994               ;;
8995           esac
8996         fi
8997         ;;
8998      esac
8999      archive_cmds_need_lc=no
9000      hardcode_direct=no
9001      hardcode_automatic=yes
9002      hardcode_shlibpath_var=unsupported
9003      whole_archive_flag_spec=''
9004      link_all_deplibs=yes
9005    if test "$GCC" = yes ; then
9006        output_verbose_link_cmd='echo'
9007        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9008      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9009      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9010      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}'
9011      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}'
9012    else
9013      case $cc_basename in
9014        xlc*)
9015         output_verbose_link_cmd='echo'
9016         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9017         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9018          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9019         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}'
9020          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}'
9021          ;;
9022       *)
9023         ld_shlibs=no
9024          ;;
9025      esac
9026    fi
9027      ;;
9028
9029    dgux*)
9030      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031      hardcode_libdir_flag_spec='-L$libdir'
9032      hardcode_shlibpath_var=no
9033      ;;
9034
9035    freebsd1*)
9036      ld_shlibs=no
9037      ;;
9038
9039    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9040    # support.  Future versions do this automatically, but an explicit c++rt0.o
9041    # does not break anything, and helps significantly (at the cost of a little
9042    # extra space).
9043    freebsd2.2*)
9044      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9045      hardcode_libdir_flag_spec='-R$libdir'
9046      hardcode_direct=yes
9047      hardcode_shlibpath_var=no
9048      ;;
9049
9050    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9051    freebsd2*)
9052      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9053      hardcode_direct=yes
9054      hardcode_minus_L=yes
9055      hardcode_shlibpath_var=no
9056      ;;
9057
9058    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9059    freebsd* | kfreebsd*-gnu | dragonfly*)
9060      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9061      hardcode_libdir_flag_spec='-R$libdir'
9062      hardcode_direct=yes
9063      hardcode_shlibpath_var=no
9064      ;;
9065
9066    hpux9*)
9067      if test "$GCC" = yes; then
9068        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'
9069      else
9070        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'
9071      fi
9072      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9073      hardcode_libdir_separator=:
9074      hardcode_direct=yes
9075
9076      # hardcode_minus_L: Not really in the search PATH,
9077      # but as the default location of the library.
9078      hardcode_minus_L=yes
9079      export_dynamic_flag_spec='${wl}-E'
9080      ;;
9081
9082    hpux10*)
9083      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9084        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9085      else
9086        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9087      fi
9088      if test "$with_gnu_ld" = no; then
9089        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9090        hardcode_libdir_separator=:
9091
9092        hardcode_direct=yes
9093        export_dynamic_flag_spec='${wl}-E'
9094
9095        # hardcode_minus_L: Not really in the search PATH,
9096        # but as the default location of the library.
9097        hardcode_minus_L=yes
9098      fi
9099      ;;
9100
9101    hpux11*)
9102      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9103        case $host_cpu in
9104        hppa*64*)
9105          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106          ;;
9107        ia64*)
9108          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9109          ;;
9110        *)
9111          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9112          ;;
9113        esac
9114      else
9115        case $host_cpu in
9116        hppa*64*)
9117          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9118          ;;
9119        ia64*)
9120          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9121          ;;
9122        *)
9123          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9124          ;;
9125        esac
9126      fi
9127      if test "$with_gnu_ld" = no; then
9128        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9129        hardcode_libdir_separator=:
9130
9131        case $host_cpu in
9132        hppa*64*|ia64*)
9133          hardcode_libdir_flag_spec_ld='+b $libdir'
9134          hardcode_direct=no
9135          hardcode_shlibpath_var=no
9136          ;;
9137        *)
9138          hardcode_direct=yes
9139          export_dynamic_flag_spec='${wl}-E'
9140
9141          # hardcode_minus_L: Not really in the search PATH,
9142          # but as the default location of the library.
9143          hardcode_minus_L=yes
9144          ;;
9145        esac
9146      fi
9147      ;;
9148
9149    irix5* | irix6* | nonstopux*)
9150      if test "$GCC" = yes; then
9151        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'
9152      else
9153        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'
9154        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9155      fi
9156      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9157      hardcode_libdir_separator=:
9158      link_all_deplibs=yes
9159      ;;
9160
9161    netbsd*)
9162      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9163        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9164      else
9165        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9166      fi
9167      hardcode_libdir_flag_spec='-R$libdir'
9168      hardcode_direct=yes
9169      hardcode_shlibpath_var=no
9170      ;;
9171
9172    newsos6)
9173      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9174      hardcode_direct=yes
9175      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176      hardcode_libdir_separator=:
9177      hardcode_shlibpath_var=no
9178      ;;
9179
9180    openbsd*)
9181      hardcode_direct=yes
9182      hardcode_shlibpath_var=no
9183      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9184        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9185        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9186        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9187        export_dynamic_flag_spec='${wl}-E'
9188      else
9189       case $host_os in
9190         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9191           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192           hardcode_libdir_flag_spec='-R$libdir'
9193           ;;
9194         *)
9195           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9196           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9197           ;;
9198       esac
9199      fi
9200      ;;
9201
9202    os2*)
9203      hardcode_libdir_flag_spec='-L$libdir'
9204      hardcode_minus_L=yes
9205      allow_undefined_flag=unsupported
9206      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'
9207      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9208      ;;
9209
9210    osf3*)
9211      if test "$GCC" = yes; then
9212        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9213        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'
9214      else
9215        allow_undefined_flag=' -expect_unresolved \*'
9216        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'
9217      fi
9218      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9219      hardcode_libdir_separator=:
9220      ;;
9221
9222    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9223      if test "$GCC" = yes; then
9224        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9225        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'
9226        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227      else
9228        allow_undefined_flag=' -expect_unresolved \*'
9229        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'
9230        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9231        $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'
9232
9233        # Both c and cxx compiler support -rpath directly
9234        hardcode_libdir_flag_spec='-rpath $libdir'
9235      fi
9236      hardcode_libdir_separator=:
9237      ;;
9238
9239    solaris*)
9240      no_undefined_flag=' -z text'
9241      if test "$GCC" = yes; then
9242        wlarc='${wl}'
9243        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9244        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9245          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9246      else
9247        wlarc=''
9248        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9249        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9250        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9251      fi
9252      hardcode_libdir_flag_spec='-R$libdir'
9253      hardcode_shlibpath_var=no
9254      case $host_os in
9255      solaris2.[0-5] | solaris2.[0-5].*) ;;
9256      *)
9257        # The compiler driver will combine linker options so we
9258        # cannot just pass the convience library names through
9259        # without $wl, iff we do not link with $LD.
9260        # Luckily, gcc supports the same syntax we need for Sun Studio.
9261        # Supported since Solaris 2.6 (maybe 2.5.1?)
9262        case $wlarc in
9263        '')
9264          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9265        *)
9266          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' ;;
9267        esac ;;
9268      esac
9269      link_all_deplibs=yes
9270      ;;
9271
9272    sunos4*)
9273      if test "x$host_vendor" = xsequent; then
9274        # Use $CC to link under sequent, because it throws in some extra .o
9275        # files that make .init and .fini sections work.
9276        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9277      else
9278        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9279      fi
9280      hardcode_libdir_flag_spec='-L$libdir'
9281      hardcode_direct=yes
9282      hardcode_minus_L=yes
9283      hardcode_shlibpath_var=no
9284      ;;
9285
9286    sysv4)
9287      case $host_vendor in
9288        sni)
9289          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9290          hardcode_direct=yes # is this really true???
9291        ;;
9292        siemens)
9293          ## LD is ld it makes a PLAMLIB
9294          ## CC just makes a GrossModule.
9295          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9296          reload_cmds='$CC -r -o $output$reload_objs'
9297          hardcode_direct=no
9298        ;;
9299        motorola)
9300          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9301          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9302        ;;
9303      esac
9304      runpath_var='LD_RUN_PATH'
9305      hardcode_shlibpath_var=no
9306      ;;
9307
9308    sysv4.3*)
9309      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310      hardcode_shlibpath_var=no
9311      export_dynamic_flag_spec='-Bexport'
9312      ;;
9313
9314    sysv4*MP*)
9315      if test -d /usr/nec; then
9316        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317        hardcode_shlibpath_var=no
9318        runpath_var=LD_RUN_PATH
9319        hardcode_runpath_var=yes
9320        ld_shlibs=yes
9321      fi
9322      ;;
9323
9324    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9325      no_undefined_flag='${wl}-z,text'
9326      archive_cmds_need_lc=no
9327      hardcode_shlibpath_var=no
9328      runpath_var='LD_RUN_PATH'
9329
9330      if test "$GCC" = yes; then
9331        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9332        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9333      else
9334        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9335        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9336      fi
9337      ;;
9338
9339    sysv5* | sco3.2v5* | sco5v6*)
9340      # Note: We can NOT use -z defs as we might desire, because we do not
9341      # link with -lc, and that would cause any symbols used from libc to
9342      # always be unresolved, which means just about no library would
9343      # ever link correctly.  If we're not using GNU ld we use -z text
9344      # though, which does catch some bad symbols but isn't as heavy-handed
9345      # as -z defs.
9346      no_undefined_flag='${wl}-z,text'
9347      allow_undefined_flag='${wl}-z,nodefs'
9348      archive_cmds_need_lc=no
9349      hardcode_shlibpath_var=no
9350      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9351      hardcode_libdir_separator=':'
9352      link_all_deplibs=yes
9353      export_dynamic_flag_spec='${wl}-Bexport'
9354      runpath_var='LD_RUN_PATH'
9355
9356      if test "$GCC" = yes; then
9357        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9358        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9359      else
9360        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9361        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9362      fi
9363      ;;
9364
9365    uts4*)
9366      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367      hardcode_libdir_flag_spec='-L$libdir'
9368      hardcode_shlibpath_var=no
9369      ;;
9370
9371    *)
9372      ld_shlibs=no
9373      ;;
9374    esac
9375  fi
9376
9377echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9378echo "${ECHO_T}$ld_shlibs" >&6
9379test "$ld_shlibs" = no && can_build_shared=no
9380
9381#
9382# Do we need to explicitly link libc?
9383#
9384case "x$archive_cmds_need_lc" in
9385x|xyes)
9386  # Assume -lc should be added
9387  archive_cmds_need_lc=yes
9388
9389  if test "$enable_shared" = yes && test "$GCC" = yes; then
9390    case $archive_cmds in
9391    *'~'*)
9392      # FIXME: we may have to deal with multi-command sequences.
9393      ;;
9394    '$CC '*)
9395      # Test whether the compiler implicitly links with -lc since on some
9396      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9397      # to ld, don't add -lc before -lgcc.
9398      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9399echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9400      $rm conftest*
9401      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9402
9403      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9404  (eval $ac_compile) 2>&5
9405  ac_status=$?
9406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407  (exit $ac_status); } 2>conftest.err; then
9408        soname=conftest
9409        lib=conftest
9410        libobjs=conftest.$ac_objext
9411        deplibs=
9412        wl=$lt_prog_compiler_wl
9413        pic_flag=$lt_prog_compiler_pic
9414        compiler_flags=-v
9415        linker_flags=-v
9416        verstring=
9417        output_objdir=.
9418        libname=conftest
9419        lt_save_allow_undefined_flag=$allow_undefined_flag
9420        allow_undefined_flag=
9421        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9422  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9423  ac_status=$?
9424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425  (exit $ac_status); }
9426        then
9427          archive_cmds_need_lc=no
9428        else
9429          archive_cmds_need_lc=yes
9430        fi
9431        allow_undefined_flag=$lt_save_allow_undefined_flag
9432      else
9433        cat conftest.err 1>&5
9434      fi
9435      $rm conftest*
9436      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9437echo "${ECHO_T}$archive_cmds_need_lc" >&6
9438      ;;
9439    esac
9440  fi
9441  ;;
9442esac
9443
9444echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9445echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9446library_names_spec=
9447libname_spec='lib$name'
9448soname_spec=
9449shrext_cmds=".so"
9450postinstall_cmds=
9451postuninstall_cmds=
9452finish_cmds=
9453finish_eval=
9454shlibpath_var=
9455shlibpath_overrides_runpath=unknown
9456version_type=none
9457dynamic_linker="$host_os ld.so"
9458sys_lib_dlsearch_path_spec="/lib /usr/lib"
9459if test "$GCC" = yes; then
9460  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9461  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9462    # if the path contains ";" then we assume it to be the separator
9463    # otherwise default to the standard path separator (i.e. ":") - it is
9464    # assumed that no part of a normal pathname contains ";" but that should
9465    # okay in the real world where ";" in dirpaths is itself problematic.
9466    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9467  else
9468    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9469  fi
9470else
9471  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9472fi
9473need_lib_prefix=unknown
9474hardcode_into_libs=no
9475
9476# when you set need_version to no, make sure it does not cause -set_version
9477# flags to be left without arguments
9478need_version=unknown
9479
9480case $host_os in
9481aix3*)
9482  version_type=linux
9483  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9484  shlibpath_var=LIBPATH
9485
9486  # AIX 3 has no versioning support, so we append a major version to the name.
9487  soname_spec='${libname}${release}${shared_ext}$major'
9488  ;;
9489
9490aix4* | aix5*)
9491  version_type=linux
9492  need_lib_prefix=no
9493  need_version=no
9494  hardcode_into_libs=yes
9495  if test "$host_cpu" = ia64; then
9496    # AIX 5 supports IA64
9497    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9498    shlibpath_var=LD_LIBRARY_PATH
9499  else
9500    # With GCC up to 2.95.x, collect2 would create an import file
9501    # for dependence libraries.  The import file would start with
9502    # the line `#! .'.  This would cause the generated library to
9503    # depend on `.', always an invalid library.  This was fixed in
9504    # development snapshots of GCC prior to 3.0.
9505    case $host_os in
9506      aix4 | aix4.[01] | aix4.[01].*)
9507      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9508           echo ' yes '
9509           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9510        :
9511      else
9512        can_build_shared=no
9513      fi
9514      ;;
9515    esac
9516    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9517    # soname into executable. Probably we can add versioning support to
9518    # collect2, so additional links can be useful in future.
9519    if test "$aix_use_runtimelinking" = yes; then
9520      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9521      # instead of lib<name>.a to let people know that these are not
9522      # typical AIX shared libraries.
9523      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9524    else
9525      # We preserve .a as extension for shared libraries through AIX4.2
9526      # and later when we are not doing run time linking.
9527      library_names_spec='${libname}${release}.a $libname.a'
9528      soname_spec='${libname}${release}${shared_ext}$major'
9529    fi
9530    shlibpath_var=LIBPATH
9531  fi
9532  ;;
9533
9534amigaos*)
9535  library_names_spec='$libname.ixlibrary $libname.a'
9536  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9537  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'
9538  ;;
9539
9540beos*)
9541  library_names_spec='${libname}${shared_ext}'
9542  dynamic_linker="$host_os ld.so"
9543  shlibpath_var=LIBRARY_PATH
9544  ;;
9545
9546bsdi[45]*)
9547  version_type=linux
9548  need_version=no
9549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550  soname_spec='${libname}${release}${shared_ext}$major'
9551  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9552  shlibpath_var=LD_LIBRARY_PATH
9553  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9554  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9555  # the default ld.so.conf also contains /usr/contrib/lib and
9556  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9557  # libtool to hard-code these into programs
9558  ;;
9559
9560cygwin* | mingw* | pw32*)
9561  version_type=windows
9562  shrext_cmds=".dll"
9563  need_version=no
9564  need_lib_prefix=no
9565
9566  case $GCC,$host_os in
9567  yes,cygwin* | yes,mingw* | yes,pw32*)
9568    library_names_spec='$libname.dll.a'
9569    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9570    postinstall_cmds='base_file=`basename \${file}`~
9571      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9572      dldir=$destdir/`dirname \$dlpath`~
9573      test -d \$dldir || mkdir -p \$dldir~
9574      $install_prog $dir/$dlname \$dldir/$dlname~
9575      chmod a+x \$dldir/$dlname'
9576    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9577      dlpath=$dir/\$dldll~
9578       $rm \$dlpath'
9579    shlibpath_overrides_runpath=yes
9580
9581    case $host_os in
9582    cygwin*)
9583      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9584      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9585      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9586      ;;
9587    mingw*)
9588      # MinGW DLLs use traditional 'lib' prefix
9589      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9590      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9591      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9592        # It is most probably a Windows format PATH printed by
9593        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9594        # path with ; separators, and with drive letters. We can handle the
9595        # drive letters (cygwin fileutils understands them), so leave them,
9596        # especially as we might pass files found there to a mingw objdump,
9597        # which wouldn't understand a cygwinified path. Ahh.
9598        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9599      else
9600        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9601      fi
9602      ;;
9603    pw32*)
9604      # pw32 DLLs use 'pw' prefix rather than 'lib'
9605      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9606      ;;
9607    esac
9608    ;;
9609
9610  *)
9611    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9612    ;;
9613  esac
9614  dynamic_linker='Win32 ld.exe'
9615  # FIXME: first we should search . and the directory the executable is in
9616  shlibpath_var=PATH
9617  ;;
9618
9619darwin* | rhapsody*)
9620  dynamic_linker="$host_os dyld"
9621  version_type=darwin
9622  need_lib_prefix=no
9623  need_version=no
9624  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9625  soname_spec='${libname}${release}${major}$shared_ext'
9626  shlibpath_overrides_runpath=yes
9627  shlibpath_var=DYLD_LIBRARY_PATH
9628  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9629  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9630  if test "$GCC" = yes; then
9631    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"`
9632  else
9633    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9634  fi
9635  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9636  ;;
9637
9638dgux*)
9639  version_type=linux
9640  need_lib_prefix=no
9641  need_version=no
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9643  soname_spec='${libname}${release}${shared_ext}$major'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  ;;
9646
9647freebsd1*)
9648  dynamic_linker=no
9649  ;;
9650
9651kfreebsd*-gnu)
9652  version_type=linux
9653  need_lib_prefix=no
9654  need_version=no
9655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9656  soname_spec='${libname}${release}${shared_ext}$major'
9657  shlibpath_var=LD_LIBRARY_PATH
9658  shlibpath_overrides_runpath=no
9659  hardcode_into_libs=yes
9660  dynamic_linker='GNU ld.so'
9661  ;;
9662
9663freebsd* | dragonfly*)
9664  # DragonFly does not have aout.  When/if they implement a new
9665  # versioning mechanism, adjust this.
9666  if test -x /usr/bin/objformat; then
9667    objformat=`/usr/bin/objformat`
9668  else
9669    case $host_os in
9670    freebsd[123]*) objformat=aout ;;
9671    *) objformat=elf ;;
9672    esac
9673  fi
9674  version_type=freebsd-$objformat
9675  case $version_type in
9676    freebsd-elf*)
9677      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9678      need_version=no
9679      need_lib_prefix=no
9680      ;;
9681    freebsd-*)
9682      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9683      need_version=yes
9684      ;;
9685  esac
9686  shlibpath_var=LD_LIBRARY_PATH
9687  case $host_os in
9688  freebsd2*)
9689    shlibpath_overrides_runpath=yes
9690    ;;
9691  freebsd3.[01]* | freebsdelf3.[01]*)
9692    shlibpath_overrides_runpath=yes
9693    hardcode_into_libs=yes
9694    ;;
9695  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9696  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9697    shlibpath_overrides_runpath=no
9698    hardcode_into_libs=yes
9699    ;;
9700  freebsd*) # from 4.6 on
9701    shlibpath_overrides_runpath=yes
9702    hardcode_into_libs=yes
9703    ;;
9704  esac
9705  ;;
9706
9707gnu*)
9708  version_type=linux
9709  need_lib_prefix=no
9710  need_version=no
9711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9712  soname_spec='${libname}${release}${shared_ext}$major'
9713  shlibpath_var=LD_LIBRARY_PATH
9714  hardcode_into_libs=yes
9715  ;;
9716
9717hpux9* | hpux10* | hpux11*)
9718  # Give a soname corresponding to the major version so that dld.sl refuses to
9719  # link against other versions.
9720  version_type=sunos
9721  need_lib_prefix=no
9722  need_version=no
9723  case $host_cpu in
9724  ia64*)
9725    shrext_cmds='.so'
9726    hardcode_into_libs=yes
9727    dynamic_linker="$host_os dld.so"
9728    shlibpath_var=LD_LIBRARY_PATH
9729    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9730    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9731    soname_spec='${libname}${release}${shared_ext}$major'
9732    if test "X$HPUX_IA64_MODE" = X32; then
9733      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9734    else
9735      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9736    fi
9737    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9738    ;;
9739   hppa*64*)
9740     shrext_cmds='.sl'
9741     hardcode_into_libs=yes
9742     dynamic_linker="$host_os dld.sl"
9743     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9744     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746     soname_spec='${libname}${release}${shared_ext}$major'
9747     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9748     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9749     ;;
9750   *)
9751    shrext_cmds='.sl'
9752    dynamic_linker="$host_os dld.sl"
9753    shlibpath_var=SHLIB_PATH
9754    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9755    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9756    soname_spec='${libname}${release}${shared_ext}$major'
9757    ;;
9758  esac
9759  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9760  postinstall_cmds='chmod 555 $lib'
9761  ;;
9762
9763interix3*)
9764  version_type=linux
9765  need_lib_prefix=no
9766  need_version=no
9767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9768  soname_spec='${libname}${release}${shared_ext}$major'
9769  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9770  shlibpath_var=LD_LIBRARY_PATH
9771  shlibpath_overrides_runpath=no
9772  hardcode_into_libs=yes
9773  ;;
9774
9775irix5* | irix6* | nonstopux*)
9776  case $host_os in
9777    nonstopux*) version_type=nonstopux ;;
9778    *)
9779        if test "$lt_cv_prog_gnu_ld" = yes; then
9780                version_type=linux
9781        else
9782                version_type=irix
9783        fi ;;
9784  esac
9785  need_lib_prefix=no
9786  need_version=no
9787  soname_spec='${libname}${release}${shared_ext}$major'
9788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9789  case $host_os in
9790  irix5* | nonstopux*)
9791    libsuff= shlibsuff=
9792    ;;
9793  *)
9794    case $LD in # libtool.m4 will add one of these switches to LD
9795    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9796      libsuff= shlibsuff= libmagic=32-bit;;
9797    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9798      libsuff=32 shlibsuff=N32 libmagic=N32;;
9799    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9800      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9801    *) libsuff= shlibsuff= libmagic=never-match;;
9802    esac
9803    ;;
9804  esac
9805  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9806  shlibpath_overrides_runpath=no
9807  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9808  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9809  hardcode_into_libs=yes
9810  ;;
9811
9812# No shared lib support for Linux oldld, aout, or coff.
9813linux*oldld* | linux*aout* | linux*coff*)
9814  dynamic_linker=no
9815  ;;
9816
9817# This must be Linux ELF.
9818linux*)
9819  version_type=linux
9820  need_lib_prefix=no
9821  need_version=no
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9825  shlibpath_var=LD_LIBRARY_PATH
9826  shlibpath_overrides_runpath=no
9827  # This implies no fast_install, which is unacceptable.
9828  # Some rework will be needed to allow for fast_install
9829  # before this can be enabled.
9830  hardcode_into_libs=yes
9831
9832  # Append ld.so.conf contents to the search path
9833  if test -f /etc/ld.so.conf; then
9834    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' ' '`
9835    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9836  fi
9837
9838  # We used to test for /lib/ld.so.1 and disable shared libraries on
9839  # powerpc, because MkLinux only supported shared libraries with the
9840  # GNU dynamic linker.  Since this was broken with cross compilers,
9841  # most powerpc-linux boxes support dynamic linking these days and
9842  # people can always --disable-shared, the test was removed, and we
9843  # assume the GNU/Linux dynamic linker is in use.
9844  dynamic_linker='GNU/Linux ld.so'
9845  ;;
9846
9847knetbsd*-gnu)
9848  version_type=linux
9849  need_lib_prefix=no
9850  need_version=no
9851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9852  soname_spec='${libname}${release}${shared_ext}$major'
9853  shlibpath_var=LD_LIBRARY_PATH
9854  shlibpath_overrides_runpath=no
9855  hardcode_into_libs=yes
9856  dynamic_linker='GNU ld.so'
9857  ;;
9858
9859netbsd*)
9860  version_type=sunos
9861  need_lib_prefix=no
9862  need_version=no
9863  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9864    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9865    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9866    dynamic_linker='NetBSD (a.out) ld.so'
9867  else
9868    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9869    soname_spec='${libname}${release}${shared_ext}$major'
9870    dynamic_linker='NetBSD ld.elf_so'
9871  fi
9872  shlibpath_var=LD_LIBRARY_PATH
9873  shlibpath_overrides_runpath=yes
9874  hardcode_into_libs=yes
9875  ;;
9876
9877newsos6)
9878  version_type=linux
9879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880  shlibpath_var=LD_LIBRARY_PATH
9881  shlibpath_overrides_runpath=yes
9882  ;;
9883
9884nto-qnx*)
9885  version_type=linux
9886  need_lib_prefix=no
9887  need_version=no
9888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889  soname_spec='${libname}${release}${shared_ext}$major'
9890  shlibpath_var=LD_LIBRARY_PATH
9891  shlibpath_overrides_runpath=yes
9892  ;;
9893
9894openbsd*)
9895  version_type=sunos
9896  sys_lib_dlsearch_path_spec="/usr/lib"
9897  need_lib_prefix=no
9898  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9899  case $host_os in
9900    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9901    *)                         need_version=no  ;;
9902  esac
9903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9904  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9905  shlibpath_var=LD_LIBRARY_PATH
9906  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9907    case $host_os in
9908      openbsd2.[89] | openbsd2.[89].*)
9909        shlibpath_overrides_runpath=no
9910        ;;
9911      *)
9912        shlibpath_overrides_runpath=yes
9913        ;;
9914      esac
9915  else
9916    shlibpath_overrides_runpath=yes
9917  fi
9918  ;;
9919
9920os2*)
9921  libname_spec='$name'
9922  shrext_cmds=".dll"
9923  need_lib_prefix=no
9924  library_names_spec='$libname${shared_ext} $libname.a'
9925  dynamic_linker='OS/2 ld.exe'
9926  shlibpath_var=LIBPATH
9927  ;;
9928
9929osf3* | osf4* | osf5*)
9930  version_type=osf
9931  need_lib_prefix=no
9932  need_version=no
9933  soname_spec='${libname}${release}${shared_ext}$major'
9934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935  shlibpath_var=LD_LIBRARY_PATH
9936  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9937  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9938  ;;
9939
9940solaris*)
9941  version_type=linux
9942  need_lib_prefix=no
9943  need_version=no
9944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945  soname_spec='${libname}${release}${shared_ext}$major'
9946  shlibpath_var=LD_LIBRARY_PATH
9947  shlibpath_overrides_runpath=yes
9948  hardcode_into_libs=yes
9949  # ldd complains unless libraries are executable
9950  postinstall_cmds='chmod +x $lib'
9951  ;;
9952
9953sunos4*)
9954  version_type=sunos
9955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9956  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9957  shlibpath_var=LD_LIBRARY_PATH
9958  shlibpath_overrides_runpath=yes
9959  if test "$with_gnu_ld" = yes; then
9960    need_lib_prefix=no
9961  fi
9962  need_version=yes
9963  ;;
9964
9965sysv4 | sysv4.3*)
9966  version_type=linux
9967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9968  soname_spec='${libname}${release}${shared_ext}$major'
9969  shlibpath_var=LD_LIBRARY_PATH
9970  case $host_vendor in
9971    sni)
9972      shlibpath_overrides_runpath=no
9973      need_lib_prefix=no
9974      export_dynamic_flag_spec='${wl}-Blargedynsym'
9975      runpath_var=LD_RUN_PATH
9976      ;;
9977    siemens)
9978      need_lib_prefix=no
9979      ;;
9980    motorola)
9981      need_lib_prefix=no
9982      need_version=no
9983      shlibpath_overrides_runpath=no
9984      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9985      ;;
9986  esac
9987  ;;
9988
9989sysv4*MP*)
9990  if test -d /usr/nec ;then
9991    version_type=linux
9992    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9993    soname_spec='$libname${shared_ext}.$major'
9994    shlibpath_var=LD_LIBRARY_PATH
9995  fi
9996  ;;
9997
9998sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9999  version_type=freebsd-elf
10000  need_lib_prefix=no
10001  need_version=no
10002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10003  soname_spec='${libname}${release}${shared_ext}$major'
10004  shlibpath_var=LD_LIBRARY_PATH
10005  hardcode_into_libs=yes
10006  if test "$with_gnu_ld" = yes; then
10007    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10008    shlibpath_overrides_runpath=no
10009  else
10010    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10011    shlibpath_overrides_runpath=yes
10012    case $host_os in
10013      sco3.2v5*)
10014        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10015        ;;
10016    esac
10017  fi
10018  sys_lib_dlsearch_path_spec='/usr/lib'
10019  ;;
10020
10021uts4*)
10022  version_type=linux
10023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024  soname_spec='${libname}${release}${shared_ext}$major'
10025  shlibpath_var=LD_LIBRARY_PATH
10026  ;;
10027
10028*)
10029  dynamic_linker=no
10030  ;;
10031esac
10032echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10033echo "${ECHO_T}$dynamic_linker" >&6
10034test "$dynamic_linker" = no && can_build_shared=no
10035
10036variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10037if test "$GCC" = yes; then
10038  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10039fi
10040
10041echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10042echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10043hardcode_action=
10044if test -n "$hardcode_libdir_flag_spec" || \
10045   test -n "$runpath_var" || \
10046   test "X$hardcode_automatic" = "Xyes" ; then
10047
10048  # We can hardcode non-existant directories.
10049  if test "$hardcode_direct" != no &&
10050     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10051     # have to relink, otherwise we might link with an installed library
10052     # when we should be linking with a yet-to-be-installed one
10053     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10054     test "$hardcode_minus_L" != no; then
10055    # Linking always hardcodes the temporary library directory.
10056    hardcode_action=relink
10057  else
10058    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10059    hardcode_action=immediate
10060  fi
10061else
10062  # We cannot hardcode anything, or else we can only hardcode existing
10063  # directories.
10064  hardcode_action=unsupported
10065fi
10066echo "$as_me:$LINENO: result: $hardcode_action" >&5
10067echo "${ECHO_T}$hardcode_action" >&6
10068
10069if test "$hardcode_action" = relink; then
10070  # Fast installation is not supported
10071  enable_fast_install=no
10072elif test "$shlibpath_overrides_runpath" = yes ||
10073     test "$enable_shared" = no; then
10074  # Fast installation is not necessary
10075  enable_fast_install=needless
10076fi
10077
10078striplib=
10079old_striplib=
10080echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10081echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10082if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10083  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10084  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10085  echo "$as_me:$LINENO: result: yes" >&5
10086echo "${ECHO_T}yes" >&6
10087else
10088# FIXME - insert some real tests, host_os isn't really good enough
10089  case $host_os in
10090   darwin*)
10091       if test -n "$STRIP" ; then
10092         striplib="$STRIP -x"
10093         echo "$as_me:$LINENO: result: yes" >&5
10094echo "${ECHO_T}yes" >&6
10095       else
10096  echo "$as_me:$LINENO: result: no" >&5
10097echo "${ECHO_T}no" >&6
10098fi
10099       ;;
10100   *)
10101  echo "$as_me:$LINENO: result: no" >&5
10102echo "${ECHO_T}no" >&6
10103    ;;
10104  esac
10105fi
10106
10107if test "x$enable_dlopen" != xyes; then
10108  enable_dlopen=unknown
10109  enable_dlopen_self=unknown
10110  enable_dlopen_self_static=unknown
10111else
10112  lt_cv_dlopen=no
10113  lt_cv_dlopen_libs=
10114
10115  case $host_os in
10116  beos*)
10117    lt_cv_dlopen="load_add_on"
10118    lt_cv_dlopen_libs=
10119    lt_cv_dlopen_self=yes
10120    ;;
10121
10122  mingw* | pw32*)
10123    lt_cv_dlopen="LoadLibrary"
10124    lt_cv_dlopen_libs=
10125   ;;
10126
10127  cygwin*)
10128    lt_cv_dlopen="dlopen"
10129    lt_cv_dlopen_libs=
10130   ;;
10131
10132  darwin*)
10133  # if libdl is installed we need to link against it
10134    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10135echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10136if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10137  echo $ECHO_N "(cached) $ECHO_C" >&6
10138else
10139  ac_check_lib_save_LIBS=$LIBS
10140LIBS="-ldl  $LIBS"
10141cat >conftest.$ac_ext <<_ACEOF
10142/* confdefs.h.  */
10143_ACEOF
10144cat confdefs.h >>conftest.$ac_ext
10145cat >>conftest.$ac_ext <<_ACEOF
10146/* end confdefs.h.  */
10147
10148/* Override any gcc2 internal prototype to avoid an error.  */
10149#ifdef __cplusplus
10150extern "C"
10151#endif
10152/* We use char because int might match the return type of a gcc2
10153   builtin and then its argument prototype would still apply.  */
10154char dlopen ();
10155int
10156main ()
10157{
10158dlopen ();
10159  ;
10160  return 0;
10161}
10162_ACEOF
10163rm -f conftest.$ac_objext conftest$ac_exeext
10164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10165  (eval $ac_link) 2>conftest.er1
10166  ac_status=$?
10167  grep -v '^ *+' conftest.er1 >conftest.err
10168  rm -f conftest.er1
10169  cat conftest.err >&5
10170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171  (exit $ac_status); } &&
10172         { ac_try='test -z "$ac_c_werror_flag"
10173                         || test ! -s conftest.err'
10174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175  (eval $ac_try) 2>&5
10176  ac_status=$?
10177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178  (exit $ac_status); }; } &&
10179         { ac_try='test -s conftest$ac_exeext'
10180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181  (eval $ac_try) 2>&5
10182  ac_status=$?
10183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184  (exit $ac_status); }; }; then
10185  ac_cv_lib_dl_dlopen=yes
10186else
10187  echo "$as_me: failed program was:" >&5
10188sed 's/^/| /' conftest.$ac_ext >&5
10189
10190ac_cv_lib_dl_dlopen=no
10191fi
10192rm -f conftest.err conftest.$ac_objext \
10193      conftest$ac_exeext conftest.$ac_ext
10194LIBS=$ac_check_lib_save_LIBS
10195fi
10196echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10197echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10198if test $ac_cv_lib_dl_dlopen = yes; then
10199  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10200else
10201
10202    lt_cv_dlopen="dyld"
10203    lt_cv_dlopen_libs=
10204    lt_cv_dlopen_self=yes
10205
10206fi
10207
10208   ;;
10209
10210  *)
10211    echo "$as_me:$LINENO: checking for shl_load" >&5
10212echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10213if test "${ac_cv_func_shl_load+set}" = set; then
10214  echo $ECHO_N "(cached) $ECHO_C" >&6
10215else
10216  cat >conftest.$ac_ext <<_ACEOF
10217/* confdefs.h.  */
10218_ACEOF
10219cat confdefs.h >>conftest.$ac_ext
10220cat >>conftest.$ac_ext <<_ACEOF
10221/* end confdefs.h.  */
10222/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10223   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10224#define shl_load innocuous_shl_load
10225
10226/* System header to define __stub macros and hopefully few prototypes,
10227    which can conflict with char shl_load (); below.
10228    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10229    <limits.h> exists even on freestanding compilers.  */
10230
10231#ifdef __STDC__
10232# include <limits.h>
10233#else
10234# include <assert.h>
10235#endif
10236
10237#undef shl_load
10238
10239/* Override any gcc2 internal prototype to avoid an error.  */
10240#ifdef __cplusplus
10241extern "C"
10242{
10243#endif
10244/* We use char because int might match the return type of a gcc2
10245   builtin and then its argument prototype would still apply.  */
10246char shl_load ();
10247/* The GNU C library defines this for functions which it implements
10248    to always fail with ENOSYS.  Some functions are actually named
10249    something starting with __ and the normal name is an alias.  */
10250#if defined (__stub_shl_load) || defined (__stub___shl_load)
10251choke me
10252#else
10253char (*f) () = shl_load;
10254#endif
10255#ifdef __cplusplus
10256}
10257#endif
10258
10259int
10260main ()
10261{
10262return f != shl_load;
10263  ;
10264  return 0;
10265}
10266_ACEOF
10267rm -f conftest.$ac_objext conftest$ac_exeext
10268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10269  (eval $ac_link) 2>conftest.er1
10270  ac_status=$?
10271  grep -v '^ *+' conftest.er1 >conftest.err
10272  rm -f conftest.er1
10273  cat conftest.err >&5
10274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); } &&
10276         { ac_try='test -z "$ac_c_werror_flag"
10277                         || test ! -s conftest.err'
10278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279  (eval $ac_try) 2>&5
10280  ac_status=$?
10281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); }; } &&
10283         { ac_try='test -s conftest$ac_exeext'
10284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285  (eval $ac_try) 2>&5
10286  ac_status=$?
10287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288  (exit $ac_status); }; }; then
10289  ac_cv_func_shl_load=yes
10290else
10291  echo "$as_me: failed program was:" >&5
10292sed 's/^/| /' conftest.$ac_ext >&5
10293
10294ac_cv_func_shl_load=no
10295fi
10296rm -f conftest.err conftest.$ac_objext \
10297      conftest$ac_exeext conftest.$ac_ext
10298fi
10299echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10300echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10301if test $ac_cv_func_shl_load = yes; then
10302  lt_cv_dlopen="shl_load"
10303else
10304  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10305echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10306if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10307  echo $ECHO_N "(cached) $ECHO_C" >&6
10308else
10309  ac_check_lib_save_LIBS=$LIBS
10310LIBS="-ldld  $LIBS"
10311cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h.  */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h.  */
10317
10318/* Override any gcc2 internal prototype to avoid an error.  */
10319#ifdef __cplusplus
10320extern "C"
10321#endif
10322/* We use char because int might match the return type of a gcc2
10323   builtin and then its argument prototype would still apply.  */
10324char shl_load ();
10325int
10326main ()
10327{
10328shl_load ();
10329  ;
10330  return 0;
10331}
10332_ACEOF
10333rm -f conftest.$ac_objext conftest$ac_exeext
10334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335  (eval $ac_link) 2>conftest.er1
10336  ac_status=$?
10337  grep -v '^ *+' conftest.er1 >conftest.err
10338  rm -f conftest.er1
10339  cat conftest.err >&5
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); } &&
10342         { ac_try='test -z "$ac_c_werror_flag"
10343                         || test ! -s conftest.err'
10344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345  (eval $ac_try) 2>&5
10346  ac_status=$?
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); }; } &&
10349         { ac_try='test -s conftest$ac_exeext'
10350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351  (eval $ac_try) 2>&5
10352  ac_status=$?
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); }; }; then
10355  ac_cv_lib_dld_shl_load=yes
10356else
10357  echo "$as_me: failed program was:" >&5
10358sed 's/^/| /' conftest.$ac_ext >&5
10359
10360ac_cv_lib_dld_shl_load=no
10361fi
10362rm -f conftest.err conftest.$ac_objext \
10363      conftest$ac_exeext conftest.$ac_ext
10364LIBS=$ac_check_lib_save_LIBS
10365fi
10366echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10367echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10368if test $ac_cv_lib_dld_shl_load = yes; then
10369  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10370else
10371  echo "$as_me:$LINENO: checking for dlopen" >&5
10372echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10373if test "${ac_cv_func_dlopen+set}" = set; then
10374  echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376  cat >conftest.$ac_ext <<_ACEOF
10377/* confdefs.h.  */
10378_ACEOF
10379cat confdefs.h >>conftest.$ac_ext
10380cat >>conftest.$ac_ext <<_ACEOF
10381/* end confdefs.h.  */
10382/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10383   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10384#define dlopen innocuous_dlopen
10385
10386/* System header to define __stub macros and hopefully few prototypes,
10387    which can conflict with char dlopen (); below.
10388    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10389    <limits.h> exists even on freestanding compilers.  */
10390
10391#ifdef __STDC__
10392# include <limits.h>
10393#else
10394# include <assert.h>
10395#endif
10396
10397#undef dlopen
10398
10399/* Override any gcc2 internal prototype to avoid an error.  */
10400#ifdef __cplusplus
10401extern "C"
10402{
10403#endif
10404/* We use char because int might match the return type of a gcc2
10405   builtin and then its argument prototype would still apply.  */
10406char dlopen ();
10407/* The GNU C library defines this for functions which it implements
10408    to always fail with ENOSYS.  Some functions are actually named
10409    something starting with __ and the normal name is an alias.  */
10410#if defined (__stub_dlopen) || defined (__stub___dlopen)
10411choke me
10412#else
10413char (*f) () = dlopen;
10414#endif
10415#ifdef __cplusplus
10416}
10417#endif
10418
10419int
10420main ()
10421{
10422return f != dlopen;
10423  ;
10424  return 0;
10425}
10426_ACEOF
10427rm -f conftest.$ac_objext conftest$ac_exeext
10428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429  (eval $ac_link) 2>conftest.er1
10430  ac_status=$?
10431  grep -v '^ *+' conftest.er1 >conftest.err
10432  rm -f conftest.er1
10433  cat conftest.err >&5
10434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435  (exit $ac_status); } &&
10436         { ac_try='test -z "$ac_c_werror_flag"
10437                         || test ! -s conftest.err'
10438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439  (eval $ac_try) 2>&5
10440  ac_status=$?
10441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442  (exit $ac_status); }; } &&
10443         { ac_try='test -s conftest$ac_exeext'
10444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445  (eval $ac_try) 2>&5
10446  ac_status=$?
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); }; }; then
10449  ac_cv_func_dlopen=yes
10450else
10451  echo "$as_me: failed program was:" >&5
10452sed 's/^/| /' conftest.$ac_ext >&5
10453
10454ac_cv_func_dlopen=no
10455fi
10456rm -f conftest.err conftest.$ac_objext \
10457      conftest$ac_exeext conftest.$ac_ext
10458fi
10459echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10460echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10461if test $ac_cv_func_dlopen = yes; then
10462  lt_cv_dlopen="dlopen"
10463else
10464  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10465echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10466if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10467  echo $ECHO_N "(cached) $ECHO_C" >&6
10468else
10469  ac_check_lib_save_LIBS=$LIBS
10470LIBS="-ldl  $LIBS"
10471cat >conftest.$ac_ext <<_ACEOF
10472/* confdefs.h.  */
10473_ACEOF
10474cat confdefs.h >>conftest.$ac_ext
10475cat >>conftest.$ac_ext <<_ACEOF
10476/* end confdefs.h.  */
10477
10478/* Override any gcc2 internal prototype to avoid an error.  */
10479#ifdef __cplusplus
10480extern "C"
10481#endif
10482/* We use char because int might match the return type of a gcc2
10483   builtin and then its argument prototype would still apply.  */
10484char dlopen ();
10485int
10486main ()
10487{
10488dlopen ();
10489  ;
10490  return 0;
10491}
10492_ACEOF
10493rm -f conftest.$ac_objext conftest$ac_exeext
10494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495  (eval $ac_link) 2>conftest.er1
10496  ac_status=$?
10497  grep -v '^ *+' conftest.er1 >conftest.err
10498  rm -f conftest.er1
10499  cat conftest.err >&5
10500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501  (exit $ac_status); } &&
10502         { ac_try='test -z "$ac_c_werror_flag"
10503                         || test ! -s conftest.err'
10504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505  (eval $ac_try) 2>&5
10506  ac_status=$?
10507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508  (exit $ac_status); }; } &&
10509         { ac_try='test -s conftest$ac_exeext'
10510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511  (eval $ac_try) 2>&5
10512  ac_status=$?
10513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514  (exit $ac_status); }; }; then
10515  ac_cv_lib_dl_dlopen=yes
10516else
10517  echo "$as_me: failed program was:" >&5
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520ac_cv_lib_dl_dlopen=no
10521fi
10522rm -f conftest.err conftest.$ac_objext \
10523      conftest$ac_exeext conftest.$ac_ext
10524LIBS=$ac_check_lib_save_LIBS
10525fi
10526echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10527echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10528if test $ac_cv_lib_dl_dlopen = yes; then
10529  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10530else
10531  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10532echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10533if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10534  echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536  ac_check_lib_save_LIBS=$LIBS
10537LIBS="-lsvld  $LIBS"
10538cat >conftest.$ac_ext <<_ACEOF
10539/* confdefs.h.  */
10540_ACEOF
10541cat confdefs.h >>conftest.$ac_ext
10542cat >>conftest.$ac_ext <<_ACEOF
10543/* end confdefs.h.  */
10544
10545/* Override any gcc2 internal prototype to avoid an error.  */
10546#ifdef __cplusplus
10547extern "C"
10548#endif
10549/* We use char because int might match the return type of a gcc2
10550   builtin and then its argument prototype would still apply.  */
10551char dlopen ();
10552int
10553main ()
10554{
10555dlopen ();
10556  ;
10557  return 0;
10558}
10559_ACEOF
10560rm -f conftest.$ac_objext conftest$ac_exeext
10561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562  (eval $ac_link) 2>conftest.er1
10563  ac_status=$?
10564  grep -v '^ *+' conftest.er1 >conftest.err
10565  rm -f conftest.er1
10566  cat conftest.err >&5
10567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568  (exit $ac_status); } &&
10569         { ac_try='test -z "$ac_c_werror_flag"
10570                         || test ! -s conftest.err'
10571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572  (eval $ac_try) 2>&5
10573  ac_status=$?
10574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575  (exit $ac_status); }; } &&
10576         { ac_try='test -s conftest$ac_exeext'
10577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578  (eval $ac_try) 2>&5
10579  ac_status=$?
10580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581  (exit $ac_status); }; }; then
10582  ac_cv_lib_svld_dlopen=yes
10583else
10584  echo "$as_me: failed program was:" >&5
10585sed 's/^/| /' conftest.$ac_ext >&5
10586
10587ac_cv_lib_svld_dlopen=no
10588fi
10589rm -f conftest.err conftest.$ac_objext \
10590      conftest$ac_exeext conftest.$ac_ext
10591LIBS=$ac_check_lib_save_LIBS
10592fi
10593echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10594echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10595if test $ac_cv_lib_svld_dlopen = yes; then
10596  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10597else
10598  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10599echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10600if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10601  echo $ECHO_N "(cached) $ECHO_C" >&6
10602else
10603  ac_check_lib_save_LIBS=$LIBS
10604LIBS="-ldld  $LIBS"
10605cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h.  */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h.  */
10611
10612/* Override any gcc2 internal prototype to avoid an error.  */
10613#ifdef __cplusplus
10614extern "C"
10615#endif
10616/* We use char because int might match the return type of a gcc2
10617   builtin and then its argument prototype would still apply.  */
10618char dld_link ();
10619int
10620main ()
10621{
10622dld_link ();
10623  ;
10624  return 0;
10625}
10626_ACEOF
10627rm -f conftest.$ac_objext conftest$ac_exeext
10628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629  (eval $ac_link) 2>conftest.er1
10630  ac_status=$?
10631  grep -v '^ *+' conftest.er1 >conftest.err
10632  rm -f conftest.er1
10633  cat conftest.err >&5
10634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635  (exit $ac_status); } &&
10636         { ac_try='test -z "$ac_c_werror_flag"
10637                         || test ! -s conftest.err'
10638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639  (eval $ac_try) 2>&5
10640  ac_status=$?
10641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642  (exit $ac_status); }; } &&
10643         { ac_try='test -s conftest$ac_exeext'
10644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645  (eval $ac_try) 2>&5
10646  ac_status=$?
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); }; }; then
10649  ac_cv_lib_dld_dld_link=yes
10650else
10651  echo "$as_me: failed program was:" >&5
10652sed 's/^/| /' conftest.$ac_ext >&5
10653
10654ac_cv_lib_dld_dld_link=no
10655fi
10656rm -f conftest.err conftest.$ac_objext \
10657      conftest$ac_exeext conftest.$ac_ext
10658LIBS=$ac_check_lib_save_LIBS
10659fi
10660echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10661echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10662if test $ac_cv_lib_dld_dld_link = yes; then
10663  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10664fi
10665
10666
10667fi
10668
10669
10670fi
10671
10672
10673fi
10674
10675
10676fi
10677
10678
10679fi
10680
10681    ;;
10682  esac
10683
10684  if test "x$lt_cv_dlopen" != xno; then
10685    enable_dlopen=yes
10686  else
10687    enable_dlopen=no
10688  fi
10689
10690  case $lt_cv_dlopen in
10691  dlopen)
10692    save_CPPFLAGS="$CPPFLAGS"
10693    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10694
10695    save_LDFLAGS="$LDFLAGS"
10696    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10697
10698    save_LIBS="$LIBS"
10699    LIBS="$lt_cv_dlopen_libs $LIBS"
10700
10701    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10702echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10703if test "${lt_cv_dlopen_self+set}" = set; then
10704  echo $ECHO_N "(cached) $ECHO_C" >&6
10705else
10706          if test "$cross_compiling" = yes; then :
10707  lt_cv_dlopen_self=cross
10708else
10709  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10710  lt_status=$lt_dlunknown
10711  cat > conftest.$ac_ext <<EOF
10712#line 10712 "configure"
10713#include "confdefs.h"
10714
10715#if HAVE_DLFCN_H
10716#include <dlfcn.h>
10717#endif
10718
10719#include <stdio.h>
10720
10721#ifdef RTLD_GLOBAL
10722#  define LT_DLGLOBAL           RTLD_GLOBAL
10723#else
10724#  ifdef DL_GLOBAL
10725#    define LT_DLGLOBAL         DL_GLOBAL
10726#  else
10727#    define LT_DLGLOBAL         0
10728#  endif
10729#endif
10730
10731/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10732   find out it does not work in some platform. */
10733#ifndef LT_DLLAZY_OR_NOW
10734#  ifdef RTLD_LAZY
10735#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10736#  else
10737#    ifdef DL_LAZY
10738#      define LT_DLLAZY_OR_NOW          DL_LAZY
10739#    else
10740#      ifdef RTLD_NOW
10741#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10742#      else
10743#        ifdef DL_NOW
10744#          define LT_DLLAZY_OR_NOW      DL_NOW
10745#        else
10746#          define LT_DLLAZY_OR_NOW      0
10747#        endif
10748#      endif
10749#    endif
10750#  endif
10751#endif
10752
10753#ifdef __cplusplus
10754extern "C" void exit (int);
10755#endif
10756
10757void fnord() { int i=42;}
10758int main ()
10759{
10760  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10761  int status = $lt_dlunknown;
10762
10763  if (self)
10764    {
10765      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10766      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10767      /* dlclose (self); */
10768    }
10769  else
10770    puts (dlerror ());