source: trunk/Vol/configure @ 120

Last change on this file since 120 was 120, checked in by andreasw, 14 years ago

enable configuration (libtool check issue) for cross compilation

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