source: ThirdParty/HSL/trunk/configure @ 240

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

use test -r to check existence of libtool script, not AC_CHECK_FILE, since that does not seem to work for cross compilation

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