source: ThirdParty/HSL/trunk/configure @ 425

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

enable cross compilation (changing check for existing files)

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