source: ThirdParty/HSL/trunk/configure @ 443

Last change on this file since 443 was 443, checked in by andreasw, 13 years ago

reran autotools

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