source: stable/1.4/Clp/configure @ 1047

Last change on this file since 1047 was 1047, checked in by forrest, 13 years ago

restoring stable/1.4

  • Property svn:executable set to *
File size: 725.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.4stable.
4#
5# Report bugs to <coin-clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.4stable'
433PACKAGE_STRING='Clp 1.4stable'
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Clp 1.4stable to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Clp 1.4stable:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-clp compile this project (Clp) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link. Default
1082                          when mentioned: mingw. Default when not mentioned:
1083                          disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-gnu-packages   compile with GNU packages (disabled by default)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-clp-verbosity specify the debug verbosity level for project Clp
1101  --with-clp-checklevel specify the sanity check level for project Clp
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107  --with-wsmp             specify WSMP library
1108
1109Some influential environment variables:
1110  CDEFS       Additional -D flags to be used when compiling C code.
1111  ADD_CFLAGS  Additional C compiler options
1112  DBG_CFLAGS  Debug C compiler options
1113  OPT_CFLAGS  Optimize C compiler options
1114  CC          C compiler command
1115  CFLAGS      C compiler flags
1116  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1117              nonstandard directory <lib dir>
1118  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1119              headers in a nonstandard directory <include dir>
1120  MPICC       C MPI Compiler
1121  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1122  ADD_CXXFLAGS
1123              Additional C++ compiler options
1124  DBG_CXXFLAGS
1125              Debug C++ compiler options
1126  OPT_CXXFLAGS
1127              Optimize C++ compiler options
1128  CXX         C++ compiler command
1129  CXXFLAGS    C++ compiler flags
1130  MPICXX      C++ MPI Compiler
1131  CPP         C preprocessor
1132  CXXCPP      C++ preprocessor
1133  F77         Fortran 77 compiler command
1134  FFLAGS      Fortran 77 compiler flags
1135
1136Use these variables to override the choices made by `configure' or to help
1137it to find libraries and programs with nonstandard names/locations.
1138
1139Report bugs to <coin-clp@list.coin-or.org>.
1140_ACEOF
1141fi
1142
1143if test "$ac_init_help" = "recursive"; then
1144  # If there are subdirs, report their specific --help.
1145  ac_popdir=`pwd`
1146  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147    test -d $ac_dir || continue
1148    ac_builddir=.
1149
1150if test "$ac_dir" != .; then
1151  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152  # A "../" for each directory in $ac_dir_suffix.
1153  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154else
1155  ac_dir_suffix= ac_top_builddir=
1156fi
1157
1158case $srcdir in
1159  .)  # No --srcdir option.  We are building in place.
1160    ac_srcdir=.
1161    if test -z "$ac_top_builddir"; then
1162       ac_top_srcdir=.
1163    else
1164       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165    fi ;;
1166  [\\/]* | ?:[\\/]* )  # Absolute path.
1167    ac_srcdir=$srcdir$ac_dir_suffix;
1168    ac_top_srcdir=$srcdir ;;
1169  *) # Relative path.
1170    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172esac
1173
1174# Do not use `cd foo && pwd` to compute absolute paths, because
1175# the directories may not exist.
1176case `pwd` in
1177.) ac_abs_builddir="$ac_dir";;
1178*)
1179  case "$ac_dir" in
1180  .) ac_abs_builddir=`pwd`;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_builddir=${ac_top_builddir}.;;
1187*)
1188  case ${ac_top_builddir}. in
1189  .) ac_abs_top_builddir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_srcdir=$ac_srcdir;;
1196*)
1197  case $ac_srcdir in
1198  .) ac_abs_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_top_srcdir=$ac_top_srcdir;;
1205*)
1206  case $ac_top_srcdir in
1207  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210  esac;;
1211esac
1212
1213    cd $ac_dir
1214    # Check for guested configure; otherwise get Cygnus style configure.
1215    if test -f $ac_srcdir/configure.gnu; then
1216      echo
1217      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218    elif test -f $ac_srcdir/configure; then
1219      echo
1220      $SHELL $ac_srcdir/configure  --help=recursive
1221    elif test -f $ac_srcdir/configure.ac ||
1222           test -f $ac_srcdir/configure.in; then
1223      echo
1224      $ac_configure --help
1225    else
1226      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227    fi
1228    cd $ac_popdir
1229  done
1230fi
1231
1232test -n "$ac_init_help" && exit 0
1233if $ac_init_version; then
1234  cat <<\_ACEOF
1235Clp configure 1.4stable
1236generated by GNU Autoconf 2.59
1237
1238Copyright (C) 2003 Free Software Foundation, Inc.
1239This configure script is free software; the Free Software Foundation
1240gives unlimited permission to copy, distribute and modify it.
1241
1242
1243Copyright 2006 International Business Machines and others.
1244All Rights Reserved.
1245This file is part of the open source package Coin which is distributed
1246under the Common Public License.
1247_ACEOF
1248  exit 0
1249fi
1250exec 5>config.log
1251cat >&5 <<_ACEOF
1252This file contains any messages produced by compilers while
1253running configure, to aid debugging if configure makes a mistake.
1254
1255It was created by Clp $as_me 1.4stable, which was
1256generated by GNU Autoconf 2.59.  Invocation command line was
1257
1258  $ $0 $@
1259
1260_ACEOF
1261{
1262cat <<_ASUNAME
1263## --------- ##
1264## Platform. ##
1265## --------- ##
1266
1267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1275
1276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1283
1284_ASUNAME
1285
1286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287for as_dir in $PATH
1288do
1289  IFS=$as_save_IFS
1290  test -z "$as_dir" && as_dir=.
1291  echo "PATH: $as_dir"
1292done
1293
1294} >&5
1295
1296cat >&5 <<_ACEOF
1297
1298
1299## ----------- ##
1300## Core tests. ##
1301## ----------- ##
1302
1303_ACEOF
1304
1305
1306# Keep a trace of the command line.
1307# Strip out --no-create and --no-recursion so they do not pile up.
1308# Strip out --silent because we don't want to record it for future runs.
1309# Also quote any args containing shell meta-characters.
1310# Make two passes to allow for proper duplicate-argument suppression.
1311ac_configure_args=
1312ac_configure_args0=
1313ac_configure_args1=
1314ac_sep=
1315ac_must_keep_next=false
1316for ac_pass in 1 2
1317do
1318  for ac_arg
1319  do
1320    case $ac_arg in
1321    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323    | -silent | --silent | --silen | --sile | --sil)
1324      continue ;;
1325    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327    esac
1328    case $ac_pass in
1329    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330    2)
1331      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332      if test $ac_must_keep_next = true; then
1333        ac_must_keep_next=false # Got value, back to normal.
1334      else
1335        case $ac_arg in
1336          *=* | --config-cache | -C | -disable-* | --disable-* \
1337          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339          | -with-* | --with-* | -without-* | --without-* | --x)
1340            case "$ac_configure_args0 " in
1341              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342            esac
1343            ;;
1344          -* ) ac_must_keep_next=true ;;
1345        esac
1346      fi
1347      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348      # Get rid of the leading space.
1349      ac_sep=" "
1350      ;;
1351    esac
1352  done
1353done
1354$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357# When interrupted or exit'd, cleanup temporary files, and complete
1358# config.log.  We remove comments because anyway the quotes in there
1359# would cause problems or look ugly.
1360# WARNING: Be sure not to use single quotes in there, as some shells,
1361# such as our DU 5.0 friend, will then `close' the trap.
1362trap 'exit_status=$?
1363  # Save into config.log some information that might help in debugging.
1364  {
1365    echo
1366
1367    cat <<\_ASBOX
1368## ---------------- ##
1369## Cache variables. ##
1370## ---------------- ##
1371_ASBOX
1372    echo
1373    # The following way of writing the cache mishandles newlines in values,
1374{
1375  (set) 2>&1 |
1376    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377    *ac_space=\ *)
1378      sed -n \
1379        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381      ;;
1382    *)
1383      sed -n \
1384        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385      ;;
1386    esac;
1387}
1388    echo
1389
1390    cat <<\_ASBOX
1391## ----------------- ##
1392## Output variables. ##
1393## ----------------- ##
1394_ASBOX
1395    echo
1396    for ac_var in $ac_subst_vars
1397    do
1398      eval ac_val=$`echo $ac_var`
1399      echo "$ac_var='"'"'$ac_val'"'"'"
1400    done | sort
1401    echo
1402
1403    if test -n "$ac_subst_files"; then
1404      cat <<\_ASBOX
1405## ------------- ##
1406## Output files. ##
1407## ------------- ##
1408_ASBOX
1409      echo
1410      for ac_var in $ac_subst_files
1411      do
1412        eval ac_val=$`echo $ac_var`
1413        echo "$ac_var='"'"'$ac_val'"'"'"
1414      done | sort
1415      echo
1416    fi
1417
1418    if test -s confdefs.h; then
1419      cat <<\_ASBOX
1420## ----------- ##
1421## confdefs.h. ##
1422## ----------- ##
1423_ASBOX
1424      echo
1425      sed "/^$/d" confdefs.h | sort
1426      echo
1427    fi
1428    test "$ac_signal" != 0 &&
1429      echo "$as_me: caught signal $ac_signal"
1430    echo "$as_me: exit $exit_status"
1431  } >&5
1432  rm -f core *.core &&
1433  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434    exit $exit_status
1435     ' 0
1436for ac_signal in 1 2 13 15; do
1437  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438done
1439ac_signal=0
1440
1441# confdefs.h avoids OS command line length limits that DEFS can exceed.
1442rm -rf conftest* confdefs.h
1443# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444echo >confdefs.h
1445
1446# Predefined preprocessor variables.
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_NAME "$PACKAGE_NAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_VERSION "$PACKAGE_VERSION"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_STRING "$PACKAGE_STRING"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470_ACEOF
1471
1472
1473# Let the site file select an alternate cache file if it wants to.
1474# Prefer explicitly selected file to automatically selected ones.
1475if test -z "$CONFIG_SITE"; then
1476  if test "x$prefix" != xNONE; then
1477    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478  else
1479    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480  fi
1481fi
1482for ac_site_file in $CONFIG_SITE; do
1483  if test -r "$ac_site_file"; then
1484    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485echo "$as_me: loading site script $ac_site_file" >&6;}
1486    sed 's/^/| /' "$ac_site_file" >&5
1487    . "$ac_site_file"
1488  fi
1489done
1490
1491if test -r "$cache_file"; then
1492  # Some versions of bash will fail to source /dev/null (special
1493  # files actually), so we avoid doing that.
1494  if test -f "$cache_file"; then
1495    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496echo "$as_me: loading cache $cache_file" >&6;}
1497    case $cache_file in
1498      [\\/]* | ?:[\\/]* ) . $cache_file;;
1499      *)                      . ./$cache_file;;
1500    esac
1501  fi
1502else
1503  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504echo "$as_me: creating cache $cache_file" >&6;}
1505  >$cache_file
1506fi
1507
1508# Check that the precious variables saved in the cache have kept the same
1509# value.
1510ac_cache_corrupted=false
1511for ac_var in `(set) 2>&1 |
1512               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514  eval ac_new_set=\$ac_env_${ac_var}_set
1515  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516  eval ac_new_val="\$ac_env_${ac_var}_value"
1517  case $ac_old_set,$ac_new_set in
1518    set,)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,set)
1523      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525      ac_cache_corrupted=: ;;
1526    ,);;
1527    *)
1528      if test "x$ac_old_val" != "x$ac_new_val"; then
1529        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1532echo "$as_me:   former value:  $ac_old_val" >&2;}
1533        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1534echo "$as_me:   current value: $ac_new_val" >&2;}
1535        ac_cache_corrupted=:
1536      fi;;
1537  esac
1538  # Pass precious variables to config.status.
1539  if test "$ac_new_set" = set; then
1540    case $ac_new_val in
1541    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543    *) ac_arg=$ac_var=$ac_new_val ;;
1544    esac
1545    case " $ac_configure_args " in
1546      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1547      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548    esac
1549  fi
1550done
1551if $ac_cache_corrupted; then
1552  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558
1559ac_ext=c
1560ac_cpp='$CPP $CPPFLAGS'
1561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594# List one file in the package so that the configure script can test
1595# whether the package is actually there
1596
1597
1598# Where should everything be installed by default?  Here, we want it
1599# to be installed directly in 'bin', 'lib', 'include' subdirectories
1600# of the directory where configure is run.  The default would be
1601# /usr/local.
1602
1603
1604#############################################################################
1605#                         Standard build tool stuff                         #
1606#############################################################################
1607
1608# Get the system type
1609ac_aux_dir=
1610for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1611  if test -f $ac_dir/install-sh; then
1612    ac_aux_dir=$ac_dir
1613    ac_install_sh="$ac_aux_dir/install-sh -c"
1614    break
1615  elif test -f $ac_dir/install.sh; then
1616    ac_aux_dir=$ac_dir
1617    ac_install_sh="$ac_aux_dir/install.sh -c"
1618    break
1619  elif test -f $ac_dir/shtool; then
1620    ac_aux_dir=$ac_dir
1621    ac_install_sh="$ac_aux_dir/shtool install -c"
1622    break
1623  fi
1624done
1625if test -z "$ac_aux_dir"; then
1626  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1627echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1628   { (exit 1); exit 1; }; }
1629fi
1630ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1631ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1632ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1633
1634# Make sure we can run config.sub.
1635$ac_config_sub sun4 >/dev/null 2>&1 ||
1636  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1637echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1638   { (exit 1); exit 1; }; }
1639
1640echo "$as_me:$LINENO: checking build system type" >&5
1641echo $ECHO_N "checking build system type... $ECHO_C" >&6
1642if test "${ac_cv_build+set}" = set; then
1643  echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645  ac_cv_build_alias=$build_alias
1646test -z "$ac_cv_build_alias" &&
1647  ac_cv_build_alias=`$ac_config_guess`
1648test -z "$ac_cv_build_alias" &&
1649  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1650echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1651   { (exit 1); exit 1; }; }
1652ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1653  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1654echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657fi
1658echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1659echo "${ECHO_T}$ac_cv_build" >&6
1660build=$ac_cv_build
1661build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664
1665
1666
1667# If this project depends on external projects, the Externals file in
1668# the source root directory contains definition of where to find those
1669# externals.  The following macro ensures that those externals are
1670# retrieved by svn if they are not there yet.
1671# Initialize the ADDLIBS variable
1672ADDLIBS="-lm $LIBS"
1673
1674
1675# Initialize the FADDLIBS variable (which is to be used with a fortran
1676# compiler and will not include FLIBS)
1677FADDLIBS="$LIBS"
1678
1679
1680# A useful makefile conditional that is always false
1681
1682
1683if false; then
1684  ALWAYS_FALSE_TRUE=
1685  ALWAYS_FALSE_FALSE='#'
1686else
1687  ALWAYS_FALSE_TRUE='#'
1688  ALWAYS_FALSE_FALSE=
1689fi
1690
1691
1692# We set the following variable so that we know later in AC_COIN_FINALIZE
1693# that we are in a project main directory
1694coin_projectdir=yes
1695
1696
1697# Check if user wants to produce debugging code
1698
1699echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1700echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1701
1702# Check whether --enable-debug or --disable-debug was given.
1703if test "${enable_debug+set}" = set; then
1704  enableval="$enable_debug"
1705  case "${enableval}" in
1706   yes) coin_debug_compile=true
1707        enable_shared=no
1708        ;;
1709   no)  coin_debug_compile=false
1710        ;;
1711   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1712echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1713   { (exit 1); exit 1; }; }
1714        ;;
1715esac
1716else
1717  coin_debug_compile=false
1718fi;
1719
1720# Check whether --enable-debug-clp or --disable-debug-clp was given.
1721if test "${enable_debug_clp+set}" = set; then
1722  enableval="$enable_debug_clp"
1723  case "${enableval}" in
1724    yes) coin_debug_compile=true
1725         enable_shared=no
1726         ;;
1727    no)  coin_debug_compile=false
1728         ;;
1729    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1730echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1731   { (exit 1); exit 1; }; }
1732         ;;
1733 esac
1734else
1735  :
1736fi;
1737
1738 # m4_ifvaln([Clp],
1739
1740if test $coin_debug_compile = true; then
1741  echo "$as_me:$LINENO: result: yes" >&5
1742echo "${ECHO_T}yes" >&6
1743else
1744  echo "$as_me:$LINENO: result: no" >&5
1745echo "${ECHO_T}no" >&6
1746fi
1747
1748
1749# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1750if test "${with_clp_verbosity+set}" = set; then
1751  withval="$with_clp_verbosity"
1752  if test "$withval" = yes; then
1753                withval=1
1754              fi
1755              coin_clp_verbosity=$withval
1756else
1757  coin_clp_verbosity=0
1758fi;
1759
1760cat >>confdefs.h <<_ACEOF
1761#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1762_ACEOF
1763
1764
1765
1766# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1767if test "${with_clp_checklevel+set}" = set; then
1768  withval="$with_clp_checklevel"
1769  if test "$withval" = yes; then
1770                withval=1
1771              fi
1772              coin_clp_checklevel=$withval
1773else
1774  coin_clp_checklevel=0
1775fi;
1776
1777cat >>confdefs.h <<_ACEOF
1778#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1779_ACEOF
1780
1781
1782# We use the following variable to have a string with the upper case
1783# version of the project name
1784COIN_PRJCT=CLP
1785
1786
1787 # m4_ifvaln([Clp],
1788
1789
1790
1791# Get the name of the C++ compiler and appropriate compiler options
1792case $build in
1793  *-mingw*)
1794    if test "${LD+set}" = set; then :; else
1795      LD=link
1796    fi
1797    ;;
1798 esac
1799 case $enable_doscompile in
1800   msvc)
1801     if test "x${LD+set}" = xset; then :; else
1802       LD=link
1803     fi
1804     ;;
1805 esac
1806
1807
1808 # Check whether --enable-doscompile or --disable-doscompile was given.
1809if test "${enable_doscompile+set}" = set; then
1810  enableval="$enable_doscompile"
1811  if test "$enable_doscompile" != no; then
1812     case $build in
1813       *-cygwin*) ;;
1814       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1815echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1816   { (exit 1); exit 1; }; } ;;
1817     esac
1818   fi
1819else
1820  enable_doscompile=no
1821fi;
1822 case "$enable_doscompile" in
1823   msvc|mingw|no) ;;
1824   yes) enable_doscompile=mingw ;;
1825   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1826                    Try configure --help=recursive." >&5
1827echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1828                    Try configure --help=recursive." >&2;}
1829   { (exit 1); exit 1; }; }
1830      ;;
1831  esac
1832  if test "$enable_doscompile" != no ; then
1833    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1834echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1835  fi
1836
1837
1838
1839
1840ac_ext=c
1841ac_cpp='$CPP $CPPFLAGS'
1842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1844ac_compiler_gnu=$ac_cv_c_compiler_gnu
1845
1846
1847# For consistency, we set the C compiler to the same value of the C++
1848# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1849if test x"$CXX" != x; then
1850  case "$CXX" in
1851    cl* | */cl* | CL* | */CL*)
1852      if test x"$CC" = x; then
1853        CC="$CXX"
1854        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1855echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1856      fi
1857      ;;
1858  esac
1859fi
1860
1861
1862
1863
1864
1865
1866coin_has_cc=yes
1867
1868save_cflags="$CFLAGS"
1869# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1870# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1871# is likely to be a non-functional shell. But many installations will have
1872# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1873case $build in
1874  *-cygwin* | *-mingw*)
1875             if test "$enable_doscompile" = msvc ; then
1876               comps="cl"
1877             else
1878               comps="gcc cl"
1879             fi ;;
1880  sparc-sun-solaris*)
1881             comps="cc xlc gcc pgcc icc" ;;
1882  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1883  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1884esac
1885
1886# We delete the cached value, since the test might not have been
1887# performed with our choice of compilers earlier
1888$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1889# AC_MSG_NOTICE([C compiler candidates: $comps])
1890ac_ext=c
1891ac_cpp='$CPP $CPPFLAGS'
1892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1894ac_compiler_gnu=$ac_cv_c_compiler_gnu
1895if test -n "$ac_tool_prefix"; then
1896  for ac_prog in $comps
1897  do
1898    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1899set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1900echo "$as_me:$LINENO: checking for $ac_word" >&5
1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1902if test "${ac_cv_prog_CC+set}" = set; then
1903  echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905  if test -n "$CC"; then
1906  ac_cv_prog_CC="$CC" # Let the user override the test.
1907else
1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911  IFS=$as_save_IFS
1912  test -z "$as_dir" && as_dir=.
1913  for ac_exec_ext in '' $ac_executable_extensions; do
1914  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1915    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917    break 2
1918  fi
1919done
1920done
1921
1922fi
1923fi
1924CC=$ac_cv_prog_CC
1925if test -n "$CC"; then
1926  echo "$as_me:$LINENO: result: $CC" >&5
1927echo "${ECHO_T}$CC" >&6
1928else
1929  echo "$as_me:$LINENO: result: no" >&5
1930echo "${ECHO_T}no" >&6
1931fi
1932
1933    test -n "$CC" && break
1934  done
1935fi
1936if test -z "$CC"; then
1937  ac_ct_CC=$CC
1938  for ac_prog in $comps
1939do
1940  # Extract the first word of "$ac_prog", so it can be a program name with args.
1941set dummy $ac_prog; ac_word=$2
1942echo "$as_me:$LINENO: checking for $ac_word" >&5
1943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1945  echo $ECHO_N "(cached) $ECHO_C" >&6
1946else
1947  if test -n "$ac_ct_CC"; then
1948  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1949else
1950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951for as_dir in $PATH
1952do
1953  IFS=$as_save_IFS
1954  test -z "$as_dir" && as_dir=.
1955  for ac_exec_ext in '' $ac_executable_extensions; do
1956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957    ac_cv_prog_ac_ct_CC="$ac_prog"
1958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959    break 2
1960  fi
1961done
1962done
1963
1964fi
1965fi
1966ac_ct_CC=$ac_cv_prog_ac_ct_CC
1967if test -n "$ac_ct_CC"; then
1968  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1969echo "${ECHO_T}$ac_ct_CC" >&6
1970else
1971  echo "$as_me:$LINENO: result: no" >&5
1972echo "${ECHO_T}no" >&6
1973fi
1974
1975  test -n "$ac_ct_CC" && break
1976done
1977
1978  CC=$ac_ct_CC
1979fi
1980
1981
1982test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1983See \`config.log' for more details." >&5
1984echo "$as_me: error: no acceptable C compiler found in \$PATH
1985See \`config.log' for more details." >&2;}
1986   { (exit 1); exit 1; }; }
1987
1988# Provide some information about the compiler.
1989echo "$as_me:$LINENO:" \
1990     "checking for C compiler version" >&5
1991ac_compiler=`set X $ac_compile; echo $2`
1992{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1993  (eval $ac_compiler --version </dev/null >&5) 2>&5
1994  ac_status=$?
1995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996  (exit $ac_status); }
1997{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1998  (eval $ac_compiler -v </dev/null >&5) 2>&5
1999  ac_status=$?
2000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2001  (exit $ac_status); }
2002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2003  (eval $ac_compiler -V </dev/null >&5) 2>&5
2004  ac_status=$?
2005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006  (exit $ac_status); }
2007
2008cat >conftest.$ac_ext <<_ACEOF
2009/* confdefs.h.  */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h.  */
2014
2015int
2016main ()
2017{
2018
2019  ;
2020  return 0;
2021}
2022_ACEOF
2023ac_clean_files_save=$ac_clean_files
2024ac_clean_files="$ac_clean_files a.out a.exe b.out"
2025# Try to create an executable without -o first, disregard a.out.
2026# It will help us diagnose broken compilers, and finding out an intuition
2027# of exeext.
2028echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2029echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2030ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2031if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2032  (eval $ac_link_default) 2>&5
2033  ac_status=$?
2034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035  (exit $ac_status); }; then
2036  # Find the output, starting from the most likely.  This scheme is
2037# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2038# resort.
2039
2040# Be careful to initialize this variable, since it used to be cached.
2041# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2042ac_cv_exeext=
2043# b.out is created by i960 compilers.
2044for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2045do
2046  test -f "$ac_file" || continue
2047  case $ac_file in
2048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2049        ;;
2050    conftest.$ac_ext )
2051        # This is the source file.
2052        ;;
2053    [ab].out )
2054        # We found the default executable, but exeext='' is most
2055        # certainly right.
2056        break;;
2057    *.* )
2058        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2059        # FIXME: I believe we export ac_cv_exeext for Libtool,
2060        # but it would be cool to find out if it's true.  Does anybody
2061        # maintain Libtool? --akim.
2062        export ac_cv_exeext
2063        break;;
2064    * )
2065        break;;
2066  esac
2067done
2068else
2069  echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: C compiler cannot create executables
2075See \`config.log' for more details." >&2;}
2076   { (exit 77); exit 77; }; }
2077fi
2078
2079ac_exeext=$ac_cv_exeext
2080echo "$as_me:$LINENO: result: $ac_file" >&5
2081echo "${ECHO_T}$ac_file" >&6
2082
2083# Check the compiler produces executables we can run.  If not, either
2084# the compiler is broken, or we cross compile.
2085echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2086echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2087# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2088# If not cross compiling, check that we can run a simple program.
2089if test "$cross_compiling" != yes; then
2090  if { ac_try='./$ac_file'
2091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092  (eval $ac_try) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }; }; then
2096    cross_compiling=no
2097  else
2098    if test "$cross_compiling" = maybe; then
2099        cross_compiling=yes
2100    else
2101        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2102If you meant to cross compile, use \`--host'.
2103See \`config.log' for more details." >&5
2104echo "$as_me: error: cannot run C compiled programs.
2105If you meant to cross compile, use \`--host'.
2106See \`config.log' for more details." >&2;}
2107   { (exit 1); exit 1; }; }
2108    fi
2109  fi
2110fi
2111echo "$as_me:$LINENO: result: yes" >&5
2112echo "${ECHO_T}yes" >&6
2113
2114rm -f a.out a.exe conftest$ac_cv_exeext b.out
2115ac_clean_files=$ac_clean_files_save
2116# Check the compiler produces executables we can run.  If not, either
2117# the compiler is broken, or we cross compile.
2118echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2119echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2120echo "$as_me:$LINENO: result: $cross_compiling" >&5
2121echo "${ECHO_T}$cross_compiling" >&6
2122
2123echo "$as_me:$LINENO: checking for suffix of executables" >&5
2124echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2126  (eval $ac_link) 2>&5
2127  ac_status=$?
2128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129  (exit $ac_status); }; then
2130  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2131# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2132# work properly (i.e., refer to `conftest.exe'), while it won't with
2133# `rm'.
2134for ac_file in conftest.exe conftest conftest.*; do
2135  test -f "$ac_file" || continue
2136  case $ac_file in
2137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2138    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2139          export ac_cv_exeext
2140          break;;
2141    * ) break;;
2142  esac
2143done
2144else
2145  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2146See \`config.log' for more details." >&5
2147echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2148See \`config.log' for more details." >&2;}
2149   { (exit 1); exit 1; }; }
2150fi
2151
2152rm -f conftest$ac_cv_exeext
2153echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2154echo "${ECHO_T}$ac_cv_exeext" >&6
2155
2156rm -f conftest.$ac_ext
2157EXEEXT=$ac_cv_exeext
2158ac_exeext=$EXEEXT
2159echo "$as_me:$LINENO: checking for suffix of object files" >&5
2160echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2161if test "${ac_cv_objext+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179rm -f conftest.o conftest.obj
2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181  (eval $ac_compile) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }; then
2185  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2186  case $ac_file in
2187    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2188    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2189       break;;
2190  esac
2191done
2192else
2193  echo "$as_me: failed program was:" >&5
2194sed 's/^/| /' conftest.$ac_ext >&5
2195
2196{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: cannot compute suffix of object files: cannot compile
2199See \`config.log' for more details." >&2;}
2200   { (exit 1); exit 1; }; }
2201fi
2202
2203rm -f conftest.$ac_cv_objext conftest.$ac_ext
2204fi
2205echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2206echo "${ECHO_T}$ac_cv_objext" >&6
2207OBJEXT=$ac_cv_objext
2208ac_objext=$OBJEXT
2209echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2210echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2211if test "${ac_cv_c_compiler_gnu+set}" = set; then
2212  echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
2214  cat >conftest.$ac_ext <<_ACEOF
2215/* confdefs.h.  */
2216_ACEOF
2217cat confdefs.h >>conftest.$ac_ext
2218cat >>conftest.$ac_ext <<_ACEOF
2219/* end confdefs.h.  */
2220
2221int
2222main ()
2223{
2224#ifndef __GNUC__
2225       choke me
2226#endif
2227
2228  ;
2229  return 0;
2230}
2231_ACEOF
2232rm -f conftest.$ac_objext
2233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2234  (eval $ac_compile) 2>conftest.er1
2235  ac_status=$?
2236  grep -v '^ *+' conftest.er1 >conftest.err
2237  rm -f conftest.er1
2238  cat conftest.err >&5
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); } &&
2241         { ac_try='test -z "$ac_c_werror_flag"
2242                         || test ! -s conftest.err'
2243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2244  (eval $ac_try) 2>&5
2245  ac_status=$?
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); }; } &&
2248         { ac_try='test -s conftest.$ac_objext'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; }; then
2254  ac_compiler_gnu=yes
2255else
2256  echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259ac_compiler_gnu=no
2260fi
2261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2262ac_cv_c_compiler_gnu=$ac_compiler_gnu
2263
2264fi
2265echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2266echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2267GCC=`test $ac_compiler_gnu = yes && echo yes`
2268ac_test_CFLAGS=${CFLAGS+set}
2269ac_save_CFLAGS=$CFLAGS
2270CFLAGS="-g"
2271echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2272echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2273if test "${ac_cv_prog_cc_g+set}" = set; then
2274  echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276  cat >conftest.$ac_ext <<_ACEOF
2277/* confdefs.h.  */
2278_ACEOF
2279cat confdefs.h >>conftest.$ac_ext
2280cat >>conftest.$ac_ext <<_ACEOF
2281/* end confdefs.h.  */
2282
2283int
2284main ()
2285{
2286
2287  ;
2288  return 0;
2289}
2290_ACEOF
2291rm -f conftest.$ac_objext
2292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293  (eval $ac_compile) 2>conftest.er1
2294  ac_status=$?
2295  grep -v '^ *+' conftest.er1 >conftest.err
2296  rm -f conftest.er1
2297  cat conftest.err >&5
2298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299  (exit $ac_status); } &&
2300         { ac_try='test -z "$ac_c_werror_flag"
2301                         || test ! -s conftest.err'
2302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303  (eval $ac_try) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; } &&
2307         { ac_try='test -s conftest.$ac_objext'
2308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309  (eval $ac_try) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; }; then
2313  ac_cv_prog_cc_g=yes
2314else
2315  echo "$as_me: failed program was:" >&5
2316sed 's/^/| /' conftest.$ac_ext >&5
2317
2318ac_cv_prog_cc_g=no
2319fi
2320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2321fi
2322echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2323echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2324if test "$ac_test_CFLAGS" = set; then
2325  CFLAGS=$ac_save_CFLAGS
2326elif test $ac_cv_prog_cc_g = yes; then
2327  if test "$GCC" = yes; then
2328    CFLAGS="-g -O2"
2329  else
2330    CFLAGS="-g"
2331  fi
2332else
2333  if test "$GCC" = yes; then
2334    CFLAGS="-O2"
2335  else
2336    CFLAGS=
2337  fi
2338fi
2339echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2340echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2341if test "${ac_cv_prog_cc_stdc+set}" = set; then
2342  echo $ECHO_N "(cached) $ECHO_C" >&6
2343else
2344  ac_cv_prog_cc_stdc=no
2345ac_save_CC=$CC
2346cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352#include <stdarg.h>
2353#include <stdio.h>
2354#include <sys/types.h>
2355#include <sys/stat.h>
2356/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2357struct buf { int x; };
2358FILE * (*rcsopen) (struct buf *, struct stat *, int);
2359static char *e (p, i)
2360     char **p;
2361     int i;
2362{
2363  return p[i];
2364}
2365static char *f (char * (*g) (char **, int), char **p, ...)
2366{
2367  char *s;
2368  va_list v;
2369  va_start (v,p);
2370  s = g (p, va_arg (v,int));
2371  va_end (v);
2372  return s;
2373}
2374
2375/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2376   function prototypes and stuff, but not '\xHH' hex character constants.
2377   These don't provoke an error unfortunately, instead are silently treated
2378   as 'x'.  The following induces an error, until -std1 is added to get
2379   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2380   array size at least.  It's necessary to write '\x00'==0 to get something
2381   that's true only with -std1.  */
2382int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2383
2384int test (int i, double x);
2385struct s1 {int (*f) (int a);};
2386struct s2 {int (*f) (double a);};
2387int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2388int argc;
2389char **argv;
2390int
2391main ()
2392{
2393return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2394  ;
2395  return 0;
2396}
2397_ACEOF
2398# Don't try gcc -ansi; that turns off useful extensions and
2399# breaks some systems' header files.
2400# AIX                   -qlanglvl=ansi
2401# Ultrix and OSF/1      -std1
2402# HP-UX 10.20 and later -Ae
2403# HP-UX older versions  -Aa -D_HPUX_SOURCE
2404# SVR4                  -Xc -D__EXTENSIONS__
2405for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2406do
2407  CC="$ac_save_CC $ac_arg"
2408  rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  ac_cv_prog_cc_stdc=$ac_arg
2431break
2432else
2433  echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436fi
2437rm -f conftest.err conftest.$ac_objext
2438done
2439rm -f conftest.$ac_ext conftest.$ac_objext
2440CC=$ac_save_CC
2441
2442fi
2443
2444case "x$ac_cv_prog_cc_stdc" in
2445  x|xno)
2446    echo "$as_me:$LINENO: result: none needed" >&5
2447echo "${ECHO_T}none needed" >&6 ;;
2448  *)
2449    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2450echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2451    CC="$CC $ac_cv_prog_cc_stdc" ;;
2452esac
2453
2454# Some people use a C++ compiler to compile C.  Since we use `exit',
2455# in C++ we need to declare it.  In case someone uses the same compiler
2456# for both compiling C and C++ we need to have the C++ compiler decide
2457# the declaration of exit, since it's the most demanding environment.
2458cat >conftest.$ac_ext <<_ACEOF
2459#ifndef __cplusplus
2460  choke me
2461#endif
2462_ACEOF
2463rm -f conftest.$ac_objext
2464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465  (eval $ac_compile) 2>conftest.er1
2466  ac_status=$?
2467  grep -v '^ *+' conftest.er1 >conftest.err
2468  rm -f conftest.er1
2469  cat conftest.err >&5
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); } &&
2472         { ac_try='test -z "$ac_c_werror_flag"
2473                         || test ! -s conftest.err'
2474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475  (eval $ac_try) 2>&5
2476  ac_status=$?
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); }; } &&
2479         { ac_try='test -s conftest.$ac_objext'
2480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481  (eval $ac_try) 2>&5
2482  ac_status=$?
2483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484  (exit $ac_status); }; }; then
2485  for ac_declaration in \
2486   '' \
2487   'extern "C" void std::exit (int) throw (); using std::exit;' \
2488   'extern "C" void std::exit (int); using std::exit;' \
2489   'extern "C" void exit (int) throw ();' \
2490   'extern "C" void exit (int);' \
2491   'void exit (int);'
2492do
2493  cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h.  */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h.  */
2499$ac_declaration
2500#include <stdlib.h>
2501int
2502main ()
2503{
2504exit (42);
2505  ;
2506  return 0;
2507}
2508_ACEOF
2509rm -f conftest.$ac_objext
2510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511  (eval $ac_compile) 2>conftest.er1
2512  ac_status=$?
2513  grep -v '^ *+' conftest.er1 >conftest.err
2514  rm -f conftest.er1
2515  cat conftest.err >&5
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); } &&
2518         { ac_try='test -z "$ac_c_werror_flag"
2519                         || test ! -s conftest.err'
2520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521  (eval $ac_try) 2>&5
2522  ac_status=$?
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); }; } &&
2525         { ac_try='test -s conftest.$ac_objext'
2526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527  (eval $ac_try) 2>&5
2528  ac_status=$?
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); }; }; then
2531  :
2532else
2533  echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536continue
2537fi
2538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539  cat >conftest.$ac_ext <<_ACEOF
2540/* confdefs.h.  */
2541_ACEOF
2542cat confdefs.h >>conftest.$ac_ext
2543cat >>conftest.$ac_ext <<_ACEOF
2544/* end confdefs.h.  */
2545$ac_declaration
2546int
2547main ()
2548{
2549exit (42);
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554rm -f conftest.$ac_objext
2555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556  (eval $ac_compile) 2>conftest.er1
2557  ac_status=$?
2558  grep -v '^ *+' conftest.er1 >conftest.err
2559  rm -f conftest.er1
2560  cat conftest.err >&5
2561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562  (exit $ac_status); } &&
2563         { ac_try='test -z "$ac_c_werror_flag"
2564                         || test ! -s conftest.err'
2565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2566  (eval $ac_try) 2>&5
2567  ac_status=$?
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); }; } &&
2570         { ac_try='test -s conftest.$ac_objext'
2571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2572  (eval $ac_try) 2>&5
2573  ac_status=$?
2574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575  (exit $ac_status); }; }; then
2576  break
2577else
2578  echo "$as_me: failed program was:" >&5
2579sed 's/^/| /' conftest.$ac_ext >&5
2580
2581fi
2582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583done
2584rm -f conftest*
2585if test -n "$ac_declaration"; then
2586  echo '#ifdef __cplusplus' >>confdefs.h
2587  echo $ac_declaration      >>confdefs.h
2588  echo '#endif'             >>confdefs.h
2589fi
2590
2591else
2592  echo "$as_me: failed program was:" >&5
2593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595fi
2596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2597ac_ext=c
2598ac_cpp='$CPP $CPPFLAGS'
2599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603if test -z "$CC" ; then
2604  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2605echo "$as_me: error: Failed to find a C compiler!" >&2;}
2606   { (exit 1); exit 1; }; }
2607fi
2608# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2609case "$CC" in
2610  cl* | */cl* | CL* | */CL* )
2611    if test "$ac_cv_prog_cc_g" = yes ; then
2612      ac_cv_prog_cc_g=no
2613      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2614echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2615    fi ;;
2616esac
2617CFLAGS="$save_cflags"
2618
2619# Check if a project specific CFLAGS variable has been set
2620if test x$COIN_PRJCT != x; then
2621  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2622  if test x$coin_tmp = xset; then
2623    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2624  fi
2625fi
2626
2627if test x"$CFLAGS" = x; then
2628
2629  coin_add_cflags=
2630  coin_opt_cflags=
2631  coin_dbg_cflags=
2632  coin_warn_cflags=
2633
2634  if test "$GCC" = "yes"; then
2635    case "$CC" in
2636      icc* | */icc*)
2637        ;;
2638      *)
2639        coin_opt_cflags="-O3 -fomit-frame-pointer"
2640        coin_add_cflags="-pipe"
2641        coin_dbg_cflags="-g"
2642        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2643        case $enable_doscompile in
2644          mingw)
2645            CFLAGS="-mno-cygwin"
2646            cat >conftest.$ac_ext <<_ACEOF
2647/* confdefs.h.  */
2648_ACEOF
2649cat confdefs.h >>conftest.$ac_ext
2650cat >>conftest.$ac_ext <<_ACEOF
2651/* end confdefs.h.  */
2652
2653int
2654main ()
2655{
2656int i=0; i++;
2657  ;
2658  return 0;
2659}
2660_ACEOF
2661rm -f conftest.$ac_objext conftest$ac_exeext
2662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2663  (eval $ac_link) 2>conftest.er1
2664  ac_status=$?
2665  grep -v '^ *+' conftest.er1 >conftest.err
2666  rm -f conftest.er1
2667  cat conftest.err >&5
2668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669  (exit $ac_status); } &&
2670         { ac_try='test -z "$ac_c_werror_flag"
2671                         || test ! -s conftest.err'
2672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673  (eval $ac_try) 2>&5
2674  ac_status=$?
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); }; } &&
2677         { ac_try='test -s conftest$ac_exeext'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; }; then
2683  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2684else
2685  echo "$as_me: failed program was:" >&5
2686sed 's/^/| /' conftest.$ac_ext >&5
2687
2688fi
2689rm -f conftest.err conftest.$ac_objext \
2690      conftest$ac_exeext conftest.$ac_ext
2691            CFLAGS=
2692          ;;
2693        esac
2694    esac
2695  fi
2696  if test -z "$coin_opt_cflags"; then
2697    case $build in
2698      *-cygwin* | *-mingw*)
2699        case "$CC" in
2700          cl* | */cl* | CL* | */CL*)
2701            coin_opt_cflags='-MT -O2'
2702            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2703            coin_dbg_cflags='-MTd'
2704            ;;
2705        esac
2706        ;;
2707      *-linux-*)
2708        case "$CC" in
2709          icc* | */icc*)
2710            coin_opt_cflags="-O3 -ip"
2711            coin_add_cflags=""
2712            coin_dbg_cflags="-g"
2713            # Check if -i_dynamic is necessary (for new glibc library)
2714            CFLAGS=
2715            cat >conftest.$ac_ext <<_ACEOF
2716/* confdefs.h.  */
2717_ACEOF
2718cat confdefs.h >>conftest.$ac_ext
2719cat >>conftest.$ac_ext <<_ACEOF
2720/* end confdefs.h.  */
2721
2722int
2723main ()
2724{
2725int i=0; i++;
2726  ;
2727  return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext conftest$ac_exeext
2731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2732  (eval $ac_link) 2>conftest.er1
2733  ac_status=$?
2734  grep -v '^ *+' conftest.er1 >conftest.err
2735  rm -f conftest.er1
2736  cat conftest.err >&5
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); } &&
2739         { ac_try='test -z "$ac_c_werror_flag"
2740                         || test ! -s conftest.err'
2741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742  (eval $ac_try) 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }; } &&
2746         { ac_try='test -s conftest$ac_exeext'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; }; then
2752  :
2753else
2754  echo "$as_me: failed program was:" >&5
2755sed 's/^/| /' conftest.$ac_ext >&5
2756
2757coin_add_cflags="-i_dynamic $coin_add_cflags"
2758fi
2759rm -f conftest.err conftest.$ac_objext \
2760      conftest$ac_exeext conftest.$ac_ext
2761            ;;
2762          pgcc* | */pgcc*)
2763            coin_opt_cflags="-fast"
2764            coin_add_cflags="-Kieee -pc 64"
2765            coin_dbg_cflags="-g"
2766            ;;
2767        esac
2768        ;;
2769      *-ibm-*)
2770        case "$CC" in
2771          xlc* | */xlc* | mpxlc* | */mpxlc*)
2772            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2773            coin_add_cflags="-bmaxdata:0x80000000"
2774            coin_dbg_cflags="-g"
2775          ;;
2776        esac
2777        ;;
2778      *-hp-*)
2779        coin_opt_cflags="-O"
2780        coin_add_cflags="-Ae"
2781        coin_dbg_cflags="-g"
2782        ;;
2783      *-sun-*)
2784        coin_opt_cflags="-xO4"
2785        coin_dbg_cflags="-g"
2786        ;;
2787      *-sgi-*)
2788        coin_opt_cflags="-O -OPT:Olimit=0"
2789        coin_dbg_cflags="-g"
2790        ;;
2791    esac
2792  fi
2793
2794  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2795    coin_dbg_cflags="-g"
2796  fi
2797
2798  if test -z "$coin_opt_cflags"; then
2799    # Try if -O option works if nothing else is set
2800    CFLAGS="-O"
2801    cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h.  */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h.  */
2807
2808int
2809main ()
2810{
2811int i=0; i++;
2812  ;
2813  return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext conftest$ac_exeext
2817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818  (eval $ac_link) 2>conftest.er1
2819  ac_status=$?
2820  grep -v '^ *+' conftest.er1 >conftest.err
2821  rm -f conftest.er1
2822  cat conftest.err >&5
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); } &&
2825         { ac_try='test -z "$ac_c_werror_flag"
2826                         || test ! -s conftest.err'
2827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828  (eval $ac_try) 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }; } &&
2832         { ac_try='test -s conftest$ac_exeext'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; }; then
2838  coin_opt_cflags="-O"
2839else
2840  echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843fi
2844rm -f conftest.err conftest.$ac_objext \
2845      conftest$ac_exeext conftest.$ac_ext
2846  fi
2847
2848  # if PM doesn't want the warning messages, take them out
2849  if test x"$coin_skip_warn_cflags" = xyes; then
2850    coin_warn_cflags=
2851  fi
2852
2853  if test x${DBG_CFLAGS+set} != xset; then
2854    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2855  fi
2856  if test x${OPT_CFLAGS+set} != xset; then
2857    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2858  fi
2859
2860  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2861  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2862
2863  if test "$coin_debug_compile" = "true"; then
2864    CFLAGS="$DBG_CFLAGS"
2865  else
2866    CFLAGS="$OPT_CFLAGS"
2867  fi
2868else
2869  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2870  if test x${DBG_CFLAGS+set} != xset; then
2871    DBG_CFLAGS="$CFLAGS"
2872  fi
2873  if test x${OPT_CFLAGS+set} != xset; then
2874    OPT_CFLAGS="$CFLAGS"
2875  fi
2876fi
2877
2878# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2879
2880case "$CFLAGS" in
2881  *-mno-cygwin*)
2882    if test x${CPPFLAGS+set} != xset ; then
2883      CPPFLAGS="-mno-cygwin"
2884    else
2885      case "$CPPFLAGS" in
2886        *-mno-cygwin*)
2887          ;;
2888        *)
2889          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2890          ;;
2891      esac
2892    fi ;;
2893esac
2894
2895# Try if CFLAGS works
2896save_CFLAGS="$CFLAGS"
2897cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h.  */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h.  */
2903
2904int
2905main ()
2906{
2907int i=0; i++;
2908  ;
2909  return 0;
2910}
2911_ACEOF
2912rm -f conftest.$ac_objext conftest$ac_exeext
2913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2914  (eval $ac_link) 2>conftest.er1
2915  ac_status=$?
2916  grep -v '^ *+' conftest.er1 >conftest.err
2917  rm -f conftest.er1
2918  cat conftest.err >&5
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); } &&
2921         { ac_try='test -z "$ac_c_werror_flag"
2922                         || test ! -s conftest.err'
2923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924  (eval $ac_try) 2>&5
2925  ac_status=$?
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); }; } &&
2928         { ac_try='test -s conftest$ac_exeext'
2929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930  (eval $ac_try) 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; }; then
2934  :
2935else
2936  echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939CFLAGS=
2940fi
2941rm -f conftest.err conftest.$ac_objext \
2942      conftest$ac_exeext conftest.$ac_ext
2943if test -z "$CFLAGS"; then
2944  { 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
2945echo "$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;}
2946  CFLAGS='-O'
2947  cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953
2954int
2955main ()
2956{
2957int i=0; i++;
2958  ;
2959  return 0;
2960}
2961_ACEOF
2962rm -f conftest.$ac_objext conftest$ac_exeext
2963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2964  (eval $ac_link) 2>conftest.er1
2965  ac_status=$?
2966  grep -v '^ *+' conftest.er1 >conftest.err
2967  rm -f conftest.er1
2968  cat conftest.err >&5
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); } &&
2971         { ac_try='test -z "$ac_c_werror_flag"
2972                         || test ! -s conftest.err'
2973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974  (eval $ac_try) 2>&5
2975  ac_status=$?
2976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977  (exit $ac_status); }; } &&
2978         { ac_try='test -s conftest$ac_exeext'
2979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980  (eval $ac_try) 2>&5
2981  ac_status=$?
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); }; }; then
2984  :
2985else
2986  echo "$as_me: failed program was:" >&5
2987sed 's/^/| /' conftest.$ac_ext >&5
2988
2989CFLAGS=
2990fi
2991rm -f conftest.err conftest.$ac_objext \
2992      conftest$ac_exeext conftest.$ac_ext
2993  if test -z "$CFLAGS"; then
2994    { 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
2995echo "$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;}
2996  fi
2997fi
2998
2999{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3000echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3001
3002
3003if test x"$MPICC" = x; then :; else
3004  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3005echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3006  CC="$MPICC"
3007fi
3008
3009# Correct ADDLIBS initialization if we are using the MS compiler
3010case "$CC" in
3011  cl* | */cl* | CL* | */CL*)
3012    ADDLIBS=
3013    case $build in
3014  *-mingw*)
3015    if test "${LD+set}" = set; then :; else
3016      LD=link
3017    fi
3018    ;;
3019 esac
3020 case $enable_doscompile in
3021   msvc)
3022     if test "x${LD+set}" = xset; then :; else
3023       LD=link
3024     fi
3025     ;;
3026 esac
3027
3028    ;;
3029esac
3030
3031ac_ext=c
3032ac_cpp='$CPP $CPPFLAGS'
3033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037
3038
3039 #Let's try if that overcomes configuration problem with VC++ 6.0
3040
3041ac_ext=cc
3042ac_cpp='$CXXCPP $CPPFLAGS'
3043ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3044ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3045ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3046
3047
3048
3049
3050
3051
3052
3053coin_has_cxx=yes
3054
3055save_cxxflags="$CXXFLAGS"
3056# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
3057case $build in
3058  *-cygwin* | *-mingw*)
3059             if test "$enable_doscompile" = msvc ; then
3060               comps="cl"
3061             else
3062               comps="g++ cl"
3063             fi ;;
3064  sparc-sun-solaris*)
3065             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3066  *-darwin*) comps="g++ c++ CC" ;;
3067          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3068esac
3069
3070# We delete the cached value, since the test might not have been
3071# performed with our choice of compilers earlier
3072$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3073# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3074ac_ext=cc
3075ac_cpp='$CXXCPP $CPPFLAGS'
3076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3079if test -n "$ac_tool_prefix"; then
3080  for ac_prog in $CCC $comps
3081  do
3082    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084echo "$as_me:$LINENO: checking for $ac_word" >&5
3085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086if test "${ac_cv_prog_CXX+set}" = set; then
3087  echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089  if test -n "$CXX"; then
3090  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  test -z "$as_dir" && as_dir=.
3097  for ac_exec_ext in '' $ac_executable_extensions; do
3098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101    break 2
3102  fi
3103done
3104done
3105
3106fi
3107fi
3108CXX=$ac_cv_prog_CXX
3109if test -n "$CXX"; then
3110  echo "$as_me:$LINENO: result: $CXX" >&5
3111echo "${ECHO_T}$CXX" >&6
3112else
3113  echo "$as_me:$LINENO: result: no" >&5
3114echo "${ECHO_T}no" >&6
3115fi
3116
3117    test -n "$CXX" && break
3118  done
3119fi
3120if test -z "$CXX"; then
3121  ac_ct_CXX=$CXX
3122  for ac_prog in $CCC $comps
3123do
3124  # Extract the first word of "$ac_prog", so it can be a program name with args.
3125set dummy $ac_prog; ac_word=$2
3126echo "$as_me:$LINENO: checking for $ac_word" >&5
3127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3128if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131  if test -n "$ac_ct_CXX"; then
3132  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3133else
3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135for as_dir in $PATH
3136do
3137  IFS=$as_save_IFS
3138  test -z "$as_dir" && as_dir=.
3139  for ac_exec_ext in '' $ac_executable_extensions; do
3140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141    ac_cv_prog_ac_ct_CXX="$ac_prog"
3142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143    break 2
3144  fi
3145done
3146done
3147
3148fi
3149fi
3150ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3151if test -n "$ac_ct_CXX"; then
3152  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3153echo "${ECHO_T}$ac_ct_CXX" >&6
3154else
3155  echo "$as_me:$LINENO: result: no" >&5
3156echo "${ECHO_T}no" >&6
3157fi
3158
3159  test -n "$ac_ct_CXX" && break
3160done
3161test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3162
3163  CXX=$ac_ct_CXX
3164fi
3165
3166
3167# Provide some information about the compiler.
3168echo "$as_me:$LINENO:" \
3169     "checking for C++ compiler version" >&5
3170ac_compiler=`set X $ac_compile; echo $2`
3171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3172  (eval $ac_compiler --version </dev/null >&5) 2>&5
3173  ac_status=$?
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); }
3176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3177  (eval $ac_compiler -v </dev/null >&5) 2>&5
3178  ac_status=$?
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); }
3181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3182  (eval $ac_compiler -V </dev/null >&5) 2>&5
3183  ac_status=$?
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }
3186
3187echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3188echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3189if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3190  echo $ECHO_N "(cached) $ECHO_C" >&6
3191else
3192  cat >conftest.$ac_ext <<_ACEOF
3193/* confdefs.h.  */
3194_ACEOF
3195cat confdefs.h >>conftest.$ac_ext
3196cat >>conftest.$ac_ext <<_ACEOF
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202#ifndef __GNUC__
3203       choke me
3204#endif
3205
3206  ;
3207  return 0;
3208}
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3212  (eval $ac_compile) 2>conftest.er1
3213  ac_status=$?
3214  grep -v '^ *+' conftest.er1 >conftest.err
3215  rm -f conftest.er1
3216  cat conftest.err >&5
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); } &&
3219         { ac_try='test -z "$ac_cxx_werror_flag"
3220                         || test ! -s conftest.err'
3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222  (eval $ac_try) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; } &&
3226         { ac_try='test -s conftest.$ac_objext'
3227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3228  (eval $ac_try) 2>&5
3229  ac_status=$?
3230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231  (exit $ac_status); }; }; then
3232  ac_compiler_gnu=yes
3233else
3234  echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
3237ac_compiler_gnu=no
3238fi
3239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3240ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3241
3242fi
3243echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3244echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3245GXX=`test $ac_compiler_gnu = yes && echo yes`
3246ac_test_CXXFLAGS=${CXXFLAGS+set}
3247ac_save_CXXFLAGS=$CXXFLAGS
3248CXXFLAGS="-g"
3249echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3250echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3251if test "${ac_cv_prog_cxx_g+set}" = set; then
3252  echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254  cat >conftest.$ac_ext <<_ACEOF
3255/* confdefs.h.  */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h.  */
3260
3261int
3262main ()
3263{
3264
3265  ;
3266  return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext
3270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271  (eval $ac_compile) 2>conftest.er1
3272  ac_status=$?
3273  grep -v '^ *+' conftest.er1 >conftest.err
3274  rm -f conftest.er1
3275  cat conftest.err >&5
3276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277  (exit $ac_status); } &&
3278         { ac_try='test -z "$ac_cxx_werror_flag"
3279                         || test ! -s conftest.err'
3280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281  (eval $ac_try) 2>&5
3282  ac_status=$?
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); }; } &&
3285         { ac_try='test -s conftest.$ac_objext'
3286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287  (eval $ac_try) 2>&5
3288  ac_status=$?
3289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290  (exit $ac_status); }; }; then
3291  ac_cv_prog_cxx_g=yes
3292else
3293  echo "$as_me: failed program was:" >&5
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
3296ac_cv_prog_cxx_g=no
3297fi
3298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3299fi
3300echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3301echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3302if test "$ac_test_CXXFLAGS" = set; then
3303  CXXFLAGS=$ac_save_CXXFLAGS
3304elif test $ac_cv_prog_cxx_g = yes; then
3305  if test "$GXX" = yes; then
3306    CXXFLAGS="-g -O2"
3307  else
3308    CXXFLAGS="-g"
3309  fi
3310else
3311  if test "$GXX" = yes; then
3312    CXXFLAGS="-O2"
3313  else
3314    CXXFLAGS=
3315  fi
3316fi
3317for ac_declaration in \
3318   '' \
3319   'extern "C" void std::exit (int) throw (); using std::exit;' \
3320   'extern "C" void std::exit (int); using std::exit;' \
3321   'extern "C" void exit (int) throw ();' \
3322   'extern "C" void exit (int);' \
3323   'void exit (int);'
3324do
3325  cat >conftest.$ac_ext <<_ACEOF
3326/* confdefs.h.  */
3327_ACEOF
3328cat confdefs.h >>conftest.$ac_ext
3329cat >>conftest.$ac_ext <<_ACEOF
3330/* end confdefs.h.  */
3331$ac_declaration
3332#include <stdlib.h>
3333int
3334main ()
3335{
3336exit (42);
3337  ;
3338  return 0;
3339}
3340_ACEOF
3341rm -f conftest.$ac_objext
3342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343  (eval $ac_compile) 2>conftest.er1
3344  ac_status=$?
3345  grep -v '^ *+' conftest.er1 >conftest.err
3346  rm -f conftest.er1
3347  cat conftest.err >&5
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); } &&
3350         { ac_try='test -z "$ac_cxx_werror_flag"
3351                         || test ! -s conftest.err'
3352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353  (eval $ac_try) 2>&5
3354  ac_status=$?
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); }; } &&
3357         { ac_try='test -s conftest.$ac_objext'
3358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359  (eval $ac_try) 2>&5
3360  ac_status=$?
3361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); }; }; then
3363  :
3364else
3365  echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
3368continue
3369fi
3370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3371  cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h.  */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h.  */
3377$ac_declaration
3378int
3379main ()
3380{
3381exit (42);
3382  ;
3383  return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
3387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3388  (eval $ac_compile) 2>conftest.er1
3389  ac_status=$?
3390  grep -v '^ *+' conftest.er1 >conftest.err
3391  rm -f conftest.er1
3392  cat conftest.err >&5
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); } &&
3395         { ac_try='test -z "$ac_cxx_werror_flag"
3396                         || test ! -s conftest.err'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; } &&
3402         { ac_try='test -s conftest.$ac_objext'
3403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3404  (eval $ac_try) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }; }; then
3408  break
3409else
3410  echo "$as_me: failed program was:" >&5
3411sed 's/^/| /' conftest.$ac_ext >&5
3412
3413fi
3414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3415done
3416rm -f conftest*
3417if test -n "$ac_declaration"; then
3418  echo '#ifdef __cplusplus' >>confdefs.h
3419  echo $ac_declaration      >>confdefs.h
3420  echo '#endif'             >>confdefs.h
3421fi
3422
3423ac_ext=cc
3424ac_cpp='$CXXCPP $CPPFLAGS'
3425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3428
3429if test -z "$CXX" ; then
3430  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3431echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3432   { (exit 1); exit 1; }; }
3433fi
3434
3435# It seems that we need to cleanup something here for the Windows
3436case "$CXX" in
3437  cl* | */cl* | CL* | */CL* )
3438    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3439    mv confdefs.hh confdefs.h
3440    ;;
3441esac
3442
3443# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3444case "$CXX" in
3445  cl* | */cl* | CL* | */CL* )
3446    if test "$ac_cv_prog_cxx_g" = yes ; then
3447      ac_cv_prog_cxx_g=no
3448      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3449echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3450    fi ;;
3451esac
3452CXXFLAGS="$save_cxxflags"
3453
3454# Check if a project specific CXXFLAGS variable has been set
3455if test x$COIN_PRJCT != x; then
3456  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3457  if test x$coin_tmp = xset; then
3458    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3459  fi
3460fi
3461
3462if test x"$CXXFLAGS" = x; then
3463
3464# ToDo decide whether we want -DNDEBUG for optimization
3465  coin_add_cxxflags=
3466  coin_opt_cxxflags=
3467  coin_dbg_cxxflags=
3468  coin_warn_cxxflags=
3469
3470  if test "$GXX" = "yes"; then
3471    case "$CXX" in
3472      icpc* | */icpc*)
3473        ;;
3474      *)
3475# ToDo decide about unroll-loops
3476        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3477        coin_add_cxxflags="-pipe"
3478        coin_dbg_cxxflags="-g"
3479        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3480        case $enable_doscompile in
3481          mingw)
3482            CXXFLAGS="-mno-cygwin"
3483            cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493int i=0; i++;
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext conftest$ac_exeext
3499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3500  (eval $ac_link) 2>conftest.er1
3501  ac_status=$?
3502  grep -v '^ *+' conftest.er1 >conftest.err
3503  rm -f conftest.er1
3504  cat conftest.err >&5
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); } &&
3507         { ac_try='test -z "$ac_cxx_werror_flag"
3508                         || test ! -s conftest.err'
3509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510  (eval $ac_try) 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }; } &&
3514         { ac_try='test -s conftest$ac_exeext'
3515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516  (eval $ac_try) 2>&5
3517  ac_status=$?
3518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519  (exit $ac_status); }; }; then
3520  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3521else
3522  echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525fi
3526rm -f conftest.err conftest.$ac_objext \
3527      conftest$ac_exeext conftest.$ac_ext
3528            CXXFLAGS=
3529            ;;
3530        esac
3531    esac
3532  fi
3533
3534# Note that we do not need to cover GCC in the following tests.
3535
3536  if test -z "$coin_opt_cxxflags"; then
3537    case $build in
3538      *-cygwin* | *-mingw*)
3539        case "$CXX" in
3540          cl* | */cl* | CL* | */CL*)
3541            # The MT and MTd options are mutually exclusive
3542            coin_opt_cxxflags='-MT -O2'
3543            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3544            coin_dbg_cxxflags='-MTd'
3545            ;;
3546        esac
3547        ;;
3548      *-linux-*)
3549        case "$CXX" in
3550          icpc* | */icpc*)
3551            coin_opt_cxxflags="-O3 -ip"
3552            coin_add_cxxflags=""
3553            coin_dbg_cxxflags="-g"
3554            # Check if -i_dynamic is necessary (for new glibc library)
3555            CXXFLAGS=
3556            cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h.  */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h.  */
3562
3563int
3564main ()
3565{
3566int i=0; i++;
3567  ;
3568  return 0;
3569}
3570_ACEOF
3571rm -f conftest.$ac_objext conftest$ac_exeext
3572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3573  (eval $ac_link) 2>conftest.er1
3574  ac_status=$?
3575  grep -v '^ *+' conftest.er1 >conftest.err
3576  rm -f conftest.er1
3577  cat conftest.err >&5
3578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579  (exit $ac_status); } &&
3580         { ac_try='test -z "$ac_cxx_werror_flag"
3581                         || test ! -s conftest.err'
3582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583  (eval $ac_try) 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; } &&
3587         { ac_try='test -s conftest$ac_exeext'
3588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589  (eval $ac_try) 2>&5
3590  ac_status=$?
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); }; }; then
3593  :
3594else
3595  echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3598coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3599fi
3600rm -f conftest.err conftest.$ac_objext \
3601      conftest$ac_exeext conftest.$ac_ext
3602            ;;
3603          pgCC* | */pgCC*)
3604            coin_opt_cxxflags="-fast"
3605            coin_add_cxxflags="-Kieee -pc 64"
3606            coin_dbg_cxxflags="-g"
3607            ;;
3608        esac
3609        ;;
3610      *-ibm-*)
3611        case "$CXX" in
3612          xlC* | */xlC* | mpxlC* | */mpxlC*)
3613            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3614            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3615            coin_dbg_cxxflags="-g"
3616            ;;
3617        esac
3618        ;;
3619      *-hp-*)
3620        case "$CXX" in
3621          aCC* | */aCC* )
3622            coin_opt_cxxflags="-O"
3623            coin_add_cxxflags="-AA"
3624            coin_dbg_cxxflags="-g"
3625            ;;
3626        esac
3627        ;;
3628      *-sun-*)
3629          coin_opt_cxxflags="-O4"
3630          coin_dbg_cxxflags="-g"
3631        ;;
3632    esac
3633  fi
3634
3635# Generic flag settings. If these don't work, add a case above.
3636
3637  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3638    coin_dbg_cxxflags="-g"
3639  fi
3640
3641  if test -z "$coin_opt_cxxflags"; then
3642    # Try if -O option works if nothing else is set
3643    CXXFLAGS=-O
3644    cat >conftest.$ac_ext <<_ACEOF
3645/* confdefs.h.  */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h.  */
3650
3651int
3652main ()
3653{
3654int i=0; i++;
3655  ;
3656  return 0;
3657}
3658_ACEOF
3659rm -f conftest.$ac_objext conftest$ac_exeext
3660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3661  (eval $ac_link) 2>conftest.er1
3662  ac_status=$?
3663  grep -v '^ *+' conftest.er1 >conftest.err
3664  rm -f conftest.er1
3665  cat conftest.err >&5
3666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667  (exit $ac_status); } &&
3668         { ac_try='test -z "$ac_cxx_werror_flag"
3669                         || test ! -s conftest.err'
3670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671  (eval $ac_try) 2>&5
3672  ac_status=$?
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); }; } &&
3675         { ac_try='test -s conftest$ac_exeext'
3676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677  (eval $ac_try) 2>&5
3678  ac_status=$?
3679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680  (exit $ac_status); }; }; then
3681  coin_opt_cxxflags="-O"
3682else
3683  echo "$as_me: failed program was:" >&5
3684sed 's/^/| /' conftest.$ac_ext >&5
3685
3686fi
3687rm -f conftest.err conftest.$ac_objext \
3688      conftest$ac_exeext conftest.$ac_ext
3689  fi
3690
3691  # if PM doesn't want the warning messages, take them out
3692  if test x"$coin_skip_warn_cxxflags" = xyes; then
3693    coin_warn_cxxflags=
3694  fi
3695
3696# Do final setup of flags based on values determined above.
3697
3698  if test x${DBG_CXXFLAGS+set} != xset; then
3699    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3700  fi
3701  if test x${OPT_CXXFLAGS+set} != xset; then
3702    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3703  fi
3704
3705  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3706  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3707
3708  if test "$coin_debug_compile" = "true"; then
3709    CXXFLAGS="$DBG_CXXFLAGS"
3710  else
3711    CXXFLAGS="$OPT_CXXFLAGS"
3712  fi
3713
3714# Handle the case where CXXFLAGS was set externally.
3715else
3716  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3717  if test x${DBG_CXXFLAGS+set} != xset; then
3718    DBG_CXXFLAGS="$CXXFLAGS"
3719  fi
3720  if test x${OPT_CXXFLAGS+set} != xset; then
3721    OPT_CXXFLAGS="$CXXFLAGS"
3722  fi
3723fi
3724
3725# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3726
3727case "$CXXFLAGS" in
3728  *-mno-cygwin*)
3729    if test x${CPPFLAGS+set} != xset ; then
3730      CPPFLAGS="-mno-cygwin"
3731    else
3732      case "$CPPFLAGS" in
3733        *-mno-cygwin*)
3734          ;;
3735        *)
3736          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3737          ;;
3738      esac
3739    fi ;;
3740esac
3741
3742# Try if CXXFLAGS works
3743save_CXXFLAGS="$CXXFLAGS"
3744cat >conftest.$ac_ext <<_ACEOF
3745/* confdefs.h.  */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h.  */
3750
3751int
3752main ()
3753{
3754int i=0; i++;
3755  ;
3756  return 0;
3757}
3758_ACEOF
3759rm -f conftest.$ac_objext conftest$ac_exeext
3760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761  (eval $ac_link) 2>conftest.er1
3762  ac_status=$?
3763  grep -v '^ *+' conftest.er1 >conftest.err
3764  rm -f conftest.er1
3765  cat conftest.err >&5
3766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767  (exit $ac_status); } &&
3768         { ac_try='test -z "$ac_cxx_werror_flag"
3769                         || test ! -s conftest.err'
3770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3771  (eval $ac_try) 2>&5
3772  ac_status=$?
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); }; } &&
3775         { ac_try='test -s conftest$ac_exeext'
3776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777  (eval $ac_try) 2>&5
3778  ac_status=$?
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); }; }; then
3781  :
3782else
3783  echo "$as_me: failed program was:" >&5
3784sed 's/^/| /' conftest.$ac_ext >&5
3785
3786CXXFLAGS=
3787fi
3788rm -f conftest.err conftest.$ac_objext \
3789      conftest$ac_exeext conftest.$ac_ext
3790if test -z "$CXXFLAGS"; then
3791  { 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
3792echo "$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;}
3793  CXXFLAGS='-O'
3794  cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h.  */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h.  */
3800
3801int
3802main ()
3803{
3804int i=0; i++;
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809rm -f conftest.$ac_objext conftest$ac_exeext
3810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3811  (eval $ac_link) 2>conftest.er1
3812  ac_status=$?
3813  grep -v '^ *+' conftest.er1 >conftest.err
3814  rm -f conftest.er1
3815  cat conftest.err >&5
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); } &&
3818         { ac_try='test -z "$ac_cxx_werror_flag"
3819                         || test ! -s conftest.err'
3820  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3821  (eval $ac_try) 2>&5
3822  ac_status=$?
3823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824  (exit $ac_status); }; } &&
3825         { ac_try='test -s conftest$ac_exeext'
3826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827  (eval $ac_try) 2>&5
3828  ac_status=$?
3829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830  (exit $ac_status); }; }; then
3831  :
3832else
3833  echo "$as_me: failed program was:" >&5
3834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836CXXFLAGS=
3837fi
3838rm -f conftest.err conftest.$ac_objext \
3839      conftest$ac_exeext conftest.$ac_ext
3840  if test -z "$CXXFLAGS"; then
3841    { 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
3842echo "$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;}
3843  fi
3844fi
3845
3846{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3847echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3848
3849
3850if test x"$MPICXX" = x; then :; else
3851  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3852echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3853  CXX="$MPICXX"
3854fi
3855
3856case "$CXX" in
3857  cl* | */cl* | CL* | */CL* )
3858    case $build in
3859  *-mingw*)
3860    if test "${LD+set}" = set; then :; else
3861      LD=link
3862    fi
3863    ;;
3864 esac
3865 case $enable_doscompile in
3866   msvc)
3867     if test "x${LD+set}" = xset; then :; else
3868       LD=link
3869     fi
3870     ;;
3871 esac
3872
3873    ;;
3874esac
3875
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881
3882
3883
3884# Initialize automake and libtool
3885{
3886
3887
3888
3889# START
3890
3891# On Cygwin, building DLLs doesn't work
3892case $build in
3893  *-cygwin*)
3894    coin_disable_shared=yes
3895    platform=Cygwin
3896  ;;
3897  *-mingw*)
3898    coin_disable_shared=yes
3899    platform="Msys"
3900#    case "$CXX" in
3901#      cl*)
3902#        coin_disable_shared=yes
3903#        platform="Msys with cl"
3904#    ;;
3905#    esac
3906  ;;
3907esac
3908if test x"$coin_disable_shared" = xyes; then
3909  if test x"$enable_shared" = xyes; then
3910    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3911echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3912  fi
3913  enable_shared=no
3914fi
3915# By default, we only want the shared objects to be compiled
3916# Check whether --enable-static or --disable-static was given.
3917if test "${enable_static+set}" = set; then
3918  enableval="$enable_static"
3919  p=${PACKAGE-default}
3920    case $enableval in
3921    yes) enable_static=yes ;;
3922    no) enable_static=no ;;
3923    *)
3924     enable_static=no
3925      # Look at the argument we got.  We use all the common list separators.
3926      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3927      for pkg in $enableval; do
3928        IFS="$lt_save_ifs"
3929        if test "X$pkg" = "X$p"; then
3930          enable_static=yes
3931        fi
3932      done
3933      IFS="$lt_save_ifs"
3934      ;;
3935    esac
3936else
3937  enable_static=no
3938fi;
3939
3940
3941
3942
3943# Initialize automake
3944echo "$as_me:$LINENO: checking for egrep" >&5
3945echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3946if test "${ac_cv_prog_egrep+set}" = set; then
3947  echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3950    then ac_cv_prog_egrep='grep -E'
3951    else ac_cv_prog_egrep='egrep'
3952    fi
3953fi
3954echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3955echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3956 EGREP=$ac_cv_prog_egrep
3957
3958
3959am__api_version="1.9"
3960# Find a good install program.  We prefer a C program (faster),
3961# so one script is as good as another.  But avoid the broken or
3962# incompatible versions:
3963# SysV /etc/install, /usr/sbin/install
3964# SunOS /usr/etc/install
3965# IRIX /sbin/install
3966# AIX /bin/install
3967# AmigaOS /C/install, which installs bootblocks on floppy discs
3968# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3969# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3970# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3971# OS/2's system install, which has a completely different semantic
3972# ./install, which can be erroneously created by make from ./install.sh.
3973echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3974echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3975if test -z "$INSTALL"; then
3976if test "${ac_cv_path_install+set}" = set; then
3977  echo $ECHO_N "(cached) $ECHO_C" >&6
3978else
3979  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982  IFS=$as_save_IFS
3983  test -z "$as_dir" && as_dir=.
3984  # Account for people who put trailing slashes in PATH elements.
3985case $as_dir/ in
3986  ./ | .// | /cC/* | \
3987  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3988  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3989  /usr/ucb/* ) ;;
3990  *)
3991    # OSF1 and SCO ODT 3.0 have their own names for install.
3992    # Don't use installbsd from OSF since it installs stuff as root
3993    # by default.
3994    for ac_prog in ginstall scoinst install; do
3995      for ac_exec_ext in '' $ac_executable_extensions; do
3996        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3997          if test $ac_prog = install &&
3998            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3999            # AIX install.  It has an incompatible calling convention.
4000            :
4001          elif test $ac_prog = install &&
4002            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4003            # program-specific install script used by HP pwplus--don't use.
4004            :
4005          else
4006            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4007            break 3
4008          fi
4009        fi
4010      done
4011    done
4012    ;;
4013esac
4014done
4015
4016
4017fi
4018  if test "${ac_cv_path_install+set}" = set; then
4019    INSTALL=$ac_cv_path_install
4020  else
4021    # As a last resort, use the slow shell script.  We don't cache a
4022    # path for INSTALL within a source directory, because that will
4023    # break other packages using the cache if that directory is
4024    # removed, or if the path is relative.
4025    INSTALL=$ac_install_sh
4026  fi
4027fi
4028echo "$as_me:$LINENO: result: $INSTALL" >&5
4029echo "${ECHO_T}$INSTALL" >&6
4030
4031# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4032# It thinks the first close brace ends the variable substitution.
4033test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4034
4035test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4036
4037test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4038
4039echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4040echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4041# Just in case
4042sleep 1
4043echo timestamp > conftest.file
4044# Do `set' in a subshell so we don't clobber the current shell's
4045# arguments.  Must try -L first in case configure is actually a
4046# symlink; some systems play weird games with the mod time of symlinks
4047# (eg FreeBSD returns the mod time of the symlink's containing
4048# directory).
4049if (
4050   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4051   if test "$*" = "X"; then
4052      # -L didn't work.
4053      set X `ls -t $srcdir/configure conftest.file`
4054   fi
4055   rm -f conftest.file
4056   if test "$*" != "X $srcdir/configure conftest.file" \
4057      && test "$*" != "X conftest.file $srcdir/configure"; then
4058
4059      # If neither matched, then we have a broken ls.  This can happen
4060      # if, for instance, CONFIG_SHELL is bash and it inherits a
4061      # broken ls alias from the environment.  This has actually
4062      # happened.  Such a system could not be considered "sane".
4063      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4064alias in your environment" >&5
4065echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4066alias in your environment" >&2;}
4067   { (exit 1); exit 1; }; }
4068   fi
4069
4070   test "$2" = conftest.file
4071   )
4072then
4073   # Ok.
4074   :
4075else
4076   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4077Check your system clock" >&5
4078echo "$as_me: error: newly created file is older than distributed files!
4079Check your system clock" >&2;}
4080   { (exit 1); exit 1; }; }
4081fi
4082echo "$as_me:$LINENO: result: yes" >&5
4083echo "${ECHO_T}yes" >&6
4084test "$program_prefix" != NONE &&
4085  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4086# Use a double $ so make ignores it.
4087test "$program_suffix" != NONE &&
4088  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4089# Double any \ or $.  echo might interpret backslashes.
4090# By default was `s,x,x', remove it if useless.
4091cat <<\_ACEOF >conftest.sed
4092s/[\\$]/&&/g;s/;s,x,x,$//
4093_ACEOF
4094program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4095rm conftest.sed
4096
4097# expand $ac_aux_dir to an absolute path
4098am_aux_dir=`cd $ac_aux_dir && pwd`
4099
4100test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4101# Use eval to expand $SHELL
4102if eval "$MISSING --run true"; then
4103  am_missing_run="$MISSING --run "
4104else
4105  am_missing_run=
4106  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4107echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4108fi
4109
4110if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4111  # We used to keeping the `.' as first argument, in order to
4112  # allow $(mkdir_p) to be used without argument.  As in
4113  #   $(mkdir_p) $(somedir)
4114  # where $(somedir) is conditionally defined.  However this is wrong
4115  # for two reasons:
4116  #  1. if the package is installed by a user who cannot write `.'
4117  #     make install will fail,
4118  #  2. the above comment should most certainly read
4119  #     $(mkdir_p) $(DESTDIR)$(somedir)
4120  #     so it does not work when $(somedir) is undefined and
4121  #     $(DESTDIR) is not.
4122  #  To support the latter case, we have to write
4123  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4124  #  so the `.' trick is pointless.
4125  mkdir_p='mkdir -p --'
4126else
4127  # On NextStep and OpenStep, the `mkdir' command does not
4128  # recognize any option.  It will interpret all options as
4129  # directories to create, and then abort because `.' already
4130  # exists.
4131  for d in ./-p ./--version;
4132  do
4133    test -d $d && rmdir $d
4134  done
4135  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4136  if test -f "$ac_aux_dir/mkinstalldirs"; then
4137    mkdir_p='$(mkinstalldirs)'
4138  else
4139    mkdir_p='$(install_sh) -d'
4140  fi
4141fi
4142
4143for ac_prog in gawk mawk nawk awk
4144do
4145  # Extract the first word of "$ac_prog", so it can be a program name with args.
4146set dummy $ac_prog; ac_word=$2
4147echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149if test "${ac_cv_prog_AWK+set}" = set; then
4150  echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152  if test -n "$AWK"; then
4153  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4154else
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158  IFS=$as_save_IFS
4159  test -z "$as_dir" && as_dir=.
4160  for ac_exec_ext in '' $ac_executable_extensions; do
4161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162    ac_cv_prog_AWK="$ac_prog"
4163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164    break 2
4165  fi
4166done
4167done
4168
4169fi
4170fi
4171AWK=$ac_cv_prog_AWK
4172if test -n "$AWK"; then
4173  echo "$as_me:$LINENO: result: $AWK" >&5
4174echo "${ECHO_T}$AWK" >&6
4175else
4176  echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
4178fi
4179
4180  test -n "$AWK" && break
4181done
4182
4183echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4184echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4185set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4186if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4187  echo $ECHO_N "(cached) $ECHO_C" >&6
4188else
4189  cat >conftest.make <<\_ACEOF
4190all:
4191        @echo 'ac_maketemp="$(MAKE)"'
4192_ACEOF
4193# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4194eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4195if test -n "$ac_maketemp"; then
4196  eval ac_cv_prog_make_${ac_make}_set=yes
4197else
4198  eval ac_cv_prog_make_${ac_make}_set=no
4199fi
4200rm -f conftest.make
4201fi
4202if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4203  echo "$as_me:$LINENO: result: yes" >&5
4204echo "${ECHO_T}yes" >&6
4205  SET_MAKE=
4206else
4207  echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209  SET_MAKE="MAKE=${MAKE-make}"
4210fi
4211
4212rm -rf .tst 2>/dev/null
4213mkdir .tst 2>/dev/null
4214if test -d .tst; then
4215  am__leading_dot=.
4216else
4217  am__leading_dot=_
4218fi
4219rmdir .tst 2>/dev/null
4220
4221DEPDIR="${am__leading_dot}deps"
4222
4223          ac_config_commands="$ac_config_commands depfiles"
4224
4225
4226am_make=${MAKE-make}
4227cat > confinc << 'END'
4228am__doit:
4229        @echo done
4230.PHONY: am__doit
4231END
4232# If we don't find an include directive, just comment out the code.
4233echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4234echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4235am__include="#"
4236am__quote=
4237_am_result=none
4238# First try GNU make style include.
4239echo "include confinc" > confmf
4240# We grep out `Entering directory' and `Leaving directory'
4241# messages which can occur if `w' ends up in MAKEFLAGS.
4242# In particular we don't look at `^make:' because GNU make might
4243# be invoked under some other name (usually "gmake"), in which
4244# case it prints its new name instead of `make'.
4245if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4246   am__include=include
4247   am__quote=
4248   _am_result=GNU
4249fi
4250# Now try BSD make style include.
4251if test "$am__include" = "#"; then
4252   echo '.include "confinc"' > confmf
4253   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4254      am__include=.include
4255      am__quote="\""
4256      _am_result=BSD
4257   fi
4258fi
4259
4260
4261echo "$as_me:$LINENO: result: $_am_result" >&5
4262echo "${ECHO_T}$_am_result" >&6
4263rm -f confinc confmf
4264
4265# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4266if test "${enable_dependency_tracking+set}" = set; then
4267  enableval="$enable_dependency_tracking"
4268
4269fi;
4270if test "x$enable_dependency_tracking" != xno; then
4271  am_depcomp="$ac_aux_dir/depcomp"
4272  AMDEPBACKSLASH='\'
4273fi
4274
4275
4276if test "x$enable_dependency_tracking" != xno; then
4277  AMDEP_TRUE=
4278  AMDEP_FALSE='#'
4279else
4280  AMDEP_TRUE='#'
4281  AMDEP_FALSE=
4282fi
4283
4284
4285
4286
4287
4288# AC_MSG_NOTICE([Beginning automake initialisation.])
4289# Stuff for automake
4290# test to see if srcdir already configured
4291if test "`cd $srcdir && pwd`" != "`pwd`" &&
4292   test -f $srcdir/config.status; then
4293  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4294echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4295   { (exit 1); exit 1; }; }
4296fi
4297
4298# test whether we have cygpath
4299if test -z "$CYGPATH_W"; then
4300  if (cygpath --version) >/dev/null 2>/dev/null; then
4301    CYGPATH_W='cygpath -w'
4302  else
4303    CYGPATH_W=echo
4304  fi
4305fi
4306
4307
4308# Define the identity of the package.
4309 PACKAGE='clp'
4310 VERSION='1.4stable'
4311
4312
4313cat >>confdefs.h <<_ACEOF
4314#define PACKAGE "$PACKAGE"
4315_ACEOF
4316
4317
4318cat >>confdefs.h <<_ACEOF
4319#define VERSION "$VERSION"
4320_ACEOF
4321
4322# Some tools Automake needs.
4323
4324ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4325
4326
4327AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4328
4329
4330AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4331
4332
4333AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4334
4335
4336MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4337
4338install_sh=${install_sh-"$am_aux_dir/install-sh"}
4339
4340# Installed binaries are usually stripped using `strip' when the user
4341# run `make install-strip'.  However `strip' might not be the right
4342# tool to use in cross-compilation environments, therefore Automake
4343# will honor the `STRIP' environment variable to overrule this program.
4344if test "$cross_compiling" != no; then
4345  if test -n "$ac_tool_prefix"; then
4346  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4347set dummy ${ac_tool_prefix}strip; ac_word=$2
4348echo "$as_me:$LINENO: checking for $ac_word" >&5
4349echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350if test "${ac_cv_prog_STRIP+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  if test -n "$STRIP"; then
4354  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4355else
4356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357for as_dir in $PATH
4358do
4359  IFS=$as_save_IFS
4360  test -z "$as_dir" && as_dir=.
4361  for ac_exec_ext in '' $ac_executable_extensions; do
4362  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365    break 2
4366  fi
4367done
4368done
4369
4370fi
4371fi
4372STRIP=$ac_cv_prog_STRIP
4373if test -n "$STRIP"; then
4374  echo "$as_me:$LINENO: result: $STRIP" >&5
4375echo "${ECHO_T}$STRIP" >&6
4376else
4377  echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
4379fi
4380
4381fi
4382if test -z "$ac_cv_prog_STRIP"; then
4383  ac_ct_STRIP=$STRIP
4384  # Extract the first word of "strip", so it can be a program name with args.
4385set dummy strip; ac_word=$2
4386echo "$as_me:$LINENO: checking for $ac_word" >&5
4387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4388if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4389  echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391  if test -n "$ac_ct_STRIP"; then
4392  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4393else
4394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395for as_dir in $PATH
4396do
4397  IFS=$as_save_IFS
4398  test -z "$as_dir" && as_dir=.
4399  for ac_exec_ext in '' $ac_executable_extensions; do
4400  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4401    ac_cv_prog_ac_ct_STRIP="strip"
4402    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403    break 2
4404  fi
4405done
4406done
4407
4408  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4409fi
4410fi
4411ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4412if test -n "$ac_ct_STRIP"; then
4413  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4414echo "${ECHO_T}$ac_ct_STRIP" >&6
4415else
4416  echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418fi
4419
4420  STRIP=$ac_ct_STRIP
4421else
4422  STRIP="$ac_cv_prog_STRIP"
4423fi
4424
4425fi
4426INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4427
4428# We need awk for the "check" target.  The system "awk" is bad on
4429# some platforms.
4430# Always define AMTAR for backward compatibility.
4431
4432AMTAR=${AMTAR-"${am_missing_run}tar"}
4433
4434am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4435
4436
4437
4438
4439depcc="$CC"   am_compiler_list=
4440
4441echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4442echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4443if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4444  echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4447  # We make a subdir and do the tests there.  Otherwise we can end up
4448  # making bogus files that we don't know about and never remove.  For
4449  # instance it was reported that on HP-UX the gcc test will end up
4450  # making a dummy file named `D' -- because `-MD' means `put the output
4451  # in D'.
4452  mkdir conftest.dir
4453  # Copy depcomp to subdir because otherwise we won't find it if we're
4454  # using a relative directory.
4455  cp "$am_depcomp" conftest.dir
4456  cd conftest.dir
4457  # We will build objects and dependencies in a subdirectory because
4458  # it helps to detect inapplicable dependency modes.  For instance
4459  # both Tru64's cc and ICC support -MD to output dependencies as a
4460  # side effect of compilation, but ICC will put the dependencies in
4461  # the current directory while Tru64 will put them in the object
4462  # directory.
4463  mkdir sub
4464
4465  am_cv_CC_dependencies_compiler_type=none
4466  if test "$am_compiler_list" = ""; then
4467     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4468  fi
4469  for depmode in $am_compiler_list; do
4470    # Setup a source with many dependencies, because some compilers
4471    # like to wrap large dependency lists on column 80 (with \), and
4472    # we should not choose a depcomp mode which is confused by this.
4473    #
4474    # We need to recreate these files for each test, as the compiler may
4475    # overwrite some of them when testing with obscure command lines.
4476    # This happens at least with the AIX C compiler.
4477    : > sub/conftest.c
4478    for i in 1 2 3 4 5 6; do
4479      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4481      # Solaris 8's {/usr,}/bin/sh.
4482      touch sub/conftst$i.h
4483    done
4484    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4485
4486    case $depmode in
4487    nosideeffect)
4488      # after this tag, mechanisms are not by side-effect, so they'll
4489      # only be used when explicitly requested
4490      if test "x$enable_dependency_tracking" = xyes; then
4491        continue
4492      else
4493        break
4494      fi
4495      ;;
4496    none) break ;;
4497    esac
4498    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4499    # mode.  It turns out that the SunPro C++ compiler does not properly
4500    # handle `-M -o', and we need to detect this.
4501    if depmode=$depmode \
4502       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4503       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4504       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4505         >/dev/null 2>conftest.err &&
4506       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4507       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4508       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4509      # icc doesn't choke on unknown options, it will just issue warnings
4510      # or remarks (even with -Werror).  So we grep stderr for any message
4511      # that says an option was ignored or not supported.
4512      # When given -MP, icc 7.0 and 7.1 complain thusly:
4513      #   icc: Command line warning: ignoring option '-M'; no argument required
4514      # The diagnosis changed in icc 8.0:
4515      #   icc: Command line remark: option '-MP' not supported
4516      if (grep 'ignoring option' conftest.err ||
4517          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4518        am_cv_CC_dependencies_compiler_type=$depmode
4519        break
4520      fi
4521    fi
4522  done
4523
4524  cd ..
4525  rm -rf conftest.dir
4526else
4527  am_cv_CC_dependencies_compiler_type=none
4528fi
4529
4530fi
4531echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4532echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4533CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4534
4535
4536
4537if
4538  test "x$enable_dependency_tracking" != xno \
4539  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4540  am__fastdepCC_TRUE=
4541  am__fastdepCC_FALSE='#'
4542else
4543  am__fastdepCC_TRUE='#'
4544  am__fastdepCC_FALSE=
4545fi
4546
4547
4548depcc="$CXX"  am_compiler_list=
4549
4550echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4551echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4552if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4553  echo $ECHO_N "(cached) $ECHO_C" >&6
4554else
4555  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4556  # We make a subdir and do the tests there.  Otherwise we can end up
4557  # making bogus files that we don't know about and never remove.  For
4558  # instance it was reported that on HP-UX the gcc test will end up
4559  # making a dummy file named `D' -- because `-MD' means `put the output
4560  # in D'.
4561  mkdir conftest.dir
4562  # Copy depcomp to subdir because otherwise we won't find it if we're
4563  # using a relative directory.
4564  cp "$am_depcomp" conftest.dir
4565  cd conftest.dir
4566  # We will build objects and dependencies in a subdirectory because
4567  # it helps to detect inapplicable dependency modes.  For instance
4568  # both Tru64's cc and ICC support -MD to output dependencies as a
4569  # side effect of compilation, but ICC will put the dependencies in
4570  # the current directory while Tru64 will put them in the object
4571  # directory.
4572  mkdir sub
4573
4574  am_cv_CXX_dependencies_compiler_type=none
4575  if test "$am_compiler_list" = ""; then
4576     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4577  fi
4578  for depmode in $am_compiler_list; do
4579    # Setup a source with many dependencies, because some compilers
4580    # like to wrap large dependency lists on column 80 (with \), and
4581    # we should not choose a depcomp mode which is confused by this.
4582    #
4583    # We need to recreate these files for each test, as the compiler may
4584    # overwrite some of them when testing with obscure command lines.
4585    # This happens at least with the AIX C compiler.
4586    : > sub/conftest.c
4587    for i in 1 2 3 4 5 6; do
4588      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4589      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4590      # Solaris 8's {/usr,}/bin/sh.
4591      touch sub/conftst$i.h
4592    done
4593    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4594
4595    case $depmode in
4596    nosideeffect)
4597      # after this tag, mechanisms are not by side-effect, so they'll
4598      # only be used when explicitly requested
4599      if test "x$enable_dependency_tracking" = xyes; then
4600        continue
4601      else
4602        break
4603      fi
4604      ;;
4605    none) break ;;
4606    esac
4607    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4608    # mode.  It turns out that the SunPro C++ compiler does not properly
4609    # handle `-M -o', and we need to detect this.
4610    if depmode=$depmode \
4611       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4612       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4613       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4614         >/dev/null 2>conftest.err &&
4615       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4616       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4617       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4618      # icc doesn't choke on unknown options, it will just issue warnings
4619      # or remarks (even with -Werror).  So we grep stderr for any message
4620      # that says an option was ignored or not supported.
4621      # When given -MP, icc 7.0 and 7.1 complain thusly:
4622      #   icc: Command line warning: ignoring option '-M'; no argument required
4623      # The diagnosis changed in icc 8.0:
4624      #   icc: Command line remark: option '-MP' not supported
4625      if (grep 'ignoring option' conftest.err ||
4626          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4627        am_cv_CXX_dependencies_compiler_type=$depmode
4628        break
4629      fi
4630    fi
4631  done
4632
4633  cd ..
4634  rm -rf conftest.dir
4635else
4636  am_cv_CXX_dependencies_compiler_type=none
4637fi
4638
4639fi
4640echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4641echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4642CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4643
4644
4645
4646if
4647  test "x$enable_dependency_tracking" != xno \
4648  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4649  am__fastdepCXX_TRUE=
4650  am__fastdepCXX_FALSE='#'
4651else
4652  am__fastdepCXX_TRUE='#'
4653  am__fastdepCXX_FALSE=
4654fi
4655
4656
4657
4658echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4659echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4660    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4661if test "${enable_maintainer_mode+set}" = set; then
4662  enableval="$enable_maintainer_mode"
4663  USE_MAINTAINER_MODE=$enableval
4664else
4665  USE_MAINTAINER_MODE=no
4666fi;
4667  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4668echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4669
4670
4671if test $USE_MAINTAINER_MODE = yes; then
4672  MAINTAINER_MODE_TRUE=
4673  MAINTAINER_MODE_FALSE='#'
4674else
4675  MAINTAINER_MODE_TRUE='#'
4676  MAINTAINER_MODE_FALSE=
4677fi
4678
4679  MAINT=$MAINTAINER_MODE_TRUE
4680
4681
4682
4683coin_have_externals=no
4684if test "$enable_maintainer_mode" = yes; then
4685
4686  # If maintainer mode is chosen, we make sure that the correct versions
4687  # of the tools are used, and that we know where libtool.m4 is (to
4688  # recreate acinclude.m4)
4689
4690
4691  LIBTOOLM4=
4692  # Normally, $HOME
4693  AUTOTOOLS_DFLT=$HOME
4694
4695  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4696echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4697if test "${ac_cv_use_correct_autotools+set}" = set; then
4698  echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700  ac_cv_use_correct_autotools=check
4701fi
4702echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4703echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4704
4705  if test $ac_cv_use_correct_autotools = check; then
4706    ac_cv_use_correct_autotools=yes
4707    # Check if we have autoconf
4708    # Extract the first word of "autoconf", so it can be a program name with args.
4709set dummy autoconf; ac_word=$2
4710echo "$as_me:$LINENO: checking for $ac_word" >&5
4711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4712if test "${ac_cv_prog_have_autoconf+set}" = set; then
4713  echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715  if test -n "$have_autoconf"; then
4716  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4717else
4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721  IFS=$as_save_IFS
4722  test -z "$as_dir" && as_dir=.
4723  for ac_exec_ext in '' $ac_executable_extensions; do
4724  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725    ac_cv_prog_have_autoconf="yes"
4726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727    break 2
4728  fi
4729done
4730done
4731
4732  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4733fi
4734fi
4735have_autoconf=$ac_cv_prog_have_autoconf
4736if test -n "$have_autoconf"; then
4737  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4738echo "${ECHO_T}$have_autoconf" >&6
4739else
4740  echo "$as_me:$LINENO: result: no" >&5
4741echo "${ECHO_T}no" >&6
4742fi
4743
4744    if test $have_autoconf = no; then
4745      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4746echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4747   { (exit 1); exit 1; }; }
4748    fi
4749
4750    # Check whether autoconf is the correct version
4751    correct_version='2.59'
4752    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4753    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4754echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4755    autoconf --version > confauto.out 2>&1
4756    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4757      echo "$as_me:$LINENO: result: yes" >&5
4758echo "${ECHO_T}yes" >&6
4759    else
4760      rm -f confauto.out
4761      echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
4763      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4764echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4765   { (exit 1); exit 1; }; }
4766    fi
4767    rm -f confauto.out
4768
4769    # Check if the executable autoconf is picked up from the correct location
4770    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4771echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4772    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4773    autoconf_dir=`cd $autoconf_dir; pwd`
4774    if test x$AUTOTOOLS_DIR = x; then
4775      want_dir=$AUTOTOOLS_DFLT/bin
4776    else
4777      want_dir=$AUTOTOOLS_DIR/bin
4778    fi
4779    if test $autoconf_dir = `cd $want_dir; pwd`; then
4780      echo "$as_me:$LINENO: result: yes" >&5
4781echo "${ECHO_T}yes" >&6
4782    else
4783      rm -f confauto.out
4784      echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6
4786      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4787echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4788   { (exit 1); exit 1; }; }
4789    fi
4790
4791    # Check if we have automake
4792    # Extract the first word of "automake", so it can be a program name with args.
4793set dummy automake; ac_word=$2
4794echo "$as_me:$LINENO: checking for $ac_word" >&5
4795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4796if test "${ac_cv_prog_have_automake+set}" = set; then
4797  echo $ECHO_N "(cached) $ECHO_C" >&6
4798else
4799  if test -n "$have_automake"; then
4800  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4801else
4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805  IFS=$as_save_IFS
4806  test -z "$as_dir" && as_dir=.
4807  for ac_exec_ext in '' $ac_executable_extensions; do
4808  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809    ac_cv_prog_have_automake="yes"
4810    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811    break 2
4812  fi
4813done
4814done
4815
4816  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4817fi
4818fi
4819have_automake=$ac_cv_prog_have_automake
4820if test -n "$have_automake"; then
4821  echo "$as_me:$LINENO: result: $have_automake" >&5
4822echo "${ECHO_T}$have_automake" >&6
4823else
4824  echo "$as_me:$LINENO: result: no" >&5
4825echo "${ECHO_T}no" >&6
4826fi
4827
4828    if test $have_automake = no; then
4829      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4830echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4831   { (exit 1); exit 1; }; }
4832    fi
4833
4834    # Check whether automake is the correct version
4835    correct_version='1.9.6'
4836    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4837    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4838echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4839    automake --version > confauto.out 2>&1
4840    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4841      echo "$as_me:$LINENO: result: yes" >&5
4842echo "${ECHO_T}yes" >&6
4843    else
4844      rm -f confauto.out
4845      echo "$as_me:$LINENO: result: no" >&5
4846echo "${ECHO_T}no" >&6
4847      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4848echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4849   { (exit 1); exit 1; }; }
4850    fi
4851    rm -f confauto.out
4852
4853    # Check if the executable automake is picked up from the correct location
4854    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4855echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4856    automake_dir=`which automake | sed -e 's=/automake=='`
4857    automake_dir=`cd $automake_dir; pwd`
4858    if test x$AUTOTOOLS_DIR = x; then
4859      want_dir=$AUTOTOOLS_DFLT/bin
4860    else
4861      want_dir=$AUTOTOOLS_DIR/bin
4862    fi
4863    if test $automake_dir = `cd $want_dir; pwd`; then
4864      echo "$as_me:$LINENO: result: yes" >&5
4865echo "${ECHO_T}yes" >&6
4866    else
4867      rm -f confauto.out
4868      echo "$as_me:$LINENO: result: no" >&5
4869echo "${ECHO_T}no" >&6
4870      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4871echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4872   { (exit 1); exit 1; }; }
4873    fi
4874
4875    # Check if this is the correct version of libtool (with escaped dots)
4876    if test x$AUTOTOOLS_DIR = x; then
4877      want_dir=$AUTOTOOLS_DFLT/share
4878    else
4879      want_dir=$AUTOTOOLS_DIR/share
4880    fi
4881    correct_version='1.5.22'
4882    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4883    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4884echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4885echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4886if eval "test \"\${$as_ac_File+set}\" = set"; then
4887  echo $ECHO_N "(cached) $ECHO_C" >&6
4888else
4889  test "$cross_compiling" = yes &&
4890  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4891echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4892   { (exit 1); exit 1; }; }
4893if test -r "$want_dir/libtool/ltmain.sh"; then
4894  eval "$as_ac_File=yes"
4895else
4896  eval "$as_ac_File=no"
4897fi
4898fi
4899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4900echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4901if test `eval echo '${'$as_ac_File'}'` = yes; then
4902  have_ltmain=yes
4903else
4904  have_ltmain=no
4905fi
4906
4907    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4908echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4909    if test $have_ltmain = yes; then
4910    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4911        echo "$as_me:$LINENO: result: yes" >&5
4912echo "${ECHO_T}yes" >&6
4913      else
4914        echo "$as_me:$LINENO: result: no" >&5
4915echo "${ECHO_T}no" >&6
4916        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4917echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4918   { (exit 1); exit 1; }; }
4919      fi
4920    else
4921      echo "$as_me:$LINENO: result: no" >&5
4922echo "${ECHO_T}no" >&6
4923      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4924echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4925   { (exit 1); exit 1; }; }
4926    fi
4927  fi
4928
4929  # Check if we can find the libtool file
4930  if test x$AUTOTOOLS_DIR = x; then
4931    want_dir=$AUTOTOOLS_DFLT/share
4932  else
4933    want_dir=$AUTOTOOLS_DIR/share
4934  fi
4935  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4936echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4937echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4938if eval "test \"\${$as_ac_File+set}\" = set"; then
4939  echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941  test "$cross_compiling" = yes &&
4942  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4943echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4944   { (exit 1); exit 1; }; }
4945if test -r "$want_dir/aclocal/libtool.m4"; then
4946  eval "$as_ac_File=yes"
4947else
4948  eval "$as_ac_File=no"
4949fi
4950fi
4951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4952echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4953if test `eval echo '${'$as_ac_File'}'` = yes; then
4954  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4955else
4956  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4957echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4958   { (exit 1); exit 1; }; }
4959fi
4960
4961
4962  # Check if we have an Externals file
4963  if test -r $srcdir/Externals; then
4964    coin_have_externals=yes
4965  fi
4966  # Check if subversion is installed and understands https
4967  # Extract the first word of "svn", so it can be a program name with args.
4968set dummy svn; ac_word=$2
4969echo "$as_me:$LINENO: checking for $ac_word" >&5
4970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971if test "${ac_cv_prog_have_svn+set}" = set; then
4972  echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974  if test -n "$have_svn"; then
4975  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4976else
4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978for as_dir in $PATH
4979do
4980  IFS=$as_save_IFS
4981  test -z "$as_dir" && as_dir=.
4982  for ac_exec_ext in '' $ac_executable_extensions; do
4983  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984    ac_cv_prog_have_svn="yes"
4985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986    break 2
4987  fi
4988done
4989done
4990
4991  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4992fi
4993fi
4994have_svn=$ac_cv_prog_have_svn
4995if test -n "$have_svn"; then
4996  echo "$as_me:$LINENO: result: $have_svn" >&5
4997echo "${ECHO_T}$have_svn" >&6
4998else
4999  echo "$as_me:$LINENO: result: no" >&5
5000echo "${ECHO_T}no" >&6
5001fi
5002
5003  if test x$have_svn = xyes; then
5004    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5005echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5006if test "${ac_cv_svn_understands_https+set}" = set; then
5007  echo $ECHO_N "(cached) $ECHO_C" >&6
5008else
5009  svn --version > confauto.out 2>&1
5010                    if $EGREP https confauto.out >/dev/null 2>&1; then
5011                      ac_cv_svn_understands_https=yes
5012                    else
5013                      ac_cv_svn_understands_https=no
5014                      have_svn=no
5015                      ac_cv_prog_have_svn=no
5016                    fi
5017                    rm -f confauto.out
5018fi
5019echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5020echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5021  fi
5022
5023  # Find the location of the BuildTools directory
5024  BUILDTOOLSDIR=
5025  if test -r $srcdir/BuildTools/coin.m4; then
5026    BUILDTOOLSDIR=$srcdir/BuildTools
5027  else
5028    if test -r $srcdir/../BuildTools/coin.m4; then
5029      BUILDTOOLSDIR=$srcdir/../BuildTools
5030    else
5031      if test -r $srcdir/../../BuildTools/coin.m4; then
5032        BUILDTOOLSDIR=$srcdir/../../BuildTools
5033      else
5034        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5035echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5036   { (exit 1); exit 1; }; }
5037      fi
5038    fi
5039  fi
5040
5041
5042  # The following variable is set to the name of the directory where
5043  # the autotool scripts are located
5044
5045  AUX_DIR=$ac_aux_dir
5046fi
5047
5048# helpful variable for the base directory of this package
5049abs_source_dir=`cd $srcdir; pwd`
5050
5051
5052# Stuff for example Makefiles
5053if test x$prefix = xNONE; then
5054  full_prefix=$ac_default_prefix
5055else
5056  full_prefix=$prefix
5057fi
5058full_prefix=`cd $full_prefix ; pwd`
5059
5060abs_lib_dir=$full_prefix/lib
5061
5062abs_include_dir=$full_prefix/include
5063
5064abs_bin_dir=$full_prefix/bin
5065
5066
5067
5068if test $coin_have_externals = yes && test x$have_svn = xyes; then
5069  HAVE_EXTERNALS_TRUE=
5070  HAVE_EXTERNALS_FALSE='#'
5071else
5072  HAVE_EXTERNALS_TRUE='#'
5073  HAVE_EXTERNALS_FALSE=
5074fi
5075
5076
5077# AC_MSG_NOTICE([End automake initialisation.])
5078
5079
5080
5081LIBTOOL=
5082if test -r ../libtool; then
5083  coin_config_dir=..
5084  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5085fi
5086if test "x$LIBTOOL" = x; then
5087  if test -r ../../libtool; then
5088    coin_config_dir=../..
5089    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5090  fi
5091fi
5092
5093if test "x$LIBTOOL" = x; then
5094# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5095  # Stuff for libtool
5096  # Check whether --enable-shared or --disable-shared was given.
5097if test "${enable_shared+set}" = set; then
5098  enableval="$enable_shared"
5099  p=${PACKAGE-default}
5100    case $enableval in
5101    yes) enable_shared=yes ;;
5102    no) enable_shared=no ;;
5103    *)
5104      enable_shared=no
5105      # Look at the argument we got.  We use all the common list separators.
5106      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5107      for pkg in $enableval; do
5108        IFS="$lt_save_ifs"
5109        if test "X$pkg" = "X$p"; then
5110          enable_shared=yes
5111        fi
5112      done
5113      IFS="$lt_save_ifs"
5114      ;;
5115    esac
5116else
5117  enable_shared=yes
5118fi;
5119
5120# Check whether --enable-fast-install or --disable-fast-install was given.
5121if test "${enable_fast_install+set}" = set; then
5122  enableval="$enable_fast_install"
5123  p=${PACKAGE-default}
5124    case $enableval in
5125    yes) enable_fast_install=yes ;;
5126    no) enable_fast_install=no ;;
5127    *)
5128      enable_fast_install=no
5129      # Look at the argument we got.  We use all the common list separators.
5130      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5131      for pkg in $enableval; do
5132        IFS="$lt_save_ifs"
5133        if test "X$pkg" = "X$p"; then
5134          enable_fast_install=yes
5135        fi
5136      done
5137      IFS="$lt_save_ifs"
5138      ;;
5139    esac
5140else
5141  enable_fast_install=yes
5142fi;
5143
5144echo "$as_me:$LINENO: checking host system type" >&5
5145echo $ECHO_N "checking host system type... $ECHO_C" >&6
5146if test "${ac_cv_host+set}" = set; then
5147  echo $ECHO_N "(cached) $ECHO_C" >&6
5148else
5149  ac_cv_host_alias=$host_alias
5150test -z "$ac_cv_host_alias" &&
5151  ac_cv_host_alias=$ac_cv_build_alias
5152ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5153  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5154echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5155   { (exit 1); exit 1; }; }
5156
5157fi
5158echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5159echo "${ECHO_T}$ac_cv_host" >&6
5160host=$ac_cv_host
5161host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5162host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5163host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5164
5165
5166echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5167echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5168if test "${lt_cv_path_SED+set}" = set; then
5169  echo $ECHO_N "(cached) $ECHO_C" >&6
5170else
5171  # Loop through the user's path and test for sed and gsed.
5172# Then use that list of sed's as ones to test for truncation.
5173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174for as_dir in $PATH
5175do
5176  IFS=$as_save_IFS
5177  test -z "$as_dir" && as_dir=.
5178  for lt_ac_prog in sed gsed; do
5179    for ac_exec_ext in '' $ac_executable_extensions; do
5180      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5181        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5182      fi
5183    done
5184  done
5185done
5186lt_ac_max=0
5187lt_ac_count=0
5188# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5189# along with /bin/sed that truncates output.
5190for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5191  test ! -f $lt_ac_sed && continue
5192  cat /dev/null > conftest.in
5193  lt_ac_count=0
5194  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5195  # Check for GNU sed and select it if it is found.
5196  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5197    lt_cv_path_SED=$lt_ac_sed
5198    break
5199  fi
5200  while true; do
5201    cat conftest.in conftest.in >conftest.tmp
5202    mv conftest.tmp conftest.in
5203    cp conftest.in conftest.nl
5204    echo >>conftest.nl
5205    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5206    cmp -s conftest.out conftest.nl || break
5207    # 10000 chars as input seems more than enough
5208    test $lt_ac_count -gt 10 && break
5209    lt_ac_count=`expr $lt_ac_count + 1`
5210    if test $lt_ac_count -gt $lt_ac_max; then
5211      lt_ac_max=$lt_ac_count
5212      lt_cv_path_SED=$lt_ac_sed
5213    fi
5214  done
5215done
5216
5217fi
5218
5219SED=$lt_cv_path_SED
5220echo "$as_me:$LINENO: result: $SED" >&5
5221echo "${ECHO_T}$SED" >&6
5222
5223
5224# Check whether --with-gnu-ld or --without-gnu-ld was given.
5225if test "${with_gnu_ld+set}" = set; then
5226  withval="$with_gnu_ld"
5227  test "$withval" = no || with_gnu_ld=yes
5228else
5229  with_gnu_ld=no
5230fi;
5231ac_prog=ld
5232if test "$GCC" = yes; then
5233  # Check if gcc -print-prog-name=ld gives a path.
5234  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5235echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5236  case $host in
5237  *-*-mingw*)
5238    # gcc leaves a trailing carriage return which upsets mingw
5239    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5240  *)
5241    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5242  esac
5243  case $ac_prog in
5244    # Accept absolute paths.
5245    [\\/]* | ?:[\\/]*)
5246      re_direlt='/[^/][^/]*/\.\./'
5247      # Canonicalize the pathname of ld
5248      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5249      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5250        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5251      done
5252      test -z "$LD" && LD="$ac_prog"
5253      ;;
5254  "")
5255    # If it fails, then pretend we aren't using GCC.
5256    ac_prog=ld
5257    ;;
5258  *)
5259    # If it is relative, then search for the first ld in PATH.
5260    with_gnu_ld=unknown
5261    ;;
5262  esac
5263elif test "$with_gnu_ld" = yes; then
5264  echo "$as_me:$LINENO: checking for GNU ld" >&5
5265echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5266else
5267  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5268echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5269fi
5270if test "${lt_cv_path_LD+set}" = set; then
5271  echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273  if test -z "$LD"; then
5274  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5275  for ac_dir in $PATH; do
5276    IFS="$lt_save_ifs"
5277    test -z "$ac_dir" && ac_dir=.
5278    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5279      lt_cv_path_LD="$ac_dir/$ac_prog"
5280      # Check to see if the program is GNU ld.  I'd rather use --version,
5281      # but apparently some variants of GNU ld only accept -v.
5282      # Break only if it was the GNU/non-GNU ld that we prefer.
5283      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5284      *GNU* | *'with BFD'*)
5285        test "$with_gnu_ld" != no && break
5286        ;;
5287      *)
5288        test "$with_gnu_ld" != yes && break
5289        ;;
5290      esac
5291    fi
5292  done
5293  IFS="$lt_save_ifs"
5294else
5295  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5296fi
5297fi
5298
5299LD="$lt_cv_path_LD"
5300if test -n "$LD"; then
5301  echo "$as_me:$LINENO: result: $LD" >&5
5302echo "${ECHO_T}$LD" >&6
5303else
5304  echo "$as_me:$LINENO: result: no" >&5
5305echo "${ECHO_T}no" >&6
5306fi
5307test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5308echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5309   { (exit 1); exit 1; }; }
5310echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5311echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5312if test "${lt_cv_prog_gnu_ld+set}" = set; then
5313  echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5316case `$LD -v 2>&1 </dev/null` in
5317*GNU* | *'with BFD'*)
5318  lt_cv_prog_gnu_ld=yes
5319  ;;
5320*)
5321  lt_cv_prog_gnu_ld=no
5322  ;;
5323esac
5324fi
5325echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5326echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5327with_gnu_ld=$lt_cv_prog_gnu_ld
5328
5329
5330echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5331echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5332if test "${lt_cv_ld_reload_flag+set}" = set; then
5333  echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335  lt_cv_ld_reload_flag='-r'
5336fi
5337echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5338echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5339reload_flag=$lt_cv_ld_reload_flag
5340case $reload_flag in
5341"" | " "*) ;;
5342*) reload_flag=" $reload_flag" ;;
5343esac
5344reload_cmds='$LD$reload_flag -o $output$reload_objs'
5345case $host_os in
5346  darwin*)
5347    if test "$GCC" = yes; then
5348      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5349    else
5350      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5351    fi
5352    ;;
5353esac
5354
5355echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5356echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5357if test "${lt_cv_path_NM+set}" = set; then
5358  echo $ECHO_N "(cached) $ECHO_C" >&6
5359else
5360  if test -n "$NM"; then
5361  # Let the user override the test.
5362  lt_cv_path_NM="$NM"
5363else
5364  lt_nm_to_check="${ac_tool_prefix}nm"
5365  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5366    lt_nm_to_check="$lt_nm_to_check nm"
5367  fi
5368  for lt_tmp_nm in $lt_nm_to_check; do
5369    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5370    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5371      IFS="$lt_save_ifs"
5372      test -z "$ac_dir" && ac_dir=.
5373      tmp_nm="$ac_dir/$lt_tmp_nm"
5374      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5375        # Check to see if the nm accepts a BSD-compat flag.
5376        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5377        #   nm: unknown option "B" ignored
5378        # Tru64's nm complains that /dev/null is an invalid object file
5379        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5380        */dev/null* | *'Invalid file or object type'*)
5381          lt_cv_path_NM="$tmp_nm -B"
5382          break
5383          ;;
5384        *)
5385          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5386          */dev/null*)
5387            lt_cv_path_NM="$tmp_nm -p"
5388            break
5389            ;;
5390          *)
5391            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5392            continue # so that we can try to find one that supports BSD flags
5393            ;;
5394          esac
5395          ;;
5396        esac
5397      fi
5398    done
5399    IFS="$lt_save_ifs"
5400  done
5401  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5402fi
5403fi
5404echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5405echo "${ECHO_T}$lt_cv_path_NM" >&6
5406NM="$lt_cv_path_NM"
5407
5408echo "$as_me:$LINENO: checking whether ln -s works" >&5
5409echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5410LN_S=$as_ln_s
5411if test "$LN_S" = "ln -s"; then
5412  echo "$as_me:$LINENO: result: yes" >&5
5413echo "${ECHO_T}yes" >&6
5414else
5415  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5416echo "${ECHO_T}no, using $LN_S" >&6
5417fi
5418
5419echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5420echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5421if test "${lt_cv_deplibs_check_method+set}" = set; then
5422  echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424  lt_cv_file_magic_cmd='$MAGIC_CMD'
5425lt_cv_file_magic_test_file=
5426lt_cv_deplibs_check_method='unknown'
5427# Need to set the preceding variable on all platforms that support
5428# interlibrary dependencies.
5429# 'none' -- dependencies not supported.
5430# `unknown' -- same as none, but documents that we really don't know.
5431# 'pass_all' -- all dependencies passed with no checks.
5432# 'test_compile' -- check by making test program.
5433# 'file_magic [[regex]]' -- check by looking for files in library path
5434# which responds to the $file_magic_cmd with a given extended regex.
5435# If you have `file' or equivalent on your system and you're not sure
5436# whether `pass_all' will *always* work, you probably want this one.
5437
5438case $host_os in
5439aix4* | aix5*)
5440  lt_cv_deplibs_check_method=pass_all
5441  ;;
5442
5443beos*)
5444  lt_cv_deplibs_check_method=pass_all
5445  ;;
5446
5447bsdi[45]*)
5448  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5449  lt_cv_file_magic_cmd='/usr/bin/file -L'
5450  lt_cv_file_magic_test_file=/shlib/libc.so
5451  ;;
5452
5453cygwin*)
5454  # func_win32_libid is a shell function defined in ltmain.sh
5455  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5456  lt_cv_file_magic_cmd='func_win32_libid'
5457  ;;
5458
5459mingw* | pw32*)
5460  # Base MSYS/MinGW do not provide the 'file' command needed by
5461  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5462  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5463  lt_cv_file_magic_cmd='$OBJDUMP -f'
5464  ;;
5465
5466darwin* | rhapsody*)
5467  lt_cv_deplibs_check_method=pass_all
5468  ;;
5469
5470freebsd* | kfreebsd*-gnu | dragonfly*)
5471  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5472    case $host_cpu in
5473    i*86 )
5474      # Not sure whether the presence of OpenBSD here was a mistake.
5475      # Let's accept both of them until this is cleared up.
5476      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5477      lt_cv_file_magic_cmd=/usr/bin/file
5478      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5479      ;;
5480    esac
5481  else
5482    lt_cv_deplibs_check_method=pass_all
5483  fi
5484  ;;
5485
5486gnu*)
5487  lt_cv_deplibs_check_method=pass_all
5488  ;;
5489
5490hpux10.20* | hpux11*)
5491  lt_cv_file_magic_cmd=/usr/bin/file
5492  case $host_cpu in
5493  ia64*)
5494    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5495    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5496    ;;
5497  hppa*64*)
5498    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]'
5499    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5500    ;;
5501  *)
5502    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5503    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5504    ;;
5505  esac
5506  ;;
5507
5508interix3*)
5509  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5510  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5511  ;;
5512
5513irix5* | irix6* | nonstopux*)
5514  case $LD in
5515  *-32|*"-32 ") libmagic=32-bit;;
5516  *-n32|*"-n32 ") libmagic=N32;;
5517  *-64|*"-64 ") libmagic=64-bit;;
5518  *) libmagic=never-match;;
5519  esac
5520  lt_cv_deplibs_check_method=pass_all
5521  ;;
5522
5523# This must be Linux ELF.
5524linux*)
5525  lt_cv_deplibs_check_method=pass_all
5526  ;;
5527
5528netbsd*)
5529  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5530    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5531  else
5532    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5533  fi
5534  ;;
5535
5536newos6*)
5537  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5538  lt_cv_file_magic_cmd=/usr/bin/file
5539  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5540  ;;
5541
5542nto-qnx*)
5543  lt_cv_deplibs_check_method=unknown
5544  ;;
5545
5546openbsd*)
5547  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5548    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5549  else
5550    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5551  fi
5552  ;;
5553
5554osf3* | osf4* | osf5*)
5555  lt_cv_deplibs_check_method=pass_all
5556  ;;
5557
5558solaris*)
5559  lt_cv_deplibs_check_method=pass_all
5560  ;;
5561
5562sysv4 | sysv4.3*)
5563  case $host_vendor in
5564  motorola)
5565    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]'
5566    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5567    ;;
5568  ncr)
5569    lt_cv_deplibs_check_method=pass_all
5570    ;;
5571  sequent)
5572    lt_cv_file_magic_cmd='/bin/file'
5573    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5574    ;;
5575  sni)
5576    lt_cv_file_magic_cmd='/bin/file'
5577    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5578    lt_cv_file_magic_test_file=/lib/libc.so
5579    ;;
5580  siemens)
5581    lt_cv_deplibs_check_method=pass_all
5582    ;;
5583  pc)
5584    lt_cv_deplibs_check_method=pass_all
5585    ;;
5586  esac
5587  ;;
5588
5589sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5590  lt_cv_deplibs_check_method=pass_all
5591  ;;
5592esac
5593
5594fi
5595echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5596echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5597file_magic_cmd=$lt_cv_file_magic_cmd
5598deplibs_check_method=$lt_cv_deplibs_check_method
5599test -z "$deplibs_check_method" && deplibs_check_method=unknown
5600
5601
5602
5603
5604# If no C compiler was specified, use CC.
5605LTCC=${LTCC-"$CC"}
5606
5607# If no C compiler flags were specified, use CFLAGS.
5608LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5609
5610# Allow CC to be a program name with arguments.
5611compiler=$CC
5612
5613# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5614if test "${enable_libtool_lock+set}" = set; then
5615  enableval="$enable_libtool_lock"
5616
5617fi;
5618test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5619
5620# Some flags need to be propagated to the compiler or linker for good
5621# libtool support.
5622case $host in
5623ia64-*-hpux*)
5624  # Find out which ABI we are using.
5625  echo 'int i;' > conftest.$ac_ext
5626  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627  (eval $ac_compile) 2>&5
5628  ac_status=$?
5629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630  (exit $ac_status); }; then
5631    case `/usr/bin/file conftest.$ac_objext` in
5632    *ELF-32*)
5633      HPUX_IA64_MODE="32"
5634      ;;
5635    *ELF-64*)
5636      HPUX_IA64_MODE="64"
5637      ;;
5638    esac
5639  fi
5640  rm -rf conftest*
5641  ;;
5642*-*-irix6*)
5643  # Find out which ABI we are using.
5644  echo '#line 5644 "configure"' > conftest.$ac_ext
5645  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646  (eval $ac_compile) 2>&5
5647  ac_status=$?
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); }; then
5650   if test "$lt_cv_prog_gnu_ld" = yes; then
5651    case `/usr/bin/file conftest.$ac_objext` in
5652    *32-bit*)
5653      LD="${LD-ld} -melf32bsmip"
5654      ;;
5655    *N32*)
5656      LD="${LD-ld} -melf32bmipn32"
5657      ;;
5658    *64-bit*)
5659      LD="${LD-ld} -melf64bmip"
5660      ;;
5661    esac
5662   else
5663    case `/usr/bin/file conftest.$ac_objext` in
5664    *32-bit*)
5665      LD="${LD-ld} -32"
5666      ;;
5667    *N32*)
5668      LD="${LD-ld} -n32"
5669      ;;
5670    *64-bit*)
5671      LD="${LD-ld} -64"
5672      ;;
5673    esac
5674   fi
5675  fi
5676  rm -rf conftest*
5677  ;;
5678
5679x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5680  # Find out which ABI we are using.
5681  echo 'int i;' > conftest.$ac_ext
5682  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5683  (eval $ac_compile) 2>&5
5684  ac_status=$?
5685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686  (exit $ac_status); }; then
5687    case `/usr/bin/file conftest.o` in
5688    *32-bit*)
5689      case $host in
5690        x86_64-*linux*)
5691          LD="${LD-ld} -m elf_i386"
5692          ;;
5693        ppc64-*linux*|powerpc64-*linux*)
5694          LD="${LD-ld} -m elf32ppclinux"
5695          ;;
5696        s390x-*linux*)
5697          LD="${LD-ld} -m elf_s390"
5698          ;;
5699        sparc64-*linux*)
5700          LD="${LD-ld} -m elf32_sparc"
5701          ;;
5702      esac
5703      ;;
5704    *64-bit*)
5705      case $host in
5706        x86_64-*linux*)
5707          LD="${LD-ld} -m elf_x86_64"
5708          ;;
5709        ppc*-*linux*|powerpc*-*linux*)
5710          LD="${LD-ld} -m elf64ppc"
5711          ;;
5712        s390*-*linux*)
5713          LD="${LD-ld} -m elf64_s390"
5714          ;;
5715        sparc*-*linux*)
5716          LD="${LD-ld} -m elf64_sparc"
5717          ;;
5718      esac
5719      ;;
5720    esac
5721  fi
5722  rm -rf conftest*
5723  ;;
5724
5725*-*-sco3.2v5*)
5726  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5727  SAVE_CFLAGS="$CFLAGS"
5728  CFLAGS="$CFLAGS -belf"
5729  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5730echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5731if test "${lt_cv_cc_needs_belf+set}" = set; then
5732  echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734  ac_ext=c
5735ac_cpp='$CPP $CPPFLAGS'
5736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5738ac_compiler_gnu=$ac_cv_c_compiler_gnu
5739
5740     cat >conftest.$ac_ext <<_ACEOF
5741/* confdefs.h.  */
5742_ACEOF
5743cat confdefs.h >>conftest.$ac_ext
5744cat >>conftest.$ac_ext <<_ACEOF
5745/* end confdefs.h.  */
5746
5747int
5748main ()
5749{
5750
5751  ;
5752  return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext conftest$ac_exeext
5756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5757  (eval $ac_link) 2>conftest.er1
5758  ac_status=$?
5759  grep -v '^ *+' conftest.er1 >conftest.err
5760  rm -f conftest.er1
5761  cat conftest.err >&5
5762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763  (exit $ac_status); } &&
5764         { ac_try='test -z "$ac_c_werror_flag"
5765                         || test ! -s conftest.err'
5766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767  (eval $ac_try) 2>&5
5768  ac_status=$?
5769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770  (exit $ac_status); }; } &&
5771         { ac_try='test -s conftest$ac_exeext'
5772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773  (eval $ac_try) 2>&5
5774  ac_status=$?
5775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776  (exit $ac_status); }; }; then
5777  lt_cv_cc_needs_belf=yes
5778else
5779  echo "$as_me: failed program was:" >&5
5780sed 's/^/| /' conftest.$ac_ext >&5
5781
5782lt_cv_cc_needs_belf=no
5783fi
5784rm -f conftest.err conftest.$ac_objext \
5785      conftest$ac_exeext conftest.$ac_ext
5786     ac_ext=c
5787ac_cpp='$CPP $CPPFLAGS'
5788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5790ac_compiler_gnu=$ac_cv_c_compiler_gnu
5791
5792fi
5793echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5794echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5795  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5796    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5797    CFLAGS="$SAVE_CFLAGS"
5798  fi
5799  ;;
5800sparc*-*solaris*)
5801  # Find out which ABI we are using.
5802  echo 'int i;' > conftest.$ac_ext
5803  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5804  (eval $ac_compile) 2>&5
5805  ac_status=$?
5806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807  (exit $ac_status); }; then
5808    case `/usr/bin/file conftest.o` in
5809    *64-bit*)
5810      case $lt_cv_prog_gnu_ld in
5811      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5812      *)    LD="${LD-ld} -64" ;;
5813      esac
5814      ;;
5815    esac
5816  fi
5817  rm -rf conftest*
5818  ;;
5819
5820
5821esac
5822
5823need_locks="$enable_libtool_lock"
5824
5825
5826ac_ext=c
5827ac_cpp='$CPP $CPPFLAGS'
5828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5830ac_compiler_gnu=$ac_cv_c_compiler_gnu
5831echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5832echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5833# On Suns, sometimes $CPP names a directory.
5834if test -n "$CPP" && test -d "$CPP"; then
5835  CPP=
5836fi
5837if test -z "$CPP"; then
5838  if test "${ac_cv_prog_CPP+set}" = set; then
5839  echo $ECHO_N "(cached) $ECHO_C" >&6
5840else
5841      # Double quotes because CPP needs to be expanded
5842    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5843    do
5844      ac_preproc_ok=false
5845for ac_c_preproc_warn_flag in '' yes
5846do
5847  # Use a header file that comes with gcc, so configuring glibc
5848  # with a fresh cross-compiler works.
5849  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850  # <limits.h> exists even on freestanding compilers.
5851  # On the NeXT, cc -E runs the code through the compiler's parser,
5852  # not just through cpp. "Syntax error" is here to catch this case.
5853  cat >conftest.$ac_ext <<_ACEOF
5854/* confdefs.h.  */
5855_ACEOF
5856cat confdefs.h >>conftest.$ac_ext
5857cat >>conftest.$ac_ext <<_ACEOF
5858/* end confdefs.h.  */
5859#ifdef __STDC__
5860# include <limits.h>
5861#else
5862# include <assert.h>
5863#endif
5864                     Syntax error
5865_ACEOF
5866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5867  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5868  ac_status=$?
5869  grep -v '^ *+' conftest.er1 >conftest.err
5870  rm -f conftest.er1
5871  cat conftest.err >&5
5872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873  (exit $ac_status); } >/dev/null; then
5874  if test -s conftest.err; then
5875    ac_cpp_err=$ac_c_preproc_warn_flag
5876    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5877  else
5878    ac_cpp_err=
5879  fi
5880else
5881  ac_cpp_err=yes
5882fi
5883if test -z "$ac_cpp_err"; then
5884  :
5885else
5886  echo "$as_me: failed program was:" >&5
5887sed 's/^/| /' conftest.$ac_ext >&5
5888
5889  # Broken: fails on valid input.
5890continue
5891fi
5892rm -f conftest.err conftest.$ac_ext
5893
5894  # OK, works on sane cases.  Now check whether non-existent headers
5895  # can be detected and how.
5896  cat >conftest.$ac_ext <<_ACEOF
5897/* confdefs.h.  */
5898_ACEOF
5899cat confdefs.h >>conftest.$ac_ext
5900cat >>conftest.$ac_ext <<_ACEOF
5901/* end confdefs.h.  */
5902#include <ac_nonexistent.h>
5903_ACEOF
5904if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5905  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5906  ac_status=$?
5907  grep -v '^ *+' conftest.er1 >conftest.err
5908  rm -f conftest.er1
5909  cat conftest.err >&5
5910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911  (exit $ac_status); } >/dev/null; then
5912  if test -s conftest.err; then
5913    ac_cpp_err=$ac_c_preproc_warn_flag
5914    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5915  else
5916    ac_cpp_err=
5917  fi
5918else
5919  ac_cpp_err=yes
5920fi
5921if test -z "$ac_cpp_err"; then
5922  # Broken: success on invalid input.
5923continue
5924else
5925  echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
5928  # Passes both tests.
5929ac_preproc_ok=:
5930break
5931fi
5932rm -f conftest.err conftest.$ac_ext
5933
5934done
5935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5936rm -f conftest.err conftest.$ac_ext
5937if $ac_preproc_ok; then
5938  break
5939fi
5940
5941    done
5942    ac_cv_prog_CPP=$CPP
5943
5944fi
5945  CPP=$ac_cv_prog_CPP
5946else
5947  ac_cv_prog_CPP=$CPP
5948fi
5949echo "$as_me:$LINENO: result: $CPP" >&5
5950echo "${ECHO_T}$CPP" >&6
5951ac_preproc_ok=false
5952for ac_c_preproc_warn_flag in '' yes
5953do
5954  # Use a header file that comes with gcc, so configuring glibc
5955  # with a fresh cross-compiler works.
5956  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5957  # <limits.h> exists even on freestanding compilers.
5958  # On the NeXT, cc -E runs the code through the compiler's parser,
5959  # not just through cpp. "Syntax error" is here to catch this case.
5960  cat >conftest.$ac_ext <<_ACEOF
5961/* confdefs.h.  */
5962_ACEOF
5963cat confdefs.h >>conftest.$ac_ext
5964cat >>conftest.$ac_ext <<_ACEOF
5965/* end confdefs.h.  */
5966#ifdef __STDC__
5967# include <limits.h>
5968#else
5969# include <assert.h>
5970#endif
5971                     Syntax error
5972_ACEOF
5973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5974  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5975  ac_status=$?
5976  grep -v '^ *+' conftest.er1 >conftest.err
5977  rm -f conftest.er1
5978  cat conftest.err >&5
5979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); } >/dev/null; then
5981  if test -s conftest.err; then
5982    ac_cpp_err=$ac_c_preproc_warn_flag
5983    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5984  else
5985    ac_cpp_err=
5986  fi
5987else
5988  ac_cpp_err=yes
5989fi
5990if test -z "$ac_cpp_err"; then
5991  :
5992else
5993  echo "$as_me: failed program was:" >&5
5994sed 's/^/| /' conftest.$ac_ext >&5
5995
5996  # Broken: fails on valid input.
5997continue
5998fi
5999rm -f conftest.err conftest.$ac_ext
6000
6001  # OK, works on sane cases.  Now check whether non-existent headers
6002  # can be detected and how.
6003  cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h.  */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h.  */
6009#include <ac_nonexistent.h>
6010_ACEOF
6011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013  ac_status=$?
6014  grep -v '^ *+' conftest.er1 >conftest.err
6015  rm -f conftest.er1
6016  cat conftest.err >&5
6017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018  (exit $ac_status); } >/dev/null; then
6019  if test -s conftest.err; then
6020    ac_cpp_err=$ac_c_preproc_warn_flag
6021    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6022  else
6023    ac_cpp_err=
6024  fi
6025else
6026  ac_cpp_err=yes
6027fi
6028if test -z "$ac_cpp_err"; then
6029  # Broken: success on invalid input.
6030continue
6031else
6032  echo "$as_me: failed program was:" >&5
6033sed 's/^/| /' conftest.$ac_ext >&5
6034
6035  # Passes both tests.
6036ac_preproc_ok=:
6037break
6038fi
6039rm -f conftest.err conftest.$ac_ext
6040
6041done
6042# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6043rm -f conftest.err conftest.$ac_ext
6044if $ac_preproc_ok; then
6045  :
6046else
6047  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6048See \`config.log' for more details." >&5
6049echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6050See \`config.log' for more details." >&2;}
6051   { (exit 1); exit 1; }; }
6052fi
6053
6054ac_ext=c
6055ac_cpp='$CPP $CPPFLAGS'
6056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058ac_compiler_gnu=$ac_cv_c_compiler_gnu
6059
6060
6061echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6062echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6063if test "${ac_cv_header_stdc+set}" = set; then
6064  echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066  cat >conftest.$ac_ext <<_ACEOF
6067/* confdefs.h.  */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h.  */
6072#include <stdlib.h>
6073#include <stdarg.h>
6074#include <string.h>
6075#include <float.h>
6076
6077int
6078main ()
6079{
6080
6081  ;
6082  return 0;
6083}
6084_ACEOF
6085rm -f conftest.$ac_objext
6086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6087  (eval $ac_compile) 2>conftest.er1
6088  ac_status=$?
6089  grep -v '^ *+' conftest.er1 >conftest.err
6090  rm -f conftest.er1
6091  cat conftest.err >&5
6092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093  (exit $ac_status); } &&
6094         { ac_try='test -z "$ac_c_werror_flag"
6095                         || test ! -s conftest.err'
6096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6097  (eval $ac_try) 2>&5
6098  ac_status=$?
6099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100  (exit $ac_status); }; } &&
6101         { ac_try='test -s conftest.$ac_objext'
6102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103  (eval $ac_try) 2>&5
6104  ac_status=$?
6105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106  (exit $ac_status); }; }; then
6107  ac_cv_header_stdc=yes
6108else
6109  echo "$as_me: failed program was:" >&5
6110sed 's/^/| /' conftest.$ac_ext >&5
6111
6112ac_cv_header_stdc=no
6113fi
6114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6115
6116if test $ac_cv_header_stdc = yes; then
6117  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6118  cat >conftest.$ac_ext <<_ACEOF
6119/* confdefs.h.  */
6120_ACEOF
6121cat confdefs.h >>conftest.$ac_ext
6122cat >>conftest.$ac_ext <<_ACEOF
6123/* end confdefs.h.  */
6124#include <string.h>
6125
6126_ACEOF
6127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128  $EGREP "memchr" >/dev/null 2>&1; then
6129  :
6130else
6131  ac_cv_header_stdc=no
6132fi
6133rm -f conftest*
6134
6135fi
6136
6137if test $ac_cv_header_stdc = yes; then
6138  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6139  cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h.  */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h.  */
6145#include <stdlib.h>
6146
6147_ACEOF
6148if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6149  $EGREP "free" >/dev/null 2>&1; then
6150  :
6151else
6152  ac_cv_header_stdc=no
6153fi
6154rm -f conftest*
6155
6156fi
6157
6158if test $ac_cv_header_stdc = yes; then
6159  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6160  if test "$cross_compiling" = yes; then
6161  :
6162else
6163  cat >conftest.$ac_ext <<_ACEOF
6164/* confdefs.h.  */
6165_ACEOF
6166cat confdefs.h >>conftest.$ac_ext
6167cat >>conftest.$ac_ext <<_ACEOF
6168/* end confdefs.h.  */
6169#include <ctype.h>
6170#if ((' ' & 0x0FF) == 0x020)
6171# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6172# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6173#else
6174# define ISLOWER(c) \
6175                   (('a' <= (c) && (c) <= 'i') \
6176                     || ('j' <= (c) && (c) <= 'r') \
6177                     || ('s' <= (c) && (c) <= 'z'))
6178# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6179#endif
6180
6181#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6182int
6183main ()
6184{
6185  int i;
6186  for (i = 0; i < 256; i++)
6187    if (XOR (islower (i), ISLOWER (i))
6188        || toupper (i) != TOUPPER (i))
6189      exit(2);
6190  exit (0);
6191}
6192_ACEOF
6193rm -f conftest$ac_exeext
6194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6195  (eval $ac_link) 2>&5
6196  ac_status=$?
6197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200  (eval $ac_try) 2>&5
6201  ac_status=$?
6202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203  (exit $ac_status); }; }; then
6204  :
6205else
6206  echo "$as_me: program exited with status $ac_status" >&5
6207echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210( exit $ac_status )
6211ac_cv_header_stdc=no
6212fi
6213rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6214fi
6215fi
6216fi
6217echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6218echo "${ECHO_T}$ac_cv_header_stdc" >&6
6219if test $ac_cv_header_stdc = yes; then
6220
6221cat >>confdefs.h <<\_ACEOF
6222#define STDC_HEADERS 1
6223_ACEOF
6224
6225fi
6226
6227# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6238                  inttypes.h stdint.h unistd.h
6239do
6240as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6241echo "$as_me:$LINENO: checking for $ac_header" >&5
6242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6243if eval "test \"\${$as_ac_Header+set}\" = set"; then
6244  echo $ECHO_N "(cached) $ECHO_C" >&6
6245else
6246  cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h.  */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h.  */
6252$ac_includes_default
6253
6254#include <$ac_header>
6255_ACEOF
6256rm -f conftest.$ac_objext
6257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6258  (eval $ac_compile) 2>conftest.er1
6259  ac_status=$?
6260  grep -v '^ *+' conftest.er1 >conftest.err
6261  rm -f conftest.er1
6262  cat conftest.err >&5
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); } &&
6265         { ac_try='test -z "$ac_c_werror_flag"
6266                         || test ! -s conftest.err'
6267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268  (eval $ac_try) 2>&5
6269  ac_status=$?
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); }; } &&
6272         { ac_try='test -s conftest.$ac_objext'
6273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274  (eval $ac_try) 2>&5
6275  ac_status=$?
6276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277  (exit $ac_status); }; }; then
6278  eval "$as_ac_Header=yes"
6279else
6280  echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283eval "$as_ac_Header=no"
6284fi
6285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6286fi
6287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6289if test `eval echo '${'$as_ac_Header'}'` = yes; then
6290  cat >>confdefs.h <<_ACEOF
6291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6292_ACEOF
6293
6294fi
6295
6296done
6297
6298
6299
6300for ac_header in dlfcn.h
6301do
6302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6303if eval "test \"\${$as_ac_Header+set}\" = set"; then
6304  echo "$as_me:$LINENO: checking for $ac_header" >&5
6305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6306if eval "test \"\${$as_ac_Header+set}\" = set"; then
6307  echo $ECHO_N "(cached) $ECHO_C" >&6
6308fi
6309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6311else
6312  # Is the header compilable?
6313echo "$as_me:$LINENO: checking $ac_header usability" >&5
6314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6315cat >conftest.$ac_ext <<_ACEOF
6316/* confdefs.h.  */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h.  */
6321$ac_includes_default
6322#include <$ac_header>
6323_ACEOF
6324rm -f conftest.$ac_objext
6325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6326  (eval $ac_compile) 2>conftest.er1
6327  ac_status=$?
6328  grep -v '^ *+' conftest.er1 >conftest.err
6329  rm -f conftest.er1
6330  cat conftest.err >&5
6331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332  (exit $ac_status); } &&
6333         { ac_try='test -z "$ac_c_werror_flag"
6334                         || test ! -s conftest.err'
6335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336  (eval $ac_try) 2>&5
6337  ac_status=$?
6338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339  (exit $ac_status); }; } &&
6340         { ac_try='test -s conftest.$ac_objext'
6341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342  (eval $ac_try) 2>&5
6343  ac_status=$?
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); }; }; then
6346  ac_header_compiler=yes
6347else
6348  echo "$as_me: failed program was:" >&5
6349sed 's/^/| /' conftest.$ac_ext >&5
6350
6351ac_header_compiler=no
6352fi
6353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6355echo "${ECHO_T}$ac_header_compiler" >&6
6356
6357# Is the header present?
6358echo "$as_me:$LINENO: checking $ac_header presence" >&5
6359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6360cat >conftest.$ac_ext <<_ACEOF
6361/* confdefs.h.  */
6362_ACEOF
6363cat confdefs.h >>conftest.$ac_ext
6364cat >>conftest.$ac_ext <<_ACEOF
6365/* end confdefs.h.  */
6366#include <$ac_header>
6367_ACEOF
6368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6369  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6370  ac_status=$?
6371  grep -v '^ *+' conftest.er1 >conftest.err
6372  rm -f conftest.er1
6373  cat conftest.err >&5
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); } >/dev/null; then
6376  if test -s conftest.err; then
6377    ac_cpp_err=$ac_c_preproc_warn_flag
6378    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6379  else
6380    ac_cpp_err=
6381  fi
6382else
6383  ac_cpp_err=yes
6384fi
6385if test -z "$ac_cpp_err"; then
6386  ac_header_preproc=yes
6387else
6388  echo "$as_me: failed program was:" >&5
6389sed 's/^/| /' conftest.$ac_ext >&5
6390
6391  ac_header_preproc=no
6392fi
6393rm -f conftest.err conftest.$ac_ext
6394echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6395echo "${ECHO_T}$ac_header_preproc" >&6
6396
6397# So?  What about this header?
6398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6399  yes:no: )
6400    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6402    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6404    ac_header_preproc=yes
6405    ;;
6406  no:yes:* )
6407    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6409    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6410echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6411    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6413    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6414echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6415    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6417    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6419    (
6420      cat <<\_ASBOX
6421## ---------------------------------------- ##
6422## Report this to coin-clp@list.coin-or.org ##
6423## ---------------------------------------- ##
6424_ASBOX
6425    ) |
6426      sed "s/^/$as_me: WARNING:     /" >&2
6427    ;;
6428esac
6429echo "$as_me:$LINENO: checking for $ac_header" >&5
6430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432  echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434  eval "$as_ac_Header=\$ac_header_preproc"
6435fi
6436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6438
6439fi
6440if test `eval echo '${'$as_ac_Header'}'` = yes; then
6441  cat >>confdefs.h <<_ACEOF
6442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6443_ACEOF
6444
6445fi
6446
6447done
6448
6449
6450
6451if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6452    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6453    (test "X$CXX" != "Xg++"))) ; then
6454  ac_ext=cc
6455ac_cpp='$CXXCPP $CPPFLAGS'
6456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6459echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6460echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6461if test -z "$CXXCPP"; then
6462  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6463  echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465      # Double quotes because CXXCPP needs to be expanded
6466    for CXXCPP in "$CXX -E" "/lib/cpp"
6467    do
6468      ac_preproc_ok=false
6469for ac_cxx_preproc_warn_flag in '' yes
6470do
6471  # Use a header file that comes with gcc, so configuring glibc
6472  # with a fresh cross-compiler works.
6473  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6474  # <limits.h> exists even on freestanding compilers.
6475  # On the NeXT, cc -E runs the code through the compiler's parser,
6476  # not just through cpp. "Syntax error" is here to catch this case.
6477  cat >conftest.$ac_ext <<_ACEOF
6478/* confdefs.h.  */
6479_ACEOF
6480cat confdefs.h >>conftest.$ac_ext
6481cat >>conftest.$ac_ext <<_ACEOF
6482/* end confdefs.h.  */
6483#ifdef __STDC__
6484# include <limits.h>
6485#else
6486# include <assert.h>
6487#endif
6488                     Syntax error
6489_ACEOF
6490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6491  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6492  ac_status=$?
6493  grep -v '^ *+' conftest.er1 >conftest.err
6494  rm -f conftest.er1
6495  cat conftest.err >&5
6496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); } >/dev/null; then
6498  if test -s conftest.err; then
6499    ac_cpp_err=$ac_cxx_preproc_warn_flag
6500    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6501  else
6502    ac_cpp_err=
6503  fi
6504else
6505  ac_cpp_err=yes
6506fi
6507if test -z "$ac_cpp_err"; then
6508  :
6509else
6510  echo "$as_me: failed program was:" >&5
6511sed 's/^/| /' conftest.$ac_ext >&5
6512
6513  # Broken: fails on valid input.
6514continue
6515fi
6516rm -f conftest.err conftest.$ac_ext
6517
6518  # OK, works on sane cases.  Now check whether non-existent headers
6519  # can be detected and how.
6520  cat >conftest.$ac_ext <<_ACEOF
6521/* confdefs.h.  */
6522_ACEOF
6523cat confdefs.h >>conftest.$ac_ext
6524cat >>conftest.$ac_ext <<_ACEOF
6525/* end confdefs.h.  */
6526#include <ac_nonexistent.h>
6527_ACEOF
6528if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6529  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6530  ac_status=$?
6531  grep -v '^ *+' conftest.er1 >conftest.err
6532  rm -f conftest.er1
6533  cat conftest.err >&5
6534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535  (exit $ac_status); } >/dev/null; then
6536  if test -s conftest.err; then
6537    ac_cpp_err=$ac_cxx_preproc_warn_flag
6538    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6539  else
6540    ac_cpp_err=
6541  fi
6542else
6543  ac_cpp_err=yes
6544fi
6545if test -z "$ac_cpp_err"; then
6546  # Broken: success on invalid input.
6547continue
6548else
6549  echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552  # Passes both tests.
6553ac_preproc_ok=:
6554break
6555fi
6556rm -f conftest.err conftest.$ac_ext
6557
6558done
6559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6560rm -f conftest.err conftest.$ac_ext
6561if $ac_preproc_ok; then
6562  break
6563fi
6564
6565    done
6566    ac_cv_prog_CXXCPP=$CXXCPP
6567
6568fi
6569  CXXCPP=$ac_cv_prog_CXXCPP
6570else
6571  ac_cv_prog_CXXCPP=$CXXCPP
6572fi
6573echo "$as_me:$LINENO: result: $CXXCPP" >&5
6574echo "${ECHO_T}$CXXCPP" >&6
6575ac_preproc_ok=false
6576for ac_cxx_preproc_warn_flag in '' yes
6577do
6578  # Use a header file that comes with gcc, so configuring glibc
6579  # with a fresh cross-compiler works.
6580  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6581  # <limits.h> exists even on freestanding compilers.
6582  # On the NeXT, cc -E runs the code through the compiler's parser,
6583  # not just through cpp. "Syntax error" is here to catch this case.
6584  cat >conftest.$ac_ext <<_ACEOF
6585/* confdefs.h.  */
6586_ACEOF
6587cat confdefs.h >>conftest.$ac_ext
6588cat >>conftest.$ac_ext <<_ACEOF
6589/* end confdefs.h.  */
6590#ifdef __STDC__
6591# include <limits.h>
6592#else
6593# include <assert.h>
6594#endif
6595                     Syntax error
6596_ACEOF
6597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6598  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6599  ac_status=$?
6600  grep -v '^ *+' conftest.er1 >conftest.err
6601  rm -f conftest.er1
6602  cat conftest.err >&5
6603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604  (exit $ac_status); } >/dev/null; then
6605  if test -s conftest.err; then
6606    ac_cpp_err=$ac_cxx_preproc_warn_flag
6607    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6608  else
6609    ac_cpp_err=
6610  fi
6611else
6612  ac_cpp_err=yes
6613fi
6614if test -z "$ac_cpp_err"; then
6615  :
6616else
6617  echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620  # Broken: fails on valid input.
6621continue
6622fi
6623rm -f conftest.err conftest.$ac_ext
6624
6625  # OK, works on sane cases.  Now check whether non-existent headers
6626  # can be detected and how.
6627  cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633#include <ac_nonexistent.h>
6634_ACEOF
6635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637  ac_status=$?
6638  grep -v '^ *+' conftest.er1 >conftest.err
6639  rm -f conftest.er1
6640  cat conftest.err >&5
6641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642  (exit $ac_status); } >/dev/null; then
6643  if test -s conftest.err; then
6644    ac_cpp_err=$ac_cxx_preproc_warn_flag
6645    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6646  else
6647    ac_cpp_err=
6648  fi
6649else
6650  ac_cpp_err=yes
6651fi
6652if test -z "$ac_cpp_err"; then
6653  # Broken: success on invalid input.
6654continue
6655else
6656  echo "$as_me: failed program was:" >&5
6657sed 's/^/| /' conftest.$ac_ext >&5
6658
6659  # Passes both tests.
6660ac_preproc_ok=:
6661break
6662fi
6663rm -f conftest.err conftest.$ac_ext
6664
6665done
6666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6667rm -f conftest.err conftest.$ac_ext
6668if $ac_preproc_ok; then
6669  :
6670else
6671  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6672See \`config.log' for more details." >&5
6673echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6674See \`config.log' for more details." >&2;}
6675   { (exit 1); exit 1; }; }
6676fi
6677
6678ac_ext=cc
6679ac_cpp='$CXXCPP $CPPFLAGS'
6680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6683
6684fi
6685
6686ac_ext=f
6687ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6688ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6690if test -n "$ac_tool_prefix"; then
6691  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6692  do
6693    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6694set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6695echo "$as_me:$LINENO: checking for $ac_word" >&5
6696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6697if test "${ac_cv_prog_F77+set}" = set; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700  if test -n "$F77"; then
6701  ac_cv_prog_F77="$F77" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706  IFS=$as_save_IFS
6707  test -z "$as_dir" && as_dir=.
6708  for ac_exec_ext in '' $ac_executable_extensions; do
6709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712    break 2
6713  fi
6714done
6715done
6716
6717fi
6718fi
6719F77=$ac_cv_prog_F77
6720if test -n "$F77"; then
6721  echo "$as_me:$LINENO: result: $F77" >&5
6722echo "${ECHO_T}$F77" >&6
6723else
6724  echo "$as_me:$LINENO: result: no" >&5
6725echo "${ECHO_T}no" >&6
6726fi
6727
6728    test -n "$F77" && break
6729  done
6730fi
6731if test -z "$F77"; then
6732  ac_ct_F77=$F77
6733  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6734do
6735  # Extract the first word of "$ac_prog", so it can be a program name with args.
6736set dummy $ac_prog; ac_word=$2
6737echo "$as_me:$LINENO: checking for $ac_word" >&5
6738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6739if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6740  echo $ECHO_N "(cached) $ECHO_C" >&6
6741else
6742  if test -n "$ac_ct_F77"; then
6743  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6744else
6745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746for as_dir in $PATH
6747do
6748  IFS=$as_save_IFS
6749  test -z "$as_dir" && as_dir=.
6750  for ac_exec_ext in '' $ac_executable_extensions; do
6751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752    ac_cv_prog_ac_ct_F77="$ac_prog"
6753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754    break 2
6755  fi
6756done
6757done
6758
6759fi
6760fi
6761ac_ct_F77=$ac_cv_prog_ac_ct_F77
6762if test -n "$ac_ct_F77"; then
6763  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6764echo "${ECHO_T}$ac_ct_F77" >&6
6765else
6766  echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6
6768fi
6769
6770  test -n "$ac_ct_F77" && break
6771done
6772
6773  F77=$ac_ct_F77
6774fi
6775
6776
6777# Provide some information about the compiler.
6778echo "$as_me:6778:" \
6779     "checking for Fortran 77 compiler version" >&5
6780ac_compiler=`set X $ac_compile; echo $2`
6781{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6782  (eval $ac_compiler --version </dev/null >&5) 2>&5
6783  ac_status=$?
6784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785  (exit $ac_status); }
6786{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6787  (eval $ac_compiler -v </dev/null >&5) 2>&5
6788  ac_status=$?
6789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790  (exit $ac_status); }
6791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6792  (eval $ac_compiler -V </dev/null >&5) 2>&5
6793  ac_status=$?
6794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795  (exit $ac_status); }
6796rm -f a.out
6797
6798# If we don't use `.F' as extension, the preprocessor is not run on the
6799# input file.  (Note that this only needs to work for GNU compilers.)
6800ac_save_ext=$ac_ext
6801ac_ext=F
6802echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6803echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6804if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6805  echo $ECHO_N "(cached) $ECHO_C" >&6
6806else
6807  cat >conftest.$ac_ext <<_ACEOF
6808      program main
6809#ifndef __GNUC__
6810       choke me
6811#endif
6812
6813      end
6814_ACEOF
6815rm -f conftest.$ac_objext
6816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817  (eval $ac_compile) 2>conftest.er1
6818  ac_status=$?
6819  grep -v '^ *+' conftest.er1 >conftest.err
6820  rm -f conftest.er1
6821  cat conftest.err >&5
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); } &&
6824         { ac_try='test -z "$ac_f77_werror_flag"
6825                         || test ! -s conftest.err'
6826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827  (eval $ac_try) 2>&5
6828  ac_status=$?
6829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830  (exit $ac_status); }; } &&
6831         { ac_try='test -s conftest.$ac_objext'
6832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833  (eval $ac_try) 2>&5
6834  ac_status=$?
6835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836  (exit $ac_status); }; }; then
6837  ac_compiler_gnu=yes
6838else
6839  echo "$as_me: failed program was:" >&5
6840sed 's/^/| /' conftest.$ac_ext >&5
6841
6842ac_compiler_gnu=no
6843fi
6844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6845ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6846
6847fi
6848echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6849echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6850ac_ext=$ac_save_ext
6851ac_test_FFLAGS=${FFLAGS+set}
6852ac_save_FFLAGS=$FFLAGS
6853FFLAGS=
6854echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6855echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6856if test "${ac_cv_prog_f77_g+set}" = set; then
6857  echo $ECHO_N "(cached) $ECHO_C" >&6
6858else
6859  FFLAGS=-g
6860cat >conftest.$ac_ext <<_ACEOF
6861      program main
6862
6863      end
6864_ACEOF
6865rm -f conftest.$ac_objext
6866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6867  (eval $ac_compile) 2>conftest.er1
6868  ac_status=$?
6869  grep -v '^ *+' conftest.er1 >conftest.err
6870  rm -f conftest.er1
6871  cat conftest.err >&5
6872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873  (exit $ac_status); } &&
6874         { ac_try='test -z "$ac_f77_werror_flag"
6875                         || test ! -s conftest.err'
6876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877  (eval $ac_try) 2>&5
6878  ac_status=$?
6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880  (exit $ac_status); }; } &&
6881         { ac_try='test -s conftest.$ac_objext'
6882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883  (eval $ac_try) 2>&5
6884  ac_status=$?
6885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886  (exit $ac_status); }; }; then
6887  ac_cv_prog_f77_g=yes
6888else
6889  echo "$as_me: failed program was:" >&5
6890sed 's/^/| /' conftest.$ac_ext >&5
6891
6892ac_cv_prog_f77_g=no
6893fi
6894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895
6896fi
6897echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6898echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6899if test "$ac_test_FFLAGS" = set; then
6900  FFLAGS=$ac_save_FFLAGS
6901elif test $ac_cv_prog_f77_g = yes; then
6902  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6903    FFLAGS="-g -O2"
6904  else
6905    FFLAGS="-g"
6906  fi
6907else
6908  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6909    FFLAGS="-O2"
6910  else
6911    FFLAGS=
6912  fi
6913fi
6914
6915G77=`test $ac_compiler_gnu = yes && echo yes`
6916ac_ext=c
6917ac_cpp='$CPP $CPPFLAGS'
6918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921
6922
6923
6924# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6925
6926# find the maximum length of command line arguments
6927echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6928echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6929if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6930  echo $ECHO_N "(cached) $ECHO_C" >&6
6931else
6932    i=0
6933  teststring="ABCD"
6934
6935  case $build_os in
6936  msdosdjgpp*)
6937    # On DJGPP, this test can blow up pretty badly due to problems in libc
6938    # (any single argument exceeding 2000 bytes causes a buffer overrun
6939    # during glob expansion).  Even if it were fixed, the result of this
6940    # check would be larger than it should be.
6941    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6942    ;;
6943
6944  gnu*)
6945    # Under GNU Hurd, this test is not required because there is
6946    # no limit to the length of command line arguments.
6947    # Libtool will interpret -1 as no limit whatsoever
6948    lt_cv_sys_max_cmd_len=-1;
6949    ;;
6950
6951  cygwin* | mingw*)
6952    # On Win9x/ME, this test blows up -- it succeeds, but takes
6953    # about 5 minutes as the teststring grows exponentially.
6954    # Worse, since 9x/ME are not pre-emptively multitasking,
6955    # you end up with a "frozen" computer, even though with patience
6956    # the test eventually succeeds (with a max line length of 256k).
6957    # Instead, let's just punt: use the minimum linelength reported by
6958    # all of the supported platforms: 8192 (on NT/2K/XP).
6959    lt_cv_sys_max_cmd_len=8192;
6960    ;;
6961
6962  amigaos*)
6963    # On AmigaOS with pdksh, this test takes hours, literally.
6964    # So we just punt and use a minimum line length of 8192.
6965    lt_cv_sys_max_cmd_len=8192;
6966    ;;
6967
6968  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6969    # This has been around since 386BSD, at least.  Likely further.
6970    if test -x /sbin/sysctl; then
6971      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6972    elif test -x /usr/sbin/sysctl; then
6973      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6974    else
6975      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6976    fi
6977    # And add a safety zone
6978    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6979    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6980    ;;
6981
6982  interix*)
6983    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6984    lt_cv_sys_max_cmd_len=196608
6985    ;;
6986
6987  osf*)
6988    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6989    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6990    # nice to cause kernel panics so lets avoid the loop below.
6991    # First set a reasonable default.
6992    lt_cv_sys_max_cmd_len=16384
6993    #
6994    if test -x /sbin/sysconfig; then
6995      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6996        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6997      esac
6998    fi
6999    ;;
7000  sco3.2v5*)
7001    lt_cv_sys_max_cmd_len=102400
7002    ;;
7003  sysv5* | sco5v6* | sysv4.2uw2*)
7004    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7005    if test -n "$kargmax"; then
7006      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7007    else
7008      lt_cv_sys_max_cmd_len=32768
7009    fi
7010    ;;
7011  *)
7012    # If test is not a shell built-in, we'll probably end up computing a
7013    # maximum length that is only half of the actual maximum length, but
7014    # we can't tell.
7015    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7016    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7017               = "XX$teststring") >/dev/null 2>&1 &&
7018            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7019            lt_cv_sys_max_cmd_len=$new_result &&
7020            test $i != 17 # 1/2 MB should be enough
7021    do
7022      i=`expr $i + 1`
7023      teststring=$teststring$teststring
7024    done
7025    teststring=
7026    # Add a significant safety factor because C++ compilers can tack on massive
7027    # amounts of additional arguments before passing them to the linker.
7028    # It appears as though 1/2 is a usable value.
7029    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7030    ;;
7031  esac
7032
7033fi
7034
7035if test -n $lt_cv_sys_max_cmd_len ; then
7036  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7037echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7038else
7039  echo "$as_me:$LINENO: result: none" >&5
7040echo "${ECHO_T}none" >&6
7041fi
7042
7043
7044
7045
7046# Check for command to grab the raw symbol name followed by C symbol from nm.
7047echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7048echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7049if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7050  echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052
7053# These are sane defaults that work on at least a few old systems.
7054# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7055
7056# Character class describing NM global symbol codes.
7057symcode='[BCDEGRST]'
7058
7059# Regexp to match symbols that can be accessed directly from C.
7060sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7061
7062# Transform an extracted symbol line into a proper C declaration
7063lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7064
7065# Transform an extracted symbol line into symbol name and symbol address
7066lt_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'"
7067
7068# Define system-specific variables.
7069case $host_os in
7070aix*)
7071  symcode='[BCDT]'
7072  ;;
7073cygwin* | mingw* | pw32*)
7074  symcode='[ABCDGISTW]'
7075  ;;
7076hpux*) # Its linker distinguishes data from code symbols
7077  if test "$host_cpu" = ia64; then
7078    symcode='[ABCDEGRST]'
7079  fi
7080  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7081  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'"
7082  ;;
7083linux*)
7084  if test "$host_cpu" = ia64; then
7085    symcode='[ABCDGIRSTW]'
7086    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7087    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'"
7088  fi
7089  ;;
7090irix* | nonstopux*)
7091  symcode='[BCDEGRST]'
7092  ;;
7093osf*)
7094  symcode='[BCDEGQRST]'
7095  ;;
7096solaris*)
7097  symcode='[BDRT]'
7098  ;;
7099sco3.2v5*)
7100  symcode='[DT]'
7101  ;;
7102sysv4.2uw2*)
7103  symcode='[DT]'
7104  ;;
7105sysv5* | sco5v6* | unixware* | OpenUNIX*)
7106  symcode='[ABDT]'
7107  ;;
7108sysv4)
7109  symcode='[DFNSTU]'
7110  ;;
7111esac
7112
7113# Handle CRLF in mingw tool chain
7114opt_cr=
7115case $build_os in
7116mingw*)
7117  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7118  ;;
7119esac
7120
7121# If we're using GNU nm, then use its standard symbol codes.
7122case `$NM -V 2>&1` in
7123*GNU* | *'with BFD'*)
7124  symcode='[ABCDGIRSTW]' ;;
7125esac
7126
7127# Try without a prefix undercore, then with it.
7128for ac_symprfx in "" "_"; do
7129
7130  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7131  symxfrm="\\1 $ac_symprfx\\2 \\2"
7132
7133  # Write the raw and C identifiers.
7134  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7135
7136  # Check to see that the pipe works correctly.
7137  pipe_works=no
7138
7139  rm -f conftest*
7140  cat > conftest.$ac_ext <<EOF
7141#ifdef __cplusplus
7142extern "C" {
7143#endif
7144char nm_test_var;
7145void nm_test_func(){}
7146#ifdef __cplusplus
7147}
7148#endif
7149int main(){nm_test_var='a';nm_test_func();return(0);}
7150EOF
7151
7152  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153  (eval $ac_compile) 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); }; then
7157    # Now try to grab the symbols.
7158    nlist=conftest.nm
7159    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7160  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7161  ac_status=$?
7162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163  (exit $ac_status); } && test -s "$nlist"; then
7164      # Try sorting and uniquifying the output.
7165      if sort "$nlist" | uniq > "$nlist"T; then
7166        mv -f "$nlist"T "$nlist"
7167      else
7168        rm -f "$nlist"T
7169      fi
7170
7171      # Make sure that we snagged all the symbols we need.
7172      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7173        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7174          cat <<EOF > conftest.$ac_ext
7175#ifdef __cplusplus
7176extern "C" {
7177#endif
7178
7179EOF
7180          # Now generate the symbol file.
7181          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7182
7183          cat <<EOF >> conftest.$ac_ext
7184#if defined (__STDC__) && __STDC__
7185# define lt_ptr_t void *
7186#else
7187# define lt_ptr_t char *
7188# define const
7189#endif
7190
7191/* The mapping between symbol names and symbols. */
7192const struct {
7193  const char *name;
7194  lt_ptr_t address;
7195}
7196lt_preloaded_symbols[] =
7197{
7198EOF
7199          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7200          cat <<\EOF >> conftest.$ac_ext
7201  {0, (lt_ptr_t) 0}
7202};
7203
7204#ifdef __cplusplus
7205}
7206#endif
7207EOF
7208          # Now try linking the two files.
7209          mv conftest.$ac_objext conftstm.$ac_objext
7210          lt_save_LIBS="$LIBS"
7211          lt_save_CFLAGS="$CFLAGS"
7212          LIBS="conftstm.$ac_objext"
7213          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7214          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7215  (eval $ac_link) 2>&5
7216  ac_status=$?
7217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7219            pipe_works=yes
7220          fi
7221          LIBS="$lt_save_LIBS"
7222          CFLAGS="$lt_save_CFLAGS"
7223        else
7224          echo "cannot find nm_test_func in $nlist" >&5
7225        fi
7226      else
7227        echo "cannot find nm_test_var in $nlist" >&5
7228      fi
7229    else
7230      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7231    fi
7232  else
7233    echo "$progname: failed program was:" >&5
7234    cat conftest.$ac_ext >&5
7235  fi
7236  rm -f conftest* conftst*
7237
7238  # Do not use the global_symbol_pipe unless it works.
7239  if test "$pipe_works" = yes; then
7240    break
7241  else
7242    lt_cv_sys_global_symbol_pipe=
7243  fi
7244done
7245
7246fi
7247
7248if test -z "$lt_cv_sys_global_symbol_pipe"; then
7249  lt_cv_sys_global_symbol_to_cdecl=
7250fi
7251if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7252  echo "$as_me:$LINENO: result: failed" >&5
7253echo "${ECHO_T}failed" >&6
7254else
7255  echo "$as_me:$LINENO: result: ok" >&5
7256echo "${ECHO_T}ok" >&6
7257fi
7258
7259echo "$as_me:$LINENO: checking for objdir" >&5
7260echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7261if test "${lt_cv_objdir+set}" = set; then
7262  echo $ECHO_N "(cached) $ECHO_C" >&6
7263else
7264  rm -f .libs 2>/dev/null
7265mkdir .libs 2>/dev/null
7266if test -d .libs; then
7267  lt_cv_objdir=.libs
7268else
7269  # MS-DOS does not allow filenames that begin with a dot.
7270  lt_cv_objdir=_libs
7271fi
7272rmdir .libs 2>/dev/null
7273fi
7274echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7275echo "${ECHO_T}$lt_cv_objdir" >&6
7276objdir=$lt_cv_objdir
7277
7278
7279
7280
7281
7282case $host_os in
7283aix3*)
7284  # AIX sometimes has problems with the GCC collect2 program.  For some
7285  # reason, if we set the COLLECT_NAMES environment variable, the problems
7286  # vanish in a puff of smoke.
7287  if test "X${COLLECT_NAMES+set}" != Xset; then
7288    COLLECT_NAMES=
7289    export COLLECT_NAMES
7290  fi
7291  ;;
7292esac
7293
7294# Sed substitution that helps us do robust quoting.  It backslashifies
7295# metacharacters that are still active within double-quoted strings.
7296Xsed='sed -e 1s/^X//'
7297sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7298
7299# Same as above, but do not quote variable references.
7300double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7301
7302# Sed substitution to delay expansion of an escaped shell variable in a
7303# double_quote_subst'ed string.
7304delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7305
7306# Sed substitution to avoid accidental globbing in evaled expressions
7307no_glob_subst='s/\*/\\\*/g'
7308
7309# Constants:
7310rm="rm -f"
7311
7312# Global variables:
7313default_ofile=libtool
7314can_build_shared=yes
7315
7316# All known linkers require a `.a' archive for static linking (except MSVC,
7317# which needs '.lib').
7318libext=a
7319ltmain="$ac_aux_dir/ltmain.sh"
7320ofile="$default_ofile"
7321with_gnu_ld="$lt_cv_prog_gnu_ld"
7322
7323if test -n "$ac_tool_prefix"; then
7324  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7325set dummy ${ac_tool_prefix}ar; ac_word=$2
7326echo "$as_me:$LINENO: checking for $ac_word" >&5
7327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7328if test "${ac_cv_prog_AR+set}" = set; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331  if test -n "$AR"; then
7332  ac_cv_prog_AR="$AR" # Let the user override the test.
7333else
7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337  IFS=$as_save_IFS
7338  test -z "$as_dir" && as_dir=.
7339  for ac_exec_ext in '' $ac_executable_extensions; do
7340  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341    ac_cv_prog_AR="${ac_tool_prefix}ar"
7342    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343    break 2
7344  fi
7345done
7346done
7347
7348fi
7349fi
7350AR=$ac_cv_prog_AR
7351if test -n "$AR"; then
7352  echo "$as_me:$LINENO: result: $AR" >&5
7353echo "${ECHO_T}$AR" >&6
7354else
7355  echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6
7357fi
7358
7359fi
7360if test -z "$ac_cv_prog_AR"; then
7361  ac_ct_AR=$AR
7362  # Extract the first word of "ar", so it can be a program name with args.
7363set dummy ar; ac_word=$2
7364echo "$as_me:$LINENO: checking for $ac_word" >&5
7365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7366if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7367  echo $ECHO_N "(cached) $ECHO_C" >&6
7368else
7369  if test -n "$ac_ct_AR"; then
7370  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7371else
7372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373for as_dir in $PATH
7374do
7375  IFS=$as_save_IFS
7376  test -z "$as_dir" && as_dir=.
7377  for ac_exec_ext in '' $ac_executable_extensions; do
7378  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379    ac_cv_prog_ac_ct_AR="ar"
7380    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381    break 2
7382  fi
7383done
7384done
7385
7386  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7387fi
7388fi
7389ac_ct_AR=$ac_cv_prog_ac_ct_AR
7390if test -n "$ac_ct_AR"; then
7391  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7392echo "${ECHO_T}$ac_ct_AR" >&6
7393else
7394  echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
7396fi
7397
7398  AR=$ac_ct_AR
7399else
7400  AR="$ac_cv_prog_AR"
7401fi
7402
7403if test -n "$ac_tool_prefix"; then
7404  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7405set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7406echo "$as_me:$LINENO: checking for $ac_word" >&5
7407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7408if test "${ac_cv_prog_RANLIB+set}" = set; then
7409  echo $ECHO_N "(cached) $ECHO_C" >&6
7410else
7411  if test -n "$RANLIB"; then
7412  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7413else
7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415for as_dir in $PATH
7416do
7417  IFS=$as_save_IFS
7418  test -z "$as_dir" && as_dir=.
7419  for ac_exec_ext in '' $ac_executable_extensions; do
7420  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7422    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423    break 2
7424  fi
7425done
7426done
7427
7428fi
7429fi
7430RANLIB=$ac_cv_prog_RANLIB
7431if test -n "$RANLIB"; then
7432  echo "$as_me:$LINENO: result: $RANLIB" >&5
7433echo "${ECHO_T}$RANLIB" >&6
7434else
7435  echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6
7437fi
7438
7439fi
7440if test -z "$ac_cv_prog_RANLIB"; then
7441  ac_ct_RANLIB=$RANLIB
7442  # Extract the first word of "ranlib", so it can be a program name with args.
7443set dummy ranlib; ac_word=$2
7444echo "$as_me:$LINENO: checking for $ac_word" >&5
7445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7446if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7447  echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449  if test -n "$ac_ct_RANLIB"; then
7450  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7451else
7452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453for as_dir in $PATH
7454do
7455  IFS=$as_save_IFS
7456  test -z "$as_dir" && as_dir=.
7457  for ac_exec_ext in '' $ac_executable_extensions; do
7458  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459    ac_cv_prog_ac_ct_RANLIB="ranlib"
7460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461    break 2
7462  fi
7463done
7464done
7465
7466  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7467fi
7468fi
7469ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7470if test -n "$ac_ct_RANLIB"; then
7471  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7472echo "${ECHO_T}$ac_ct_RANLIB" >&6
7473else
7474  echo "$as_me:$LINENO: result: no" >&5
7475echo "${ECHO_T}no" >&6
7476fi
7477
7478  RANLIB=$ac_ct_RANLIB
7479else
7480  RANLIB="$ac_cv_prog_RANLIB"
7481fi
7482
7483if test -n "$ac_tool_prefix"; then
7484  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7485set dummy ${ac_tool_prefix}strip; ac_word=$2
7486echo "$as_me:$LINENO: checking for $ac_word" >&5
7487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7488if test "${ac_cv_prog_STRIP+set}" = set; then
7489  echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491  if test -n "$STRIP"; then
7492  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7493else
7494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497  IFS=$as_save_IFS
7498  test -z "$as_dir" && as_dir=.
7499  for ac_exec_ext in '' $ac_executable_extensions; do
7500  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7502    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503    break 2
7504  fi
7505done
7506done
7507
7508fi
7509fi
7510STRIP=$ac_cv_prog_STRIP
7511if test -n "$STRIP"; then
7512  echo "$as_me:$LINENO: result: $STRIP" >&5
7513echo "${ECHO_T}$STRIP" >&6
7514else
7515  echo "$as_me:$LINENO: result: no" >&5
7516echo "${ECHO_T}no" >&6
7517fi
7518
7519fi
7520if test -z "$ac_cv_prog_STRIP"; then
7521  ac_ct_STRIP=$STRIP
7522  # Extract the first word of "strip", so it can be a program name with args.
7523set dummy strip; ac_word=$2
7524echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7526if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7527  echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529  if test -n "$ac_ct_STRIP"; then
7530  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7531else
7532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533for as_dir in $PATH
7534do
7535  IFS=$as_save_IFS
7536  test -z "$as_dir" && as_dir=.
7537  for ac_exec_ext in '' $ac_executable_extensions; do
7538  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7539    ac_cv_prog_ac_ct_STRIP="strip"
7540    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541    break 2
7542  fi
7543done
7544done
7545
7546  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7547fi
7548fi
7549ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7550if test -n "$ac_ct_STRIP"; then
7551  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7552echo "${ECHO_T}$ac_ct_STRIP" >&6
7553else
7554  echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556fi
7557
7558  STRIP=$ac_ct_STRIP
7559else
7560  STRIP="$ac_cv_prog_STRIP"
7561fi
7562
7563
7564old_CC="$CC"
7565old_CFLAGS="$CFLAGS"
7566
7567# Set sane defaults for various variables
7568test -z "$AR" && AR=ar
7569test -z "$AR_FLAGS" && AR_FLAGS=cru
7570test -z "$AS" && AS=as
7571test -z "$CC" && CC=cc
7572test -z "$LTCC" && LTCC=$CC
7573test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7574test -z "$DLLTOOL" && DLLTOOL=dlltool
7575test -z "$LD" && LD=ld
7576test -z "$LN_S" && LN_S="ln -s"
7577test -z "$MAGIC_CMD" && MAGIC_CMD=file
7578test -z "$NM" && NM=nm
7579test -z "$SED" && SED=sed
7580test -z "$OBJDUMP" && OBJDUMP=objdump
7581test -z "$RANLIB" && RANLIB=:
7582test -z "$STRIP" && STRIP=:
7583test -z "$ac_objext" && ac_objext=o
7584
7585# Determine commands to create old-style static archives.
7586old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7587old_postinstall_cmds='chmod 644 $oldlib'
7588old_postuninstall_cmds=
7589
7590if test -n "$RANLIB"; then
7591  case $host_os in
7592  openbsd*)
7593    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7594    ;;
7595  *)
7596    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7597    ;;
7598  esac
7599  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7600fi
7601
7602for cc_temp in $compiler""; do
7603  case $cc_temp in
7604    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7605    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7606    \-*) ;;
7607    *) break;;
7608  esac
7609done
7610cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7611
7612
7613# Only perform the check for file, if the check method requires it
7614case $deplibs_check_method in
7615file_magic*)
7616  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7617    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7618echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7619if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7620  echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622  case $MAGIC_CMD in
7623[\\/*] |  ?:[\\/]*)
7624  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7625  ;;
7626*)
7627  lt_save_MAGIC_CMD="$MAGIC_CMD"
7628  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7629  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7630  for ac_dir in $ac_dummy; do
7631    IFS="$lt_save_ifs"
7632    test -z "$ac_dir" && ac_dir=.
7633    if test -f $ac_dir/${ac_tool_prefix}file; then
7634      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7635      if test -n "$file_magic_test_file"; then
7636        case $deplibs_check_method in
7637        "file_magic "*)
7638          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7639          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7640          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7641            $EGREP "$file_magic_regex" > /dev/null; then
7642            :
7643          else
7644            cat <<EOF 1>&2
7645
7646*** Warning: the command libtool uses to detect shared libraries,
7647*** $file_magic_cmd, produces output that libtool cannot recognize.
7648*** The result is that libtool may fail to recognize shared libraries
7649*** as such.  This will affect the creation of libtool libraries that
7650*** depend on shared libraries, but programs linked with such libtool
7651*** libraries will work regardless of this problem.  Nevertheless, you
7652*** may want to report the problem to your system manager and/or to
7653*** bug-libtool@gnu.org
7654
7655EOF
7656          fi ;;
7657        esac
7658      fi
7659      break
7660    fi
7661  done
7662  IFS="$lt_save_ifs"
7663  MAGIC_CMD="$lt_save_MAGIC_CMD"
7664  ;;
7665esac
7666fi
7667
7668MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7669if test -n "$MAGIC_CMD"; then
7670  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7671echo "${ECHO_T}$MAGIC_CMD" >&6
7672else
7673  echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675fi
7676
7677if test -z "$lt_cv_path_MAGIC_CMD"; then
7678  if test -n "$ac_tool_prefix"; then
7679    echo "$as_me:$LINENO: checking for file" >&5
7680echo $ECHO_N "checking for file... $ECHO_C" >&6
7681if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7682  echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684  case $MAGIC_CMD in
7685[\\/*] |  ?:[\\/]*)
7686  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7687  ;;
7688*)
7689  lt_save_MAGIC_CMD="$MAGIC_CMD"
7690  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7691  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7692  for ac_dir in $ac_dummy; do
7693    IFS="$lt_save_ifs"
7694    test -z "$ac_dir" && ac_dir=.
7695    if test -f $ac_dir/file; then
7696      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7697      if test -n "$file_magic_test_file"; then
7698        case $deplibs_check_method in
7699        "file_magic "*)
7700          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7701          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7702          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7703            $EGREP "$file_magic_regex" > /dev/null; then
7704            :
7705          else
7706            cat <<EOF 1>&2
7707
7708*** Warning: the command libtool uses to detect shared libraries,
7709*** $file_magic_cmd, produces output that libtool cannot recognize.
7710*** The result is that libtool may fail to recognize shared libraries
7711*** as such.  This will affect the creation of libtool libraries that
7712*** depend on shared libraries, but programs linked with such libtool
7713*** libraries will work regardless of this problem.  Nevertheless, you
7714*** may want to report the problem to your system manager and/or to
7715*** bug-libtool@gnu.org
7716
7717EOF
7718          fi ;;
7719        esac
7720      fi
7721      break
7722    fi
7723  done
7724  IFS="$lt_save_ifs"
7725  MAGIC_CMD="$lt_save_MAGIC_CMD"
7726  ;;
7727esac
7728fi
7729
7730MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7731if test -n "$MAGIC_CMD"; then
7732  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7733echo "${ECHO_T}$MAGIC_CMD" >&6
7734else
7735  echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6
7737fi
7738
7739  else
7740    MAGIC_CMD=:
7741  fi
7742fi
7743
7744  fi
7745  ;;
7746esac
7747
7748enable_dlopen=no
7749enable_win32_dll=no
7750
7751# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7752if test "${enable_libtool_lock+set}" = set; then
7753  enableval="$enable_libtool_lock"
7754
7755fi;
7756test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7757
7758
7759# Check whether --with-pic or --without-pic was given.
7760if test "${with_pic+set}" = set; then
7761  withval="$with_pic"
7762  pic_mode="$withval"
7763else
7764  pic_mode=default
7765fi;
7766test -z "$pic_mode" && pic_mode=default
7767
7768# Use C for the default configuration in the libtool script
7769tagname=
7770lt_save_CC="$CC"
7771ac_ext=c
7772ac_cpp='$CPP $CPPFLAGS'
7773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776
7777
7778# Source file extension for C test sources.
7779ac_ext=c
7780
7781# Object file extension for compiled C test sources.
7782objext=o
7783objext=$objext
7784
7785# Code to be used in simple compile tests
7786lt_simple_compile_test_code="int some_variable = 0;\n"
7787
7788# Code to be used in simple link tests
7789lt_simple_link_test_code='int main(){return(0);}\n'
7790
7791
7792# If no C compiler was specified, use CC.
7793LTCC=${LTCC-"$CC"}
7794
7795# If no C compiler flags were specified, use CFLAGS.
7796LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7797
7798# Allow CC to be a program name with arguments.
7799compiler=$CC
7800
7801
7802# save warnings/boilerplate of simple test code
7803ac_outfile=conftest.$ac_objext
7804printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7805eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7806_lt_compiler_boilerplate=`cat conftest.err`
7807$rm conftest*
7808
7809ac_outfile=conftest.$ac_objext
7810printf "$lt_simple_link_test_code" >conftest.$ac_ext
7811eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7812_lt_linker_boilerplate=`cat conftest.err`
7813$rm conftest*
7814
7815
7816## CAVEAT EMPTOR:
7817## There is no encapsulation within the following macros, do not change
7818## the running order or otherwise move them around unless you know exactly
7819## what you are doing...
7820
7821lt_prog_compiler_no_builtin_flag=
7822
7823if test "$GCC" = yes; then
7824  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7825
7826
7827echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7828echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7829if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7830  echo $ECHO_N "(cached) $ECHO_C" >&6
7831else
7832  lt_cv_prog_compiler_rtti_exceptions=no
7833  ac_outfile=conftest.$ac_objext
7834   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7835   lt_compiler_flag="-fno-rtti -fno-exceptions"
7836   # Insert the option either (1) after the last *FLAGS variable, or
7837   # (2) before a word containing "conftest.", or (3) at the end.
7838   # Note that $ac_compile itself does not contain backslashes and begins
7839   # with a dollar sign (not a hyphen), so the echo should work correctly.
7840   # The option is referenced via a variable to avoid confusing sed.
7841   lt_compile=`echo "$ac_compile" | $SED \
7842   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844   -e 's:$: $lt_compiler_flag:'`
7845   (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
7846   (eval "$lt_compile" 2>conftest.err)
7847   ac_status=$?
7848   cat conftest.err >&5
7849   echo "$as_me:7849: \$? = $ac_status" >&5
7850   if (exit $ac_status) && test -s "$ac_outfile"; then
7851     # The compiler can only warn and ignore the option if not recognized
7852     # So say no if there are warnings other than the usual output.
7853     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7854     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856       lt_cv_prog_compiler_rtti_exceptions=yes
7857     fi
7858   fi
7859   $rm conftest*
7860
7861fi
7862echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7863echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7864
7865if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7866    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7867else
7868    :
7869fi
7870
7871fi
7872
7873lt_prog_compiler_wl=
7874lt_prog_compiler_pic=
7875lt_prog_compiler_static=
7876
7877echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7878echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7879
7880  if test "$GCC" = yes; then
7881    lt_prog_compiler_wl='-Wl,'
7882    lt_prog_compiler_static='-static'
7883
7884    case $host_os in
7885      aix*)
7886      # All AIX code is PIC.
7887      if test "$host_cpu" = ia64; then
7888        # AIX 5 now supports IA64 processor
7889        lt_prog_compiler_static='-Bstatic'
7890      fi
7891      ;;
7892
7893    amigaos*)
7894      # FIXME: we need at least 68020 code to build shared libraries, but
7895      # adding the `-m68020' flag to GCC prevents building anything better,
7896      # like `-m68040'.
7897      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7898      ;;
7899
7900    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7901      # PIC is the default for these OSes.
7902      ;;
7903
7904    mingw* | pw32* | os2*)
7905      # This hack is so that the source file can tell whether it is being
7906      # built for inclusion in a dll (and should export symbols for example).
7907      lt_prog_compiler_pic='-DDLL_EXPORT'
7908      ;;
7909
7910    darwin* | rhapsody*)
7911      # PIC is the default on this platform
7912      # Common symbols not allowed in MH_DYLIB files
7913      lt_prog_compiler_pic='-fno-common'
7914      ;;
7915
7916    interix3*)
7917      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7918      # Instead, we relocate shared libraries at runtime.
7919      ;;
7920
7921    msdosdjgpp*)
7922      # Just because we use GCC doesn't mean we suddenly get shared libraries
7923      # on systems that don't support them.
7924      lt_prog_compiler_can_build_shared=no
7925      enable_shared=no
7926      ;;
7927
7928    sysv4*MP*)
7929      if test -d /usr/nec; then
7930        lt_prog_compiler_pic=-Kconform_pic
7931      fi
7932      ;;
7933
7934    hpux*)
7935      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7936      # not for PA HP-UX.
7937      case $host_cpu in
7938      hppa*64*|ia64*)
7939        # +Z the default
7940        ;;
7941      *)
7942        lt_prog_compiler_pic='-fPIC'
7943        ;;
7944      esac
7945      ;;
7946
7947    *)
7948      lt_prog_compiler_pic='-fPIC'
7949      ;;
7950    esac
7951  else
7952    # PORTME Check for flag to pass linker flags through the system compiler.
7953    case $host_os in
7954    aix*)
7955      lt_prog_compiler_wl='-Wl,'
7956      if test "$host_cpu" = ia64; then
7957        # AIX 5 now supports IA64 processor
7958        lt_prog_compiler_static='-Bstatic'
7959      else
7960        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7961      fi
7962      ;;
7963      darwin*)
7964        # PIC is the default on this platform
7965        # Common symbols not allowed in MH_DYLIB files
7966       case $cc_basename in
7967         xlc*)
7968         lt_prog_compiler_pic='-qnocommon'
7969         lt_prog_compiler_wl='-Wl,'
7970         ;;
7971       esac
7972       ;;
7973
7974    mingw* | pw32* | os2*)
7975      # This hack is so that the source file can tell whether it is being
7976      # built for inclusion in a dll (and should export symbols for example).
7977      lt_prog_compiler_pic='-DDLL_EXPORT'
7978      ;;
7979
7980    hpux9* | hpux10* | hpux11*)
7981      lt_prog_compiler_wl='-Wl,'
7982      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7983      # not for PA HP-UX.
7984      case $host_cpu in
7985      hppa*64*|ia64*)
7986        # +Z the default
7987        ;;
7988      *)
7989        lt_prog_compiler_pic='+Z'
7990        ;;
7991      esac
7992      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7993      lt_prog_compiler_static='${wl}-a ${wl}archive'
7994      ;;
7995
7996    irix5* | irix6* | nonstopux*)
7997      lt_prog_compiler_wl='-Wl,'
7998      # PIC (with -KPIC) is the default.
7999      lt_prog_compiler_static='-non_shared'
8000      ;;
8001
8002    newsos6)
8003      lt_prog_compiler_pic='-KPIC'
8004      lt_prog_compiler_static='-Bstatic'
8005      ;;
8006
8007    linux*)
8008      case $cc_basename in
8009      icc* | ecc*)
8010        lt_prog_compiler_wl='-Wl,'
8011        lt_prog_compiler_pic='-KPIC'
8012        lt_prog_compiler_static='-static'
8013        ;;
8014      pgcc* | pgf77* | pgf90* | pgf95*)
8015        # Portland Group compilers (*not* the Pentium gcc compiler,
8016        # which looks to be a dead project)
8017        lt_prog_compiler_wl='-Wl,'
8018        lt_prog_compiler_pic='-fpic'
8019        lt_prog_compiler_static='-Bstatic'
8020        ;;
8021      ccc*)
8022        lt_prog_compiler_wl='-Wl,'
8023        # All Alpha code is PIC.
8024        lt_prog_compiler_static='-non_shared'
8025        ;;
8026      esac
8027      ;;
8028
8029    osf3* | osf4* | osf5*)
8030      lt_prog_compiler_wl='-Wl,'
8031      # All OSF/1 code is PIC.
8032      lt_prog_compiler_static='-non_shared'
8033      ;;
8034
8035    solaris*)
8036      lt_prog_compiler_pic='-KPIC'
8037      lt_prog_compiler_static='-Bstatic'
8038      case $cc_basename in
8039      f77* | f90* | f95*)
8040        lt_prog_compiler_wl='-Qoption ld ';;
8041      *)
8042        lt_prog_compiler_wl='-Wl,';;
8043      esac
8044      ;;
8045
8046    sunos4*)
8047      lt_prog_compiler_wl='-Qoption ld '
8048      lt_prog_compiler_pic='-PIC'
8049      lt_prog_compiler_static='-Bstatic'
8050      ;;
8051
8052    sysv4 | sysv4.2uw2* | sysv4.3*)
8053      lt_prog_compiler_wl='-Wl,'
8054      lt_prog_compiler_pic='-KPIC'
8055      lt_prog_compiler_static='-Bstatic'
8056      ;;
8057
8058    sysv4*MP*)
8059      if test -d /usr/nec ;then
8060        lt_prog_compiler_pic='-Kconform_pic'
8061        lt_prog_compiler_static='-Bstatic'
8062      fi
8063      ;;
8064
8065    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8066      lt_prog_compiler_wl='-Wl,'
8067      lt_prog_compiler_pic='-KPIC'
8068      lt_prog_compiler_static='-Bstatic'
8069      ;;
8070
8071    unicos*)
8072      lt_prog_compiler_wl='-Wl,'
8073      lt_prog_compiler_can_build_shared=no
8074      ;;
8075
8076    uts4*)
8077      lt_prog_compiler_pic='-pic'
8078      lt_prog_compiler_static='-Bstatic'
8079      ;;
8080
8081    *)
8082      lt_prog_compiler_can_build_shared=no
8083      ;;
8084    esac
8085  fi
8086
8087echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8088echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8089
8090#
8091# Check to make sure the PIC flag actually works.
8092#
8093if test -n "$lt_prog_compiler_pic"; then
8094
8095echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8096echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8097if test "${lt_prog_compiler_pic_works+set}" = set; then
8098  echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100  lt_prog_compiler_pic_works=no
8101  ac_outfile=conftest.$ac_objext
8102   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8103   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8104   # Insert the option either (1) after the last *FLAGS variable, or
8105   # (2) before a word containing "conftest.", or (3) at the end.
8106   # Note that $ac_compile itself does not contain backslashes and begins
8107   # with a dollar sign (not a hyphen), so the echo should work correctly.
8108   # The option is referenced via a variable to avoid confusing sed.
8109   lt_compile=`echo "$ac_compile" | $SED \
8110   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112   -e 's:$: $lt_compiler_flag:'`
8113   (eval echo "\"\$as_me:8113: $lt_compile\"" >&5)
8114   (eval "$lt_compile" 2>conftest.err)
8115   ac_status=$?
8116   cat conftest.err >&5
8117   echo "$as_me:8117: \$? = $ac_status" >&5
8118   if (exit $ac_status) && test -s "$ac_outfile"; then
8119     # The compiler can only warn and ignore the option if not recognized
8120     # So say no if there are warnings other than the usual output.
8121     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8122     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8124       lt_prog_compiler_pic_works=yes
8125     fi
8126   fi
8127   $rm conftest*
8128
8129fi
8130echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8131echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8132
8133if test x"$lt_prog_compiler_pic_works" = xyes; then
8134    case $lt_prog_compiler_pic in
8135     "" | " "*) ;;
8136     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8137     esac
8138else
8139    lt_prog_compiler_pic=
8140     lt_prog_compiler_can_build_shared=no
8141fi
8142
8143fi
8144case $host_os in
8145  # For platforms which do not support PIC, -DPIC is meaningless:
8146  *djgpp*)
8147    lt_prog_compiler_pic=
8148    ;;
8149  *)
8150    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8151    ;;
8152esac
8153
8154#
8155# Check to make sure the static flag actually works.
8156#
8157wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8158echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8159echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8160if test "${lt_prog_compiler_static_works+set}" = set; then
8161  echo $ECHO_N "(cached) $ECHO_C" >&6
8162else
8163  lt_prog_compiler_static_works=no
8164   save_LDFLAGS="$LDFLAGS"
8165   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8166   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8167   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8168     # The linker can only warn and ignore the option if not recognized
8169     # So say no if there are warnings
8170     if test -s conftest.err; then
8171       # Append any errors to the config.log.
8172       cat conftest.err 1>&5
8173       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8174       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8175       if diff conftest.exp conftest.er2 >/dev/null; then
8176         lt_prog_compiler_static_works=yes
8177       fi
8178     else
8179       lt_prog_compiler_static_works=yes
8180     fi
8181   fi
8182   $rm conftest*
8183   LDFLAGS="$save_LDFLAGS"
8184
8185fi
8186echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8187echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8188
8189if test x"$lt_prog_compiler_static_works" = xyes; then
8190    :
8191else
8192    lt_prog_compiler_static=
8193fi
8194
8195
8196echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8197echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8198if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8199  echo $ECHO_N "(cached) $ECHO_C" >&6
8200else
8201  lt_cv_prog_compiler_c_o=no
8202   $rm -r conftest 2>/dev/null
8203   mkdir conftest
8204   cd conftest
8205   mkdir out
8206   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8207
8208   lt_compiler_flag="-o out/conftest2.$ac_objext"
8209   # Insert the option either (1) after the last *FLAGS variable, or
8210   # (2) before a word containing "conftest.", or (3) at the end.
8211   # Note that $ac_compile itself does not contain backslashes and begins
8212   # with a dollar sign (not a hyphen), so the echo should work correctly.
8213   lt_compile=`echo "$ac_compile" | $SED \
8214   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8215   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8216   -e 's:$: $lt_compiler_flag:'`
8217   (eval echo "\"\$as_me:8217: $lt_compile\"" >&5)
8218   (eval "$lt_compile" 2>out/conftest.err)
8219   ac_status=$?
8220   cat out/conftest.err >&5
8221   echo "$as_me:8221: \$? = $ac_status" >&5
8222   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8223   then
8224     # The compiler can only warn and ignore the option if not recognized
8225     # So say no if there are warnings
8226     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8227     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8228     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8229       lt_cv_prog_compiler_c_o=yes
8230     fi
8231   fi
8232   chmod u+w . 2>&5
8233   $rm conftest*
8234   # SGI C++ compiler will create directory out/ii_files/ for
8235   # template instantiation
8236   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8237   $rm out/* && rmdir out
8238   cd ..
8239   rmdir conftest
8240   $rm conftest*
8241
8242fi
8243echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8244echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8245
8246
8247hard_links="nottested"
8248if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8249  # do not overwrite the value of need_locks provided by the user
8250  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8251echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8252  hard_links=yes
8253  $rm conftest*
8254  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8255  touch conftest.a
8256  ln conftest.a conftest.b 2>&5 || hard_links=no
8257  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8258  echo "$as_me:$LINENO: result: $hard_links" >&5
8259echo "${ECHO_T}$hard_links" >&6
8260  if test "$hard_links" = no; then
8261    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8262echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8263    need_locks=warn
8264  fi
8265else
8266  need_locks=no
8267fi
8268
8269echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8270echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8271
8272  runpath_var=
8273  allow_undefined_flag=
8274  enable_shared_with_static_runtimes=no
8275  archive_cmds=
8276  archive_expsym_cmds=
8277  old_archive_From_new_cmds=
8278  old_archive_from_expsyms_cmds=
8279  export_dynamic_flag_spec=
8280  whole_archive_flag_spec=
8281  thread_safe_flag_spec=
8282  hardcode_libdir_flag_spec=
8283  hardcode_libdir_flag_spec_ld=
8284  hardcode_libdir_separator=
8285  hardcode_direct=no
8286  hardcode_minus_L=no
8287  hardcode_shlibpath_var=unsupported
8288  link_all_deplibs=unknown
8289  hardcode_automatic=no
8290  module_cmds=
8291  module_expsym_cmds=
8292  always_export_symbols=no
8293  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8294  # include_expsyms should be a list of space-separated symbols to be *always*
8295  # included in the symbol list
8296  include_expsyms=
8297  # exclude_expsyms can be an extended regexp of symbols to exclude
8298  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8299  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8300  # as well as any symbol that contains `d'.
8301  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8302  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8303  # platforms (ab)use it in PIC code, but their linkers get confused if
8304  # the symbol is explicitly referenced.  Since portable code cannot
8305  # rely on this symbol name, it's probably fine to never include it in
8306  # preloaded symbol tables.
8307  extract_expsyms_cmds=
8308  # Just being paranoid about ensuring that cc_basename is set.
8309  for cc_temp in $compiler""; do
8310  case $cc_temp in
8311    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8312    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8313    \-*) ;;
8314    *) break;;
8315  esac
8316done
8317cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8318
8319  case $host_os in
8320  cygwin* | mingw* | pw32*)
8321    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8322    # When not using gcc, we currently assume that we are using
8323    # Microsoft Visual C++.
8324    if test "$GCC" != yes; then
8325      with_gnu_ld=no
8326    fi
8327    ;;
8328  interix*)
8329    # we just hope/assume this is gcc and not c89 (= MSVC++)
8330    with_gnu_ld=yes
8331    ;;
8332  openbsd*)
8333    with_gnu_ld=no
8334    ;;
8335  esac
8336
8337  ld_shlibs=yes
8338  if test "$with_gnu_ld" = yes; then
8339    # If archive_cmds runs LD, not CC, wlarc should be empty
8340    wlarc='${wl}'
8341
8342    # Set some defaults for GNU ld with shared library support. These
8343    # are reset later if shared libraries are not supported. Putting them
8344    # here allows them to be overridden if necessary.
8345    runpath_var=LD_RUN_PATH
8346    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8347    export_dynamic_flag_spec='${wl}--export-dynamic'
8348    # ancient GNU ld didn't support --whole-archive et. al.
8349    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8350        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8351      else
8352        whole_archive_flag_spec=
8353    fi
8354    supports_anon_versioning=no
8355    case `$LD -v 2>/dev/null` in
8356      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8357      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8358      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8359      *\ 2.11.*) ;; # other 2.11 versions
8360      *) supports_anon_versioning=yes ;;
8361    esac
8362
8363    # See if GNU ld supports shared libraries.
8364    case $host_os in
8365    aix3* | aix4* | aix5*)
8366      # On AIX/PPC, the GNU linker is very broken
8367      if test "$host_cpu" != ia64; then
8368        ld_shlibs=no
8369        cat <<EOF 1>&2
8370
8371*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8372*** to be unable to reliably create shared libraries on AIX.
8373*** Therefore, libtool is disabling shared libraries support.  If you
8374*** really care for shared libraries, you may want to modify your PATH
8375*** so that a non-GNU linker is found, and then restart.
8376
8377EOF
8378      fi
8379      ;;
8380
8381    amigaos*)
8382      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)'
8383      hardcode_libdir_flag_spec='-L$libdir'
8384      hardcode_minus_L=yes
8385
8386      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8387      # that the semantics of dynamic libraries on AmigaOS, at least up
8388      # to version 4, is to share data among multiple programs linked
8389      # with the same dynamic library.  Since this doesn't match the
8390      # behavior of shared libraries on other platforms, we can't use
8391      # them.
8392      ld_shlibs=no
8393      ;;
8394
8395    beos*)
8396      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8397        allow_undefined_flag=unsupported
8398        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8399        # support --undefined.  This deserves some investigation.  FIXME
8400        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8401      else
8402        ld_shlibs=no
8403      fi
8404      ;;
8405
8406    cygwin* | mingw* | pw32*)
8407      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8408      # as there is no search path for DLLs.
8409      hardcode_libdir_flag_spec='-L$libdir'
8410      allow_undefined_flag=unsupported
8411      always_export_symbols=no
8412      enable_shared_with_static_runtimes=yes
8413      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8414
8415      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8416        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8417        # If the export-symbols file already is a .def file (1st line
8418        # is EXPORTS), use it as is; otherwise, prepend...
8419        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8420          cp $export_symbols $output_objdir/$soname.def;
8421        else
8422          echo EXPORTS > $output_objdir/$soname.def;
8423          cat $export_symbols >> $output_objdir/$soname.def;
8424        fi~
8425        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8426      else
8427        ld_shlibs=no
8428      fi
8429      ;;
8430
8431    interix3*)
8432      hardcode_direct=no
8433      hardcode_shlibpath_var=no
8434      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8435      export_dynamic_flag_spec='${wl}-E'
8436      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8437      # Instead, shared libraries are loaded at an image base (0x10000000 by
8438      # default) and relocated if they conflict, which is a slow very memory
8439      # consuming and fragmenting process.  To avoid this, we pick a random,
8440      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8441      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8442      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8443      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'
8444      ;;
8445
8446    linux*)
8447      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8448        tmp_addflag=
8449        case $cc_basename,$host_cpu in
8450        pgcc*)                          # Portland Group C compiler
8451          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'
8452          tmp_addflag=' $pic_flag'
8453          ;;
8454        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8455          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'
8456          tmp_addflag=' $pic_flag -Mnomain' ;;
8457        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8458          tmp_addflag=' -i_dynamic' ;;
8459        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8460          tmp_addflag=' -i_dynamic -nofor_main' ;;
8461        ifc* | ifort*)                  # Intel Fortran compiler
8462          tmp_addflag=' -nofor_main' ;;
8463        esac
8464        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8465
8466        if test $supports_anon_versioning = yes; then
8467          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8468  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8469  $echo "local: *; };" >> $output_objdir/$libname.ver~
8470          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8471        fi
8472      else
8473        ld_shlibs=no
8474      fi
8475      ;;
8476
8477    netbsd*)
8478      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8479        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8480        wlarc=
8481      else
8482        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8484      fi
8485      ;;
8486
8487    solaris*)
8488      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8489        ld_shlibs=no
8490        cat <<EOF 1>&2
8491
8492*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8493*** create shared libraries on Solaris systems.  Therefore, libtool
8494*** is disabling shared libraries support.  We urge you to upgrade GNU
8495*** binutils to release 2.9.1 or newer.  Another option is to modify
8496*** your PATH or compiler configuration so that the native linker is
8497*** used, and then restart.
8498
8499EOF
8500      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8501        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8503      else
8504        ld_shlibs=no
8505      fi
8506      ;;
8507
8508    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8509      case `$LD -v 2>&1` in
8510        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8511        ld_shlibs=no
8512        cat <<_LT_EOF 1>&2
8513
8514*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8515*** reliably create shared libraries on SCO systems.  Therefore, libtool
8516*** is disabling shared libraries support.  We urge you to upgrade GNU
8517*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8518*** your PATH or compiler configuration so that the native linker is
8519*** used, and then restart.
8520
8521_LT_EOF
8522        ;;
8523        *)
8524          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8525            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8526            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8527            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8528          else
8529            ld_shlibs=no
8530          fi
8531        ;;
8532      esac
8533      ;;
8534
8535    sunos4*)
8536      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8537      wlarc=
8538      hardcode_direct=yes
8539      hardcode_shlibpath_var=no
8540      ;;
8541
8542    *)
8543      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8544        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8545        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8546      else
8547        ld_shlibs=no
8548      fi
8549      ;;
8550    esac
8551
8552    if test "$ld_shlibs" = no; then
8553      runpath_var=
8554      hardcode_libdir_flag_spec=
8555      export_dynamic_flag_spec=
8556      whole_archive_flag_spec=
8557    fi
8558  else
8559    # PORTME fill in a description of your system's linker (not GNU ld)
8560    case $host_os in
8561    aix3*)
8562      allow_undefined_flag=unsupported
8563      always_export_symbols=yes
8564      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'
8565      # Note: this linker hardcodes the directories in LIBPATH if there
8566      # are no directories specified by -L.
8567      hardcode_minus_L=yes
8568      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8569        # Neither direct hardcoding nor static linking is supported with a
8570        # broken collect2.
8571        hardcode_direct=unsupported
8572      fi
8573      ;;
8574
8575    aix4* | aix5*)
8576      if test "$host_cpu" = ia64; then
8577        # On IA64, the linker does run time linking by default, so we don't
8578        # have to do anything special.
8579        aix_use_runtimelinking=no
8580        exp_sym_flag='-Bexport'
8581        no_entry_flag=""
8582      else
8583        # If we're using GNU nm, then we don't want the "-C" option.
8584        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8585        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8586          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'
8587        else
8588          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'
8589        fi
8590        aix_use_runtimelinking=no
8591
8592        # Test if we are trying to use run time linking or normal
8593        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8594        # need to do runtime linking.
8595        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8596          for ld_flag in $LDFLAGS; do
8597          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8598            aix_use_runtimelinking=yes
8599            break
8600          fi
8601          done
8602          ;;
8603        esac
8604
8605        exp_sym_flag='-bexport'
8606        no_entry_flag='-bnoentry'
8607      fi
8608
8609      # When large executables or shared objects are built, AIX ld can
8610      # have problems creating the table of contents.  If linking a library
8611      # or program results in "error TOC overflow" add -mminimal-toc to
8612      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8613      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8614
8615      archive_cmds=''
8616      hardcode_direct=yes
8617      hardcode_libdir_separator=':'
8618      link_all_deplibs=yes
8619
8620      if test "$GCC" = yes; then
8621        case $host_os in aix4.[012]|aix4.[012].*)
8622        # We only want to do this on AIX 4.2 and lower, the check
8623        # below for broken collect2 doesn't work under 4.3+
8624          collect2name=`${CC} -print-prog-name=collect2`
8625          if test -f "$collect2name" && \
8626           strings "$collect2name" | grep resolve_lib_name >/dev/null
8627          then
8628          # We have reworked collect2
8629          hardcode_direct=yes
8630          else
8631          # We have old collect2
8632          hardcode_direct=unsupported
8633          # It fails to find uninstalled libraries when the uninstalled
8634          # path is not listed in the libpath.  Setting hardcode_minus_L
8635          # to unsupported forces relinking
8636          hardcode_minus_L=yes
8637          hardcode_libdir_flag_spec='-L$libdir'
8638          hardcode_libdir_separator=
8639          fi
8640          ;;
8641        esac
8642        shared_flag='-shared'
8643        if test "$aix_use_runtimelinking" = yes; then
8644          shared_flag="$shared_flag "'${wl}-G'
8645        fi
8646      else
8647        # not using gcc
8648        if test "$host_cpu" = ia64; then
8649        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8650        # chokes on -Wl,-G. The following line is correct:
8651          shared_flag='-G'
8652        else
8653          if test "$aix_use_runtimelinking" = yes; then
8654            shared_flag='${wl}-G'
8655          else
8656            shared_flag='${wl}-bM:SRE'
8657          fi
8658        fi
8659      fi
8660
8661      # It seems that -bexpall does not export symbols beginning with
8662      # underscore (_), so it is better to generate a list of symbols to export.
8663      always_export_symbols=yes
8664      if test "$aix_use_runtimelinking" = yes; then
8665        # Warning - without using the other runtime loading flags (-brtl),
8666        # -berok will link without error, but may produce a broken library.
8667        allow_undefined_flag='-berok'
8668       # Determine the default libpath from the value encoded in an empty executable.
8669       cat >conftest.$ac_ext <<_ACEOF
8670/* confdefs.h.  */
8671_ACEOF
8672cat confdefs.h >>conftest.$ac_ext
8673cat >>conftest.$ac_ext <<_ACEOF
8674/* end confdefs.h.  */
8675
8676int
8677main ()
8678{
8679
8680  ;
8681  return 0;
8682}
8683_ACEOF
8684rm -f conftest.$ac_objext conftest$ac_exeext
8685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8686  (eval $ac_link) 2>conftest.er1
8687  ac_status=$?
8688  grep -v '^ *+' conftest.er1 >conftest.err
8689  rm -f conftest.er1
8690  cat conftest.err >&5
8691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692  (exit $ac_status); } &&
8693         { ac_try='test -z "$ac_c_werror_flag"
8694                         || test ! -s conftest.err'
8695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696  (eval $ac_try) 2>&5
8697  ac_status=$?
8698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699  (exit $ac_status); }; } &&
8700         { ac_try='test -s conftest$ac_exeext'
8701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8702  (eval $ac_try) 2>&5
8703  ac_status=$?
8704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705  (exit $ac_status); }; }; then
8706
8707aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8708}'`
8709# Check for a 64-bit object if we didn't find anything.
8710if 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; }
8711}'`; fi
8712else
8713  echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716fi
8717rm -f conftest.err conftest.$ac_objext \
8718      conftest$ac_exeext conftest.$ac_ext
8719if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8720
8721       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8722        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"
8723       else
8724        if test "$host_cpu" = ia64; then
8725          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8726          allow_undefined_flag="-z nodefs"
8727          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"
8728        else
8729         # Determine the default libpath from the value encoded in an empty executable.
8730         cat >conftest.$ac_ext <<_ACEOF
8731/* confdefs.h.  */
8732_ACEOF
8733cat confdefs.h >>conftest.$ac_ext
8734cat >>conftest.$ac_ext <<_ACEOF
8735/* end confdefs.h.  */
8736
8737int
8738main ()
8739{
8740
8741  ;
8742  return 0;
8743}
8744_ACEOF
8745rm -f conftest.$ac_objext conftest$ac_exeext
8746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747  (eval $ac_link) 2>conftest.er1
8748  ac_status=$?
8749  grep -v '^ *+' conftest.er1 >conftest.err
8750  rm -f conftest.er1
8751  cat conftest.err >&5
8752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753  (exit $ac_status); } &&
8754         { ac_try='test -z "$ac_c_werror_flag"
8755                         || test ! -s conftest.err'
8756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757  (eval $ac_try) 2>&5
8758  ac_status=$?
8759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760  (exit $ac_status); }; } &&
8761         { ac_try='test -s conftest$ac_exeext'
8762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763  (eval $ac_try) 2>&5
8764  ac_status=$?
8765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766  (exit $ac_status); }; }; then
8767
8768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8769}'`
8770# Check for a 64-bit object if we didn't find anything.
8771if 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; }
8772}'`; fi
8773else
8774  echo "$as_me: failed program was:" >&5
8775sed 's/^/| /' conftest.$ac_ext >&5
8776
8777fi
8778rm -f conftest.err conftest.$ac_objext \
8779      conftest$ac_exeext conftest.$ac_ext
8780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8781
8782         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8783          # Warning - without using the other run time loading flags,
8784          # -berok will link without error, but may produce a broken library.
8785          no_undefined_flag=' ${wl}-bernotok'
8786          allow_undefined_flag=' ${wl}-berok'
8787          # Exported symbols can be pulled into shared objects from archives
8788          whole_archive_flag_spec='$convenience'
8789          archive_cmds_need_lc=yes
8790          # This is similar to how AIX traditionally builds its shared libraries.
8791          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'
8792        fi
8793      fi
8794      ;;
8795
8796    amigaos*)
8797      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)'
8798      hardcode_libdir_flag_spec='-L$libdir'
8799      hardcode_minus_L=yes
8800      # see comment about different semantics on the GNU ld section
8801      ld_shlibs=no
8802      ;;
8803
8804    bsdi[45]*)
8805      export_dynamic_flag_spec=-rdynamic
8806      ;;
8807
8808    cygwin* | mingw* | pw32*)
8809      # When not using gcc, we currently assume that we are using
8810      # Microsoft Visual C++.
8811      # hardcode_libdir_flag_spec is actually meaningless, as there is
8812      # no search path for DLLs.
8813      hardcode_libdir_flag_spec=' '
8814      allow_undefined_flag=unsupported
8815      # Tell ltmain to make .lib files, not .a files.
8816      libext=lib
8817      # Tell ltmain to make .dll files, not .so files.
8818      shrext_cmds=".dll"
8819      # FIXME: Setting linknames here is a bad hack.
8820      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8821      # The linker will automatically build a .lib file if we build a DLL.
8822      old_archive_From_new_cmds='true'
8823      # FIXME: Should let the user specify the lib program.
8824      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8825      fix_srcfile_path='`cygpath -w "$srcfile"`'
8826      enable_shared_with_static_runtimes=yes
8827      ;;
8828
8829    darwin* | rhapsody*)
8830      case $host_os in
8831        rhapsody* | darwin1.[012])
8832         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8833         ;;
8834       *) # Darwin 1.3 on
8835         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8836           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8837         else
8838           case ${MACOSX_DEPLOYMENT_TARGET} in
8839             10.[012])
8840               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8841               ;;
8842             10.*)
8843               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8844               ;;
8845           esac
8846         fi
8847         ;;
8848      esac
8849      archive_cmds_need_lc=no
8850      hardcode_direct=no
8851      hardcode_automatic=yes
8852      hardcode_shlibpath_var=unsupported
8853      whole_archive_flag_spec=''
8854      link_all_deplibs=yes
8855    if test "$GCC" = yes ; then
8856        output_verbose_link_cmd='echo'
8857        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8858      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8859      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8860      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}'
8861      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}'
8862    else
8863      case $cc_basename in
8864        xlc*)
8865         output_verbose_link_cmd='echo'
8866         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8867         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8868          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8869         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}'
8870          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}'
8871          ;;
8872       *)
8873         ld_shlibs=no
8874          ;;
8875      esac
8876    fi
8877      ;;
8878
8879    dgux*)
8880      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881      hardcode_libdir_flag_spec='-L$libdir'
8882      hardcode_shlibpath_var=no
8883      ;;
8884
8885    freebsd1*)
8886      ld_shlibs=no
8887      ;;
8888
8889    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8890    # support.  Future versions do this automatically, but an explicit c++rt0.o
8891    # does not break anything, and helps significantly (at the cost of a little
8892    # extra space).
8893    freebsd2.2*)
8894      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8895      hardcode_libdir_flag_spec='-R$libdir'
8896      hardcode_direct=yes
8897      hardcode_shlibpath_var=no
8898      ;;
8899
8900    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8901    freebsd2*)
8902      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8903      hardcode_direct=yes
8904      hardcode_minus_L=yes
8905      hardcode_shlibpath_var=no
8906      ;;
8907
8908    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8909    freebsd* | kfreebsd*-gnu | dragonfly*)
8910      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8911      hardcode_libdir_flag_spec='-R$libdir'
8912      hardcode_direct=yes
8913      hardcode_shlibpath_var=no
8914      ;;
8915
8916    hpux9*)
8917      if test "$GCC" = yes; then
8918        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'
8919      else
8920        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'
8921      fi
8922      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8923      hardcode_libdir_separator=:
8924      hardcode_direct=yes
8925
8926      # hardcode_minus_L: Not really in the search PATH,
8927      # but as the default location of the library.
8928      hardcode_minus_L=yes
8929      export_dynamic_flag_spec='${wl}-E'
8930      ;;
8931
8932    hpux10*)
8933      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8934        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8935      else
8936        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8937      fi
8938      if test "$with_gnu_ld" = no; then
8939        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8940        hardcode_libdir_separator=:
8941
8942        hardcode_direct=yes
8943        export_dynamic_flag_spec='${wl}-E'
8944
8945        # hardcode_minus_L: Not really in the search PATH,
8946        # but as the default location of the library.
8947        hardcode_minus_L=yes
8948      fi
8949      ;;
8950
8951    hpux11*)
8952      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8953        case $host_cpu in
8954        hppa*64*)
8955          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956          ;;
8957        ia64*)
8958          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8959          ;;
8960        *)
8961          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8962          ;;
8963        esac
8964      else
8965        case $host_cpu in
8966        hppa*64*)
8967          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8968          ;;
8969        ia64*)
8970          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8971          ;;
8972        *)
8973          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8974          ;;
8975        esac
8976      fi
8977      if test "$with_gnu_ld" = no; then
8978        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8979        hardcode_libdir_separator=:
8980
8981        case $host_cpu in
8982        hppa*64*|ia64*)
8983          hardcode_libdir_flag_spec_ld='+b $libdir'
8984          hardcode_direct=no
8985          hardcode_shlibpath_var=no
8986          ;;
8987        *)
8988          hardcode_direct=yes
8989          export_dynamic_flag_spec='${wl}-E'
8990
8991          # hardcode_minus_L: Not really in the search PATH,
8992          # but as the default location of the library.
8993          hardcode_minus_L=yes
8994          ;;
8995        esac
8996      fi
8997      ;;
8998
8999    irix5* | irix6* | nonstopux*)
9000      if test "$GCC" = yes; then
9001        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'
9002      else
9003        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'
9004        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9005      fi
9006      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9007      hardcode_libdir_separator=:
9008      link_all_deplibs=yes
9009      ;;
9010
9011    netbsd*)
9012      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9013        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9014      else
9015        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9016      fi
9017      hardcode_libdir_flag_spec='-R$libdir'
9018      hardcode_direct=yes
9019      hardcode_shlibpath_var=no
9020      ;;
9021
9022    newsos6)
9023      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024      hardcode_direct=yes
9025      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9026      hardcode_libdir_separator=:
9027      hardcode_shlibpath_var=no
9028      ;;
9029
9030    openbsd*)
9031      hardcode_direct=yes
9032      hardcode_shlibpath_var=no
9033      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9034        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9035        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9036        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9037        export_dynamic_flag_spec='${wl}-E'
9038      else
9039       case $host_os in
9040         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9041           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9042           hardcode_libdir_flag_spec='-R$libdir'
9043           ;;
9044         *)
9045           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9046           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9047           ;;
9048       esac
9049      fi
9050      ;;
9051
9052    os2*)
9053      hardcode_libdir_flag_spec='-L$libdir'
9054      hardcode_minus_L=yes
9055      allow_undefined_flag=unsupported
9056      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'
9057      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9058      ;;
9059
9060    osf3*)
9061      if test "$GCC" = yes; then
9062        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9063        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'
9064      else
9065        allow_undefined_flag=' -expect_unresolved \*'
9066        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'
9067      fi
9068      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9069      hardcode_libdir_separator=:
9070      ;;
9071
9072    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9073      if test "$GCC" = yes; then
9074        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9075        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'
9076        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9077      else
9078        allow_undefined_flag=' -expect_unresolved \*'
9079        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'
9080        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9081        $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'
9082
9083        # Both c and cxx compiler support -rpath directly
9084        hardcode_libdir_flag_spec='-rpath $libdir'
9085      fi
9086      hardcode_libdir_separator=:
9087      ;;
9088
9089    solaris*)
9090      no_undefined_flag=' -z text'
9091      if test "$GCC" = yes; then
9092        wlarc='${wl}'
9093        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9094        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9095          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9096      else
9097        wlarc=''
9098        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9100        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9101      fi
9102      hardcode_libdir_flag_spec='-R$libdir'
9103      hardcode_shlibpath_var=no
9104      case $host_os in
9105      solaris2.[0-5] | solaris2.[0-5].*) ;;
9106      *)
9107        # The compiler driver will combine linker options so we
9108        # cannot just pass the convience library names through
9109        # without $wl, iff we do not link with $LD.
9110        # Luckily, gcc supports the same syntax we need for Sun Studio.
9111        # Supported since Solaris 2.6 (maybe 2.5.1?)
9112        case $wlarc in
9113        '')
9114          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9115        *)
9116          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' ;;
9117        esac ;;
9118      esac
9119      link_all_deplibs=yes
9120      ;;
9121
9122    sunos4*)
9123      if test "x$host_vendor" = xsequent; then
9124        # Use $CC to link under sequent, because it throws in some extra .o
9125        # files that make .init and .fini sections work.
9126        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9127      else
9128        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9129      fi
9130      hardcode_libdir_flag_spec='-L$libdir'
9131      hardcode_direct=yes
9132      hardcode_minus_L=yes
9133      hardcode_shlibpath_var=no
9134      ;;
9135
9136    sysv4)
9137      case $host_vendor in
9138        sni)
9139          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9140          hardcode_direct=yes # is this really true???
9141        ;;
9142        siemens)
9143          ## LD is ld it makes a PLAMLIB
9144          ## CC just makes a GrossModule.
9145          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9146          reload_cmds='$CC -r -o $output$reload_objs'
9147          hardcode_direct=no
9148        ;;
9149        motorola)
9150          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9151          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9152        ;;
9153      esac
9154      runpath_var='LD_RUN_PATH'
9155      hardcode_shlibpath_var=no
9156      ;;
9157
9158    sysv4.3*)
9159      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160      hardcode_shlibpath_var=no
9161      export_dynamic_flag_spec='-Bexport'
9162      ;;
9163
9164    sysv4*MP*)
9165      if test -d /usr/nec; then
9166        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9167        hardcode_shlibpath_var=no
9168        runpath_var=LD_RUN_PATH
9169        hardcode_runpath_var=yes
9170        ld_shlibs=yes
9171      fi
9172      ;;
9173
9174    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9175      no_undefined_flag='${wl}-z,text'
9176      archive_cmds_need_lc=no
9177      hardcode_shlibpath_var=no
9178      runpath_var='LD_RUN_PATH'
9179
9180      if test "$GCC" = yes; then
9181        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9182        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9183      else
9184        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9185        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9186      fi
9187      ;;
9188
9189    sysv5* | sco3.2v5* | sco5v6*)
9190      # Note: We can NOT use -z defs as we might desire, because we do not
9191      # link with -lc, and that would cause any symbols used from libc to
9192      # always be unresolved, which means just about no library would
9193      # ever link correctly.  If we're not using GNU ld we use -z text
9194      # though, which does catch some bad symbols but isn't as heavy-handed
9195      # as -z defs.
9196      no_undefined_flag='${wl}-z,text'
9197      allow_undefined_flag='${wl}-z,nodefs'
9198      archive_cmds_need_lc=no
9199      hardcode_shlibpath_var=no
9200      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9201      hardcode_libdir_separator=':'
9202      link_all_deplibs=yes
9203      export_dynamic_flag_spec='${wl}-Bexport'
9204      runpath_var='LD_RUN_PATH'
9205
9206      if test "$GCC" = yes; then
9207        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9208        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209      else
9210        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9211        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9212      fi
9213      ;;
9214
9215    uts4*)
9216      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217      hardcode_libdir_flag_spec='-L$libdir'
9218      hardcode_shlibpath_var=no
9219      ;;
9220
9221    *)
9222      ld_shlibs=no
9223      ;;
9224    esac
9225  fi
9226
9227echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9228echo "${ECHO_T}$ld_shlibs" >&6
9229test "$ld_shlibs" = no && can_build_shared=no
9230
9231#
9232# Do we need to explicitly link libc?
9233#
9234case "x$archive_cmds_need_lc" in
9235x|xyes)
9236  # Assume -lc should be added
9237  archive_cmds_need_lc=yes
9238
9239  if test "$enable_shared" = yes && test "$GCC" = yes; then
9240    case $archive_cmds in
9241    *'~'*)
9242      # FIXME: we may have to deal with multi-command sequences.
9243      ;;
9244    '$CC '*)
9245      # Test whether the compiler implicitly links with -lc since on some
9246      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9247      # to ld, don't add -lc before -lgcc.
9248      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9249echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9250      $rm conftest*
9251      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9252
9253      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9254  (eval $ac_compile) 2>&5
9255  ac_status=$?
9256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257  (exit $ac_status); } 2>conftest.err; then
9258        soname=conftest
9259        lib=conftest
9260        libobjs=conftest.$ac_objext
9261        deplibs=
9262        wl=$lt_prog_compiler_wl
9263        pic_flag=$lt_prog_compiler_pic
9264        compiler_flags=-v
9265        linker_flags=-v
9266        verstring=
9267        output_objdir=.
9268        libname=conftest
9269        lt_save_allow_undefined_flag=$allow_undefined_flag
9270        allow_undefined_flag=
9271        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9272  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9273  ac_status=$?
9274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275  (exit $ac_status); }
9276        then
9277          archive_cmds_need_lc=no
9278        else
9279          archive_cmds_need_lc=yes
9280        fi
9281        allow_undefined_flag=$lt_save_allow_undefined_flag
9282      else
9283        cat conftest.err 1>&5
9284      fi
9285      $rm conftest*
9286      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9287echo "${ECHO_T}$archive_cmds_need_lc" >&6
9288      ;;
9289    esac
9290  fi
9291  ;;
9292esac
9293
9294echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9295echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9296library_names_spec=
9297libname_spec='lib$name'
9298soname_spec=
9299shrext_cmds=".so"
9300postinstall_cmds=
9301postuninstall_cmds=
9302finish_cmds=
9303finish_eval=
9304shlibpath_var=
9305shlibpath_overrides_runpath=unknown
9306version_type=none
9307dynamic_linker="$host_os ld.so"
9308sys_lib_dlsearch_path_spec="/lib /usr/lib"
9309if test "$GCC" = yes; then
9310  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9311  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9312    # if the path contains ";" then we assume it to be the separator
9313    # otherwise default to the standard path separator (i.e. ":") - it is
9314    # assumed that no part of a normal pathname contains ";" but that should
9315    # okay in the real world where ";" in dirpaths is itself problematic.
9316    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9317  else
9318    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9319  fi
9320else
9321  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9322fi
9323need_lib_prefix=unknown
9324hardcode_into_libs=no
9325
9326# when you set need_version to no, make sure it does not cause -set_version
9327# flags to be left without arguments
9328need_version=unknown
9329
9330case $host_os in
9331aix3*)
9332  version_type=linux
9333  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9334  shlibpath_var=LIBPATH
9335
9336  # AIX 3 has no versioning support, so we append a major version to the name.
9337  soname_spec='${libname}${release}${shared_ext}$major'
9338  ;;
9339
9340aix4* | aix5*)
9341  version_type=linux
9342  need_lib_prefix=no
9343  need_version=no
9344  hardcode_into_libs=yes
9345  if test "$host_cpu" = ia64; then
9346    # AIX 5 supports IA64
9347    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9348    shlibpath_var=LD_LIBRARY_PATH
9349  else
9350    # With GCC up to 2.95.x, collect2 would create an import file
9351    # for dependence libraries.  The import file would start with
9352    # the line `#! .'.  This would cause the generated library to
9353    # depend on `.', always an invalid library.  This was fixed in
9354    # development snapshots of GCC prior to 3.0.
9355    case $host_os in
9356      aix4 | aix4.[01] | aix4.[01].*)
9357      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9358           echo ' yes '
9359           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9360        :
9361      else
9362        can_build_shared=no
9363      fi
9364      ;;
9365    esac
9366    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9367    # soname into executable. Probably we can add versioning support to
9368    # collect2, so additional links can be useful in future.
9369    if test "$aix_use_runtimelinking" = yes; then
9370      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9371      # instead of lib<name>.a to let people know that these are not
9372      # typical AIX shared libraries.
9373      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374    else
9375      # We preserve .a as extension for shared libraries through AIX4.2
9376      # and later when we are not doing run time linking.
9377      library_names_spec='${libname}${release}.a $libname.a'
9378      soname_spec='${libname}${release}${shared_ext}$major'
9379    fi
9380    shlibpath_var=LIBPATH
9381  fi
9382  ;;
9383
9384amigaos*)
9385  library_names_spec='$libname.ixlibrary $libname.a'
9386  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9387  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'
9388  ;;
9389
9390beos*)
9391  library_names_spec='${libname}${shared_ext}'
9392  dynamic_linker="$host_os ld.so"
9393  shlibpath_var=LIBRARY_PATH
9394  ;;
9395
9396bsdi[45]*)
9397  version_type=linux
9398  need_version=no
9399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400  soname_spec='${libname}${release}${shared_ext}$major'
9401  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9402  shlibpath_var=LD_LIBRARY_PATH
9403  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9404  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9405  # the default ld.so.conf also contains /usr/contrib/lib and
9406  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9407  # libtool to hard-code these into programs
9408  ;;
9409
9410cygwin* | mingw* | pw32*)
9411  version_type=windows
9412  shrext_cmds=".dll"
9413  need_version=no
9414  need_lib_prefix=no
9415
9416  case $GCC,$host_os in
9417  yes,cygwin* | yes,mingw* | yes,pw32*)
9418    library_names_spec='$libname.dll.a'
9419    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9420    postinstall_cmds='base_file=`basename \${file}`~
9421      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9422      dldir=$destdir/`dirname \$dlpath`~
9423      test -d \$dldir || mkdir -p \$dldir~
9424      $install_prog $dir/$dlname \$dldir/$dlname~
9425      chmod a+x \$dldir/$dlname'
9426    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9427      dlpath=$dir/\$dldll~
9428       $rm \$dlpath'
9429    shlibpath_overrides_runpath=yes
9430
9431    case $host_os in
9432    cygwin*)
9433      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9434      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9435      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9436      ;;
9437    mingw*)
9438      # MinGW DLLs use traditional 'lib' prefix
9439      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9440      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9441      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9442        # It is most probably a Windows format PATH printed by
9443        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9444        # path with ; separators, and with drive letters. We can handle the
9445        # drive letters (cygwin fileutils understands them), so leave them,
9446        # especially as we might pass files found there to a mingw objdump,
9447        # which wouldn't understand a cygwinified path. Ahh.
9448        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9449      else
9450        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9451      fi
9452      ;;
9453    pw32*)
9454      # pw32 DLLs use 'pw' prefix rather than 'lib'
9455      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9456      ;;
9457    esac
9458    ;;
9459
9460  *)
9461    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9462    ;;
9463  esac
9464  dynamic_linker='Win32 ld.exe'
9465  # FIXME: first we should search . and the directory the executable is in
9466  shlibpath_var=PATH
9467  ;;
9468
9469darwin* | rhapsody*)
9470  dynamic_linker="$host_os dyld"
9471  version_type=darwin
9472  need_lib_prefix=no
9473  need_version=no
9474  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9475  soname_spec='${libname}${release}${major}$shared_ext'
9476  shlibpath_overrides_runpath=yes
9477  shlibpath_var=DYLD_LIBRARY_PATH
9478  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9479  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9480  if test "$GCC" = yes; then
9481    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"`
9482  else
9483    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9484  fi
9485  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9486  ;;
9487
9488dgux*)
9489  version_type=linux
9490  need_lib_prefix=no
9491  need_version=no
9492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9493  soname_spec='${libname}${release}${shared_ext}$major'
9494  shlibpath_var=LD_LIBRARY_PATH
9495  ;;
9496
9497freebsd1*)
9498  dynamic_linker=no
9499  ;;
9500
9501kfreebsd*-gnu)
9502  version_type=linux
9503  need_lib_prefix=no
9504  need_version=no
9505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9506  soname_spec='${libname}${release}${shared_ext}$major'
9507  shlibpath_var=LD_LIBRARY_PATH
9508  shlibpath_overrides_runpath=no
9509  hardcode_into_libs=yes
9510  dynamic_linker='GNU ld.so'
9511  ;;
9512
9513freebsd* | dragonfly*)
9514  # DragonFly does not have aout.  When/if they implement a new
9515  # versioning mechanism, adjust this.
9516  if test -x /usr/bin/objformat; then
9517    objformat=`/usr/bin/objformat`
9518  else
9519    case $host_os in
9520    freebsd[123]*) objformat=aout ;;
9521    *) objformat=elf ;;
9522    esac
9523  fi
9524  version_type=freebsd-$objformat
9525  case $version_type in
9526    freebsd-elf*)
9527      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9528      need_version=no
9529      need_lib_prefix=no
9530      ;;
9531    freebsd-*)
9532      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9533      need_version=yes
9534      ;;
9535  esac
9536  shlibpath_var=LD_LIBRARY_PATH
9537  case $host_os in
9538  freebsd2*)
9539    shlibpath_overrides_runpath=yes
9540    ;;
9541  freebsd3.[01]* | freebsdelf3.[01]*)
9542    shlibpath_overrides_runpath=yes
9543    hardcode_into_libs=yes
9544    ;;
9545  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9546  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9547    shlibpath_overrides_runpath=no
9548    hardcode_into_libs=yes
9549    ;;
9550  freebsd*) # from 4.6 on
9551    shlibpath_overrides_runpath=yes
9552    hardcode_into_libs=yes
9553    ;;
9554  esac
9555  ;;
9556
9557gnu*)
9558  version_type=linux
9559  need_lib_prefix=no
9560  need_version=no
9561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9562  soname_spec='${libname}${release}${shared_ext}$major'
9563  shlibpath_var=LD_LIBRARY_PATH
9564  hardcode_into_libs=yes
9565  ;;
9566
9567hpux9* | hpux10* | hpux11*)
9568  # Give a soname corresponding to the major version so that dld.sl refuses to
9569  # link against other versions.
9570  version_type=sunos
9571  need_lib_prefix=no
9572  need_version=no
9573  case $host_cpu in
9574  ia64*)
9575    shrext_cmds='.so'
9576    hardcode_into_libs=yes
9577    dynamic_linker="$host_os dld.so"
9578    shlibpath_var=LD_LIBRARY_PATH
9579    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9580    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581    soname_spec='${libname}${release}${shared_ext}$major'
9582    if test "X$HPUX_IA64_MODE" = X32; then
9583      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9584    else
9585      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9586    fi
9587    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9588    ;;
9589   hppa*64*)
9590     shrext_cmds='.sl'
9591     hardcode_into_libs=yes
9592     dynamic_linker="$host_os dld.sl"
9593     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9594     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596     soname_spec='${libname}${release}${shared_ext}$major'
9597     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9598     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9599     ;;
9600   *)
9601    shrext_cmds='.sl'
9602    dynamic_linker="$host_os dld.sl"
9603    shlibpath_var=SHLIB_PATH
9604    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9605    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9606    soname_spec='${libname}${release}${shared_ext}$major'
9607    ;;
9608  esac
9609  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9610  postinstall_cmds='chmod 555 $lib'
9611  ;;
9612
9613interix3*)
9614  version_type=linux
9615  need_lib_prefix=no
9616  need_version=no
9617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9618  soname_spec='${libname}${release}${shared_ext}$major'
9619  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9620  shlibpath_var=LD_LIBRARY_PATH
9621  shlibpath_overrides_runpath=no
9622  hardcode_into_libs=yes
9623  ;;
9624
9625irix5* | irix6* | nonstopux*)
9626  case $host_os in
9627    nonstopux*) version_type=nonstopux ;;
9628    *)
9629        if test "$lt_cv_prog_gnu_ld" = yes; then
9630                version_type=linux
9631        else
9632                version_type=irix
9633        fi ;;
9634  esac
9635  need_lib_prefix=no
9636  need_version=no
9637  soname_spec='${libname}${release}${shared_ext}$major'
9638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9639  case $host_os in
9640  irix5* | nonstopux*)
9641    libsuff= shlibsuff=
9642    ;;
9643  *)
9644    case $LD in # libtool.m4 will add one of these switches to LD
9645    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9646      libsuff= shlibsuff= libmagic=32-bit;;
9647    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9648      libsuff=32 shlibsuff=N32 libmagic=N32;;
9649    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9650      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9651    *) libsuff= shlibsuff= libmagic=never-match;;
9652    esac
9653    ;;
9654  esac
9655  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9656  shlibpath_overrides_runpath=no
9657  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9658  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9659  hardcode_into_libs=yes
9660  ;;
9661
9662# No shared lib support for Linux oldld, aout, or coff.
9663linux*oldld* | linux*aout* | linux*coff*)
9664  dynamic_linker=no
9665  ;;
9666
9667# This must be Linux ELF.
9668linux*)
9669  version_type=linux
9670  need_lib_prefix=no
9671  need_version=no
9672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9673  soname_spec='${libname}${release}${shared_ext}$major'
9674  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9675  shlibpath_var=LD_LIBRARY_PATH
9676  shlibpath_overrides_runpath=no
9677  # This implies no fast_install, which is unacceptable.
9678  # Some rework will be needed to allow for fast_install
9679  # before this can be enabled.
9680  hardcode_into_libs=yes
9681
9682  # Append ld.so.conf contents to the search path
9683  if test -f /etc/ld.so.conf; then
9684    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' ' '`
9685    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9686  fi
9687
9688  # We used to test for /lib/ld.so.1 and disable shared libraries on
9689  # powerpc, because MkLinux only supported shared libraries with the
9690  # GNU dynamic linker.  Since this was broken with cross compilers,
9691  # most powerpc-linux boxes support dynamic linking these days and
9692  # people can always --disable-shared, the test was removed, and we
9693  # assume the GNU/Linux dynamic linker is in use.
9694  dynamic_linker='GNU/Linux ld.so'
9695  ;;
9696
9697knetbsd*-gnu)
9698  version_type=linux
9699  need_lib_prefix=no
9700  need_version=no
9701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9702  soname_spec='${libname}${release}${shared_ext}$major'
9703  shlibpath_var=LD_LIBRARY_PATH
9704  shlibpath_overrides_runpath=no
9705  hardcode_into_libs=yes
9706  dynamic_linker='GNU ld.so'
9707  ;;
9708
9709netbsd*)
9710  version_type=sunos
9711  need_lib_prefix=no
9712  need_version=no
9713  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9714    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9715    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9716    dynamic_linker='NetBSD (a.out) ld.so'
9717  else
9718    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9719    soname_spec='${libname}${release}${shared_ext}$major'
9720    dynamic_linker='NetBSD ld.elf_so'
9721  fi
9722  shlibpath_var=LD_LIBRARY_PATH
9723  shlibpath_overrides_runpath=yes
9724  hardcode_into_libs=yes
9725  ;;
9726
9727newsos6)
9728  version_type=linux
9729  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  shlibpath_overrides_runpath=yes
9732  ;;
9733
9734nto-qnx*)
9735  version_type=linux
9736  need_lib_prefix=no
9737  need_version=no
9738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9739  soname_spec='${libname}${release}${shared_ext}$major'
9740  shlibpath_var=LD_LIBRARY_PATH
9741  shlibpath_overrides_runpath=yes
9742  ;;
9743
9744openbsd*)
9745  version_type=sunos
9746  sys_lib_dlsearch_path_spec="/usr/lib"
9747  need_lib_prefix=no
9748  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9749  case $host_os in
9750    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9751    *)                         need_version=no  ;;
9752  esac
9753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9754  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9755  shlibpath_var=LD_LIBRARY_PATH
9756  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9757    case $host_os in
9758      openbsd2.[89] | openbsd2.[89].*)
9759        shlibpath_overrides_runpath=no
9760        ;;
9761      *)
9762        shlibpath_overrides_runpath=yes
9763        ;;
9764      esac
9765  else
9766    shlibpath_overrides_runpath=yes
9767  fi
9768  ;;
9769
9770os2*)
9771  libname_spec='$name'
9772  shrext_cmds=".dll"
9773  need_lib_prefix=no
9774  library_names_spec='$libname${shared_ext} $libname.a'
9775  dynamic_linker='OS/2 ld.exe'
9776  shlibpath_var=LIBPATH
9777  ;;
9778
9779osf3* | osf4* | osf5*)
9780  version_type=osf
9781  need_lib_prefix=no
9782  need_version=no
9783  soname_spec='${libname}${release}${shared_ext}$major'
9784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785  shlibpath_var=LD_LIBRARY_PATH
9786  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9787  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9788  ;;
9789
9790solaris*)
9791  version_type=linux
9792  need_lib_prefix=no
9793  need_version=no
9794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795  soname_spec='${libname}${release}${shared_ext}$major'
9796  shlibpath_var=LD_LIBRARY_PATH
9797  shlibpath_overrides_runpath=yes
9798  hardcode_into_libs=yes
9799  # ldd complains unless libraries are executable
9800  postinstall_cmds='chmod +x $lib'
9801  ;;
9802
9803sunos4*)
9804  version_type=sunos
9805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9806  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9807  shlibpath_var=LD_LIBRARY_PATH
9808  shlibpath_overrides_runpath=yes
9809  if test "$with_gnu_ld" = yes; then
9810    need_lib_prefix=no
9811  fi
9812  need_version=yes
9813  ;;
9814
9815sysv4 | sysv4.3*)
9816  version_type=linux
9817  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818  soname_spec='${libname}${release}${shared_ext}$major'
9819  shlibpath_var=LD_LIBRARY_PATH
9820  case $host_vendor in
9821    sni)
9822      shlibpath_overrides_runpath=no
9823      need_lib_prefix=no
9824      export_dynamic_flag_spec='${wl}-Blargedynsym'
9825      runpath_var=LD_RUN_PATH
9826      ;;
9827    siemens)
9828      need_lib_prefix=no
9829      ;;
9830    motorola)
9831      need_lib_prefix=no
9832      need_version=no
9833      shlibpath_overrides_runpath=no
9834      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9835      ;;
9836  esac
9837  ;;
9838
9839sysv4*MP*)
9840  if test -d /usr/nec ;then
9841    version_type=linux
9842    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9843    soname_spec='$libname${shared_ext}.$major'
9844    shlibpath_var=LD_LIBRARY_PATH
9845  fi
9846  ;;
9847
9848sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9849  version_type=freebsd-elf
9850  need_lib_prefix=no
9851  need_version=no
9852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9853  soname_spec='${libname}${release}${shared_ext}$major'
9854  shlibpath_var=LD_LIBRARY_PATH
9855  hardcode_into_libs=yes
9856  if test "$with_gnu_ld" = yes; then
9857    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9858    shlibpath_overrides_runpath=no
9859  else
9860    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9861    shlibpath_overrides_runpath=yes
9862    case $host_os in
9863      sco3.2v5*)
9864        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9865        ;;
9866    esac
9867  fi
9868  sys_lib_dlsearch_path_spec='/usr/lib'
9869  ;;
9870
9871uts4*)
9872  version_type=linux
9873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874  soname_spec='${libname}${release}${shared_ext}$major'
9875  shlibpath_var=LD_LIBRARY_PATH
9876  ;;
9877
9878*)
9879  dynamic_linker=no
9880  ;;
9881esac
9882echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9883echo "${ECHO_T}$dynamic_linker" >&6
9884test "$dynamic_linker" = no && can_build_shared=no
9885
9886variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9887if test "$GCC" = yes; then
9888  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9889fi
9890
9891echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9892echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9893hardcode_action=
9894if test -n "$hardcode_libdir_flag_spec" || \
9895   test -n "$runpath_var" || \
9896   test "X$hardcode_automatic" = "Xyes" ; then
9897
9898  # We can hardcode non-existant directories.
9899  if test "$hardcode_direct" != no &&
9900     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9901     # have to relink, otherwise we might link with an installed library
9902     # when we should be linking with a yet-to-be-installed one
9903     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9904     test "$hardcode_minus_L" != no; then
9905    # Linking always hardcodes the temporary library directory.
9906    hardcode_action=relink
9907  else
9908    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9909    hardcode_action=immediate
9910  fi
9911else
9912  # We cannot hardcode anything, or else we can only hardcode existing
9913  # directories.
9914  hardcode_action=unsupported
9915fi
9916echo "$as_me:$LINENO: result: $hardcode_action" >&5
9917echo "${ECHO_T}$hardcode_action" >&6
9918
9919if test "$hardcode_action" = relink; then
9920  # Fast installation is not supported
9921  enable_fast_install=no
9922elif test "$shlibpath_overrides_runpath" = yes ||
9923     test "$enable_shared" = no; then
9924  # Fast installation is not necessary
9925  enable_fast_install=needless
9926fi
9927
9928striplib=
9929old_striplib=
9930echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9931echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9932if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9933  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9934  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9935  echo "$as_me:$LINENO: result: yes" >&5
9936echo "${ECHO_T}yes" >&6
9937else
9938# FIXME - insert some real tests, host_os isn't really good enough
9939  case $host_os in
9940   darwin*)
9941       if test -n "$STRIP" ; then
9942         striplib="$STRIP -x"
9943         echo "$as_me:$LINENO: result: yes" >&5
9944echo "${ECHO_T}yes" >&6
9945       else
9946  echo "$as_me:$LINENO: result: no" >&5
9947echo "${ECHO_T}no" >&6
9948fi
9949       ;;
9950   *)
9951  echo "$as_me:$LINENO: result: no" >&5
9952echo "${ECHO_T}no" >&6
9953    ;;
9954  esac
9955fi
9956
9957if test "x$enable_dlopen" != xyes; then
9958  enable_dlopen=unknown
9959  enable_dlopen_self=unknown
9960  enable_dlopen_self_static=unknown
9961else
9962  lt_cv_dlopen=no
9963  lt_cv_dlopen_libs=
9964
9965  case $host_os in
9966  beos*)
9967    lt_cv_dlopen="load_add_on"
9968    lt_cv_dlopen_libs=
9969    lt_cv_dlopen_self=yes
9970    ;;
9971
9972  mingw* | pw32*)
9973    lt_cv_dlopen="LoadLibrary"
9974    lt_cv_dlopen_libs=
9975   ;;
9976
9977  cygwin*)
9978    lt_cv_dlopen="dlopen"
9979    lt_cv_dlopen_libs=
9980   ;;
9981
9982  darwin*)
9983  # if libdl is installed we need to link against it
9984    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9985echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9986if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9987  echo $ECHO_N "(cached) $ECHO_C" >&6
9988else
9989  ac_check_lib_save_LIBS=$LIBS
9990LIBS="-ldl  $LIBS"
9991cat >conftest.$ac_ext <<_ACEOF
9992/* confdefs.h.  */
9993_ACEOF
9994cat confdefs.h >>conftest.$ac_ext
9995cat >>conftest.$ac_ext <<_ACEOF
9996/* end confdefs.h.  */
9997
9998/* Override any gcc2 internal prototype to avoid an error.  */
9999#ifdef __cplusplus
10000extern "C"
10001#endif
10002/* We use char because int might match the return type of a gcc2
10003   builtin and then its argument prototype would still apply.  */
10004char dlopen ();
10005int
10006main ()
10007{
10008dlopen ();
10009  ;
10010  return 0;
10011}
10012_ACEOF
10013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015  (eval $ac_link) 2>conftest.er1
10016  ac_status=$?
10017  grep -v '^ *+' conftest.er1 >conftest.err
10018  rm -f conftest.er1
10019  cat conftest.err >&5
10020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021  (exit $ac_status); } &&
10022         { ac_try='test -z "$ac_c_werror_flag"
10023                         || test ! -s conftest.err'
10024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025  (eval $ac_try) 2>&5
10026  ac_status=$?
10027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028  (exit $ac_status); }; } &&
10029         { ac_try='test -s conftest$ac_exeext'
10030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031  (eval $ac_try) 2>&5
10032  ac_status=$?
10033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034  (exit $ac_status); }; }; then
10035  ac_cv_lib_dl_dlopen=yes
10036else
10037  echo "$as_me: failed program was:" >&5
10038sed 's/^/| /' conftest.$ac_ext >&5
10039
10040ac_cv_lib_dl_dlopen=no
10041fi
10042rm -f conftest.err conftest.$ac_objext \
10043      conftest$ac_exeext conftest.$ac_ext
10044LIBS=$ac_check_lib_save_LIBS
10045fi
10046echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10047echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10048if test $ac_cv_lib_dl_dlopen = yes; then
10049  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10050else
10051
10052    lt_cv_dlopen="dyld"
10053    lt_cv_dlopen_libs=
10054    lt_cv_dlopen_self=yes
10055
10056fi
10057
10058   ;;
10059
10060  *)
10061    echo "$as_me:$LINENO: checking for shl_load" >&5
10062echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10063if test "${ac_cv_func_shl_load+set}" = set; then
10064  echo $ECHO_N "(cached) $ECHO_C" >&6
10065else
10066  cat >conftest.$ac_ext <<_ACEOF
10067/* confdefs.h.  */
10068_ACEOF
10069cat confdefs.h >>conftest.$ac_ext
10070cat >>conftest.$ac_ext <<_ACEOF
10071/* end confdefs.h.  */
10072/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10073   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10074#define shl_load innocuous_shl_load
10075
10076/* System header to define __stub macros and hopefully few prototypes,
10077    which can conflict with char shl_load (); below.
10078    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10079    <limits.h> exists even on freestanding compilers.  */
10080
10081#ifdef __STDC__
10082# include <limits.h>
10083#else
10084# include <assert.h>
10085#endif
10086
10087#undef shl_load
10088
10089/* Override any gcc2 internal prototype to avoid an error.  */
10090#ifdef __cplusplus
10091extern "C"
10092{
10093#endif
10094/* We use char because int might match the return type of a gcc2
10095   builtin and then its argument prototype would still apply.  */
10096char shl_load ();
10097/* The GNU C library defines this for functions which it implements
10098    to always fail with ENOSYS.  Some functions are actually named
10099    something starting with __ and the normal name is an alias.  */
10100#if defined (__stub_shl_load) || defined (__stub___shl_load)
10101choke me
10102#else
10103char (*f) () = shl_load;
10104#endif
10105#ifdef __cplusplus
10106}
10107#endif
10108
10109int
10110main ()
10111{
10112return f != shl_load;
10113  ;
10114  return 0;
10115}
10116_ACEOF
10117rm -f conftest.$ac_objext conftest$ac_exeext
10118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119  (eval $ac_link) 2>conftest.er1
10120  ac_status=$?
10121  grep -v '^ *+' conftest.er1 >conftest.err
10122  rm -f conftest.er1
10123  cat conftest.err >&5
10124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125  (exit $ac_status); } &&
10126         { ac_try='test -z "$ac_c_werror_flag"
10127                         || test ! -s conftest.err'
10128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10129  (eval $ac_try) 2>&5
10130  ac_status=$?
10131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132  (exit $ac_status); }; } &&
10133         { ac_try='test -s conftest$ac_exeext'
10134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135  (eval $ac_try) 2>&5
10136  ac_status=$?
10137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138  (exit $ac_status); }; }; then
10139  ac_cv_func_shl_load=yes
10140else
10141  echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144ac_cv_func_shl_load=no
10145fi
10146rm -f conftest.err conftest.$ac_objext \
10147      conftest$ac_exeext conftest.$ac_ext
10148fi
10149echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10150echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10151if test $ac_cv_func_shl_load = yes; then
10152  lt_cv_dlopen="shl_load"
10153else
10154  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10155echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10156if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10157  echo $ECHO_N "(cached) $ECHO_C" >&6
10158else
10159  ac_check_lib_save_LIBS=$LIBS
10160LIBS="-ldld  $LIBS"
10161cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h.  */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h.  */
10167
10168/* Override any gcc2 internal prototype to avoid an error.  */
10169#ifdef __cplusplus
10170extern "C"
10171#endif
10172/* We use char because int might match the return type of a gcc2
10173   builtin and then its argument prototype would still apply.  */
10174char shl_load ();
10175int
10176main ()
10177{
10178shl_load ();
10179  ;
10180  return 0;
10181}
10182_ACEOF
10183rm -f conftest.$ac_objext conftest$ac_exeext
10184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10185  (eval $ac_link) 2>conftest.er1
10186  ac_status=$?
10187  grep -v '^ *+' conftest.er1 >conftest.err
10188  rm -f conftest.er1
10189  cat conftest.err >&5
10190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191  (exit $ac_status); } &&
10192         { ac_try='test -z "$ac_c_werror_flag"
10193                         || test ! -s conftest.err'
10194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195  (eval $ac_try) 2>&5
10196  ac_status=$?
10197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198  (exit $ac_status); }; } &&
10199         { ac_try='test -s conftest$ac_exeext'
10200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201  (eval $ac_try) 2>&5
10202  ac_status=$?
10203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204  (exit $ac_status); }; }; then
10205  ac_cv_lib_dld_shl_load=yes
10206else
10207  echo "$as_me: failed program was:" >&5
10208sed 's/^/| /' conftest.$ac_ext >&5
10209
10210ac_cv_lib_dld_shl_load=no
10211fi
10212rm -f conftest.err conftest.$ac_objext \
10213      conftest$ac_exeext conftest.$ac_ext
10214LIBS=$ac_check_lib_save_LIBS
10215fi
10216echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10217echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10218if test $ac_cv_lib_dld_shl_load = yes; then
10219  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10220else
10221  echo "$as_me:$LINENO: checking for dlopen" >&5
10222echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10223if test "${ac_cv_func_dlopen+set}" = set; then
10224  echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226  cat >conftest.$ac_ext <<_ACEOF
10227/* confdefs.h.  */
10228_ACEOF
10229cat confdefs.h >>conftest.$ac_ext
10230cat >>conftest.$ac_ext <<_ACEOF
10231/* end confdefs.h.  */
10232/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10233   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10234#define dlopen innocuous_dlopen
10235
10236/* System header to define __stub macros and hopefully few prototypes,
10237    which can conflict with char dlopen (); below.
10238    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239    <limits.h> exists even on freestanding compilers.  */
10240
10241#ifdef __STDC__
10242# include <limits.h>
10243#else
10244# include <assert.h>
10245#endif
10246
10247#undef dlopen
10248
10249/* Override any gcc2 internal prototype to avoid an error.  */
10250#ifdef __cplusplus
10251extern "C"
10252{
10253#endif
10254/* We use char because int might match the return type of a gcc2
10255   builtin and then its argument prototype would still apply.  */
10256char dlopen ();
10257/* The GNU C library defines this for functions which it implements
10258    to always fail with ENOSYS.  Some functions are actually named
10259    something starting with __ and the normal name is an alias.  */
10260#if defined (__stub_dlopen) || defined (__stub___dlopen)
10261choke me
10262#else
10263char (*f) () = dlopen;
10264#endif
10265#ifdef __cplusplus
10266}
10267#endif
10268
10269int
10270main ()
10271{
10272return f != dlopen;
10273  ;
10274  return 0;
10275}
10276_ACEOF
10277rm -f conftest.$ac_objext conftest$ac_exeext
10278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279  (eval $ac_link) 2>conftest.er1
10280  ac_status=$?
10281  grep -v '^ *+' conftest.er1 >conftest.err
10282  rm -f conftest.er1
10283  cat conftest.err >&5
10284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285  (exit $ac_status); } &&
10286         { ac_try='test -z "$ac_c_werror_flag"
10287                         || test ! -s conftest.err'
10288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289  (eval $ac_try) 2>&5
10290  ac_status=$?
10291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292  (exit $ac_status); }; } &&
10293         { ac_try='test -s conftest$ac_exeext'
10294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295  (eval $ac_try) 2>&5
10296  ac_status=$?
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); }; }; then
10299  ac_cv_func_dlopen=yes
10300else
10301  echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
10304ac_cv_func_dlopen=no
10305fi
10306rm -f conftest.err conftest.$ac_objext \
10307      conftest$ac_exeext conftest.$ac_ext
10308fi
10309echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10310echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10311if test $ac_cv_func_dlopen = yes; then
10312  lt_cv_dlopen="dlopen"
10313else
10314  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10315echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10316if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10317  echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319  ac_check_lib_save_LIBS=$LIBS
10320LIBS="-ldl  $LIBS"
10321cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h.  */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h.  */
10327
10328/* Override any gcc2 internal prototype to avoid an error.  */
10329#ifdef __cplusplus
10330extern "C"
10331#endif
10332/* We use char because int might match the return type of a gcc2
10333   builtin and then its argument prototype would still apply.  */
10334char dlopen ();
10335int
10336main ()
10337{
10338dlopen ();
10339  ;
10340  return 0;
10341}
10342_ACEOF
10343rm -f conftest.$ac_objext conftest$ac_exeext
10344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10345  (eval $ac_link) 2>conftest.er1
10346  ac_status=$?
10347  grep -v '^ *+' conftest.er1 >conftest.err
10348  rm -f conftest.er1
10349  cat conftest.err >&5
10350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351  (exit $ac_status); } &&
10352         { ac_try='test -z "$ac_c_werror_flag"
10353                         || test ! -s conftest.err'
10354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10355  (eval $ac_try) 2>&5
10356  ac_status=$?
10357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358  (exit $ac_status); }; } &&
10359         { ac_try='test -s conftest$ac_exeext'
10360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361  (eval $ac_try) 2>&5
10362  ac_status=$?
10363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364  (exit $ac_status); }; }; then
10365  ac_cv_lib_dl_dlopen=yes
10366else
10367  echo "$as_me: failed program was:" >&5
10368sed 's/^/| /' conftest.$ac_ext >&5
10369
10370ac_cv_lib_dl_dlopen=no
10371fi
10372rm -f conftest.err conftest.$ac_objext \
10373      conftest$ac_exeext conftest.$ac_ext
10374LIBS=$ac_check_lib_save_LIBS
10375fi
10376echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10377echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10378if test $ac_cv_lib_dl_dlopen = yes; then
10379  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10380else
10381  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10382echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10383if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10384  echo $ECHO_N "(cached) $ECHO_C" >&6
10385else
10386  ac_check_lib_save_LIBS=$LIBS
10387LIBS="-lsvld  $LIBS"
10388cat >conftest.$ac_ext <<_ACEOF
10389/* confdefs.h.  */
10390_ACEOF
10391cat confdefs.h >>conftest.$ac_ext
10392cat >>conftest.$ac_ext <<_ACEOF
10393/* end confdefs.h.  */
10394
10395/* Override any gcc2 internal prototype to avoid an error.  */
10396#ifdef __cplusplus
10397extern "C"
10398#endif
10399/* We use char because int might match the return type of a gcc2
10400   builtin and then its argument prototype would still apply.  */
10401char dlopen ();
10402int
10403main ()
10404{
10405dlopen ();
10406  ;
10407  return 0;
10408}
10409_ACEOF
10410rm -f conftest.$ac_objext conftest$ac_exeext
10411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10412  (eval $ac_link) 2>conftest.er1
10413  ac_status=$?
10414  grep -v '^ *+' conftest.er1 >conftest.err
10415  rm -f conftest.er1
10416  cat conftest.err >&5
10417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418  (exit $ac_status); } &&
10419         { ac_try='test -z "$ac_c_werror_flag"
10420                         || test ! -s conftest.err'
10421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422  (eval $ac_try) 2>&5
10423  ac_status=$?
10424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425  (exit $ac_status); }; } &&
10426         { ac_try='test -s conftest$ac_exeext'
10427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428  (eval $ac_try) 2>&5
10429  ac_status=$?
10430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431  (exit $ac_status); }; }; then
10432  ac_cv_lib_svld_dlopen=yes
10433else
10434  echo "$as_me: failed program was:" >&5
10435sed 's/^/| /' conftest.$ac_ext >&5
10436
10437ac_cv_lib_svld_dlopen=no
10438fi
10439rm -f conftest.err conftest.$ac_objext \
10440      conftest$ac_exeext conftest.$ac_ext
10441LIBS=$ac_check_lib_save_LIBS
10442fi
10443echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10444echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10445if test $ac_cv_lib_svld_dlopen = yes; then
10446  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10447else
10448  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10449echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10450if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10451  echo $ECHO_N "(cached) $ECHO_C" >&6
10452else
10453  ac_check_lib_save_LIBS=$LIBS
10454LIBS="-ldld  $LIBS"
10455cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h.  */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h.  */
10461
10462/* Override any gcc2 internal prototype to avoid an error.  */
10463#ifdef __cplusplus
10464extern "C"
10465#endif
10466/* We use char because int might match the return type of a gcc2
10467   builtin and then its argument prototype would still apply.  */
10468char dld_link ();
10469int
10470main ()
10471{
10472dld_link ();
10473  ;
10474  return 0;
10475}
10476_ACEOF
10477rm -f conftest.$ac_objext conftest$ac_exeext
10478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479  (eval $ac_link) 2>conftest.er1
10480  ac_status=$?
10481  grep -v '^ *+' conftest.er1 >conftest.err
10482  rm -f conftest.er1
10483  cat conftest.err >&5
10484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485  (exit $ac_status); } &&
10486         { ac_try='test -z "$ac_c_werror_flag"
10487                         || test ! -s conftest.err'
10488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489  (eval $ac_try) 2>&5
10490  ac_status=$?
10491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492  (exit $ac_status); }; } &&
10493         { ac_try='test -s conftest$ac_exeext'
10494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495  (eval $ac_try) 2>&5
10496  ac_status=$?
10497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498  (exit $ac_status); }; }; then
10499  ac_cv_lib_dld_dld_link=yes
10500else
10501  echo "$as_me: failed program was:" >&5
10502sed 's/^/| /' conftest.$ac_ext >&5
10503
10504ac_cv_lib_dld_dld_link=no
10505fi
10506rm -f conftest.err conftest.$ac_objext \
10507      conftest$ac_exeext conftest.$ac_ext
10508LIBS=$ac_check_lib_save_LIBS
10509fi
10510echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10511echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10512if test $ac_cv_lib_dld_dld_link = yes; then
10513  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10514fi
10515
10516
10517fi
10518
10519
10520fi
10521
10522
10523fi
10524
10525
10526fi
10527
10528
10529fi
10530
10531    ;;
10532  esac
10533
10534  if test "x$lt_cv_dlopen" != xno; then
10535    enable_dlopen=yes
10536  else
10537    enable_dlopen=no
10538  fi
10539
10540  case $lt_cv_dlopen in
10541  dlopen)
10542    save_CPPFLAGS="$CPPFLAGS"
10543    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10544
10545    save_LDFLAGS="$LDFLAGS"
10546    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10547
10548    save_LIBS="$LIBS"
10549    LIBS="$lt_cv_dlopen_libs $LIBS"
10550
10551    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10552echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10553if test "${lt_cv_dlopen_self+set}" = set; then
10554  echo $ECHO_N "(cached) $ECHO_C" >&6
10555else
10556          if test "$cross_compiling" = yes; then :
10557  lt_cv_dlopen_self=cross
10558else
10559  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10560  lt_status=$lt_dlunknown
10561  cat > conftest.$ac_ext <<EOF
10562#line 10562 "configure"
10563#include "confdefs.h"
10564
10565#if HAVE_DLFCN_H
10566#include <dlfcn.h>
10567#endif
10568
10569#include <stdio.h>
10570
10571#ifdef RTLD_GLOBAL
10572#  define LT_DLGLOBAL           RTLD_GLOBAL
10573#else
10574#  ifdef DL_GLOBAL
10575#    define LT_DLGLOBAL         DL_GLOBAL
10576#  else
10577#    define LT_DLGLOBAL         0
10578#  endif
10579#endif
10580
10581/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10582   find out it does not work in some platform. */
10583#ifndef LT_DLLAZY_OR_NOW
10584#  ifdef RTLD_LAZY
10585#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10586#  else
10587#    ifdef DL_LAZY
10588#      define LT_DLLAZY_OR_NOW          DL_LAZY
10589#    else
10590#      ifdef RTLD_NOW
10591#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10592#      else
10593#        ifdef DL_NOW
10594#          define LT_DLLAZY_OR_NOW      DL_NOW
10595#        else
10596#          define LT_DLLAZY_OR_NOW      0
10597#        endif
10598#      endif
10599#    endif
10600#  endif
10601#endif
10602
10603#ifdef __cplusplus
10604extern "C" void exit (int);
10605#endif
10606
10607void fnord() { int i=42;}
10608int main ()
10609{
10610  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10611  int status = $lt_dlunknown;
10612
10613  if (self)
10614    {
10615      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10616      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10617      /* dlclose (self); */
10618    }
10619  else
10620    puts (dlerror ());
10621
10622    exit (status);
10623}
10624EOF
10625  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626  (eval $ac_link) 2>&5
10627  ac_status=$?
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10630    (./conftest; exit; ) >&5 2>/dev/null
10631    lt_status=$?
10632    case x$lt_status in
10633      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10634      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10635      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10636    esac
10637  else :
10638    # compilation failed
10639    lt_cv_dlopen_self=no
10640  fi
10641fi
10642rm -fr conftest*
10643
10644
10645fi
10646echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10647echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10648
10649    if test "x$lt_cv_dlopen_self" = xyes; then
10650      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10651      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10652echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10653if test "${lt_cv_dlopen_self_static+set}" = set; then
10654  echo $ECHO_N "(cached) $ECHO_C" >&6
10655else
10656          if test "$cross_compiling" = yes; then :
10657  lt_cv_dlopen_self_static=cross
10658else
10659  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10660  lt_status=$lt_dlunknown
10661  cat > conftest.$ac_ext <<EOF
10662#line 10662 "configure"
10663#include "confdefs.h"
10664
10665#if HAVE_DLFCN_H
10666#include <dlfcn.h>
10667#endif
10668
10669#include <stdio.h>
10670
10671#ifdef RTLD_GLOBAL
10672#  define LT_DLGLOBAL           RTLD_GLOBAL
10673#else
10674#  ifdef DL_GLOBAL
10675#    define LT_DLGLOBAL         DL_GLOBAL
10676#  else
10677#    define LT_DLGLOBAL         0
10678#  endif
10679#endif
10680
10681/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10682   find out it does not work in some platform. */
10683#ifndef LT_DLLAZY_OR_NOW
10684#  ifdef RTLD_LAZY
10685#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10686#  else
10687#    ifdef DL_LAZY
10688#      define LT_DLLAZY_OR_NOW          DL_LAZY
10689#    else
10690#      ifdef RTLD_NOW
10691#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10692#      else
10693#        ifdef DL_NOW
10694#          define LT_DLLAZY_OR_NOW      DL_NOW
10695#        else
10696#          define LT_DLLAZY_OR_NOW      0
10697#        endif
10698#      endif
10699#    endif
10700#  endif
10701#endif
10702
10703#ifdef __cplusplus
10704extern "C" void exit (int);
10705#endif
10706
10707void fnord() { int i=42;}
10708int main ()
10709{
10710  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10711  int status = $lt_dlunknown;
10712
10713  if (self)
10714    {
10715      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10716      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10717      /* dlclose (self); */
10718    }
10719  else
10720    puts (dlerror ());
10721
10722    exit (status);
10723}
10724EOF
10725  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10726  (eval $ac_link) 2>&5
10727  ac_status=$?
10728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10730    (./conftest; exit; ) >&5 2>/dev/null
10731    lt_status=$?
10732    case x$lt_status in
10733      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10734      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10735      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10736    esac
10737  else :
10738    # compilation failed
10739    lt_cv_dlopen_self_static=no
10740  fi
10741fi
10742rm -fr conftest*
10743
10744
10745fi
10746echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10747echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10748    fi
10749
10750    CPPFLAGS="$save_CPPFLAGS"
10751    LDFLAGS="$save_LDFLAGS"
10752    LIBS="$save_LIBS"
10753    ;;
10754  esac
10755
10756  case $lt_cv_dlopen_self in
10757  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10758  *) enable_dlopen_self=unknown ;;
10759  esac
10760
10761  case $lt_cv_dlopen_self_static in
10762  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10763  *) enable_dlopen_self_static=unknown ;;
10764  esac
10765fi
10766
10767
10768# Report which library types will actually be built
10769echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10770echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10771echo "$as_me:$LINENO: result: $can_build_shared" >&5
10772echo "${ECHO_T}$can_build_shared" >&6
10773
10774echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10775echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10776test "$can_build_shared" = "no" && enable_shared=no
10777
10778# On AIX, shared libraries and static libraries use the same namespace, and
10779# are all built from PIC.
10780case $host_os in
10781aix3*)
10782  test "$enable_shared" = yes && enable_static=no
10783  if test -n "$RANLIB"; then