source: branches/devel/Clp/configure @ 1017

Last change on this file since 1017 was 1017, checked in by andreasw, 12 years ago

reran autotools

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