source: branches/split/Clp/configure @ 1522

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

merge chgsets 1391:1520 from BSPsplit branch: pkg-config setup

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