source: stable/1.10/Clp/configure @ 1444

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

temporarily committing release candidate to stable

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